#[non_exhaustive]pub struct DescribeTransitGatewayVpcAttachmentsInput { /* private fields */ }
Implementations§
source§impl DescribeTransitGatewayVpcAttachmentsInput
impl DescribeTransitGatewayVpcAttachmentsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeTransitGatewayVpcAttachments, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeTransitGatewayVpcAttachments, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeTransitGatewayVpcAttachments
>
Examples found in repository?
50177 50178 50179 50180 50181 50182 50183 50184 50185 50186 50187 50188 50189 50190 50191 50192 50193 50194 50195 50196 50197 50198 50199 50200 50201 50202 50203 50204 50205 50206 50207 50208 50209 50210 50211 50212 50213 50214 50215 50216 50217 50218 50219 50220 50221 50222 50223
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeTransitGatewayVpcAttachments,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::DescribeTransitGatewayVpcAttachmentsError,
>,
> {
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::DescribeTransitGatewayVpcAttachmentsOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeTransitGatewayVpcAttachmentsError,
>,
> {
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
10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423
pub fn send(
self,
) -> impl tokio_stream::Stream<
Item = std::result::Result<
crate::output::DescribeTransitGatewayVpcAttachmentsOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeTransitGatewayVpcAttachmentsError,
>,
>,
> + 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_vpc_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 DescribeTransitGatewayVpcAttachmentsInput
.
source§impl DescribeTransitGatewayVpcAttachmentsInput
impl DescribeTransitGatewayVpcAttachmentsInput
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:
-
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. -
vpc-id
- The ID of the VPC.
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 DescribeTransitGatewayVpcAttachmentsInput
impl Clone for DescribeTransitGatewayVpcAttachmentsInput
source§fn clone(&self) -> DescribeTransitGatewayVpcAttachmentsInput
fn clone(&self) -> DescribeTransitGatewayVpcAttachmentsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more