Class StepFunctionsStartExecution
Use an AWS Step function as a target for AWS EventBridge Scheduler.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Scheduler.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StepFunctionsStartExecution : ScheduleTargetBase, IScheduleTargetSyntax (vb)
Public Class StepFunctionsStartExecution Inherits ScheduleTargetBase Implements IScheduleTargetRemarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.StepFunctions;
            using Amazon.CDK.AWS.StepFunctions.Tasks;
            IDictionary<string, string> payload = new Dictionary<string, string> {
                { "Name", "MyParameter" },
                { "Value", "🌥️" }
            };
            var putParameterStep = new CallAwsService(this, "PutParameter", new CallAwsServiceProps {
                Service = "ssm",
                Action = "putParameter",
                IamResources = new [] { "*" },
                Parameters = new Dictionary<string, object> {
                    { "Name.$", "$.Name" },
                    { "Value.$", "$.Value" },
                    { "Type", "String" },
                    { "Overwrite", true }
                }
            });
            var stateMachine = new StateMachine(this, "StateMachine", new StateMachineProps {
                DefinitionBody = DefinitionBody.FromChainable(putParameterStep)
            });
            new Schedule(this, "Schedule", new ScheduleProps {
                Schedule = ScheduleExpression.Rate(Duration.Hours(1)),
                Target = new StepFunctionsStartExecution(stateMachine, new ScheduleTargetBaseProps {
                    Input = ScheduleTargetInput.FromObject(payload)
                })
            });Synopsis
Constructors
| StepFunctionsStartExecution(IStateMachine, IScheduleTargetBaseProps) | Use an AWS Step function as a target for AWS EventBridge Scheduler. | 
Methods
| AddTargetActionToRole(IRole) | Use an AWS Step function as a target for AWS EventBridge Scheduler. | 
Constructors
StepFunctionsStartExecution(IStateMachine, IScheduleTargetBaseProps)
Use an AWS Step function as a target for AWS EventBridge Scheduler.
public StepFunctionsStartExecution(IStateMachine stateMachine, IScheduleTargetBaseProps props)Parameters
- stateMachine IStateMachine
- props IScheduleTargetBaseProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.StepFunctions;
            using Amazon.CDK.AWS.StepFunctions.Tasks;
            IDictionary<string, string> payload = new Dictionary<string, string> {
                { "Name", "MyParameter" },
                { "Value", "🌥️" }
            };
            var putParameterStep = new CallAwsService(this, "PutParameter", new CallAwsServiceProps {
                Service = "ssm",
                Action = "putParameter",
                IamResources = new [] { "*" },
                Parameters = new Dictionary<string, object> {
                    { "Name.$", "$.Name" },
                    { "Value.$", "$.Value" },
                    { "Type", "String" },
                    { "Overwrite", true }
                }
            });
            var stateMachine = new StateMachine(this, "StateMachine", new StateMachineProps {
                DefinitionBody = DefinitionBody.FromChainable(putParameterStep)
            });
            new Schedule(this, "Schedule", new ScheduleProps {
                Schedule = ScheduleExpression.Rate(Duration.Hours(1)),
                Target = new StepFunctionsStartExecution(stateMachine, new ScheduleTargetBaseProps {
                    Input = ScheduleTargetInput.FromObject(payload)
                })
            });Methods
AddTargetActionToRole(IRole)
Use an AWS Step function as a target for AWS EventBridge Scheduler.
protected override void AddTargetActionToRole(IRole role)Parameters
- role IRole
Overrides
Remarks
ExampleMetadata: infused