Class StepFunctionsRestApi
- Namespace
- Amazon.CDK.AWS.APIGateway
- Assembly
- Amazon.CDK.AWS.APIGateway.dll
Defines an API Gateway REST API with a Synchrounous Express State Machine as a proxy integration.
public class StepFunctionsRestApi : RestApi, IRestApi, IResource, IConstruct, IConstruct, IDependable
- Inheritance
-
StepFunctionsRestApi
- Implements
-
IResourceIConstructIConstructIDependable
- Inherited Members
Examples
var stateMachineDefinition = new Pass(this, "PassState");
var stateMachine = new StateMachine(this, "StateMachine", new StateMachineProps {
Definition = stateMachineDefinition,
StateMachineType = StateMachineType.EXPRESS
});
new StepFunctionsRestApi(this, "StepFunctionsRestApi", new StepFunctionsRestApiProps {
Deploy = true,
StateMachine = stateMachine
});
Remarks
ExampleMetadata: infused
Constructors
StepFunctionsRestApi(Construct, string, IStepFunctionsRestApiProps)
public StepFunctionsRestApi(Construct scope, string id, IStepFunctionsRestApiProps props)
Parameters
scope
Constructid
stringprops
IStepFunctionsRestApiProps