CDK AWS trigger with type EVENT

0

Hi team, I want to create a glue trigger via the CDK and associate it with a workflow,

after 5 eventBridge events => glue workflow as destination fire my glue trigger of type = "EVENT"=> glue trigger call the job

the trigger is of type "EVENT"

I want to add the following config to my trigger via CDK :

"EventBatchingCondition": {
            "BatchSize": 5,
            "BatchWindow": 900
        }

but did not find any object allowing me to add this config to the CfnTrigger.

this is my CDK code :

const glueEdwWorkflowTrigger = new glue.CfnTrigger(
      this,
      "trigger",
      {
        name: "trigger",
        workflowName: myWorkFlow.name,
        type: "EVENT",

        predicate:{conditions:[{}]},
        actions: [
          {
            jobName: myCfnJob.name,
            arguments: {},
          },
        ]
      }
    );

how can I add EventBatchingCondition (BatchSize) info to my CfnTrigger? so that my trigger is fired after 5 event bridge events

thanks a lot.

1개 답변
0

Unfortunately, you cannot specify EventBatchingCondition yet in a AWS::Glue::Trigger CloudFormation resource, which CDK depends on. Please follow this GitHub issue to track progress on coverage: https://github.com/aws-cloudformation/cloudformation-coverage-roadmap/issues/967

In the meantime, as a workaround you could manually call the Glue API to add this property. One option may be to do this as part of a CDK trigger.

AWS
jeremy
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