amazonka-ecs-2.0: Amazon EC2 Container Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ECS.PutAttributes

Description

Create or update an attribute on an Amazon ECS resource. If the attribute doesn't exist, it's created. If the attribute exists, its value is replaced with the specified value. To delete an attribute, use DeleteAttributes. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

Synopsis

Creating a Request

data PutAttributes Source #

See: newPutAttributes smart constructor.

Constructors

PutAttributes' 

Fields

  • cluster :: Maybe Text

    The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed.

  • attributes :: [Attribute]

    The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can specify up to 10 attributes in a single call.

Instances

Instances details
ToJSON PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

ToHeaders PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

ToPath PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

ToQuery PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

AWSRequest PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Associated Types

type AWSResponse PutAttributes #

Generic PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Associated Types

type Rep PutAttributes :: Type -> Type #

Read PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Show PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

NFData PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Methods

rnf :: PutAttributes -> () #

Eq PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Hashable PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

type AWSResponse PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

type Rep PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

type Rep PutAttributes = D1 ('MetaData "PutAttributes" "Amazonka.ECS.PutAttributes" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "PutAttributes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Attribute])))

newPutAttributes :: PutAttributes Source #

Create a value of PutAttributes 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:cluster:PutAttributes', putAttributes_cluster - The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed.

PutAttributes, putAttributes_attributes - The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can specify up to 10 attributes in a single call.

Request Lenses

putAttributes_cluster :: Lens' PutAttributes (Maybe Text) Source #

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to apply attributes. If you do not specify a cluster, the default cluster is assumed.

putAttributes_attributes :: Lens' PutAttributes [Attribute] Source #

The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can specify up to 10 attributes in a single call.

Destructuring the Response

data PutAttributesResponse Source #

See: newPutAttributesResponse smart constructor.

Constructors

PutAttributesResponse' 

Fields

Instances

Instances details
Generic PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Associated Types

type Rep PutAttributesResponse :: Type -> Type #

Read PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Show PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

NFData PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Methods

rnf :: PutAttributesResponse -> () #

Eq PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

type Rep PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

type Rep PutAttributesResponse = D1 ('MetaData "PutAttributesResponse" "Amazonka.ECS.PutAttributes" "amazonka-ecs-2.0-3xFxVqi9x5nBZ44jBEC5G8" 'False) (C1 ('MetaCons "PutAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Attribute])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutAttributesResponse Source #

Create a value of PutAttributesResponse 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:

PutAttributes, putAttributesResponse_attributes - The attributes applied to your resource.

$sel:httpStatus:PutAttributesResponse', putAttributesResponse_httpStatus - The response's http status code.

Response Lenses

putAttributesResponse_attributes :: Lens' PutAttributesResponse (Maybe [Attribute]) Source #

The attributes applied to your resource.