#[non_exhaustive]pub struct ModifyTransitGatewayVpcAttachmentInput { /* private fields */ }Implementations§
source§impl ModifyTransitGatewayVpcAttachmentInput
impl ModifyTransitGatewayVpcAttachmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTransitGatewayVpcAttachment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyTransitGatewayVpcAttachment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifyTransitGatewayVpcAttachment>
Examples found in repository?
src/client.rs (line 68733)
68719 68720 68721 68722 68723 68724 68725 68726 68727 68728 68729 68730 68731 68732 68733 68734 68735 68736 68737 68738 68739 68740 68741 68742 68743 68744 68745 68746 68747 68748 68749 68750 68751 68752 68753 68754 68755 68756 68757 68758 68759 68760 68761
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifyTransitGatewayVpcAttachment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifyTransitGatewayVpcAttachmentError>,
> {
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::ModifyTransitGatewayVpcAttachmentOutput,
aws_smithy_http::result::SdkError<crate::error::ModifyTransitGatewayVpcAttachmentError>,
> {
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 ModifyTransitGatewayVpcAttachmentInput.
source§impl ModifyTransitGatewayVpcAttachmentInput
impl ModifyTransitGatewayVpcAttachmentInput
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the attachment.
sourcepub fn add_subnet_ids(&self) -> Option<&[String]>
pub fn add_subnet_ids(&self) -> Option<&[String]>
The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.
sourcepub fn remove_subnet_ids(&self) -> Option<&[String]>
pub fn remove_subnet_ids(&self) -> Option<&[String]>
The IDs of one or more subnets to remove.
sourcepub fn options(
&self
) -> Option<&ModifyTransitGatewayVpcAttachmentRequestOptions>
pub fn options(
&self
) -> Option<&ModifyTransitGatewayVpcAttachmentRequestOptions>
The new VPC attachment options.
Trait Implementations§
source§impl Clone for ModifyTransitGatewayVpcAttachmentInput
impl Clone for ModifyTransitGatewayVpcAttachmentInput
source§fn clone(&self) -> ModifyTransitGatewayVpcAttachmentInput
fn clone(&self) -> ModifyTransitGatewayVpcAttachmentInput
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