libZSservicesZSamazonka-stsZSamazonka-sts
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.STS.GetCallerIdentity

Description

Returns details about the IAM user or role whose credentials are used to call the operation.

No permissions are required to perform this operation. If an administrator adds a policy to your IAM user or role that explicitly denies access to the sts:GetCallerIdentity action, you can still perform this operation. Permissions are not required because the same information is returned when an IAM user or role is denied access. To view an example response, see I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice in the IAM User Guide.

Synopsis

Creating a Request

data GetCallerIdentity Source #

See: newGetCallerIdentity smart constructor.

Constructors

GetCallerIdentity' 

Instances

Instances details
Eq GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Read GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Show GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Generic GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Associated Types

type Rep GetCallerIdentity :: Type -> Type #

NFData GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Methods

rnf :: GetCallerIdentity -> () #

Hashable GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

AWSRequest GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Associated Types

type AWSResponse GetCallerIdentity #

ToHeaders GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

ToPath GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

ToQuery GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

type Rep GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

type Rep GetCallerIdentity = D1 ('MetaData "GetCallerIdentity" "Amazonka.STS.GetCallerIdentity" "libZSservicesZSamazonka-stsZSamazonka-sts" 'False) (C1 ('MetaCons "GetCallerIdentity'" 'PrefixI 'False) (U1 :: Type -> Type))
type AWSResponse GetCallerIdentity Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

newGetCallerIdentity :: GetCallerIdentity Source #

Create a value of GetCallerIdentity with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

Destructuring the Response

data GetCallerIdentityResponse Source #

Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.

See: newGetCallerIdentityResponse smart constructor.

Constructors

GetCallerIdentityResponse' 

Fields

  • arn :: Maybe Text

    The Amazon Web Services ARN associated with the calling entity.

  • account :: Maybe Text

    The Amazon Web Services account ID number of the account that owns or contains the calling entity.

  • userId :: Maybe Text

    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/.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetCallerIdentityResponse Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Read GetCallerIdentityResponse Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Show GetCallerIdentityResponse Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Generic GetCallerIdentityResponse Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

Associated Types

type Rep GetCallerIdentityResponse :: Type -> Type #

NFData GetCallerIdentityResponse Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

type Rep GetCallerIdentityResponse Source # 
Instance details

Defined in Amazonka.STS.GetCallerIdentity

type Rep GetCallerIdentityResponse = D1 ('MetaData "GetCallerIdentityResponse" "Amazonka.STS.GetCallerIdentity" "libZSservicesZSamazonka-stsZSamazonka-sts" 'False) (C1 ('MetaCons "GetCallerIdentityResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "account") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetCallerIdentityResponse Source #

Create a value of GetCallerIdentityResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:arn:GetCallerIdentityResponse', getCallerIdentityResponse_arn - The Amazon Web Services ARN associated with the calling entity.

$sel:account:GetCallerIdentityResponse', getCallerIdentityResponse_account - The Amazon Web Services account ID number of the account that owns or contains the calling entity.

$sel:userId:GetCallerIdentityResponse', getCallerIdentityResponse_userId - 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/.

$sel:httpStatus:GetCallerIdentityResponse', getCallerIdentityResponse_httpStatus - The response's http status code.

Response Lenses

getCallerIdentityResponse_arn :: Lens' GetCallerIdentityResponse (Maybe Text) Source #

The Amazon Web Services ARN associated with the calling entity.

getCallerIdentityResponse_account :: Lens' GetCallerIdentityResponse (Maybe Text) Source #

The Amazon Web Services account ID number of the account that owns or contains the calling entity.

getCallerIdentityResponse_userId :: Lens' GetCallerIdentityResponse (Maybe Text) Source #

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/.