Show / Hide Table of Contents

Interface ISfnStateMachineProps

Customize the Step Functions State Machine target.

Inherited Members
ITargetBaseProps.DeadLetterQueue
ITargetBaseProps.MaxEventAge
ITargetBaseProps.RetryAttempts
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.

RuleTargetInput? Input { get; }
Property Value

RuleTargetInput

Remarks

Default: the entire EventBridge event

Role

The IAM role to be assumed to execute the State Machine.

IRole? Role { get; }
Property Value

IRole

Remarks

Default: - a new role will be created

Back to top Generated by DocFX