AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

A role mapping.

Inheritance Hierarchy

System.Object
  Amazon.CognitoIdentity.Model.RoleMapping

Namespace: Amazon.CognitoIdentity.Model
Assembly: AWSSDK.CognitoIdentity.dll
Version: 3.x.y.z

Syntax

C#
public class RoleMapping

The RoleMapping type exposes the following members

Constructors

NameDescription
Public Method RoleMapping()

Properties

NameTypeDescription
Public Property AmbiguousRoleResolution Amazon.CognitoIdentity.AmbiguousRoleResolutionType

Gets and sets the property 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.

Public Property RulesConfiguration Amazon.CognitoIdentity.Model.RulesConfigurationType

Gets and sets the property RulesConfiguration.

The rules to be used for mapping users to roles.

If you specify Rules as the role mapping type, RulesConfiguration is required.

Public Property Type Amazon.CognitoIdentity.RoleMappingType

Gets and sets the property 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.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5