aws-sdk-neptunegraph 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c173103569b1b83024481a73ef00a13ed912424ce979389e16cc124f45c49ef7
4
- data.tar.gz: 66ad2ae39150d15cf31a9e13ac51e32195f62d3cab993f46ee229d7d3c1b06e4
3
+ metadata.gz: 50424775a60269822c9e3656ac908b9107cc34e834bacf5cdb1b860aa6b49250
4
+ data.tar.gz: bed42fadf1f6c8313691ac0da54fe4218f3731511c2baaffb2d4bbcc2874a3a8
5
5
  SHA512:
6
- metadata.gz: cd943c9a098a39d6dbcaea2ef799a67295bae528da8a93dd174826585112ec69d698b1fa478de35694d6f1272dd7e8f188d8a41f482492f548051dd567778a07
7
- data.tar.gz: 70579bf61632a03448b8c9a1ac085fa27dc62638896fdcc7f1fc9c8fd555fd02f7db17a1577ba565f5ba6b15c5b4e0c84fb1b4d832a88b26865447de737af7e7
6
+ metadata.gz: 8801663d4b0dc8b75839b6ea71f75795626809f07acdbea8496ee50f08d5bd1ef3eadce5c6720698986a49ccdb1a01e021491afbd95b953201cd654c0536d3d1
7
+ data.tar.gz: 226878539f5b96bfdaff0703e96eb1ad1fe66b431648382ce54da5dd22dd392ddc0607cc6a81141ef69da837fb8c36c82f1d6fdc5049dd48b54b535e5fb12e0e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.6.0 (2024-03-29)
5
+ ------------------
6
+
7
+ * Feature - Add the new API Start-Import-Task for Amazon Neptune Analytics.
8
+
4
9
  1.5.0 (2024-03-28)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.6.0
@@ -1806,6 +1806,85 @@ module Aws::NeptuneGraph
1806
1806
  req.send_request(options)
1807
1807
  end
1808
1808
 
1809
+ # Import data into existing Neptune Analytics graph from Amazon Simple
1810
+ # Storage Service (S3). The graph needs to be empty and in the AVAILABLE
1811
+ # state.
1812
+ #
1813
+ # @option params [Types::ImportOptions] :import_options
1814
+ # Options for how to perform an import.
1815
+ #
1816
+ # @option params [Boolean] :fail_on_error
1817
+ # If set to true, the task halts when an import error is encountered. If
1818
+ # set to false, the task skips the data that caused the error and
1819
+ # continues if possible.
1820
+ #
1821
+ # @option params [required, String] :source
1822
+ # A URL identifying the location of the data to be imported. This can be
1823
+ # an Amazon S3 path, or can point to a Neptune database endpoint or
1824
+ # snapshot.
1825
+ #
1826
+ # @option params [String] :format
1827
+ # Specifies the format of Amazon S3 data to be imported. Valid values
1828
+ # are CSV, which identifies the Gremlin CSV format or OPENCYPHER, which
1829
+ # identies the openCypher load format.
1830
+ #
1831
+ # @option params [required, String] :graph_identifier
1832
+ # The unique identifier of the Neptune Analytics graph.
1833
+ #
1834
+ # @option params [required, String] :role_arn
1835
+ # The ARN of the IAM role that will allow access to the data that is to
1836
+ # be imported.
1837
+ #
1838
+ # @return [Types::StartImportTaskOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1839
+ #
1840
+ # * {Types::StartImportTaskOutput#graph_id #graph_id} => String
1841
+ # * {Types::StartImportTaskOutput#task_id #task_id} => String
1842
+ # * {Types::StartImportTaskOutput#source #source} => String
1843
+ # * {Types::StartImportTaskOutput#format #format} => String
1844
+ # * {Types::StartImportTaskOutput#role_arn #role_arn} => String
1845
+ # * {Types::StartImportTaskOutput#status #status} => String
1846
+ # * {Types::StartImportTaskOutput#import_options #import_options} => Types::ImportOptions
1847
+ #
1848
+ # @example Request syntax with placeholder values
1849
+ #
1850
+ # resp = client.start_import_task({
1851
+ # import_options: {
1852
+ # neptune: {
1853
+ # s3_export_path: "NeptuneImportOptionsS3ExportPathString", # required
1854
+ # s3_export_kms_key_id: "NeptuneImportOptionsS3ExportKmsKeyIdString", # required
1855
+ # preserve_default_vertex_labels: false,
1856
+ # preserve_edge_ids: false,
1857
+ # },
1858
+ # },
1859
+ # fail_on_error: false,
1860
+ # source: "String", # required
1861
+ # format: "CSV", # accepts CSV, OPEN_CYPHER
1862
+ # graph_identifier: "GraphIdentifier", # required
1863
+ # role_arn: "RoleArn", # required
1864
+ # })
1865
+ #
1866
+ # @example Response structure
1867
+ #
1868
+ # resp.graph_id #=> String
1869
+ # resp.task_id #=> String
1870
+ # resp.source #=> String
1871
+ # resp.format #=> String, one of "CSV", "OPEN_CYPHER"
1872
+ # resp.role_arn #=> String
1873
+ # resp.status #=> String, one of "INITIALIZING", "EXPORTING", "ANALYZING_DATA", "IMPORTING", "REPROVISIONING", "ROLLING_BACK", "SUCCEEDED", "FAILED", "CANCELLING", "CANCELLED"
1874
+ # resp.import_options.neptune.s3_export_path #=> String
1875
+ # resp.import_options.neptune.s3_export_kms_key_id #=> String
1876
+ # resp.import_options.neptune.preserve_default_vertex_labels #=> Boolean
1877
+ # resp.import_options.neptune.preserve_edge_ids #=> Boolean
1878
+ #
1879
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/StartImportTask AWS API Documentation
1880
+ #
1881
+ # @overload start_import_task(params = {})
1882
+ # @param [Hash] params ({})
1883
+ def start_import_task(params = {}, options = {})
1884
+ req = build_request(:start_import_task, params)
1885
+ req.send_request(options)
1886
+ end
1887
+
1809
1888
  # Adds tags to the specified resource.
