Skip to content

Commit

Permalink
doc(apigateway): fix props in HttpIntegration example (aws#1941)
Browse files Browse the repository at this point in the history
  • Loading branch information
lusentis authored and Sam Goodwin committed Mar 6, 2019
1 parent 855f1f5 commit ef1ac3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/@aws-cdk/aws-apigateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ item.addMethod('GET'); // GET /items/{item}

// the default integration for methods is "handler", but one can
// customize this behavior per method or even a sub path.
item.addMethod('DELETE', {
integration: new apigateway.HttpIntegration('http://amazon.com')
});
item.addMethod('DELETE', new apigateway.HttpIntegration('http://amazon.com'));
```

### Integration Targets
Expand Down Expand Up @@ -219,4 +217,4 @@ list of missing features.

----

This module is part of the [AWS Cloud Development Kit](https://github.com/awslabs/aws-cdk) project.
This module is part of the [AWS Cloud Development Kit](https://github.com/awslabs/aws-cdk) project.

0 comments on commit ef1ac3f

Please sign in to comment.