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 |
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' {
- roles :: Maybe (HashMap Text Text)
- identityPoolId :: Maybe Text
- roleMappings :: Maybe (HashMap Text RoleMapping)
- httpStatus :: Int
- newGetIdentityPoolRolesResponse :: Int -> GetIdentityPoolRolesResponse
- getIdentityPoolRolesResponse_roles :: Lens' GetIdentityPoolRolesResponse (Maybe (HashMap Text Text))
- getIdentityPoolRolesResponse_identityPoolId :: Lens' GetIdentityPoolRolesResponse (Maybe Text)
- getIdentityPoolRolesResponse_roleMappings :: Lens' GetIdentityPoolRolesResponse (Maybe (HashMap Text RoleMapping))
- getIdentityPoolRolesResponse_httpStatus :: Lens' GetIdentityPoolRolesResponse Int
Creating a Request
data GetIdentityPoolRoles Source #
Input to the GetIdentityPoolRoles
action.
See: newGetIdentityPoolRoles
smart constructor.
GetIdentityPoolRoles' | |
|
Instances
newGetIdentityPoolRoles Source #
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:
$sel:identityPoolId: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.
GetIdentityPoolRolesResponse' | |
|
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:
$sel:roles:GetIdentityPoolRolesResponse'
, getIdentityPoolRolesResponse_roles
- The map of roles associated with this pool. Currently only authenticated
and unauthenticated roles are supported.
$sel:identityPoolId: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:httpStatus:GetIdentityPoolRolesResponse'
, getIdentityPoolRolesResponse_httpStatus
- The response's http status code.
Response Lenses
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_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_httpStatus :: Lens' GetIdentityPoolRolesResponse Int Source #
The response's http status code.