Skip to content

Commit 4305e92

Browse files
author
Dennis Ruhe
committed
feat(neptune-alph): update README.md
1 parent 74a0e22 commit 4305e92

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

packages/@aws-cdk/aws-neptune-alpha/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,29 @@ new neptune.DatabaseInstance(this, 'Instance', {
149149
});
150150
```
151151

152+
## Publicly accessible
153+
154+
You can make instances publicly accessible by setting the `publiclyAccessible` property to `true` on the cluster:
155+
156+
```ts
157+
new neptune.DatabaseCluster(this, 'Cluster', {
158+
vpc,
159+
instanceType: neptune.InstanceType.R5_LARGE,
160+
publiclyAccessible: true,
161+
});
162+
```
163+
164+
Alternatively, you can also make individual instances publicly accessible, by setting the respective property on
165+
the instance:
166+
167+
```ts fixture=with-cluster
168+
new neptune.DatabaseInstance(this, 'Instance', {
169+
cluster,
170+
instanceType: neptune.InstanceType.R5_LARGE,
171+
publiclyAccessible: true,
172+
});
173+
```
174+
152175
## Port
153176

154177
By default, Neptune uses port `8182`. You can override the default port by specifying the `port` property:

0 commit comments

Comments
 (0)