Struct aws_sdk_ec2::client::fluent_builders::CreateDefaultVpc
source · [−]pub struct CreateDefaultVpc { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDefaultVpc
.
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.
Implementations
sourceimpl CreateDefaultVpc
impl CreateDefaultVpc
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateDefaultVpc, AwsResponseRetryClassifier>, SdkError<CreateDefaultVpcError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateDefaultVpc, AwsResponseRetryClassifier>, SdkError<CreateDefaultVpcError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateDefaultVpcOutput, SdkError<CreateDefaultVpcError>>
pub async fn send(
self
) -> Result<CreateDefaultVpcOutput, SdkError<CreateDefaultVpcError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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
.
Trait Implementations
sourceimpl Clone for CreateDefaultVpc
impl Clone for CreateDefaultVpc
sourcefn clone(&self) -> CreateDefaultVpc
fn clone(&self) -> CreateDefaultVpc
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more