Class CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cognito.CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty>
- Enclosing interface:
CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty
@Stability(Stable)
public static final class CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambiguousRoleResolution(String ambiguousRoleResolution) build()Builds the configured instance.identityProvider(String identityProvider) rulesConfiguration(CfnIdentityPoolRoleAttachmentPropsMixin.RulesConfigurationTypeProperty rulesConfiguration) rulesConfiguration(IResolvable rulesConfiguration) Sets the value ofCfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ambiguousRoleResolution
@Stability(Stable) public CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder ambiguousRoleResolution(String ambiguousRoleResolution) Sets the value ofCfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.getAmbiguousRoleResolution()- Parameters:
ambiguousRoleResolution- If you specify Token or Rules as theType,AmbiguousRoleResolutionis required. Specifies the action to be taken if either no rules match the claim value for theRulestype, or there is nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype.- Returns:
this
-
identityProvider
@Stability(Stable) public CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder identityProvider(String identityProvider) - Parameters:
identityProvider- Identifier for the identity provider for which the role is mapped. For example:graph.facebook.comorcognito-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
RoleMappingsmap is used as the identity provider.- Returns:
this
-
rulesConfiguration
@Stability(Stable) public CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder rulesConfiguration(IResolvable rulesConfiguration) Sets the value ofCfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.getRulesConfiguration()- Parameters:
rulesConfiguration- The rules to be used for mapping users to roles. If you specify "Rules" as the role-mapping type, RulesConfiguration is required.- Returns:
this
-
rulesConfiguration
@Stability(Stable) public CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder rulesConfiguration(CfnIdentityPoolRoleAttachmentPropsMixin.RulesConfigurationTypeProperty rulesConfiguration) Sets the value ofCfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.getRulesConfiguration()- Parameters:
rulesConfiguration- The rules to be used for mapping users to roles. If you specify "Rules" as the role-mapping type, RulesConfiguration is required.- Returns:
this
-
type
@Stability(Stable) public CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.Builder type(String type) Sets the value ofCfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty.getType()- Parameters:
type- The role mapping type. Token will usecognito:rolesandcognito:preferred_roleclaims from the Cognito identity provider token to map groups to roles. Rules will attempt to match claims from the token to map to a role.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty>- Returns:
- a new instance of
CfnIdentityPoolRoleAttachmentPropsMixin.RoleMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-