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 #

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 #

See: putAttributes smart constructor.

Instances

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

Associated Types

type Rep PutAttributes :: * -> * #

Hashable PutAttributes # 
ToJSON PutAttributes # 
NFData PutAttributes # 

Methods

rnf :: PutAttributes -> () #

AWSRequest PutAttributes # 
ToHeaders PutAttributes # 
ToPath PutAttributes # 
ToQuery PutAttributes # 
type Rep PutAttributes # 
type Rep PutAttributes = D1 * (MetaData "PutAttributes" "Network.AWS.ECS.PutAttributes" "amazonka-ecs-1.6.0-4Qar3fovWkRKnmpKYCcmOr" 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 # 

Request Lenses

paCluster :: Lens' PutAttributes (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.

paAttributes :: Lens' PutAttributes [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.

Destructuring the Response

putAttributesResponse #

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 #

See: putAttributesResponse smart constructor.

Instances

Eq PutAttributesResponse # 
Data PutAttributesResponse # 

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

Methods

rnf :: PutAttributesResponse -> () #

type Rep PutAttributesResponse # 
type Rep PutAttributesResponse = D1 * (MetaData "PutAttributesResponse" "Network.AWS.ECS.PutAttributes" "amazonka-ecs-1.6.0-4Qar3fovWkRKnmpKYCcmOr" 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] #

The attributes applied to your resource.

parsResponseStatus :: Lens' PutAttributesResponse Int #

  • - | The response status code.