Skip to content

Commit a04bf6b

Browse files
author
AWS
committed
Amazon Neptune Graph Update: Add StartGraph and StopGraph operations to Neptune Analytics
1 parent cce967f commit a04bf6b

File tree

3 files changed

+231
-8
lines changed

3 files changed

+231
-8
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Neptune Graph",
4+
"contributor": "",
5+
"description": "Add StartGraph and StopGraph operations to Neptune Analytics"
6+
}

services/neptunegraph/src/main/resources/codegen-resources/service-2.json

Lines changed: 208 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@
239239
"input":{"shape":"ExecuteQueryInput"},
240240
"output":{"shape":"ExecuteQueryOutput"},
241241
"errors":[
242-
{"shape":"UnprocessableException"},
243242
{"shape":"ThrottlingException"},
243+
{"shape":"UnprocessableException"},
244244
{"shape":"ValidationException"},
245245
{"shape":"ConflictException"},
246246
{"shape":"AccessDeniedException"},
@@ -608,6 +608,27 @@
608608
"ApiType":{"value":"ControlPlane"}
609609
}
610610
},
611+
"StartGraph":{
612+
"name":"StartGraph",
613+
"http":{
614+
"method":"POST",
615+
"requestUri":"/graphs/{graphIdentifier}/start",
616+
"responseCode":200
617+
},
618+
"input":{"shape":"StartGraphInput"},
619+
"output":{"shape":"StartGraphOutput"},
620+
"errors":[
621+
{"shape":"ThrottlingException"},
622+
{"shape":"ValidationException"},
623+
{"shape":"ConflictException"},
624+
{"shape":"InternalServerException"},
625+
{"shape":"ResourceNotFoundException"}
626+
],
627+
"documentation":"<p>Starts the specific graph.</p>",
628+
"staticContextParams":{
629+
"ApiType":{"value":"ControlPlane"}
630+
}
631+
},
611632
"StartImportTask":{
612633
"name":"StartImportTask",
613634
"http":{
@@ -629,6 +650,27 @@
629650
"ApiType":{"value":"ControlPlane"}
630651
}
631652
},
653+
"StopGraph":{
654+
"name":"StopGraph",
655+
"http":{
656+
"method":"POST",
657+
"requestUri":"/graphs/{graphIdentifier}/stop",
658+
"responseCode":200
659+
},
660+
"input":{"shape":"StopGraphInput"},
661+
"output":{"shape":"StopGraphOutput"},
662+
"errors":[
663+
{"shape":"ThrottlingException"},
664+
{"shape":"ValidationException"},
665+
{"shape":"ConflictException"},
666+
{"shape":"InternalServerException"},
667+
{"shape":"ResourceNotFoundException"}
668+
],
669+
"documentation":"<p>Stops the specific graph.</p>",
670+
"staticContextParams":{
671+
"ApiType":{"value":"ControlPlane"}
672+
}
673+
},
632674
"TagResource":{
633675
"name":"TagResource",
634676
"http":{
@@ -1412,8 +1454,7 @@
14121454
},
14131455
"Document":{
14141456
"type":"structure",
1415-
"members":{
1416-
},
1457+
"members":{},
14171458
"document":true
14181459
},
14191460
"DocumentValuedMap":{
@@ -2233,7 +2274,10 @@
22332274
"UPDATING",
22342275
"SNAPSHOTTING",
22352276
"FAILED",
2236-
"IMPORTING"
2277+
"IMPORTING",
2278+
"STARTING",
2279+
"STOPPING",
2280+
"STOPPED"
22372281
]
22382282
},
22392283
"GraphSummary":{
@@ -3276,6 +3320,85 @@
32763320
"max":1024,
32773321
"min":1
32783322
},
3323+
"StartGraphInput":{
3324+
"type":"structure",
3325+
"required":["graphIdentifier"],
3326+
"members":{
3327+
"graphIdentifier":{
3328+
"shape":"GraphIdentifier",
3329+
"documentation":"<p>The unique identifier of the Neptune Analytics graph.</p>",
3330+
"location":"uri",
3331+
"locationName":"graphIdentifier"
3332+
}
3333+
}
3334+
},
3335+
"StartGraphOutput":{
3336+
"type":"structure",
3337+
"required":[
3338+
"id",
3339+
"name",
3340+
"arn"
3341+
],
3342+
"members":{
3343+
"id":{
3344+
"shape":"GraphId",
3345+
"documentation":"<p>The unique identifier of the graph.</p>"
3346+
},
3347+
"name":{
3348+
"shape":"GraphName",
3349+
"documentation":"<p>The name of the graph.</p>"
3350+
},
3351+
"arn":{
3352+
"shape":"String",
3353+
"documentation":"<p>The ARN associated with the graph.</p>"
3354+
},
3355+
"status":{
3356+
"shape":"GraphStatus",
3357+
"documentation":"<p>The status of the graph.</p>"
3358+
},
3359+
"statusReason":{
3360+
"shape":"String",
3361+
"documentation":"<p>The reason that the graph has this status.</p>"
3362+
},
3363+
"createTime":{
3364+
"shape":"Timestamp",
3365+
"documentation":"<p>The time at which the graph was created.</p>"
3366+
},
3367+
"provisionedMemory":{
3368+
"shape":"ProvisionedMemory",
3369+
"documentation":"<p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>"
3370+
},
3371+
"endpoint":{
3372+
"shape":"String",
3373+
"documentation":"<p>The graph endpoint.</p>"
3374+
},
3375+
"publicConnectivity":{
3376+
"shape":"Boolean",
3377+
"documentation":"<p>If <code>true</code>, the graph has a public endpoint, otherwise not.</p>"
3378+
},
3379+
"vectorSearchConfiguration":{"shape":"VectorSearchConfiguration"},
3380+
"replicaCount":{
3381+
"shape":"ReplicaCount",
3382+
"documentation":"<p>The number of replicas for the graph.</p>"
3383+
},
3384+
"kmsKeyIdentifier":{
3385+
"shape":"KmsKeyArn",
3386+
"documentation":"<p>The ID of the KMS key used to encrypt and decrypt graph data.</p>"
3387+
},
3388+
"sourceSnapshotId":{
3389+
"shape":"SnapshotId",
3390+
"documentation":"<p>The ID of the snapshot from which the graph was created, if it was created from a snapshot.</p>"
3391+
},
3392+
"deletionProtection":{
3393+
"shape":"Boolean",
3394+
"documentation":"<p>If <code>true</code>, deletion protection is enabled for the graph.</p>"
3395+
},
3396+
"buildNumber":{
3397+
"shape":"String",
3398+
"documentation":"<p>The build number of the graph.</p>"
3399+
}
3400+
}
3401+
},
32793402
"StartImportTaskInput":{
32803403
"type":"structure",
32813404
"required":[
@@ -3357,6 +3480,85 @@
33573480
"importOptions":{"shape":"ImportOptions"}
33583481
}
33593482
},
3483+
"StopGraphInput":{
3484+
"type":"structure",
3485+
"required":["graphIdentifier"],
3486+
"members":{
3487+
"graphIdentifier":{
3488+
"shape":"GraphIdentifier",
3489+
"documentation":"<p>The unique identifier of the Neptune Analytics graph.</p>",
3490+
"location":"uri",
3491+
"locationName":"graphIdentifier"
3492+
}
3493+
}
3494+
},
3495+
"StopGraphOutput":{
3496+
"type":"structure",
3497+
"required":[
3498+
"id",
3499+
"name",
3500+
"arn"
3501+
],
3502+
"members":{
3503+
"id":{
3504+
"shape":"GraphId",
3505+
"documentation":"<p>The unique identifier of the graph.</p>"
3506+
},
3507+
"name":{
3508+
"shape":"GraphName",
3509+
"documentation":"<p>The name of the graph.</p>"
3510+
},
3511+
"arn":{
3512+
"shape":"String",
3513+
"documentation":"<p>The ARN associated with the graph.</p>"
3514+
},
3515+
"status":{
3516+
"shape":"GraphStatus",
3517+
"documentation":"<p>The status of the graph.</p>"
3518+
},
3519+
"statusReason":{
3520+
"shape":"String",
3521+
"documentation":"<p>The reason that the graph has this status.</p>"
3522+
},
3523+
"createTime":{
3524+
"shape":"Timestamp",
3525+
"documentation":"<p>The time at which the graph was created.</p>"
3526+
},
3527+
"provisionedMemory":{
3528+
"shape":"ProvisionedMemory",
3529+
"documentation":"<p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>"
3530+
},
3531+
"endpoint":{
3532+
"shape":"String",
3533+
"documentation":"<p>The graph endpoint.</p>"
3534+
},
3535+
"publicConnectivity":{
3536+
"shape":"Boolean",
3537+
"documentation":"<p>If true, the graph has a public endpoint, otherwise not.</p>"
3538+
},
3539+
"vectorSearchConfiguration":{"shape":"VectorSearchConfiguration"},
3540+
"replicaCount":{
3541+
"shape":"ReplicaCount",
3542+
"documentation":"<p>The number of replicas for the graph.</p>"
3543+
},
3544+
"kmsKeyIdentifier":{
3545+
"shape":"KmsKeyArn",
3546+
"documentation":"<p>The ID of the KMS key used to encrypt and decrypt graph data.</p>"
3547+
},
3548+
"sourceSnapshotId":{
3549+
"shape":"SnapshotId",
3550+
"documentation":"<p>The ID of the snapshot from which the graph was created, if it was created from a snapshot.</p>"
3551+
},
3552+
"deletionProtection":{
3553+
"shape":"Boolean",
3554+
"documentation":"<p>If <code>true</code>, deletion protection is enabled for the graph.</p>"
3555+
},
3556+
"buildNumber":{
3557+
"shape":"String",
3558+
"documentation":"<p>The build number of the graph.</p>"
3559+
}
3560+
}
3561+
},
33603562
"String":{"type":"string"},
33613563
"SubnetId":{
33623564
"type":"string",
@@ -3412,8 +3614,7 @@
34123614
},
34133615
"TagResourceOutput":{
34143616
"type":"structure",
3415-
"members":{
3416-
}
3617+
"members":{}
34173618
},
34183619
"TagValue":{
34193620
"type":"string",
@@ -3495,8 +3696,7 @@
34953696
},
34963697
"UntagResourceOutput":{
34973698
"type":"structure",
3498-
"members":{
3499-
}
3699+
"members":{}
35003700
},
35013701
"UpdateGraphInput":{
35023702
"type":"structure",

services/neptunegraph/src/main/resources/codegen-resources/waiters-2.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,23 @@
121121
"expected" : "ResourceNotFoundException"
122122
} ]
123123
},
124+
"GraphStopped" : {
125+
"description" : "Wait until Graph is Stopped",
126+
"delay" : 20,
127+
"maxAttempts" : 90,
128+
"operation" : "GetGraph",
129+
"acceptors" : [ {
130+
"matcher" : "path",
131+
"argument" : "status",
132+
"state" : "success",
133+
"expected" : "STOPPED"
134+
}, {
135+
"matcher" : "path",
136+
"argument" : "status != 'STOPPING'",
137+
"state" : "failure",
138+
"expected" : true
139+
} ]
140+
},
124141
"ImportTaskCancelled" : {
125142
"description" : "Wait until Import Task is Cancelled",
126143
"delay" : 60,

0 commit comments

Comments
 (0)