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 |
Amazonka.ResourceGroups.GetTags
Description
Returns a list of tags that are associated with a resource group, specified by an ARN.
Minimum permissions
To run this command, you must have the following permissions:
resource-groups:GetTags
Synopsis
- data GetTags = GetTags' {}
- newGetTags :: Text -> GetTags
- getTags_arn :: Lens' GetTags Text
- data GetTagsResponse = GetTagsResponse' {}
- newGetTagsResponse :: Int -> GetTagsResponse
- getTagsResponse_arn :: Lens' GetTagsResponse (Maybe Text)
- getTagsResponse_tags :: Lens' GetTagsResponse (Maybe (HashMap Text Text))
- getTagsResponse_httpStatus :: Lens' GetTagsResponse Int
Creating a Request
See: newGetTags
smart constructor.
Constructors
GetTags' | |
Instances
Create a value of GetTags
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:
GetTags
, getTags_arn
- The ARN of the resource group whose tags you want to retrieve.
Request Lenses
getTags_arn :: Lens' GetTags Text Source #
The ARN of the resource group whose tags you want to retrieve.
Destructuring the Response
data GetTagsResponse Source #
See: newGetTagsResponse
smart constructor.
Constructors
GetTagsResponse' | |
Instances
Arguments
:: Int | |
-> GetTagsResponse |
Create a value of GetTagsResponse
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:
GetTags
, getTagsResponse_arn
- The ARN of the tagged resource group.
$sel:tags:GetTagsResponse'
, getTagsResponse_tags
- The tags associated with the specified resource group.
$sel:httpStatus:GetTagsResponse'
, getTagsResponse_httpStatus
- The response's http status code.
Response Lenses
getTagsResponse_arn :: Lens' GetTagsResponse (Maybe Text) Source #
The ARN of the tagged resource group.
getTagsResponse_tags :: Lens' GetTagsResponse (Maybe (HashMap Text Text)) Source #
The tags associated with the specified resource group.
getTagsResponse_httpStatus :: Lens' GetTagsResponse Int Source #
The response's http status code.