Skip to content

Commit

Permalink
docs(apigateway): set integrationHttpMethod for vpc link integration (#…
Browse files Browse the repository at this point in the history
…28299)

As written in #6404, a VPC link integration fails to deploy unless we set `integrationHttpMethod` prop explicitly.

In this PR we fix the sample code accordingly.
 
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
tmokmss authored Dec 11, 2023
1 parent 97130bd commit 2af7863
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/aws-cdk-lib/aws-apigateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,7 @@ const link = new apigateway.VpcLink(this, 'link', {

const integration = new apigateway.Integration({
type: apigateway.IntegrationType.HTTP_PROXY,
integrationHttpMethod: 'ANY',
options: {
connectionType: apigateway.ConnectionType.VPC_LINK,
vpcLink: link,
Expand Down

0 comments on commit 2af7863

Please sign in to comment.