| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECS.Types.Resource
Description
Synopsis
- data Resource = Resource' {}
- newResource :: Resource
- resource_doubleValue :: Lens' Resource (Maybe Double)
- resource_integerValue :: Lens' Resource (Maybe Int)
- resource_longValue :: Lens' Resource (Maybe Integer)
- resource_name :: Lens' Resource (Maybe Text)
- resource_stringSetValue :: Lens' Resource (Maybe [Text])
- resource_type :: Lens' Resource (Maybe Text)
Documentation
Describes the resources available for a container instance.
See: newResource smart constructor.
Constructors
| Resource' | |
Fields
| |
Instances
newResource :: Resource Source #
Create a value of Resource with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:doubleValue:Resource', resource_doubleValue - When the doubleValue type is set, the value of the resource must be a
double precision floating-point type.
$sel:integerValue:Resource', resource_integerValue - When the integerValue type is set, the value of the resource must be
an integer.
$sel:longValue:Resource', resource_longValue - When the longValue type is set, the value of the resource must be an
extended precision floating-point type.
$sel:name:Resource', resource_name - The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP,
or a user-defined resource.
$sel:stringSetValue:Resource', resource_stringSetValue - When the stringSetValue type is set, the value of the resource must be
a string type.
$sel:type':Resource', resource_type - The type of the resource. Valid values: INTEGER, DOUBLE, LONG, or
STRINGSET.
resource_doubleValue :: Lens' Resource (Maybe Double) Source #
When the doubleValue type is set, the value of the resource must be a
double precision floating-point type.
resource_integerValue :: Lens' Resource (Maybe Int) Source #
When the integerValue type is set, the value of the resource must be
an integer.
resource_longValue :: Lens' Resource (Maybe Integer) Source #
When the longValue type is set, the value of the resource must be an
extended precision floating-point type.
resource_name :: Lens' Resource (Maybe Text) Source #
The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP,
or a user-defined resource.