-
Notifications
You must be signed in to change notification settings - Fork 31
Unable to declare CloudWatch Output for AWS-RunPatchBaselineWithHooks #139
Description
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