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

Description

Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.

Synopsis

Creating a Request

data DeleteVpc Source #

See: newDeleteVpc smart constructor.

Constructors

DeleteVpc' 

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

Instances details
ToHeaders DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Methods

toHeaders :: DeleteVpc -> [Header] #

ToPath DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

ToQuery DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

AWSRequest DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Associated Types

type AWSResponse DeleteVpc #

Generic DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Associated Types

type Rep DeleteVpc :: Type -> Type #

Read DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Show DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

NFData DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Methods

rnf :: DeleteVpc -> () #

Eq DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Hashable DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

type AWSResponse DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

type Rep DeleteVpc Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

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

newDeleteVpc Source #

Arguments

:: Text

DeleteVpc

-> DeleteVpc 

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

DeleteVpc, deleteVpc_vpcId - The ID of the VPC.

Request Lenses

deleteVpc_dryRun :: Lens' DeleteVpc (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 DeleteVpcResponse Source #

See: newDeleteVpcResponse smart constructor.

Constructors

DeleteVpcResponse' 

Instances

Instances details
Generic DeleteVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Associated Types

type Rep DeleteVpcResponse :: Type -> Type #

Read DeleteVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Show DeleteVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

NFData DeleteVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

Methods

rnf :: DeleteVpcResponse -> () #

Eq DeleteVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

type Rep DeleteVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteVpc

type Rep DeleteVpcResponse = D1 ('MetaData "DeleteVpcResponse" "Amazonka.EC2.DeleteVpc" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteVpcResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteVpcResponse :: DeleteVpcResponse Source #

Create a value of DeleteVpcResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.