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

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.

Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it's stopped.

Synopsis

Creating a Request

data DetachClassicLinkVpc Source #

See: newDetachClassicLinkVpc smart constructor.

Constructors

DetachClassicLinkVpc' 

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.

  • instanceId :: Text

    The ID of the instance to unlink from the VPC.

  • vpcId :: Text

    The ID of the VPC to which the instance is linked.

Instances

Instances details
ToHeaders DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

ToPath DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

ToQuery DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

AWSRequest DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Associated Types

type AWSResponse DetachClassicLinkVpc #

Generic DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Associated Types

type Rep DetachClassicLinkVpc :: Type -> Type #

Read DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Show DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

NFData DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Methods

rnf :: DetachClassicLinkVpc -> () #

Eq DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Hashable DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

type AWSResponse DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

type Rep DetachClassicLinkVpc Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

type Rep DetachClassicLinkVpc = D1 ('MetaData "DetachClassicLinkVpc" "Amazonka.EC2.DetachClassicLinkVpc" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DetachClassicLinkVpc'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDetachClassicLinkVpc Source #

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

DetachClassicLinkVpc, detachClassicLinkVpc_instanceId - The ID of the instance to unlink from the VPC.

DetachClassicLinkVpc, detachClassicLinkVpc_vpcId - The ID of the VPC to which the instance is linked.

Request Lenses

detachClassicLinkVpc_dryRun :: Lens' DetachClassicLinkVpc (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.

detachClassicLinkVpc_instanceId :: Lens' DetachClassicLinkVpc Text Source #

The ID of the instance to unlink from the VPC.

detachClassicLinkVpc_vpcId :: Lens' DetachClassicLinkVpc Text Source #

The ID of the VPC to which the instance is linked.

Destructuring the Response

data DetachClassicLinkVpcResponse Source #

See: newDetachClassicLinkVpcResponse smart constructor.

Constructors

DetachClassicLinkVpcResponse' 

Fields

Instances

Instances details
Generic DetachClassicLinkVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Associated Types

type Rep DetachClassicLinkVpcResponse :: Type -> Type #

Read DetachClassicLinkVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Show DetachClassicLinkVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

NFData DetachClassicLinkVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

Eq DetachClassicLinkVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

type Rep DetachClassicLinkVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DetachClassicLinkVpc

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

newDetachClassicLinkVpcResponse Source #

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

$sel:httpStatus:DetachClassicLinkVpcResponse', detachClassicLinkVpcResponse_httpStatus - The response's http status code.

Response Lenses

detachClassicLinkVpcResponse_return :: Lens' DetachClassicLinkVpcResponse (Maybe Bool) Source #

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