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 |
Returns a list of the tags assigned to the specified resource.
For information about the ID format for each supported resource type, see AddTagsToResource.
Synopsis
- data ListTagsForResource = ListTagsForResource' {}
- newListTagsForResource :: ResourceTypeForTagging -> Text -> ListTagsForResource
- listTagsForResource_resourceType :: Lens' ListTagsForResource ResourceTypeForTagging
- listTagsForResource_resourceId :: Lens' ListTagsForResource Text
- data ListTagsForResourceResponse = ListTagsForResourceResponse' {
- tagList :: Maybe [Tag]
- httpStatus :: Int
- newListTagsForResourceResponse :: Int -> ListTagsForResourceResponse
- listTagsForResourceResponse_tagList :: Lens' ListTagsForResourceResponse (Maybe [Tag])
- listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
Creating a Request
data ListTagsForResource Source #
See: newListTagsForResource
smart constructor.
ListTagsForResource' | |
|
Instances
newListTagsForResource Source #
Create a value of ListTagsForResource
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:resourceType:ListTagsForResource'
, listTagsForResource_resourceType
- Returns a list of tags for a specific resource type.
$sel:resourceId:ListTagsForResource'
, listTagsForResource_resourceId
- The resource ID for which you want to see a list of tags.
Request Lenses
listTagsForResource_resourceType :: Lens' ListTagsForResource ResourceTypeForTagging Source #
Returns a list of tags for a specific resource type.
listTagsForResource_resourceId :: Lens' ListTagsForResource Text Source #
The resource ID for which you want to see a list of tags.
Destructuring the Response
data ListTagsForResourceResponse Source #
See: newListTagsForResourceResponse
smart constructor.
ListTagsForResourceResponse' | |
|
Instances
newListTagsForResourceResponse Source #
Create a value of ListTagsForResourceResponse
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:tagList:ListTagsForResourceResponse'
, listTagsForResourceResponse_tagList
- A list of tags.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_tagList :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #
A list of tags.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.