Copyright | (c) 2013-2021 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 |
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
- data SetIdentityPoolRoles = SetIdentityPoolRoles' {}
- newSetIdentityPoolRoles :: Text -> SetIdentityPoolRoles
- setIdentityPoolRoles_roleMappings :: Lens' SetIdentityPoolRoles (Maybe (HashMap Text RoleMapping))
- setIdentityPoolRoles_identityPoolId :: Lens' SetIdentityPoolRoles Text
- setIdentityPoolRoles_roles :: Lens' SetIdentityPoolRoles (HashMap Text Text)
- data SetIdentityPoolRolesResponse = SetIdentityPoolRolesResponse' {
- newSetIdentityPoolRolesResponse :: SetIdentityPoolRolesResponse
Creating a Request
data SetIdentityPoolRoles Source #
Input to the SetIdentityPoolRoles
action.
See: newSetIdentityPoolRoles
smart constructor.
SetIdentityPoolRoles' | |
|
Instances
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
newSetIdentityPoolRolesResponse :: SetIdentityPoolRolesResponse Source #
Create a value of SetIdentityPoolRolesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.