Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateDefaultVpc = CreateDefaultVpc' {}
- newCreateDefaultVpc :: CreateDefaultVpc
- createDefaultVpc_dryRun :: Lens' CreateDefaultVpc (Maybe Bool)
- data CreateDefaultVpcResponse = CreateDefaultVpcResponse' {
- vpc :: Maybe Vpc
- httpStatus :: Int
- newCreateDefaultVpcResponse :: Int -> CreateDefaultVpcResponse
- createDefaultVpcResponse_vpc :: Lens' CreateDefaultVpcResponse (Maybe Vpc)
- createDefaultVpcResponse_httpStatus :: Lens' CreateDefaultVpcResponse Int
Creating a Request
data CreateDefaultVpc Source #
See: newCreateDefaultVpc
smart constructor.
Instances
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.
CreateDefaultVpcResponse' | |
|
Instances
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
createDefaultVpcResponse_vpc :: Lens' CreateDefaultVpcResponse (Maybe Vpc) Source #
Information about the VPC.
createDefaultVpcResponse_httpStatus :: Lens' CreateDefaultVpcResponse Int Source #
The response's http status code.