Table of Contents

Class StepFunctionsIntegration

Namespace
Amazon.CDK.AWS.APIGateway
Assembly
Amazon.CDK.AWS.APIGateway.dll

Options to integrate with various StepFunction API.

public class StepFunctionsIntegration : DeputyBase
Inheritance
StepFunctionsIntegration

Examples

var stateMachine = new StateMachine(this, "MyStateMachine", new StateMachineProps {
                StateMachineType = StateMachineType.EXPRESS,
                Definition = Chain.Start(new Pass(this, "Pass"))
            });

            var api = new RestApi(this, "Api", new RestApiProps {
                RestApiName = "MyApi"
            });
            api.Root.AddMethod("GET", StepFunctionsIntegration.StartExecution(stateMachine));

Remarks

ExampleMetadata: infused

Constructors

StepFunctionsIntegration()

public StepFunctionsIntegration()

Methods

StartExecution(IStateMachine, IStepFunctionsExecutionIntegrationOptions?)

Integrates a Synchronous Express State Machine from AWS Step Functions to an API Gateway method.

public static AwsIntegration StartExecution(IStateMachine stateMachine, IStepFunctionsExecutionIntegrationOptions? options = null)

Parameters

stateMachine IStateMachine
options IStepFunctionsExecutionIntegrationOptions

Returns

AwsIntegration

Examples

var stateMachine = new StateMachine(this, "MyStateMachine", new StateMachineProps {
                StateMachineType = StateMachineType.EXPRESS,
                Definition = Chain.Start(new Pass(this, "Pass"))
            });

            var api = new RestApi(this, "Api", new RestApiProps {
                RestApiName = "MyApi"
            });
            api.Root.AddMethod("GET", StepFunctionsIntegration.StartExecution(stateMachine));