Copyright | (c) 2013-2018 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 |
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
- setIdentityPoolRoles :: Text -> SetIdentityPoolRoles
- data SetIdentityPoolRoles
- siprRoleMappings :: Lens' SetIdentityPoolRoles (HashMap Text RoleMapping)
- siprIdentityPoolId :: Lens' SetIdentityPoolRoles Text
- siprRoles :: Lens' SetIdentityPoolRoles (HashMap Text Text)
- setIdentityPoolRolesResponse :: SetIdentityPoolRolesResponse
- data SetIdentityPoolRolesResponse
Creating a Request
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 toRoleMapping
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
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.