amazonka-cognito-identity-1.6.1: Amazon Cognito Identity SDK.

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

Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Contents

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

setIdentityPoolRoles Source #

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

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

  • siprRoleMappings - 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-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Up to 25 rules can be specified per identity provider.
  • siprIdentityPoolId - An identity pool ID in the format REGION:GUID.
  • siprRoles - 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.

data SetIdentityPoolRoles Source #

Input to the SetIdentityPoolRoles action.

See: setIdentityPoolRoles smart constructor.

Instances
Eq SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Data SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Methods

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

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

toConstr :: SetIdentityPoolRoles -> Constr #

dataTypeOf :: SetIdentityPoolRoles -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Show SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Generic SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Associated Types

type Rep SetIdentityPoolRoles :: Type -> Type #

Hashable SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

ToJSON SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

AWSRequest SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Associated Types

type Rs SetIdentityPoolRoles :: Type #

ToHeaders SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

ToPath SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

ToQuery SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

NFData SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Methods

rnf :: SetIdentityPoolRoles -> () #

type Rep SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

type Rep SetIdentityPoolRoles = D1 (MetaData "SetIdentityPoolRoles" "Network.AWS.CognitoIdentity.SetIdentityPoolRoles" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "SetIdentityPoolRoles'" PrefixI True) (S1 (MetaSel (Just "_siprRoleMappings") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Map Text RoleMapping))) :*: (S1 (MetaSel (Just "_siprIdentityPoolId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_siprRoles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text)))))
type Rs SetIdentityPoolRoles Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Request Lenses

siprRoleMappings :: Lens' SetIdentityPoolRoles (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-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id". Up to 25 rules can be specified per identity provider.

siprIdentityPoolId :: Lens' SetIdentityPoolRoles Text Source #

An identity pool ID in the format REGION:GUID.

siprRoles :: 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

setIdentityPoolRolesResponse :: SetIdentityPoolRolesResponse Source #

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

data SetIdentityPoolRolesResponse Source #

See: setIdentityPoolRolesResponse smart constructor.

Instances
Eq SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Data SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Methods

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

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

toConstr :: SetIdentityPoolRolesResponse -> Constr #

dataTypeOf :: SetIdentityPoolRolesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Show SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Generic SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

Associated Types

type Rep SetIdentityPoolRolesResponse :: Type -> Type #

NFData SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

type Rep SetIdentityPoolRolesResponse Source # 
Instance details

Defined in Network.AWS.CognitoIdentity.SetIdentityPoolRoles

type Rep SetIdentityPoolRolesResponse = D1 (MetaData "SetIdentityPoolRolesResponse" "Network.AWS.CognitoIdentity.SetIdentityPoolRoles" "amazonka-cognito-identity-1.6.1-JxIOswo68EQKpplMh7b7yR" False) (C1 (MetaCons "SetIdentityPoolRolesResponse'" PrefixI False) (U1 :: Type -> Type))