Copyright | (c) 2013-2021 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 |
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
- data PutAttributes = PutAttributes' {
- cluster :: Maybe Text
- attributes :: [Attribute]
- newPutAttributes :: PutAttributes
- putAttributes_cluster :: Lens' PutAttributes (Maybe Text)
- putAttributes_attributes :: Lens' PutAttributes [Attribute]
- data PutAttributesResponse = PutAttributesResponse' {
- attributes :: Maybe [Attribute]
- httpStatus :: Int
- newPutAttributesResponse :: Int -> PutAttributesResponse
- putAttributesResponse_attributes :: Lens' PutAttributesResponse (Maybe [Attribute])
- putAttributesResponse_httpStatus :: Lens' PutAttributesResponse Int
Creating a Request
data PutAttributes Source #
See: newPutAttributes
smart constructor.
PutAttributes' | |
|
Instances
newPutAttributes :: PutAttributes Source #
Create a value of PutAttributes
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cluster:PutAttributes'
, putAttributes_cluster
- 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.
$sel:attributes:PutAttributes'
, putAttributes_attributes
- 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.
Request Lenses
putAttributes_cluster :: 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.
putAttributes_attributes :: 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
data PutAttributesResponse Source #
See: newPutAttributesResponse
smart constructor.
PutAttributesResponse' | |
|
Instances
newPutAttributesResponse Source #
Create a value of PutAttributesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attributes:PutAttributes'
, putAttributesResponse_attributes
- The attributes applied to your resource.
$sel:httpStatus:PutAttributesResponse'
, putAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
putAttributesResponse_attributes :: Lens' PutAttributesResponse (Maybe [Attribute]) Source #
The attributes applied to your resource.
putAttributesResponse_httpStatus :: Lens' PutAttributesResponse Int Source #
The response's http status code.