libZSservicesZSamazonka-cognito-identityZSamazonka-cognito-identity
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.CognitoIdentity.GetIdentityPoolRoles

Description

Gets the roles for an identity pool.

You must use AWS Developer credentials to call this API.

Synopsis

Creating a Request

data GetIdentityPoolRoles Source #

Input to the GetIdentityPoolRoles action.

See: newGetIdentityPoolRoles smart constructor.

Constructors

GetIdentityPoolRoles' 

Fields

Instances

Instances details
Eq GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Read GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Show GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Generic GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Associated Types

type Rep GetIdentityPoolRoles :: Type -> Type #

NFData GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Methods

rnf :: GetIdentityPoolRoles -> () #

Hashable GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

ToJSON GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

AWSRequest GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Associated Types

type AWSResponse GetIdentityPoolRoles #

ToHeaders GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

ToPath GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

ToQuery GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

type Rep GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

type Rep GetIdentityPoolRoles = D1 ('MetaData "GetIdentityPoolRoles" "Amazonka.CognitoIdentity.GetIdentityPoolRoles" "libZSservicesZSamazonka-cognito-identityZSamazonka-cognito-identity" 'False) (C1 ('MetaCons "GetIdentityPoolRoles'" 'PrefixI 'True) (S1 ('MetaSel ('Just "identityPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

newGetIdentityPoolRoles Source #

Create a value of GetIdentityPoolRoles 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:identityPoolId:GetIdentityPoolRoles', getIdentityPoolRoles_identityPoolId - An identity pool ID in the format REGION:GUID.

Request Lenses

getIdentityPoolRoles_identityPoolId :: Lens' GetIdentityPoolRoles Text Source #

An identity pool ID in the format REGION:GUID.

Destructuring the Response

data GetIdentityPoolRolesResponse Source #

Returned in response to a successful GetIdentityPoolRoles operation.

See: newGetIdentityPoolRolesResponse smart constructor.

Constructors

GetIdentityPoolRolesResponse' 

Fields

  • roles :: Maybe (HashMap Text Text)

    The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.

  • identityPoolId :: Maybe Text

    An identity pool ID in the format REGION:GUID.

  • roleMappings :: Maybe (HashMap Text RoleMapping)

    How users for a specific identity provider are to mapped to roles. This is a String-to-RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Read GetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Show GetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Generic GetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

Associated Types

type Rep GetIdentityPoolRolesResponse :: Type -> Type #

NFData GetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

type Rep GetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.GetIdentityPoolRoles

type Rep GetIdentityPoolRolesResponse = D1 ('MetaData "GetIdentityPoolRolesResponse" "Amazonka.CognitoIdentity.GetIdentityPoolRoles" "libZSservicesZSamazonka-cognito-identityZSamazonka-cognito-identity" 'False) (C1 ('MetaCons "GetIdentityPoolRolesResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "identityPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "roleMappings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text RoleMapping))) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetIdentityPoolRolesResponse Source #

Create a value of GetIdentityPoolRolesResponse 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:roles:GetIdentityPoolRolesResponse', getIdentityPoolRolesResponse_roles - The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.

$sel:identityPoolId:GetIdentityPoolRoles', getIdentityPoolRolesResponse_identityPoolId - An identity pool ID in the format REGION:GUID.

$sel:roleMappings:GetIdentityPoolRolesResponse', getIdentityPoolRolesResponse_roleMappings - How users for a specific identity provider are to mapped to roles. This is a String-to-RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".

$sel:httpStatus:GetIdentityPoolRolesResponse', getIdentityPoolRolesResponse_httpStatus - The response's http status code.

Response Lenses

getIdentityPoolRolesResponse_roles :: Lens' GetIdentityPoolRolesResponse (Maybe (HashMap Text Text)) Source #

The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.

getIdentityPoolRolesResponse_roleMappings :: Lens' GetIdentityPoolRolesResponse (Maybe (HashMap Text RoleMapping)) Source #

How users for a specific identity provider are to mapped to roles. This is a String-to-RoleMapping object map. The string identifies the identity provider, for example, "graph.facebook.com" or "cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id".