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 |
Deletes one or more custom attributes from an Amazon ECS resource.
Synopsis
- data DeleteAttributes = DeleteAttributes' {
- cluster :: Maybe Text
- attributes :: [Attribute]
- newDeleteAttributes :: DeleteAttributes
- deleteAttributes_cluster :: Lens' DeleteAttributes (Maybe Text)
- deleteAttributes_attributes :: Lens' DeleteAttributes [Attribute]
- data DeleteAttributesResponse = DeleteAttributesResponse' {
- attributes :: Maybe [Attribute]
- httpStatus :: Int
- newDeleteAttributesResponse :: Int -> DeleteAttributesResponse
- deleteAttributesResponse_attributes :: Lens' DeleteAttributesResponse (Maybe [Attribute])
- deleteAttributesResponse_httpStatus :: Lens' DeleteAttributesResponse Int
Creating a Request
data DeleteAttributes Source #
See: newDeleteAttributes
smart constructor.
DeleteAttributes' | |
|
Instances
newDeleteAttributes :: DeleteAttributes Source #
Create a value of DeleteAttributes
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:DeleteAttributes'
, deleteAttributes_cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
contains the resource to delete attributes. If you do not specify a
cluster, the default cluster is assumed.
$sel:attributes:DeleteAttributes'
, deleteAttributes_attributes
- The attributes to delete from your resource. You can specify up to 10
attributes per request. For custom attributes, specify the attribute
name and target ID, but do not specify the value. If you specify the
target ID using the short form, you must also specify the target type.
Request Lenses
deleteAttributes_cluster :: Lens' DeleteAttributes (Maybe Text) Source #
The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete attributes. If you do not specify a cluster, the default cluster is assumed.
deleteAttributes_attributes :: Lens' DeleteAttributes [Attribute] Source #
The attributes to delete from your resource. You can specify up to 10 attributes per request. For custom attributes, specify the attribute name and target ID, but do not specify the value. If you specify the target ID using the short form, you must also specify the target type.
Destructuring the Response
data DeleteAttributesResponse Source #
See: newDeleteAttributesResponse
smart constructor.
DeleteAttributesResponse' | |
|
Instances
newDeleteAttributesResponse Source #
Create a value of DeleteAttributesResponse
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:DeleteAttributes'
, deleteAttributesResponse_attributes
- A list of attribute objects that were successfully deleted from your
resource.
$sel:httpStatus:DeleteAttributesResponse'
, deleteAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
deleteAttributesResponse_attributes :: Lens' DeleteAttributesResponse (Maybe [Attribute]) Source #
A list of attribute objects that were successfully deleted from your resource.
deleteAttributesResponse_httpStatus :: Lens' DeleteAttributesResponse Int Source #
The response's http status code.