#[non_exhaustive]pub struct DescribeNetworkInterfacePermissionsInput { /* private fields */ }
Expand description
Contains the parameters for DescribeNetworkInterfacePermissions.
Implementations§
source§impl DescribeNetworkInterfacePermissionsInput
impl DescribeNetworkInterfacePermissionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeNetworkInterfacePermissions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeNetworkInterfacePermissions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeNetworkInterfacePermissions
>
Examples found in repository?
43482 43483 43484 43485 43486 43487 43488 43489 43490 43491 43492 43493 43494 43495 43496 43497 43498 43499 43500 43501 43502 43503 43504 43505 43506 43507 43508 43509 43510 43511 43512 43513 43514 43515 43516 43517 43518 43519 43520 43521 43522 43523 43524 43525 43526 43527 43528
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeNetworkInterfacePermissions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<
crate::error::DescribeNetworkInterfacePermissionsError,
>,
> {
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::DescribeNetworkInterfacePermissionsOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeNetworkInterfacePermissionsError,
>,
> {
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
6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399
pub fn send(
self,
) -> impl tokio_stream::Stream<
Item = std::result::Result<
crate::output::DescribeNetworkInterfacePermissionsOutput,
aws_smithy_http::result::SdkError<
crate::error::DescribeNetworkInterfacePermissionsError,
>,
>,
> + 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_network_interface_permissions_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 DescribeNetworkInterfacePermissionsInput
.
source§impl DescribeNetworkInterfacePermissionsInput
impl DescribeNetworkInterfacePermissionsInput
sourcepub fn network_interface_permission_ids(&self) -> Option<&[String]>
pub fn network_interface_permission_ids(&self) -> Option<&[String]>
The network interface permission IDs.
sourcepub fn filters(&self) -> Option<&[Filter]>
pub fn filters(&self) -> Option<&[Filter]>
One or more filters.
-
network-interface-permission.network-interface-permission-id
- The ID of the permission. -
network-interface-permission.network-interface-id
- The ID of the network interface. -
network-interface-permission.aws-account-id
- The Amazon Web Services account ID. -
network-interface-permission.aws-service
- The Amazon Web Service. -
network-interface-permission.permission
- The type of permission (INSTANCE-ATTACH
|EIP-ASSOCIATE
).
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
The token to request the next page of results.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken
value. If this parameter is not specified, up to 50 results are returned by default.
Trait Implementations§
source§impl Clone for DescribeNetworkInterfacePermissionsInput
impl Clone for DescribeNetworkInterfacePermissionsInput
source§fn clone(&self) -> DescribeNetworkInterfacePermissionsInput
fn clone(&self) -> DescribeNetworkInterfacePermissionsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more