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

Description

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.

Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.

Synopsis

Creating a Request

data EnableVpcClassicLink Source #

See: newEnableVpcClassicLink smart constructor.

Constructors

EnableVpcClassicLink' 

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.

  • vpcId :: Text

    The ID of the VPC.

Instances

newEnableVpcClassicLink Source #

Create a value of EnableVpcClassicLink 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:EnableVpcClassicLink', enableVpcClassicLink_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.

EnableVpcClassicLink, enableVpcClassicLink_vpcId - The ID of the VPC.

Request Lenses

enableVpcClassicLink_dryRun :: Lens' EnableVpcClassicLink (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.

Destructuring the Response

data EnableVpcClassicLinkResponse Source #

See: newEnableVpcClassicLinkResponse smart constructor.

Constructors

EnableVpcClassicLinkResponse' 

Fields

Instances

Instances details
Generic EnableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableVpcClassicLink

Associated Types

type Rep EnableVpcClassicLinkResponse :: Type -> Type #

Read EnableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableVpcClassicLink

Show EnableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableVpcClassicLink

NFData EnableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableVpcClassicLink

Eq EnableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableVpcClassicLink

type Rep EnableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.EnableVpcClassicLink

type Rep EnableVpcClassicLinkResponse = D1 ('MetaData "EnableVpcClassicLinkResponse" "Amazonka.EC2.EnableVpcClassicLink" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "EnableVpcClassicLinkResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newEnableVpcClassicLinkResponse Source #

Create a value of EnableVpcClassicLinkResponse 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:return':EnableVpcClassicLinkResponse', enableVpcClassicLinkResponse_return - Returns true if the request succeeds; otherwise, it returns an error.

$sel:httpStatus:EnableVpcClassicLinkResponse', enableVpcClassicLinkResponse_httpStatus - The response's http status code.

Response Lenses

enableVpcClassicLinkResponse_return :: Lens' EnableVpcClassicLinkResponse (Maybe Bool) Source #

Returns true if the request succeeds; otherwise, it returns an error.