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, IScheduleTarget
Syntax (vb)
Public Class StepFunctionsStartExecution
Inherits ScheduleTargetBase
Implements IScheduleTarget
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)
})
});
Synopsis
Constructors
Step |
|
Step |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Step |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Add |
Constructors
StepFunctionsStartExecution(IStateMachine, IScheduleTargetBaseProps)
public StepFunctionsStartExecution(IStateMachine stateMachine, IScheduleTargetBaseProps props)
Parameters
- stateMachine IState
Machine - props ISchedule
Target Base Props
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. By Ref Value 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. Deputy Base. Deputy Props The deputy props