amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DescribeClassicLinkInstances

Description

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

Creating a Request

data DescribeClassicLinkInstances Source #

See: newDescribeClassicLinkInstances smart constructor.

Constructors

DescribeClassicLinkInstances' 

Fields

  • dryRun :: Maybe Bool

    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.

  • filters :: Maybe [Filter]

    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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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.

  • instanceIds :: Maybe [Text]

    One or more instance IDs. Must be instances linked to a VPC through ClassicLink.

  • maxResults :: Maybe Natural

    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.

  • nextToken :: Maybe Text

    The token for the next page of results.

Instances

Instances details
ToHeaders DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

ToPath DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

ToQuery DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

AWSPager DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

AWSRequest DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Generic DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Associated Types

type Rep DescribeClassicLinkInstances :: Type -> Type #

Read DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Show DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

NFData DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Eq DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Hashable DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

type AWSResponse DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

type Rep DescribeClassicLinkInstances Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

type Rep DescribeClassicLinkInstances = D1 ('MetaData "DescribeClassicLinkInstances" "Amazonka.EC2.DescribeClassicLinkInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeClassicLinkInstances'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "instanceIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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 key Owner and the value TeamA, specify tag:Owner for the filter name and TeamA 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.

Destructuring the Response

data DescribeClassicLinkInstancesResponse Source #

Constructors

DescribeClassicLinkInstancesResponse' 

Fields

Instances

Instances details
Generic DescribeClassicLinkInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Read DescribeClassicLinkInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Show DescribeClassicLinkInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

NFData DescribeClassicLinkInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

Eq DescribeClassicLinkInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

type Rep DescribeClassicLinkInstancesResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeClassicLinkInstances

type Rep DescribeClassicLinkInstancesResponse = D1 ('MetaData "DescribeClassicLinkInstancesResponse" "Amazonka.EC2.DescribeClassicLinkInstances" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeClassicLinkInstancesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instances") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ClassicLinkInstance])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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_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.