aws-sdk-neptunegraph 1.2.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d92d892f5b9dfc5079992b0aad0658dabbe87b1b4df8ac9ef85d9a0b77dc6aa
4
- data.tar.gz: d2877c397f9d8356b1fcea8fb9cbb3832b6253c0686c1fbc05957fdd4909b5cf
3
+ metadata.gz: ed56e747212fec56caae70446d1728e5441decb309a72a4ce2a1159f137e4c92
4
+ data.tar.gz: 6b949a8cd251ba69d9e92e2f70ccdb0c1a64d8203feca00141c13860196e9751
5
5
  SHA512:
6
- metadata.gz: 505643a54e061aeda54f236192b1315c31d70746d468faf9cc9fdc9e392b0f21f6514f1ea740e8fd8e4892c3ec0902a0fb3fc162c50f4244f68445372914756d
7
- data.tar.gz: 4addc61e4ac2976316e66063cba76db1570b335e8c52782728fe543b621c7cb2d98d1f98afa4e036da59919f85bb26466b186d016c7ed9be7d907a675d91dc42
6
+ metadata.gz: 617790114e2ab5059e5c29097607ffbb4df8ec7013d6dcb05fd968c115eb2fa973e9096bc1eb8e9c7bc1c9889db0ac4ae9a0435f292c5d8b096c6732e4c691ec
7
+ data.tar.gz: 5a8df0569ae6d8845c1ac9f6d58fd259d954bda9b16be7d147b9da1b0550f6ebb71bc7e007f14b59f54f12280835f744ffab51b0b2bd8f6db839c25a7c3b983f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.4.0 (2024-02-12)
5
+ ------------------
6
+
7
+ * Feature - Adding a new option "parameters" for data plane api ExecuteQuery to support running parameterized query via SDK.
8
+
9
+ 1.3.0 (2024-02-01)
10
+ ------------------
11
+
12
+ * Feature - Adding new APIs in SDK for Amazon Neptune Analytics. These APIs include operations to execute, cancel, list queries and get the graph summary.
13
+
4
14
  1.2.0 (2024-01-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.4.0
@@ -388,7 +388,7 @@ module Aws::NeptuneGraph
388
388
 
389
389
  # @!group API Operations
390
390
 
391
- # Deletes the specified import task
391
+ # Deletes the specified import task.
392
392
  #
393
393
  # @option params [required, String] :task_identifier
394
394
  # The unique identifier of the import task.
@@ -426,6 +426,32 @@ module Aws::NeptuneGraph
426
426
  req.send_request(options)
427
427
  end
428
428
 
429
+ # Cancels a specified query.
430
+ #
431
+ # @option params [required, String] :graph_identifier
432
+ # The unique identifier of the Neptune Analytics graph.
433
+ #
434
+ # @option params [required, String] :query_id
435
+ # The unique identifier of the query to cancel.
436
+ #
437
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
438
+ #
439
+ # @example Request syntax with placeholder values
440
+ #
441
+ # resp = client.cancel_query({
442
+ # graph_identifier: "GraphIdentifier", # required
443
+ # query_id: "String", # required
444
+ # })
445
+ #
446
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/CancelQuery AWS API Documentation
447
+ #
448
+ # @overload cancel_query(params = {})
449
+ # @param [Hash] params ({})
450
+ def cancel_query(params = {}, options = {})
451
+ req = build_request(:cancel_query, params)
452
+ req.send_request(options)
453
+ end
454
+
429
455
  # Creates a new Neptune Analytics graph.
430
456
  #
431
457
  # @option params [required, String] :graph_name
@@ -442,8 +468,8 @@ module Aws::NeptuneGraph
442
468
  #
443
469
  # @option params [Boolean] :public_connectivity
444
470
  # Specifies whether or not the graph can be reachable over the internet.
445
- # All access to graphs IAM authenticated. (`true` to enable, or `false`
446
- # to disable.
471
+ # All access to graphs is IAM authenticated. (`true` to enable, or
472
+ # `false` to disable.
447
473
  #
448
474
  # @option params [String] :kms_key_identifier
449
475
  # Specifies a KMS key to use to encrypt data in the new graph.
@@ -454,7 +480,7 @@ module Aws::NeptuneGraph
454
480
  # Max = 65,535
455
481
  #
456
482
  # @option params [Integer] :replica_count
457
- # The number of replicas in other AZs. Min =0, Max = 2, Default =1
483
+ # The number of replicas in other AZs. Min =0, Max = 2, Default = 1.
458
484
  #
459
485
  # @option params [Boolean] :deletion_protection
460
486
  # Indicates whether or not to enable deletion protection on the graph.
@@ -609,8 +635,8 @@ module Aws::NeptuneGraph
609
635
  #
610
636
  # @option params [Boolean] :public_connectivity
611
637
  # Specifies whether or not the graph can be reachable over the internet.
612
- # All access to graphs IAM authenticated. (`true` to enable, or `false`
613
- # to disable.
638
+ # All access to graphs is IAM authenticated. (`true` to enable, or
639
+ # `false` to disable).
614
640
  #
615
641
  # @option params [String] :kms_key_identifier
616
642
  # Specifies a KMS key to use to encrypt data imported into the new
@@ -928,6 +954,89 @@ module Aws::NeptuneGraph
928
954
  req.send_request(options)
929
955
  end
930
956
 
957
+ # Execute an openCypher query. Currently, the SDK does not support
958
+ # parameterized queries. If you want to make a parameterized query call,
959
+ # you can use an HTTP request.
960
+ #
961
+ # When invoking this operation in a Neptune Analytics cluster, the IAM
962
+ # user or role making the request must have a policy attached that
963
+ # allows one of the following IAM actions in that cluster, depending on
964
+ # the query:
965
+ #
966
+ # * neptune-graph:ReadDataViaQuery
967
+ #
968
+ # * neptune-graph:WriteDataViaQuery
969
+ #
970
+ # * neptune-graph:DeleteDataViaQuery
971
+ #
972
+ # <note markdown="1"> Non-parametrized queries are not considered for plan caching. You can
973
+ # force plan caching with `planCache=enabled`. The plan cache will be
974
+ # reused only for the same exact query. Slight variations in the query
975
+ # will not be able to reuse the query plan cache.
976
+ #
977
+ # </note>
978
+ #
979
+ # @option params [required, String] :graph_identifier
980
+ # The unique identifier of the Neptune Analytics graph.
981
+ #
982
+ # @option params [required, String] :query_string
983
+ # The query string to be executed.
984
+ #
985
+ # @option params [required, String] :language
986
+ # The query language the query is written in. Currently only openCypher
987
+ # is supported.
988
+ #
989
+ # @option params [Hash<String,Hash,Array,String,Numeric,Boolean>] :parameters
990
+ # The data parameters the query can use in JSON format. For example:
991
+ # \\\{"name": "john", "age": 20\\}. (optional)
992
+ #
993
+ # @option params [String] :plan_cache
994
+ # Query plan cache is a feature that saves the query plan and reuses it
995
+ # on successive executions of the same query. This reduces query
996
+ # latency, and works for both `READ` and `UPDATE` queries. The plan
997
+ # cache is an LRU cache with a 5 minute TTL and a capacity of 1000.
998
+ #
999
+ # @option params [String] :explain_mode
1000
+ # The explain mode parameter returns a query explain instead of the
1001
+ # actual query results. A query explain can be used to gather insights
1002
+ # about the query execution such as planning decisions, time spent on
1003
+ # each operator, solutions flowing etc.
1004
+ #
1005
+ # @option params [Integer] :query_timeout_milliseconds
1006
+ # Specifies the query timeout duration, in milliseconds. (optional)
1007
+ #
1008
+ # @return [Types::ExecuteQueryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1009
+ #
1010
+ # * {Types::ExecuteQueryOutput#payload #payload} => IO
1011
+ #
1012
+ # @example Request syntax with placeholder values
1013
+ #
1014
+ # resp = client.execute_query({
1015
+ # graph_identifier: "GraphIdentifier", # required
1016
+ # query_string: "String", # required
1017
+ # language: "OPEN_CYPHER", # required, accepts OPEN_CYPHER
1018
+ # parameters: {
1019
+ # "String" => {
1020
+ # },
1021
+ # },
1022
+ # plan_cache: "ENABLED", # accepts ENABLED, DISABLED, AUTO
1023
+ # explain_mode: "STATIC", # accepts STATIC, DETAILS
1024
+ # query_timeout_milliseconds: 1,
1025
+ # })
1026
+ #
1027
+ # @example Response structure
1028
+ #
1029
+ # resp.payload #=> IO
1030
+ #
1031
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/ExecuteQuery AWS API Documentation
1032
+ #
1033
+ # @overload execute_query(params = {})
1034
+ # @param [Hash] params ({})
1035
+ def execute_query(params = {}, options = {}, &block)
1036
+ req = build_request(:execute_query, params)
1037
+ req.send_request(options, &block)
1038
+ end
1039
+
931
1040
  # Gets information about a specified graph.
932
1041
  #
933
1042
  # @option params [required, String] :graph_identifier
@@ -1036,6 +1145,70 @@ module Aws::NeptuneGraph
1036
1145
  req.send_request(options)
1037
1146
  end
1038
1147
 
1148
+ # Gets a graph summary for a property graph.
1149
+ #
1150
+ # @option params [required, String] :graph_identifier
1151
+ # The unique identifier of the Neptune Analytics graph.
1152
+ #
1153
+ # @option params [String] :mode
1154
+ # The summary mode can take one of two values: `basic` (the default),
1155
+ # and `detailed`.
1156
+ #
1157
+ # @return [Types::GetGraphSummaryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1158
+ #
1159
+ # * {Types::GetGraphSummaryOutput#version #version} => String
1160
+ # * {Types::GetGraphSummaryOutput#last_statistics_computation_time #last_statistics_computation_time} => Time
1161
+ # * {Types::GetGraphSummaryOutput#graph_summary #graph_summary} => Types::GraphDataSummary
1162
+ #
1163
+ # @example Request syntax with placeholder values
1164
+ #
1165
+ # resp = client.get_graph_summary({
1166
+ # graph_identifier: "GraphIdentifier", # required
1167
+ # mode: "BASIC", # accepts BASIC, DETAILED
1168
+ # })
1169
+ #
1170
+ # @example Response structure
1171
+ #
1172
+ # resp.version #=> String
1173
+ # resp.last_statistics_computation_time #=> Time
1174
+ # resp.graph_summary.num_nodes #=> Integer
1175
+ # resp.graph_summary.num_edges #=> Integer
1176
+ # resp.graph_summary.num_node_labels #=> Integer
1177
+ # resp.graph_summary.num_edge_labels #=> Integer
1178
+ # resp.graph_summary.node_labels #=> Array
1179
+ # resp.graph_summary.node_labels[0] #=> String
1180
+ # resp.graph_summary.edge_labels #=> Array
1181
+ # resp.graph_summary.edge_labels[0] #=> String
1182
+ # resp.graph_summary.num_node_properties #=> Integer
1183
+ # resp.graph_summary.num_edge_properties #=> Integer
1184
+ # resp.graph_summary.node_properties #=> Array
1185
+ # resp.graph_summary.node_properties[0] #=> Hash
1186
+ # resp.graph_summary.node_properties[0]["String"] #=> Integer
1187
+ # resp.graph_summary.edge_properties #=> Array
1188
+ # resp.graph_summary.edge_properties[0] #=> Hash
1189
+ # resp.graph_summary.edge_properties[0]["String"] #=> Integer
1190
+ # resp.graph_summary.total_node_property_values #=> Integer
1191
+ # resp.graph_summary.total_edge_property_values #=> Integer
1192
+ # resp.graph_summary.node_structures #=> Array
1193
+ # resp.graph_summary.node_structures[0].count #=> Integer
1194
+ # resp.graph_summary.node_structures[0].node_properties #=> Array
1195
+ # resp.graph_summary.node_structures[0].node_properties[0] #=> String
1196
+ # resp.graph_summary.node_structures[0].distinct_outgoing_edge_labels #=> Array
1197
+ # resp.graph_summary.node_structures[0].distinct_outgoing_edge_labels[0] #=> String
1198
+ # resp.graph_summary.edge_structures #=> Array
1199
+ # resp.graph_summary.edge_structures[0].count #=> Integer
1200
+ # resp.graph_summary.edge_structures[0].edge_properties #=> Array
1201
+ # resp.graph_summary.edge_structures[0].edge_properties[0] #=> String
1202
+ #
1203
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/GetGraphSummary AWS API Documentation
1204
+ #
1205
+ # @overload get_graph_summary(params = {})
1206
+ # @param [Hash] params ({})
1207
+ def get_graph_summary(params = {}, options = {})
1208
+ req = build_request(:get_graph_summary, params)
1209
+ req.send_request(options)
1210
+ end
1211
+
1039
1212
  # Retrieves a specified import task.
1040
1213
  #
1041
1214
  # @option params [required, String] :task_identifier
@@ -1143,6 +1316,52 @@ module Aws::NeptuneGraph
1143
1316
  req.send_request(options)
1144
1317
  end
1145
1318
 
1319
+ # Retrieves the status of a specified query.
1320
+ #
1321
+ # <note markdown="1"> When invoking this operation in a Neptune Analytics cluster, the IAM
1322
+ # user or role making the request must have the
1323
+ # `neptune-graph:GetQueryStatus` IAM action attached.
1324
+ #
1325
+ # </note>
1326
+ #
1327
+ # @option params [required, String] :graph_identifier
1328
+ # The unique identifier of the Neptune Analytics graph.
1329
+ #
1330
+ # @option params [required, String] :query_id
1331
+ # The ID of the query in question.
1332
+ #
1333
+ # @return [Types::GetQueryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1334
+ #
1335
+ # * {Types::GetQueryOutput#id #id} => String
1336
+ # * {Types::GetQueryOutput#query_string #query_string} => String
1337
+ # * {Types::GetQueryOutput#waited #waited} => Integer
1338
+ # * {Types::GetQueryOutput#elapsed #elapsed} => Integer
1339
+ # * {Types::GetQueryOutput#state #state} => String
1340
+ #
1341
+ # @example Request syntax with placeholder values
1342
+ #
1343
+ # resp = client.get_query({
1344
+ # graph_identifier: "GraphIdentifier", # required
1345
+ # query_id: "String", # required
1346
+ # })
1347
+ #
1348
+ # @example Response structure
1349
+ #
1350
+ # resp.id #=> String
1351
+ # resp.query_string #=> String
1352
+ # resp.waited #=> Integer
1353
+ # resp.elapsed #=> Integer
1354
+ # resp.state #=> String, one of "RUNNING", "WAITING", "CANCELLING"
1355
+ #
1356
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/GetQuery AWS API Documentation
1357
+ #
1358
+ # @overload get_query(params = {})
1359
+ # @param [Hash] params ({})
1360
+ def get_query(params = {}, options = {})
1361
+ req = build_request(:get_query, params)
1362
+ req.send_request(options)
1363
+ end
1364
+
1146
1365
  # Lists available snapshots of a specified Neptune Analytics graph.
1147
1366
  #
1148
1367
  # @option params [String] :graph_identifier
@@ -1363,6 +1582,47 @@ module Aws::NeptuneGraph
1363
1582
  req.send_request(options)
1364
1583
  end
1365
1584
 
1585
+ # Lists active openCypher queries.
1586
+ #
1587
+ # @option params [required, String] :graph_identifier
1588
+ # The unique identifier of the Neptune Analytics graph.
1589
+ #
1590
+ # @option params [required, Integer] :max_results
1591
+ # The maximum number of results to be fetched by the API.
1592
+ #
1593
+ # @option params [String] :state
1594
+ # Filtered list of queries based on state.
1595
+ #
1596
+ # @return [Types::ListQueriesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1597
+ #
1598
+ # * {Types::ListQueriesOutput#queries #queries} => Array&lt;Types::QuerySummary&gt;
1599
+ #
1600
+ # @example Request syntax with placeholder values
1601
+ #
1602
+ # resp = client.list_queries({
1603
+ # graph_identifier: "GraphIdentifier", # required
1604
+ # max_results: 1, # required
1605
+ # state: "ALL", # accepts ALL, RUNNING, WAITING, CANCELLING
1606
+ # })
1607
+ #
1608
+ # @example Response structure
1609
+ #
1610
+ # resp.queries #=> Array
1611
+ # resp.queries[0].id #=> String
1612
+ # resp.queries[0].query_string #=> String
1613
+ # resp.queries[0].waited #=> Integer
1614
+ # resp.queries[0].elapsed #=> Integer
1615
+ # resp.queries[0].state #=> String, one of "RUNNING", "WAITING", "CANCELLING"
1616
+ #
1617
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/ListQueries AWS API Documentation
1618
+ #
1619
+ # @overload list_queries(params = {})
1620
+ # @param [Hash] params ({})
1621
+ def list_queries(params = {}, options = {})
1622
+ req = build_request(:list_queries, params)
1623
+ req.send_request(options)
1624
+ end
1625
+
1366
1626
  # Lists tags associated with a specified resource.
1367
1627
  #
1368
1628
  # @option params [required, String] :resource_arn
@@ -1487,8 +1747,8 @@ module Aws::NeptuneGraph
1487
1747
  #
1488
1748
  # @option params [Boolean] :public_connectivity
1489
1749
  # Specifies whether or not the graph can be reachable over the internet.
1490
- # All access to graphs IAM authenticated. (`true` to enable, or `false`
1491
- # to disable).
1750
+ # All access to graphs is IAM authenticated. (`true` to enable, or
1751
+ # `false` to disable).
1492
1752
  #
1493
1753
  # @return [Types::RestoreGraphFromSnapshotOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1494
1754
  #
@@ -1624,8 +1884,8 @@ module Aws::NeptuneGraph
1624
1884
  #
1625
1885
  # @option params [Boolean] :public_connectivity
1626
1886
  # Specifies whether or not the graph can be reachable over the internet.
1627
- # All access to graphs IAM authenticated. (`true` to enable, or `false`
1628
- # to disable.
1887
+ # All access to graphs is IAM authenticated. (`true` to enable, or
1888
+ # `false` to disable.
1629
1889
  #
1630
1890
  # @option params [Integer] :provisioned_memory
1631
1891
  # The provisioned memory-optimized Neptune Capacity Units (m-NCUs) to
@@ -1703,7 +1963,7 @@ module Aws::NeptuneGraph
1703
1963
  params: params,
1704
1964
  config: config)
1705
1965
  context[:gem_name] = 'aws-sdk-neptunegraph'
1706
- context[:gem_version] = '1.2.0'
1966
+ context[:gem_version] = '1.4.0'
1707
1967
  Seahorse::Client::Request.new(handlers, context)
1708
1968
  end
1709
1969