DeleteJobCommand

Deletes a specified job definition. If the job definition is not found, no exception is thrown.

Example Syntax

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

import { GlueClient, DeleteJobCommand } from "@aws-sdk/client-glue"; // ES Modules import
// const { GlueClient, DeleteJobCommand } = require("@aws-sdk/client-glue"); // CommonJS import
const client = new GlueClient(config);
const input = { // DeleteJobRequest
  JobName: "STRING_VALUE", // required
};
const command = new DeleteJobCommand(input);
const response = await client.send(command);
// { // DeleteJobResponse
//   JobName: "STRING_VALUE",
// };

DeleteJobCommand Input

See DeleteJobCommandInput for more details

Parameter
Type
Description
JobName
Required
string | undefined

The name of the job definition to delete.

DeleteJobCommand Output

See DeleteJobCommandOutput for details

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
JobName
string | undefined

The name of the job definition that was deleted.

Throws

Name
Fault
Details
InternalServiceException
server

An internal service error occurred.

InvalidInputException
client

The input provided was not valid.

OperationTimeoutException
client

The operation timed out.

GlueServiceException
Base exception class for all service exceptions from Glue service.