diff --git a/clients/client-neptune-graph/src/commands/CancelImportTaskCommand.ts b/clients/client-neptune-graph/src/commands/CancelImportTaskCommand.ts index 5a0f2d6fb67c2..3f61f8c241fca 100644 --- a/clients/client-neptune-graph/src/commands/CancelImportTaskCommand.ts +++ b/clients/client-neptune-graph/src/commands/CancelImportTaskCommand.ts @@ -44,7 +44,7 @@ export interface CancelImportTaskCommandOutput extends CancelImportTaskOutput, _ * // graphId: "STRING_VALUE", * // taskId: "STRING_VALUE", // required * // source: "STRING_VALUE", // required - * // format: "CSV" || "OPEN_CYPHER", + * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES", * // roleArn: "STRING_VALUE", // required * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required * // }; diff --git a/clients/client-neptune-graph/src/commands/CreateGraphUsingImportTaskCommand.ts b/clients/client-neptune-graph/src/commands/CreateGraphUsingImportTaskCommand.ts index e69d5f769201f..96ad362882837 100644 --- a/clients/client-neptune-graph/src/commands/CreateGraphUsingImportTaskCommand.ts +++ b/clients/client-neptune-graph/src/commands/CreateGraphUsingImportTaskCommand.ts @@ -63,7 +63,8 @@ export interface CreateGraphUsingImportTaskCommandOutput extends CreateGraphUsin * minProvisionedMemory: Number("int"), * failOnError: true || false, * source: "STRING_VALUE", // required - * format: "CSV" || "OPEN_CYPHER", + * format: "CSV" || "OPEN_CYPHER" || "NTRIPLES", + * blankNodeHandling: "convertToIri", * roleArn: "STRING_VALUE", // required * }; * const command = new CreateGraphUsingImportTaskCommand(input); @@ -72,7 +73,7 @@ export interface CreateGraphUsingImportTaskCommandOutput extends CreateGraphUsin * // graphId: "STRING_VALUE", * // taskId: "STRING_VALUE", // required * // source: "STRING_VALUE", // required - * // format: "CSV" || "OPEN_CYPHER", + * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES", * // roleArn: "STRING_VALUE", // required * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required * // importOptions: { // ImportOptions Union: only one key present diff --git a/clients/client-neptune-graph/src/commands/GetImportTaskCommand.ts b/clients/client-neptune-graph/src/commands/GetImportTaskCommand.ts index e200ba6a35847..71cfbc03dc35a 100644 --- a/clients/client-neptune-graph/src/commands/GetImportTaskCommand.ts +++ b/clients/client-neptune-graph/src/commands/GetImportTaskCommand.ts @@ -44,7 +44,7 @@ export interface GetImportTaskCommandOutput extends GetImportTaskOutput, __Metad * // graphId: "STRING_VALUE", * // taskId: "STRING_VALUE", // required * // source: "STRING_VALUE", // required - * // format: "CSV" || "OPEN_CYPHER", + * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES", * // roleArn: "STRING_VALUE", // required * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required * // importOptions: { // ImportOptions Union: only one key present diff --git a/clients/client-neptune-graph/src/commands/ListImportTasksCommand.ts b/clients/client-neptune-graph/src/commands/ListImportTasksCommand.ts index dc529b018b7c1..fabf178a6711c 100644 --- a/clients/client-neptune-graph/src/commands/ListImportTasksCommand.ts +++ b/clients/client-neptune-graph/src/commands/ListImportTasksCommand.ts @@ -47,7 +47,7 @@ export interface ListImportTasksCommandOutput extends ListImportTasksOutput, __M * // graphId: "STRING_VALUE", * // taskId: "STRING_VALUE", // required * // source: "STRING_VALUE", // required - * // format: "CSV" || "OPEN_CYPHER", + * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES", * // roleArn: "STRING_VALUE", // required * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required * // }, diff --git a/clients/client-neptune-graph/src/commands/StartImportTaskCommand.ts b/clients/client-neptune-graph/src/commands/StartImportTaskCommand.ts index c85a9ff61e9e4..bdf6f33ece00e 100644 --- a/clients/client-neptune-graph/src/commands/StartImportTaskCommand.ts +++ b/clients/client-neptune-graph/src/commands/StartImportTaskCommand.ts @@ -46,7 +46,8 @@ export interface StartImportTaskCommandOutput extends StartImportTaskOutput, __M * }, * failOnError: true || false, * source: "STRING_VALUE", // required - * format: "CSV" || "OPEN_CYPHER", + * format: "CSV" || "OPEN_CYPHER" || "NTRIPLES", + * blankNodeHandling: "convertToIri", * graphIdentifier: "STRING_VALUE", // required * roleArn: "STRING_VALUE", // required * }; @@ -56,7 +57,7 @@ export interface StartImportTaskCommandOutput extends StartImportTaskOutput, __M * // graphId: "STRING_VALUE", * // taskId: "STRING_VALUE", // required * // source: "STRING_VALUE", // required - * // format: "CSV" || "OPEN_CYPHER", + * // format: "CSV" || "OPEN_CYPHER" || "NTRIPLES", * // roleArn: "STRING_VALUE", // required * // status: "INITIALIZING" || "EXPORTING" || "ANALYZING_DATA" || "IMPORTING" || "REPROVISIONING" || "ROLLING_BACK" || "SUCCEEDED" || "FAILED" || "CANCELLING" || "CANCELLED", // required * // importOptions: { // ImportOptions Union: only one key present diff --git a/clients/client-neptune-graph/src/models/models_0.ts b/clients/client-neptune-graph/src/models/models_0.ts index e267cf6f39131..5b82a39eec674 100644 --- a/clients/client-neptune-graph/src/models/models_0.ts +++ b/clients/client-neptune-graph/src/models/models_0.ts @@ -2295,6 +2295,7 @@ export interface CancelImportTaskInput { */ export const Format = { CSV: "CSV", + NTRIPLES: "NTRIPLES", OPEN_CYPHER: "OPEN_CYPHER", } as const; @@ -2370,6 +2371,19 @@ export interface CancelImportTaskOutput { status: ImportTaskStatus | undefined; } +/** + * @public + * @enum + */ +export const BlankNodeHandling = { + CONVERT_TO_IRI: "convertToIri", +} as const; + +/** + * @public + */ +export type BlankNodeHandling = (typeof BlankNodeHandling)[keyof typeof BlankNodeHandling]; + /** *

