# CfnStudioSessionMappingProps

Properties for defining a `CfnStudioSessionMapping`.

Extends: CfnStudioSessionMappingProps
Used as props by: CfnStudioSessionMapping

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_emr as emr } from 'aws-cdk-lib';
const cfnStudioSessionMappingProps: emr.CfnStudioSessionMappingProps = {
  identityName: 'identityName',
  identityType: 'identityType',
  sessionPolicyArn: 'sessionPolicyArn',
  studioId: 'studioId',
};
```

## Properties

- `identityName`: string (required) — The name of the user or group.

  For more information, see [UserName](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName) and [DisplayName](https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName) in the *Identity Store API Reference* .

- `identityType`: string (required) — Specifies whether the identity to map to the Amazon EMR Studio is a user or a group.

- `sessionPolicyArn`: string | [IManagedPolicyRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IManagedPolicyRef.html) (required) — The Amazon Resource Name (ARN) for the session policy that will be applied to the user or group.

  Session policies refine Studio user permissions without the need to use multiple IAM user roles. For more information, see [Create an EMR Studio user role with session policies](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-studio-user-role.html) in the *Amazon EMR Management Guide* .

- `studioId`: string | [IStudioRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_emr.IStudioRef.html) (required) — The ID of the Amazon EMR Studio to which the user or group will be mapped.
