Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateStudioSessionMappingCommandProtected

Maps a user or group to the Amazon EMR Studio specified by StudioId, and applies a session policy to refine Studio permissions for that user or group. Use CreateStudioSessionMapping to assign users to a Studio when you use IAM Identity Center authentication. For instructions on how to assign users to a Studio when you use IAM authentication, see Assign a user or group to your EMR Studio.

Example

Use a bare-bones client and the command you need to make an API call.

import { EMRClient, CreateStudioSessionMappingCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, CreateStudioSessionMappingCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const input = { // CreateStudioSessionMappingInput
StudioId: "STRING_VALUE", // required
IdentityId: "STRING_VALUE",
IdentityName: "STRING_VALUE",
IdentityType: "USER" || "GROUP", // required
SessionPolicyArn: "STRING_VALUE", // required
};
const command = new CreateStudioSessionMappingCommand(input);
const response = await client.send(command);
// {};

Param

CreateStudioSessionMappingCommandInput

Returns

CreateStudioSessionMappingCommandOutput

See

Throws

InternalServerError (server fault)

Indicates that an error occurred while processing the request and that the request was not completed.

Throws

InvalidRequestException (client fault)

This exception occurs when there is something wrong with user input.

Throws

EMRServiceException

Base exception class for all service exceptions from EMR service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods