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

Description

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and default subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.

If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see "I really want a default VPC for my existing EC2 account. Is that possible?" in the Default VPCs FAQ.

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 CreateDefaultVpc Source #

See: newCreateDefaultVpc smart constructor.

Constructors

CreateDefaultVpc' 

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.

Instances

Instances details
ToHeaders CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

ToPath CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

ToQuery CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

AWSRequest CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Associated Types

type AWSResponse CreateDefaultVpc #

Generic CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Associated Types

type Rep CreateDefaultVpc :: Type -> Type #

Read CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Show CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

NFData CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Methods

rnf :: CreateDefaultVpc -> () #

Eq CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Hashable CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

type AWSResponse CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

type Rep CreateDefaultVpc Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

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

newCreateDefaultVpc :: CreateDefaultVpc Source #

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

Request Lenses

createDefaultVpc_dryRun :: Lens' CreateDefaultVpc (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 CreateDefaultVpcResponse Source #

See: newCreateDefaultVpcResponse smart constructor.

Constructors

CreateDefaultVpcResponse' 

Fields

Instances

Instances details
Generic CreateDefaultVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Associated Types

type Rep CreateDefaultVpcResponse :: Type -> Type #

Read CreateDefaultVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Show CreateDefaultVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

NFData CreateDefaultVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

Eq CreateDefaultVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

type Rep CreateDefaultVpcResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateDefaultVpc

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

newCreateDefaultVpcResponse Source #

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

CreateDefaultVpcResponse, createDefaultVpcResponse_vpc - Information about the VPC.

$sel:httpStatus:CreateDefaultVpcResponse', createDefaultVpcResponse_httpStatus - The response's http status code.

Response Lenses