import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { GetMaintenanceWindowTaskRequest, GetMaintenanceWindowTaskResult } from "../models/models_1"; import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetMaintenanceWindowTaskCommand}. */ export interface GetMaintenanceWindowTaskCommandInput extends GetMaintenanceWindowTaskRequest { } /** * @public * * The output of {@link GetMaintenanceWindowTaskCommand}. */ export interface GetMaintenanceWindowTaskCommandOutput extends GetMaintenanceWindowTaskResult, __MetadataBearer { } declare const GetMaintenanceWindowTaskCommand_base: { new (input: GetMaintenanceWindowTaskCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: GetMaintenanceWindowTaskCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Retrieves the details of a maintenance window task.

* *

For maintenance window tasks without a specified target, you can't supply values for * --max-errors and --max-concurrency. Instead, the system inserts a * placeholder value of 1, which may be reported in the response to this command. * These values don't affect the running of your task and can be ignored.

*
*

To retrieve a list of tasks in a maintenance window, instead use the DescribeMaintenanceWindowTasks command.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, GetMaintenanceWindowTaskCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, GetMaintenanceWindowTaskCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * const client = new SSMClient(config); * const input = { // GetMaintenanceWindowTaskRequest * WindowId: "STRING_VALUE", // required * WindowTaskId: "STRING_VALUE", // required * }; * const command = new GetMaintenanceWindowTaskCommand(input); * const response = await client.send(command); * // { // GetMaintenanceWindowTaskResult * // WindowId: "STRING_VALUE", * // WindowTaskId: "STRING_VALUE", * // Targets: [ // Targets * // { // Target * // Key: "STRING_VALUE", * // Values: [ // TargetValues * // "STRING_VALUE", * // ], * // }, * // ], * // TaskArn: "STRING_VALUE", * // ServiceRoleArn: "STRING_VALUE", * // TaskType: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", * // TaskParameters: { // MaintenanceWindowTaskParameters * // "": { // MaintenanceWindowTaskParameterValueExpression * // Values: [ // MaintenanceWindowTaskParameterValueList * // "STRING_VALUE", * // ], * // }, * // }, * // TaskInvocationParameters: { // MaintenanceWindowTaskInvocationParameters * // RunCommand: { // MaintenanceWindowRunCommandParameters * // Comment: "STRING_VALUE", * // CloudWatchOutputConfig: { // CloudWatchOutputConfig * // CloudWatchLogGroupName: "STRING_VALUE", * // CloudWatchOutputEnabled: true || false, * // }, * // DocumentHash: "STRING_VALUE", * // DocumentHashType: "Sha256" || "Sha1", * // DocumentVersion: "STRING_VALUE", * // NotificationConfig: { // NotificationConfig * // NotificationArn: "STRING_VALUE", * // NotificationEvents: [ // NotificationEventList * // "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", * // ], * // NotificationType: "Command" || "Invocation", * // }, * // OutputS3BucketName: "STRING_VALUE", * // OutputS3KeyPrefix: "STRING_VALUE", * // Parameters: { // Parameters * // "": [ // ParameterValueList * // "STRING_VALUE", * // ], * // }, * // ServiceRoleArn: "STRING_VALUE", * // TimeoutSeconds: Number("int"), * // }, * // Automation: { // MaintenanceWindowAutomationParameters * // DocumentVersion: "STRING_VALUE", * // Parameters: { // AutomationParameterMap * // "": [ // AutomationParameterValueList * // "STRING_VALUE", * // ], * // }, * // }, * // StepFunctions: { // MaintenanceWindowStepFunctionsParameters * // Input: "STRING_VALUE", * // Name: "STRING_VALUE", * // }, * // Lambda: { // MaintenanceWindowLambdaParameters * // ClientContext: "STRING_VALUE", * // Qualifier: "STRING_VALUE", * // Payload: new Uint8Array(), * // }, * // }, * // Priority: Number("int"), * // MaxConcurrency: "STRING_VALUE", * // MaxErrors: "STRING_VALUE", * // LoggingInfo: { // LoggingInfo * // S3BucketName: "STRING_VALUE", // required * // S3KeyPrefix: "STRING_VALUE", * // S3Region: "STRING_VALUE", // required * // }, * // Name: "STRING_VALUE", * // Description: "STRING_VALUE", * // CutoffBehavior: "CONTINUE_TASK" || "CANCEL_TASK", * // AlarmConfiguration: { // AlarmConfiguration * // IgnorePollAlarmFailure: true || false, * // Alarms: [ // AlarmList // required * // { // Alarm * // Name: "STRING_VALUE", // required * // }, * // ], * // }, * // }; * * ``` * * @param GetMaintenanceWindowTaskCommandInput - {@link GetMaintenanceWindowTaskCommandInput} * @returns {@link GetMaintenanceWindowTaskCommandOutput} * @see {@link GetMaintenanceWindowTaskCommandInput} for command's `input` shape. * @see {@link GetMaintenanceWindowTaskCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link DoesNotExistException} (client fault) *

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.

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

An error occurred on the server side.

* * @throws {@link SSMServiceException} *

Base exception class for all service exceptions from SSM service.

* * * @public */ export declare class GetMaintenanceWindowTaskCommand extends GetMaintenanceWindowTaskCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetMaintenanceWindowTaskRequest; output: GetMaintenanceWindowTaskResult; }; sdk: { input: GetMaintenanceWindowTaskCommandInput; output: GetMaintenanceWindowTaskCommandOutput; }; }; }