- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteSessionCommand
Deletes the session.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { GlueClient, DeleteSessionCommand } from "@aws-sdk/client-glue"; // ES Modules import
// const { GlueClient, DeleteSessionCommand } = require("@aws-sdk/client-glue"); // CommonJS import
const client = new GlueClient(config);
const input = { // DeleteSessionRequest
Id: "STRING_VALUE", // required
RequestOrigin: "STRING_VALUE",
};
const command = new DeleteSessionCommand(input);
const response = await client.send(command);
// { // DeleteSessionResponse
// Id: "STRING_VALUE",
// };
DeleteSessionCommand Input
See DeleteSessionCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Id Required | string | undefined | The ID of the session to be deleted. |
RequestOrigin | string | undefined | The name of the origin of the delete session request. |
DeleteSessionCommand Output
See DeleteSessionCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Id | string | undefined | Returns the ID of the deleted session. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | Access to a resource was denied. |
ConcurrentModificationException | client | Two processes are trying to modify a resource simultaneously. |
IllegalSessionStateException | client | The session is in an invalid state to perform a requested operation. |
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. |