Interface ISfnStateMachineProps
Customize the Step Functions State Machine target.
Inherited Members
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISfnStateMachineProps : ITargetBaseProps
Syntax (vb)
Public Interface ISfnStateMachineProps
Inherits ITargetBaseProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.IAM;
using Amazon.CDK.AWS.StepFunctions;
var rule = new Rule(this, "Rule", new RuleProps {
Schedule = Schedule.Rate(Duration.Minutes(1))
});
var dlq = new Queue(this, "DeadLetterQueue");
var role = new Role(this, "Role", new RoleProps {
AssumedBy = new ServicePrincipal("events.amazonaws.com")
});
var stateMachine = new StateMachine(this, "SM", new StateMachineProps {
Definition = new Wait(this, "Hello", new WaitProps { Time = WaitTime.Duration(Duration.Seconds(10)) })
});
rule.AddTarget(new SfnStateMachine(stateMachine, new SfnStateMachineProps {
Input = RuleTargetInput.FromObject(new Dictionary<string, string> { { "SomeParam", "SomeValue" } }),
DeadLetterQueue = dlq,
Role = role
}));
Synopsis
Properties
Input | The input to the state machine execution. |
Role | The IAM role to be assumed to execute the State Machine. |
Properties
Input
The input to the state machine execution.
virtual RuleTargetInput Input { get; }
Property Value
Remarks
Default: the entire EventBridge event
Role
The IAM role to be assumed to execute the State Machine.
virtual IRole Role { get; }
Property Value
Remarks
Default: - a new role will be created