Class StepFunctionsStartExecution
(experimental) Use an AWS Step function as a target for AWS EventBridge Scheduler.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Scheduler.Targets.Alpha
Assembly: Amazon.CDK.AWS.Scheduler.Targets.Alpha.dll
Syntax (csharp)
public class StepFunctionsStartExecution : ScheduleTargetBase, IScheduleTarget
Syntax (vb)
Public Class StepFunctionsStartExecution
Inherits ScheduleTargetBase
Implements IScheduleTarget
Remarks
Stability: Experimental
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) | |
StepFunctionsStartExecution(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
StepFunctionsStartExecution(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
AddTargetActionToRole(ISchedule, IRole) |
Constructors
StepFunctionsStartExecution(IStateMachine, IScheduleTargetBaseProps)
public StepFunctionsStartExecution(IStateMachine stateMachine, IScheduleTargetBaseProps props)
Parameters
- stateMachine IStateMachine
- props IScheduleTargetBaseProps
Remarks
Stability: Experimental
StepFunctionsStartExecution(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected StepFunctionsStartExecution(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
StepFunctionsStartExecution(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected StepFunctionsStartExecution(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
AddTargetActionToRole(ISchedule, IRole)
protected override void AddTargetActionToRole(ISchedule schedule, IRole role)
Parameters
Overrides
Remarks
Stability: Experimental