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 Resposta
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
ESPECIALISTA
respondido há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas