Class HttpStepFunctionsIntegration
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegration
software.amazon.awscdk.aws_apigatewayv2_integrations.HttpStepFunctionsIntegration
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:33.736Z")
@Stability(Stable)
public class HttpStepFunctionsIntegration
extends HttpRouteIntegration
The StepFunctions integration resource for HTTP API.
Example:
import software.amazon.awscdk.aws_apigatewayv2_integrations.HttpStepFunctionsIntegration;
import software.amazon.awscdk.services.stepfunctions.*;
StateMachine stateMachine;
HttpApi httpApi;
httpApi.addRoutes(AddRoutesOptions.builder()
.path("/start")
.methods(List.of(HttpMethod.POST))
.integration(HttpStepFunctionsIntegration.Builder.create("StartExecutionIntegration")
.stateMachine(stateMachine)
.subtype(HttpIntegrationSubtype.STEPFUNCTIONS_START_EXECUTION)
.build())
.build());
httpApi.addRoutes(AddRoutesOptions.builder()
.path("/start-sync")
.methods(List.of(HttpMethod.POST))
.integration(HttpStepFunctionsIntegration.Builder.create("StartSyncExecutionIntegration")
.stateMachine(stateMachine)
.subtype(HttpIntegrationSubtype.STEPFUNCTIONS_START_SYNC_EXECUTION)
.build())
.build());
httpApi.addRoutes(AddRoutesOptions.builder()
.path("/stop")
.methods(List.of(HttpMethod.POST))
.integration(HttpStepFunctionsIntegration.Builder.create("StopExecutionIntegration")
.stateMachine(stateMachine)
.subtype(HttpIntegrationSubtype.STEPFUNCTIONS_STOP_EXECUTION)
// For the `STOP_EXECUTION` subtype, it is necessary to specify the `executionArn`.
.parameterMapping(new ParameterMapping().custom("ExecutionArn", "$request.querystring.executionArn"))
.build())
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forHttpStepFunctionsIntegration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpStepFunctionsIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedHttpStepFunctionsIntegration(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionbind(HttpRouteIntegrationBindOptions options) Bind this integration to the route.Methods inherited from class software.amazon.awscdk.services.apigatewayv2.HttpRouteIntegration
completeBindMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
HttpStepFunctionsIntegration
protected HttpStepFunctionsIntegration(software.amazon.jsii.JsiiObjectRef objRef) -
HttpStepFunctionsIntegration
protected HttpStepFunctionsIntegration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
HttpStepFunctionsIntegration
@Stability(Stable) public HttpStepFunctionsIntegration(@NotNull String id, @NotNull HttpStepFunctionsIntegrationProps props) - Parameters:
id- id of the underlying integration construct. This parameter is required.props- properties to configure the integration. This parameter is required.
-
-
Method Details
-
bind
@Stability(Stable) @NotNull public HttpRouteIntegrationConfig bind(@NotNull HttpRouteIntegrationBindOptions options) Bind this integration to the route.- Specified by:
bindin classHttpRouteIntegration- Parameters:
options- This parameter is required.
-