# IntegrationProps

Extends: IntegrationProps
Used as props by: Integration

- Source: [`aws-apigateway/lib/integration.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-apigateway/lib/integration.ts#L149)

## Example

```ts
import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';

const vpc = new ec2.Vpc(this, 'VPC');
const nlb = new elbv2.NetworkLoadBalancer(this, 'NLB', {
  vpc,
});
const link = new apigateway.VpcLink(this, 'link', {
  targets: [nlb],
});

const integration = new apigateway.Integration({
  type: apigateway.IntegrationType.HTTP_PROXY,
  integrationHttpMethod: 'ANY',
  options: {
    connectionType: apigateway.ConnectionType.VPC_LINK,
    vpcLink: link,
  },
});
```

## Properties

- `integrationHttpMethod`: string — The integration's HTTP method type.

  Required unless you use a MOCK integration.

- `options`: [IntegrationOptions](/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.IntegrationOptions.html) — Integration options.

- `type`: [IntegrationType](/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.IntegrationType.html) (required) — Specifies an API method integration type.

- `uri`: any — The Uniform Resource Identifier (URI) for the integration.

  - If you specify HTTP for the `type` property, specify the API endpoint URL.
  - If you specify MOCK for the `type` property, don't specify this property.
  - If you specify AWS for the `type` property, specify an AWS service that
    follows this form: `arn:partition:apigateway:region:subdomain.service|service:path|action/service_api.`
    For example, a Lambda function URI follows this form:
    arn:partition:apigateway:region:lambda:path/path. The path is usually in the
    form /2015-03-31/functions/LambdaFunctionARN/invocations.
