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 all metadata tags attached to an DMS resource, including replication instance, endpoint, security group, and migration task. For more information, see Tag data type description.
Synopsis
- data ListTagsForResource = ListTagsForResource' {
- resourceArn :: Maybe Text
- resourceArnList :: Maybe [Text]
- newListTagsForResource :: ListTagsForResource
- listTagsForResource_resourceArn :: Lens' ListTagsForResource (Maybe Text)
- listTagsForResource_resourceArnList :: Lens' ListTagsForResource (Maybe [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 :: ListTagsForResource 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:resourceArn:ListTagsForResource'
, listTagsForResource_resourceArn
- The Amazon Resource Name (ARN) string that uniquely identifies the DMS
resource to list tags for. This returns a list of keys (names of tags)
created for the resource and their associated tag values.
$sel:resourceArnList:ListTagsForResource'
, listTagsForResource_resourceArnList
- List of ARNs that identify multiple DMS resources that you want to list
tags for. This returns a list of keys (tag names) and their associated
tag values. It also returns each tag's associated ResourceArn
value,
which is the ARN of the resource for which each listed tag is created.
Request Lenses
listTagsForResource_resourceArn :: Lens' ListTagsForResource (Maybe Text) Source #
The Amazon Resource Name (ARN) string that uniquely identifies the DMS resource to list tags for. This returns a list of keys (names of tags) created for the resource and their associated tag values.
listTagsForResource_resourceArnList :: Lens' ListTagsForResource (Maybe [Text]) Source #
List of ARNs that identify multiple DMS resources that you want to list
tags for. This returns a list of keys (tag names) and their associated
tag values. It also returns each tag's associated ResourceArn
value,
which is the ARN of the resource for which each listed tag is created.
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 for the resource.
$sel:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
listTagsForResourceResponse_tagList :: Lens' ListTagsForResourceResponse (Maybe [Tag]) Source #
A list of tags for the resource.
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.