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 |
Adds one or more tags to a trail, up to a limit of 50. Overwrites an existing tag's value when a new value is specified for an existing tag key. Tag key names must be unique for a trail; you cannot have two keys with the same name but different values. If you specify a key without a value, the tag will be created with the specified key and a value of null. You can tag a trail that applies to all Amazon Web Services Regions only from the Region in which the trail was created (also known as its home region).
Synopsis
- data AddTags = AddTags' {
- tagsList :: Maybe [Tag]
- resourceId :: Text
- newAddTags :: Text -> AddTags
- addTags_tagsList :: Lens' AddTags (Maybe [Tag])
- addTags_resourceId :: Lens' AddTags Text
- data AddTagsResponse = AddTagsResponse' {
- httpStatus :: Int
- newAddTagsResponse :: Int -> AddTagsResponse
- addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
Creating a Request
Specifies the tags to add to a trail.
See: newAddTags
smart constructor.
AddTags' | |
|
Instances
Create a value of AddTags
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:AddTags'
, addTags_tagsList
- Contains a list of tags, up to a limit of 50
$sel:resourceId:AddTags'
, addTags_resourceId
- 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-2:123456789012:trail/MyTrail
Request Lenses
addTags_tagsList :: Lens' AddTags (Maybe [Tag]) Source #
Contains a list of tags, up to a limit of 50
addTags_resourceId :: 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-2:123456789012:trail/MyTrail
Destructuring the Response
data AddTagsResponse Source #
Returns the objects or data if successful. Otherwise, returns an error.
See: newAddTagsResponse
smart constructor.
AddTagsResponse' | |
|
Instances
Create a value of AddTagsResponse
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:AddTagsResponse'
, addTagsResponse_httpStatus
- The response's http status code.
Response Lenses
addTagsResponse_httpStatus :: Lens' AddTagsResponse Int Source #
The response's http status code.