Skip to content

Commit

Permalink
fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
badmintoncryer committed Feb 6, 2024
1 parent 625a54b commit a72e564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/aws-cdk-lib/aws-apigatewayv2-integrations/README.md
Expand Up @@ -76,6 +76,7 @@ The following code configures a Step Functions integrations:

```ts
import { HttpStepFunctionsIntegration } from 'aws-cdk-lib/aws-apigatewayv2-integrations';
import * as sfn from 'aws-cdk-lib/aws-stepfunctions';

declare const stateMachine: sfn.StateMachine;
declare const httpApi: apigwv2.HttpApi;
Expand Down Expand Up @@ -103,7 +104,7 @@ httpApi.addRoutes({
methods: [ apigwv2.HttpMethod.POST ],
integration: new HttpStepFunctionsIntegration('StopExecutionIntegration', {
stateMachine,
subType: apigwv2.HttpIntegrationSubtype.STEPFUNCTIONS_STOP_EXECUTION,
subtype: apigwv2.HttpIntegrationSubtype.STEPFUNCTIONS_STOP_EXECUTION,
// For the `STOP_EXECUTION` subtype, it is necessary to specify the `executionArn`.
parameterMapping: new apigwv2.ParameterMapping()
.custom('ExecutionArn', '$request.querystring.executionArn'),
Expand Down

0 comments on commit a72e564

Please sign in to comment.