Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- putAttributes :: PutAttributes
- data PutAttributes
- paCluster :: Lens' PutAttributes (Maybe Text)
- paAttributes :: Lens' PutAttributes [Attribute]
- putAttributesResponse :: Int -> PutAttributesResponse
- data PutAttributesResponse
- parsAttributes :: Lens' PutAttributesResponse [Attribute]
- parsResponseStatus :: Lens' PutAttributesResponse Int
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
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:
parsAttributes
- The attributes applied to your resource.parsResponseStatus
- -- | The response status code.
data PutAttributesResponse Source #
See: putAttributesResponse
smart constructor.
Instances
Response Lenses
parsAttributes :: Lens' PutAttributesResponse [Attribute] Source #
The attributes applied to your resource.
parsResponseStatus :: Lens' PutAttributesResponse Int Source #
- - | The response status code.