Struct aws_sdk_ec2::client::fluent_builders::CreateDefaultVpc [−][src]
pub struct CreateDefaultVpc<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
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.
Implementations
impl<C, M, R> CreateDefaultVpc<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateDefaultVpc<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateDefaultVpcOutput, SdkError<CreateDefaultVpcError>> where
R::Policy: SmithyRetryPolicy<CreateDefaultVpcInputOperationOutputAlias, CreateDefaultVpcOutput, CreateDefaultVpcError, CreateDefaultVpcInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateDefaultVpcOutput, SdkError<CreateDefaultVpcError>> where
R::Policy: SmithyRetryPolicy<CreateDefaultVpcInputOperationOutputAlias, CreateDefaultVpcOutput, CreateDefaultVpcError, CreateDefaultVpcInputOperationRetryAlias>,
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.
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
.
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
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateDefaultVpc<C, M, R>
impl<C, M, R> Send for CreateDefaultVpc<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateDefaultVpc<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateDefaultVpc<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateDefaultVpc<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more