import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { StartJobRunRequest, StartJobRunResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link StartJobRunCommand}. */ export interface StartJobRunCommandInput extends StartJobRunRequest { } /** * @public * * The output of {@link StartJobRunCommand}. */ export interface StartJobRunCommandOutput extends StartJobRunResponse, __MetadataBearer { } declare const StartJobRunCommand_base: { new (input: StartJobRunCommandInput): import("@smithy/core/client").CommandImpl; new (input: StartJobRunCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Starts a job run.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EMRServerlessClient, StartJobRunCommand } from "@aws-sdk/client-emr-serverless"; // ES Modules import * // const { EMRServerlessClient, StartJobRunCommand } = require("@aws-sdk/client-emr-serverless"); // CommonJS import * // import type { EMRServerlessClientConfig } from "@aws-sdk/client-emr-serverless"; * const config = {}; // type is EMRServerlessClientConfig * const client = new EMRServerlessClient(config); * const input = { // StartJobRunRequest * applicationId: "STRING_VALUE", // required * clientToken: "STRING_VALUE", // required * executionRoleArn: "STRING_VALUE", // required * executionIamPolicy: { // JobRunExecutionIamPolicy * policy: "STRING_VALUE", * policyArns: [ // PolicyArnList * "STRING_VALUE", * ], * }, * jobDriver: { // JobDriver Union: only one key present * sparkSubmit: { // SparkSubmit * entryPoint: "STRING_VALUE", // required * entryPointArguments: [ // EntryPointArguments * "STRING_VALUE", * ], * sparkSubmitParameters: "STRING_VALUE", * }, * hive: { // Hive * query: "STRING_VALUE", // required * initQueryFile: "STRING_VALUE", * parameters: "STRING_VALUE", * }, * }, * configurationOverrides: { // ConfigurationOverrides * applicationConfiguration: [ // ConfigurationList * { // Configuration * classification: "STRING_VALUE", // required * properties: { // SensitivePropertiesMap * "": "STRING_VALUE", * }, * configurations: [ * { * classification: "STRING_VALUE", // required * properties: { * "": "STRING_VALUE", * }, * configurations: "", * }, * ], * }, * ], * monitoringConfiguration: { // MonitoringConfiguration * s3MonitoringConfiguration: { // S3MonitoringConfiguration * logUri: "STRING_VALUE", * encryptionKeyArn: "STRING_VALUE", * }, * managedPersistenceMonitoringConfiguration: { // ManagedPersistenceMonitoringConfiguration * enabled: true || false, * encryptionKeyArn: "STRING_VALUE", * }, * cloudWatchLoggingConfiguration: { // CloudWatchLoggingConfiguration * enabled: true || false, // required * logGroupName: "STRING_VALUE", * logStreamNamePrefix: "STRING_VALUE", * encryptionKeyArn: "STRING_VALUE", * logTypes: { // LogTypeMap * "": [ // LogTypeList * "STRING_VALUE", * ], * }, * }, * prometheusMonitoringConfiguration: { // PrometheusMonitoringConfiguration * remoteWriteUrl: "STRING_VALUE", * }, * }, * diskEncryptionConfiguration: { // DiskEncryptionConfiguration * encryptionContext: { // EncryptionContext * "": "STRING_VALUE", * }, * encryptionKeyArn: "STRING_VALUE", * }, * }, * tags: { // TagMap * "": "STRING_VALUE", * }, * executionTimeoutMinutes: Number("long"), * name: "STRING_VALUE", * mode: "STRING_VALUE", * retryPolicy: { // RetryPolicy * maxAttempts: Number("int"), * maxFailedAttemptsPerHour: Number("int"), * }, * flexExecution: { // FlexExecution * enabled: true || false, * }, * }; * const command = new StartJobRunCommand(input); * const response = await client.send(command); * // { // StartJobRunResponse * // applicationId: "STRING_VALUE", // required * // jobRunId: "STRING_VALUE", // required * // arn: "STRING_VALUE", // required * // }; * * ``` * * @param StartJobRunCommandInput - {@link StartJobRunCommandInput} * @returns {@link StartJobRunCommandOutput} * @see {@link StartJobRunCommandInput} for command's `input` shape. * @see {@link StartJobRunCommandOutput} for command's `response` shape. * @see {@link EMRServerlessClientResolvedConfig | config} for EMRServerlessClient's `config` shape. * * @throws {@link ConflictException} (client fault) *

The request could not be processed because of conflict in the current state of the resource.

* * @throws {@link InternalServerException} (server fault) *

Request processing failed because of an error or failure with the service.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource was not found.

* * @throws {@link ValidationException} (client fault) *

The input fails to satisfy the constraints specified by an Amazon Web Services service.

* * @throws {@link EMRServerlessServiceException} *

Base exception class for all service exceptions from EMRServerless service.

* * * @public */ export declare class StartJobRunCommand extends StartJobRunCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: StartJobRunRequest; output: StartJobRunResponse; }; sdk: { input: StartJobRunCommandInput; output: StartJobRunCommandOutput; }; }; }