pub struct Builder { /* private fields */ }
Expand description
A builder for CreateTransitGatewayConnectInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn transport_transit_gateway_attachment_id(
self,
input: impl Into<String>
) -> Self
pub fn transport_transit_gateway_attachment_id(
self,
input: impl Into<String>
) -> Self
The ID of the transit gateway attachment. You can specify a VPC attachment or Amazon Web Services Direct Connect attachment.
sourcepub fn set_transport_transit_gateway_attachment_id(
self,
input: Option<String>
) -> Self
pub fn set_transport_transit_gateway_attachment_id(
self,
input: Option<String>
) -> Self
The ID of the transit gateway attachment. You can specify a VPC attachment or Amazon Web Services Direct Connect attachment.
sourcepub fn options(self, input: CreateTransitGatewayConnectRequestOptions) -> Self
pub fn options(self, input: CreateTransitGatewayConnectRequestOptions) -> Self
The Connect attachment options.
sourcepub fn set_options(
self,
input: Option<CreateTransitGatewayConnectRequestOptions>
) -> Self
pub fn set_options(
self,
input: Option<CreateTransitGatewayConnectRequestOptions>
) -> Self
The Connect attachment options.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the Connect attachment.
sourcepub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
pub fn set_tag_specifications(self, input: Option<Vec<TagSpecification>>) -> Self
The tags to apply to the Connect attachment.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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 build(self) -> Result<CreateTransitGatewayConnectInput, BuildError>
pub fn build(self) -> Result<CreateTransitGatewayConnectInput, BuildError>
Consumes the builder and constructs a CreateTransitGatewayConnectInput
.
Examples found in repository?
22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateTransitGatewayConnect,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateTransitGatewayConnectError>,
> {
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::CreateTransitGatewayConnectOutput,
aws_smithy_http::result::SdkError<crate::error::CreateTransitGatewayConnectError>,
> {
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
}