Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Adds one or more tags to a trail or event data store, 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 or event data store that applies to all Amazon Web Services Regions only from the Region in which the trail or event data store was created (also known as its home region).
Synopsis
- data AddTags = AddTags' {
- resourceId :: Text
- tagsList :: [Tag]
- newAddTags :: Text -> AddTags
- addTags_resourceId :: Lens' AddTags Text
- addTags_tagsList :: Lens' AddTags [Tag]
- data AddTagsResponse = AddTagsResponse' {
- httpStatus :: Int
- newAddTagsResponse :: Int -> AddTagsResponse
- addTagsResponse_httpStatus :: Lens' AddTagsResponse Int
Creating a Request
Specifies the tags to add to a trail or event data store.
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:
AddTags
, addTags_resourceId
- Specifies the ARN of the trail or event data store 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
AddTags
, addTags_tagsList
- Contains a list of tags, up to a limit of 50
Request Lenses
addTags_resourceId :: Lens' AddTags Text Source #
Specifies the ARN of the trail or event data store 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.