amazonka-sts-1.4.2: Amazon Security Token Service SDK.

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

Network.AWS.STS.GetCallerIdentity

Contents

Description

Returns details about the IAM identity whose credentials are used to call the API.

Synopsis

Creating a Request

getCallerIdentity :: GetCallerIdentity Source #

Creates a value of GetCallerIdentity with the minimum fields required to make a request.

data GetCallerIdentity Source #

See: getCallerIdentity smart constructor.

Instances

Eq GetCallerIdentity Source # 
Data GetCallerIdentity Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetCallerIdentity -> c GetCallerIdentity #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetCallerIdentity #

toConstr :: GetCallerIdentity -> Constr #

dataTypeOf :: GetCallerIdentity -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetCallerIdentity) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetCallerIdentity) #

gmapT :: (forall b. Data b => b -> b) -> GetCallerIdentity -> GetCallerIdentity #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetCallerIdentity -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetCallerIdentity -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetCallerIdentity -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetCallerIdentity -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetCallerIdentity -> m GetCallerIdentity #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCallerIdentity -> m GetCallerIdentity #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCallerIdentity -> m GetCallerIdentity #

Read GetCallerIdentity Source # 
Show GetCallerIdentity Source # 
Generic GetCallerIdentity Source # 
Hashable GetCallerIdentity Source # 
NFData GetCallerIdentity Source # 

Methods

rnf :: GetCallerIdentity -> () #

AWSRequest GetCallerIdentity Source # 
ToQuery GetCallerIdentity Source # 
ToPath GetCallerIdentity Source # 
ToHeaders GetCallerIdentity Source # 
type Rep GetCallerIdentity Source # 
type Rep GetCallerIdentity = D1 (MetaData "GetCallerIdentity" "Network.AWS.STS.GetCallerIdentity" "amazonka-sts-1.4.2-y05eCKElbULJ1YtnEI4D4" False) (C1 (MetaCons "GetCallerIdentity'" PrefixI False) U1)
type Rs GetCallerIdentity Source # 

Destructuring the Response

getCallerIdentityResponse Source #

Creates a value of GetCallerIdentityResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetCallerIdentityResponse Source #

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

See: getCallerIdentityResponse smart constructor.

Instances

Eq GetCallerIdentityResponse Source # 
Data GetCallerIdentityResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetCallerIdentityResponse -> c GetCallerIdentityResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetCallerIdentityResponse #

toConstr :: GetCallerIdentityResponse -> Constr #

dataTypeOf :: GetCallerIdentityResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetCallerIdentityResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetCallerIdentityResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetCallerIdentityResponse -> GetCallerIdentityResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetCallerIdentityResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetCallerIdentityResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetCallerIdentityResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetCallerIdentityResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetCallerIdentityResponse -> m GetCallerIdentityResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCallerIdentityResponse -> m GetCallerIdentityResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetCallerIdentityResponse -> m GetCallerIdentityResponse #

Read GetCallerIdentityResponse Source # 
Show GetCallerIdentityResponse Source # 
Generic GetCallerIdentityResponse Source # 
NFData GetCallerIdentityResponse Source # 
type Rep GetCallerIdentityResponse Source # 
type Rep GetCallerIdentityResponse = D1 (MetaData "GetCallerIdentityResponse" "Network.AWS.STS.GetCallerIdentity" "amazonka-sts-1.4.2-y05eCKElbULJ1YtnEI4D4" False) (C1 (MetaCons "GetCallerIdentityResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gcirsARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gcirsAccount") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_gcirsUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gcirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

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

The AWS ARN associated with the calling entity.

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

The AWS account ID number of the account that owns or contains the calling entity.

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

The unique identifier of the calling entity. The exact value depends on the type of entity 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/.