Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class GetStudioSessionMappingCommandProtected

Fetches mapping details for the specified Amazon EMR Studio and identity (user or group).

Example

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

import { EMRClient, GetStudioSessionMappingCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, GetStudioSessionMappingCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const input = { // GetStudioSessionMappingInput
StudioId: "STRING_VALUE", // required
IdentityId: "STRING_VALUE",
IdentityName: "STRING_VALUE",
IdentityType: "USER" || "GROUP", // required
};
const command = new GetStudioSessionMappingCommand(input);
const response = await client.send(command);
// { // GetStudioSessionMappingOutput
// SessionMapping: { // SessionMappingDetail
// StudioId: "STRING_VALUE",
// IdentityId: "STRING_VALUE",
// IdentityName: "STRING_VALUE",
// IdentityType: "USER" || "GROUP",
// SessionPolicyArn: "STRING_VALUE",
// CreationTime: new Date("TIMESTAMP"),
// LastModifiedTime: new Date("TIMESTAMP"),
// },
// };

Param

GetStudioSessionMappingCommandInput

Returns

GetStudioSessionMappingCommandOutput

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