Skip to content

Commit 873201f

Browse files
committed
fixed linter issues
1 parent 7b01b0d commit 873201f

File tree

1 file changed

+43
-44
lines changed

1 file changed

+43
-44
lines changed

kotlin/services/neptune/src/main/java/com/example/neptune/scenerio/NeptuneScenario.kt

Lines changed: 43 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -42,34 +42,33 @@ suspend fun main(args: Array<String>) {
4242
val dbInstanceId = "neptuneDB200"
4343

4444
println(
45-
"""
46-
Amazon Neptune is a fully managed AWS graph database optimized for complex, connected datasets.
47-
It supports property graphs (Gremlin, openCypher)
48-
and RDF graphs (SPARQL), making it ideal for knowledge
49-
graphs, fraud detection, social networks,
50-
recommendations, and network management.
51-
52-
Neptune handles provisioning, patching, backups, a
53-
nd replication, offering high availability by default
54-
.
55-
Developers can build relationship-aware apps using the
56-
AWS SDK for Kotlin and automate infrastructure with
57-
NeptuneClient.
45+
"""
46+
Amazon Neptune is a fully managed AWS graph database optimized for complex, connected datasets.
47+
It supports property graphs (Gremlin, openCypher)
48+
and RDF graphs (SPARQL), making it ideal for knowledge
49+
graphs, fraud detection, social networks,
50+
recommendations, and network management.
51+
52+
Neptune handles provisioning, patching, backups, a
53+
nd replication, offering high availability by default.
54+
55+
Developers can build relationship-aware apps using the
56+
AWS SDK for Kotlin and automate infrastructure with
57+
NeptuneClient.
5858
59-
Let's get started...
59+
Let's get started...
6060
61-
"""
61+
""".trimIndent(),
6262
)
6363
waitForInputToContinue(scanner)
6464
runScenario(subnetGroupName, dbInstanceId, clusterName)
6565
println(
66-
"""
66+
"""
6767
Thank you for checking out the Amazon Neptune Service Use demo. We hope you
6868
learned something new, or got some inspiration for your own apps today.
6969
For more AWS code examples, have a look at:
7070
https://docs.aws.amazon.com/code-library/latest/ug/what-is-code-library.html
71-
72-
"""
71+
""".trimIndent(),
7372
)
7473
}
7574

@@ -91,69 +90,69 @@ suspend fun runScenario(subnetGroupName: String, dbInstanceId: String, clusterNa
9190
println(DASHES)
9291

9392
println(DASHES)
94-
println("3. Create a Neptune DB Instance");
95-
println("In this step, we add a new database instance to the Neptune cluster");
93+
println("3. Create a Neptune DB Instance")
94+
println("In this step, we add a new database instance to the Neptune cluster")
9695
waitForInputToContinue(scanner)
9796
createDbInstance(dbInstanceId, dbClusterId)
9897
waitForInputToContinue(scanner)
9998
println(DASHES)
10099

101100
println(DASHES)
102-
println("4. Check the status of the Neptune DB Instance");
101+
println("4. Check the status of the Neptune DB Instance")
103102
println(
104-
"""
105-
In this step, we will wait until the DB instance
106-
becomes available. This may take around 10 minutes.
107-
"""
103+
"""
104+
In this step, we will wait until the DB instance
105+
becomes available. This may take around 10 minutes.
106+
""".trimIndent(),
108107
)
109108
waitForInputToContinue(scanner)
110109
checkInstanceStatus(dbInstanceId, "available")
111110
waitForInputToContinue(scanner)
112111
println(DASHES)
113112

114113
println(DASHES)
115-
println("5. Show Neptune Cluster details");
114+
println("5. Show Neptune Cluster details")
116115
waitForInputToContinue(scanner)
117116
describeDBClusters(dbClusterId)
118117
waitForInputToContinue(scanner)
119118
println(DASHES)
120119

121120
println(DASHES)
122-
println("6. Stop the Amazon Neptune cluster");
121+
println("6. Stop the Amazon Neptune cluster")
123122
println(
124-
"""
125-
Once stopped, this step polls the status
126-
until the cluster is in a stopped state.
127-
"""
128-
);
123+
"""
124+
Once stopped, this step polls the status
125+
until the cluster is in a stopped state.
126+
""".trimIndent(),
127+
)
129128
waitForInputToContinue(scanner)
130129
stopDBCluster(dbClusterId)
131130
waitForClusterStatus(dbClusterId, "stopped")
132131
waitForInputToContinue(scanner)
133132
println(DASHES)
134133

135134
println(DASHES)
136-
println("7. Start the Amazon Neptune cluster");
135+
println("7. Start the Amazon Neptune cluster")
137136
println(
138-
"""
139-
Once started, this step polls the clusters
140-
status until it's in an available state.
141-
We will also poll the instance status.
142-
"""
143-
);
137+
"""
138+
Once started, this step polls the clusters
139+
status until it's in an available state.
140+
We will also poll the instance status.
141+
""".trimIndent(),
142+
)
144143
waitForInputToContinue(scanner)
145144
startDBCluster(dbClusterId)
146145
waitForClusterStatus(dbClusterId, "available")
147146
checkInstanceStatus(dbInstanceId, "available")
148147
waitForInputToContinue(scanner)
149148
println(DASHES)
150149

151-
println(DASHES);
152-
println("8. Delete the Neptune Assets");
153-
println("Would you like to delete the Neptune Assets? (y/n)");
154-
val delAns = scanner.nextLine().trim();
150+
println(DASHES)
151+
println("8. Delete the Neptune Assets")
152+
println("Would you like to delete the Neptune Assets? (y/n)")
153+
val delAns = scanner.nextLine().trim()
155154
if (delAns.equals("y")) {
156-
println("You selected to delete the Neptune assets.");
155+
println("You selected to delete the Neptune assets.")
157156
deleteDbInstance(dbInstanceId)
158157
waitUntilInstanceDeleted(dbInstanceId)
159158
deleteDBCluster(dbClusterId)

0 commit comments

Comments
 (0)