the-ldk
Version:
Welcome to the LDK! A collection of custom AWS CDK constructs to help you build serverless applications faster.
20 lines • 1.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExampleExpressStepFunctionStack = void 0;
const aws_cdk_lib_1 = require("aws-cdk-lib");
const aws_stepfunctions_1 = require("aws-cdk-lib/aws-stepfunctions");
const ExpressStepFunction_1 = require("../../constructs/StepFunctions/ExpressStepFunction");
class ExampleExpressStepFunctionStack extends aws_cdk_lib_1.NestedStack {
constructor(scope, id, props) {
super(scope, id, props);
const stepFunctionDefinition = new aws_stepfunctions_1.Pass(this, 'StartState');
const exampleExpressStepFunction = new ExpressStepFunction_1.ExpressStepFunction(this, 'ExampleExpressStepFunction', {
serviceName: 'ldk-example',
stage: 'dev',
definition: stepFunctionDefinition,
});
this.stepFunction = exampleExpressStepFunction.stateMachine;
}
}
exports.ExampleExpressStepFunctionStack = ExampleExpressStepFunctionStack;
//# sourceMappingURL=ExpressStepFunctionStack.js.map