Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Adds one or more tags to a trail, up to a limit of 10. Tags must be unique per trail. Overwrites an existing tag's value when a new value is specified for an existing tag key. If you specify a key without a value, the tag will be created with the specified key and a value of null.
See: AWS API Reference for AddTags.
- addTags :: Text -> AddTags
- data AddTags
- atTagsList :: Lens' AddTags [Tag]
- atResourceId :: Lens' AddTags Text
- addTagsResponse :: Int -> AddTagsResponse
- data AddTagsResponse
- atrsResponseStatus :: Lens' AddTagsResponse Int
Creating a Request
Creates a value of AddTags
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Specifies the tags to add to a trail.
See: addTags
smart constructor.
Request Lenses
atTagsList :: Lens' AddTags [Tag] Source
Contains a list of CloudTrail tags, up to a limit of 10.
atResourceId :: Lens' AddTags Text Source
Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is 'arn:aws:cloudtrail:us-east-1:123456789012:trail\/MyTrail'.
Destructuring the Response
Creates a value of AddTagsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AddTagsResponse Source
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: addTagsResponse
smart constructor.
Response Lenses
atrsResponseStatus :: Lens' AddTagsResponse Int Source
The response status code.