Skip to content

Commit

Permalink
updated code in README
Browse files Browse the repository at this point in the history
  • Loading branch information
mickychetta committed Nov 23, 2021
1 parent eab6142 commit 165ac76
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ const apiGatewayProps: api.LambdaRestApiProps = {

const apiGateway = new api.LambdaRestApi(this, 'LambdaRestApi', apiGatewayProps);

const parentZone = new route53.PublicHostedZone(this, 'HostedZone', {
zoneName: 'example.com',
});

// This construct can only be attached to a configured API Gateway.
new Route53ToApigateway(this, 'Route53ToApigatewayPattern', {
existingApiGatewayObj: apiGateway,
privateHostedZoneProps: {
zoneName: 'www.example.com'
},
publicApi: false
existingHostedZoneInterface: parentZone,
publicApi: true
});

```
Expand Down

0 comments on commit 165ac76

Please sign in to comment.