Skip to content
v2.274.0

HttpIntegrationSubtype Enum ​

Supported integration subtypes.

Example ​

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;

httpApi.addRoutes({
  path: '/start',
  methods: [ apigwv2.HttpMethod.POST ],
  integration: new HttpStepFunctionsIntegration('StartExecutionIntegration', {
    stateMachine,
    subtype: apigwv2.HttpIntegrationSubtype.STEPFUNCTIONS_START_EXECUTION,
  }),
});

httpApi.addRoutes({
  path: '/start-sync',
  methods: [ apigwv2.HttpMethod.POST ],
  integration: new HttpStepFunctionsIntegration('StartSyncExecutionIntegration', {
    stateMachine,
    subtype: apigwv2.HttpIntegrationSubtype.STEPFUNCTIONS_START_SYNC_EXECUTION,
  }),
});

httpApi.addRoutes({
  path: '/stop',
  methods: [ apigwv2.HttpMethod.POST ],
  integration: new HttpStepFunctionsIntegration('StopExecutionIntegration', {
    stateMachine,
    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'),
  }),
});

Members ​

MemberDescription
EVENTBRIDGE_PUT_EVENTSEventBridge PutEvents integration.
SQS_SEND_MESSAGESQS SendMessage integration.
SQS_RECEIVE_MESSAGESQS ReceiveMessage integration,.
SQS_DELETE_MESSAGESQS DeleteMessage integration,.
SQS_PURGE_QUEUESQS PurgeQueue integration.
APPCONFIG_GET_CONFIGURATIONAppConfig GetConfiguration integration.
KINESIS_PUT_RECORDKinesis PutRecord integration.
STEPFUNCTIONS_START_EXECUTIONStep Functions StartExecution integration.
STEPFUNCTIONS_START_SYNC_EXECUTIONStep Functions StartSyncExecution integration.
STEPFUNCTIONS_STOP_EXECUTIONStep Functions StopExecution integration.

Referenced by ​