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 tags for one health check or hosted zone.
For information about using tags for cost allocation, see Using Cost Allocation Tags in the Billing and Cost Management User Guide.
Synopsis
- data ListTagsForResource = ListTagsForResource' {}
- newListTagsForResource :: TagResourceType -> Text -> ListTagsForResource
- listTagsForResource_resourceType :: Lens' ListTagsForResource TagResourceType
- listTagsForResource_resourceId :: Lens' ListTagsForResource Text
- data ListTagsForResourceResponse = ListTagsForResourceResponse' {}
- newListTagsForResourceResponse :: Int -> ResourceTagSet -> ListTagsForResourceResponse
- listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int
- listTagsForResourceResponse_resourceTagSet :: Lens' ListTagsForResourceResponse ResourceTagSet
Creating a Request
data ListTagsForResource Source #
A complex type containing information about a request for a list of the tags that are associated with an individual resource.
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
- The type of the resource.
- The resource type for health checks is
healthcheck
. - The resource type for hosted zones is
hostedzone
.
$sel:resourceId:ListTagsForResource'
, listTagsForResource_resourceId
- The ID of the resource for which you want to retrieve tags.
Request Lenses
listTagsForResource_resourceType :: Lens' ListTagsForResource TagResourceType Source #
The type of the resource.
- The resource type for health checks is
healthcheck
. - The resource type for hosted zones is
hostedzone
.
listTagsForResource_resourceId :: Lens' ListTagsForResource Text Source #
The ID of the resource for which you want to retrieve tags.
Destructuring the Response
data ListTagsForResourceResponse Source #
A complex type that contains information about the health checks or hosted zones for which you want to list tags.
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:httpStatus:ListTagsForResourceResponse'
, listTagsForResourceResponse_httpStatus
- The response's http status code.
$sel:resourceTagSet:ListTagsForResourceResponse'
, listTagsForResourceResponse_resourceTagSet
- A ResourceTagSet
containing tags associated with the specified
resource.
Response Lenses
listTagsForResourceResponse_httpStatus :: Lens' ListTagsForResourceResponse Int Source #
The response's http status code.
listTagsForResourceResponse_resourceTagSet :: Lens' ListTagsForResourceResponse ResourceTagSet Source #
A ResourceTagSet
containing tags associated with the specified
resource.