# BatchHttpRouteOptions

Options used when configuring multiple routes, at once.

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

- Source: [`aws-apigatewayv2/lib/http/route.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigatewayv2/lib/http/route.ts#L123)
- Type last changed: v2.112.0 · 1 Dec 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `integration`: [HttpRouteIntegration](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigatewayv2.HttpRouteIntegration.html) (required) — The integration to be configured on this route.
