#[non_exhaustive]pub struct RejectTransitGatewayPeeringAttachmentInput { /* private fields */ }
Implementations§
source§impl RejectTransitGatewayPeeringAttachmentInput
impl RejectTransitGatewayPeeringAttachmentInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RejectTransitGatewayPeeringAttachment, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RejectTransitGatewayPeeringAttachment, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RejectTransitGatewayPeeringAttachment
>
Examples found in repository?
src/client.rs (line 72722)
72706 72707 72708 72709 72710 72711 72712 72713 72714 72715 72716 72717 72718 72719 72720 72721 72722 72723 72724 72725 72726 72727 72728 72729 72730 72731 72732 72733 72734 72735 72736 72737 72738 72739 72740 72741 72742 72743 72744 72745 72746 72747 72748 72749 72750 72751 72752
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RejectTransitGatewayPeeringAttachment,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::RejectTransitGatewayPeeringAttachmentError,
>,
> {
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::RejectTransitGatewayPeeringAttachmentOutput,
aws_smithy_http::result::SdkError<
crate::error::RejectTransitGatewayPeeringAttachmentError,
>,
> {
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 RejectTransitGatewayPeeringAttachmentInput
.
source§impl RejectTransitGatewayPeeringAttachmentInput
impl RejectTransitGatewayPeeringAttachmentInput
sourcepub fn transit_gateway_attachment_id(&self) -> Option<&str>
pub fn transit_gateway_attachment_id(&self) -> Option<&str>
The ID of the transit gateway peering attachment.
Trait Implementations§
source§impl Clone for RejectTransitGatewayPeeringAttachmentInput
impl Clone for RejectTransitGatewayPeeringAttachmentInput
source§fn clone(&self) -> RejectTransitGatewayPeeringAttachmentInput
fn clone(&self) -> RejectTransitGatewayPeeringAttachmentInput
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