public static final class CfnIdentityPoolRoleAttachmentProps.Builder
extends java.lang.Object
CfnIdentityPoolRoleAttachmentProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnIdentityPoolRoleAttachmentProps |
build()
Builds the configured instance.
|
CfnIdentityPoolRoleAttachmentProps.Builder |
identityPoolId(java.lang.String identityPoolId)
Sets the value of
CfnIdentityPoolRoleAttachmentProps.getIdentityPoolId() |
CfnIdentityPoolRoleAttachmentProps.Builder |
roleMappings(IResolvable roleMappings)
Sets the value of
CfnIdentityPoolRoleAttachmentProps.getRoleMappings() |
CfnIdentityPoolRoleAttachmentProps.Builder |
roleMappings(java.util.Map<java.lang.String,? extends java.lang.Object> roleMappings)
Sets the value of
CfnIdentityPoolRoleAttachmentProps.getRoleMappings() |
CfnIdentityPoolRoleAttachmentProps.Builder |
roles(java.lang.Object roles)
Sets the value of
CfnIdentityPoolRoleAttachmentProps.getRoles() |
public CfnIdentityPoolRoleAttachmentProps.Builder identityPoolId(java.lang.String identityPoolId)
CfnIdentityPoolRoleAttachmentProps.getIdentityPoolId()
identityPoolId
- An identity pool ID in the format `REGION:GUID` . This parameter is required.this
public CfnIdentityPoolRoleAttachmentProps.Builder roleMappings(IResolvable roleMappings)
CfnIdentityPoolRoleAttachmentProps.getRoleMappings()
roleMappings
- 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 .
this
public CfnIdentityPoolRoleAttachmentProps.Builder roleMappings(java.util.Map<java.lang.String,? extends java.lang.Object> roleMappings)
CfnIdentityPoolRoleAttachmentProps.getRoleMappings()
roleMappings
- 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 .
this
public CfnIdentityPoolRoleAttachmentProps.Builder roles(java.lang.Object roles)
CfnIdentityPoolRoleAttachmentProps.getRoles()
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.this
public CfnIdentityPoolRoleAttachmentProps build()
CfnIdentityPoolRoleAttachmentProps
java.lang.NullPointerException
- if any required attribute was not provided