#[non_exhaustive]pub struct CreateTransitGatewayVpcAttachmentInput { /* private fields */ }
Implementations§
source§impl CreateTransitGatewayVpcAttachmentInput
impl CreateTransitGatewayVpcAttachmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTransitGatewayVpcAttachment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTransitGatewayVpcAttachment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateTransitGatewayVpcAttachment
>
Examples found in repository?
src/client.rs (line 23966)
23952 23953 23954 23955 23956 23957 23958 23959 23960 23961 23962 23963 23964 23965 23966 23967 23968 23969 23970 23971 23972 23973 23974 23975 23976 23977 23978 23979 23980 23981 23982 23983 23984 23985 23986 23987 23988 23989 23990 23991 23992 23993 23994
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateTransitGatewayVpcAttachment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateTransitGatewayVpcAttachmentError>,
> {
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::CreateTransitGatewayVpcAttachmentOutput,
aws_smithy_http::result::SdkError<crate::error::CreateTransitGatewayVpcAttachmentError>,
> {
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 CreateTransitGatewayVpcAttachmentInput
.
source§impl CreateTransitGatewayVpcAttachmentInput
impl CreateTransitGatewayVpcAttachmentInput
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn subnet_ids(&self) -> Option<&[String]>
pub fn subnet_ids(&self) -> Option<&[String]>
The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
sourcepub fn options(
&self
) -> Option<&CreateTransitGatewayVpcAttachmentRequestOptions>
pub fn options(
&self
) -> Option<&CreateTransitGatewayVpcAttachmentRequestOptions>
The VPC attachment options.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the VPC attachment.
Trait Implementations§
source§impl Clone for CreateTransitGatewayVpcAttachmentInput
impl Clone for CreateTransitGatewayVpcAttachmentInput
source§fn clone(&self) -> CreateTransitGatewayVpcAttachmentInput
fn clone(&self) -> CreateTransitGatewayVpcAttachmentInput
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