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 Answer
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
EXPERT
answered 13 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions