CmdID

CmdID / aws / aws ssm

aws ssm get-maintenance-window-task

Retrieves the details of a maintenance window task. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To get information about a maintenance window task

The following get-maintenance-window-task example retrieves details about the specified maintenance window task.

aws ssm get-maintenance-window-task --window-id mw-0c5ed765acEXAMPLE --window-task-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify
--window-idThe maintenance window ID that includes the task to retrieve.
--window-task-idThe maintenance window task ID to retrieve.
Its output, shortened
{
    "ServiceRoleArn": "arn:aws:iam::123456789012:role/aws-service-role/ssm.amazonaws.com/AWSServiceRoleForAmazonSSM",
    "MaxErrors": "1",
    "TaskArn": "AWS-RunPowerShellScript",
    "MaxConcurrency": "1",
    "WindowTaskId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
    "TaskParameters": {},
    "Priority": 1,
    "TaskInvocationParameters": {
        "RunCommand": {
            "Comment": "",
            "TimeoutSeconds": 600,
            "Parameters": {
                "commands": [
                    "echo Hello"
                ],
                "executionTimeout": [
                    "3600"
                ],
                "workingDirectory": [
                    ""
                ]
            }
        }
    },
    "WindowId": "mw-0c5ed765acEXAMPLE",
    "TaskType": "RUN_COMMAND",
    "Targets": [
        {
            "Values": [
… 7 more lines

For more information, see View Information About Maintenance Windows (AWS CLI) in the AWS Systems Manager User Guide.

Options

2 in the AWS CLI reference
--window-idThe maintenance window ID that includes the task to retrieve.
--window-task-idThe maintenance window task ID to retrieve.