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

Description

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

Synopsis

Creating a Request

data SetIdentityPoolRoles Source #

Input to the SetIdentityPoolRoles action.

See: newSetIdentityPoolRoles smart constructor.

Constructors

SetIdentityPoolRoles' 

Fields

  • 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".

    Up to 25 rules can be specified per identity provider.

  • identityPoolId :: Text

    An identity pool ID in the format REGION:GUID.

  • roles :: HashMap Text Text

    The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN.

Instances

Instances details
Eq SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Read SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Show SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Generic SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Associated Types

type Rep SetIdentityPoolRoles :: Type -> Type #

NFData SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Methods

rnf :: SetIdentityPoolRoles -> () #

Hashable SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

ToJSON SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

AWSRequest SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Associated Types

type AWSResponse SetIdentityPoolRoles #

ToHeaders SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

ToPath SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

ToQuery SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

type Rep SetIdentityPoolRoles Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

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

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

newSetIdentityPoolRoles Source #

Create a value of SetIdentityPoolRoles 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:roleMappings:SetIdentityPoolRoles', setIdentityPoolRoles_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".

Up to 25 rules can be specified per identity provider.

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

$sel:roles:SetIdentityPoolRoles', setIdentityPoolRoles_roles - The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN.

Request Lenses

setIdentityPoolRoles_roleMappings :: Lens' SetIdentityPoolRoles (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".

Up to 25 rules can be specified per identity provider.

setIdentityPoolRoles_identityPoolId :: Lens' SetIdentityPoolRoles Text Source #

An identity pool ID in the format REGION:GUID.

setIdentityPoolRoles_roles :: Lens' SetIdentityPoolRoles (HashMap Text Text) Source #

The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN.

Destructuring the Response

data SetIdentityPoolRolesResponse Source #

See: newSetIdentityPoolRolesResponse smart constructor.

Instances

Instances details
Eq SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Read SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Show SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Generic SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

Associated Types

type Rep SetIdentityPoolRolesResponse :: Type -> Type #

NFData SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

type Rep SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentity.SetIdentityPoolRoles

type Rep SetIdentityPoolRolesResponse = D1 ('MetaData "SetIdentityPoolRolesResponse" "Amazonka.CognitoIdentity.SetIdentityPoolRoles" "libZSservicesZSamazonka-cognito-identityZSamazonka-cognito-identity" 'False) (C1 ('MetaCons "SetIdentityPoolRolesResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newSetIdentityPoolRolesResponse :: SetIdentityPoolRolesResponse Source #

Create a value of SetIdentityPoolRolesResponse with all optional fields omitted.

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