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

Description

Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a default subnet in the Amazon Virtual Private Cloud User Guide.

Synopsis

Creating a Request

data CreateDefaultSubnet Source #

See: newCreateDefaultSubnet smart constructor.

Constructors

CreateDefaultSubnet' 

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.

  • ipv6Native :: Maybe Bool

    Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.

  • availabilityZone :: Text

    The Availability Zone in which to create the default subnet.

Instances

Instances details
ToHeaders CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

ToPath CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

ToQuery CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

AWSRequest CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Associated Types

type AWSResponse CreateDefaultSubnet #

Generic CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Associated Types

type Rep CreateDefaultSubnet :: Type -> Type #

Read CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Show CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

NFData CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Methods

rnf :: CreateDefaultSubnet -> () #

Eq CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Hashable CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

type AWSResponse CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

type Rep CreateDefaultSubnet Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

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

newCreateDefaultSubnet Source #

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

CreateDefaultSubnet, createDefaultSubnet_ipv6Native - Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.

CreateDefaultSubnet, createDefaultSubnet_availabilityZone - The Availability Zone in which to create the default subnet.

Request Lenses

createDefaultSubnet_dryRun :: Lens' CreateDefaultSubnet (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.

createDefaultSubnet_ipv6Native :: Lens' CreateDefaultSubnet (Maybe Bool) Source #

Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.

createDefaultSubnet_availabilityZone :: Lens' CreateDefaultSubnet Text Source #

The Availability Zone in which to create the default subnet.

Destructuring the Response

data CreateDefaultSubnetResponse Source #

See: newCreateDefaultSubnetResponse smart constructor.

Constructors

CreateDefaultSubnetResponse' 

Fields

Instances

Instances details
Generic CreateDefaultSubnetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Associated Types

type Rep CreateDefaultSubnetResponse :: Type -> Type #

Read CreateDefaultSubnetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Show CreateDefaultSubnetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

NFData CreateDefaultSubnetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

Eq CreateDefaultSubnetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

type Rep CreateDefaultSubnetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultSubnet

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

newCreateDefaultSubnetResponse Source #

Create a value of CreateDefaultSubnetResponse 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:

CreateDefaultSubnetResponse, createDefaultSubnetResponse_subnet - Information about the subnet.

$sel:httpStatus:CreateDefaultSubnetResponse', createDefaultSubnetResponse_httpStatus - The response's http status code.

Response Lenses