Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(efs): fix example code of efs #8364

Merged
merged 2 commits into from
Jun 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions packages/@aws-cdk/aws-efs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ This construct library allows you to set up AWS Elastic File System (EFS).
import * as efs from '@aws-cdk/aws-efs';

const myVpc = new ec2.Vpc(this, 'VPC');
const fileSystem = new efs.EfsFileSystem(this, 'MyEfsFileSystem', {
const fileSystem = new efs.FileSystem(this, 'MyEfsFileSystem', {
vpc: myVpc,
encrypted: true,
lifecyclePolicy: EfsLifecyclePolicyProperty.AFTER_14_DAYS,
performanceMode: EfsPerformanceMode.GENERAL_PURPOSE,
throughputMode: EfsThroughputMode.BURSTING
lifecyclePolicy: efs.LifecyclePolicy.AFTER_14_DAYS,
performanceMode: efs.PerformanceMode.GENERAL_PURPOSE,
throughputMode: efs.ThroughputMode.BURSTING
});
```

Expand All @@ -43,12 +43,12 @@ following code can be used as reference:
```
const vpc = new ec2.Vpc(this, 'VPC');

const fileSystem = new efs.EfsFileSystem(this, 'EfsFileSystem', {
const fileSystem = new efs.FileSystem(this, 'MyEfsFileSystem', {
vpc,
encrypted: true,
lifecyclePolicy: efs.EfsLifecyclePolicyProperty.AFTER_14_DAYS,
performanceMode: efs.EfsPerformanceMode.GENERAL_PURPOSE,
throughputMode: efs.EfsThroughputMode.BURSTING
lifecyclePolicy: efs.LifecyclePolicy.AFTER_14_DAYS,
performanceMode: efs.PerformanceMode.GENERAL_PURPOSE,
throughputMode: efs.ThroughputMode.BURSTING
});

const inst = new Instance(this, 'inst', {
Expand Down