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

Description

Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

Synopsis

Creating a Request

data DeleteSubnet Source #

See: newDeleteSubnet smart constructor.

Constructors

DeleteSubnet' 

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.

  • subnetId :: Text

    The ID of the subnet.

Instances

Instances details
ToHeaders DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

ToPath DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

ToQuery DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

AWSRequest DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

Associated Types

type AWSResponse DeleteSubnet #

Generic DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

Associated Types

type Rep DeleteSubnet :: Type -> Type #

Read DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

Show DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

NFData DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

Methods

rnf :: DeleteSubnet -> () #

Eq DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

Hashable DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

type AWSResponse DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

type Rep DeleteSubnet Source # 
Instance details

Defined in Amazonka.EC2.DeleteSubnet

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

newDeleteSubnet Source #

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

DeleteSubnet, deleteSubnet_subnetId - The ID of the subnet.

Request Lenses

deleteSubnet_dryRun :: Lens' DeleteSubnet (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 DeleteSubnetResponse Source #

See: newDeleteSubnetResponse smart constructor.

Constructors

DeleteSubnetResponse' 

newDeleteSubnetResponse :: DeleteSubnetResponse Source #

Create a value of DeleteSubnetResponse with all optional fields omitted.

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