1810
1889
  #
1811
1890
  # @option params [required, String] :resource_arn
@@ -1962,7 +2041,7 @@ module Aws::NeptuneGraph
1962
2041
  params: params,
1963
2042
  config: config)
1964
2043
  context[:gem_name] = 'aws-sdk-neptunegraph'
1965
- context[:gem_version] = '1.5.0'
2044
+ context[:gem_version] = '1.6.0'
1966
2045
  Seahorse::Client::Request.new(handlers, context)
1967
2046
  end
1968
2047
 
@@ -125,6 +125,8 @@ module Aws::NeptuneGraph
125
125
  SnapshotIdentifier = Shapes::StringShape.new(name: 'SnapshotIdentifier')
126
126
  SnapshotName = Shapes::StringShape.new(name: 'SnapshotName')
127
127
  SnapshotStatus = Shapes::StringShape.new(name: 'SnapshotStatus')
128
+ StartImportTaskInput = Shapes::StructureShape.new(name: 'StartImportTaskInput')
129
+ StartImportTaskOutput = Shapes::StructureShape.new(name: 'StartImportTaskOutput')
128
130
  String = Shapes::StringShape.new(name: 'String')
129
131
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
130
132
  SubnetIds = Shapes::ListShape.new(name: 'SubnetIds')
@@ -616,6 +618,23 @@ module Aws::NeptuneGraph
616
618
  ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "quotaCode"))
617
619
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
618
620
 
621
+ StartImportTaskInput.add_member(:import_options, Shapes::ShapeRef.new(shape: ImportOptions, location_name: "importOptions"))
622
+ StartImportTaskInput.add_member(:fail_on_error, Shapes::ShapeRef.new(shape: Boolean, location_name: "failOnError"))
623
+ StartImportTaskInput.add_member(:source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "source"))
624
+ StartImportTaskInput.add_member(:format, Shapes::ShapeRef.new(shape: Format, location_name: "format"))
625
+ StartImportTaskInput.add_member(:graph_identifier, Shapes::ShapeRef.new(shape: GraphIdentifier, required: true, location: "uri", location_name: "graphIdentifier"))
626
+ StartImportTaskInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
627
+ StartImportTaskInput.struct_class = Types::StartImportTaskInput
628
+
629
+ StartImportTaskOutput.add_member(:graph_id, Shapes::ShapeRef.new(shape: GraphId, location_name: "graphId"))
630
+ StartImportTaskOutput.add_member(:task_id, Shapes::ShapeRef.new(shape: TaskId, required: true, location_name: "taskId"))
631
+ StartImportTaskOutput.add_member(:source, Shapes::ShapeRef.new(shape: String, required: true, location_name: "source"))
632
+ StartImportTaskOutput.add_member(:format, Shapes::ShapeRef.new(shape: Format, location_name: "format"))
633
+ StartImportTaskOutput.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "roleArn"))
634
+ StartImportTaskOutput.add_member(:status, Shapes::ShapeRef.new(shape: ImportTaskStatus, required: true, location_name: "status"))
635
+ StartImportTaskOutput.add_member(:import_options, Shapes::ShapeRef.new(shape: ImportOptions, location_name: "importOptions"))
636
+ StartImportTaskOutput.struct_class = Types::StartImportTaskOutput
637
+
619
638
  SubnetIds.member = Shapes::ShapeRef.new(shape: SubnetId)
620
639
 
