Struct aws_sdk_ec2::input::ModifyTransitGatewayInput
source · #[non_exhaustive]pub struct ModifyTransitGatewayInput { /* private fields */ }
Implementations§
source§impl ModifyTransitGatewayInput
impl ModifyTransitGatewayInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTransitGateway, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTransitGateway, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyTransitGateway
>
Examples found in repository?
src/client.rs (line 68492)
68478 68479 68480 68481 68482 68483 68484 68485 68486 68487 68488 68489 68490 68491 68492 68493 68494 68495 68496 68497 68498 68499 68500 68501 68502 68503 68504 68505 68506 68507 68508 68509 68510 68511 68512 68513 68514 68515 68516 68517 68518 68519 68520
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyTransitGateway,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyTransitGatewayError>,
> {
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::ModifyTransitGatewayOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyTransitGatewayError>,
> {
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 ModifyTransitGatewayInput
.
source§impl ModifyTransitGatewayInput
impl ModifyTransitGatewayInput
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description for the transit gateway.
sourcepub fn options(&self) -> Option<&ModifyTransitGatewayOptions>
pub fn options(&self) -> Option<&ModifyTransitGatewayOptions>
The options to modify.
Trait Implementations§
source§impl Clone for ModifyTransitGatewayInput
impl Clone for ModifyTransitGatewayInput
source§fn clone(&self) -> ModifyTransitGatewayInput
fn clone(&self) -> ModifyTransitGatewayInput
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