# MappingRuleProperty

Defines how to map a claim to a role ARN.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const mappingRuleProperty: cognito.CfnIdentityPoolRoleAttachment.MappingRuleProperty = {
  claim: 'claim',
  matchType: 'matchType',
  roleArn: 'roleArn',
  value: 'value',
};
```

## Properties

- `claim`: string (required) — The claim name that must be present in the token.

  For example: "isAdmin" or "paid".

- `matchType`: string (required) — The match condition that specifies how closely the claim value in the IdP token must match `Value` .

  Valid values are: `Equals` , `Contains` , `StartsWith` , and `NotEqual` .

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of the role.

- `value`: string (required) — A brief string that the claim must match.

  For example, "paid" or "yes".
