#[non_exhaustive]pub struct GetCallerIdentityOutput {
pub user_id: Option<String>,
pub account: Option<String>,
pub arn: Option<String>,
/* private fields */
}
Expand description
Contains the response to a successful GetCallerIdentity
request, including information about the entity making the request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.user_id: Option<String>
The unique identifier of the calling entity. The exact value depends on the type of entity that is making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.
account: Option<String>
The Amazon Web Services account ID number of the account that owns or contains the calling entity.
arn: Option<String>
The Amazon Web Services ARN associated with the calling entity.
Implementations§
Source§impl GetCallerIdentityOutput
impl GetCallerIdentityOutput
Sourcepub fn user_id(&self) -> Option<&str>
pub fn user_id(&self) -> Option<&str>
The unique identifier of the calling entity. The exact value depends on the type of entity that is making the call. The values returned are those listed in the aws:userid column in the Principal table found on the Policy Variables reference page in the IAM User Guide.
Source§impl GetCallerIdentityOutput
impl GetCallerIdentityOutput
Sourcepub fn builder() -> GetCallerIdentityOutputBuilder
pub fn builder() -> GetCallerIdentityOutputBuilder
Creates a new builder-style object to manufacture GetCallerIdentityOutput
.
Trait Implementations§
Source§impl Clone for GetCallerIdentityOutput
impl Clone for GetCallerIdentityOutput
Source§fn clone(&self) -> GetCallerIdentityOutput
fn clone(&self) -> GetCallerIdentityOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GetCallerIdentityOutput
impl Debug for GetCallerIdentityOutput
Source§impl PartialEq for GetCallerIdentityOutput
impl PartialEq for GetCallerIdentityOutput
Source§impl RequestId for GetCallerIdentityOutput
impl RequestId for GetCallerIdentityOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.