Skip to content
v2.278.0

BatchHttpRouteOptions Struct ​

Options used when configuring multiple routes, at once.

The options here are the ones that would be configured for all being set up.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';

declare const httpRouteIntegration: apigatewayv2.HttpRouteIntegration;
const batchHttpRouteOptions: apigatewayv2.BatchHttpRouteOptions = {
  integration: httpRouteIntegration,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigatewayv2 as apigatewayv2

# http_route_integration: apigatewayv2.HttpRouteIntegration

batch_http_route_options = apigatewayv2.BatchHttpRouteOptions(
    integration=http_route_integration
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;

HttpRouteIntegration httpRouteIntegration;

BatchHttpRouteOptions batchHttpRouteOptions = BatchHttpRouteOptions.builder()
        .integration(httpRouteIntegration)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Apigatewayv2;

HttpRouteIntegration httpRouteIntegration;

var batchHttpRouteOptions = new BatchHttpRouteOptions {
    Integration = httpRouteIntegration
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var httpRouteIntegration HttpRouteIntegration

batchHttpRouteOptions := &BatchHttpRouteOptions{
	Integration: httpRouteIntegration,
}

Properties ​

The integration to be configured on this route.