| 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 |
Amazonka.CloudTrail.RemoveTags
Description
Removes the specified tags from a trail.
Synopsis
- data RemoveTags = RemoveTags' {
- tagsList :: Maybe [Tag]
- resourceId :: Text
- newRemoveTags :: Text -> RemoveTags
- removeTags_tagsList :: Lens' RemoveTags (Maybe [Tag])
- removeTags_resourceId :: Lens' RemoveTags Text
- data RemoveTagsResponse = RemoveTagsResponse' {
- httpStatus :: Int
- newRemoveTagsResponse :: Int -> RemoveTagsResponse
- removeTagsResponse_httpStatus :: Lens' RemoveTagsResponse Int
Creating a Request
data RemoveTags Source #
Specifies the tags to remove from a trail.
See: newRemoveTags smart constructor.
Constructors
| RemoveTags' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> RemoveTags |
Create a value of RemoveTags 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:tagsList:RemoveTags', removeTags_tagsList - Specifies a list of tags to be removed.
$sel:resourceId:RemoveTags', removeTags_resourceId - Specifies the ARN of the trail from which tags should be removed. The
format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Request Lenses
removeTags_tagsList :: Lens' RemoveTags (Maybe [Tag]) Source #
Specifies a list of tags to be removed.
removeTags_resourceId :: Lens' RemoveTags Text Source #
Specifies the ARN of the trail from which tags should be removed. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Destructuring the Response
data RemoveTagsResponse Source #
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: newRemoveTagsResponse smart constructor.
Constructors
| RemoveTagsResponse' | |
Fields
| |
Instances
newRemoveTagsResponse Source #
Arguments
| :: Int | |
| -> RemoveTagsResponse |
Create a value of RemoveTagsResponse 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:httpStatus:RemoveTagsResponse', removeTagsResponse_httpStatus - The response's http status code.
Response Lenses
removeTagsResponse_httpStatus :: Lens' RemoveTagsResponse Int Source #
The response's http status code.