pub struct GetAccessKeyInfoFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetAccessKeyInfo
.
Returns the account identifier for the specified access key ID.
Access keys consist of two parts: an access key ID (for example, AKIAIOSFODNN7EXAMPLE
) and a secret access key (for example, wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
). For more information about access keys, see Managing Access Keys for IAM Users in the IAM User Guide.
When you pass an access key ID to this operation, it returns the ID of the Amazon Web Services account to which the keys belong. Access key IDs beginning with AKIA
are long-term credentials for an IAM user or the Amazon Web Services account root user. Access key IDs beginning with ASIA
are temporary credentials that are created using STS operations. If the account in the response belongs to you, you can sign in as the root user and review your root user access keys. Then, you can pull a credentials report to learn which IAM user owns the keys. To learn who requested the temporary credentials for an ASIA
access key, view the STS events in your CloudTrail logs in the IAM User Guide.
This operation does not indicate the state of the access key. The key might be active, inactive, or deleted. Active keys might not have permissions to perform an operation. Providing a deleted access key might return an error that the key doesn't exist.
Implementations§
source§impl GetAccessKeyInfoFluentBuilder
impl GetAccessKeyInfoFluentBuilder
sourcepub fn as_input(&self) -> &GetAccessKeyInfoInputBuilder
pub fn as_input(&self) -> &GetAccessKeyInfoInputBuilder
Access the GetAccessKeyInfo as a reference.
sourcepub async fn send(
self,
) -> Result<GetAccessKeyInfoOutput, SdkError<GetAccessKeyInfoError, HttpResponse>>
pub async fn send( self, ) -> Result<GetAccessKeyInfoOutput, SdkError<GetAccessKeyInfoError, HttpResponse>>
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 customize(
self,
) -> CustomizableOperation<GetAccessKeyInfoOutput, GetAccessKeyInfoError, Self>
pub fn customize( self, ) -> CustomizableOperation<GetAccessKeyInfoOutput, GetAccessKeyInfoError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The identifier of an access key.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper- or lowercase letter or digit.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The identifier of an access key.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper- or lowercase letter or digit.
sourcepub fn get_access_key_id(&self) -> &Option<String>
pub fn get_access_key_id(&self) -> &Option<String>
The identifier of an access key.
This parameter allows (through its regex pattern) a string of characters that can consist of any upper- or lowercase letter or digit.
Trait Implementations§
source§impl Clone for GetAccessKeyInfoFluentBuilder
impl Clone for GetAccessKeyInfoFluentBuilder
source§fn clone(&self) -> GetAccessKeyInfoFluentBuilder
fn clone(&self) -> GetAccessKeyInfoFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetAccessKeyInfoFluentBuilder
impl !RefUnwindSafe for GetAccessKeyInfoFluentBuilder
impl Send for GetAccessKeyInfoFluentBuilder
impl Sync for GetAccessKeyInfoFluentBuilder
impl Unpin for GetAccessKeyInfoFluentBuilder
impl !UnwindSafe for GetAccessKeyInfoFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)