Options for how to import Neptune data.

* @public @@ -2551,6 +2565,14 @@ export interface CreateGraphUsingImportTaskInput { */ format?: Format; + /** + *

The method to handle blank nodes in the dataset. Currently, only convertToIri is supported, + * meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is ntriples. + * For more information, see Handling RDF values.

+ * @public + */ + blankNodeHandling?: BlankNodeHandling; + /** *

The ARN of the IAM role that will allow access to the data that is to be imported.

* @public @@ -2584,8 +2606,9 @@ export interface CreateGraphUsingImportTaskOutput { /** *

Specifies the format of S3 data to be imported. Valid values are CSV, which identifies * the Gremlin - * CSV format or OPENCYPHER, which identies the openCypher - * load format.

+ * CSV format, OPENCYPHER, which identifies the openCypher + * load format, or ntriples, which identifies the + * RDF n-triples format.

* @public */ format?: Format; @@ -2928,6 +2951,14 @@ export interface StartImportTaskInput { */ format?: Format; + /** + *

The method to handle blank nodes in the dataset. Currently, only convertToIri is supported, + * meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is ntriples. + * For more information, see Handling RDF values.

+ * @public + */ + blankNodeHandling?: BlankNodeHandling; + /** *

The unique identifier of the Neptune Analytics graph.

* @public diff --git a/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts b/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts index f5197d8543eb8..082baa3d99599 100644 --- a/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts +++ b/clients/client-neptune-graph/src/protocols/Aws_restJson1.ts @@ -224,6 +224,7 @@ export const se_CreateGraphUsingImportTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { + blankNodeHandling: [], deletionProtection: [], failOnError: [], format: [], @@ -682,6 +683,7 @@ export const se_StartImportTaskCommand = async ( let body: any; body = JSON.stringify( take(input, { + blankNodeHandling: [], failOnError: [], format: [], importOptions: (_) => _json(_), diff --git a/codegen/sdk-codegen/aws-models/neptune-graph.json b/codegen/sdk-codegen/aws-models/neptune-graph.json index 419199b113b41..6c7cd9f757e71 100644 --- a/codegen/sdk-codegen/aws-models/neptune-graph.json +++ b/codegen/sdk-codegen/aws-models/neptune-graph.json @@ -1534,6 +1534,17 @@ "smithy.api#pattern": "^arn:.+$" } }, + "com.amazonaws.neptunegraph#BlankNodeHandling": { + "type": "enum", + "members": { + "CONVERT_TO_IRI": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "convertToIri" + } + } + } + }, "com.amazonaws.neptunegraph#CancelImportTask": { "type": "operation", "input": { @@ -2187,6 +2198,12 @@ "smithy.api#documentation": "

Specifies the format of S3 data to be imported. Valid values are CSV, which identifies\n the Gremlin\n CSV format or OPENCYPHER, which identies the openCypher\n load format.

" } }, + "blankNodeHandling": { + "target": "com.amazonaws.neptunegraph#BlankNodeHandling", + "traits": { + "smithy.api#documentation": "

The method to handle blank nodes in the dataset. Currently, only convertToIri is supported, \n meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is ntriples. \n For more information, see Handling RDF values.

" + } + }, "roleArn": { "target": "com.amazonaws.neptunegraph#RoleArn", "traits": { @@ -2225,7 +2242,7 @@ "format": { "target": "com.amazonaws.neptunegraph#Format", "traits": { - "smithy.api#documentation": "

Specifies the format of S3 data to be imported. Valid values are CSV, which identifies\n the Gremlin\n CSV format or OPENCYPHER, which identies the openCypher\n load format.

" + "smithy.api#documentation": "

Specifies the format of S3 data to be imported. Valid values are CSV, which identifies\n the Gremlin\n CSV format, OPENCYPHER, which identifies the openCypher\n load format, or ntriples, which identifies the\n RDF n-triples format.

" } }, "roleArn": { @@ -2932,6 +2949,12 @@ "traits": { "smithy.api#enumValue": "OPEN_CYPHER" } + }, + "NTRIPLES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NTRIPLES" + } } } }, @@ -5912,6 +5935,12 @@ "smithy.api#documentation": "

Specifies the format of Amazon S3 data to be imported. Valid values are CSV, which identifies the Gremlin CSV format or \n OPENCYPHER, which identies the openCypher load format.

" } }, + "blankNodeHandling": { + "target": "com.amazonaws.neptunegraph#BlankNodeHandling", + "traits": { + "smithy.api#documentation": "

The method to handle blank nodes in the dataset. Currently, only convertToIri is supported, \n meaning blank nodes are converted to unique IRIs at load time. Must be provided when format is ntriples. \n For more information, see Handling RDF values.

" + } + }, "graphIdentifier": { "target": "com.amazonaws.neptunegraph#GraphIdentifier", "traits": {