public static interface RoleMapping.Builder extends CopyableBuilder<RoleMapping.Builder,RoleMapping>
Modifier and Type | Method and Description |
---|---|
RoleMapping.Builder |
ambiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the
Type , AmbiguousRoleResolution is required. |
RoleMapping.Builder |
ambiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the
Type , AmbiguousRoleResolution is required. |
default RoleMapping.Builder |
rulesConfiguration(Consumer<RulesConfigurationType.Builder> rulesConfiguration)
The rules to be used for mapping users to roles.
|
RoleMapping.Builder |
rulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
|
RoleMapping.Builder |
type(RoleMappingType type)
The role mapping type.
|
RoleMapping.Builder |
type(String type)
The role mapping type.
|
copy
applyMutation, build
RoleMapping.Builder type(String type)
The role mapping type. Token will use cognito:roles
and cognito:preferred_role
claims 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.
type
- The role mapping type. Token will use cognito:roles
and
cognito:preferred_role
claims 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.RoleMappingType
,
RoleMappingType
RoleMapping.Builder type(RoleMappingType type)
The role mapping type. Token will use cognito:roles
and cognito:preferred_role
claims 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.
type
- The role mapping type. Token will use cognito:roles
and
cognito:preferred_role
claims 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.RoleMappingType
,
RoleMappingType
RoleMapping.Builder ambiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the Type
, AmbiguousRoleResolution
is required.
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.
ambiguousRoleResolution
- If you specify Token or Rules as the Type
, AmbiguousRoleResolution
is
required.
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.
AmbiguousRoleResolutionType
,
AmbiguousRoleResolutionType
RoleMapping.Builder ambiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the Type
, AmbiguousRoleResolution
is required.
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.
ambiguousRoleResolution
- If you specify Token or Rules as the Type
, AmbiguousRoleResolution
is
required.
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.
AmbiguousRoleResolutionType
,
AmbiguousRoleResolutionType
RoleMapping.Builder rulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration
is required.
rulesConfiguration
- The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration
is required.
default 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, RulesConfiguration
is required.
RulesConfigurationType.Builder
avoiding the
need to create one manually via RulesConfigurationType.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to rulesConfiguration(RulesConfigurationType)
.rulesConfiguration
- a consumer that will call methods on RulesConfigurationType.Builder
rulesConfiguration(RulesConfigurationType)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.