@aws-sdk/client-neptune-graph 3.624.0 → 3.630.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.
package/dist-cjs/index.js CHANGED
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var src_exports = {};
23
23
  __export(src_exports, {
24
24
  AccessDeniedException: () => AccessDeniedException,
25
+ BlankNodeHandling: () => BlankNodeHandling,
25
26
  CancelImportTaskCommand: () => CancelImportTaskCommand,
26
27
  CancelQueryCommand: () => CancelQueryCommand,
27
28
  ConflictException: () => ConflictException,
@@ -483,6 +484,7 @@ var SnapshotStatus = {
483
484
  };
484
485
  var Format = {
485
486
  CSV: "CSV",
487
+ NTRIPLES: "NTRIPLES",
486
488
  OPEN_CYPHER: "OPEN_CYPHER"
487
489
  };
488
490
  var ImportTaskStatus = {
@@ -497,6 +499,9 @@ var ImportTaskStatus = {
497
499
  ROLLING_BACK: "ROLLING_BACK",
498
500
  SUCCEEDED: "SUCCEEDED"
499
501
  };
502
+ var BlankNodeHandling = {
503
+ CONVERT_TO_IRI: "convertToIri"
504
+ };
500
505
  var ImportOptions;
501
506
  ((ImportOptions3) => {
502
507
  ImportOptions3.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -590,6 +595,7 @@ var se_CreateGraphUsingImportTaskCommand = /* @__PURE__ */ __name(async (input,
590
595
  let body;
591
596
  body = JSON.stringify(
592
597
  (0, import_smithy_client.take)(input, {
598
+ blankNodeHandling: [],
593
599
  deletionProtection: [],
594
600
  failOnError: [],
595
601
  format: [],
@@ -908,6 +914,7 @@ var se_StartImportTaskCommand = /* @__PURE__ */ __name(async (input, context) =>
908
914
  let body;
909
915
  body = JSON.stringify(
910
916
  (0, import_smithy_client.take)(input, {
917
+ blankNodeHandling: [],
911
918
  failOnError: [],
912
919
  format: [],
913
920
  importOptions: (_) => (0, import_smithy_client._json)(_),
@@ -2660,6 +2667,7 @@ var waitUntilPrivateGraphEndpointDeleted = /* @__PURE__ */ __name(async (params,
2660
2667
  SnapshotStatus,
2661
2668
  Format,
2662
2669
  ImportTaskStatus,
2670
+ BlankNodeHandling,
2663
2671
  ImportOptions,
2664
2672
  ExecuteQueryOutputFilterSensitiveLog
2665
2673
  });
@@ -176,6 +176,7 @@ export const SnapshotStatus = {
176
176
  };
177
177
  export const Format = {
178
178
  CSV: "CSV",
179
+ NTRIPLES: "NTRIPLES",
179
180
  OPEN_CYPHER: "OPEN_CYPHER",
180
181
  };
181
182
  export const ImportTaskStatus = {
@@ -190,6 +191,9 @@ export const ImportTaskStatus = {
190
191
  ROLLING_BACK: "ROLLING_BACK",
191
192
  SUCCEEDED: "SUCCEEDED",
192
193
  };
194
+ export const BlankNodeHandling = {
195
+ CONVERT_TO_IRI: "convertToIri",
196
+ };
193
197
  export var ImportOptions;
194
198
  (function (ImportOptions) {
195
199
  ImportOptions.visit = (value, visitor) => {
@@ -79,6 +79,7 @@ export const se_CreateGraphUsingImportTaskCommand = async (input, context) => {
79
79
  b.bp("/importtasks");
80
80
  let body;
81
81
  body = JSON.stringify(take(input, {
82
+ blankNodeHandling: [],
82
83
  deletionProtection: [],
83
84
  failOnError: [],
84
85
  format: [],
@@ -387,6 +388,7 @@ export const se_StartImportTaskCommand = async (input, context) => {
387
388
  b.p("graphIdentifier", () => input.graphIdentifier, "{graphIdentifier}", false);
388
389
  let body;
389
390
  body = JSON.stringify(take(input, {
391
+ blankNodeHandling: [],
390
392
  failOnError: [],
391
393
  format: [],
392
394
  importOptions: (_) => _json(_),
@@ -43,7 +43,7 @@ declare const CancelImportTaskCommand_base: {
43
43
  * // graphId: "STRING_VALUE",
44
44
  * // taskId: "STRING_VALUE", // required
45
45
  * // source: "STRING_VALUE", // required
46
- * // format: "CSV" || "OPEN_CYPHER",
46
+ * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES",
47
47
  * // roleArn: "STRING_VALUE", // required
48
48
  * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required
49
49
  * // };
@@ -62,7 +62,8 @@ declare const CreateGraphUsingImportTaskCommand_base: {
62
62
  * minProvisionedMemory: Number("int"),
63
63
  * failOnError: true || false,
64
64
  * source: "STRING_VALUE", // required
65
- * format: "CSV" || "OPEN_CYPHER",
65
+ * format: "CSV" || "OPEN_CYPHER" || "NTRIPLES",
66
+ * blankNodeHandling: "convertToIri",
66
67
  * roleArn: "STRING_VALUE", // required
67
68
  * };
68
69
  * const command = new CreateGraphUsingImportTaskCommand(input);
@@ -71,7 +72,7 @@ declare const CreateGraphUsingImportTaskCommand_base: {
71
72
  * // graphId: "STRING_VALUE",
72
73
  * // taskId: "STRING_VALUE", // required
73
74
  * // source: "STRING_VALUE", // required
74
- * // format: "CSV" || "OPEN_CYPHER",
75
+ * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES",
75
76
  * // roleArn: "STRING_VALUE", // required
76
77
  * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required
77
78
  * // importOptions: { // ImportOptions Union: only one key present
@@ -43,7 +43,7 @@ declare const GetImportTaskCommand_base: {
43
43
  * // graphId: "STRING_VALUE",
44
44
  * // taskId: "STRING_VALUE", // required
45
45
  * // source: "STRING_VALUE", // required
46
- * // format: "CSV" || "OPEN_CYPHER",
46
+ * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES",
47
47
  * // roleArn: "STRING_VALUE", // required
48
48
  * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required
49
49
  * // importOptions: { // ImportOptions Union: only one key present
@@ -46,7 +46,7 @@ declare const ListImportTasksCommand_base: {
46
46
  * // graphId: "STRING_VALUE",
47
47
  * // taskId: "STRING_VALUE", // required
48
48
  * // source: "STRING_VALUE", // required
49
- * // format: "CSV" || "OPEN_CYPHER",
49
+ * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES",
50
50
  * // roleArn: "STRING_VALUE", // required
51
51
  * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required
52
52
  * // },
@@ -45,7 +45,8 @@ declare const StartImportTaskCommand_base: {
45
45
  * },
46
46
  * failOnError: true || false,
47
47
  * source: "STRING_VALUE", // required
48
- * format: "CSV" || "OPEN_CYPHER",
48
+ * format: "CSV" || "OPEN_CYPHER" || "NTRIPLES",
49
+ * blankNodeHandling: "convertToIri",
49
50
  * graphIdentifier: "STRING_VALUE", // required
50
51
  * roleArn: "STRING_VALUE", // required
51
52
  * };
@@ -55,7 +56,7 @@ declare const StartImportTaskCommand_base: {
55
56
  * // graphId: "STRING_VALUE",
56
57
  * // taskId: "STRING_VALUE", // required
57
58
  * // source: "STRING_VALUE", // required
58
- * // format: "CSV" || "OPEN_CYPHER",
59
+ * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES",
59
60
  * // roleArn: "STRING_VALUE", // required
60
61
  * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required
61
62
  * // importOptions: { // ImportOptions Union: only one key present
@@ -1937,6 +1937,7 @@ export interface CancelImportTaskInput {
1937
1937
  */
1938
1938
  export declare const Format: {
1939
1939
  readonly CSV: "CSV";
1940
+ readonly NTRIPLES: "NTRIPLES";
1940
1941
  readonly OPEN_CYPHER: "OPEN_CYPHER";
1941
1942
  };
1942
1943
  /**
@@ -2002,6 +2003,17 @@ export interface CancelImportTaskOutput {
2002
2003
  */
2003
2004
  status: ImportTaskStatus | undefined;
2004
2005
  }
2006
+ /**
2007
+ * @public
2008
+ * @enum
2009
+ */
2010
+ export declare const BlankNodeHandling: {
2011
+ readonly CONVERT_TO_IRI: "convertToIri";
2012
+ };
2013
+ /**
2014
+ * @public
2015
+ */
2016
+ export type BlankNodeHandling = (typeof BlankNodeHandling)[keyof typeof BlankNodeHandling];
2005
2017
  /**
2006
2018
  * <p>Options for how to import Neptune data.</p>
2007
2019
  * @public
@@ -2158,6 +2170,13 @@ export interface CreateGraphUsingImportTaskInput {
2158
2170
  * @public
2159
2171
  */
2160
2172
  format?: Format;
2173
+ /**
2174
+ * <p>The method to handle blank nodes in the dataset. Currently, only <code>convertToIri</code> is supported,
2175
+ * meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is <code>ntriples</code>.
2176
+ * For more information, see <a href="https://docs.aws.amazon.com/neptune-analytics/latest/userguide/using-rdf-data.html#rdf-handling">Handling RDF values</a>.</p>
2177
+ * @public
2178
+ */
2179
+ blankNodeHandling?: BlankNodeHandling;
2161
2180
  /**
2162
2181
  * <p>The ARN of the IAM role that will allow access to the data that is to be imported.</p>
2163
2182
  * @public
@@ -2187,8 +2206,9 @@ export interface CreateGraphUsingImportTaskOutput {
2187
2206
  /**
2188
2207
  * <p>Specifies the format of S3 data to be imported. Valid values are <code>CSV</code>, which identifies
2189
2208
  * the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/bulk-load-tutorial-format-gremlin.html">Gremlin
2190
- * CSV format</a> or <code>OPENCYPHER</code>, which identies the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/bulk-load-tutorial-format-opencypher.html">openCypher
2191
- * load format</a>.</p>
2209
+ * CSV format</a>, <code>OPENCYPHER</code>, which identifies the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/bulk-load-tutorial-format-opencypher.html">openCypher
2210
+ * load format</a>, or <code>ntriples</code>, which identifies the
2211
+ * <a href="https://docs.aws.amazon.com/neptune-analytics/latest/userguide/using-rdf-data.html">RDF n-triples</a> format.</p>
2192
2212
  * @public
2193
2213
  */
2194
2214
  format?: Format;
@@ -2494,6 +2514,13 @@ export interface StartImportTaskInput {
2494
2514
  * @public
2495
2515
  */
2496
2516
  format?: Format;
2517
+ /**
2518
+ * <p>The method to handle blank nodes in the dataset. Currently, only <code>convertToIri</code> is supported,
2519
+ * meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is <code>ntriples</code>.
2520
+ * For more information, see <a href="https://docs.aws.amazon.com/neptune-analytics/latest/userguide/using-rdf-data.html#rdf-handling">Handling RDF values</a>.</p>
2521
+ * @public
2522
+ */
2523
+ blankNodeHandling?: BlankNodeHandling;
2497
2524
  /**
2498
2525
  * <p>The unique identifier of the Neptune Analytics graph.</p>
2499
2526
  * @public
@@ -512,6 +512,7 @@ export interface CancelImportTaskInput {
512
512
  }
513
513
  export declare const Format: {
514
514
  readonly CSV: "CSV";
515
+ readonly NTRIPLES: "NTRIPLES";
515
516
  readonly OPEN_CYPHER: "OPEN_CYPHER";
516
517
  };
517
518
  export type Format = (typeof Format)[keyof typeof Format];
@@ -537,6 +538,11 @@ export interface CancelImportTaskOutput {
537
538
  roleArn: string | undefined;
538
539
  status: ImportTaskStatus | undefined;
539
540
  }
541
+ export declare const BlankNodeHandling: {
542
+ readonly CONVERT_TO_IRI: "convertToIri";
543
+ };
544
+ export type BlankNodeHandling =
545
+ (typeof BlankNodeHandling)[keyof typeof BlankNodeHandling];
540
546
  export interface NeptuneImportOptions {
541
547
  s3ExportPath: string | undefined;
542
548
  s3ExportKmsKeyId: string | undefined;
@@ -575,6 +581,7 @@ export interface CreateGraphUsingImportTaskInput {
575
581
  failOnError?: boolean;
576
582
  source: string | undefined;
577
583
  format?: Format;
584
+ blankNodeHandling?: BlankNodeHandling;
578
585
  roleArn: string | undefined;
579
586
  }
580
587
  export interface CreateGraphUsingImportTaskOutput {
@@ -632,6 +639,7 @@ export interface StartImportTaskInput {
632
639
  failOnError?: boolean;
633
640
  source: string | undefined;
634
641
  format?: Format;
642
+ blankNodeHandling?: BlankNodeHandling;
635
643
  graphIdentifier: string | undefined;
636
644
  roleArn: string | undefined;
637
645
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-neptune-graph",
3
3
  "description": "AWS SDK for JavaScript Neptune Graph Client for Node.js, Browser and React Native",
4
- "version": "3.624.0",
4
+ "version": "3.630.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-neptune-graph",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.624.0",
24
- "@aws-sdk/client-sts": "3.624.0",
25
- "@aws-sdk/core": "3.624.0",
26
- "@aws-sdk/credential-provider-node": "3.624.0",
23
+ "@aws-sdk/client-sso-oidc": "3.629.0",
24
+ "@aws-sdk/client-sts": "3.629.0",
25
+ "@aws-sdk/core": "3.629.0",
26
+ "@aws-sdk/credential-provider-node": "3.629.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",