Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Unable to declare CloudWatch Output for AWS-RunPatchBaselineWithHooks #139

@rileysea

Description

@rileysea

Hello,

I am trying to deploy an L1 construct in the CDK (CfnMaintenanceWindowTask). However, the CloudFormation resource is not allowing me to declare the CloudWatchOutputConfig options for the task, which is sending a run command AWS-RunPatchBaselineWithHooks.

Where am I supposed to declare this? Under Parameters is where I receive an error when the stack is deployed.

Cannot deserialize instance of `java.util.ArrayList<java.lang.Object>` out of START_OBJECT token at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: com.amazonaws.services.ssm.model.UpdateMaintenanceWindowTaskRequest["TaskInvocationParameters"]->com.amazonaws.services.ssm.model.MaintenanceWindowTaskInvocationParameters["MaintenanceWindowRunCommandParameters"]->com.amazonaws.services.ssm.model.MaintenanceWindowRunCommandParameters["Parameters"]->java.util.LinkedHashMap["Parameters"])

References:
https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_CloudWatchOutputConfig.html
https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-about-aws-runpatchbaselinewithhooks.html
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ssm-maintenancewindowtask-maintenancewindowruncommandparameters.html
https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-ssm.CfnMaintenanceWindowTask.MaintenanceWindowRunCommandParametersProperty.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions