amazonka-ecs-1.6.0: 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 # 
Data PutAttributes Source # 

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 # 
Show PutAttributes Source # 
Generic PutAttributes Source # 

Associated Types

type Rep PutAttributes :: * -> * #

Hashable PutAttributes Source # 
ToJSON PutAttributes Source # 
NFData PutAttributes Source # 

Methods

rnf :: PutAttributes -> () #

AWSRequest PutAttributes Source # 
ToHeaders PutAttributes Source # 
ToPath PutAttributes Source # 
ToQuery PutAttributes Source # 
type Rep PutAttributes Source # 
type Rep PutAttributes = D1 * (MetaData "PutAttributes" "Network.AWS.ECS.PutAttributes" "amazonka-ecs-1.6.0-7CQHGOTku8B1VmTRp9KDXq" False) (C1 * (MetaCons "PutAttributes'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_paCluster") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_paAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Attribute]))))
type Rs PutAttributes Source # 

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 # 
Data PutAttributesResponse Source # 

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 # 
Show PutAttributesResponse Source # 
Generic PutAttributesResponse Source # 
NFData PutAttributesResponse Source # 

Methods

rnf :: PutAttributesResponse -> () #

type Rep PutAttributesResponse Source # 
type Rep PutAttributesResponse = D1 * (MetaData "PutAttributesResponse" "Network.AWS.ECS.PutAttributes" "amazonka-ecs-1.6.0-7CQHGOTku8B1VmTRp9KDXq" False) (C1 * (MetaCons "PutAttributesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_parsAttributes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Attribute]))) (S1 * (MetaSel (Just Symbol "_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.