#[non_exhaustive]pub struct SearchTransitGatewayMulticastGroupsInput { /* private fields */ }
Implementations§
source§impl SearchTransitGatewayMulticastGroupsInput
impl SearchTransitGatewayMulticastGroupsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SearchTransitGatewayMulticastGroups, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<SearchTransitGatewayMulticastGroups, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<SearchTransitGatewayMulticastGroups
>
Examples found in repository?
77424 77425 77426 77427 77428 77429 77430 77431 77432 77433 77434 77435 77436 77437 77438 77439 77440 77441 77442 77443 77444 77445 77446 77447 77448 77449 77450 77451 77452 77453 77454 77455 77456 77457 77458 77459 77460 77461 77462 77463 77464 77465 77466 77467 77468 77469 77470
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SearchTransitGatewayMulticastGroups,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::SearchTransitGatewayMulticastGroupsError,
>,
> {
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::SearchTransitGatewayMulticastGroupsOutput,
aws_smithy_http::result::SdkError<
crate::error::SearchTransitGatewayMulticastGroupsError,
>,
> {
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
14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345
pub fn send(
self,
) -> impl tokio_stream::Stream<
Item = std::result::Result<
crate::output::SearchTransitGatewayMulticastGroupsOutput,
aws_smithy_http::result::SdkError<
crate::error::SearchTransitGatewayMulticastGroupsError,
>,
>,
> + 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_search_transit_gateway_multicast_groups_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 SearchTransitGatewayMulticastGroupsInput
.
source§impl SearchTransitGatewayMulticastGroupsInput
impl SearchTransitGatewayMulticastGroupsInput
sourcepub fn transit_gateway_multicast_domain_id(&self) -> Option<&str>
pub fn transit_gateway_multicast_domain_id(&self) -> Option<&str>
The ID of the transit gateway multicast domain.
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters. The possible values are:
-
group-ip-address
- The IP address of the transit gateway multicast group. -
is-group-member
- The resource is a group member. Valid values aretrue
|false
. -
is-group-source
- The resource is a group source. Valid values aretrue
|false
. -
member-type
- The member type. Valid values areigmp
|static
. -
resource-id
- The ID of the resource. -
resource-type
- The type of resource. Valid values arevpc
|vpn
|direct-connect-gateway
|tgw-peering
. -
source-type
- The source type. Valid values areigmp
|static
. -
subnet-id
- The ID of the subnet. -
transit-gateway-attachment-id
- The id of the transit gateway attachment.
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 SearchTransitGatewayMulticastGroupsInput
impl Clone for SearchTransitGatewayMulticastGroupsInput
source§fn clone(&self) -> SearchTransitGatewayMulticastGroupsInput
fn clone(&self) -> SearchTransitGatewayMulticastGroupsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more