# CfnStudioSessionMappingProps

Properties for defining a `CfnStudioSessionMapping`.

Used as props by: [CfnStudioSessionMapping](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_emr.CfnStudioSessionMapping.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_emr as emr

cfn_studio_session_mapping_props = emr.CfnStudioSessionMappingProps(
    identity_name="identityName",
    identity_type="identityType",
    session_policy_arn="sessionPolicyArn",
    studio_id="studioId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.emr.*;

CfnStudioSessionMappingProps cfnStudioSessionMappingProps = CfnStudioSessionMappingProps.builder()
        .identityName("identityName")
        .identityType("identityType")
        .sessionPolicyArn("sessionPolicyArn")
        .studioId("studioId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;

var cfnStudioSessionMappingProps = new CfnStudioSessionMappingProps {
    IdentityName = "identityName",
    IdentityType = "identityType",
    SessionPolicyArn = "sessionPolicyArn",
    StudioId = "studioId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnStudioSessionMappingProps := &CfnStudioSessionMappingProps{
	IdentityName: jsii.String("identityName"),
	IdentityType: jsii.String("identityType"),
	SessionPolicyArn: jsii.String("sessionPolicyArn"),
	StudioId: jsii.String("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](https://docs.aws.amazon.com/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](https://docs.aws.amazon.com/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.
