How to deactivate AWS Glue trigger using CDK?

0

I have created a glue trigger using cdk. My question is how can I deactivate this trigger using CDK. Here is my code -

const myTrigger = new CfnTrigger(this,`my-trigger-dev`, {
            name: `trigger_name`,
            schedule: "cron(0 16 * * ? *)",
            type: "SCHEDULED",
            startOnCreation: (props.scheduler === true) ? true : false,
            actions: [
            {
                jobName: `My-Test-Job`
            }
            ],
            workflowName: 'MyTestWorkflow,
        })

Please help me with your valuable feedback. Thank you.

1 回答
0

Hello.

"startOnCreation" is a setting to automatically start when creating a trigger.
Changing this setting to "false" for an existing trigger will not disable the trigger.

So, how about stopping it from the AWS CLI or management console?
https://docs.aws.amazon.com/glue/latest/dg/activate-triggers.html

profile picture
专家
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则