Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateStudioCommandProtected

Creates a new Amazon EMR Studio.

Example

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

import { EMRClient, CreateStudioCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, CreateStudioCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const input = { // CreateStudioInput
Name: "STRING_VALUE", // required
Description: "STRING_VALUE",
AuthMode: "SSO" || "IAM", // required
VpcId: "STRING_VALUE", // required
SubnetIds: [ // SubnetIdList // required
"STRING_VALUE",
],
ServiceRole: "STRING_VALUE", // required
UserRole: "STRING_VALUE",
WorkspaceSecurityGroupId: "STRING_VALUE", // required
EngineSecurityGroupId: "STRING_VALUE", // required
DefaultS3Location: "STRING_VALUE", // required
IdpAuthUrl: "STRING_VALUE",
IdpRelayStateParameterName: "STRING_VALUE",
Tags: [ // TagList
{ // Tag
Key: "STRING_VALUE",
Value: "STRING_VALUE",
},
],
};
const command = new CreateStudioCommand(input);
const response = await client.send(command);
// { // CreateStudioOutput
// StudioId: "STRING_VALUE",
// Url: "STRING_VALUE",
// };

Param

CreateStudioCommandInput

Returns

CreateStudioCommandOutput

See

Throws

InternalServerException (server fault)

This exception occurs when there is an internal failure in the Amazon EMR service.

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