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 |
Lists the tags for the trail in the current region.
This operation returns paginated results.
Synopsis
- data ListTags = ListTags' {
- nextToken :: Maybe Text
- resourceIdList :: [Text]
- newListTags :: ListTags
- listTags_nextToken :: Lens' ListTags (Maybe Text)
- listTags_resourceIdList :: Lens' ListTags [Text]
- data ListTagsResponse = ListTagsResponse' {
- nextToken :: Maybe Text
- resourceTagList :: Maybe [ResourceTag]
- httpStatus :: Int
- newListTagsResponse :: Int -> ListTagsResponse
- listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text)
- listTagsResponse_resourceTagList :: Lens' ListTagsResponse (Maybe [ResourceTag])
- listTagsResponse_httpStatus :: Lens' ListTagsResponse Int
Creating a Request
Specifies a list of trail tags to return.
See: newListTags
smart constructor.
ListTags' | |
|
Instances
newListTags :: ListTags Source #
Create a value of ListTags
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:nextToken:ListTags'
, listTags_nextToken
- Reserved for future use.
$sel:resourceIdList:ListTags'
, listTags_resourceIdList
- Specifies a list of trail ARNs whose tags will be listed. The list has a
limit of 20 ARNs. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Request Lenses
listTags_resourceIdList :: Lens' ListTags [Text] Source #
Specifies a list of trail ARNs whose tags will be listed. The list has a limit of 20 ARNs. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Destructuring the Response
data ListTagsResponse Source #
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: newListTagsResponse
smart constructor.
ListTagsResponse' | |
|
Instances
Create a value of ListTagsResponse
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:nextToken:ListTags'
, listTagsResponse_nextToken
- Reserved for future use.
$sel:resourceTagList:ListTagsResponse'
, listTagsResponse_resourceTagList
- A list of resource tags.
$sel:httpStatus:ListTagsResponse'
, listTagsResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsResponse_nextToken :: Lens' ListTagsResponse (Maybe Text) Source #
Reserved for future use.
listTagsResponse_resourceTagList :: Lens' ListTagsResponse (Maybe [ResourceTag]) Source #
A list of resource tags.
listTagsResponse_httpStatus :: Lens' ListTagsResponse Int Source #
The response's http status code.