AWSCognitoIdentityRoleMapping
Objective-C
@interface AWSCognitoIdentityRoleMapping : AWSModel
Swift
class AWSCognitoIdentityRoleMapping : AWSModel
A role mapping.
Required parameters: [Type]
-
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 nocognito:preferred_roleclaim and there are multiplecognito:rolesmatches for theTokentype.Declaration
Objective-C
@property (nonatomic) AWSCognitoIdentityAmbiguousRoleResolutionType ambiguousRoleResolution;Swift
var ambiguousRoleResolution: AWSCognitoIdentityAmbiguousRoleResolutionType { get set } -
The rules to be used for mapping users to roles.
If you specify Rules as the role mapping type,
RulesConfigurationis required.Declaration
Objective-C
@property (nonatomic, strong) AWSCognitoIdentityRulesConfigurationType *_Nullable rulesConfiguration;Swift
var rulesConfiguration: AWSCognitoIdentityRulesConfigurationType? { get set } -
The 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.Declaration
Objective-C
@property (nonatomic) AWSCognitoIdentityRoleMappingType types;Swift
var types: AWSCognitoIdentityRoleMappingType { get set }
View on GitHub
Install in Dash
AWSCognitoIdentityRoleMapping Class Reference