621
640
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
@@ -1036,6 +1055,19 @@ module Aws::NeptuneGraph
1036
1055
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1037
1056
  end)
1038
1057
 
1058
+ api.add_operation(:start_import_task, Seahorse::Model::Operation.new.tap do |o|
1059
+ o.name = "StartImportTask"
1060
+ o.http_method = "POST"
1061
+ o.http_request_uri = "/graphs/{graphIdentifier}/importtasks"
1062
+ o.input = Shapes::ShapeRef.new(shape: StartImportTaskInput)
1063
+ o.output = Shapes::ShapeRef.new(shape: StartImportTaskOutput)
1064
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1065
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1066
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1067
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1068
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1069
+ end)
1070
+
1039
1071
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
1040
1072
  o.name = "TagResource"
1041
1073
  o.http_method = "POST"
@@ -372,6 +372,21 @@ module Aws::NeptuneGraph
372
372
  end
373
373
  end
374
374
 
375
+ class StartImportTask
376
+ def self.build(context)
377
+ unless context.config.regional_endpoint
378
+ endpoint = context.config.endpoint.to_s
379
+ end
380
+ Aws::NeptuneGraph::EndpointParameters.new(
381
+ region: context.config.region,
382
+ use_fips: context.config.use_fips_endpoint,
383
+ use_dual_stack: context.config.use_dualstack_endpoint,
384
+ endpoint: endpoint,
385
+ api_type: "ControlPlane",
386
+ )
387
+ end
388
+ end
389
+
375
390
  class TagResource
376
391
  def self.build(context)
377
392
  unless context.config.regional_endpoint
@@ -106,6 +106,8 @@ module Aws::NeptuneGraph
106
106
  Aws::NeptuneGraph::Endpoints::ResetGraph.build(context)
107
107
  when :restore_graph_from_snapshot
108
108
  Aws::NeptuneGraph::Endpoints::RestoreGraphFromSnapshot.build(context)
109
+ when :start_import_task
110
+ Aws::NeptuneGraph::Endpoints::StartImportTask.build(context)
109
111
  when :tag_resource
110
112
  Aws::NeptuneGraph::Endpoints::TagResource.build(context)
111
113
  when :untag_resource
@@ -2284,6 +2284,97 @@ module Aws::NeptuneGraph
2284
2284
  include Aws::Structure
2285
2285
  end
2286
2286
 
2287
+ # @!attribute [rw] import_options
2288
+ # Options for how to perform an import.
2289
+ # @return [Types::ImportOptions]
2290
+ #
2291
+ # @!attribute [rw] fail_on_error
2292
+ # If set to true, the task halts when an import error is encountered.
2293
+ # If set to false, the task skips the data that caused the error and
2294
+ # continues if possible.
2295
+ # @return [Boolean]
2296
+ #
2297
+ # @!attribute [rw] source
2298
+ # A URL identifying the location of the data to be imported. This can
2299
+ # be an Amazon S3 path, or can point to a Neptune database endpoint or
2300
+ # snapshot.
2301
+ # @return [String]
2302
+ #
2303
+ # @!attribute [rw] format
2304
+ # Specifies the format of Amazon S3 data to be imported. Valid values
2305
+ # are CSV, which identifies the Gremlin CSV format or OPENCYPHER,
2306
+ # which identies the openCypher load format.
2307
+ # @return [String]
2308
+ #
2309
+ # @!attribute [rw] graph_identifier
2310
+ # The unique identifier of the Neptune Analytics graph.
2311
+ # @return [String]
2312
+ #
2313
+ # @!attribute [rw] role_arn
2314
+ # The ARN of the IAM role that will allow access to the data that is
2315
+ # to be imported.
2316
+ # @return [String]
2317
+ #
2318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/StartImportTaskInput AWS API Documentation
2319
+ #
2320
+ class StartImportTaskInput < Struct.new(
2321
+ :import_options,
2322
+ :fail_on_error,
2323
+ :source,
2324
+ :format,
2325
+ :graph_identifier,
2326
+ :role_arn)
2327
+ SENSITIVE = []
2328
+ include Aws::Structure
2329
+ end
2330
+
2331
+ # @!attribute [rw] graph_id
2332
+ # The unique identifier of the Neptune Analytics graph.
2333
+ # @return [String]
2334
+ #
2335
+ # @!attribute [rw] task_id
2336
+ # The unique identifier of the import task.
2337
+ # @return [String]
2338
+ #
2339
+ # @!attribute [rw] source
2340
+ # A URL identifying the location of the data to be imported. This can
2341
+ # be an Amazon S3 path, or can point to a Neptune database endpoint or
2342
+ # snapshot.
2343
+ # @return [String]
2344
+ #
2345
+ # @!attribute [rw] format
2346
+ # Specifies the format of Amazon S3 data to be imported. Valid values
2347
+ # are CSV, which identifies the Gremlin CSV format or OPENCYPHER,
2348
+ # which identies the openCypher load format.
2349
+ # @return [String]
2350
+ #
2351
+ # @!attribute [rw] role_arn
2352
+ # The ARN of the IAM role that will allow access to the data that is
2353
+ # to be imported.
2354
+ # @return [String]
2355
+ #
2356
+ # @!attribute [rw] status
2357
+ # The status of the import task.
2358
+ # @return [String]
2359
+ #
2360
+ # @!attribute [rw] import_options
2361
+ # Options for how to perform an import.
2362
+ # @return [Types::ImportOptions]
2363
+ #
2364
+ # @see http://docs.aws.amazon.com/goto/WebAPI/neptune-graph-2023-11-29/StartImportTaskOutput AWS API Documentation
2365
+ #
2366
+ class StartImportTaskOutput < Struct.new(
2367
+ :graph_id,
2368
+ :task_id,
2369
+ :source,
2370
+ :format,
2371
+ :role_arn,
2372
+ :status,
2373
+ :import_options)
2374
+ SENSITIVE = []
2375
+ include Aws::Structure
2376
+ end
2377
+
2287
2378
  # @!attribute [rw] resource_arn
