public class RoleMapping extends Object implements Serializable
A role mapping.
Constructor and Description |
---|
RoleMapping() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAmbiguousRoleResolution()
If you specify Token or Rules as the
Type ,
AmbiguousRoleResolution is required. |
RulesConfigurationType |
getRulesConfiguration()
The rules to be used for mapping users to roles.
|
String |
getType()
The role mapping type.
|
int |
hashCode() |
void |
setAmbiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the
Type ,
AmbiguousRoleResolution is required. |
void |
setAmbiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the
Type ,
AmbiguousRoleResolution is required. |
void |
setRulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
|
void |
setType(RoleMappingType type)
The role mapping type.
|
void |
setType(String type)
The role mapping type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RoleMapping |
withAmbiguousRoleResolution(AmbiguousRoleResolutionType ambiguousRoleResolution)
If you specify Token or Rules as the
Type ,
AmbiguousRoleResolution is required. |
RoleMapping |
withAmbiguousRoleResolution(String ambiguousRoleResolution)
If you specify Token or Rules as the
Type ,
AmbiguousRoleResolution is required. |
RoleMapping |
withRulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
|
RoleMapping |
withType(RoleMappingType type)
The role mapping type.
|
RoleMapping |
withType(String type)
The role mapping type.
|
public String getType()
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.
Constraints:
Allowed Values: Token, Rules
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
public void setType(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.
Constraints:
Allowed Values: Token, Rules
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
public RoleMapping withType(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Token, Rules
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
public void setType(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.
Constraints:
Allowed Values: Token, Rules
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
public RoleMapping withType(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Token, Rules
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
public String getAmbiguousRoleResolution()
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.
Constraints:
Allowed Values: AuthenticatedRole, Deny
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
public void setAmbiguousRoleResolution(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.
Constraints:
Allowed Values: AuthenticatedRole, Deny
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
public RoleMapping withAmbiguousRoleResolution(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AuthenticatedRole, Deny
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
public void setAmbiguousRoleResolution(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.
Constraints:
Allowed Values: AuthenticatedRole, Deny
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
public RoleMapping withAmbiguousRoleResolution(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AuthenticatedRole, Deny
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
public RulesConfigurationType getRulesConfiguration()
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type,
RulesConfiguration
is required.
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type,
RulesConfiguration
is required.
public void setRulesConfiguration(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.
public RoleMapping withRulesConfiguration(RulesConfigurationType rulesConfiguration)
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type,
RulesConfiguration
is required.
Returns a reference to this object so that method calls can be chained together.
rulesConfiguration
- The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type,
RulesConfiguration
is required.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.