Show / Hide Table of Contents

Enum ActionAfterCompletion

The action that EventBridge Scheduler applies to the schedule after the schedule completes invoking the target.

Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum ActionAfterCompletion
Syntax (vb)
Public Enum ActionAfterCompletion
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.Scheduler;
            using Amazon.CDK.AWS.KMS;

            Key key;
            CfnScheduleGroup scheduleGroup;
            Queue targetQueue;
            Queue deadLetterQueue;


            var schedulerRole = new Role(this, "SchedulerRole", new RoleProps {
                AssumedBy = new ServicePrincipal("scheduler.amazonaws.com")
            });
            // To send the message to the queue
            // This policy changes depending on the type of target.
            schedulerRole.AddToPrincipalPolicy(new PolicyStatement(new PolicyStatementProps {
                Actions = new [] { "sqs:SendMessage" },
                Resources = new [] { targetQueue.QueueArn }
            }));

            var createScheduleTask1 = new EventBridgeSchedulerCreateScheduleTask(this, "createSchedule", new EventBridgeSchedulerCreateScheduleTaskProps {
                ScheduleName = "TestSchedule",
                ActionAfterCompletion = ActionAfterCompletion.NONE,
                ClientToken = "testToken",
                Description = "TestDescription",
                StartDate = new Date(),
                EndDate = new Date(new Date().GetTime() + 1000 * 60 * 60),
                FlexibleTimeWindow = Duration.Minutes(5),
                GroupName = scheduleGroup.Ref,
                KmsKey = key,
                Schedule = Schedule.Rate(Duration.Minutes(5)),
                Timezone = "UTC",
                Enabled = true,
                Target = new EventBridgeSchedulerTarget(new EventBridgeSchedulerTargetProps {
                    Arn = targetQueue.QueueArn,
                    Role = schedulerRole,
                    RetryPolicy = new RetryPolicy {
                        MaximumRetryAttempts = 2,
                        MaximumEventAge = Duration.Minutes(5)
                    },
                    DeadLetterQueue = deadLetterQueue
                })
            });

Synopsis

Fields

DELETE

Deletes the schedule.

NONE

Takes no action.

Fields

Name Description
DELETE

Deletes the schedule.

NONE

Takes no action.

Back to top Generated by DocFX