DeregisterTaskFromMaintenanceWindowCommand

Removes a task from a maintenance window.

Example Syntax

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

import { SSMClient, DeregisterTaskFromMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import
// const { SSMClient, DeregisterTaskFromMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import
const client = new SSMClient(config);
const input = { // DeregisterTaskFromMaintenanceWindowRequest
  WindowId: "STRING_VALUE", // required
  WindowTaskId: "STRING_VALUE", // required
};
const command = new DeregisterTaskFromMaintenanceWindowCommand(input);
const response = await client.send(command);
// { // DeregisterTaskFromMaintenanceWindowResult
//   WindowId: "STRING_VALUE",
//   WindowTaskId: "STRING_VALUE",
// };

DeregisterTaskFromMaintenanceWindowCommand Input

Parameter
Type
Description
WindowId
Required
string | undefined

The ID of the maintenance window the task should be removed from.

WindowTaskId
Required
string | undefined

The ID of the task to remove from the maintenance window.

DeregisterTaskFromMaintenanceWindowCommand Output

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

The ID of the maintenance window the task was removed from.

WindowTaskId
string | undefined

The ID of the task removed from the maintenance window.

Throws

Name
Fault
Details
DoesNotExistException
client

Error returned when the ID specified for a resource, such as a maintenance window or patch baseline, doesn't exist.

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas  in the Amazon Web Services General Reference.

InternalServerError
server

An error occurred on the server side.

SSMServiceException
Base exception class for all service exceptions from SSM service.