| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentity.GetIdentityPoolRoles
Description
Gets the roles for an identity pool.
You must use AWS Developer credentials to call this API.
Synopsis
- data GetIdentityPoolRoles = GetIdentityPoolRoles' {}
- newGetIdentityPoolRoles :: Text -> GetIdentityPoolRoles
- getIdentityPoolRoles_identityPoolId :: Lens' GetIdentityPoolRoles Text
- data GetIdentityPoolRolesResponse = GetIdentityPoolRolesResponse' {
- identityPoolId :: Maybe Text
- roleMappings :: Maybe (HashMap Text RoleMapping)
- roles :: Maybe (HashMap Text Text)
- httpStatus :: Int
- newGetIdentityPoolRolesResponse :: Int -> GetIdentityPoolRolesResponse
- getIdentityPoolRolesResponse_identityPoolId :: Lens' GetIdentityPoolRolesResponse (Maybe Text)
- getIdentityPoolRolesResponse_roleMappings :: Lens' GetIdentityPoolRolesResponse (Maybe (HashMap Text RoleMapping))
- getIdentityPoolRolesResponse_roles :: Lens' GetIdentityPoolRolesResponse (Maybe (HashMap Text Text))
- getIdentityPoolRolesResponse_httpStatus :: Lens' GetIdentityPoolRolesResponse Int
Creating a Request
data GetIdentityPoolRoles Source #
Input to the GetIdentityPoolRoles action.
See: newGetIdentityPoolRoles smart constructor.
Constructors
| GetIdentityPoolRoles' | |
Fields
| |
Instances
newGetIdentityPoolRoles Source #
Arguments
| :: Text | |
| -> GetIdentityPoolRoles |
Create a value of GetIdentityPoolRoles 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:
GetIdentityPoolRoles, getIdentityPoolRoles_identityPoolId - An identity pool ID in the format REGION:GUID.
Request Lenses
getIdentityPoolRoles_identityPoolId :: Lens' GetIdentityPoolRoles Text Source #
An identity pool ID in the format REGION:GUID.
Destructuring the Response
data GetIdentityPoolRolesResponse Source #
Returned in response to a successful GetIdentityPoolRoles operation.
See: newGetIdentityPoolRolesResponse smart constructor.
Constructors
| GetIdentityPoolRolesResponse' | |
Fields
| |
Instances
newGetIdentityPoolRolesResponse Source #
Create a value of GetIdentityPoolRolesResponse 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:
GetIdentityPoolRoles, getIdentityPoolRolesResponse_identityPoolId - An identity pool ID in the format REGION:GUID.
$sel:roleMappings:GetIdentityPoolRolesResponse', getIdentityPoolRolesResponse_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".
$sel:roles:GetIdentityPoolRolesResponse', getIdentityPoolRolesResponse_roles - The map of roles associated with this pool. Currently only authenticated
and unauthenticated roles are supported.
$sel:httpStatus:GetIdentityPoolRolesResponse', getIdentityPoolRolesResponse_httpStatus - The response's http status code.
Response Lenses
getIdentityPoolRolesResponse_identityPoolId :: Lens' GetIdentityPoolRolesResponse (Maybe Text) Source #
An identity pool ID in the format REGION:GUID.
getIdentityPoolRolesResponse_roleMappings :: Lens' GetIdentityPoolRolesResponse (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".
getIdentityPoolRolesResponse_roles :: Lens' GetIdentityPoolRolesResponse (Maybe (HashMap Text Text)) Source #
The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.
getIdentityPoolRolesResponse_httpStatus :: Lens' GetIdentityPoolRolesResponse Int Source #
The response's http status code.