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

Description

Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.

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.

Synopsis

Creating a Request

data DisableVpcClassicLink Source #

See: newDisableVpcClassicLink smart constructor.

Constructors

DisableVpcClassicLink' 

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

newDisableVpcClassicLink Source #

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

DisableVpcClassicLink, disableVpcClassicLink_vpcId - The ID of the VPC.

Request Lenses

disableVpcClassicLink_dryRun :: Lens' DisableVpcClassicLink (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 DisableVpcClassicLinkResponse Source #

See: newDisableVpcClassicLinkResponse smart constructor.

Constructors

DisableVpcClassicLinkResponse' 

Fields

Instances

Instances details
Generic DisableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableVpcClassicLink

Associated Types

type Rep DisableVpcClassicLinkResponse :: Type -> Type #

Read DisableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableVpcClassicLink

Show DisableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableVpcClassicLink

NFData DisableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableVpcClassicLink

Eq DisableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableVpcClassicLink

type Rep DisableVpcClassicLinkResponse Source # 
Instance details

Defined in Amazonka.EC2.DisableVpcClassicLink

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

newDisableVpcClassicLinkResponse Source #

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

$sel:httpStatus:DisableVpcClassicLinkResponse', disableVpcClassicLinkResponse_httpStatus - The response's http status code.

Response Lenses

disableVpcClassicLinkResponse_return :: Lens' DisableVpcClassicLinkResponse (Maybe Bool) Source #

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