#[non_exhaustive]pub struct AcceptTransitGatewayPeeringAttachmentInput { /* private fields */ }
Implementations§
source§impl AcceptTransitGatewayPeeringAttachmentInput
impl AcceptTransitGatewayPeeringAttachmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AcceptTransitGatewayPeeringAttachment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AcceptTransitGatewayPeeringAttachment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AcceptTransitGatewayPeeringAttachment
>
Examples found in repository?
src/client.rs (line 8600)
8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AcceptTransitGatewayPeeringAttachment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::AcceptTransitGatewayPeeringAttachmentError,
>,
> {
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::AcceptTransitGatewayPeeringAttachmentOutput,
aws_smithy_http::result::SdkError<
crate::error::AcceptTransitGatewayPeeringAttachmentError,
>,
> {
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 AcceptTransitGatewayPeeringAttachmentInput
.
source§impl AcceptTransitGatewayPeeringAttachmentInput
impl AcceptTransitGatewayPeeringAttachmentInput
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the transit gateway attachment.
Trait Implementations§
source§impl Clone for AcceptTransitGatewayPeeringAttachmentInput
impl Clone for AcceptTransitGatewayPeeringAttachmentInput
source§fn clone(&self) -> AcceptTransitGatewayPeeringAttachmentInput
fn clone(&self) -> AcceptTransitGatewayPeeringAttachmentInput
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