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 # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Data PutAttributes # 
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 # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Show PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Generic PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Associated Types

type Rep PutAttributes :: * -> * #

Hashable PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

ToJSON PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

AWSRequest PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Associated Types

type Rs PutAttributes :: * #

ToHeaders PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

ToPath PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

ToQuery PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

NFData PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Methods

rnf :: PutAttributes -> () #

type Rep PutAttributes # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

type Rep PutAttributes = D1 (MetaData "PutAttributes" "Network.AWS.ECS.PutAttributes" "amazonka-ecs-1.6.0-60gqTuvjtspGH2qH8tHKtA" 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 # 
Instance details

Defined in Network.AWS.ECS.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 # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Data PutAttributesResponse # 
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 # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Show PutAttributesResponse # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Generic PutAttributesResponse # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Associated Types

type Rep PutAttributesResponse :: * -> * #

NFData PutAttributesResponse # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

Methods

rnf :: PutAttributesResponse -> () #

type Rep PutAttributesResponse # 
Instance details

Defined in Network.AWS.ECS.PutAttributes

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

The attributes applied to your resource.

parsResponseStatus :: Lens' PutAttributesResponse Int #

  • - | The response status code.