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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