Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListJobsCommandProtected

Retrieves the names of all job resources in this Amazon Web Services account, or the resources with the specified tag. This operation allows you to see which resources are available in your account, and their names.

This operation takes the optional Tags field, which you can use as a filter on the response so that tagged resources can be retrieved as a group. If you choose to use tags filtering, only resources with the tag are retrieved.

Example

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

import { GlueClient, ListJobsCommand } from "@aws-sdk/client-glue"; // ES Modules import
// const { GlueClient, ListJobsCommand } = require("@aws-sdk/client-glue"); // CommonJS import
const client = new GlueClient(config);
const input = { // ListJobsRequest
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
Tags: { // TagsMap
"<keys>": "STRING_VALUE",
},
};
const command = new ListJobsCommand(input);
const response = await client.send(command);
// { // ListJobsResponse
// JobNames: [ // JobNameList
// "STRING_VALUE",
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListJobsCommandInput

Returns

ListJobsCommandOutput

See

Throws

EntityNotFoundException (client fault)

A specified entity does not exist

Throws

InternalServiceException (server fault)

An internal service error occurred.

Throws

InvalidInputException (client fault)

The input provided was not valid.

Throws

OperationTimeoutException (client fault)

The operation timed out.

Throws

GlueServiceException

Base exception class for all service exceptions from Glue service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods