#[non_exhaustive]pub struct CreateTransitGatewayPeeringAttachmentInput { /* private fields */ }
Implementations§
source§impl CreateTransitGatewayPeeringAttachmentInput
impl CreateTransitGatewayPeeringAttachmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTransitGatewayPeeringAttachment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateTransitGatewayPeeringAttachment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateTransitGatewayPeeringAttachment
>
Examples found in repository?
src/client.rs (line 23216)
23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateTransitGatewayPeeringAttachment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::CreateTransitGatewayPeeringAttachmentError,
>,
> {
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::CreateTransitGatewayPeeringAttachmentOutput,
aws_smithy_http::result::SdkError<
crate::error::CreateTransitGatewayPeeringAttachmentError,
>,
> {
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 CreateTransitGatewayPeeringAttachmentInput
.
source§impl CreateTransitGatewayPeeringAttachmentInput
impl CreateTransitGatewayPeeringAttachmentInput
sourcepub fn transit_gateway_id(&self) -> Option<&str>
pub fn transit_gateway_id(&self) -> Option<&str>
The ID of the transit gateway.
sourcepub fn peer_transit_gateway_id(&self) -> Option<&str>
pub fn peer_transit_gateway_id(&self) -> Option<&str>
The ID of the peer transit gateway with which to create the peering attachment.
sourcepub fn peer_account_id(&self) -> Option<&str>
pub fn peer_account_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the peer transit gateway.
sourcepub fn peer_region(&self) -> Option<&str>
pub fn peer_region(&self) -> Option<&str>
The Region where the peer transit gateway is located.
sourcepub fn options(
&self
) -> Option<&CreateTransitGatewayPeeringAttachmentRequestOptions>
pub fn options(
&self
) -> Option<&CreateTransitGatewayPeeringAttachmentRequestOptions>
Requests a transit gateway peering attachment.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the transit gateway peering attachment.
Trait Implementations§
source§impl Clone for CreateTransitGatewayPeeringAttachmentInput
impl Clone for CreateTransitGatewayPeeringAttachmentInput
source§fn clone(&self) -> CreateTransitGatewayPeeringAttachmentInput
fn clone(&self) -> CreateTransitGatewayPeeringAttachmentInput
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