Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class DescribeReleaseLabelCommandProtected

Provides Amazon EMR release label details, such as the releases available the Region where the API request is run, and the available applications for a specific Amazon EMR release label. Can also list Amazon EMR releases that support a specified version of Spark.

Example

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

import { EMRClient, DescribeReleaseLabelCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, DescribeReleaseLabelCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const input = { // DescribeReleaseLabelInput
ReleaseLabel: "STRING_VALUE",
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new DescribeReleaseLabelCommand(input);
const response = await client.send(command);
// { // DescribeReleaseLabelOutput
// ReleaseLabel: "STRING_VALUE",
// Applications: [ // SimplifiedApplicationList
// { // SimplifiedApplication
// Name: "STRING_VALUE",
// Version: "STRING_VALUE",
// },
// ],
// NextToken: "STRING_VALUE",
// AvailableOSReleases: [ // OSReleaseList
// { // OSRelease
// Label: "STRING_VALUE",
// },
// ],
// };

Param

DescribeReleaseLabelCommandInput

Returns

DescribeReleaseLabelCommandOutput

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