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 one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances.
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
This operation returns paginated results.
Synopsis
- data DescribeClassicLinkInstances = DescribeClassicLinkInstances' {}
- newDescribeClassicLinkInstances :: DescribeClassicLinkInstances
- describeClassicLinkInstances_dryRun :: Lens' DescribeClassicLinkInstances (Maybe Bool)
- describeClassicLinkInstances_filters :: Lens' DescribeClassicLinkInstances (Maybe [Filter])
- describeClassicLinkInstances_instanceIds :: Lens' DescribeClassicLinkInstances (Maybe [Text])
- describeClassicLinkInstances_maxResults :: Lens' DescribeClassicLinkInstances (Maybe Natural)
- describeClassicLinkInstances_nextToken :: Lens' DescribeClassicLinkInstances (Maybe Text)
- data DescribeClassicLinkInstancesResponse = DescribeClassicLinkInstancesResponse' {
- instances :: Maybe [ClassicLinkInstance]
- nextToken :: Maybe Text
- httpStatus :: Int
- newDescribeClassicLinkInstancesResponse :: Int -> DescribeClassicLinkInstancesResponse
- describeClassicLinkInstancesResponse_instances :: Lens' DescribeClassicLinkInstancesResponse (Maybe [ClassicLinkInstance])
- describeClassicLinkInstancesResponse_nextToken :: Lens' DescribeClassicLinkInstancesResponse (Maybe Text)
- describeClassicLinkInstancesResponse_httpStatus :: Lens' DescribeClassicLinkInstancesResponse Int
Creating a Request
data DescribeClassicLinkInstances Source #
See: newDescribeClassicLinkInstances
smart constructor.
DescribeClassicLinkInstances' | |
|
Instances
newDescribeClassicLinkInstances :: DescribeClassicLinkInstances Source #
Create a value of DescribeClassicLinkInstances
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:DescribeClassicLinkInstances'
, describeClassicLinkInstances_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:DescribeClassicLinkInstances'
, describeClassicLinkInstances_filters
- One or more filters.
group-id
- The ID of a VPC security group that's associated with the instance.instance-id
- The ID of the instance.tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value.tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.vpc-id
- The ID of the VPC to which the instance is linked.vpc-id
- The ID of the VPC that the instance is linked to.
DescribeClassicLinkInstances
, describeClassicLinkInstances_instanceIds
- One or more instance IDs. Must be instances linked to a VPC through
ClassicLink.
$sel:maxResults:DescribeClassicLinkInstances'
, describeClassicLinkInstances_maxResults
- The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
Constraint: If the value is greater than 1000, we return only 1000 items.
DescribeClassicLinkInstances
, describeClassicLinkInstances_nextToken
- The token for the next page of results.
Request Lenses
describeClassicLinkInstances_dryRun :: Lens' DescribeClassicLinkInstances (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
.
describeClassicLinkInstances_filters :: Lens' DescribeClassicLinkInstances (Maybe [Filter]) Source #
One or more filters.
group-id
- The ID of a VPC security group that's associated with the instance.instance-id
- The ID of the instance.tag
:<key> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value. For example, to find all resources that have a tag with the keyOwner
and the valueTeamA
, specifytag:Owner
for the filter name andTeamA
for the filter value.tag-key
- The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.vpc-id
- The ID of the VPC to which the instance is linked.vpc-id
- The ID of the VPC that the instance is linked to.
describeClassicLinkInstances_instanceIds :: Lens' DescribeClassicLinkInstances (Maybe [Text]) Source #
One or more instance IDs. Must be instances linked to a VPC through ClassicLink.
describeClassicLinkInstances_maxResults :: Lens' DescribeClassicLinkInstances (Maybe Natural) Source #
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
Constraint: If the value is greater than 1000, we return only 1000 items.
describeClassicLinkInstances_nextToken :: Lens' DescribeClassicLinkInstances (Maybe Text) Source #
The token for the next page of results.
Destructuring the Response
data DescribeClassicLinkInstancesResponse Source #
See: newDescribeClassicLinkInstancesResponse
smart constructor.
DescribeClassicLinkInstancesResponse' | |
|
Instances
newDescribeClassicLinkInstancesResponse Source #
Create a value of DescribeClassicLinkInstancesResponse
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:
DescribeClassicLinkInstancesResponse
, describeClassicLinkInstancesResponse_instances
- Information about one or more linked EC2-Classic instances.
DescribeClassicLinkInstances
, describeClassicLinkInstancesResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:httpStatus:DescribeClassicLinkInstancesResponse'
, describeClassicLinkInstancesResponse_httpStatus
- The response's http status code.
Response Lenses
describeClassicLinkInstancesResponse_instances :: Lens' DescribeClassicLinkInstancesResponse (Maybe [ClassicLinkInstance]) Source #
Information about one or more linked EC2-Classic instances.
describeClassicLinkInstancesResponse_nextToken :: Lens' DescribeClassicLinkInstancesResponse (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.
describeClassicLinkInstancesResponse_httpStatus :: Lens' DescribeClassicLinkInstancesResponse Int Source #
The response's http status code.