AWS::Cognito::IdentityPoolRoleAttachmentThe `AWS::Cognito::IdentityPoolRoleAttachment` resource manages the role configuration for an Amazon Cognito identity pool.
import { CfnIdentityPoolRoleAttachment } from 'aws-cdk-lib/aws-cognito';Or use the module namespace:
import * as cognito from 'aws-cdk-lib/aws-cognito';
// cognito.CfnIdentityPoolRoleAttachmentConfiguration passed to the constructor as CfnIdentityPoolRoleAttachmentProps.
identityPoolIdRequiredstring | IIdentityPoolRefAn identity pool ID in the format `REGION:GUID` .
roleMappingsOptionalIResolvable | { [key: string]: IResolvable | RoleMappingProperty }How users for a specific identity provider are mapped to roles. This is a string to the `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` . If the `IdentityProvider` field isn't provided in this object, the string is used as the identity provider name. For more information, see the [RoleMapping property](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypoolroleattachment-rolemapping.html) .
rolesOptionalanyThe map of the roles associated with this pool. For a given role, the key is either "authenticated" or "unauthenticated". The value is the role ARN.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon Cognito on one page. HD quality, print-friendly.
Download Free Infographicaws-cognitoAWS::Cognito::IdentityPoolRoleAttachment