Skip to content

Commit

Permalink
Modernize imports (#7262)
Browse files Browse the repository at this point in the history
Mixing import and require is weird. This normalizes imports as normally used in TS CDK projects.
  • Loading branch information
Juan Lulkin authored Apr 10, 2020
1 parent d1ae05f commit ed851d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/@aws-cdk/aws-route53/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
To add a public hosted zone:

```ts
import route53 = require('@aws-cdk/aws-route53');
import * as route53 from '@aws-cdk/aws-route53';

new route53.PublicHostedZone(this, 'HostedZone', {
zoneName: 'fully.qualified.domain.com'
Expand All @@ -24,8 +24,8 @@ To add a private hosted zone, use `PrivateHostedZone`. Note that
VPC you're configuring for private hosted zones.

```ts
import ec2 = require('@aws-cdk/aws-ec2');
import route53 = require('@aws-cdk/aws-route53');
import * as ec2 from '@aws-cdk/aws-ec2';
import * as route53 from '@aws-cdk/aws-route53';

const vpc = new ec2.Vpc(this, 'VPC');

Expand All @@ -41,7 +41,7 @@ Additional VPCs can be added with `zone.addVpc()`.

To add a TXT record to your zone:
```ts
import route53 = require('@aws-cdk/aws-route53');
import * as route53 from '@aws-cdk/aws-route53';

new route53.TxtRecord(this, 'TXTRecord', {
zone: myZone,
Expand All @@ -59,7 +59,7 @@ new route53.TxtRecord(this, 'TXTRecord', {

To add a A record to your zone:
```ts
import route53 = require('@aws-cdk/aws-route53');
import * as route53 from '@aws-cdk/aws-route53';

new route53.ARecord(this, 'ARecord', {
zone: myZone,
Expand All @@ -69,8 +69,8 @@ new route53.ARecord(this, 'ARecord', {

To add a AAAA record pointing to a CloudFront distribution:
```ts
import route53 = require('@aws-cdk/aws-route53');
import targets = require('@aws-cdk/aws-route53-targets');
import * as route53 from '@aws-cdk/aws-route53';
import * as targets from '@aws-cdk/aws-route53-targets';

new route53.AaaaRecord(this, 'Alias', {
zone: myZone,
Expand Down

0 comments on commit ed851d8

Please sign in to comment.