Struct aws_sdk_ec2::input::CreateInternetGatewayInput
source · #[non_exhaustive]pub struct CreateInternetGatewayInput { /* private fields */ }
Implementations§
source§impl CreateInternetGatewayInput
impl CreateInternetGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateInternetGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateInternetGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateInternetGateway
>
Examples found in repository?
src/client.rs (line 17096)
17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateInternetGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateInternetGatewayError>,
> {
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::CreateInternetGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::CreateInternetGatewayError>,
> {
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 CreateInternetGatewayInput
.
source§impl CreateInternetGatewayInput
impl CreateInternetGatewayInput
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to assign to the internet gateway.
Trait Implementations§
source§impl Clone for CreateInternetGatewayInput
impl Clone for CreateInternetGatewayInput
source§fn clone(&self) -> CreateInternetGatewayInput
fn clone(&self) -> CreateInternetGatewayInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more