Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
11 changes: 11 additions & 0 deletions packages/@aws-cdk/aws-neptune-alpha/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,16 @@ export interface DatabaseClusterProps {
* @default 8182
*/
readonly port?: number;

/**
* If set to true, the database instances in this cluster will be publicly accessible.
*
* @see DatabaseInstanceProps.publiclyAccessible
* @see https://docs.aws.amazon.com/neptune/latest/userguide/neptune-public-endpoints.html
*
* @default false
*/
readonly publiclyAccessible?: boolean;
}

/**
Expand Down Expand Up @@ -746,6 +756,7 @@ export class DatabaseCluster extends DatabaseClusterBase implements IDatabaseClu
dbInstanceClass: props.instanceType._instanceType,
dbParameterGroupName: props.parameterGroup?.parameterGroupName,
autoMinorVersionUpgrade: props.autoMinorVersionUpgrade === true,
publiclyAccessible: props.publiclyAccessible === true,
});

// We must have a dependency on the NAT gateway provider here to create
Expand Down
8 changes: 8 additions & 0 deletions packages/@aws-cdk/aws-neptune-alpha/lib/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,13 @@ export interface DatabaseInstanceProps {
* @default undefined
*/
readonly autoMinorVersionUpgrade?: boolean;

/**
* Indicates whether the DB instance is publicly accessible.
*
* @default false
*/
readonly publiclyAccessible?: boolean;
}

/**
Expand Down Expand Up @@ -513,6 +520,7 @@ export class DatabaseInstance extends DatabaseInstanceBase implements IDatabaseI
availabilityZone: props.availabilityZone,
dbInstanceIdentifier: props.dbInstanceName,
dbParameterGroupName: props.parameterGroup?.parameterGroupName,
publiclyAccessible: props.publiclyAccessible,
});

this.cluster = props.cluster;
Expand Down
Loading