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 |
Describes the specified tags for your EC2 resources.
For more information about tags, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.
This operation returns paginated results.
Synopsis
- data DescribeTags = DescribeTags' {}
- newDescribeTags :: DescribeTags
- describeTags_dryRun :: Lens' DescribeTags (Maybe Bool)
- describeTags_filters :: Lens' DescribeTags (Maybe [Filter])
- describeTags_maxResults :: Lens' DescribeTags (Maybe Int)
- describeTags_nextToken :: Lens' DescribeTags (Maybe Text)
- data DescribeTagsResponse = DescribeTagsResponse' {
- nextToken :: Maybe Text
- tags :: Maybe [TagDescription]
- httpStatus :: Int
- newDescribeTagsResponse :: Int -> DescribeTagsResponse
- describeTagsResponse_nextToken :: Lens' DescribeTagsResponse (Maybe Text)
- describeTagsResponse_tags :: Lens' DescribeTagsResponse (Maybe [TagDescription])
- describeTagsResponse_httpStatus :: Lens' DescribeTagsResponse Int
Creating a Request
data DescribeTags Source #
See: newDescribeTags
smart constructor.
DescribeTags' | |
|
Instances
newDescribeTags :: DescribeTags Source #
Create a value of DescribeTags
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:dryRun:DescribeTags'
, describeTags_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
$sel:filters:DescribeTags'
, describeTags_filters
- The filters.
key
- The tag key.resource-id
- The ID of the resource.resource-type
- The resource type (customer-gateway
|dedicated-host
|dhcp-options
|elastic-ip
|fleet
|fpga-image
|host-reservation
|image
|instance
|internet-gateway
|key-pair
|launch-template
|natgateway
|network-acl
|network-interface
|placement-group
|reserved-instances
|route-table
|security-group
|snapshot
|spot-instances-request
|subnet
|volume
|vpc
|vpc-endpoint
|vpc-endpoint-service
|vpc-peering-connection
|vpn-connection
|vpn-gateway
).tag
:<key> - The key/value combination of the tag. For example, specify "tag:Owner" for the filter name and "TeamA" for the filter value to find resources with the tag "Owner=TeamA".value
- The tag value.
$sel:maxResults:DescribeTags'
, describeTags_maxResults
- The maximum number of results to return in a single call. This value can
be between 5 and 1000. To retrieve the remaining results, make another
call with the returned NextToken
value.
DescribeTags
, describeTags_nextToken
- The token to retrieve the next page of results.
Request Lenses
describeTags_dryRun :: Lens' DescribeTags (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
describeTags_filters :: Lens' DescribeTags (Maybe [Filter]) Source #
The filters.
key
- The tag key.resource-id
- The ID of the resource.resource-type
- The resource type (customer-gateway
|dedicated-host
|dhcp-options
|elastic-ip
|fleet
|fpga-image
|host-reservation
|image
|instance
|internet-gateway
|key-pair
|launch-template
|natgateway
|network-acl
|network-interface
|placement-group
|reserved-instances
|route-table
|security-group
|snapshot
|spot-instances-request
|subnet
|volume
|vpc
|vpc-endpoint
|vpc-endpoint-service
|vpc-peering-connection
|vpn-connection
|vpn-gateway
).tag
:<key> - The key/value combination of the tag. For example, specify "tag:Owner" for the filter name and "TeamA" for the filter value to find resources with the tag "Owner=TeamA".value
- The tag value.
describeTags_maxResults :: Lens' DescribeTags (Maybe Int) Source #
The maximum number of results to return in a single call. This value can
be between 5 and 1000. To retrieve the remaining results, make another
call with the returned NextToken
value.
describeTags_nextToken :: Lens' DescribeTags (Maybe Text) Source #
The token to retrieve the next page of results.
Destructuring the Response
data DescribeTagsResponse Source #
See: newDescribeTagsResponse
smart constructor.
DescribeTagsResponse' | |
|
Instances
newDescribeTagsResponse Source #
Create a value of DescribeTagsResponse
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:
DescribeTags
, describeTagsResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
DescribeTagsResponse
, describeTagsResponse_tags
- The tags.
$sel:httpStatus:DescribeTagsResponse'
, describeTagsResponse_httpStatus
- The response's http status code.
Response Lenses
describeTagsResponse_nextToken :: Lens' DescribeTagsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
describeTagsResponse_tags :: Lens' DescribeTagsResponse (Maybe [TagDescription]) Source #
The tags.
describeTagsResponse_httpStatus :: Lens' DescribeTagsResponse Int Source #
The response's http status code.