2288
2379
  # ARN of the resource for which tags need to be added.
2289
2380
  # @return [String]
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-neptunegraph/customizations'
53
53
  # @!group service
54
54
  module Aws::NeptuneGraph
55
55
 
56
- GEM_VERSION = '1.5.0'
56
+ GEM_VERSION = '1.6.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -499,6 +499,34 @@ module Aws
499
499
  ) -> _RestoreGraphFromSnapshotResponseSuccess
500
500
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RestoreGraphFromSnapshotResponseSuccess
501
501
 
502
+ interface _StartImportTaskResponseSuccess
503
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartImportTaskOutput]
504
+ def graph_id: () -> ::String
505
+ def task_id: () -> ::String
506
+ def source: () -> ::String
507
+ def format: () -> ("CSV" | "OPEN_CYPHER")
508
+ def role_arn: () -> ::String
509
+ def status: () -> ("INITIALIZING" | "EXPORTING" | "ANALYZING_DATA" | "IMPORTING" | "REPROVISIONING" | "ROLLING_BACK" | "SUCCEEDED" | "FAILED" | "CANCELLING" | "CANCELLED")
510
+ def import_options: () -> Types::ImportOptions
511
+ end
512
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NeptuneGraph/Client.html#start_import_task-instance_method
513
+ def start_import_task: (
514
+ ?import_options: {
515
+ neptune: {
516
+ s3_export_path: ::String,
517
+ s3_export_kms_key_id: ::String,
518
+ preserve_default_vertex_labels: bool?,
519
+ preserve_edge_ids: bool?
520
+ }?
521
+ },
522
+ ?fail_on_error: bool,
523
+ source: ::String,
524
+ ?format: ("CSV" | "OPEN_CYPHER"),
525
+ graph_identifier: ::String,
526
+ role_arn: ::String
527
+ ) -> _StartImportTaskResponseSuccess
528
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartImportTaskResponseSuccess
529
+
502
530
  interface _TagResourceResponseSuccess
503
531
  include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceOutput]
504
532
  end
data/sig/types.rbs CHANGED
@@ -566,6 +566,27 @@ module Aws::NeptuneGraph
566
566
  SENSITIVE: []
567
567
  end
568
568
 
569
+ class StartImportTaskInput
570
+ attr_accessor import_options: Types::ImportOptions
571
+ attr_accessor fail_on_error: bool
572
+ attr_accessor source: ::String
573
+ attr_accessor format: ("CSV" | "OPEN_CYPHER")
574
+ attr_accessor graph_identifier: ::String
575
+ attr_accessor role_arn: ::String
576
+ SENSITIVE: []
577
+ end
578
+
579
+ class StartImportTaskOutput
580
+ attr_accessor graph_id: ::String
581
+ attr_accessor task_id: ::String
582
+ attr_accessor source: ::String
583
+ attr_accessor format: ("CSV" | "OPEN_CYPHER")
584
+ attr_accessor role_arn: ::String
585
+ attr_accessor status: ("INITIALIZING" | "EXPORTING" | "ANALYZING_DATA" | "IMPORTING" | "REPROVISIONING" | "ROLLING_BACK" | "SUCCEEDED" | "FAILED" | "CANCELLING" | "CANCELLED")
586
+ attr_accessor import_options: Types::ImportOptions
587
+ SENSITIVE: []
588
+ end
589
+
569
590
  class TagResourceInput
570
591
  attr_accessor resource_arn: ::String
571
592
  attr_accessor tags: ::Hash[::String, ::String]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-neptunegraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-28 00:00:00.000000000 Z
11
+ date: 2024-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core