Class CfnIdentityPoolRoleAttachment.MappingRuleProperty
Defines how to map a claim to a role ARN.
Inheritance
System.Object
CfnIdentityPoolRoleAttachment.MappingRuleProperty
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.AWS.Cognito.dll
Syntax (csharp)
public class MappingRuleProperty : Object, CfnIdentityPoolRoleAttachment.IMappingRuleProperty
Syntax (vb)
Public Class MappingRuleProperty
Inherits Object
Implements CfnIdentityPoolRoleAttachment.IMappingRuleProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var mappingRuleProperty = new MappingRuleProperty {
Claim = "claim",
MatchType = "matchType",
RoleArn = "roleArn",
Value = "value"
};
Synopsis
Constructors
MappingRuleProperty() |
Properties
Claim | The claim name that must be present in the token. |
MatchType | The match condition that specifies how closely the claim value in the IdP token must match |
RoleArn | The Amazon Resource Name (ARN) of the role. |
Value | A brief string that the claim must match. |
Constructors
MappingRuleProperty()
public MappingRuleProperty()
Properties
Claim
The claim name that must be present in the token.
public string Claim { get; set; }
Property Value
System.String
Remarks
MatchType
The match condition that specifies how closely the claim value in the IdP token must match Value
.
public string MatchType { get; set; }
Property Value
System.String
Remarks
Valid values are: Equals
, Contains
, StartsWith
, and NotEqual
.
RoleArn
The Amazon Resource Name (ARN) of the role.
public string RoleArn { get; set; }
Property Value
System.String
Remarks
Value
A brief string that the claim must match.
public string Value { get; set; }
Property Value
System.String