| 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 |
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
| Eq GetTags Source # | |
| Read GetTags Source # | |
| Show GetTags Source # | |
| Generic GetTags Source # | |
| NFData GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags | |
| Hashable GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags | |
| AWSRequest GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags Associated Types type AWSResponse GetTags # Methods request :: GetTags -> Request GetTags # response :: MonadResource m => Logger -> Service -> Proxy GetTags -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetTags))) # | |
| ToHeaders GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags | |
| ToPath GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags Methods toPath :: GetTags -> ByteString # | |
| ToQuery GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags Methods toQuery :: GetTags -> QueryString # | |
| type Rep GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags | |
| type AWSResponse GetTags Source # | |
Defined in Amazonka.ResourceGroups.GetTags | |
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:
$sel:arn: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:
$sel:arn: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.