amazonka-ecs-1.6.1: Amazon EC2 Container Service SDK.

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

Network.AWS.ECS.PutAttributes

Contents

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

putAttributes :: PutAttributes Source #

Creates a value of PutAttributes with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • paCluster - 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.
  • paAttributes - 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.

data PutAttributes Source #

See: putAttributes smart constructor.

Instances
Eq PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Data PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutAttributes -> c PutAttributes #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutAttributes #

toConstr :: PutAttributes -> Constr #

dataTypeOf :: PutAttributes -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutAttributes) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutAttributes) #

gmapT :: (forall b. Data b => b -> b) -> PutAttributes -> PutAttributes #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutAttributes -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutAttributes -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutAttributes -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutAttributes -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutAttributes -> m PutAttributes #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutAttributes -> m PutAttributes #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutAttributes -> m PutAttributes #

Read PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Show PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Generic PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Associated Types

type Rep PutAttributes :: Type -> Type #

Hashable PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

ToJSON PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

AWSRequest PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Associated Types

type Rs PutAttributes :: Type #

ToHeaders PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

ToPath PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

ToQuery PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

NFData PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Methods

rnf :: PutAttributes -> () #

type Rep PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

type Rep PutAttributes = D1 (MetaData "PutAttributes" "Network.AWS.ECS.PutAttributes" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" False) (C1 (MetaCons "PutAttributes'" PrefixI True) (S1 (MetaSel (Just "_paCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_paAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Attribute])))
type Rs PutAttributes Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Request Lenses

paCluster :: 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.

paAttributes :: 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

putAttributesResponse Source #

Creates a value of PutAttributesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PutAttributesResponse Source #

See: putAttributesResponse smart constructor.

Instances
Eq PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Data PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutAttributesResponse -> c PutAttributesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutAttributesResponse #

toConstr :: PutAttributesResponse -> Constr #

dataTypeOf :: PutAttributesResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutAttributesResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutAttributesResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutAttributesResponse -> PutAttributesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutAttributesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutAttributesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutAttributesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutAttributesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutAttributesResponse -> m PutAttributesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutAttributesResponse -> m PutAttributesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutAttributesResponse -> m PutAttributesResponse #

Read PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Show PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Generic PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Associated Types

type Rep PutAttributesResponse :: Type -> Type #

NFData PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Methods

rnf :: PutAttributesResponse -> () #

type Rep PutAttributesResponse Source # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

type Rep PutAttributesResponse = D1 (MetaData "PutAttributesResponse" "Network.AWS.ECS.PutAttributes" "amazonka-ecs-1.6.1-7o1YH8hMK1ABbFowaTE1Sy" False) (C1 (MetaCons "PutAttributesResponse'" PrefixI True) (S1 (MetaSel (Just "_parsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Attribute])) :*: S1 (MetaSel (Just "_parsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

parsAttributes :: Lens' PutAttributesResponse [Attribute] Source #

The attributes applied to your resource.

parsResponseStatus :: Lens' PutAttributesResponse Int Source #

  • - | The response status code.