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

Description

Create or update an attribute on an Amazon ECS resource. If the attribute does not exist, it is 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 per resource. You can specify up to 10 attributes in a single call.

Instances

Instances details
Eq PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Read PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Show PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Generic PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Associated Types

type Rep PutAttributes :: Type -> Type #

NFData PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Methods

rnf :: PutAttributes -> () #

Hashable PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

ToJSON PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

AWSRequest PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Associated Types

type AWSResponse 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

type Rep PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

type Rep PutAttributes = D1 ('MetaData "PutAttributes" "Amazonka.ECS.PutAttributes" "libZSservicesZSamazonka-ecsZSamazonka-ecs" '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])))
type AWSResponse PutAttributes Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

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.

$sel:attributes:PutAttributes', putAttributes_attributes - The attributes to apply to your resource. You can specify up to 10 custom attributes per 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 per 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
Eq PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Read PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Show PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Generic PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Associated Types

type Rep PutAttributesResponse :: Type -> Type #

NFData PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

Methods

rnf :: PutAttributesResponse -> () #

type Rep PutAttributesResponse Source # 
Instance details

Defined in Amazonka.ECS.PutAttributes

type Rep PutAttributesResponse = D1 ('MetaData "PutAttributesResponse" "Amazonka.ECS.PutAttributes" "libZSservicesZSamazonka-ecsZSamazonka-ecs" '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:

$sel:attributes: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.