| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.STS.GetCallerIdentity
Description
Returns details about the IAM identity whose credentials are used to call the API.
- getCallerIdentity :: GetCallerIdentity
- data GetCallerIdentity
- getCallerIdentityResponse :: Int -> GetCallerIdentityResponse
- data GetCallerIdentityResponse
- gcirsARN :: Lens' GetCallerIdentityResponse (Maybe Text)
- gcirsAccount :: Lens' GetCallerIdentityResponse (Maybe Text)
- gcirsUserId :: Lens' GetCallerIdentityResponse (Maybe Text)
- gcirsResponseStatus :: Lens' GetCallerIdentityResponse Int
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
Destructuring the Response
getCallerIdentityResponse Source #
Arguments
| :: Int | |
| -> GetCallerIdentityResponse |
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:
gcirsARN- The AWS ARN associated with the calling entity.gcirsAccount- The AWS account ID number of the account that owns or contains the calling entity.gcirsUserId- 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 .gcirsResponseStatus- -- | The response status code.
data GetCallerIdentityResponse Source #
Contains the response to a successful GetCallerIdentity request, including information about the entity making the request.
See: getCallerIdentityResponse smart constructor.
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 .
gcirsResponseStatus :: Lens' GetCallerIdentityResponse Int Source #
- - | The response status code.