#[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.impl StructuralPartialEq for GetCallerIdentityOutput
Auto Trait Implementations§
impl Freeze for GetCallerIdentityOutput
impl RefUnwindSafe for GetCallerIdentityOutput
impl Send for GetCallerIdentityOutput
impl Sync for GetCallerIdentityOutput
impl Unpin for GetCallerIdentityOutput
impl UnwindSafe for GetCallerIdentityOutput
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
)