Struct aws_sdk_iam::client::fluent_builders::ListVirtualMFADevices
source · [−]pub struct ListVirtualMFADevices { /* private fields */ }
Expand description
Fluent builder constructing a request to ListVirtualMFADevices
.
Lists the virtual MFA devices defined in the Amazon Web Services account by assignment status. If you do not specify an assignment status, the operation returns a list of all virtual MFA devices. Assignment status can be Assigned
, Unassigned
, or Any
.
IAM resource-listing operations return a subset of the available attributes for the resource. For example, this operation does not return tags, even though they are an attribute of the returned object. To view tag information for a virtual MFA device, see ListMFADeviceTags
.
You can paginate the results using the MaxItems
and Marker
parameters.
Implementations
sourceimpl ListVirtualMFADevices
impl ListVirtualMFADevices
sourcepub async fn send(
self
) -> Result<ListVirtualMfaDevicesOutput, SdkError<ListVirtualMFADevicesError>>
pub async fn send(
self
) -> Result<ListVirtualMfaDevicesOutput, SdkError<ListVirtualMFADevicesError>>
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, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> ListVirtualMfaDevicesPaginator
pub fn into_paginator(self) -> ListVirtualMfaDevicesPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn assignment_status(self, input: AssignmentStatusType) -> Self
pub fn assignment_status(self, input: AssignmentStatusType) -> Self
The status (Unassigned
or Assigned
) of the devices to list. If you do not specify an AssignmentStatus
, the operation defaults to Any
, which lists both assigned and unassigned virtual MFA devices.,
sourcepub fn set_assignment_status(self, input: Option<AssignmentStatusType>) -> Self
pub fn set_assignment_status(self, input: Option<AssignmentStatusType>) -> Self
The status (Unassigned
or Assigned
) of the devices to list. If you do not specify an AssignmentStatus
, the operation defaults to Any
, which lists both assigned and unassigned virtual MFA devices.,
sourcepub fn marker(self, input: impl Into<String>) -> Self
pub fn marker(self, input: impl Into<String>) -> Self
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker
element in the response that you received to indicate where the next call should start.
sourcepub fn set_marker(self, input: Option<String>) -> Self
pub fn set_marker(self, input: Option<String>) -> Self
Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker
element in the response that you received to indicate where the next call should start.
sourcepub fn max_items(self, input: i32) -> Self
pub fn max_items(self, input: i32) -> Self
Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated
response element is true
.
If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated
response element returns true
, and Marker
contains a value to include in the subsequent call that tells the service where to continue from.
sourcepub fn set_max_items(self, input: Option<i32>) -> Self
pub fn set_max_items(self, input: Option<i32>) -> Self
Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the IsTruncated
response element is true
.
If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the IsTruncated
response element returns true
, and Marker
contains a value to include in the subsequent call that tells the service where to continue from.
Trait Implementations
sourceimpl Clone for ListVirtualMFADevices
impl Clone for ListVirtualMFADevices
sourcefn clone(&self) -> ListVirtualMFADevices
fn clone(&self) -> ListVirtualMFADevices
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ListVirtualMFADevices
impl Send for ListVirtualMFADevices
impl Sync for ListVirtualMFADevices
impl Unpin for ListVirtualMFADevices
impl !UnwindSafe for ListVirtualMFADevices
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more