#[non_exhaustive]pub struct DescribeTransitGatewayAttachmentsInput { /* private fields */ }
Implementations§
source§impl DescribeTransitGatewayAttachmentsInput
impl DescribeTransitGatewayAttachmentsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeTransitGatewayAttachments, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeTransitGatewayAttachments, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeTransitGatewayAttachments
>
Examples found in repository?
48769 48770 48771 48772 48773 48774 48775 48776 48777 48778 48779 48780 48781 48782 48783 48784 48785 48786 48787 48788 48789 48790 48791 48792 48793 48794 48795 48796 48797 48798 48799 48800 48801 48802 48803 48804 48805 48806 48807 48808 48809 48810 48811
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeTransitGatewayAttachments,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeTransitGatewayAttachmentsError>,
> {
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::DescribeTransitGatewayAttachmentsOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeTransitGatewayAttachmentsError>,
> {
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
}
More examples
9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347
pub fn send(
self,
) -> impl tokio_stream::Stream<
Item = std::result::Result<
crate::output::DescribeTransitGatewayAttachmentsOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeTransitGatewayAttachmentsError>,
>,
> + Unpin {
// Move individual fields out of self for the borrow checker
let builder = self.builder;
let handle = self.handle;
aws_smithy_async::future::fn_stream::FnStream::new(move |tx| {
Box::pin(async move {
// Build the input for the first time. If required fields are missing, this is where we'll produce an early error.
let mut input = match builder
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)
{
Ok(input) => input,
Err(e) => {
let _ = tx.send(Err(e)).await;
return;
}
};
loop {
let op = match input
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)
{
Ok(op) => op,
Err(e) => {
let _ = tx.send(Err(e)).await;
return;
}
};
let resp = handle.client.call(op).await;
// If the input member is None or it was an error
let done = match resp {
Ok(ref resp) => {
let new_token = crate::lens::reflens_structure_crate_output_describe_transit_gateway_attachments_output_next_token(resp);
let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
if !is_empty
&& new_token == input.next_token.as_ref()
&& self.stop_on_duplicate_token
{
true
} else {
input.next_token = new_token.cloned();
is_empty
}
}
Err(_) => true,
};
if tx.send(resp).await.is_err() {
// receiving end was dropped
return;
}
if done {
return;
}
}
})
})
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeTransitGatewayAttachmentsInput
.
source§impl DescribeTransitGatewayAttachmentsInput
impl DescribeTransitGatewayAttachmentsInput
sourcepub fn transit_gateway_attachment_ids(&self) -> Option<&[String]>
pub fn transit_gateway_attachment_ids(&self) -> Option<&[String]>
The IDs of the attachments.
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters. The possible values are:
-
association.state
- The state of the association (associating
|associated
|disassociating
). -
association.transit-gateway-route-table-id
- The ID of the route table for the transit gateway. -
resource-id
- The ID of the resource. -
resource-owner-id
- The ID of the Amazon Web Services account that owns the resource. -
resource-type
- The resource type. Valid values arevpc
|vpn
|direct-connect-gateway
|peering
|connect
. -
state
- The state of the attachment. Valid values areavailable
|deleted
|deleting
|failed
|failing
|initiatingRequest
|modifying
|pendingAcceptance
|pending
|rollingBack
|rejected
|rejecting
. -
transit-gateway-attachment-id
- The ID of the attachment. -
transit-gateway-id
- The ID of the transit gateway. -
transit-gateway-owner-id
- The ID of the Amazon Web Services account that owns the transit gateway.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken
value.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token for the next page of results.
Trait Implementations§
source§impl Clone for DescribeTransitGatewayAttachmentsInput
impl Clone for DescribeTransitGatewayAttachmentsInput
source§fn clone(&self) -> DescribeTransitGatewayAttachmentsInput
fn clone(&self) -> DescribeTransitGatewayAttachmentsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more