Struct aws_sdk_ec2::input::CreateVpnConnectionInput
source · #[non_exhaustive]pub struct CreateVpnConnectionInput { /* private fields */ }
Expand description
Contains the parameters for CreateVpnConnection.
Implementations§
source§impl CreateVpnConnectionInput
impl CreateVpnConnectionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateVpnConnection, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateVpnConnection, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateVpnConnection
>
Examples found in repository?
25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateVpnConnection,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateVpnConnectionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateVpnConnectionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateVpnConnectionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateVpnConnectionInput
.
source§impl CreateVpnConnectionInput
impl CreateVpnConnectionInput
sourcepub fn customer_gateway_id(&self) -> Option<&str>
pub fn customer_gateway_id(&self) -> Option<&str>
The ID of the customer gateway.
sourcepub fn vpn_gateway_id(&self) -> Option<&str>
pub fn vpn_gateway_id(&self) -> Option<&str>
The ID of the virtual private gateway. If you specify a virtual private gateway, you cannot specify a transit gateway.
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway. If you specify a transit gateway, you cannot specify a virtual private gateway.
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<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
.
sourcepub fn options(&self) -> Option<&VpnConnectionOptionsSpecification>
pub fn options(&self) -> Option<&VpnConnectionOptionsSpecification>
The options for the VPN connection.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the VPN connection.
Trait Implementations§
source§impl Clone for CreateVpnConnectionInput
impl Clone for CreateVpnConnectionInput
source§fn clone(&self) -> CreateVpnConnectionInput
fn clone(&self) -> CreateVpnConnectionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more