libZSservicesZSamazonka-ecsZSamazonka-ecs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECS.Types.Resource

Description

 
Synopsis

Documentation

data Resource Source #

Describes the resources available for a container instance.

See: newResource smart constructor.

Constructors

Resource' 

Fields

  • stringSetValue :: Maybe [Text]

    When the stringSetValue type is set, the value of the resource must be a string type.

  • integerValue :: Maybe Int

    When the integerValue type is set, the value of the resource must be an integer.

  • doubleValue :: Maybe Double

    When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

  • longValue :: Maybe Integer

    When the longValue type is set, the value of the resource must be an extended precision floating-point type.

  • name :: Maybe Text

    The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.

  • type' :: Maybe Text

    The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.

Instances

Instances details
Eq Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

Read Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

Show Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

Generic Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

Associated Types

type Rep Resource :: Type -> Type #

Methods

from :: Resource -> Rep Resource x #

to :: Rep Resource x -> Resource #

NFData Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

Methods

rnf :: Resource -> () #

Hashable Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

Methods

hashWithSalt :: Int -> Resource -> Int #

hash :: Resource -> Int #

ToJSON Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

FromJSON Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

type Rep Resource Source # 
Instance details

Defined in Amazonka.ECS.Types.Resource

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:stringSetValue:Resource', resource_stringSetValue - When the stringSetValue type is set, the value of the resource must be a string type.

$sel:integerValue:Resource', resource_integerValue - When the integerValue type is set, the value of the resource must be an integer.

$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: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:type':Resource', resource_type - The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.

resource_stringSetValue :: Lens' Resource (Maybe [Text]) Source #

When the stringSetValue type is set, the value of the resource must be a string type.

resource_integerValue :: Lens' Resource (Maybe Int) Source #

When the integerValue type is set, the value of the resource must be an integer.

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_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.

resource_type :: Lens' Resource (Maybe Text) Source #

The type of the resource, such as INTEGER, DOUBLE, LONG, or STRINGSET.