Skip to content

Commit

Permalink
chore(neptune): update readme to work with default fixture (#13477)
Browse files Browse the repository at this point in the history
fixes #13476


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
cornerwings committed Mar 9, 2021
1 parent a7d314c commit 40295d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-neptune/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ versions and limitations.
The following example shows enabling IAM authentication for a database cluster and granting connection access to an IAM role.

```ts
const cluster = new rds.DatabaseCluster(stack, 'Cluster', {
const cluster = new neptune.DatabaseCluster(this, 'Cluster', {
vpc,
instanceType: neptune.InstanceType.R5_LARGE,
iamAuthentication: true, // Optional - will be automatically set if you call grantConnect().
});
const role = new Role(stack, 'DBRole', { assumedBy: new AccountPrincipal(stack.account) });
instance.grantConnect(role); // Grant the role connection access to the DB.
const role = new iam.Role(this, 'DBRole', { assumedBy: new iam.AccountPrincipal(this.account) });
cluster.grantConnect(role); // Grant the role connection access to the DB.
```

## Customizing parameters
Expand Down
1 change: 1 addition & 0 deletions packages/@aws-cdk/aws-neptune/rosetta/default.ts-fixture
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Duration, Stack } from '@aws-cdk/core';
import { Construct } from 'constructs';
import * as iam from '@aws-cdk/aws-iam';
import * as ec2 from '@aws-cdk/aws-ec2';
import * as neptune from '@aws-cdk/aws-neptune';

Expand Down

0 comments on commit 40295d2

Please sign in to comment.