Interface RoleMapping.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<RoleMapping.Builder,,- RoleMapping> - SdkBuilder<RoleMapping.Builder,,- RoleMapping> - SdkPojo
- Enclosing class:
- RoleMapping
- 
Method SummaryModifier and TypeMethodDescriptionambiguousRoleResolution(String ambiguousRoleResolution) If you specify Token or Rules as theType,AmbiguousRoleResolutionis required.ambiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution) If you specify Token or Rules as theType,AmbiguousRoleResolutionis required.default RoleMapping.BuilderrulesConfiguration(Consumer<RulesConfigurationType.Builder> rulesConfiguration) The rules to be used for mapping users to roles.rulesConfiguration(RulesConfigurationType rulesConfiguration) The rules to be used for mapping users to roles.The role mapping type.type(RoleMappingType type) The role mapping type.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
typeThe role mapping type. Token will use cognito: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.- Parameters:
- type- The role mapping type. Token will use- cognito:rolesand- cognito: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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
typeThe role mapping type. Token will use cognito: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.- Parameters:
- type- The role mapping type. Token will use- cognito:rolesand- cognito: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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ambiguousRoleResolutionIf you specify Token or Rules as the Type,AmbiguousRoleResolutionis required.Specifies the action to be taken if either no rules match the claim value for the Rulestype, or there is nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype.- Parameters:
- ambiguousRoleResolution- If you specify Token or Rules as the- Type,- AmbiguousRoleResolutionis required.- Specifies the action to be taken if either no rules match the claim value for the - Rulestype, or there is no- cognito:preferred_roleclaim and there are multiple- cognito:rolesmatches for the- Tokentype.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ambiguousRoleResolutionIf you specify Token or Rules as the Type,AmbiguousRoleResolutionis required.Specifies the action to be taken if either no rules match the claim value for the Rulestype, or there is nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype.- Parameters:
- ambiguousRoleResolution- If you specify Token or Rules as the- Type,- AmbiguousRoleResolutionis required.- Specifies the action to be taken if either no rules match the claim value for the - Rulestype, or there is no- cognito:preferred_roleclaim and there are multiple- cognito:rolesmatches for the- Tokentype.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
rulesConfigurationThe rules to be used for mapping users to roles. If you specify Rules as the role mapping type, RulesConfigurationis required.- Parameters:
- rulesConfiguration- The rules to be used for mapping users to roles.- If you specify Rules as the role mapping type, - RulesConfigurationis required.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
rulesConfigurationdefault RoleMapping.Builder rulesConfiguration(Consumer<RulesConfigurationType.Builder> rulesConfiguration) The rules to be used for mapping users to roles. If you specify Rules as the role mapping type, This is a convenience method that creates an instance of theRulesConfigurationis required.RulesConfigurationType.Builderavoiding the need to create one manually viaRulesConfigurationType.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torulesConfiguration(RulesConfigurationType).- Parameters:
- rulesConfiguration- a consumer that will call methods on- RulesConfigurationType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-