Skip to content

Commit 170121c

Browse files
committed
updated spec
1 parent 02fb572 commit 170121c

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

javav2/example_code/neptune/src/main/java/com/example/neptune/scenerio/NeptuneActions.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,13 @@ public CompletableFuture<String> createSubnetGroupAsync(String groupName) {
517517

518518
// Get the Amazon Virtual Private Cloud (VPC) where the Neptune cluster and resources will be created
519519
String vpcId = getDefaultVpcId();
520+
logger.info("VPC is : " + vpcId);
521+
520522
List<String> subnetList = getSubnetIds(vpcId);
523+
for (String subnetId : subnetList) {
524+
System.out.println("Subnet group:" +subnetId);
525+
}
526+
521527
CreateDbSubnetGroupRequest request = CreateDbSubnetGroupRequest.builder()
522528
.dbSubnetGroupName(groupName)
523529
.dbSubnetGroupDescription("Subnet group for Neptune cluster")

javav2/example_code/neptune/src/main/java/com/example/neptune/scenerio/NeptuneScenario.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ public static void main(String[] args) {
2929
clusterName - The unique identifier for the Neptune DB cluster.
3030
dbInstanceId - The identifier for a specific Neptune DB instance within the cluster.
3131
""";
32-
String subnetGroupName = "neptuneSubnetGroup58";
33-
String clusterName = "neptuneCluster58";
34-
String dbInstanceId = "neptuneDB58";
32+
String subnetGroupName = "neptuneSubnetGroup65";
33+
String clusterName = "neptuneCluster65";
34+
String dbInstanceId = "neptuneDB65";
3535

3636
logger.info("""
3737
Amazon Neptune is a fully managed graph

scenarios/basics/neptune/SPECIFICATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Finally this scenario demonstrates how to clean up resources. Its purpose is to
1010

1111
Here is more context on when it's a good idea to use the `NeptuneAsyncClient`:
1212

13-
1. **Dynamic Resource Provisioning**: The `NeptuneAsyncClient` can be particularly useful when you need to dynamically create, update, or delete Neptune resources as part of your application's functionality. This could be useful in scenarios such as:
13+
1. **Dynamic Resource Provisioning**: The `NeptuneAsyncClient` can be particularly useful when you need to dynamically create, update, or delete Neptune resources as part of your application's functionality. This could be useful in use cases such as:
1414

1515
- **Multi-tenant Applications**: If you're building a SaaS application that needs to provision Neptune instances on-demand, the `NeptuneAsyncClient` can help you automate this process programmatically.
1616
- **Ephemeral Environments**: When you need to spin up and tear down Neptune resources as part of your CI/CD pipeline or within a Lambda environments, the `NeptuneAsyncClient` can streamline this process.

0 commit comments

Comments
 (0)