Skip to content

Commit

Permalink
chore(ec2): fix blatant errors in README (aws#4062)
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr authored Sep 16, 2019
1 parent 6ca23f9 commit 4b0fedb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/@aws-cdk/aws-ec2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ There are various classes that implement the connection peer part:
// Simple connection peers
let peer = ec2.Peer.ipv4("10.0.0.0/16");
let peer = ec2.Peer.anyIpv4();
let peer = ec2.ipv6("::0/0");
let peer = ec2.anyIpv6();
let peer = ec2.prefixList("pl-12345");
let peer = ec2.Peer.ipv6("::0/0");
let peer = ec2.Peer.anyIpv6();
let peer = ec2.Peer.prefixList("pl-12345");
fleet.connections.allowTo(peer, ec2.Port.tcp(443), 'Allow outbound HTTPS');
```

Expand All @@ -308,9 +308,9 @@ the connection specifier:

```ts
ec2.Port.tcp(80)
ec2.tcpRange(60000, 65535)
ec2.allTcp()
ec2.allTraffic()
ec2.Port.tcpRange(60000, 65535)
ec2.Port.allTcp()
ec2.Port.allTraffic()
```

> NOTE: This set is not complete yet; for example, there is no library support for ICMP at the moment.
Expand Down

0 comments on commit 4b0fedb

Please sign in to comment.