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 |
Gets the roles for an identity pool.
You must use AWS Developer credentials to call this API.
Synopsis
- getIdentityPoolRoles :: Text -> GetIdentityPoolRoles
- data GetIdentityPoolRoles
- giprIdentityPoolId :: Lens' GetIdentityPoolRoles Text
- getIdentityPoolRolesResponse :: Int -> GetIdentityPoolRolesResponse
- data GetIdentityPoolRolesResponse
- giprrsRoles :: Lens' GetIdentityPoolRolesResponse (HashMap Text Text)
- giprrsIdentityPoolId :: Lens' GetIdentityPoolRolesResponse (Maybe Text)
- giprrsRoleMappings :: Lens' GetIdentityPoolRolesResponse (HashMap Text RoleMapping)
- giprrsResponseStatus :: Lens' GetIdentityPoolRolesResponse Int
Creating a Request
Creates a value of GetIdentityPoolRoles
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giprIdentityPoolId
- An identity pool ID in the format REGION:GUID.
data GetIdentityPoolRoles Source #
Input to the GetIdentityPoolRoles
action.
See: getIdentityPoolRoles
smart constructor.
Instances
Request Lenses
giprIdentityPoolId :: Lens' GetIdentityPoolRoles Text Source #
An identity pool ID in the format REGION:GUID.
Destructuring the Response
getIdentityPoolRolesResponse Source #
Creates a value of GetIdentityPoolRolesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giprrsRoles
- The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.giprrsIdentityPoolId
- An identity pool ID in the format REGION:GUID.giprrsRoleMappings
- 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".giprrsResponseStatus
- -- | The response status code.
data GetIdentityPoolRolesResponse Source #
Returned in response to a successful GetIdentityPoolRoles
operation.
See: getIdentityPoolRolesResponse
smart constructor.
Instances
Response Lenses
giprrsRoles :: Lens' GetIdentityPoolRolesResponse (HashMap Text Text) Source #
The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
giprrsIdentityPoolId :: Lens' GetIdentityPoolRolesResponse (Maybe Text) Source #
An identity pool ID in the format REGION:GUID.
giprrsRoleMappings :: Lens' GetIdentityPoolRolesResponse (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".
giprrsResponseStatus :: Lens' GetIdentityPoolRolesResponse Int Source #
- - | The response status code.