public static final class CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder
extends java.lang.Object
CfnIdentityPoolRoleAttachment.RoleMappingProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder |
ambiguousRoleResolution(java.lang.String ambiguousRoleResolution)
|
CfnIdentityPoolRoleAttachment.RoleMappingProperty |
build()
Builds the configured instance.
|
CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder |
identityProvider(java.lang.String identityProvider)
Sets the value of
CfnIdentityPoolRoleAttachment.RoleMappingProperty.getIdentityProvider() |
CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder |
rulesConfiguration(CfnIdentityPoolRoleAttachment.RulesConfigurationTypeProperty rulesConfiguration)
|
CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder |
rulesConfiguration(IResolvable rulesConfiguration)
|
CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnIdentityPoolRoleAttachment.RoleMappingProperty.getType() |
public CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder type(java.lang.String type)
CfnIdentityPoolRoleAttachment.RoleMappingProperty.getType()
type
- The role-mapping type. This parameter is required.
Token
uses cognito:roles
and cognito:preferred_role
claims from the Amazon Cognito identity provider token to map groups to roles. Rules
attempts to match claims from the token to map to a role.
Valid values are Token
or Rules
.
this
public CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder ambiguousRoleResolution(java.lang.String ambiguousRoleResolution)
ambiguousRoleResolution
- Specifies the action to be taken if either no rules match the claim value for the Rules type, or there is no `cognito:preferred_role` claim and there are multiple `cognito:roles` matches for the Token type.
If you specify Token or Rules as the Type, AmbiguousRoleResolution is required.
Valid values are AuthenticatedRole
or Deny
.
this
public CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder identityProvider(java.lang.String identityProvider)
CfnIdentityPoolRoleAttachment.RoleMappingProperty.getIdentityProvider()
identityProvider
- Identifier for the identity provider for which the role is mapped.
For example: graph.facebook.com
or cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id (http://cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id)
. This is the identity provider that is used by the user for authentication.
If the identity provider property isn't provided, the key of the entry in the RoleMappings
map is used as the identity provider.
this
public CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder rulesConfiguration(IResolvable rulesConfiguration)
rulesConfiguration
- The rules to be used for mapping users to roles.
If you specify "Rules" as the role-mapping type, RulesConfiguration is required.this
public CfnIdentityPoolRoleAttachment.RoleMappingProperty.Builder rulesConfiguration(CfnIdentityPoolRoleAttachment.RulesConfigurationTypeProperty rulesConfiguration)
rulesConfiguration
- The rules to be used for mapping users to roles.
If you specify "Rules" as the role-mapping type, RulesConfiguration is required.this
public CfnIdentityPoolRoleAttachment.RoleMappingProperty build()
CfnIdentityPoolRoleAttachment.RoleMappingProperty
java.lang.NullPointerException
- if any required attribute was not provided