Class: Aws::CognitoIdentity::Types::RoleMapping
- Inherits:
-
Struct
- Object
- Struct
- Aws::CognitoIdentity::Types::RoleMapping
- Defined in:
- gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/types.rb
Overview
A role mapping.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#ambiguous_role_resolution ⇒ String
If you specify Token or Rules as the
Type
,AmbiguousRoleResolution
is required. -
#rules_configuration ⇒ Types::RulesConfigurationType
The rules to be used for mapping users to roles.
-
#type ⇒ String
The role mapping type.
Instance Attribute Details
#ambiguous_role_resolution ⇒ String
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.
1114 1115 1116 1117 1118 1119 1120 |
# File 'gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/types.rb', line 1114 class RoleMapping < Struct.new( :type, :ambiguous_role_resolution, :rules_configuration) SENSITIVE = [] include Aws::Structure end |
#rules_configuration ⇒ Types::RulesConfigurationType
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type, RulesConfiguration
is required.
1114 1115 1116 1117 1118 1119 1120 |
# File 'gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/types.rb', line 1114 class RoleMapping < Struct.new( :type, :ambiguous_role_resolution, :rules_configuration) SENSITIVE = [] include Aws::Structure end |
#type ⇒ String
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.
1114 1115 1116 1117 1118 1119 1120 |
# File 'gems/aws-sdk-cognitoidentity/lib/aws-sdk-cognitoidentity/types.rb', line 1114 class RoleMapping < Struct.new( :type, :ambiguous_role_resolution, :rules_configuration) SENSITIVE = [] include Aws::Structure end |