Class CfnIdentityPoolRoleAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment>
- Enclosing class:
- CfnIdentityPoolRoleAttachment
CfnIdentityPoolRoleAttachment.-
Method Summary
Modifier and TypeMethodDescriptionbuild()identityPoolId(String identityPoolId) An identity pool ID in the formatREGION:GUID.roleMappings(Map<String, ? extends Object> roleMappings) How users for a specific identity provider are mapped to roles.roleMappings(IResolvable roleMappings) How users for a specific identity provider are mapped to roles.The map of the roles associated with this pool.
-
Method Details
-
create
@Stability(Stable) public static CfnIdentityPoolRoleAttachment.Builder create(Construct scope, String id) - Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
- Returns:
- a new instance of
CfnIdentityPoolRoleAttachment.Builder.
-
identityPoolId
@Stability(Stable) public CfnIdentityPoolRoleAttachment.Builder identityPoolId(String identityPoolId) An identity pool ID in the formatREGION:GUID.- Parameters:
identityPoolId- An identity pool ID in the formatREGION:GUID. This parameter is required.- Returns:
this
-
roleMappings
@Stability(Stable) public CfnIdentityPoolRoleAttachment.Builder roleMappings(IResolvable roleMappings) How users for a specific identity provider are mapped to roles.This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- Parameters:
roleMappings- How users for a specific identity provider are mapped to roles. This parameter is required.- Returns:
this
-
roleMappings
@Stability(Stable) public CfnIdentityPoolRoleAttachment.Builder roleMappings(Map<String, ? extends Object> roleMappings) How users for a specific identity provider are mapped to roles.This is a string to the
RoleMappingobject map. The string identifies the identity provider. For example:graph.facebook.comorcognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id.If the
IdentityProviderfield isn't provided in this object, the string is used as the identity provider name.For more information, see the RoleMapping property .
- Parameters:
roleMappings- How users for a specific identity provider are mapped to roles. This parameter is required.- Returns:
this
-
roles
The 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.
- Parameters:
roles- The map of the roles associated with this pool. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIdentityPoolRoleAttachment>- Returns:
- a newly built instance of
CfnIdentityPoolRoleAttachment.
-