enum HttpIntegrationSubtype
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Apigatewayv2.HttpIntegrationSubtype |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#HttpIntegrationSubtype |
![]() | software.amazon.awscdk.services.apigatewayv2.HttpIntegrationSubtype |
![]() | aws_cdk.aws_apigatewayv2.HttpIntegrationSubtype |
![]() | aws-cdk-lib » aws_apigatewayv2 » HttpIntegrationSubtype |
Supported integration subtypes.
Example
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
Name | Description |
---|---|
EVENTBRIDGE_PUT_EVENTS | EventBridge PutEvents integration. |
SQS_SEND_MESSAGE | SQS SendMessage integration. |
SQS_RECEIVE_MESSAGE | SQS ReceiveMessage integration,. |
SQS_DELETE_MESSAGE | SQS DeleteMessage integration,. |
SQS_PURGE_QUEUE | SQS PurgeQueue integration. |
APPCONFIG_GET_CONFIGURATION | AppConfig GetConfiguration integration. |
KINESIS_PUT_RECORD | Kinesis PutRecord integration. |
STEPFUNCTIONS_START_EXECUTION | Step Functions StartExecution integration. |
STEPFUNCTIONS_START_SYNC_EXECUTION | Step Functions StartSyncExecution integration. |
STEPFUNCTIONS_STOP_EXECUTION | Step Functions StopExecution integration. |
EVENTBRIDGE_PUT_EVENTS
EventBridge PutEvents integration.
SQS_SEND_MESSAGE
SQS SendMessage integration.
SQS_RECEIVE_MESSAGE
SQS ReceiveMessage integration,.
SQS_DELETE_MESSAGE
SQS DeleteMessage integration,.
SQS_PURGE_QUEUE
SQS PurgeQueue integration.
APPCONFIG_GET_CONFIGURATION
AppConfig GetConfiguration integration.
KINESIS_PUT_RECORD
Kinesis PutRecord integration.
STEPFUNCTIONS_START_EXECUTION
Step Functions StartExecution integration.
STEPFUNCTIONS_START_SYNC_EXECUTION
Step Functions StartSyncExecution integration.
STEPFUNCTIONS_STOP_EXECUTION
Step Functions StopExecution integration.