# CfnAssignmentProps

Properties for defining a `CfnAssignment`.

Extends: CfnAssignmentProps
Used as props by: CfnAssignment

- Source: Generated code
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const cfnAssignmentProps: quicksight.CfnAssignmentProps = {
  assignmentName: 'assignmentName',
  assignmentStatus: 'assignmentStatus',
  namespace: 'namespace',

  // the properties below are optional
  identities: {
    identitiesKey: ['identities'],
  },
  policyArn: 'policyArn',
};
```

## Properties

- `assignmentName`: string (required) — The name of the assignment, also called a rule.

  The name must be unique within the AWS account.

- `assignmentStatus`: string (required) — The status of the assignment.

- `identities`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string[] } — The QuickSight users, groups, or both that you want to assign the policy to.

  This maps identity type to a list of identity names.

- `namespace`: string (required) — The namespace that contains the assignment.

- `policyArn`: string — The ARN for the IAM policy to apply to the QuickSight users and groups specified in this assignment.
