diff --git a/clients/client-neptunedata/.gitignore b/clients/client-neptunedata/.gitignore new file mode 100644 index 0000000000000..54f14c9aef253 --- /dev/null +++ b/clients/client-neptunedata/.gitignore @@ -0,0 +1,9 @@ +/node_modules/ +/build/ +/coverage/ +/docs/ +/dist-* +*.tsbuildinfo +*.tgz +*.log +package-lock.json diff --git a/clients/client-neptunedata/LICENSE b/clients/client-neptunedata/LICENSE new file mode 100644 index 0000000000000..5001cd317c44a --- /dev/null +++ b/clients/client-neptunedata/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/clients/client-neptunedata/README.md b/clients/client-neptunedata/README.md new file mode 100644 index 0000000000000..87b4147d6a3d0 --- /dev/null +++ b/clients/client-neptunedata/README.md @@ -0,0 +1,555 @@ + + +# @aws-sdk/client-neptunedata + +## Description + +AWS SDK for JavaScript Neptunedata Client for Node.js, Browser and React Native. + +Neptune Data API + +

The Amazon Neptune data API provides SDK support for more than 40 of Neptune's data +operations, including data loading, query execution, data inquiry, and machine learning. +It supports all three Neptune query languages (Gremlin, openCypher and SPARQL), and is +available in all SDK languages. It automatically signs API requests and greatly simplifies +integrating Neptune into your applications.

+ +## Installing + +To install the this package, simply type add or install @aws-sdk/client-neptunedata +using your favorite package manager: + +- `npm install @aws-sdk/client-neptunedata` +- `yarn add @aws-sdk/client-neptunedata` +- `pnpm add @aws-sdk/client-neptunedata` + +## Getting Started + +### Import + +The AWS SDK is modulized by clients and commands. +To send a request, you only need to import the `NeptunedataClient` and +the commands you need, for example `CancelGremlinQueryCommand`: + +```js +// ES5 example +const { NeptunedataClient, CancelGremlinQueryCommand } = require("@aws-sdk/client-neptunedata"); +``` + +```ts +// ES6+ example +import { NeptunedataClient, CancelGremlinQueryCommand } from "@aws-sdk/client-neptunedata"; +``` + +### Usage + +To send a request, you: + +- Initiate client with configuration (e.g. credentials, region). +- Initiate command with input parameters. +- Call `send` operation on client with command object as input. +- If you are using a custom http handler, you may call `destroy()` to close open connections. + +```js +// a client can be shared by different commands. +const client = new NeptunedataClient({ region: "REGION" }); + +const params = { + /** input parameters */ +}; +const command = new CancelGremlinQueryCommand(params); +``` + +#### Async/await + +We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) +operator to wait for the promise returned by send operation as follows: + +```js +// async/await. +try { + const data = await client.send(command); + // process data. +} catch (error) { + // error handling. +} finally { + // finally. +} +``` + +Async-await is clean, concise, intuitive, easy to debug and has better error handling +as compared to using Promise chains or callbacks. + +#### Promises + +You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) +to execute send operation. + +```js +client.send(command).then( + (data) => { + // process data. + }, + (error) => { + // error handling. + } +); +``` + +Promises can also be called using `.catch()` and `.finally()` as follows: + +```js +client + .send(command) + .then((data) => { + // process data. + }) + .catch((error) => { + // error handling. + }) + .finally(() => { + // finally. + }); +``` + +#### Callbacks + +We do not recommend using callbacks because of [callback hell](http://callbackhell.com/), +but they are supported by the send operation. + +```js +// callbacks. +client.send(command, (err, data) => { + // process err and data. +}); +``` + +#### v2 compatible style + +The client can also send requests using v2 compatible style. +However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post +on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/) + +```ts +import * as AWS from "@aws-sdk/client-neptunedata"; +const client = new AWS.Neptunedata({ region: "REGION" }); + +// async/await. +try { + const data = await client.cancelGremlinQuery(params); + // process data. +} catch (error) { + // error handling. +} + +// Promises. +client + .cancelGremlinQuery(params) + .then((data) => { + // process data. + }) + .catch((error) => { + // error handling. + }); + +// callbacks. +client.cancelGremlinQuery(params, (err, data) => { + // process err and data. +}); +``` + +### Troubleshooting + +When the service returns an exception, the error will include the exception information, +as well as response metadata (e.g. request id). + +```js +try { + const data = await client.send(command); + // process data. +} catch (error) { + const { requestId, cfId, extendedRequestId } = error.$$metadata; + console.log({ requestId, cfId, extendedRequestId }); + /** + * The keys within exceptions are also parsed. + * You can access them by specifying exception names: + * if (error.name === 'SomeServiceException') { + * const value = error.specialKeyInException; + * } + */ +} +``` + +## Getting Help + +Please use these community resources for getting help. +We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them. + +- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) + or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html). +- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/) + on AWS Developer Blog. +- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`. +- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3). +- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). + +To test your universal JavaScript code in Node.js, browser and react-native environments, +visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests). + +## Contributing + +This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-neptunedata` package is updated. +To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients). + +## License + +This SDK is distributed under the +[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), +see LICENSE for more information. + +## Client Commands (Operations List) + +
+ +CancelGremlinQuery + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/cancelgremlinquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelgremlinquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelgremlinquerycommandoutput.html) + +
+
+ +CancelLoaderJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/cancelloaderjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelloaderjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelloaderjobcommandoutput.html) + +
+
+ +CancelMLDataProcessingJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/cancelmldataprocessingjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelmldataprocessingjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelmldataprocessingjobcommandoutput.html) + +
+
+ +CancelMLModelTrainingJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/cancelmlmodeltrainingjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelmlmodeltrainingjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelmlmodeltrainingjobcommandoutput.html) + +
+
+ +CancelMLModelTransformJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/cancelmlmodeltransformjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelmlmodeltransformjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelmlmodeltransformjobcommandoutput.html) + +
+
+ +CancelOpenCypherQuery + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/cancelopencypherquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelopencypherquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/cancelopencypherquerycommandoutput.html) + +
+
+ +CreateMLEndpoint + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/createmlendpointcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/createmlendpointcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/createmlendpointcommandoutput.html) + +
+
+ +DeleteMLEndpoint + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/deletemlendpointcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/deletemlendpointcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/deletemlendpointcommandoutput.html) + +
+
+ +DeletePropertygraphStatistics + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/deletepropertygraphstatisticscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/deletepropertygraphstatisticscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/deletepropertygraphstatisticscommandoutput.html) + +
+
+ +DeleteSparqlStatistics + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/deletesparqlstatisticscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/deletesparqlstatisticscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/deletesparqlstatisticscommandoutput.html) + +
+
+ +ExecuteFastReset + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/executefastresetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executefastresetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executefastresetcommandoutput.html) + +
+
+ +ExecuteGremlinExplainQuery + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/executegremlinexplainquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executegremlinexplainquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executegremlinexplainquerycommandoutput.html) + +
+
+ +ExecuteGremlinProfileQuery + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/executegremlinprofilequerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executegremlinprofilequerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executegremlinprofilequerycommandoutput.html) + +
+
+ +ExecuteGremlinQuery + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/executegremlinquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executegremlinquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executegremlinquerycommandoutput.html) + +
+
+ +ExecuteOpenCypherExplainQuery + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/executeopencypherexplainquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executeopencypherexplainquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executeopencypherexplainquerycommandoutput.html) + +
+
+ +ExecuteOpenCypherQuery + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/executeopencypherquerycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executeopencypherquerycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/executeopencypherquerycommandoutput.html) + +
+
+ +GetEngineStatus + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getenginestatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getenginestatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getenginestatuscommandoutput.html) + +
+
+ +GetGremlinQueryStatus + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getgremlinquerystatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getgremlinquerystatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getgremlinquerystatuscommandoutput.html) + +
+
+ +GetLoaderJobStatus + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getloaderjobstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getloaderjobstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getloaderjobstatuscommandoutput.html) + +
+
+ +GetMLDataProcessingJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getmldataprocessingjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmldataprocessingjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmldataprocessingjobcommandoutput.html) + +
+
+ +GetMLEndpoint + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getmlendpointcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmlendpointcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmlendpointcommandoutput.html) + +
+
+ +GetMLModelTrainingJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getmlmodeltrainingjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmlmodeltrainingjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmlmodeltrainingjobcommandoutput.html) + +
+
+ +GetMLModelTransformJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getmlmodeltransformjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmlmodeltransformjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getmlmodeltransformjobcommandoutput.html) + +
+
+ +GetOpenCypherQueryStatus + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getopencypherquerystatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getopencypherquerystatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getopencypherquerystatuscommandoutput.html) + +
+
+ +GetPropertygraphStatistics + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getpropertygraphstatisticscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getpropertygraphstatisticscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getpropertygraphstatisticscommandoutput.html) + +
+
+ +GetPropertygraphStream + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getpropertygraphstreamcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getpropertygraphstreamcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getpropertygraphstreamcommandoutput.html) + +
+
+ +GetPropertygraphSummary + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getpropertygraphsummarycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getpropertygraphsummarycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getpropertygraphsummarycommandoutput.html) + +
+
+ +GetRDFGraphSummary + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getrdfgraphsummarycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getrdfgraphsummarycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getrdfgraphsummarycommandoutput.html) + +
+
+ +GetSparqlStatistics + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getsparqlstatisticscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getsparqlstatisticscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getsparqlstatisticscommandoutput.html) + +
+
+ +GetSparqlStream + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/getsparqlstreamcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getsparqlstreamcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/getsparqlstreamcommandoutput.html) + +
+
+ +ListGremlinQueries + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/listgremlinqueriescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listgremlinqueriescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listgremlinqueriescommandoutput.html) + +
+
+ +ListLoaderJobs + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/listloaderjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listloaderjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listloaderjobscommandoutput.html) + +
+
+ +ListMLDataProcessingJobs + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/listmldataprocessingjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmldataprocessingjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmldataprocessingjobscommandoutput.html) + +
+
+ +ListMLEndpoints + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/listmlendpointscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmlendpointscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmlendpointscommandoutput.html) + +
+
+ +ListMLModelTrainingJobs + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/listmlmodeltrainingjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmlmodeltrainingjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmlmodeltrainingjobscommandoutput.html) + +
+
+ +ListMLModelTransformJobs + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/listmlmodeltransformjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmlmodeltransformjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listmlmodeltransformjobscommandoutput.html) + +
+
+ +ListOpenCypherQueries + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/listopencypherqueriescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listopencypherqueriescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/listopencypherqueriescommandoutput.html) + +
+
+ +ManagePropertygraphStatistics + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/managepropertygraphstatisticscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/managepropertygraphstatisticscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/managepropertygraphstatisticscommandoutput.html) + +
+
+ +ManageSparqlStatistics + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/managesparqlstatisticscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/managesparqlstatisticscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/managesparqlstatisticscommandoutput.html) + +
+
+ +StartLoaderJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/startloaderjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startloaderjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startloaderjobcommandoutput.html) + +
+
+ +StartMLDataProcessingJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/startmldataprocessingjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startmldataprocessingjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startmldataprocessingjobcommandoutput.html) + +
+
+ +StartMLModelTrainingJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/startmlmodeltrainingjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startmlmodeltrainingjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startmlmodeltrainingjobcommandoutput.html) + +
+
+ +StartMLModelTransformJob + + +[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/classes/startmlmodeltransformjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startmlmodeltransformjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-neptunedata/interfaces/startmlmodeltransformjobcommandoutput.html) + +
diff --git a/clients/client-neptunedata/api-extractor.json b/clients/client-neptunedata/api-extractor.json new file mode 100644 index 0000000000000..d5bf5ffeee851 --- /dev/null +++ b/clients/client-neptunedata/api-extractor.json @@ -0,0 +1,4 @@ +{ + "extends": "../../api-extractor.json", + "mainEntryPointFilePath": "/dist-types/index.d.ts" +} diff --git a/clients/client-neptunedata/package.json b/clients/client-neptunedata/package.json new file mode 100644 index 0000000000000..56ed2c16b94a1 --- /dev/null +++ b/clients/client-neptunedata/package.json @@ -0,0 +1,100 @@ +{ + "name": "@aws-sdk/client-neptunedata", + "description": "AWS SDK for JavaScript Neptunedata Client for Node.js, Browser and React Native", + "version": "3.0.0", + "scripts": { + "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", + "build:cjs": "tsc -p tsconfig.cjs.json", + "build:docs": "typedoc", + "build:es": "tsc -p tsconfig.es.json", + "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", + "build:types": "tsc -p tsconfig.types.json", + "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", + "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", + "extract:docs": "api-extractor run --local", + "generate:client": "node ../../scripts/generate-clients/single-service --solo neptunedata" + }, + "main": "./dist-cjs/index.js", + "types": "./dist-types/index.d.ts", + "module": "./dist-es/index.js", + "sideEffects": false, + "dependencies": { + "@aws-crypto/sha256-browser": "3.0.0", + "@aws-crypto/sha256-js": "3.0.0", + "@aws-sdk/client-sts": "*", + "@aws-sdk/credential-provider-node": "*", + "@aws-sdk/middleware-host-header": "*", + "@aws-sdk/middleware-logger": "*", + "@aws-sdk/middleware-recursion-detection": "*", + "@aws-sdk/middleware-signing": "*", + "@aws-sdk/middleware-user-agent": "*", + "@aws-sdk/types": "*", + "@aws-sdk/util-endpoints": "*", + "@aws-sdk/util-user-agent-browser": "*", + "@aws-sdk/util-user-agent-node": "*", + "@smithy/config-resolver": "^2.0.5", + "@smithy/fetch-http-handler": "^2.0.5", + "@smithy/hash-node": "^2.0.5", + "@smithy/invalid-dependency": "^2.0.5", + "@smithy/middleware-content-length": "^2.0.5", + "@smithy/middleware-endpoint": "^2.0.5", + "@smithy/middleware-retry": "^2.0.5", + "@smithy/middleware-serde": "^2.0.5", + "@smithy/middleware-stack": "^2.0.0", + "@smithy/node-config-provider": "^2.0.5", + "@smithy/node-http-handler": "^2.0.5", + "@smithy/protocol-http": "^2.0.5", + "@smithy/smithy-client": "^2.0.5", + "@smithy/types": "^2.2.2", + "@smithy/url-parser": "^2.0.5", + "@smithy/util-base64": "^2.0.0", + "@smithy/util-body-length-browser": "^2.0.0", + "@smithy/util-body-length-node": "^2.1.0", + "@smithy/util-defaults-mode-browser": "^2.0.5", + "@smithy/util-defaults-mode-node": "^2.0.5", + "@smithy/util-retry": "^2.0.0", + "@smithy/util-stream": "^2.0.5", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.5.0" + }, + "devDependencies": { + "@smithy/service-client-documentation-generator": "^2.0.0", + "@tsconfig/node14": "1.0.3", + "@types/node": "^14.14.31", + "concurrently": "7.0.0", + "downlevel-dts": "0.10.1", + "rimraf": "3.0.2", + "typedoc": "0.23.23", + "typescript": "~4.9.5" + }, + "engines": { + "node": ">=14.0.0" + }, + "typesVersions": { + "<4.0": { + "dist-types/*": [ + "dist-types/ts3.4/*" + ] + } + }, + "files": [ + "dist-*/**" + ], + "author": { + "name": "AWS SDK for JavaScript Team", + "url": "https://aws.amazon.com/javascript/" + }, + "license": "Apache-2.0", + "browser": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" + }, + "react-native": { + "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" + }, + "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-neptunedata", + "repository": { + "type": "git", + "url": "https://github.com/aws/aws-sdk-js-v3.git", + "directory": "clients/client-neptunedata" + } +} diff --git a/clients/client-neptunedata/src/Neptunedata.ts b/clients/client-neptunedata/src/Neptunedata.ts new file mode 100644 index 0000000000000..8bef711362660 --- /dev/null +++ b/clients/client-neptunedata/src/Neptunedata.ts @@ -0,0 +1,987 @@ +// smithy-typescript generated code +import { createAggregatedClient } from "@smithy/smithy-client"; +import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; + +import { + CancelGremlinQueryCommand, + CancelGremlinQueryCommandInput, + CancelGremlinQueryCommandOutput, +} from "./commands/CancelGremlinQueryCommand"; +import { + CancelLoaderJobCommand, + CancelLoaderJobCommandInput, + CancelLoaderJobCommandOutput, +} from "./commands/CancelLoaderJobCommand"; +import { + CancelMLDataProcessingJobCommand, + CancelMLDataProcessingJobCommandInput, + CancelMLDataProcessingJobCommandOutput, +} from "./commands/CancelMLDataProcessingJobCommand"; +import { + CancelMLModelTrainingJobCommand, + CancelMLModelTrainingJobCommandInput, + CancelMLModelTrainingJobCommandOutput, +} from "./commands/CancelMLModelTrainingJobCommand"; +import { + CancelMLModelTransformJobCommand, + CancelMLModelTransformJobCommandInput, + CancelMLModelTransformJobCommandOutput, +} from "./commands/CancelMLModelTransformJobCommand"; +import { + CancelOpenCypherQueryCommand, + CancelOpenCypherQueryCommandInput, + CancelOpenCypherQueryCommandOutput, +} from "./commands/CancelOpenCypherQueryCommand"; +import { + CreateMLEndpointCommand, + CreateMLEndpointCommandInput, + CreateMLEndpointCommandOutput, +} from "./commands/CreateMLEndpointCommand"; +import { + DeleteMLEndpointCommand, + DeleteMLEndpointCommandInput, + DeleteMLEndpointCommandOutput, +} from "./commands/DeleteMLEndpointCommand"; +import { + DeletePropertygraphStatisticsCommand, + DeletePropertygraphStatisticsCommandInput, + DeletePropertygraphStatisticsCommandOutput, +} from "./commands/DeletePropertygraphStatisticsCommand"; +import { + DeleteSparqlStatisticsCommand, + DeleteSparqlStatisticsCommandInput, + DeleteSparqlStatisticsCommandOutput, +} from "./commands/DeleteSparqlStatisticsCommand"; +import { + ExecuteFastResetCommand, + ExecuteFastResetCommandInput, + ExecuteFastResetCommandOutput, +} from "./commands/ExecuteFastResetCommand"; +import { + ExecuteGremlinExplainQueryCommand, + ExecuteGremlinExplainQueryCommandInput, + ExecuteGremlinExplainQueryCommandOutput, +} from "./commands/ExecuteGremlinExplainQueryCommand"; +import { + ExecuteGremlinProfileQueryCommand, + ExecuteGremlinProfileQueryCommandInput, + ExecuteGremlinProfileQueryCommandOutput, +} from "./commands/ExecuteGremlinProfileQueryCommand"; +import { + ExecuteGremlinQueryCommand, + ExecuteGremlinQueryCommandInput, + ExecuteGremlinQueryCommandOutput, +} from "./commands/ExecuteGremlinQueryCommand"; +import { + ExecuteOpenCypherExplainQueryCommand, + ExecuteOpenCypherExplainQueryCommandInput, + ExecuteOpenCypherExplainQueryCommandOutput, +} from "./commands/ExecuteOpenCypherExplainQueryCommand"; +import { + ExecuteOpenCypherQueryCommand, + ExecuteOpenCypherQueryCommandInput, + ExecuteOpenCypherQueryCommandOutput, +} from "./commands/ExecuteOpenCypherQueryCommand"; +import { + GetEngineStatusCommand, + GetEngineStatusCommandInput, + GetEngineStatusCommandOutput, +} from "./commands/GetEngineStatusCommand"; +import { + GetGremlinQueryStatusCommand, + GetGremlinQueryStatusCommandInput, + GetGremlinQueryStatusCommandOutput, +} from "./commands/GetGremlinQueryStatusCommand"; +import { + GetLoaderJobStatusCommand, + GetLoaderJobStatusCommandInput, + GetLoaderJobStatusCommandOutput, +} from "./commands/GetLoaderJobStatusCommand"; +import { + GetMLDataProcessingJobCommand, + GetMLDataProcessingJobCommandInput, + GetMLDataProcessingJobCommandOutput, +} from "./commands/GetMLDataProcessingJobCommand"; +import { + GetMLEndpointCommand, + GetMLEndpointCommandInput, + GetMLEndpointCommandOutput, +} from "./commands/GetMLEndpointCommand"; +import { + GetMLModelTrainingJobCommand, + GetMLModelTrainingJobCommandInput, + GetMLModelTrainingJobCommandOutput, +} from "./commands/GetMLModelTrainingJobCommand"; +import { + GetMLModelTransformJobCommand, + GetMLModelTransformJobCommandInput, + GetMLModelTransformJobCommandOutput, +} from "./commands/GetMLModelTransformJobCommand"; +import { + GetOpenCypherQueryStatusCommand, + GetOpenCypherQueryStatusCommandInput, + GetOpenCypherQueryStatusCommandOutput, +} from "./commands/GetOpenCypherQueryStatusCommand"; +import { + GetPropertygraphStatisticsCommand, + GetPropertygraphStatisticsCommandInput, + GetPropertygraphStatisticsCommandOutput, +} from "./commands/GetPropertygraphStatisticsCommand"; +import { + GetPropertygraphStreamCommand, + GetPropertygraphStreamCommandInput, + GetPropertygraphStreamCommandOutput, +} from "./commands/GetPropertygraphStreamCommand"; +import { + GetPropertygraphSummaryCommand, + GetPropertygraphSummaryCommandInput, + GetPropertygraphSummaryCommandOutput, +} from "./commands/GetPropertygraphSummaryCommand"; +import { + GetRDFGraphSummaryCommand, + GetRDFGraphSummaryCommandInput, + GetRDFGraphSummaryCommandOutput, +} from "./commands/GetRDFGraphSummaryCommand"; +import { + GetSparqlStatisticsCommand, + GetSparqlStatisticsCommandInput, + GetSparqlStatisticsCommandOutput, +} from "./commands/GetSparqlStatisticsCommand"; +import { + GetSparqlStreamCommand, + GetSparqlStreamCommandInput, + GetSparqlStreamCommandOutput, +} from "./commands/GetSparqlStreamCommand"; +import { + ListGremlinQueriesCommand, + ListGremlinQueriesCommandInput, + ListGremlinQueriesCommandOutput, +} from "./commands/ListGremlinQueriesCommand"; +import { + ListLoaderJobsCommand, + ListLoaderJobsCommandInput, + ListLoaderJobsCommandOutput, +} from "./commands/ListLoaderJobsCommand"; +import { + ListMLDataProcessingJobsCommand, + ListMLDataProcessingJobsCommandInput, + ListMLDataProcessingJobsCommandOutput, +} from "./commands/ListMLDataProcessingJobsCommand"; +import { + ListMLEndpointsCommand, + ListMLEndpointsCommandInput, + ListMLEndpointsCommandOutput, +} from "./commands/ListMLEndpointsCommand"; +import { + ListMLModelTrainingJobsCommand, + ListMLModelTrainingJobsCommandInput, + ListMLModelTrainingJobsCommandOutput, +} from "./commands/ListMLModelTrainingJobsCommand"; +import { + ListMLModelTransformJobsCommand, + ListMLModelTransformJobsCommandInput, + ListMLModelTransformJobsCommandOutput, +} from "./commands/ListMLModelTransformJobsCommand"; +import { + ListOpenCypherQueriesCommand, + ListOpenCypherQueriesCommandInput, + ListOpenCypherQueriesCommandOutput, +} from "./commands/ListOpenCypherQueriesCommand"; +import { + ManagePropertygraphStatisticsCommand, + ManagePropertygraphStatisticsCommandInput, + ManagePropertygraphStatisticsCommandOutput, +} from "./commands/ManagePropertygraphStatisticsCommand"; +import { + ManageSparqlStatisticsCommand, + ManageSparqlStatisticsCommandInput, + ManageSparqlStatisticsCommandOutput, +} from "./commands/ManageSparqlStatisticsCommand"; +import { + StartLoaderJobCommand, + StartLoaderJobCommandInput, + StartLoaderJobCommandOutput, +} from "./commands/StartLoaderJobCommand"; +import { + StartMLDataProcessingJobCommand, + StartMLDataProcessingJobCommandInput, + StartMLDataProcessingJobCommandOutput, +} from "./commands/StartMLDataProcessingJobCommand"; +import { + StartMLModelTrainingJobCommand, + StartMLModelTrainingJobCommandInput, + StartMLModelTrainingJobCommandOutput, +} from "./commands/StartMLModelTrainingJobCommand"; +import { + StartMLModelTransformJobCommand, + StartMLModelTransformJobCommandInput, + StartMLModelTransformJobCommandOutput, +} from "./commands/StartMLModelTransformJobCommand"; +import { NeptunedataClient, NeptunedataClientConfig } from "./NeptunedataClient"; + +const commands = { + CancelGremlinQueryCommand, + CancelLoaderJobCommand, + CancelMLDataProcessingJobCommand, + CancelMLModelTrainingJobCommand, + CancelMLModelTransformJobCommand, + CancelOpenCypherQueryCommand, + CreateMLEndpointCommand, + DeleteMLEndpointCommand, + DeletePropertygraphStatisticsCommand, + DeleteSparqlStatisticsCommand, + ExecuteFastResetCommand, + ExecuteGremlinExplainQueryCommand, + ExecuteGremlinProfileQueryCommand, + ExecuteGremlinQueryCommand, + ExecuteOpenCypherExplainQueryCommand, + ExecuteOpenCypherQueryCommand, + GetEngineStatusCommand, + GetGremlinQueryStatusCommand, + GetLoaderJobStatusCommand, + GetMLDataProcessingJobCommand, + GetMLEndpointCommand, + GetMLModelTrainingJobCommand, + GetMLModelTransformJobCommand, + GetOpenCypherQueryStatusCommand, + GetPropertygraphStatisticsCommand, + GetPropertygraphStreamCommand, + GetPropertygraphSummaryCommand, + GetRDFGraphSummaryCommand, + GetSparqlStatisticsCommand, + GetSparqlStreamCommand, + ListGremlinQueriesCommand, + ListLoaderJobsCommand, + ListMLDataProcessingJobsCommand, + ListMLEndpointsCommand, + ListMLModelTrainingJobsCommand, + ListMLModelTransformJobsCommand, + ListOpenCypherQueriesCommand, + ManagePropertygraphStatisticsCommand, + ManageSparqlStatisticsCommand, + StartLoaderJobCommand, + StartMLDataProcessingJobCommand, + StartMLModelTrainingJobCommand, + StartMLModelTransformJobCommand, +}; + +export interface Neptunedata { + /** + * @see {@link CancelGremlinQueryCommand} + */ + cancelGremlinQuery( + args: CancelGremlinQueryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + cancelGremlinQuery( + args: CancelGremlinQueryCommandInput, + cb: (err: any, data?: CancelGremlinQueryCommandOutput) => void + ): void; + cancelGremlinQuery( + args: CancelGremlinQueryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelGremlinQueryCommandOutput) => void + ): void; + + /** + * @see {@link CancelLoaderJobCommand} + */ + cancelLoaderJob( + args: CancelLoaderJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + cancelLoaderJob(args: CancelLoaderJobCommandInput, cb: (err: any, data?: CancelLoaderJobCommandOutput) => void): void; + cancelLoaderJob( + args: CancelLoaderJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelLoaderJobCommandOutput) => void + ): void; + + /** + * @see {@link CancelMLDataProcessingJobCommand} + */ + cancelMLDataProcessingJob( + args: CancelMLDataProcessingJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + cancelMLDataProcessingJob( + args: CancelMLDataProcessingJobCommandInput, + cb: (err: any, data?: CancelMLDataProcessingJobCommandOutput) => void + ): void; + cancelMLDataProcessingJob( + args: CancelMLDataProcessingJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelMLDataProcessingJobCommandOutput) => void + ): void; + + /** + * @see {@link CancelMLModelTrainingJobCommand} + */ + cancelMLModelTrainingJob( + args: CancelMLModelTrainingJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + cancelMLModelTrainingJob( + args: CancelMLModelTrainingJobCommandInput, + cb: (err: any, data?: CancelMLModelTrainingJobCommandOutput) => void + ): void; + cancelMLModelTrainingJob( + args: CancelMLModelTrainingJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelMLModelTrainingJobCommandOutput) => void + ): void; + + /** + * @see {@link CancelMLModelTransformJobCommand} + */ + cancelMLModelTransformJob( + args: CancelMLModelTransformJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + cancelMLModelTransformJob( + args: CancelMLModelTransformJobCommandInput, + cb: (err: any, data?: CancelMLModelTransformJobCommandOutput) => void + ): void; + cancelMLModelTransformJob( + args: CancelMLModelTransformJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelMLModelTransformJobCommandOutput) => void + ): void; + + /** + * @see {@link CancelOpenCypherQueryCommand} + */ + cancelOpenCypherQuery( + args: CancelOpenCypherQueryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + cancelOpenCypherQuery( + args: CancelOpenCypherQueryCommandInput, + cb: (err: any, data?: CancelOpenCypherQueryCommandOutput) => void + ): void; + cancelOpenCypherQuery( + args: CancelOpenCypherQueryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CancelOpenCypherQueryCommandOutput) => void + ): void; + + /** + * @see {@link CreateMLEndpointCommand} + */ + createMLEndpoint( + args: CreateMLEndpointCommandInput, + options?: __HttpHandlerOptions + ): Promise; + createMLEndpoint( + args: CreateMLEndpointCommandInput, + cb: (err: any, data?: CreateMLEndpointCommandOutput) => void + ): void; + createMLEndpoint( + args: CreateMLEndpointCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: CreateMLEndpointCommandOutput) => void + ): void; + + /** + * @see {@link DeleteMLEndpointCommand} + */ + deleteMLEndpoint( + args: DeleteMLEndpointCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteMLEndpoint( + args: DeleteMLEndpointCommandInput, + cb: (err: any, data?: DeleteMLEndpointCommandOutput) => void + ): void; + deleteMLEndpoint( + args: DeleteMLEndpointCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteMLEndpointCommandOutput) => void + ): void; + + /** + * @see {@link DeletePropertygraphStatisticsCommand} + */ + deletePropertygraphStatistics( + args: DeletePropertygraphStatisticsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deletePropertygraphStatistics( + args: DeletePropertygraphStatisticsCommandInput, + cb: (err: any, data?: DeletePropertygraphStatisticsCommandOutput) => void + ): void; + deletePropertygraphStatistics( + args: DeletePropertygraphStatisticsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeletePropertygraphStatisticsCommandOutput) => void + ): void; + + /** + * @see {@link DeleteSparqlStatisticsCommand} + */ + deleteSparqlStatistics( + args: DeleteSparqlStatisticsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + deleteSparqlStatistics( + args: DeleteSparqlStatisticsCommandInput, + cb: (err: any, data?: DeleteSparqlStatisticsCommandOutput) => void + ): void; + deleteSparqlStatistics( + args: DeleteSparqlStatisticsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: DeleteSparqlStatisticsCommandOutput) => void + ): void; + + /** + * @see {@link ExecuteFastResetCommand} + */ + executeFastReset( + args: ExecuteFastResetCommandInput, + options?: __HttpHandlerOptions + ): Promise; + executeFastReset( + args: ExecuteFastResetCommandInput, + cb: (err: any, data?: ExecuteFastResetCommandOutput) => void + ): void; + executeFastReset( + args: ExecuteFastResetCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ExecuteFastResetCommandOutput) => void + ): void; + + /** + * @see {@link ExecuteGremlinExplainQueryCommand} + */ + executeGremlinExplainQuery( + args: ExecuteGremlinExplainQueryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + executeGremlinExplainQuery( + args: ExecuteGremlinExplainQueryCommandInput, + cb: (err: any, data?: ExecuteGremlinExplainQueryCommandOutput) => void + ): void; + executeGremlinExplainQuery( + args: ExecuteGremlinExplainQueryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ExecuteGremlinExplainQueryCommandOutput) => void + ): void; + + /** + * @see {@link ExecuteGremlinProfileQueryCommand} + */ + executeGremlinProfileQuery( + args: ExecuteGremlinProfileQueryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + executeGremlinProfileQuery( + args: ExecuteGremlinProfileQueryCommandInput, + cb: (err: any, data?: ExecuteGremlinProfileQueryCommandOutput) => void + ): void; + executeGremlinProfileQuery( + args: ExecuteGremlinProfileQueryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ExecuteGremlinProfileQueryCommandOutput) => void + ): void; + + /** + * @see {@link ExecuteGremlinQueryCommand} + */ + executeGremlinQuery( + args: ExecuteGremlinQueryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + executeGremlinQuery( + args: ExecuteGremlinQueryCommandInput, + cb: (err: any, data?: ExecuteGremlinQueryCommandOutput) => void + ): void; + executeGremlinQuery( + args: ExecuteGremlinQueryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ExecuteGremlinQueryCommandOutput) => void + ): void; + + /** + * @see {@link ExecuteOpenCypherExplainQueryCommand} + */ + executeOpenCypherExplainQuery( + args: ExecuteOpenCypherExplainQueryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + executeOpenCypherExplainQuery( + args: ExecuteOpenCypherExplainQueryCommandInput, + cb: (err: any, data?: ExecuteOpenCypherExplainQueryCommandOutput) => void + ): void; + executeOpenCypherExplainQuery( + args: ExecuteOpenCypherExplainQueryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ExecuteOpenCypherExplainQueryCommandOutput) => void + ): void; + + /** + * @see {@link ExecuteOpenCypherQueryCommand} + */ + executeOpenCypherQuery( + args: ExecuteOpenCypherQueryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + executeOpenCypherQuery( + args: ExecuteOpenCypherQueryCommandInput, + cb: (err: any, data?: ExecuteOpenCypherQueryCommandOutput) => void + ): void; + executeOpenCypherQuery( + args: ExecuteOpenCypherQueryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ExecuteOpenCypherQueryCommandOutput) => void + ): void; + + /** + * @see {@link GetEngineStatusCommand} + */ + getEngineStatus( + args: GetEngineStatusCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getEngineStatus(args: GetEngineStatusCommandInput, cb: (err: any, data?: GetEngineStatusCommandOutput) => void): void; + getEngineStatus( + args: GetEngineStatusCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetEngineStatusCommandOutput) => void + ): void; + + /** + * @see {@link GetGremlinQueryStatusCommand} + */ + getGremlinQueryStatus( + args: GetGremlinQueryStatusCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getGremlinQueryStatus( + args: GetGremlinQueryStatusCommandInput, + cb: (err: any, data?: GetGremlinQueryStatusCommandOutput) => void + ): void; + getGremlinQueryStatus( + args: GetGremlinQueryStatusCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetGremlinQueryStatusCommandOutput) => void + ): void; + + /** + * @see {@link GetLoaderJobStatusCommand} + */ + getLoaderJobStatus( + args: GetLoaderJobStatusCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getLoaderJobStatus( + args: GetLoaderJobStatusCommandInput, + cb: (err: any, data?: GetLoaderJobStatusCommandOutput) => void + ): void; + getLoaderJobStatus( + args: GetLoaderJobStatusCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetLoaderJobStatusCommandOutput) => void + ): void; + + /** + * @see {@link GetMLDataProcessingJobCommand} + */ + getMLDataProcessingJob( + args: GetMLDataProcessingJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getMLDataProcessingJob( + args: GetMLDataProcessingJobCommandInput, + cb: (err: any, data?: GetMLDataProcessingJobCommandOutput) => void + ): void; + getMLDataProcessingJob( + args: GetMLDataProcessingJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetMLDataProcessingJobCommandOutput) => void + ): void; + + /** + * @see {@link GetMLEndpointCommand} + */ + getMLEndpoint(args: GetMLEndpointCommandInput, options?: __HttpHandlerOptions): Promise; + getMLEndpoint(args: GetMLEndpointCommandInput, cb: (err: any, data?: GetMLEndpointCommandOutput) => void): void; + getMLEndpoint( + args: GetMLEndpointCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetMLEndpointCommandOutput) => void + ): void; + + /** + * @see {@link GetMLModelTrainingJobCommand} + */ + getMLModelTrainingJob( + args: GetMLModelTrainingJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getMLModelTrainingJob( + args: GetMLModelTrainingJobCommandInput, + cb: (err: any, data?: GetMLModelTrainingJobCommandOutput) => void + ): void; + getMLModelTrainingJob( + args: GetMLModelTrainingJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetMLModelTrainingJobCommandOutput) => void + ): void; + + /** + * @see {@link GetMLModelTransformJobCommand} + */ + getMLModelTransformJob( + args: GetMLModelTransformJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getMLModelTransformJob( + args: GetMLModelTransformJobCommandInput, + cb: (err: any, data?: GetMLModelTransformJobCommandOutput) => void + ): void; + getMLModelTransformJob( + args: GetMLModelTransformJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetMLModelTransformJobCommandOutput) => void + ): void; + + /** + * @see {@link GetOpenCypherQueryStatusCommand} + */ + getOpenCypherQueryStatus( + args: GetOpenCypherQueryStatusCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getOpenCypherQueryStatus( + args: GetOpenCypherQueryStatusCommandInput, + cb: (err: any, data?: GetOpenCypherQueryStatusCommandOutput) => void + ): void; + getOpenCypherQueryStatus( + args: GetOpenCypherQueryStatusCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetOpenCypherQueryStatusCommandOutput) => void + ): void; + + /** + * @see {@link GetPropertygraphStatisticsCommand} + */ + getPropertygraphStatistics( + args: GetPropertygraphStatisticsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getPropertygraphStatistics( + args: GetPropertygraphStatisticsCommandInput, + cb: (err: any, data?: GetPropertygraphStatisticsCommandOutput) => void + ): void; + getPropertygraphStatistics( + args: GetPropertygraphStatisticsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetPropertygraphStatisticsCommandOutput) => void + ): void; + + /** + * @see {@link GetPropertygraphStreamCommand} + */ + getPropertygraphStream( + args: GetPropertygraphStreamCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getPropertygraphStream( + args: GetPropertygraphStreamCommandInput, + cb: (err: any, data?: GetPropertygraphStreamCommandOutput) => void + ): void; + getPropertygraphStream( + args: GetPropertygraphStreamCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetPropertygraphStreamCommandOutput) => void + ): void; + + /** + * @see {@link GetPropertygraphSummaryCommand} + */ + getPropertygraphSummary( + args: GetPropertygraphSummaryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getPropertygraphSummary( + args: GetPropertygraphSummaryCommandInput, + cb: (err: any, data?: GetPropertygraphSummaryCommandOutput) => void + ): void; + getPropertygraphSummary( + args: GetPropertygraphSummaryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetPropertygraphSummaryCommandOutput) => void + ): void; + + /** + * @see {@link GetRDFGraphSummaryCommand} + */ + getRDFGraphSummary( + args: GetRDFGraphSummaryCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getRDFGraphSummary( + args: GetRDFGraphSummaryCommandInput, + cb: (err: any, data?: GetRDFGraphSummaryCommandOutput) => void + ): void; + getRDFGraphSummary( + args: GetRDFGraphSummaryCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetRDFGraphSummaryCommandOutput) => void + ): void; + + /** + * @see {@link GetSparqlStatisticsCommand} + */ + getSparqlStatistics( + args: GetSparqlStatisticsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getSparqlStatistics( + args: GetSparqlStatisticsCommandInput, + cb: (err: any, data?: GetSparqlStatisticsCommandOutput) => void + ): void; + getSparqlStatistics( + args: GetSparqlStatisticsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetSparqlStatisticsCommandOutput) => void + ): void; + + /** + * @see {@link GetSparqlStreamCommand} + */ + getSparqlStream( + args: GetSparqlStreamCommandInput, + options?: __HttpHandlerOptions + ): Promise; + getSparqlStream(args: GetSparqlStreamCommandInput, cb: (err: any, data?: GetSparqlStreamCommandOutput) => void): void; + getSparqlStream( + args: GetSparqlStreamCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: GetSparqlStreamCommandOutput) => void + ): void; + + /** + * @see {@link ListGremlinQueriesCommand} + */ + listGremlinQueries( + args: ListGremlinQueriesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listGremlinQueries( + args: ListGremlinQueriesCommandInput, + cb: (err: any, data?: ListGremlinQueriesCommandOutput) => void + ): void; + listGremlinQueries( + args: ListGremlinQueriesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListGremlinQueriesCommandOutput) => void + ): void; + + /** + * @see {@link ListLoaderJobsCommand} + */ + listLoaderJobs( + args: ListLoaderJobsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listLoaderJobs(args: ListLoaderJobsCommandInput, cb: (err: any, data?: ListLoaderJobsCommandOutput) => void): void; + listLoaderJobs( + args: ListLoaderJobsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListLoaderJobsCommandOutput) => void + ): void; + + /** + * @see {@link ListMLDataProcessingJobsCommand} + */ + listMLDataProcessingJobs( + args: ListMLDataProcessingJobsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listMLDataProcessingJobs( + args: ListMLDataProcessingJobsCommandInput, + cb: (err: any, data?: ListMLDataProcessingJobsCommandOutput) => void + ): void; + listMLDataProcessingJobs( + args: ListMLDataProcessingJobsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListMLDataProcessingJobsCommandOutput) => void + ): void; + + /** + * @see {@link ListMLEndpointsCommand} + */ + listMLEndpoints( + args: ListMLEndpointsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listMLEndpoints(args: ListMLEndpointsCommandInput, cb: (err: any, data?: ListMLEndpointsCommandOutput) => void): void; + listMLEndpoints( + args: ListMLEndpointsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListMLEndpointsCommandOutput) => void + ): void; + + /** + * @see {@link ListMLModelTrainingJobsCommand} + */ + listMLModelTrainingJobs( + args: ListMLModelTrainingJobsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listMLModelTrainingJobs( + args: ListMLModelTrainingJobsCommandInput, + cb: (err: any, data?: ListMLModelTrainingJobsCommandOutput) => void + ): void; + listMLModelTrainingJobs( + args: ListMLModelTrainingJobsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListMLModelTrainingJobsCommandOutput) => void + ): void; + + /** + * @see {@link ListMLModelTransformJobsCommand} + */ + listMLModelTransformJobs( + args: ListMLModelTransformJobsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listMLModelTransformJobs( + args: ListMLModelTransformJobsCommandInput, + cb: (err: any, data?: ListMLModelTransformJobsCommandOutput) => void + ): void; + listMLModelTransformJobs( + args: ListMLModelTransformJobsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListMLModelTransformJobsCommandOutput) => void + ): void; + + /** + * @see {@link ListOpenCypherQueriesCommand} + */ + listOpenCypherQueries( + args: ListOpenCypherQueriesCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listOpenCypherQueries( + args: ListOpenCypherQueriesCommandInput, + cb: (err: any, data?: ListOpenCypherQueriesCommandOutput) => void + ): void; + listOpenCypherQueries( + args: ListOpenCypherQueriesCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListOpenCypherQueriesCommandOutput) => void + ): void; + + /** + * @see {@link ManagePropertygraphStatisticsCommand} + */ + managePropertygraphStatistics( + args: ManagePropertygraphStatisticsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + managePropertygraphStatistics( + args: ManagePropertygraphStatisticsCommandInput, + cb: (err: any, data?: ManagePropertygraphStatisticsCommandOutput) => void + ): void; + managePropertygraphStatistics( + args: ManagePropertygraphStatisticsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ManagePropertygraphStatisticsCommandOutput) => void + ): void; + + /** + * @see {@link ManageSparqlStatisticsCommand} + */ + manageSparqlStatistics( + args: ManageSparqlStatisticsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + manageSparqlStatistics( + args: ManageSparqlStatisticsCommandInput, + cb: (err: any, data?: ManageSparqlStatisticsCommandOutput) => void + ): void; + manageSparqlStatistics( + args: ManageSparqlStatisticsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ManageSparqlStatisticsCommandOutput) => void + ): void; + + /** + * @see {@link StartLoaderJobCommand} + */ + startLoaderJob( + args: StartLoaderJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + startLoaderJob(args: StartLoaderJobCommandInput, cb: (err: any, data?: StartLoaderJobCommandOutput) => void): void; + startLoaderJob( + args: StartLoaderJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: StartLoaderJobCommandOutput) => void + ): void; + + /** + * @see {@link StartMLDataProcessingJobCommand} + */ + startMLDataProcessingJob( + args: StartMLDataProcessingJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + startMLDataProcessingJob( + args: StartMLDataProcessingJobCommandInput, + cb: (err: any, data?: StartMLDataProcessingJobCommandOutput) => void + ): void; + startMLDataProcessingJob( + args: StartMLDataProcessingJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: StartMLDataProcessingJobCommandOutput) => void + ): void; + + /** + * @see {@link StartMLModelTrainingJobCommand} + */ + startMLModelTrainingJob( + args: StartMLModelTrainingJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + startMLModelTrainingJob( + args: StartMLModelTrainingJobCommandInput, + cb: (err: any, data?: StartMLModelTrainingJobCommandOutput) => void + ): void; + startMLModelTrainingJob( + args: StartMLModelTrainingJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: StartMLModelTrainingJobCommandOutput) => void + ): void; + + /** + * @see {@link StartMLModelTransformJobCommand} + */ + startMLModelTransformJob( + args: StartMLModelTransformJobCommandInput, + options?: __HttpHandlerOptions + ): Promise; + startMLModelTransformJob( + args: StartMLModelTransformJobCommandInput, + cb: (err: any, data?: StartMLModelTransformJobCommandOutput) => void + ): void; + startMLModelTransformJob( + args: StartMLModelTransformJobCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: StartMLModelTransformJobCommandOutput) => void + ): void; +} + +/** + * @public + * Neptune Data API + *

The Amazon Neptune data API provides SDK support for more than 40 of Neptune's data + * operations, including data loading, query execution, data inquiry, and machine learning. + * It supports all three Neptune query languages (Gremlin, openCypher and SPARQL), and is + * available in all SDK languages. It automatically signs API requests and greatly simplifies + * integrating Neptune into your applications.

+ */ +export class Neptunedata extends NeptunedataClient implements Neptunedata {} +createAggregatedClient(commands, Neptunedata); diff --git a/clients/client-neptunedata/src/NeptunedataClient.ts b/clients/client-neptunedata/src/NeptunedataClient.ts new file mode 100644 index 0000000000000..822882c2c8656 --- /dev/null +++ b/clients/client-neptunedata/src/NeptunedataClient.ts @@ -0,0 +1,507 @@ +// smithy-typescript generated code +import { + getHostHeaderPlugin, + HostHeaderInputConfig, + HostHeaderResolvedConfig, + resolveHostHeaderConfig, +} from "@aws-sdk/middleware-host-header"; +import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; +import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; +import { + AwsAuthInputConfig, + AwsAuthResolvedConfig, + getAwsAuthPlugin, + resolveAwsAuthConfig, +} from "@aws-sdk/middleware-signing"; +import { + getUserAgentPlugin, + resolveUserAgentConfig, + UserAgentInputConfig, + UserAgentResolvedConfig, +} from "@aws-sdk/middleware-user-agent"; +import { Credentials as __Credentials } from "@aws-sdk/types"; +import { RegionInputConfig, RegionResolvedConfig, resolveRegionConfig } from "@smithy/config-resolver"; +import { getContentLengthPlugin } from "@smithy/middleware-content-length"; +import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@smithy/middleware-endpoint"; +import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"; +import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; +import { + Client as __Client, + DefaultsMode as __DefaultsMode, + SmithyConfiguration as __SmithyConfiguration, + SmithyResolvedConfiguration as __SmithyResolvedConfiguration, +} from "@smithy/smithy-client"; +import { + BodyLengthCalculator as __BodyLengthCalculator, + CheckOptionalClientConfig as __CheckOptionalClientConfig, + Checksum as __Checksum, + ChecksumConstructor as __ChecksumConstructor, + Decoder as __Decoder, + Encoder as __Encoder, + EndpointV2 as __EndpointV2, + Hash as __Hash, + HashConstructor as __HashConstructor, + HttpHandlerOptions as __HttpHandlerOptions, + Logger as __Logger, + Provider as __Provider, + Provider, + StreamCollector as __StreamCollector, + UrlParser as __UrlParser, + UserAgent as __UserAgent, +} from "@smithy/types"; + +import { CancelGremlinQueryCommandInput, CancelGremlinQueryCommandOutput } from "./commands/CancelGremlinQueryCommand"; +import { CancelLoaderJobCommandInput, CancelLoaderJobCommandOutput } from "./commands/CancelLoaderJobCommand"; +import { + CancelMLDataProcessingJobCommandInput, + CancelMLDataProcessingJobCommandOutput, +} from "./commands/CancelMLDataProcessingJobCommand"; +import { + CancelMLModelTrainingJobCommandInput, + CancelMLModelTrainingJobCommandOutput, +} from "./commands/CancelMLModelTrainingJobCommand"; +import { + CancelMLModelTransformJobCommandInput, + CancelMLModelTransformJobCommandOutput, +} from "./commands/CancelMLModelTransformJobCommand"; +import { + CancelOpenCypherQueryCommandInput, + CancelOpenCypherQueryCommandOutput, +} from "./commands/CancelOpenCypherQueryCommand"; +import { CreateMLEndpointCommandInput, CreateMLEndpointCommandOutput } from "./commands/CreateMLEndpointCommand"; +import { DeleteMLEndpointCommandInput, DeleteMLEndpointCommandOutput } from "./commands/DeleteMLEndpointCommand"; +import { + DeletePropertygraphStatisticsCommandInput, + DeletePropertygraphStatisticsCommandOutput, +} from "./commands/DeletePropertygraphStatisticsCommand"; +import { + DeleteSparqlStatisticsCommandInput, + DeleteSparqlStatisticsCommandOutput, +} from "./commands/DeleteSparqlStatisticsCommand"; +import { ExecuteFastResetCommandInput, ExecuteFastResetCommandOutput } from "./commands/ExecuteFastResetCommand"; +import { + ExecuteGremlinExplainQueryCommandInput, + ExecuteGremlinExplainQueryCommandOutput, +} from "./commands/ExecuteGremlinExplainQueryCommand"; +import { + ExecuteGremlinProfileQueryCommandInput, + ExecuteGremlinProfileQueryCommandOutput, +} from "./commands/ExecuteGremlinProfileQueryCommand"; +import { + ExecuteGremlinQueryCommandInput, + ExecuteGremlinQueryCommandOutput, +} from "./commands/ExecuteGremlinQueryCommand"; +import { + ExecuteOpenCypherExplainQueryCommandInput, + ExecuteOpenCypherExplainQueryCommandOutput, +} from "./commands/ExecuteOpenCypherExplainQueryCommand"; +import { + ExecuteOpenCypherQueryCommandInput, + ExecuteOpenCypherQueryCommandOutput, +} from "./commands/ExecuteOpenCypherQueryCommand"; +import { GetEngineStatusCommandInput, GetEngineStatusCommandOutput } from "./commands/GetEngineStatusCommand"; +import { + GetGremlinQueryStatusCommandInput, + GetGremlinQueryStatusCommandOutput, +} from "./commands/GetGremlinQueryStatusCommand"; +import { GetLoaderJobStatusCommandInput, GetLoaderJobStatusCommandOutput } from "./commands/GetLoaderJobStatusCommand"; +import { + GetMLDataProcessingJobCommandInput, + GetMLDataProcessingJobCommandOutput, +} from "./commands/GetMLDataProcessingJobCommand"; +import { GetMLEndpointCommandInput, GetMLEndpointCommandOutput } from "./commands/GetMLEndpointCommand"; +import { + GetMLModelTrainingJobCommandInput, + GetMLModelTrainingJobCommandOutput, +} from "./commands/GetMLModelTrainingJobCommand"; +import { + GetMLModelTransformJobCommandInput, + GetMLModelTransformJobCommandOutput, +} from "./commands/GetMLModelTransformJobCommand"; +import { + GetOpenCypherQueryStatusCommandInput, + GetOpenCypherQueryStatusCommandOutput, +} from "./commands/GetOpenCypherQueryStatusCommand"; +import { + GetPropertygraphStatisticsCommandInput, + GetPropertygraphStatisticsCommandOutput, +} from "./commands/GetPropertygraphStatisticsCommand"; +import { + GetPropertygraphStreamCommandInput, + GetPropertygraphStreamCommandOutput, +} from "./commands/GetPropertygraphStreamCommand"; +import { + GetPropertygraphSummaryCommandInput, + GetPropertygraphSummaryCommandOutput, +} from "./commands/GetPropertygraphSummaryCommand"; +import { GetRDFGraphSummaryCommandInput, GetRDFGraphSummaryCommandOutput } from "./commands/GetRDFGraphSummaryCommand"; +import { + GetSparqlStatisticsCommandInput, + GetSparqlStatisticsCommandOutput, +} from "./commands/GetSparqlStatisticsCommand"; +import { GetSparqlStreamCommandInput, GetSparqlStreamCommandOutput } from "./commands/GetSparqlStreamCommand"; +import { ListGremlinQueriesCommandInput, ListGremlinQueriesCommandOutput } from "./commands/ListGremlinQueriesCommand"; +import { ListLoaderJobsCommandInput, ListLoaderJobsCommandOutput } from "./commands/ListLoaderJobsCommand"; +import { + ListMLDataProcessingJobsCommandInput, + ListMLDataProcessingJobsCommandOutput, +} from "./commands/ListMLDataProcessingJobsCommand"; +import { ListMLEndpointsCommandInput, ListMLEndpointsCommandOutput } from "./commands/ListMLEndpointsCommand"; +import { + ListMLModelTrainingJobsCommandInput, + ListMLModelTrainingJobsCommandOutput, +} from "./commands/ListMLModelTrainingJobsCommand"; +import { + ListMLModelTransformJobsCommandInput, + ListMLModelTransformJobsCommandOutput, +} from "./commands/ListMLModelTransformJobsCommand"; +import { + ListOpenCypherQueriesCommandInput, + ListOpenCypherQueriesCommandOutput, +} from "./commands/ListOpenCypherQueriesCommand"; +import { + ManagePropertygraphStatisticsCommandInput, + ManagePropertygraphStatisticsCommandOutput, +} from "./commands/ManagePropertygraphStatisticsCommand"; +import { + ManageSparqlStatisticsCommandInput, + ManageSparqlStatisticsCommandOutput, +} from "./commands/ManageSparqlStatisticsCommand"; +import { StartLoaderJobCommandInput, StartLoaderJobCommandOutput } from "./commands/StartLoaderJobCommand"; +import { + StartMLDataProcessingJobCommandInput, + StartMLDataProcessingJobCommandOutput, +} from "./commands/StartMLDataProcessingJobCommand"; +import { + StartMLModelTrainingJobCommandInput, + StartMLModelTrainingJobCommandOutput, +} from "./commands/StartMLModelTrainingJobCommand"; +import { + StartMLModelTransformJobCommandInput, + StartMLModelTransformJobCommandOutput, +} from "./commands/StartMLModelTransformJobCommand"; +import { + ClientInputEndpointParameters, + ClientResolvedEndpointParameters, + EndpointParameters, + resolveClientEndpointParameters, +} from "./endpoint/EndpointParameters"; +import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; +import { resolveRuntimeExtensions, RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; + +export { __Client }; + +/** + * @public + */ +export type ServiceInputTypes = + | CancelGremlinQueryCommandInput + | CancelLoaderJobCommandInput + | CancelMLDataProcessingJobCommandInput + | CancelMLModelTrainingJobCommandInput + | CancelMLModelTransformJobCommandInput + | CancelOpenCypherQueryCommandInput + | CreateMLEndpointCommandInput + | DeleteMLEndpointCommandInput + | DeletePropertygraphStatisticsCommandInput + | DeleteSparqlStatisticsCommandInput + | ExecuteFastResetCommandInput + | ExecuteGremlinExplainQueryCommandInput + | ExecuteGremlinProfileQueryCommandInput + | ExecuteGremlinQueryCommandInput + | ExecuteOpenCypherExplainQueryCommandInput + | ExecuteOpenCypherQueryCommandInput + | GetEngineStatusCommandInput + | GetGremlinQueryStatusCommandInput + | GetLoaderJobStatusCommandInput + | GetMLDataProcessingJobCommandInput + | GetMLEndpointCommandInput + | GetMLModelTrainingJobCommandInput + | GetMLModelTransformJobCommandInput + | GetOpenCypherQueryStatusCommandInput + | GetPropertygraphStatisticsCommandInput + | GetPropertygraphStreamCommandInput + | GetPropertygraphSummaryCommandInput + | GetRDFGraphSummaryCommandInput + | GetSparqlStatisticsCommandInput + | GetSparqlStreamCommandInput + | ListGremlinQueriesCommandInput + | ListLoaderJobsCommandInput + | ListMLDataProcessingJobsCommandInput + | ListMLEndpointsCommandInput + | ListMLModelTrainingJobsCommandInput + | ListMLModelTransformJobsCommandInput + | ListOpenCypherQueriesCommandInput + | ManagePropertygraphStatisticsCommandInput + | ManageSparqlStatisticsCommandInput + | StartLoaderJobCommandInput + | StartMLDataProcessingJobCommandInput + | StartMLModelTrainingJobCommandInput + | StartMLModelTransformJobCommandInput; + +/** + * @public + */ +export type ServiceOutputTypes = + | CancelGremlinQueryCommandOutput + | CancelLoaderJobCommandOutput + | CancelMLDataProcessingJobCommandOutput + | CancelMLModelTrainingJobCommandOutput + | CancelMLModelTransformJobCommandOutput + | CancelOpenCypherQueryCommandOutput + | CreateMLEndpointCommandOutput + | DeleteMLEndpointCommandOutput + | DeletePropertygraphStatisticsCommandOutput + | DeleteSparqlStatisticsCommandOutput + | ExecuteFastResetCommandOutput + | ExecuteGremlinExplainQueryCommandOutput + | ExecuteGremlinProfileQueryCommandOutput + | ExecuteGremlinQueryCommandOutput + | ExecuteOpenCypherExplainQueryCommandOutput + | ExecuteOpenCypherQueryCommandOutput + | GetEngineStatusCommandOutput + | GetGremlinQueryStatusCommandOutput + | GetLoaderJobStatusCommandOutput + | GetMLDataProcessingJobCommandOutput + | GetMLEndpointCommandOutput + | GetMLModelTrainingJobCommandOutput + | GetMLModelTransformJobCommandOutput + | GetOpenCypherQueryStatusCommandOutput + | GetPropertygraphStatisticsCommandOutput + | GetPropertygraphStreamCommandOutput + | GetPropertygraphSummaryCommandOutput + | GetRDFGraphSummaryCommandOutput + | GetSparqlStatisticsCommandOutput + | GetSparqlStreamCommandOutput + | ListGremlinQueriesCommandOutput + | ListLoaderJobsCommandOutput + | ListMLDataProcessingJobsCommandOutput + | ListMLEndpointsCommandOutput + | ListMLModelTrainingJobsCommandOutput + | ListMLModelTransformJobsCommandOutput + | ListOpenCypherQueriesCommandOutput + | ManagePropertygraphStatisticsCommandOutput + | ManageSparqlStatisticsCommandOutput + | StartLoaderJobCommandOutput + | StartMLDataProcessingJobCommandOutput + | StartMLModelTrainingJobCommandOutput + | StartMLModelTransformJobCommandOutput; + +/** + * @public + */ +export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { + /** + * The HTTP handler to use. Fetch in browser and Https in Nodejs. + */ + requestHandler?: __HttpHandler; + + /** + * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface + * that computes the SHA-256 HMAC or checksum of a string or binary buffer. + * @internal + */ + sha256?: __ChecksumConstructor | __HashConstructor; + + /** + * The function that will be used to convert strings into HTTP endpoints. + * @internal + */ + urlParser?: __UrlParser; + + /** + * A function that can calculate the length of a request body. + * @internal + */ + bodyLengthChecker?: __BodyLengthCalculator; + + /** + * A function that converts a stream into an array of bytes. + * @internal + */ + streamCollector?: __StreamCollector; + + /** + * The function that will be used to convert a base64-encoded string to a byte array. + * @internal + */ + base64Decoder?: __Decoder; + + /** + * The function that will be used to convert binary data to a base64-encoded string. + * @internal + */ + base64Encoder?: __Encoder; + + /** + * The function that will be used to convert a UTF8-encoded string to a byte array. + * @internal + */ + utf8Decoder?: __Decoder; + + /** + * The function that will be used to convert binary data to a UTF-8 encoded string. + * @internal + */ + utf8Encoder?: __Encoder; + + /** + * The runtime environment. + * @internal + */ + runtime?: string; + + /** + * Disable dynamically changing the endpoint of the client based on the hostPrefix + * trait of an operation. + */ + disableHostPrefix?: boolean; + + /** + * Unique service identifier. + * @internal + */ + serviceId?: string; + + /** + * Enables IPv6/IPv4 dualstack endpoint. + */ + useDualstackEndpoint?: boolean | __Provider; + + /** + * Enables FIPS compatible endpoints. + */ + useFipsEndpoint?: boolean | __Provider; + + /** + * The AWS region to which this client will send requests + */ + region?: string | __Provider; + + /** + * Default credentials provider; Not available in browser runtime. + * @internal + */ + credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; + + /** + * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header + * @internal + */ + defaultUserAgentProvider?: Provider<__UserAgent>; + + /** + * Value for how many times a request will be made at most in case of retry. + */ + maxAttempts?: number | __Provider; + + /** + * Specifies which retry algorithm to use. + */ + retryMode?: string | __Provider; + + /** + * Optional logger for logging debug/info/warn/error. + */ + logger?: __Logger; + + /** + * Optional extensions + */ + extensions?: RuntimeExtension[]; + + /** + * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK. + */ + defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; +} + +/** + * @public + */ +export type NeptunedataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & + ClientDefaults & + RegionInputConfig & + EndpointInputConfig & + RetryInputConfig & + HostHeaderInputConfig & + AwsAuthInputConfig & + UserAgentInputConfig & + ClientInputEndpointParameters; +/** + * @public + * + * The configuration interface of NeptunedataClient class constructor that set the region, credentials and other options. + */ +export interface NeptunedataClientConfig extends NeptunedataClientConfigType {} + +/** + * @public + */ +export type NeptunedataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & + Required & + RuntimeExtensionsConfig & + RegionResolvedConfig & + EndpointResolvedConfig & + RetryResolvedConfig & + HostHeaderResolvedConfig & + AwsAuthResolvedConfig & + UserAgentResolvedConfig & + ClientResolvedEndpointParameters; +/** + * @public + * + * The resolved configuration interface of NeptunedataClient class. This is resolved and normalized from the {@link NeptunedataClientConfig | constructor configuration interface}. + */ +export interface NeptunedataClientResolvedConfig extends NeptunedataClientResolvedConfigType {} + +/** + * @public + * Neptune Data API + *

The Amazon Neptune data API provides SDK support for more than 40 of Neptune's data + * operations, including data loading, query execution, data inquiry, and machine learning. + * It supports all three Neptune query languages (Gremlin, openCypher and SPARQL), and is + * available in all SDK languages. It automatically signs API requests and greatly simplifies + * integrating Neptune into your applications.

+ */ +export class NeptunedataClient extends __Client< + __HttpHandlerOptions, + ServiceInputTypes, + ServiceOutputTypes, + NeptunedataClientResolvedConfig +> { + /** + * The resolved configuration of NeptunedataClient class. This is resolved and normalized from the {@link NeptunedataClientConfig | constructor configuration interface}. + */ + readonly config: NeptunedataClientResolvedConfig; + + constructor(...[configuration]: __CheckOptionalClientConfig) { + const _config_0 = __getRuntimeConfig(configuration || {}); + const _config_1 = resolveClientEndpointParameters(_config_0); + const _config_2 = resolveRegionConfig(_config_1); + const _config_3 = resolveEndpointConfig(_config_2); + const _config_4 = resolveRetryConfig(_config_3); + const _config_5 = resolveHostHeaderConfig(_config_4); + const _config_6 = resolveAwsAuthConfig(_config_5); + const _config_7 = resolveUserAgentConfig(_config_6); + const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); + super(_config_8); + this.config = _config_8; + this.middlewareStack.use(getRetryPlugin(this.config)); + this.middlewareStack.use(getContentLengthPlugin(this.config)); + this.middlewareStack.use(getHostHeaderPlugin(this.config)); + this.middlewareStack.use(getLoggerPlugin(this.config)); + this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); + this.middlewareStack.use(getAwsAuthPlugin(this.config)); + this.middlewareStack.use(getUserAgentPlugin(this.config)); + } + + /** + * Destroy underlying resources, like sockets. It's usually not necessary to do this. + * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. + * Otherwise, sockets might stay open for quite a long time before the server terminates them. + */ + destroy(): void { + super.destroy(); + } +} diff --git a/clients/client-neptunedata/src/commands/CancelGremlinQueryCommand.ts b/clients/client-neptunedata/src/commands/CancelGremlinQueryCommand.ts new file mode 100644 index 0000000000000..6b89c87851967 --- /dev/null +++ b/clients/client-neptunedata/src/commands/CancelGremlinQueryCommand.ts @@ -0,0 +1,186 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CancelGremlinQueryInput, CancelGremlinQueryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_CancelGremlinQueryCommand, se_CancelGremlinQueryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CancelGremlinQueryCommand}. + */ +export interface CancelGremlinQueryCommandInput extends CancelGremlinQueryInput {} +/** + * @public + * + * The output of {@link CancelGremlinQueryCommand}. + */ +export interface CancelGremlinQueryCommandOutput extends CancelGremlinQueryOutput, __MetadataBearer {} + +/** + * @public + *

Cancels a Gremlin query. See Gremlin + * query cancellation for more information.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, CancelGremlinQueryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, CancelGremlinQueryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // CancelGremlinQueryInput + * queryId: "STRING_VALUE", // required + * }; + * const command = new CancelGremlinQueryCommand(input); + * const response = await client.send(command); + * // { // CancelGremlinQueryOutput + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CancelGremlinQueryCommandInput - {@link CancelGremlinQueryCommandInput} + * @returns {@link CancelGremlinQueryCommandOutput} + * @see {@link CancelGremlinQueryCommandInput} for command's `input` shape. + * @see {@link CancelGremlinQueryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class CancelGremlinQueryCommand extends $Command< + CancelGremlinQueryCommandInput, + CancelGremlinQueryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CancelGremlinQueryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CancelGremlinQueryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "CancelGremlinQueryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CancelGremlinQueryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CancelGremlinQueryCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CancelGremlinQueryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/CancelLoaderJobCommand.ts b/clients/client-neptunedata/src/commands/CancelLoaderJobCommand.ts new file mode 100644 index 0000000000000..2e0ea065950bc --- /dev/null +++ b/clients/client-neptunedata/src/commands/CancelLoaderJobCommand.ts @@ -0,0 +1,184 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CancelLoaderJobInput, CancelLoaderJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_CancelLoaderJobCommand, se_CancelLoaderJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CancelLoaderJobCommand}. + */ +export interface CancelLoaderJobCommandInput extends CancelLoaderJobInput {} +/** + * @public + * + * The output of {@link CancelLoaderJobCommand}. + */ +export interface CancelLoaderJobCommandOutput extends CancelLoaderJobOutput, __MetadataBearer {} + +/** + * @public + *

Cancels a specified load job. This is an HTTP DELETE + * request.

+ *

See Neptune + * Loader Get-Status API for more information.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, CancelLoaderJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, CancelLoaderJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // CancelLoaderJobInput + * loadId: "STRING_VALUE", // required + * }; + * const command = new CancelLoaderJobCommand(input); + * const response = await client.send(command); + * // { // CancelLoaderJobOutput + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CancelLoaderJobCommandInput - {@link CancelLoaderJobCommandInput} + * @returns {@link CancelLoaderJobCommandOutput} + * @see {@link CancelLoaderJobCommandInput} for command's `input` shape. + * @see {@link CancelLoaderJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link BulkLoadIdNotFoundException} (client fault) + *

Raised when a specified bulk-load job ID cannot be found.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InternalFailureException} (server fault) + *

Raised when the processing of the request failed unexpectedly.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link LoadUrlAccessDeniedException} (client fault) + *

Raised when access is denied to a specified load URL.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class CancelLoaderJobCommand extends $Command< + CancelLoaderJobCommandInput, + CancelLoaderJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CancelLoaderJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CancelLoaderJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "CancelLoaderJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CancelLoaderJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CancelLoaderJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CancelLoaderJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/CancelMLDataProcessingJobCommand.ts b/clients/client-neptunedata/src/commands/CancelMLDataProcessingJobCommand.ts new file mode 100644 index 0000000000000..45ebf4c641ec9 --- /dev/null +++ b/clients/client-neptunedata/src/commands/CancelMLDataProcessingJobCommand.ts @@ -0,0 +1,181 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CancelMLDataProcessingJobInput, CancelMLDataProcessingJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_CancelMLDataProcessingJobCommand, se_CancelMLDataProcessingJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CancelMLDataProcessingJobCommand}. + */ +export interface CancelMLDataProcessingJobCommandInput extends CancelMLDataProcessingJobInput {} +/** + * @public + * + * The output of {@link CancelMLDataProcessingJobCommand}. + */ +export interface CancelMLDataProcessingJobCommandOutput extends CancelMLDataProcessingJobOutput, __MetadataBearer {} + +/** + * @public + *

Cancels a Neptune ML data processing job. See The + * dataprocessing command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, CancelMLDataProcessingJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, CancelMLDataProcessingJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // CancelMLDataProcessingJobInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * clean: true || false, + * }; + * const command = new CancelMLDataProcessingJobCommand(input); + * const response = await client.send(command); + * // { // CancelMLDataProcessingJobOutput + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CancelMLDataProcessingJobCommandInput - {@link CancelMLDataProcessingJobCommandInput} + * @returns {@link CancelMLDataProcessingJobCommandOutput} + * @see {@link CancelMLDataProcessingJobCommandInput} for command's `input` shape. + * @see {@link CancelMLDataProcessingJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class CancelMLDataProcessingJobCommand extends $Command< + CancelMLDataProcessingJobCommandInput, + CancelMLDataProcessingJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CancelMLDataProcessingJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CancelMLDataProcessingJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "CancelMLDataProcessingJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CancelMLDataProcessingJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CancelMLDataProcessingJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CancelMLDataProcessingJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/CancelMLModelTrainingJobCommand.ts b/clients/client-neptunedata/src/commands/CancelMLModelTrainingJobCommand.ts new file mode 100644 index 0000000000000..94591a6b4e31a --- /dev/null +++ b/clients/client-neptunedata/src/commands/CancelMLModelTrainingJobCommand.ts @@ -0,0 +1,178 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CancelMLModelTrainingJobInput, CancelMLModelTrainingJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_CancelMLModelTrainingJobCommand, se_CancelMLModelTrainingJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CancelMLModelTrainingJobCommand}. + */ +export interface CancelMLModelTrainingJobCommandInput extends CancelMLModelTrainingJobInput {} +/** + * @public + * + * The output of {@link CancelMLModelTrainingJobCommand}. + */ +export interface CancelMLModelTrainingJobCommandOutput extends CancelMLModelTrainingJobOutput, __MetadataBearer {} + +/** + * @public + *

Cancels a Neptune ML model training job. See Model + * training using the modeltraining command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, CancelMLModelTrainingJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, CancelMLModelTrainingJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // CancelMLModelTrainingJobInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * clean: true || false, + * }; + * const command = new CancelMLModelTrainingJobCommand(input); + * const response = await client.send(command); + * // { // CancelMLModelTrainingJobOutput + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CancelMLModelTrainingJobCommandInput - {@link CancelMLModelTrainingJobCommandInput} + * @returns {@link CancelMLModelTrainingJobCommandOutput} + * @see {@link CancelMLModelTrainingJobCommandInput} for command's `input` shape. + * @see {@link CancelMLModelTrainingJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class CancelMLModelTrainingJobCommand extends $Command< + CancelMLModelTrainingJobCommandInput, + CancelMLModelTrainingJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CancelMLModelTrainingJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CancelMLModelTrainingJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "CancelMLModelTrainingJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CancelMLModelTrainingJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CancelMLModelTrainingJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CancelMLModelTrainingJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/CancelMLModelTransformJobCommand.ts b/clients/client-neptunedata/src/commands/CancelMLModelTransformJobCommand.ts new file mode 100644 index 0000000000000..f9b5eda6efde4 --- /dev/null +++ b/clients/client-neptunedata/src/commands/CancelMLModelTransformJobCommand.ts @@ -0,0 +1,181 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CancelMLModelTransformJobInput, CancelMLModelTransformJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_CancelMLModelTransformJobCommand, se_CancelMLModelTransformJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CancelMLModelTransformJobCommand}. + */ +export interface CancelMLModelTransformJobCommandInput extends CancelMLModelTransformJobInput {} +/** + * @public + * + * The output of {@link CancelMLModelTransformJobCommand}. + */ +export interface CancelMLModelTransformJobCommandOutput extends CancelMLModelTransformJobOutput, __MetadataBearer {} + +/** + * @public + *

Cancels a specified model transform job. See Use + * a trained model to generate new model artifacts.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, CancelMLModelTransformJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, CancelMLModelTransformJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // CancelMLModelTransformJobInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * clean: true || false, + * }; + * const command = new CancelMLModelTransformJobCommand(input); + * const response = await client.send(command); + * // { // CancelMLModelTransformJobOutput + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param CancelMLModelTransformJobCommandInput - {@link CancelMLModelTransformJobCommandInput} + * @returns {@link CancelMLModelTransformJobCommandOutput} + * @see {@link CancelMLModelTransformJobCommandInput} for command's `input` shape. + * @see {@link CancelMLModelTransformJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class CancelMLModelTransformJobCommand extends $Command< + CancelMLModelTransformJobCommandInput, + CancelMLModelTransformJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CancelMLModelTransformJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CancelMLModelTransformJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "CancelMLModelTransformJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CancelMLModelTransformJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CancelMLModelTransformJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_CancelMLModelTransformJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/CancelOpenCypherQueryCommand.ts b/clients/client-neptunedata/src/commands/CancelOpenCypherQueryCommand.ts new file mode 100644 index 0000000000000..0d1e44afdf696 --- /dev/null +++ b/clients/client-neptunedata/src/commands/CancelOpenCypherQueryCommand.ts @@ -0,0 +1,191 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CancelOpenCypherQueryInput, CancelOpenCypherQueryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_CancelOpenCypherQueryCommand, se_CancelOpenCypherQueryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CancelOpenCypherQueryCommand}. + */ +export interface CancelOpenCypherQueryCommandInput extends CancelOpenCypherQueryInput {} +/** + * @public + * + * The output of {@link CancelOpenCypherQueryCommand}. + */ +export interface CancelOpenCypherQueryCommandOutput extends CancelOpenCypherQueryOutput, __MetadataBearer {} + +/** + * @public + *

Cancels a specified openCypher query. See Neptune + * openCypher status endpoint for more information.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, CancelOpenCypherQueryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, CancelOpenCypherQueryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // CancelOpenCypherQueryInput + * queryId: "STRING_VALUE", // required + * silent: true || false, + * }; + * const command = new CancelOpenCypherQueryCommand(input); + * const response = await client.send(command); + * // { // CancelOpenCypherQueryOutput + * // status: "STRING_VALUE", + * // payload: true || false, + * // }; + * + * ``` + * + * @param CancelOpenCypherQueryCommandInput - {@link CancelOpenCypherQueryCommandInput} + * @returns {@link CancelOpenCypherQueryCommandOutput} + * @see {@link CancelOpenCypherQueryCommandInput} for command's `input` shape. + * @see {@link CancelOpenCypherQueryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidNumericDataException} (client fault) + *

Raised when invalid numerical data is encountered when servicing a request.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class CancelOpenCypherQueryCommand extends $Command< + CancelOpenCypherQueryCommandInput, + CancelOpenCypherQueryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CancelOpenCypherQueryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CancelOpenCypherQueryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "CancelOpenCypherQueryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CancelOpenCypherQueryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CancelOpenCypherQueryCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CancelOpenCypherQueryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/CreateMLEndpointCommand.ts b/clients/client-neptunedata/src/commands/CreateMLEndpointCommand.ts new file mode 100644 index 0000000000000..9d30fd9e1331b --- /dev/null +++ b/clients/client-neptunedata/src/commands/CreateMLEndpointCommand.ts @@ -0,0 +1,188 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CreateMLEndpointInput, CreateMLEndpointOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_CreateMLEndpointCommand, se_CreateMLEndpointCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link CreateMLEndpointCommand}. + */ +export interface CreateMLEndpointCommandInput extends CreateMLEndpointInput {} +/** + * @public + * + * The output of {@link CreateMLEndpointCommand}. + */ +export interface CreateMLEndpointCommandOutput extends CreateMLEndpointOutput, __MetadataBearer {} + +/** + * @public + *

Creates a new Neptune ML inference endpoint that lets you query + * one specific model that the model-training process constructed. See + * Managing + * inference endpoints using the endpoints command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, CreateMLEndpointCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, CreateMLEndpointCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // CreateMLEndpointInput + * id: "STRING_VALUE", + * mlModelTrainingJobId: "STRING_VALUE", + * mlModelTransformJobId: "STRING_VALUE", + * update: true || false, + * neptuneIamRoleArn: "STRING_VALUE", + * modelName: "STRING_VALUE", + * instanceType: "STRING_VALUE", + * instanceCount: Number("int"), + * volumeEncryptionKMSKey: "STRING_VALUE", + * }; + * const command = new CreateMLEndpointCommand(input); + * const response = await client.send(command); + * // { // CreateMLEndpointOutput + * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // creationTimeInMillis: Number("long"), + * // }; + * + * ``` + * + * @param CreateMLEndpointCommandInput - {@link CreateMLEndpointCommandInput} + * @returns {@link CreateMLEndpointCommandOutput} + * @see {@link CreateMLEndpointCommandInput} for command's `input` shape. + * @see {@link CreateMLEndpointCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class CreateMLEndpointCommand extends $Command< + CreateMLEndpointCommandInput, + CreateMLEndpointCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: CreateMLEndpointCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, CreateMLEndpointCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "CreateMLEndpointCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: CreateMLEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_CreateMLEndpointCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_CreateMLEndpointCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/DeleteMLEndpointCommand.ts b/clients/client-neptunedata/src/commands/DeleteMLEndpointCommand.ts new file mode 100644 index 0000000000000..0544e1f9cdb44 --- /dev/null +++ b/clients/client-neptunedata/src/commands/DeleteMLEndpointCommand.ts @@ -0,0 +1,179 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { DeleteMLEndpointInput, DeleteMLEndpointOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_DeleteMLEndpointCommand, se_DeleteMLEndpointCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteMLEndpointCommand}. + */ +export interface DeleteMLEndpointCommandInput extends DeleteMLEndpointInput {} +/** + * @public + * + * The output of {@link DeleteMLEndpointCommand}. + */ +export interface DeleteMLEndpointCommandOutput extends DeleteMLEndpointOutput, __MetadataBearer {} + +/** + * @public + *

Cancels the creation of a Neptune ML inference endpoint. See + * Managing + * inference endpoints using the endpoints command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, DeleteMLEndpointCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, DeleteMLEndpointCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // DeleteMLEndpointInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * clean: true || false, + * }; + * const command = new DeleteMLEndpointCommand(input); + * const response = await client.send(command); + * // { // DeleteMLEndpointOutput + * // status: "STRING_VALUE", + * // }; + * + * ``` + * + * @param DeleteMLEndpointCommandInput - {@link DeleteMLEndpointCommandInput} + * @returns {@link DeleteMLEndpointCommandOutput} + * @see {@link DeleteMLEndpointCommandInput} for command's `input` shape. + * @see {@link DeleteMLEndpointCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class DeleteMLEndpointCommand extends $Command< + DeleteMLEndpointCommandInput, + DeleteMLEndpointCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteMLEndpointCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteMLEndpointCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "DeleteMLEndpointCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteMLEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteMLEndpointCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DeleteMLEndpointCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/DeletePropertygraphStatisticsCommand.ts b/clients/client-neptunedata/src/commands/DeletePropertygraphStatisticsCommand.ts new file mode 100644 index 0000000000000..066f711894729 --- /dev/null +++ b/clients/client-neptunedata/src/commands/DeletePropertygraphStatisticsCommand.ts @@ -0,0 +1,193 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { DeletePropertygraphStatisticsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { + de_DeletePropertygraphStatisticsCommand, + se_DeletePropertygraphStatisticsCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeletePropertygraphStatisticsCommand}. + */ +export interface DeletePropertygraphStatisticsCommandInput {} +/** + * @public + * + * The output of {@link DeletePropertygraphStatisticsCommand}. + */ +export interface DeletePropertygraphStatisticsCommandOutput + extends DeletePropertygraphStatisticsOutput, + __MetadataBearer {} + +/** + * @public + *

Deletes statistics for Gremlin and openCypher (property graph) + * data.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, DeletePropertygraphStatisticsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, DeletePropertygraphStatisticsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = {}; + * const command = new DeletePropertygraphStatisticsCommand(input); + * const response = await client.send(command); + * // { // DeletePropertygraphStatisticsOutput + * // statusCode: Number("int"), + * // status: "STRING_VALUE", + * // payload: { // DeleteStatisticsValueMap + * // active: true || false, + * // statisticsId: "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param DeletePropertygraphStatisticsCommandInput - {@link DeletePropertygraphStatisticsCommandInput} + * @returns {@link DeletePropertygraphStatisticsCommandOutput} + * @see {@link DeletePropertygraphStatisticsCommandInput} for command's `input` shape. + * @see {@link DeletePropertygraphStatisticsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class DeletePropertygraphStatisticsCommand extends $Command< + DeletePropertygraphStatisticsCommandInput, + DeletePropertygraphStatisticsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeletePropertygraphStatisticsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeletePropertygraphStatisticsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "DeletePropertygraphStatisticsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeletePropertygraphStatisticsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeletePropertygraphStatisticsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_DeletePropertygraphStatisticsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/DeleteSparqlStatisticsCommand.ts b/clients/client-neptunedata/src/commands/DeleteSparqlStatisticsCommand.ts new file mode 100644 index 0000000000000..c6ee5255482cf --- /dev/null +++ b/clients/client-neptunedata/src/commands/DeleteSparqlStatisticsCommand.ts @@ -0,0 +1,184 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { DeleteSparqlStatisticsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_DeleteSparqlStatisticsCommand, se_DeleteSparqlStatisticsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link DeleteSparqlStatisticsCommand}. + */ +export interface DeleteSparqlStatisticsCommandInput {} +/** + * @public + * + * The output of {@link DeleteSparqlStatisticsCommand}. + */ +export interface DeleteSparqlStatisticsCommandOutput extends DeleteSparqlStatisticsOutput, __MetadataBearer {} + +/** + * @public + *

Deletes SPARQL statistics

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, DeleteSparqlStatisticsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, DeleteSparqlStatisticsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = {}; + * const command = new DeleteSparqlStatisticsCommand(input); + * const response = await client.send(command); + * // { // DeleteSparqlStatisticsOutput + * // statusCode: Number("int"), + * // status: "STRING_VALUE", + * // payload: { // DeleteStatisticsValueMap + * // active: true || false, + * // statisticsId: "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param DeleteSparqlStatisticsCommandInput - {@link DeleteSparqlStatisticsCommandInput} + * @returns {@link DeleteSparqlStatisticsCommandOutput} + * @see {@link DeleteSparqlStatisticsCommandInput} for command's `input` shape. + * @see {@link DeleteSparqlStatisticsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class DeleteSparqlStatisticsCommand extends $Command< + DeleteSparqlStatisticsCommandInput, + DeleteSparqlStatisticsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: DeleteSparqlStatisticsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, DeleteSparqlStatisticsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "DeleteSparqlStatisticsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: DeleteSparqlStatisticsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_DeleteSparqlStatisticsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_DeleteSparqlStatisticsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ExecuteFastResetCommand.ts b/clients/client-neptunedata/src/commands/ExecuteFastResetCommand.ts new file mode 100644 index 0000000000000..80207d23f9396 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ExecuteFastResetCommand.ts @@ -0,0 +1,192 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ExecuteFastResetInput, ExecuteFastResetOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ExecuteFastResetCommand, se_ExecuteFastResetCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ExecuteFastResetCommand}. + */ +export interface ExecuteFastResetCommandInput extends ExecuteFastResetInput {} +/** + * @public + * + * The output of {@link ExecuteFastResetCommand}. + */ +export interface ExecuteFastResetCommandOutput extends ExecuteFastResetOutput, __MetadataBearer {} + +/** + * @public + *

The fast reset REST API lets you reset a Neptune graph quicky + * and easily, removing all of its data.

+ *

Neptune fast reset is a two-step process. First you call ExecuteFastReset + * with action set to initiateDatabaseReset. This returns a + * UUID token which you then include when calling ExecuteFastReset again + * with action set to performDatabaseReset. See Empty an Amazon Neptune + * DB cluster using the fast reset API.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ExecuteFastResetCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ExecuteFastResetCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ExecuteFastResetInput + * action: "initiateDatabaseReset" || "performDatabaseReset", // required + * token: "STRING_VALUE", + * }; + * const command = new ExecuteFastResetCommand(input); + * const response = await client.send(command); + * // { // ExecuteFastResetOutput + * // status: "STRING_VALUE", // required + * // payload: { // FastResetToken + * // token: "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param ExecuteFastResetCommandInput - {@link ExecuteFastResetCommandInput} + * @returns {@link ExecuteFastResetCommandOutput} + * @see {@link ExecuteFastResetCommandInput} for command's `input` shape. + * @see {@link ExecuteFastResetCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MethodNotAllowedException} (client fault) + *

Raised when the HTTP method used by a request is not supported by the endpoint + * being used.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link ServerShutdownException} (server fault) + *

Raised when the server shuts down while processing a request.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ExecuteFastResetCommand extends $Command< + ExecuteFastResetCommandInput, + ExecuteFastResetCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ExecuteFastResetCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ExecuteFastResetCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ExecuteFastResetCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ExecuteFastResetCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ExecuteFastResetCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ExecuteFastResetCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ExecuteGremlinExplainQueryCommand.ts b/clients/client-neptunedata/src/commands/ExecuteGremlinExplainQueryCommand.ts new file mode 100644 index 0000000000000..6971227c003d1 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ExecuteGremlinExplainQueryCommand.ts @@ -0,0 +1,230 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; +import { Uint8ArrayBlobAdapter } from "@smithy/util-stream"; + +import { ExecuteGremlinExplainQueryInput, ExecuteGremlinExplainQueryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ExecuteGremlinExplainQueryCommand, se_ExecuteGremlinExplainQueryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ExecuteGremlinExplainQueryCommand}. + */ +export interface ExecuteGremlinExplainQueryCommandInput extends ExecuteGremlinExplainQueryInput {} +/** + * @public + */ +export type ExecuteGremlinExplainQueryCommandOutputType = Omit & { + output?: Uint8ArrayBlobAdapter; +}; + +/** + * @public + * + * The output of {@link ExecuteGremlinExplainQueryCommand}. + */ +export interface ExecuteGremlinExplainQueryCommandOutput + extends ExecuteGremlinExplainQueryCommandOutputType, + __MetadataBearer {} + +/** + * @public + *

Executes a Gremlin Explain query.

+ *

Amazon Neptune has added a Gremlin feature named explain + * that provides is a self-service tool for understanding the execution + * approach being taken by the Neptune engine for the query. You invoke + * it by adding an explain parameter to an HTTP call that + * submits a Gremlin query.

+ *

The explain feature provides information about the logical structure + * of query execution plans. You can use this information to identify + * potential evaluation and execution bottlenecks and to tune your query, + * as explained in Tuning + * Gremlin queries. You can also use query hints to improve + * query execution plans.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ExecuteGremlinExplainQueryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ExecuteGremlinExplainQueryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ExecuteGremlinExplainQueryInput + * gremlinQuery: "STRING_VALUE", // required + * }; + * const command = new ExecuteGremlinExplainQueryCommand(input); + * const response = await client.send(command); + * // { // ExecuteGremlinExplainQueryOutput + * // output: "BLOB_VALUE", + * // }; + * + * ``` + * + * @param ExecuteGremlinExplainQueryCommandInput - {@link ExecuteGremlinExplainQueryCommandInput} + * @returns {@link ExecuteGremlinExplainQueryCommandOutput} + * @see {@link ExecuteGremlinExplainQueryCommandInput} for command's `input` shape. + * @see {@link ExecuteGremlinExplainQueryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link CancelledByUserException} (server fault) + *

Raised when a user cancelled a request.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MalformedQueryException} (client fault) + *

Raised when a query is submitted that is syntactically incorrect or does not + * pass additional validation.

+ * + * @throws {@link MemoryLimitExceededException} (server fault) + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link QueryLimitExceededException} (server fault) + *

Raised when the number of active queries exceeds what the server can process. + * The query in question can be retried when the system is less busy.

+ * + * @throws {@link QueryLimitException} (client fault) + *

Raised when the size of a query exceeds the system limit.

+ * + * @throws {@link QueryTooLargeException} (client fault) + *

Raised when the body of a query is too large.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ExecuteGremlinExplainQueryCommand extends $Command< + ExecuteGremlinExplainQueryCommandInput, + ExecuteGremlinExplainQueryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ExecuteGremlinExplainQueryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ExecuteGremlinExplainQueryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ExecuteGremlinExplainQueryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ExecuteGremlinExplainQueryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ExecuteGremlinExplainQueryCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ExecuteGremlinExplainQueryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ExecuteGremlinProfileQueryCommand.ts b/clients/client-neptunedata/src/commands/ExecuteGremlinProfileQueryCommand.ts new file mode 100644 index 0000000000000..ddf0c528689f1 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ExecuteGremlinProfileQueryCommand.ts @@ -0,0 +1,226 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; +import { Uint8ArrayBlobAdapter } from "@smithy/util-stream"; + +import { ExecuteGremlinProfileQueryInput, ExecuteGremlinProfileQueryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ExecuteGremlinProfileQueryCommand, se_ExecuteGremlinProfileQueryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ExecuteGremlinProfileQueryCommand}. + */ +export interface ExecuteGremlinProfileQueryCommandInput extends ExecuteGremlinProfileQueryInput {} +/** + * @public + */ +export type ExecuteGremlinProfileQueryCommandOutputType = Omit & { + output?: Uint8ArrayBlobAdapter; +}; + +/** + * @public + * + * The output of {@link ExecuteGremlinProfileQueryCommand}. + */ +export interface ExecuteGremlinProfileQueryCommandOutput + extends ExecuteGremlinProfileQueryCommandOutputType, + __MetadataBearer {} + +/** + * @public + *

Executes a Gremlin Profile query, which runs a specified traversal, + * collects various metrics about the run, and produces a profile report + * as output. See Gremlin profile + * API in Neptune for details.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ExecuteGremlinProfileQueryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ExecuteGremlinProfileQueryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ExecuteGremlinProfileQueryInput + * gremlinQuery: "STRING_VALUE", // required + * results: true || false, + * chop: Number("int"), + * serializer: "STRING_VALUE", + * indexOps: true || false, + * }; + * const command = new ExecuteGremlinProfileQueryCommand(input); + * const response = await client.send(command); + * // { // ExecuteGremlinProfileQueryOutput + * // output: "BLOB_VALUE", + * // }; + * + * ``` + * + * @param ExecuteGremlinProfileQueryCommandInput - {@link ExecuteGremlinProfileQueryCommandInput} + * @returns {@link ExecuteGremlinProfileQueryCommandOutput} + * @see {@link ExecuteGremlinProfileQueryCommandInput} for command's `input` shape. + * @see {@link ExecuteGremlinProfileQueryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link CancelledByUserException} (server fault) + *

Raised when a user cancelled a request.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MalformedQueryException} (client fault) + *

Raised when a query is submitted that is syntactically incorrect or does not + * pass additional validation.

+ * + * @throws {@link MemoryLimitExceededException} (server fault) + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link QueryLimitExceededException} (server fault) + *

Raised when the number of active queries exceeds what the server can process. + * The query in question can be retried when the system is less busy.

+ * + * @throws {@link QueryLimitException} (client fault) + *

Raised when the size of a query exceeds the system limit.

+ * + * @throws {@link QueryTooLargeException} (client fault) + *

Raised when the body of a query is too large.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ExecuteGremlinProfileQueryCommand extends $Command< + ExecuteGremlinProfileQueryCommandInput, + ExecuteGremlinProfileQueryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ExecuteGremlinProfileQueryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ExecuteGremlinProfileQueryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ExecuteGremlinProfileQueryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ExecuteGremlinProfileQueryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ExecuteGremlinProfileQueryCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ExecuteGremlinProfileQueryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ExecuteGremlinQueryCommand.ts b/clients/client-neptunedata/src/commands/ExecuteGremlinQueryCommand.ts new file mode 100644 index 0000000000000..5c89499892456 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ExecuteGremlinQueryCommand.ts @@ -0,0 +1,219 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ExecuteGremlinQueryInput, ExecuteGremlinQueryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ExecuteGremlinQueryCommand, se_ExecuteGremlinQueryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ExecuteGremlinQueryCommand}. + */ +export interface ExecuteGremlinQueryCommandInput extends ExecuteGremlinQueryInput {} +/** + * @public + * + * The output of {@link ExecuteGremlinQueryCommand}. + */ +export interface ExecuteGremlinQueryCommandOutput extends ExecuteGremlinQueryOutput, __MetadataBearer {} + +/** + * @public + *

This commands executes a Gremlin query. Amazon Neptune is compatible + * with Apache TinkerPop3 and Gremlin, so you can use the Gremlin traversal + * language to query the graph, as described under The + * Graph in the Apache TinkerPop3 documentation. + * More details can also be found in Accessing a + * Neptune graph with Gremlin.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ExecuteGremlinQueryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ExecuteGremlinQueryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ExecuteGremlinQueryInput + * gremlinQuery: "STRING_VALUE", // required + * serializer: "STRING_VALUE", + * }; + * const command = new ExecuteGremlinQueryCommand(input); + * const response = await client.send(command); + * // { // ExecuteGremlinQueryOutput + * // requestId: "STRING_VALUE", + * // status: { // GremlinQueryStatusAttributes + * // message: "STRING_VALUE", + * // code: Number("int"), + * // attributes: "DOCUMENT_VALUE", + * // }, + * // result: "DOCUMENT_VALUE", + * // meta: "DOCUMENT_VALUE", + * // }; + * + * ``` + * + * @param ExecuteGremlinQueryCommandInput - {@link ExecuteGremlinQueryCommandInput} + * @returns {@link ExecuteGremlinQueryCommandOutput} + * @see {@link ExecuteGremlinQueryCommandInput} for command's `input` shape. + * @see {@link ExecuteGremlinQueryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link CancelledByUserException} (server fault) + *

Raised when a user cancelled a request.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MalformedQueryException} (client fault) + *

Raised when a query is submitted that is syntactically incorrect or does not + * pass additional validation.

+ * + * @throws {@link MemoryLimitExceededException} (server fault) + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link QueryLimitExceededException} (server fault) + *

Raised when the number of active queries exceeds what the server can process. + * The query in question can be retried when the system is less busy.

+ * + * @throws {@link QueryLimitException} (client fault) + *

Raised when the size of a query exceeds the system limit.

+ * + * @throws {@link QueryTooLargeException} (client fault) + *

Raised when the body of a query is too large.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ExecuteGremlinQueryCommand extends $Command< + ExecuteGremlinQueryCommandInput, + ExecuteGremlinQueryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ExecuteGremlinQueryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ExecuteGremlinQueryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ExecuteGremlinQueryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ExecuteGremlinQueryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ExecuteGremlinQueryCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ExecuteGremlinQueryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ExecuteOpenCypherExplainQueryCommand.ts b/clients/client-neptunedata/src/commands/ExecuteOpenCypherExplainQueryCommand.ts new file mode 100644 index 0000000000000..7338ead0ae833 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ExecuteOpenCypherExplainQueryCommand.ts @@ -0,0 +1,229 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; +import { Uint8ArrayBlobAdapter } from "@smithy/util-stream"; + +import { ExecuteOpenCypherExplainQueryInput, ExecuteOpenCypherExplainQueryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { + de_ExecuteOpenCypherExplainQueryCommand, + se_ExecuteOpenCypherExplainQueryCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ExecuteOpenCypherExplainQueryCommand}. + */ +export interface ExecuteOpenCypherExplainQueryCommandInput extends ExecuteOpenCypherExplainQueryInput {} +/** + * @public + */ +export type ExecuteOpenCypherExplainQueryCommandOutputType = Omit & { + results: Uint8ArrayBlobAdapter; +}; + +/** + * @public + * + * The output of {@link ExecuteOpenCypherExplainQueryCommand}. + */ +export interface ExecuteOpenCypherExplainQueryCommandOutput + extends ExecuteOpenCypherExplainQueryCommandOutputType, + __MetadataBearer {} + +/** + * @public + *

Executes an openCypher explain request. See + * The + * openCypher explain feature for more information.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ExecuteOpenCypherExplainQueryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ExecuteOpenCypherExplainQueryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ExecuteOpenCypherExplainQueryInput + * openCypherQuery: "STRING_VALUE", // required + * parameters: "STRING_VALUE", + * explainMode: "static" || "dynamic" || "details", // required + * }; + * const command = new ExecuteOpenCypherExplainQueryCommand(input); + * const response = await client.send(command); + * // { // ExecuteOpenCypherExplainQueryOutput + * // results: "BLOB_VALUE", // required + * // }; + * + * ``` + * + * @param ExecuteOpenCypherExplainQueryCommandInput - {@link ExecuteOpenCypherExplainQueryCommandInput} + * @returns {@link ExecuteOpenCypherExplainQueryCommandOutput} + * @see {@link ExecuteOpenCypherExplainQueryCommandInput} for command's `input` shape. + * @see {@link ExecuteOpenCypherExplainQueryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link CancelledByUserException} (server fault) + *

Raised when a user cancelled a request.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidNumericDataException} (client fault) + *

Raised when invalid numerical data is encountered when servicing a request.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MalformedQueryException} (client fault) + *

Raised when a query is submitted that is syntactically incorrect or does not + * pass additional validation.

+ * + * @throws {@link MemoryLimitExceededException} (server fault) + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link QueryLimitExceededException} (server fault) + *

Raised when the number of active queries exceeds what the server can process. + * The query in question can be retried when the system is less busy.

+ * + * @throws {@link QueryLimitException} (client fault) + *

Raised when the size of a query exceeds the system limit.

+ * + * @throws {@link QueryTooLargeException} (client fault) + *

Raised when the body of a query is too large.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ExecuteOpenCypherExplainQueryCommand extends $Command< + ExecuteOpenCypherExplainQueryCommandInput, + ExecuteOpenCypherExplainQueryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ExecuteOpenCypherExplainQueryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ExecuteOpenCypherExplainQueryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ExecuteOpenCypherExplainQueryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ExecuteOpenCypherExplainQueryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ExecuteOpenCypherExplainQueryCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ExecuteOpenCypherExplainQueryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ExecuteOpenCypherQueryCommand.ts b/clients/client-neptunedata/src/commands/ExecuteOpenCypherQueryCommand.ts new file mode 100644 index 0000000000000..95563e474a816 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ExecuteOpenCypherQueryCommand.ts @@ -0,0 +1,220 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ExecuteOpenCypherQueryInput, ExecuteOpenCypherQueryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ExecuteOpenCypherQueryCommand, se_ExecuteOpenCypherQueryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ExecuteOpenCypherQueryCommand}. + */ +export interface ExecuteOpenCypherQueryCommandInput extends ExecuteOpenCypherQueryInput {} +/** + * @public + * + * The output of {@link ExecuteOpenCypherQueryCommand}. + */ +export interface ExecuteOpenCypherQueryCommandOutput extends ExecuteOpenCypherQueryOutput, __MetadataBearer {} + +/** + * @public + *

Executes an openCypher query. See Accessing + * the Neptune Graph with openCypher for more information.

+ *

Neptune supports building graph applications using openCypher, + * which is currently one of the most popular query languages among + * developers working with graph databases. Developers, business analysts, + * and data scientists like openCypher's declarative, SQL-inspired syntax + * because it provides a familiar structure in which to querying property + * graphs.

+ *

The openCypher language was originally developed by Neo4j, then + * open-sourced in 2015 and contributed to the openCypher project under an Apache + * 2 open-source license.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ExecuteOpenCypherQueryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ExecuteOpenCypherQueryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ExecuteOpenCypherQueryInput + * openCypherQuery: "STRING_VALUE", // required + * parameters: "STRING_VALUE", + * }; + * const command = new ExecuteOpenCypherQueryCommand(input); + * const response = await client.send(command); + * // { // ExecuteOpenCypherQueryOutput + * // results: "DOCUMENT_VALUE", // required + * // }; + * + * ``` + * + * @param ExecuteOpenCypherQueryCommandInput - {@link ExecuteOpenCypherQueryCommandInput} + * @returns {@link ExecuteOpenCypherQueryCommandOutput} + * @see {@link ExecuteOpenCypherQueryCommandInput} for command's `input` shape. + * @see {@link ExecuteOpenCypherQueryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link CancelledByUserException} (server fault) + *

Raised when a user cancelled a request.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidNumericDataException} (client fault) + *

Raised when invalid numerical data is encountered when servicing a request.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MalformedQueryException} (client fault) + *

Raised when a query is submitted that is syntactically incorrect or does not + * pass additional validation.

+ * + * @throws {@link MemoryLimitExceededException} (server fault) + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link QueryLimitExceededException} (server fault) + *

Raised when the number of active queries exceeds what the server can process. + * The query in question can be retried when the system is less busy.

+ * + * @throws {@link QueryLimitException} (client fault) + *

Raised when the size of a query exceeds the system limit.

+ * + * @throws {@link QueryTooLargeException} (client fault) + *

Raised when the body of a query is too large.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ExecuteOpenCypherQueryCommand extends $Command< + ExecuteOpenCypherQueryCommandInput, + ExecuteOpenCypherQueryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ExecuteOpenCypherQueryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ExecuteOpenCypherQueryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ExecuteOpenCypherQueryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ExecuteOpenCypherQueryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ExecuteOpenCypherQueryCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ExecuteOpenCypherQueryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetEngineStatusCommand.ts b/clients/client-neptunedata/src/commands/GetEngineStatusCommand.ts new file mode 100644 index 0000000000000..0e09386f6a7fa --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetEngineStatusCommand.ts @@ -0,0 +1,188 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetEngineStatusOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetEngineStatusCommand, se_GetEngineStatusCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetEngineStatusCommand}. + */ +export interface GetEngineStatusCommandInput {} +/** + * @public + * + * The output of {@link GetEngineStatusCommand}. + */ +export interface GetEngineStatusCommandOutput extends GetEngineStatusOutput, __MetadataBearer {} + +/** + * @public + *

Check the status of the graph database on the host.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetEngineStatusCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetEngineStatusCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = {}; + * const command = new GetEngineStatusCommand(input); + * const response = await client.send(command); + * // { // GetEngineStatusOutput + * // status: "STRING_VALUE", + * // startTime: "STRING_VALUE", + * // dbEngineVersion: "STRING_VALUE", + * // role: "STRING_VALUE", + * // dfeQueryEngine: "STRING_VALUE", + * // gremlin: { // QueryLanguageVersion + * // version: "STRING_VALUE", // required + * // }, + * // sparql: { + * // version: "STRING_VALUE", // required + * // }, + * // opencypher: { + * // version: "STRING_VALUE", // required + * // }, + * // labMode: { // StringValuedMap + * // "": "STRING_VALUE", + * // }, + * // rollingBackTrxCount: Number("int"), + * // rollingBackTrxEarliestStartTime: "STRING_VALUE", + * // features: { // DocumentValuedMap + * // "": "DOCUMENT_VALUE", + * // }, + * // settings: { + * // "": "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param GetEngineStatusCommandInput - {@link GetEngineStatusCommandInput} + * @returns {@link GetEngineStatusCommandOutput} + * @see {@link GetEngineStatusCommandInput} for command's `input` shape. + * @see {@link GetEngineStatusCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InternalFailureException} (server fault) + *

Raised when the processing of the request failed unexpectedly.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetEngineStatusCommand extends $Command< + GetEngineStatusCommandInput, + GetEngineStatusCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetEngineStatusCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetEngineStatusCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetEngineStatusCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetEngineStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetEngineStatusCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetEngineStatusCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetGremlinQueryStatusCommand.ts b/clients/client-neptunedata/src/commands/GetGremlinQueryStatusCommand.ts new file mode 100644 index 0000000000000..d81ae882fcbad --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetGremlinQueryStatusCommand.ts @@ -0,0 +1,198 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetGremlinQueryStatusInput, GetGremlinQueryStatusOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetGremlinQueryStatusCommand, se_GetGremlinQueryStatusCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetGremlinQueryStatusCommand}. + */ +export interface GetGremlinQueryStatusCommandInput extends GetGremlinQueryStatusInput {} +/** + * @public + * + * The output of {@link GetGremlinQueryStatusCommand}. + */ +export interface GetGremlinQueryStatusCommandOutput extends GetGremlinQueryStatusOutput, __MetadataBearer {} + +/** + * @public + *

Gets the status of a specified Gremlin query.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetGremlinQueryStatusCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetGremlinQueryStatusCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetGremlinQueryStatusInput + * queryId: "STRING_VALUE", // required + * }; + * const command = new GetGremlinQueryStatusCommand(input); + * const response = await client.send(command); + * // { // GetGremlinQueryStatusOutput + * // queryId: "STRING_VALUE", + * // queryString: "STRING_VALUE", + * // queryEvalStats: { // QueryEvalStats + * // waited: Number("int"), + * // elapsed: Number("int"), + * // cancelled: true || false, + * // subqueries: "DOCUMENT_VALUE", + * // }, + * // }; + * + * ``` + * + * @param GetGremlinQueryStatusCommandInput - {@link GetGremlinQueryStatusCommandInput} + * @returns {@link GetGremlinQueryStatusCommandOutput} + * @see {@link GetGremlinQueryStatusCommandInput} for command's `input` shape. + * @see {@link GetGremlinQueryStatusCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetGremlinQueryStatusCommand extends $Command< + GetGremlinQueryStatusCommandInput, + GetGremlinQueryStatusCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetGremlinQueryStatusCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetGremlinQueryStatusCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetGremlinQueryStatusCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetGremlinQueryStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetGremlinQueryStatusCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetGremlinQueryStatusCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetLoaderJobStatusCommand.ts b/clients/client-neptunedata/src/commands/GetLoaderJobStatusCommand.ts new file mode 100644 index 0000000000000..6f8bc50d0f15f --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetLoaderJobStatusCommand.ts @@ -0,0 +1,190 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetLoaderJobStatusInput, GetLoaderJobStatusOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetLoaderJobStatusCommand, se_GetLoaderJobStatusCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetLoaderJobStatusCommand}. + */ +export interface GetLoaderJobStatusCommandInput extends GetLoaderJobStatusInput {} +/** + * @public + * + * The output of {@link GetLoaderJobStatusCommand}. + */ +export interface GetLoaderJobStatusCommandOutput extends GetLoaderJobStatusOutput, __MetadataBearer {} + +/** + * @public + *

Gets status information about a specified load job. + * Neptune keeps track of the most recent 1,024 bulk load jobs, + * and stores the last 10,000 error details per job.

+ *

See Neptune + * Loader Get-Status API for more information.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetLoaderJobStatusCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetLoaderJobStatusCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetLoaderJobStatusInput + * loadId: "STRING_VALUE", // required + * details: true || false, + * errors: true || false, + * page: Number("int"), + * errorsPerPage: Number("int"), + * }; + * const command = new GetLoaderJobStatusCommand(input); + * const response = await client.send(command); + * // { // GetLoaderJobStatusOutput + * // status: "STRING_VALUE", // required + * // payload: "DOCUMENT_VALUE", // required + * // }; + * + * ``` + * + * @param GetLoaderJobStatusCommandInput - {@link GetLoaderJobStatusCommandInput} + * @returns {@link GetLoaderJobStatusCommandOutput} + * @see {@link GetLoaderJobStatusCommandInput} for command's `input` shape. + * @see {@link GetLoaderJobStatusCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link BulkLoadIdNotFoundException} (client fault) + *

Raised when a specified bulk-load job ID cannot be found.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InternalFailureException} (server fault) + *

Raised when the processing of the request failed unexpectedly.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link LoadUrlAccessDeniedException} (client fault) + *

Raised when access is denied to a specified load URL.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetLoaderJobStatusCommand extends $Command< + GetLoaderJobStatusCommandInput, + GetLoaderJobStatusCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetLoaderJobStatusCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetLoaderJobStatusCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetLoaderJobStatusCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetLoaderJobStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetLoaderJobStatusCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetLoaderJobStatusCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetMLDataProcessingJobCommand.ts b/clients/client-neptunedata/src/commands/GetMLDataProcessingJobCommand.ts new file mode 100644 index 0000000000000..996918b5eeafe --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetMLDataProcessingJobCommand.ts @@ -0,0 +1,186 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetMLDataProcessingJobInput, GetMLDataProcessingJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetMLDataProcessingJobCommand, se_GetMLDataProcessingJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetMLDataProcessingJobCommand}. + */ +export interface GetMLDataProcessingJobCommandInput extends GetMLDataProcessingJobInput {} +/** + * @public + * + * The output of {@link GetMLDataProcessingJobCommand}. + */ +export interface GetMLDataProcessingJobCommandOutput extends GetMLDataProcessingJobOutput, __MetadataBearer {} + +/** + * @public + *

Retrieves information about a specified data processing job. See The + * dataprocessing command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetMLDataProcessingJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetMLDataProcessingJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetMLDataProcessingJobInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new GetMLDataProcessingJobCommand(input); + * const response = await client.send(command); + * // { // GetMLDataProcessingJobOutput + * // status: "STRING_VALUE", + * // id: "STRING_VALUE", + * // processingJob: { // MlResourceDefinition + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // status: "STRING_VALUE", + * // outputLocation: "STRING_VALUE", + * // failureReason: "STRING_VALUE", + * // cloudwatchLogUrl: "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param GetMLDataProcessingJobCommandInput - {@link GetMLDataProcessingJobCommandInput} + * @returns {@link GetMLDataProcessingJobCommandOutput} + * @see {@link GetMLDataProcessingJobCommandInput} for command's `input` shape. + * @see {@link GetMLDataProcessingJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetMLDataProcessingJobCommand extends $Command< + GetMLDataProcessingJobCommandInput, + GetMLDataProcessingJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetMLDataProcessingJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetMLDataProcessingJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetMLDataProcessingJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetMLDataProcessingJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetMLDataProcessingJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetMLDataProcessingJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetMLEndpointCommand.ts b/clients/client-neptunedata/src/commands/GetMLEndpointCommand.ts new file mode 100644 index 0000000000000..589b34577be16 --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetMLEndpointCommand.ts @@ -0,0 +1,188 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetMLEndpointInput, GetMLEndpointOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetMLEndpointCommand, se_GetMLEndpointCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetMLEndpointCommand}. + */ +export interface GetMLEndpointCommandInput extends GetMLEndpointInput {} +/** + * @public + * + * The output of {@link GetMLEndpointCommand}. + */ +export interface GetMLEndpointCommandOutput extends GetMLEndpointOutput, __MetadataBearer {} + +/** + * @public + *

Retrieves details about an inference endpoint. See Managing + * inference endpoints using the endpoints command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetMLEndpointCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetMLEndpointCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetMLEndpointInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new GetMLEndpointCommand(input); + * const response = await client.send(command); + * // { // GetMLEndpointOutput + * // status: "STRING_VALUE", + * // id: "STRING_VALUE", + * // endpoint: { // MlResourceDefinition + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // status: "STRING_VALUE", + * // outputLocation: "STRING_VALUE", + * // failureReason: "STRING_VALUE", + * // cloudwatchLogUrl: "STRING_VALUE", + * // }, + * // endpointConfig: { // MlConfigDefinition + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param GetMLEndpointCommandInput - {@link GetMLEndpointCommandInput} + * @returns {@link GetMLEndpointCommandOutput} + * @see {@link GetMLEndpointCommandInput} for command's `input` shape. + * @see {@link GetMLEndpointCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetMLEndpointCommand extends $Command< + GetMLEndpointCommandInput, + GetMLEndpointCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetMLEndpointCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use(getEndpointPlugin(configuration, GetMLEndpointCommand.getEndpointParameterInstructions())); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetMLEndpointCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetMLEndpointCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetMLEndpointCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetMLEndpointCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetMLModelTrainingJobCommand.ts b/clients/client-neptunedata/src/commands/GetMLModelTrainingJobCommand.ts new file mode 100644 index 0000000000000..7afd83429662c --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetMLModelTrainingJobCommand.ts @@ -0,0 +1,208 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetMLModelTrainingJobInput, GetMLModelTrainingJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetMLModelTrainingJobCommand, se_GetMLModelTrainingJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetMLModelTrainingJobCommand}. + */ +export interface GetMLModelTrainingJobCommandInput extends GetMLModelTrainingJobInput {} +/** + * @public + * + * The output of {@link GetMLModelTrainingJobCommand}. + */ +export interface GetMLModelTrainingJobCommandOutput extends GetMLModelTrainingJobOutput, __MetadataBearer {} + +/** + * @public + *

Retrieves information about a Neptune ML model training job. See Model + * training using the modeltraining command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetMLModelTrainingJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetMLModelTrainingJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetMLModelTrainingJobInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new GetMLModelTrainingJobCommand(input); + * const response = await client.send(command); + * // { // GetMLModelTrainingJobOutput + * // status: "STRING_VALUE", + * // id: "STRING_VALUE", + * // processingJob: { // MlResourceDefinition + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // status: "STRING_VALUE", + * // outputLocation: "STRING_VALUE", + * // failureReason: "STRING_VALUE", + * // cloudwatchLogUrl: "STRING_VALUE", + * // }, + * // hpoJob: { + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // status: "STRING_VALUE", + * // outputLocation: "STRING_VALUE", + * // failureReason: "STRING_VALUE", + * // cloudwatchLogUrl: "STRING_VALUE", + * // }, + * // modelTransformJob: { + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // status: "STRING_VALUE", + * // outputLocation: "STRING_VALUE", + * // failureReason: "STRING_VALUE", + * // cloudwatchLogUrl: "STRING_VALUE", + * // }, + * // mlModels: [ // MlModels + * // { // MlConfigDefinition + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // }, + * // ], + * // }; + * + * ``` + * + * @param GetMLModelTrainingJobCommandInput - {@link GetMLModelTrainingJobCommandInput} + * @returns {@link GetMLModelTrainingJobCommandOutput} + * @see {@link GetMLModelTrainingJobCommandInput} for command's `input` shape. + * @see {@link GetMLModelTrainingJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetMLModelTrainingJobCommand extends $Command< + GetMLModelTrainingJobCommandInput, + GetMLModelTrainingJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetMLModelTrainingJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetMLModelTrainingJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetMLModelTrainingJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetMLModelTrainingJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetMLModelTrainingJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetMLModelTrainingJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetMLModelTransformJobCommand.ts b/clients/client-neptunedata/src/commands/GetMLModelTransformJobCommand.ts new file mode 100644 index 0000000000000..d8daba9380754 --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetMLModelTransformJobCommand.ts @@ -0,0 +1,200 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetMLModelTransformJobInput, GetMLModelTransformJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetMLModelTransformJobCommand, se_GetMLModelTransformJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetMLModelTransformJobCommand}. + */ +export interface GetMLModelTransformJobCommandInput extends GetMLModelTransformJobInput {} +/** + * @public + * + * The output of {@link GetMLModelTransformJobCommand}. + */ +export interface GetMLModelTransformJobCommandOutput extends GetMLModelTransformJobOutput, __MetadataBearer {} + +/** + * @public + *

Gets information about a specified model transform job. See Use + * a trained model to generate new model artifacts.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetMLModelTransformJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetMLModelTransformJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetMLModelTransformJobInput + * id: "STRING_VALUE", // required + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new GetMLModelTransformJobCommand(input); + * const response = await client.send(command); + * // { // GetMLModelTransformJobOutput + * // status: "STRING_VALUE", + * // id: "STRING_VALUE", + * // baseProcessingJob: { // MlResourceDefinition + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // status: "STRING_VALUE", + * // outputLocation: "STRING_VALUE", + * // failureReason: "STRING_VALUE", + * // cloudwatchLogUrl: "STRING_VALUE", + * // }, + * // remoteModelTransformJob: { + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // status: "STRING_VALUE", + * // outputLocation: "STRING_VALUE", + * // failureReason: "STRING_VALUE", + * // cloudwatchLogUrl: "STRING_VALUE", + * // }, + * // models: [ // Models + * // { // MlConfigDefinition + * // name: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // }, + * // ], + * // }; + * + * ``` + * + * @param GetMLModelTransformJobCommandInput - {@link GetMLModelTransformJobCommandInput} + * @returns {@link GetMLModelTransformJobCommandOutput} + * @see {@link GetMLModelTransformJobCommandInput} for command's `input` shape. + * @see {@link GetMLModelTransformJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetMLModelTransformJobCommand extends $Command< + GetMLModelTransformJobCommandInput, + GetMLModelTransformJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetMLModelTransformJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetMLModelTransformJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetMLModelTransformJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetMLModelTransformJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetMLModelTransformJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetMLModelTransformJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetOpenCypherQueryStatusCommand.ts b/clients/client-neptunedata/src/commands/GetOpenCypherQueryStatusCommand.ts new file mode 100644 index 0000000000000..2b1267293496c --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetOpenCypherQueryStatusCommand.ts @@ -0,0 +1,201 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetOpenCypherQueryStatusInput, GetOpenCypherQueryStatusOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetOpenCypherQueryStatusCommand, se_GetOpenCypherQueryStatusCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetOpenCypherQueryStatusCommand}. + */ +export interface GetOpenCypherQueryStatusCommandInput extends GetOpenCypherQueryStatusInput {} +/** + * @public + * + * The output of {@link GetOpenCypherQueryStatusCommand}. + */ +export interface GetOpenCypherQueryStatusCommandOutput extends GetOpenCypherQueryStatusOutput, __MetadataBearer {} + +/** + * @public + *

Retrieves the status of a specified openCypher query.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetOpenCypherQueryStatusCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetOpenCypherQueryStatusCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetOpenCypherQueryStatusInput + * queryId: "STRING_VALUE", // required + * }; + * const command = new GetOpenCypherQueryStatusCommand(input); + * const response = await client.send(command); + * // { // GetOpenCypherQueryStatusOutput + * // queryId: "STRING_VALUE", + * // queryString: "STRING_VALUE", + * // queryEvalStats: { // QueryEvalStats + * // waited: Number("int"), + * // elapsed: Number("int"), + * // cancelled: true || false, + * // subqueries: "DOCUMENT_VALUE", + * // }, + * // }; + * + * ``` + * + * @param GetOpenCypherQueryStatusCommandInput - {@link GetOpenCypherQueryStatusCommandInput} + * @returns {@link GetOpenCypherQueryStatusCommandOutput} + * @see {@link GetOpenCypherQueryStatusCommandInput} for command's `input` shape. + * @see {@link GetOpenCypherQueryStatusCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidNumericDataException} (client fault) + *

Raised when invalid numerical data is encountered when servicing a request.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetOpenCypherQueryStatusCommand extends $Command< + GetOpenCypherQueryStatusCommandInput, + GetOpenCypherQueryStatusCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetOpenCypherQueryStatusCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetOpenCypherQueryStatusCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetOpenCypherQueryStatusCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetOpenCypherQueryStatusCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetOpenCypherQueryStatusCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetOpenCypherQueryStatusCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetPropertygraphStatisticsCommand.ts b/clients/client-neptunedata/src/commands/GetPropertygraphStatisticsCommand.ts new file mode 100644 index 0000000000000..e784caf07e386 --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetPropertygraphStatisticsCommand.ts @@ -0,0 +1,194 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetPropertygraphStatisticsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetPropertygraphStatisticsCommand, se_GetPropertygraphStatisticsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetPropertygraphStatisticsCommand}. + */ +export interface GetPropertygraphStatisticsCommandInput {} +/** + * @public + * + * The output of {@link GetPropertygraphStatisticsCommand}. + */ +export interface GetPropertygraphStatisticsCommandOutput extends GetPropertygraphStatisticsOutput, __MetadataBearer {} + +/** + * @public + *

Gets property graph statistics (Gremlin and openCypher).

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetPropertygraphStatisticsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetPropertygraphStatisticsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = {}; + * const command = new GetPropertygraphStatisticsCommand(input); + * const response = await client.send(command); + * // { // GetPropertygraphStatisticsOutput + * // status: "STRING_VALUE", // required + * // payload: { // Statistics + * // autoCompute: true || false, + * // active: true || false, + * // statisticsId: "STRING_VALUE", + * // date: new Date("TIMESTAMP"), + * // note: "STRING_VALUE", + * // signatureInfo: { // StatisticsSummary + * // signatureCount: Number("int"), + * // instanceCount: Number("int"), + * // predicateCount: Number("int"), + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetPropertygraphStatisticsCommandInput - {@link GetPropertygraphStatisticsCommandInput} + * @returns {@link GetPropertygraphStatisticsCommandOutput} + * @see {@link GetPropertygraphStatisticsCommandInput} for command's `input` shape. + * @see {@link GetPropertygraphStatisticsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetPropertygraphStatisticsCommand extends $Command< + GetPropertygraphStatisticsCommandInput, + GetPropertygraphStatisticsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetPropertygraphStatisticsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetPropertygraphStatisticsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetPropertygraphStatisticsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetPropertygraphStatisticsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetPropertygraphStatisticsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_GetPropertygraphStatisticsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetPropertygraphStreamCommand.ts b/clients/client-neptunedata/src/commands/GetPropertygraphStreamCommand.ts new file mode 100644 index 0000000000000..8e926641d6b37 --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetPropertygraphStreamCommand.ts @@ -0,0 +1,216 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetPropertygraphStreamInput, GetPropertygraphStreamOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetPropertygraphStreamCommand, se_GetPropertygraphStreamCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetPropertygraphStreamCommand}. + */ +export interface GetPropertygraphStreamCommandInput extends GetPropertygraphStreamInput {} +/** + * @public + * + * The output of {@link GetPropertygraphStreamCommand}. + */ +export interface GetPropertygraphStreamCommandOutput extends GetPropertygraphStreamOutput, __MetadataBearer {} + +/** + * @public + *

Gets a stream for a property graph.

+ *

With the Neptune Streams feature, you can generate a complete + * sequence of change-log entries that record every change made to your + * graph data as it happens. GetPropertygraphStream lets + * you collect these change-log entries for a property graph.

+ *

The Neptune streams feature needs to be enabled on your Neptune + * DBcluster. To enable streams, set the neptune_streams + * DB cluster parameter to 1.

+ *

See Capturing + * graph changes in real time using Neptune streams.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetPropertygraphStreamCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetPropertygraphStreamCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetPropertygraphStreamInput + * limit: Number("long"), + * iteratorType: "AT_SEQUENCE_NUMBER" || "AFTER_SEQUENCE_NUMBER" || "TRIM_HORIZON" || "LATEST", + * commitNum: Number("long"), + * opNum: Number("long"), + * encoding: "gzip", + * }; + * const command = new GetPropertygraphStreamCommand(input); + * const response = await client.send(command); + * // { // GetPropertygraphStreamOutput + * // lastEventId: { // StringValuedMap // required + * // "": "STRING_VALUE", + * // }, + * // lastTrxTimestampInMillis: Number("long"), // required + * // format: "STRING_VALUE", // required + * // records: [ // PropertygraphRecordsList // required + * // { // PropertygraphRecord + * // commitTimestampInMillis: Number("long"), // required + * // eventId: { // required + * // "": "STRING_VALUE", + * // }, + * // data: { // PropertygraphData + * // id: "STRING_VALUE", // required + * // type: "STRING_VALUE", // required + * // key: "STRING_VALUE", // required + * // value: "DOCUMENT_VALUE", // required + * // from: "STRING_VALUE", + * // to: "STRING_VALUE", + * // }, + * // op: "STRING_VALUE", // required + * // isLastOp: true || false, + * // }, + * // ], + * // totalRecords: Number("int"), // required + * // }; + * + * ``` + * + * @param GetPropertygraphStreamCommandInput - {@link GetPropertygraphStreamCommandInput} + * @returns {@link GetPropertygraphStreamCommandOutput} + * @see {@link GetPropertygraphStreamCommandInput} for command's `input` shape. + * @see {@link GetPropertygraphStreamCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link ExpiredStreamException} (client fault) + *

Raised when a request attempts to access an stream that has expired.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MemoryLimitExceededException} (server fault) + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link StreamRecordsNotFoundException} (client fault) + *

Raised when stream records requested by a query cannot be found.

+ * + * @throws {@link ThrottlingException} (server fault) + *

Raised when the rate of requests exceeds the maximum throughput. Requests can + * be retried after encountering this exception.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetPropertygraphStreamCommand extends $Command< + GetPropertygraphStreamCommandInput, + GetPropertygraphStreamCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetPropertygraphStreamCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetPropertygraphStreamCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetPropertygraphStreamCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetPropertygraphStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetPropertygraphStreamCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetPropertygraphStreamCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetPropertygraphSummaryCommand.ts b/clients/client-neptunedata/src/commands/GetPropertygraphSummaryCommand.ts new file mode 100644 index 0000000000000..813d0ab10468d --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetPropertygraphSummaryCommand.ts @@ -0,0 +1,230 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetPropertygraphSummaryInput, GetPropertygraphSummaryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetPropertygraphSummaryCommand, se_GetPropertygraphSummaryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetPropertygraphSummaryCommand}. + */ +export interface GetPropertygraphSummaryCommandInput extends GetPropertygraphSummaryInput {} +/** + * @public + * + * The output of {@link GetPropertygraphSummaryCommand}. + */ +export interface GetPropertygraphSummaryCommandOutput extends GetPropertygraphSummaryOutput, __MetadataBearer {} + +/** + * @public + *

Gets a graph summary for a property graph.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetPropertygraphSummaryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetPropertygraphSummaryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetPropertygraphSummaryInput + * mode: "basic" || "detailed", + * }; + * const command = new GetPropertygraphSummaryCommand(input); + * const response = await client.send(command); + * // { // GetPropertygraphSummaryOutput + * // statusCode: Number("int"), + * // payload: { // PropertygraphSummaryValueMap + * // version: "STRING_VALUE", + * // lastStatisticsComputationTime: new Date("TIMESTAMP"), + * // graphSummary: { // PropertygraphSummary + * // numNodes: Number("long"), + * // numEdges: Number("long"), + * // numNodeLabels: Number("long"), + * // numEdgeLabels: Number("long"), + * // nodeLabels: [ // NodeLabels + * // "STRING_VALUE", + * // ], + * // edgeLabels: [ // EdgeLabels + * // "STRING_VALUE", + * // ], + * // numNodeProperties: Number("long"), + * // numEdgeProperties: Number("long"), + * // nodeProperties: [ // LongValuedMapList + * // { // LongValuedMap + * // "": Number("long"), + * // }, + * // ], + * // edgeProperties: [ + * // { + * // "": Number("long"), + * // }, + * // ], + * // totalNodePropertyValues: Number("long"), + * // totalEdgePropertyValues: Number("long"), + * // nodeStructures: [ // NodeStructures + * // { // NodeStructure + * // count: Number("long"), + * // nodeProperties: [ // NodeProperties + * // "STRING_VALUE", + * // ], + * // distinctOutgoingEdgeLabels: [ // OutgoingEdgeLabels + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // edgeStructures: [ // EdgeStructures + * // { // EdgeStructure + * // count: Number("long"), + * // edgeProperties: [ // EdgeProperties + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetPropertygraphSummaryCommandInput - {@link GetPropertygraphSummaryCommandInput} + * @returns {@link GetPropertygraphSummaryCommandOutput} + * @see {@link GetPropertygraphSummaryCommandInput} for command's `input` shape. + * @see {@link GetPropertygraphSummaryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetPropertygraphSummaryCommand extends $Command< + GetPropertygraphSummaryCommandInput, + GetPropertygraphSummaryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetPropertygraphSummaryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetPropertygraphSummaryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetPropertygraphSummaryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetPropertygraphSummaryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetPropertygraphSummaryCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetPropertygraphSummaryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetRDFGraphSummaryCommand.ts b/clients/client-neptunedata/src/commands/GetRDFGraphSummaryCommand.ts new file mode 100644 index 0000000000000..a42bc0a215c98 --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetRDFGraphSummaryCommand.ts @@ -0,0 +1,207 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetRDFGraphSummaryInput, GetRDFGraphSummaryOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetRDFGraphSummaryCommand, se_GetRDFGraphSummaryCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetRDFGraphSummaryCommand}. + */ +export interface GetRDFGraphSummaryCommandInput extends GetRDFGraphSummaryInput {} +/** + * @public + * + * The output of {@link GetRDFGraphSummaryCommand}. + */ +export interface GetRDFGraphSummaryCommandOutput extends GetRDFGraphSummaryOutput, __MetadataBearer {} + +/** + * @public + *

Gets a graph summary for an RDF graph.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetRDFGraphSummaryCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetRDFGraphSummaryCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetRDFGraphSummaryInput + * mode: "basic" || "detailed", + * }; + * const command = new GetRDFGraphSummaryCommand(input); + * const response = await client.send(command); + * // { // GetRDFGraphSummaryOutput + * // statusCode: Number("int"), + * // payload: { // RDFGraphSummaryValueMap + * // version: "STRING_VALUE", + * // lastStatisticsComputationTime: new Date("TIMESTAMP"), + * // graphSummary: { // RDFGraphSummary + * // numDistinctSubjects: Number("long"), + * // numDistinctPredicates: Number("long"), + * // numQuads: Number("long"), + * // numClasses: Number("long"), + * // classes: [ // Classes + * // "STRING_VALUE", + * // ], + * // predicates: [ // LongValuedMapList + * // { // LongValuedMap + * // "": Number("long"), + * // }, + * // ], + * // subjectStructures: [ // SubjectStructures + * // { // SubjectStructure + * // count: Number("long"), + * // predicates: [ // Predicates + * // "STRING_VALUE", + * // ], + * // }, + * // ], + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetRDFGraphSummaryCommandInput - {@link GetRDFGraphSummaryCommandInput} + * @returns {@link GetRDFGraphSummaryCommandOutput} + * @see {@link GetRDFGraphSummaryCommandInput} for command's `input` shape. + * @see {@link GetRDFGraphSummaryCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetRDFGraphSummaryCommand extends $Command< + GetRDFGraphSummaryCommandInput, + GetRDFGraphSummaryCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetRDFGraphSummaryCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetRDFGraphSummaryCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetRDFGraphSummaryCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetRDFGraphSummaryCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetRDFGraphSummaryCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetRDFGraphSummaryCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetSparqlStatisticsCommand.ts b/clients/client-neptunedata/src/commands/GetSparqlStatisticsCommand.ts new file mode 100644 index 0000000000000..82e8e43bf2f5e --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetSparqlStatisticsCommand.ts @@ -0,0 +1,191 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetSparqlStatisticsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetSparqlStatisticsCommand, se_GetSparqlStatisticsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetSparqlStatisticsCommand}. + */ +export interface GetSparqlStatisticsCommandInput {} +/** + * @public + * + * The output of {@link GetSparqlStatisticsCommand}. + */ +export interface GetSparqlStatisticsCommandOutput extends GetSparqlStatisticsOutput, __MetadataBearer {} + +/** + * @public + *

Gets RDF statistics (SPARQL).

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetSparqlStatisticsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetSparqlStatisticsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = {}; + * const command = new GetSparqlStatisticsCommand(input); + * const response = await client.send(command); + * // { // GetSparqlStatisticsOutput + * // status: "STRING_VALUE", // required + * // payload: { // Statistics + * // autoCompute: true || false, + * // active: true || false, + * // statisticsId: "STRING_VALUE", + * // date: new Date("TIMESTAMP"), + * // note: "STRING_VALUE", + * // signatureInfo: { // StatisticsSummary + * // signatureCount: Number("int"), + * // instanceCount: Number("int"), + * // predicateCount: Number("int"), + * // }, + * // }, + * // }; + * + * ``` + * + * @param GetSparqlStatisticsCommandInput - {@link GetSparqlStatisticsCommandInput} + * @returns {@link GetSparqlStatisticsCommandOutput} + * @see {@link GetSparqlStatisticsCommandInput} for command's `input` shape. + * @see {@link GetSparqlStatisticsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetSparqlStatisticsCommand extends $Command< + GetSparqlStatisticsCommandInput, + GetSparqlStatisticsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetSparqlStatisticsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetSparqlStatisticsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetSparqlStatisticsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetSparqlStatisticsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetSparqlStatisticsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetSparqlStatisticsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/GetSparqlStreamCommand.ts b/clients/client-neptunedata/src/commands/GetSparqlStreamCommand.ts new file mode 100644 index 0000000000000..4ba90bff149c0 --- /dev/null +++ b/clients/client-neptunedata/src/commands/GetSparqlStreamCommand.ts @@ -0,0 +1,211 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { GetSparqlStreamInput, GetSparqlStreamOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_GetSparqlStreamCommand, se_GetSparqlStreamCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link GetSparqlStreamCommand}. + */ +export interface GetSparqlStreamCommandInput extends GetSparqlStreamInput {} +/** + * @public + * + * The output of {@link GetSparqlStreamCommand}. + */ +export interface GetSparqlStreamCommandOutput extends GetSparqlStreamOutput, __MetadataBearer {} + +/** + * @public + *

Gets a stream for an RDF graph.

+ *

With the Neptune Streams feature, you can generate a complete + * sequence of change-log entries that record every change made to your + * graph data as it happens. GetSparqlStream lets + * you collect these change-log entries for an RDF graph.

+ *

The Neptune streams feature needs to be enabled on your Neptune + * DBcluster. To enable streams, set the neptune_streams + * DB cluster parameter to 1.

+ *

See Capturing + * graph changes in real time using Neptune streams.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, GetSparqlStreamCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, GetSparqlStreamCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // GetSparqlStreamInput + * limit: Number("long"), + * iteratorType: "AT_SEQUENCE_NUMBER" || "AFTER_SEQUENCE_NUMBER" || "TRIM_HORIZON" || "LATEST", + * commitNum: Number("long"), + * opNum: Number("long"), + * encoding: "gzip", + * }; + * const command = new GetSparqlStreamCommand(input); + * const response = await client.send(command); + * // { // GetSparqlStreamOutput + * // lastEventId: { // StringValuedMap // required + * // "": "STRING_VALUE", + * // }, + * // lastTrxTimestampInMillis: Number("long"), // required + * // format: "STRING_VALUE", // required + * // records: [ // SparqlRecordsList // required + * // { // SparqlRecord + * // commitTimestampInMillis: Number("long"), // required + * // eventId: { // required + * // "": "STRING_VALUE", + * // }, + * // data: { // SparqlData + * // stmt: "STRING_VALUE", // required + * // }, + * // op: "STRING_VALUE", // required + * // isLastOp: true || false, + * // }, + * // ], + * // totalRecords: Number("int"), // required + * // }; + * + * ``` + * + * @param GetSparqlStreamCommandInput - {@link GetSparqlStreamCommandInput} + * @returns {@link GetSparqlStreamCommandOutput} + * @see {@link GetSparqlStreamCommandInput} for command's `input` shape. + * @see {@link GetSparqlStreamCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link ExpiredStreamException} (client fault) + *

Raised when a request attempts to access an stream that has expired.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MemoryLimitExceededException} (server fault) + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link StreamRecordsNotFoundException} (client fault) + *

Raised when stream records requested by a query cannot be found.

+ * + * @throws {@link ThrottlingException} (server fault) + *

Raised when the rate of requests exceeds the maximum throughput. Requests can + * be retried after encountering this exception.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class GetSparqlStreamCommand extends $Command< + GetSparqlStreamCommandInput, + GetSparqlStreamCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: GetSparqlStreamCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, GetSparqlStreamCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "GetSparqlStreamCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: GetSparqlStreamCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_GetSparqlStreamCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_GetSparqlStreamCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ListGremlinQueriesCommand.ts b/clients/client-neptunedata/src/commands/ListGremlinQueriesCommand.ts new file mode 100644 index 0000000000000..bfd4b747a8035 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ListGremlinQueriesCommand.ts @@ -0,0 +1,205 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListGremlinQueriesInput, ListGremlinQueriesOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ListGremlinQueriesCommand, se_ListGremlinQueriesCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListGremlinQueriesCommand}. + */ +export interface ListGremlinQueriesCommandInput extends ListGremlinQueriesInput {} +/** + * @public + * + * The output of {@link ListGremlinQueriesCommand}. + */ +export interface ListGremlinQueriesCommandOutput extends ListGremlinQueriesOutput, __MetadataBearer {} + +/** + * @public + *

Lists active Gremlin queries. See Gremlin query + * status API for details about the output.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ListGremlinQueriesCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ListGremlinQueriesCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ListGremlinQueriesInput + * includeWaiting: true || false, + * }; + * const command = new ListGremlinQueriesCommand(input); + * const response = await client.send(command); + * // { // ListGremlinQueriesOutput + * // acceptedQueryCount: Number("int"), + * // runningQueryCount: Number("int"), + * // queries: [ // GremlinQueries + * // { // GremlinQueryStatus + * // queryId: "STRING_VALUE", + * // queryString: "STRING_VALUE", + * // queryEvalStats: { // QueryEvalStats + * // waited: Number("int"), + * // elapsed: Number("int"), + * // cancelled: true || false, + * // subqueries: "DOCUMENT_VALUE", + * // }, + * // }, + * // ], + * // }; + * + * ``` + * + * @param ListGremlinQueriesCommandInput - {@link ListGremlinQueriesCommandInput} + * @returns {@link ListGremlinQueriesCommandOutput} + * @see {@link ListGremlinQueriesCommandInput} for command's `input` shape. + * @see {@link ListGremlinQueriesCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ListGremlinQueriesCommand extends $Command< + ListGremlinQueriesCommandInput, + ListGremlinQueriesCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListGremlinQueriesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListGremlinQueriesCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ListGremlinQueriesCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListGremlinQueriesCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListGremlinQueriesCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListGremlinQueriesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ListLoaderJobsCommand.ts b/clients/client-neptunedata/src/commands/ListLoaderJobsCommand.ts new file mode 100644 index 0000000000000..96c332d7741af --- /dev/null +++ b/clients/client-neptunedata/src/commands/ListLoaderJobsCommand.ts @@ -0,0 +1,185 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListLoaderJobsInput, ListLoaderJobsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ListLoaderJobsCommand, se_ListLoaderJobsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListLoaderJobsCommand}. + */ +export interface ListLoaderJobsCommandInput extends ListLoaderJobsInput {} +/** + * @public + * + * The output of {@link ListLoaderJobsCommand}. + */ +export interface ListLoaderJobsCommandOutput extends ListLoaderJobsOutput, __MetadataBearer {} + +/** + * @public + *

Retrieves a list of the loadIds for all active + * loader jobs.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ListLoaderJobsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ListLoaderJobsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ListLoaderJobsInput + * limit: Number("int"), + * includeQueuedLoads: true || false, + * }; + * const command = new ListLoaderJobsCommand(input); + * const response = await client.send(command); + * // { // ListLoaderJobsOutput + * // status: "STRING_VALUE", // required + * // payload: { // LoaderIdResult + * // loadIds: [ // StringList + * // "STRING_VALUE", + * // ], + * // }, + * // }; + * + * ``` + * + * @param ListLoaderJobsCommandInput - {@link ListLoaderJobsCommandInput} + * @returns {@link ListLoaderJobsCommandOutput} + * @see {@link ListLoaderJobsCommandInput} for command's `input` shape. + * @see {@link ListLoaderJobsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link BulkLoadIdNotFoundException} (client fault) + *

Raised when a specified bulk-load job ID cannot be found.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InternalFailureException} (server fault) + *

Raised when the processing of the request failed unexpectedly.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link LoadUrlAccessDeniedException} (client fault) + *

Raised when access is denied to a specified load URL.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ListLoaderJobsCommand extends $Command< + ListLoaderJobsCommandInput, + ListLoaderJobsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListLoaderJobsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListLoaderJobsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ListLoaderJobsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListLoaderJobsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListLoaderJobsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListLoaderJobsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ListMLDataProcessingJobsCommand.ts b/clients/client-neptunedata/src/commands/ListMLDataProcessingJobsCommand.ts new file mode 100644 index 0000000000000..191e4a3be6066 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ListMLDataProcessingJobsCommand.ts @@ -0,0 +1,179 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListMLDataProcessingJobsInput, ListMLDataProcessingJobsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ListMLDataProcessingJobsCommand, se_ListMLDataProcessingJobsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListMLDataProcessingJobsCommand}. + */ +export interface ListMLDataProcessingJobsCommandInput extends ListMLDataProcessingJobsInput {} +/** + * @public + * + * The output of {@link ListMLDataProcessingJobsCommand}. + */ +export interface ListMLDataProcessingJobsCommandOutput extends ListMLDataProcessingJobsOutput, __MetadataBearer {} + +/** + * @public + *

Returns a list of Neptune ML data processing jobs. See Listing + * active data-processing jobs using the Neptune ML dataprocessing command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ListMLDataProcessingJobsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ListMLDataProcessingJobsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ListMLDataProcessingJobsInput + * maxItems: Number("int"), + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new ListMLDataProcessingJobsCommand(input); + * const response = await client.send(command); + * // { // ListMLDataProcessingJobsOutput + * // ids: [ // StringList + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param ListMLDataProcessingJobsCommandInput - {@link ListMLDataProcessingJobsCommandInput} + * @returns {@link ListMLDataProcessingJobsCommandOutput} + * @see {@link ListMLDataProcessingJobsCommandInput} for command's `input` shape. + * @see {@link ListMLDataProcessingJobsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ListMLDataProcessingJobsCommand extends $Command< + ListMLDataProcessingJobsCommandInput, + ListMLDataProcessingJobsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListMLDataProcessingJobsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListMLDataProcessingJobsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ListMLDataProcessingJobsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListMLDataProcessingJobsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListMLDataProcessingJobsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListMLDataProcessingJobsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ListMLEndpointsCommand.ts b/clients/client-neptunedata/src/commands/ListMLEndpointsCommand.ts new file mode 100644 index 0000000000000..0251f45b69236 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ListMLEndpointsCommand.ts @@ -0,0 +1,179 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListMLEndpointsInput, ListMLEndpointsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ListMLEndpointsCommand, se_ListMLEndpointsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListMLEndpointsCommand}. + */ +export interface ListMLEndpointsCommandInput extends ListMLEndpointsInput {} +/** + * @public + * + * The output of {@link ListMLEndpointsCommand}. + */ +export interface ListMLEndpointsCommandOutput extends ListMLEndpointsOutput, __MetadataBearer {} + +/** + * @public + *

Lists existing inference endpoints. See Managing + * inference endpoints using the endpoints command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ListMLEndpointsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ListMLEndpointsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ListMLEndpointsInput + * maxItems: Number("int"), + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new ListMLEndpointsCommand(input); + * const response = await client.send(command); + * // { // ListMLEndpointsOutput + * // ids: [ // StringList + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param ListMLEndpointsCommandInput - {@link ListMLEndpointsCommandInput} + * @returns {@link ListMLEndpointsCommandOutput} + * @see {@link ListMLEndpointsCommandInput} for command's `input` shape. + * @see {@link ListMLEndpointsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ListMLEndpointsCommand extends $Command< + ListMLEndpointsCommandInput, + ListMLEndpointsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListMLEndpointsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListMLEndpointsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ListMLEndpointsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListMLEndpointsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListMLEndpointsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListMLEndpointsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ListMLModelTrainingJobsCommand.ts b/clients/client-neptunedata/src/commands/ListMLModelTrainingJobsCommand.ts new file mode 100644 index 0000000000000..2bb7ba0dcdc9e --- /dev/null +++ b/clients/client-neptunedata/src/commands/ListMLModelTrainingJobsCommand.ts @@ -0,0 +1,179 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListMLModelTrainingJobsInput, ListMLModelTrainingJobsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ListMLModelTrainingJobsCommand, se_ListMLModelTrainingJobsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListMLModelTrainingJobsCommand}. + */ +export interface ListMLModelTrainingJobsCommandInput extends ListMLModelTrainingJobsInput {} +/** + * @public + * + * The output of {@link ListMLModelTrainingJobsCommand}. + */ +export interface ListMLModelTrainingJobsCommandOutput extends ListMLModelTrainingJobsOutput, __MetadataBearer {} + +/** + * @public + *

Lists Neptune ML model-training jobs. See Model + * training using the modeltraining command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ListMLModelTrainingJobsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ListMLModelTrainingJobsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ListMLModelTrainingJobsInput + * maxItems: Number("int"), + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new ListMLModelTrainingJobsCommand(input); + * const response = await client.send(command); + * // { // ListMLModelTrainingJobsOutput + * // ids: [ // StringList + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param ListMLModelTrainingJobsCommandInput - {@link ListMLModelTrainingJobsCommandInput} + * @returns {@link ListMLModelTrainingJobsCommandOutput} + * @see {@link ListMLModelTrainingJobsCommandInput} for command's `input` shape. + * @see {@link ListMLModelTrainingJobsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ListMLModelTrainingJobsCommand extends $Command< + ListMLModelTrainingJobsCommandInput, + ListMLModelTrainingJobsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListMLModelTrainingJobsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListMLModelTrainingJobsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ListMLModelTrainingJobsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListMLModelTrainingJobsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListMLModelTrainingJobsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListMLModelTrainingJobsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ListMLModelTransformJobsCommand.ts b/clients/client-neptunedata/src/commands/ListMLModelTransformJobsCommand.ts new file mode 100644 index 0000000000000..cbd060762d680 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ListMLModelTransformJobsCommand.ts @@ -0,0 +1,179 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListMLModelTransformJobsInput, ListMLModelTransformJobsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ListMLModelTransformJobsCommand, se_ListMLModelTransformJobsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListMLModelTransformJobsCommand}. + */ +export interface ListMLModelTransformJobsCommandInput extends ListMLModelTransformJobsInput {} +/** + * @public + * + * The output of {@link ListMLModelTransformJobsCommand}. + */ +export interface ListMLModelTransformJobsCommandOutput extends ListMLModelTransformJobsOutput, __MetadataBearer {} + +/** + * @public + *

Returns a list of model transform job IDs. See Use + * a trained model to generate new model artifacts.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ListMLModelTransformJobsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ListMLModelTransformJobsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ListMLModelTransformJobsInput + * maxItems: Number("int"), + * neptuneIamRoleArn: "STRING_VALUE", + * }; + * const command = new ListMLModelTransformJobsCommand(input); + * const response = await client.send(command); + * // { // ListMLModelTransformJobsOutput + * // ids: [ // StringList + * // "STRING_VALUE", + * // ], + * // }; + * + * ``` + * + * @param ListMLModelTransformJobsCommandInput - {@link ListMLModelTransformJobsCommandInput} + * @returns {@link ListMLModelTransformJobsCommandOutput} + * @see {@link ListMLModelTransformJobsCommandInput} for command's `input` shape. + * @see {@link ListMLModelTransformJobsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ListMLModelTransformJobsCommand extends $Command< + ListMLModelTransformJobsCommandInput, + ListMLModelTransformJobsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListMLModelTransformJobsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListMLModelTransformJobsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ListMLModelTransformJobsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListMLModelTransformJobsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListMLModelTransformJobsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListMLModelTransformJobsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ListOpenCypherQueriesCommand.ts b/clients/client-neptunedata/src/commands/ListOpenCypherQueriesCommand.ts new file mode 100644 index 0000000000000..25f0eff9c9a7a --- /dev/null +++ b/clients/client-neptunedata/src/commands/ListOpenCypherQueriesCommand.ts @@ -0,0 +1,208 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ListOpenCypherQueriesInput, ListOpenCypherQueriesOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ListOpenCypherQueriesCommand, se_ListOpenCypherQueriesCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListOpenCypherQueriesCommand}. + */ +export interface ListOpenCypherQueriesCommandInput extends ListOpenCypherQueriesInput {} +/** + * @public + * + * The output of {@link ListOpenCypherQueriesCommand}. + */ +export interface ListOpenCypherQueriesCommandOutput extends ListOpenCypherQueriesOutput, __MetadataBearer {} + +/** + * @public + *

Lists active openCypher queries. See Neptune + * openCypher status endpoint for more information.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ListOpenCypherQueriesCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ListOpenCypherQueriesCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ListOpenCypherQueriesInput + * includeWaiting: true || false, + * }; + * const command = new ListOpenCypherQueriesCommand(input); + * const response = await client.send(command); + * // { // ListOpenCypherQueriesOutput + * // acceptedQueryCount: Number("int"), + * // runningQueryCount: Number("int"), + * // queries: [ // OpenCypherQueries + * // { // GremlinQueryStatus + * // queryId: "STRING_VALUE", + * // queryString: "STRING_VALUE", + * // queryEvalStats: { // QueryEvalStats + * // waited: Number("int"), + * // elapsed: Number("int"), + * // cancelled: true || false, + * // subqueries: "DOCUMENT_VALUE", + * // }, + * // }, + * // ], + * // }; + * + * ``` + * + * @param ListOpenCypherQueriesCommandInput - {@link ListOpenCypherQueriesCommandInput} + * @returns {@link ListOpenCypherQueriesCommandOutput} + * @see {@link ListOpenCypherQueriesCommandInput} for command's `input` shape. + * @see {@link ListOpenCypherQueriesCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConcurrentModificationException} (server fault) + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link FailureByQueryException} (server fault) + *

Raised when a request fails.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidNumericDataException} (client fault) + *

Raised when invalid numerical data is encountered when servicing a request.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link ParsingException} (client fault) + *

Raised when a parsing issue is encountered.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link TimeLimitExceededException} (server fault) + *

Raised when the an operation exceeds the time limit allowed for it.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ListOpenCypherQueriesCommand extends $Command< + ListOpenCypherQueriesCommandInput, + ListOpenCypherQueriesCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ListOpenCypherQueriesCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ListOpenCypherQueriesCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ListOpenCypherQueriesCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ListOpenCypherQueriesCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ListOpenCypherQueriesCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ListOpenCypherQueriesCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ManagePropertygraphStatisticsCommand.ts b/clients/client-neptunedata/src/commands/ManagePropertygraphStatisticsCommand.ts new file mode 100644 index 0000000000000..389e53391b34a --- /dev/null +++ b/clients/client-neptunedata/src/commands/ManagePropertygraphStatisticsCommand.ts @@ -0,0 +1,192 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ManagePropertygraphStatisticsInput, ManagePropertygraphStatisticsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { + de_ManagePropertygraphStatisticsCommand, + se_ManagePropertygraphStatisticsCommand, +} from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ManagePropertygraphStatisticsCommand}. + */ +export interface ManagePropertygraphStatisticsCommandInput extends ManagePropertygraphStatisticsInput {} +/** + * @public + * + * The output of {@link ManagePropertygraphStatisticsCommand}. + */ +export interface ManagePropertygraphStatisticsCommandOutput + extends ManagePropertygraphStatisticsOutput, + __MetadataBearer {} + +/** + * @public + *

Manages the generation and use of property graph statistics.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ManagePropertygraphStatisticsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ManagePropertygraphStatisticsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ManagePropertygraphStatisticsInput + * mode: "disableAutoCompute" || "enableAutoCompute" || "refresh", + * }; + * const command = new ManagePropertygraphStatisticsCommand(input); + * const response = await client.send(command); + * // { // ManagePropertygraphStatisticsOutput + * // status: "STRING_VALUE", // required + * // payload: { // RefreshStatisticsIdMap + * // statisticsId: "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param ManagePropertygraphStatisticsCommandInput - {@link ManagePropertygraphStatisticsCommandInput} + * @returns {@link ManagePropertygraphStatisticsCommandOutput} + * @see {@link ManagePropertygraphStatisticsCommandInput} for command's `input` shape. + * @see {@link ManagePropertygraphStatisticsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ManagePropertygraphStatisticsCommand extends $Command< + ManagePropertygraphStatisticsCommandInput, + ManagePropertygraphStatisticsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ManagePropertygraphStatisticsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ManagePropertygraphStatisticsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ManagePropertygraphStatisticsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ManagePropertygraphStatisticsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ManagePropertygraphStatisticsCommand(input, context); + } + + /** + * @internal + */ + private deserialize( + output: __HttpResponse, + context: __SerdeContext + ): Promise { + return de_ManagePropertygraphStatisticsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/ManageSparqlStatisticsCommand.ts b/clients/client-neptunedata/src/commands/ManageSparqlStatisticsCommand.ts new file mode 100644 index 0000000000000..54450c42ae714 --- /dev/null +++ b/clients/client-neptunedata/src/commands/ManageSparqlStatisticsCommand.ts @@ -0,0 +1,184 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { ManageSparqlStatisticsInput, ManageSparqlStatisticsOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_ManageSparqlStatisticsCommand, se_ManageSparqlStatisticsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ManageSparqlStatisticsCommand}. + */ +export interface ManageSparqlStatisticsCommandInput extends ManageSparqlStatisticsInput {} +/** + * @public + * + * The output of {@link ManageSparqlStatisticsCommand}. + */ +export interface ManageSparqlStatisticsCommandOutput extends ManageSparqlStatisticsOutput, __MetadataBearer {} + +/** + * @public + *

Manages the generation and use of RDF graph statistics.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, ManageSparqlStatisticsCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, ManageSparqlStatisticsCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // ManageSparqlStatisticsInput + * mode: "disableAutoCompute" || "enableAutoCompute" || "refresh", + * }; + * const command = new ManageSparqlStatisticsCommand(input); + * const response = await client.send(command); + * // { // ManageSparqlStatisticsOutput + * // status: "STRING_VALUE", // required + * // payload: { // RefreshStatisticsIdMap + * // statisticsId: "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param ManageSparqlStatisticsCommandInput - {@link ManageSparqlStatisticsCommandInput} + * @returns {@link ManageSparqlStatisticsCommandOutput} + * @see {@link ManageSparqlStatisticsCommandInput} for command's `input` shape. + * @see {@link ManageSparqlStatisticsCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

Raised in case of an authentication or authorization failure.

+ * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link ReadOnlyViolationException} (client fault) + *

Raised when a request attempts to write to a read-only resource.

+ * + * @throws {@link StatisticsNotAvailableException} (client fault) + *

Raised when statistics needed to satisfy a request are not available.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class ManageSparqlStatisticsCommand extends $Command< + ManageSparqlStatisticsCommandInput, + ManageSparqlStatisticsCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: ManageSparqlStatisticsCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, ManageSparqlStatisticsCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "ManageSparqlStatisticsCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: ManageSparqlStatisticsCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_ManageSparqlStatisticsCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_ManageSparqlStatisticsCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/StartLoaderJobCommand.ts b/clients/client-neptunedata/src/commands/StartLoaderJobCommand.ts new file mode 100644 index 0000000000000..69ccccd336d85 --- /dev/null +++ b/clients/client-neptunedata/src/commands/StartLoaderJobCommand.ts @@ -0,0 +1,204 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { StartLoaderJobInput, StartLoaderJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_StartLoaderJobCommand, se_StartLoaderJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link StartLoaderJobCommand}. + */ +export interface StartLoaderJobCommandInput extends StartLoaderJobInput {} +/** + * @public + * + * The output of {@link StartLoaderJobCommand}. + */ +export interface StartLoaderJobCommandOutput extends StartLoaderJobOutput, __MetadataBearer {} + +/** + * @public + *

Starts a Neptune bulk loader job to load data from an Amazon S3 + * bucket into a Neptune DB instance. See Using the Amazon Neptune + * Bulk Loader to Ingest Data.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, StartLoaderJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, StartLoaderJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // StartLoaderJobInput + * source: "STRING_VALUE", // required + * format: "csv" || "opencypher" || "ntriples" || "nquads" || "rdfxml" || "turtle", // required + * s3BucketRegion: "us-east-1" || "us-east-2" || "us-west-1" || "us-west-2" || "ca-central-1" || "sa-east-1" || "eu-north-1" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "eu-central-1" || "me-south-1" || "af-south-1" || "ap-east-1" || "ap-northeast-1" || "ap-northeast-2" || "ap-southeast-1" || "ap-southeast-2" || "ap-south-1" || "cn-north-1" || "cn-northwest-1" || "us-gov-west-1" || "us-gov-east-1", // required + * iamRoleArn: "STRING_VALUE", // required + * mode: "RESUME" || "NEW" || "AUTO", + * failOnError: true || false, + * parallelism: "LOW" || "MEDIUM" || "HIGH" || "OVERSUBSCRIBE", + * parserConfiguration: { // StringValuedMap + * "": "STRING_VALUE", + * }, + * updateSingleCardinalityProperties: true || false, + * queueRequest: true || false, + * dependencies: [ // StringList + * "STRING_VALUE", + * ], + * userProvidedEdgeIds: true || false, + * }; + * const command = new StartLoaderJobCommand(input); + * const response = await client.send(command); + * // { // StartLoaderJobOutput + * // status: "STRING_VALUE", // required + * // payload: { // StringValuedMap // required + * // "": "STRING_VALUE", + * // }, + * // }; + * + * ``` + * + * @param StartLoaderJobCommandInput - {@link StartLoaderJobCommandInput} + * @returns {@link StartLoaderJobCommandOutput} + * @see {@link StartLoaderJobCommandInput} for command's `input` shape. + * @see {@link StartLoaderJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link BulkLoadIdNotFoundException} (client fault) + *

Raised when a specified bulk-load job ID cannot be found.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InternalFailureException} (server fault) + *

Raised when the processing of the request failed unexpectedly.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link LoadUrlAccessDeniedException} (client fault) + *

Raised when access is denied to a specified load URL.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link S3Exception} (client fault) + *

Raised when there is a problem accessing Amazon S3.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class StartLoaderJobCommand extends $Command< + StartLoaderJobCommandInput, + StartLoaderJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: StartLoaderJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StartLoaderJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "StartLoaderJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: StartLoaderJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_StartLoaderJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_StartLoaderJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/StartMLDataProcessingJobCommand.ts b/clients/client-neptunedata/src/commands/StartMLDataProcessingJobCommand.ts new file mode 100644 index 0000000000000..6e0834030651f --- /dev/null +++ b/clients/client-neptunedata/src/commands/StartMLDataProcessingJobCommand.ts @@ -0,0 +1,197 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { StartMLDataProcessingJobInput, StartMLDataProcessingJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_StartMLDataProcessingJobCommand, se_StartMLDataProcessingJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link StartMLDataProcessingJobCommand}. + */ +export interface StartMLDataProcessingJobCommandInput extends StartMLDataProcessingJobInput {} +/** + * @public + * + * The output of {@link StartMLDataProcessingJobCommand}. + */ +export interface StartMLDataProcessingJobCommandOutput extends StartMLDataProcessingJobOutput, __MetadataBearer {} + +/** + * @public + *

Creates a new Neptune ML data processing job for processing the + * graph data exported from Neptune for training. See The + * dataprocessing command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, StartMLDataProcessingJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, StartMLDataProcessingJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // StartMLDataProcessingJobInput + * id: "STRING_VALUE", + * previousDataProcessingJobId: "STRING_VALUE", + * inputDataS3Location: "STRING_VALUE", // required + * processedDataS3Location: "STRING_VALUE", // required + * sagemakerIamRoleArn: "STRING_VALUE", + * neptuneIamRoleArn: "STRING_VALUE", + * processingInstanceType: "STRING_VALUE", + * processingInstanceVolumeSizeInGB: Number("int"), + * processingTimeOutInSeconds: Number("int"), + * modelType: "STRING_VALUE", + * configFileName: "STRING_VALUE", + * subnets: [ // StringList + * "STRING_VALUE", + * ], + * securityGroupIds: [ + * "STRING_VALUE", + * ], + * volumeEncryptionKMSKey: "STRING_VALUE", + * s3OutputEncryptionKMSKey: "STRING_VALUE", + * }; + * const command = new StartMLDataProcessingJobCommand(input); + * const response = await client.send(command); + * // { // StartMLDataProcessingJobOutput + * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // creationTimeInMillis: Number("long"), + * // }; + * + * ``` + * + * @param StartMLDataProcessingJobCommandInput - {@link StartMLDataProcessingJobCommandInput} + * @returns {@link StartMLDataProcessingJobCommandOutput} + * @see {@link StartMLDataProcessingJobCommandInput} for command's `input` shape. + * @see {@link StartMLDataProcessingJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class StartMLDataProcessingJobCommand extends $Command< + StartMLDataProcessingJobCommandInput, + StartMLDataProcessingJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: StartMLDataProcessingJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StartMLDataProcessingJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "StartMLDataProcessingJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: StartMLDataProcessingJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_StartMLDataProcessingJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_StartMLDataProcessingJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/StartMLModelTrainingJobCommand.ts b/clients/client-neptunedata/src/commands/StartMLModelTrainingJobCommand.ts new file mode 100644 index 0000000000000..89cc9fbf8e58d --- /dev/null +++ b/clients/client-neptunedata/src/commands/StartMLModelTrainingJobCommand.ts @@ -0,0 +1,203 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { StartMLModelTrainingJobInput, StartMLModelTrainingJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_StartMLModelTrainingJobCommand, se_StartMLModelTrainingJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link StartMLModelTrainingJobCommand}. + */ +export interface StartMLModelTrainingJobCommandInput extends StartMLModelTrainingJobInput {} +/** + * @public + * + * The output of {@link StartMLModelTrainingJobCommand}. + */ +export interface StartMLModelTrainingJobCommandOutput extends StartMLModelTrainingJobOutput, __MetadataBearer {} + +/** + * @public + *

Creates a new Neptune ML model training job. See Model + * training using the modeltraining command.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, StartMLModelTrainingJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, StartMLModelTrainingJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // StartMLModelTrainingJobInput + * id: "STRING_VALUE", + * previousModelTrainingJobId: "STRING_VALUE", + * dataProcessingJobId: "STRING_VALUE", // required + * trainModelS3Location: "STRING_VALUE", // required + * sagemakerIamRoleArn: "STRING_VALUE", + * neptuneIamRoleArn: "STRING_VALUE", + * baseProcessingInstanceType: "STRING_VALUE", + * trainingInstanceType: "STRING_VALUE", + * trainingInstanceVolumeSizeInGB: Number("int"), + * trainingTimeOutInSeconds: Number("int"), + * maxHPONumberOfTrainingJobs: Number("int"), + * maxHPOParallelTrainingJobs: Number("int"), + * subnets: [ // StringList + * "STRING_VALUE", + * ], + * securityGroupIds: [ + * "STRING_VALUE", + * ], + * volumeEncryptionKMSKey: "STRING_VALUE", + * s3OutputEncryptionKMSKey: "STRING_VALUE", + * enableManagedSpotTraining: true || false, + * customModelTrainingParameters: { // CustomModelTrainingParameters + * sourceS3DirectoryPath: "STRING_VALUE", // required + * trainingEntryPointScript: "STRING_VALUE", + * transformEntryPointScript: "STRING_VALUE", + * }, + * }; + * const command = new StartMLModelTrainingJobCommand(input); + * const response = await client.send(command); + * // { // StartMLModelTrainingJobOutput + * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // creationTimeInMillis: Number("long"), + * // }; + * + * ``` + * + * @param StartMLModelTrainingJobCommandInput - {@link StartMLModelTrainingJobCommandInput} + * @returns {@link StartMLModelTrainingJobCommandOutput} + * @see {@link StartMLModelTrainingJobCommandInput} for command's `input` shape. + * @see {@link StartMLModelTrainingJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class StartMLModelTrainingJobCommand extends $Command< + StartMLModelTrainingJobCommandInput, + StartMLModelTrainingJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: StartMLModelTrainingJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StartMLModelTrainingJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "StartMLModelTrainingJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: StartMLModelTrainingJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_StartMLModelTrainingJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_StartMLModelTrainingJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/StartMLModelTransformJobCommand.ts b/clients/client-neptunedata/src/commands/StartMLModelTransformJobCommand.ts new file mode 100644 index 0000000000000..62465fac6afc7 --- /dev/null +++ b/clients/client-neptunedata/src/commands/StartMLModelTransformJobCommand.ts @@ -0,0 +1,198 @@ +// smithy-typescript generated code +import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { Command as $Command } from "@smithy/smithy-client"; +import { + FinalizeHandlerArguments, + Handler, + HandlerExecutionContext, + HttpHandlerOptions as __HttpHandlerOptions, + MetadataBearer as __MetadataBearer, + MiddlewareStack, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { StartMLModelTransformJobInput, StartMLModelTransformJobOutput } from "../models/models_0"; +import { NeptunedataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../NeptunedataClient"; +import { de_StartMLModelTransformJobCommand, se_StartMLModelTransformJobCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link StartMLModelTransformJobCommand}. + */ +export interface StartMLModelTransformJobCommandInput extends StartMLModelTransformJobInput {} +/** + * @public + * + * The output of {@link StartMLModelTransformJobCommand}. + */ +export interface StartMLModelTransformJobCommandOutput extends StartMLModelTransformJobOutput, __MetadataBearer {} + +/** + * @public + *

Creates a new model transform job. See Use + * a trained model to generate new model artifacts.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { NeptunedataClient, StartMLModelTransformJobCommand } from "@aws-sdk/client-neptunedata"; // ES Modules import + * // const { NeptunedataClient, StartMLModelTransformJobCommand } = require("@aws-sdk/client-neptunedata"); // CommonJS import + * const client = new NeptunedataClient(config); + * const input = { // StartMLModelTransformJobInput + * id: "STRING_VALUE", + * dataProcessingJobId: "STRING_VALUE", + * mlModelTrainingJobId: "STRING_VALUE", + * trainingJobName: "STRING_VALUE", + * modelTransformOutputS3Location: "STRING_VALUE", // required + * sagemakerIamRoleArn: "STRING_VALUE", + * neptuneIamRoleArn: "STRING_VALUE", + * customModelTransformParameters: { // CustomModelTransformParameters + * sourceS3DirectoryPath: "STRING_VALUE", // required + * transformEntryPointScript: "STRING_VALUE", + * }, + * baseProcessingInstanceType: "STRING_VALUE", + * baseProcessingInstanceVolumeSizeInGB: Number("int"), + * subnets: [ // StringList + * "STRING_VALUE", + * ], + * securityGroupIds: [ + * "STRING_VALUE", + * ], + * volumeEncryptionKMSKey: "STRING_VALUE", + * s3OutputEncryptionKMSKey: "STRING_VALUE", + * }; + * const command = new StartMLModelTransformJobCommand(input); + * const response = await client.send(command); + * // { // StartMLModelTransformJobOutput + * // id: "STRING_VALUE", + * // arn: "STRING_VALUE", + * // creationTimeInMillis: Number("long"), + * // }; + * + * ``` + * + * @param StartMLModelTransformJobCommandInput - {@link StartMLModelTransformJobCommandInput} + * @returns {@link StartMLModelTransformJobCommandOutput} + * @see {@link StartMLModelTransformJobCommandInput} for command's `input` shape. + * @see {@link StartMLModelTransformJobCommandOutput} for command's `response` shape. + * @see {@link NeptunedataClientResolvedConfig | config} for NeptunedataClient's `config` shape. + * + * @throws {@link BadRequestException} (client fault) + *

Raised when a request is submitted that cannot be processed.

+ * + * @throws {@link ClientTimeoutException} (client fault) + *

Raised when a request timed out in the client.

+ * + * @throws {@link ConstraintViolationException} (client fault) + *

Raised when a value in a request field did not satisfy required constraints.

+ * + * @throws {@link IllegalArgumentException} (client fault) + *

Raised when an argument in a request is not supported.

+ * + * @throws {@link InvalidArgumentException} (client fault) + *

Raised when an argument in a request has an invalid value.

+ * + * @throws {@link InvalidParameterException} (client fault) + *

Raised when a parameter value is not valid.

+ * + * @throws {@link MissingParameterException} (client fault) + *

Raised when a required parameter is missing.

+ * + * @throws {@link MLResourceNotFoundException} (client fault) + *

Raised when a specified machine-learning resource could not be found.

+ * + * @throws {@link PreconditionsFailedException} (client fault) + *

Raised when a precondition for processing a request is not satisfied.

+ * + * @throws {@link TooManyRequestsException} (client fault) + *

Raised when the number of requests being processed exceeds the limit.

+ * + * @throws {@link UnsupportedOperationException} (client fault) + *

Raised when a request attempts to initiate an operation that is not supported.

+ * + * @throws {@link NeptunedataServiceException} + *

Base exception class for all service exceptions from Neptunedata service.

+ * + */ +export class StartMLModelTransformJobCommand extends $Command< + StartMLModelTransformJobCommandInput, + StartMLModelTransformJobCommandOutput, + NeptunedataClientResolvedConfig +> { + // Start section: command_properties + // End section: command_properties + + public static getEndpointParameterInstructions(): EndpointParameterInstructions { + return { + UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, + Endpoint: { type: "builtInParams", name: "endpoint" }, + Region: { type: "builtInParams", name: "region" }, + UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, + }; + } + + /** + * @public + */ + constructor(readonly input: StartMLModelTransformJobCommandInput) { + // Start section: command_constructor + super(); + // End section: command_constructor + } + + /** + * @internal + */ + resolveMiddleware( + clientStack: MiddlewareStack, + configuration: NeptunedataClientResolvedConfig, + options?: __HttpHandlerOptions + ): Handler { + this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); + this.middlewareStack.use( + getEndpointPlugin(configuration, StartMLModelTransformJobCommand.getEndpointParameterInstructions()) + ); + + const stack = clientStack.concat(this.middlewareStack); + + const { logger } = configuration; + const clientName = "NeptunedataClient"; + const commandName = "StartMLModelTransformJobCommand"; + const handlerExecutionContext: HandlerExecutionContext = { + logger, + clientName, + commandName, + inputFilterSensitiveLog: (_: any) => _, + outputFilterSensitiveLog: (_: any) => _, + }; + const { requestHandler } = configuration; + return stack.resolve( + (request: FinalizeHandlerArguments) => + requestHandler.handle(request.request as __HttpRequest, options || {}), + handlerExecutionContext + ); + } + + /** + * @internal + */ + private serialize(input: StartMLModelTransformJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> { + return se_StartMLModelTransformJobCommand(input, context); + } + + /** + * @internal + */ + private deserialize(output: __HttpResponse, context: __SerdeContext): Promise { + return de_StartMLModelTransformJobCommand(output, context); + } + + // Start section: command_body_extra + // End section: command_body_extra +} diff --git a/clients/client-neptunedata/src/commands/index.ts b/clients/client-neptunedata/src/commands/index.ts new file mode 100644 index 0000000000000..7110b0b399d24 --- /dev/null +++ b/clients/client-neptunedata/src/commands/index.ts @@ -0,0 +1,44 @@ +// smithy-typescript generated code +export * from "./CancelGremlinQueryCommand"; +export * from "./CancelLoaderJobCommand"; +export * from "./CancelMLDataProcessingJobCommand"; +export * from "./CancelMLModelTrainingJobCommand"; +export * from "./CancelMLModelTransformJobCommand"; +export * from "./CancelOpenCypherQueryCommand"; +export * from "./CreateMLEndpointCommand"; +export * from "./DeleteMLEndpointCommand"; +export * from "./DeletePropertygraphStatisticsCommand"; +export * from "./DeleteSparqlStatisticsCommand"; +export * from "./ExecuteFastResetCommand"; +export * from "./ExecuteGremlinExplainQueryCommand"; +export * from "./ExecuteGremlinProfileQueryCommand"; +export * from "./ExecuteGremlinQueryCommand"; +export * from "./ExecuteOpenCypherExplainQueryCommand"; +export * from "./ExecuteOpenCypherQueryCommand"; +export * from "./GetEngineStatusCommand"; +export * from "./GetGremlinQueryStatusCommand"; +export * from "./GetLoaderJobStatusCommand"; +export * from "./GetMLDataProcessingJobCommand"; +export * from "./GetMLEndpointCommand"; +export * from "./GetMLModelTrainingJobCommand"; +export * from "./GetMLModelTransformJobCommand"; +export * from "./GetOpenCypherQueryStatusCommand"; +export * from "./GetPropertygraphStatisticsCommand"; +export * from "./GetPropertygraphStreamCommand"; +export * from "./GetPropertygraphSummaryCommand"; +export * from "./GetRDFGraphSummaryCommand"; +export * from "./GetSparqlStatisticsCommand"; +export * from "./GetSparqlStreamCommand"; +export * from "./ListGremlinQueriesCommand"; +export * from "./ListLoaderJobsCommand"; +export * from "./ListMLDataProcessingJobsCommand"; +export * from "./ListMLEndpointsCommand"; +export * from "./ListMLModelTrainingJobsCommand"; +export * from "./ListMLModelTransformJobsCommand"; +export * from "./ListOpenCypherQueriesCommand"; +export * from "./ManagePropertygraphStatisticsCommand"; +export * from "./ManageSparqlStatisticsCommand"; +export * from "./StartLoaderJobCommand"; +export * from "./StartMLDataProcessingJobCommand"; +export * from "./StartMLModelTrainingJobCommand"; +export * from "./StartMLModelTransformJobCommand"; diff --git a/clients/client-neptunedata/src/endpoint/EndpointParameters.ts b/clients/client-neptunedata/src/endpoint/EndpointParameters.ts new file mode 100644 index 0000000000000..2e0ef5f1e282f --- /dev/null +++ b/clients/client-neptunedata/src/endpoint/EndpointParameters.ts @@ -0,0 +1,34 @@ +// smithy-typescript generated code +import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types"; + +/** + * @public + */ +export interface ClientInputEndpointParameters { + region?: string | Provider; + useDualstackEndpoint?: boolean | Provider; + useFipsEndpoint?: boolean | Provider; + endpoint?: string | Provider | Endpoint | Provider | EndpointV2 | Provider; +} + +export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { + defaultSigningName: string; +}; + +export const resolveClientEndpointParameters = ( + options: T & ClientInputEndpointParameters +): T & ClientResolvedEndpointParameters => { + return { + ...options, + useDualstackEndpoint: options.useDualstackEndpoint ?? false, + useFipsEndpoint: options.useFipsEndpoint ?? false, + defaultSigningName: "neptune-db", + }; +}; + +export interface EndpointParameters extends __EndpointParameters { + Region?: string; + UseDualStack?: boolean; + UseFIPS?: boolean; + Endpoint?: string; +} diff --git a/clients/client-neptunedata/src/endpoint/endpointResolver.ts b/clients/client-neptunedata/src/endpoint/endpointResolver.ts new file mode 100644 index 0000000000000..3fbea60c40b6e --- /dev/null +++ b/clients/client-neptunedata/src/endpoint/endpointResolver.ts @@ -0,0 +1,16 @@ +// smithy-typescript generated code +import { EndpointParams, resolveEndpoint } from "@aws-sdk/util-endpoints"; +import { EndpointV2, Logger } from "@smithy/types"; + +import { EndpointParameters } from "./EndpointParameters"; +import { ruleSet } from "./ruleset"; + +export const defaultEndpointResolver = ( + endpointParams: EndpointParameters, + context: { logger?: Logger } = {} +): EndpointV2 => { + return resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }); +}; diff --git a/clients/client-neptunedata/src/endpoint/ruleset.ts b/clients/client-neptunedata/src/endpoint/ruleset.ts new file mode 100644 index 0000000000000..6de81b60f2643 --- /dev/null +++ b/clients/client-neptunedata/src/endpoint/ruleset.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +// generated code, do not edit +import { RuleSetObject } from "@smithy/types"; + +/* This file is compressed. Log this object + or see "smithy.rules#endpointRuleSet" + in codegen/sdk-codegen/aws-models/neptunedata.json */ + +const q="required", +r="fn", +s="argv", +t="ref"; +const a="isSet", +b="tree", +c="error", +d="endpoint", +e="PartitionResult", +f={[q]:false,"type":"String"}, +g={[q]:true,"default":false,"type":"Boolean"}, +h={[t]:"Endpoint"}, +i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]}, +j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]}, +k={}, +l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]}, +m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]}, +n=[i], +o=[j], +p=[{[t]:"Region"}]; +const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://neptune-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://neptune-db-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://neptune-db.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://neptune-db.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]}; +export const ruleSet: RuleSetObject = _data; diff --git a/clients/client-neptunedata/src/extensionConfiguration.ts b/clients/client-neptunedata/src/extensionConfiguration.ts new file mode 100644 index 0000000000000..89e52f547af2e --- /dev/null +++ b/clients/client-neptunedata/src/extensionConfiguration.ts @@ -0,0 +1,7 @@ +// smithy-typescript generated code +import { DefaultExtensionConfiguration } from "@smithy/types"; + +/** + * @internal + */ +export interface NeptunedataExtensionConfiguration extends DefaultExtensionConfiguration {} diff --git a/clients/client-neptunedata/src/index.ts b/clients/client-neptunedata/src/index.ts new file mode 100644 index 0000000000000..d7da9c244f59d --- /dev/null +++ b/clients/client-neptunedata/src/index.ts @@ -0,0 +1,19 @@ +// smithy-typescript generated code +/* eslint-disable */ +/** + * Neptune Data API + *

The Amazon Neptune data API provides SDK support for more than 40 of Neptune's data + * operations, including data loading, query execution, data inquiry, and machine learning. + * It supports all three Neptune query languages (Gremlin, openCypher and SPARQL), and is + * available in all SDK languages. It automatically signs API requests and greatly simplifies + * integrating Neptune into your applications.

+ * + * @packageDocumentation + */ +export * from "./NeptunedataClient"; +export * from "./Neptunedata"; +export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; +export * from "./commands"; +export * from "./models"; + +export { NeptunedataServiceException } from "./models/NeptunedataServiceException"; diff --git a/clients/client-neptunedata/src/models/NeptunedataServiceException.ts b/clients/client-neptunedata/src/models/NeptunedataServiceException.ts new file mode 100644 index 0000000000000..c11fd21d95fb9 --- /dev/null +++ b/clients/client-neptunedata/src/models/NeptunedataServiceException.ts @@ -0,0 +1,22 @@ +// smithy-typescript generated code +import { + ServiceException as __ServiceException, + ServiceExceptionOptions as __ServiceExceptionOptions, +} from "@smithy/smithy-client"; + +export { __ServiceException, __ServiceExceptionOptions }; + +/** + * @public + * + * Base exception class for all service exceptions from Neptunedata service. + */ +export class NeptunedataServiceException extends __ServiceException { + /** + * @internal + */ + constructor(options: __ServiceExceptionOptions) { + super(options); + Object.setPrototypeOf(this, NeptunedataServiceException.prototype); + } +} diff --git a/clients/client-neptunedata/src/models/index.ts b/clients/client-neptunedata/src/models/index.ts new file mode 100644 index 0000000000000..9eaceb12865f8 --- /dev/null +++ b/clients/client-neptunedata/src/models/index.ts @@ -0,0 +1,2 @@ +// smithy-typescript generated code +export * from "./models_0"; diff --git a/clients/client-neptunedata/src/models/models_0.ts b/clients/client-neptunedata/src/models/models_0.ts new file mode 100644 index 0000000000000..66bdc0e5114a7 --- /dev/null +++ b/clients/client-neptunedata/src/models/models_0.ts @@ -0,0 +1,4831 @@ +// smithy-typescript generated code +import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; +import { DocumentType as __DocumentType } from "@smithy/types"; + +import { NeptunedataServiceException as __BaseException } from "./NeptunedataServiceException"; + +/** + * @public + *

Raised in case of an authentication or authorization failure.

+ */ +export class AccessDeniedException extends __BaseException { + readonly name: "AccessDeniedException" = "AccessDeniedException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "AccessDeniedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, AccessDeniedException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + * @enum + */ +export const Action = { + INITIALIZE_RESET: "initiateDatabaseReset", + PERFORM_RESET: "performDatabaseReset", +} as const; + +/** + * @public + */ +export type Action = (typeof Action)[keyof typeof Action]; + +/** + * @public + *

Raised when a request is submitted that cannot be processed.

+ */ +export class BadRequestException extends __BaseException { + readonly name: "BadRequestException" = "BadRequestException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the bad request.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "BadRequestException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, BadRequestException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface CancelGremlinQueryInput { + /** + * @public + *

The unique identifier that identifies the query to be canceled.

+ */ + queryId: string | undefined; +} + +/** + * @public + */ +export interface CancelGremlinQueryOutput { + /** + * @public + *

The status of the cancelation

+ */ + status?: string; +} + +/** + * @public + *

Raised when a request timed out in the client.

+ */ +export class ClientTimeoutException extends __BaseException { + readonly name: "ClientTimeoutException" = "ClientTimeoutException"; + readonly $fault: "client" = "client"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ClientTimeoutException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ClientTimeoutException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a request attempts to modify data that is concurrently being + * modified by another process.

+ */ +export class ConcurrentModificationException extends __BaseException { + readonly name: "ConcurrentModificationException" = "ConcurrentModificationException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ConcurrentModificationException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, ConcurrentModificationException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a value in a request field did not satisfy required constraints.

+ */ +export class ConstraintViolationException extends __BaseException { + readonly name: "ConstraintViolationException" = "ConstraintViolationException"; + readonly $fault: "client" = "client"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ConstraintViolationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ConstraintViolationException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a request fails.

+ */ +export class FailureByQueryException extends __BaseException { + readonly name: "FailureByQueryException" = "FailureByQueryException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "FailureByQueryException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, FailureByQueryException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when an argument in a request is not supported.

+ */ +export class IllegalArgumentException extends __BaseException { + readonly name: "IllegalArgumentException" = "IllegalArgumentException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "IllegalArgumentException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, IllegalArgumentException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when an argument in a request has an invalid value.

+ */ +export class InvalidArgumentException extends __BaseException { + readonly name: "InvalidArgumentException" = "InvalidArgumentException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InvalidArgumentException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidArgumentException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a parameter value is not valid.

+ */ +export class InvalidParameterException extends __BaseException { + readonly name: "InvalidParameterException" = "InvalidParameterException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request that includes an invalid parameter.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InvalidParameterException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidParameterException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a required parameter is missing.

+ */ +export class MissingParameterException extends __BaseException { + readonly name: "MissingParameterException" = "MissingParameterException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in which the parameter is missing.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "MissingParameterException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, MissingParameterException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a parsing issue is encountered.

+ */ +export class ParsingException extends __BaseException { + readonly name: "ParsingException" = "ParsingException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ParsingException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ParsingException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a precondition for processing a request is not satisfied.

+ */ +export class PreconditionsFailedException extends __BaseException { + readonly name: "PreconditionsFailedException" = "PreconditionsFailedException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "PreconditionsFailedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, PreconditionsFailedException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when the an operation exceeds the time limit allowed for it.

+ */ +export class TimeLimitExceededException extends __BaseException { + readonly name: "TimeLimitExceededException" = "TimeLimitExceededException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request that could not be processed for this reason.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "TimeLimitExceededException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, TimeLimitExceededException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when the number of requests being processed exceeds the limit.

+ */ +export class TooManyRequestsException extends __BaseException { + readonly name: "TooManyRequestsException" = "TooManyRequestsException"; + readonly $fault: "client" = "client"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request that could not be processed for this reason.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "TooManyRequestsException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, TooManyRequestsException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a request attempts to initiate an operation that is not supported.

+ */ +export class UnsupportedOperationException extends __BaseException { + readonly name: "UnsupportedOperationException" = "UnsupportedOperationException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "UnsupportedOperationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, UnsupportedOperationException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a specified bulk-load job ID cannot be found.

+ */ +export class BulkLoadIdNotFoundException extends __BaseException { + readonly name: "BulkLoadIdNotFoundException" = "BulkLoadIdNotFoundException"; + readonly $fault: "client" = "client"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The bulk-load job ID that could not be found.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "BulkLoadIdNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, BulkLoadIdNotFoundException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface CancelLoaderJobInput { + /** + * @public + *

The ID of the load job to be deleted.

+ */ + loadId: string | undefined; +} + +/** + * @public + */ +export interface CancelLoaderJobOutput { + /** + * @public + *

The cancellation status.

+ */ + status?: string; +} + +/** + * @public + *

Raised when the processing of the request failed unexpectedly.

+ */ +export class InternalFailureException extends __BaseException { + readonly name: "InternalFailureException" = "InternalFailureException"; + readonly $fault: "server" = "server"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InternalFailureException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, InternalFailureException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when access is denied to a specified load URL.

+ */ +export class LoadUrlAccessDeniedException extends __BaseException { + readonly name: "LoadUrlAccessDeniedException" = "LoadUrlAccessDeniedException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "LoadUrlAccessDeniedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, LoadUrlAccessDeniedException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface CancelMLDataProcessingJobInput { + /** + * @public + *

The unique identifier of the data-processing job.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

If set to TRUE, this flag specifies that all + * Neptune ML S3 artifacts should be deleted when the job is stopped. + * The default is FALSE.

+ */ + clean?: boolean; +} + +/** + * @public + */ +export interface CancelMLDataProcessingJobOutput { + /** + * @public + *

The status of the cancellation request.

+ */ + status?: string; +} + +/** + * @public + *

Raised when a specified machine-learning resource could not be found.

+ */ +export class MLResourceNotFoundException extends __BaseException { + readonly name: "MLResourceNotFoundException" = "MLResourceNotFoundException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "MLResourceNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, MLResourceNotFoundException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface CancelMLModelTrainingJobInput { + /** + * @public + *

The unique identifier of the model-training job to be canceled.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

If set to TRUE, this flag specifies that all + * Amazon S3 artifacts should be deleted when the job is stopped. + * The default is FALSE.

+ */ + clean?: boolean; +} + +/** + * @public + */ +export interface CancelMLModelTrainingJobOutput { + /** + * @public + *

The status of the cancellation.

+ */ + status?: string; +} + +/** + * @public + */ +export interface CancelMLModelTransformJobInput { + /** + * @public + *

The unique ID of the model transform job to be canceled.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

If this flag is set to TRUE, all Neptune ML S3 artifacts + * should be deleted when the job is stopped. The default is FALSE.

+ */ + clean?: boolean; +} + +/** + * @public + */ +export interface CancelMLModelTransformJobOutput { + /** + * @public + *

the status of the cancelation.

+ */ + status?: string; +} + +/** + * @public + */ +export interface CancelOpenCypherQueryInput { + /** + * @public + *

The unique ID of the openCypher query to cancel.

+ */ + queryId: string | undefined; + + /** + * @public + *

If set to TRUE, causes the cancelation of the + * openCypher query to happen silently.

+ */ + silent?: boolean; +} + +/** + * @public + */ +export interface CancelOpenCypherQueryOutput { + /** + * @public + *

The cancellation status of the openCypher query.

+ */ + status?: string; + + /** + * @public + *

The cancelation payload for the openCypher query.

+ */ + payload?: boolean; +} + +/** + * @public + *

Raised when invalid numerical data is encountered when servicing a request.

+ */ +export class InvalidNumericDataException extends __BaseException { + readonly name: "InvalidNumericDataException" = "InvalidNumericDataException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "InvalidNumericDataException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, InvalidNumericDataException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface CreateMLEndpointInput { + /** + * @public + *

A unique identifier for the new inference endpoint. The default + * is an autogenerated timestamped name.

+ */ + id?: string; + + /** + * @public + *

The job Id of the completed model-training job that has created the + * model that the inference endpoint will point to. You must supply either + * the mlModelTrainingJobId or the mlModelTransformJobId.

+ */ + mlModelTrainingJobId?: string; + + /** + * @public + *

The job Id of the completed model-transform job. You must supply + * either the mlModelTrainingJobId or the mlModelTransformJobId.

+ */ + mlModelTransformJobId?: string; + + /** + * @public + *

If set to true, update indicates that this + * is an update request. The default is false. You must supply + * either the mlModelTrainingJobId or the mlModelTransformJobId.

+ */ + update?: boolean; + + /** + * @public + *

The ARN of an IAM role providing Neptune access to SageMaker and + * Amazon S3 resources. This must be listed in your DB cluster parameter + * group or an error will be thrown.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

Model type for training. By default the Neptune ML model is + * automatically based on the modelType used in data processing, + * but you can specify a different model type here. The default is + * rgcn for heterogeneous graphs and kge for + * knowledge graphs. The only valid value for heterogeneous graphs is + * rgcn. Valid values for knowledge graphs are: kge, + * transe, distmult, and rotate.

+ */ + modelName?: string; + + /** + * @public + *

The type of Neptune ML instance to use for online servicing. + * The default is ml.m5.xlarge. Choosing the ML instance + * for an inference endpoint depends on the task type, the graph size, + * and your budget.

+ */ + instanceType?: string; + + /** + * @public + *

The minimum number of Amazon EC2 instances to deploy to an endpoint + * for prediction. The default is 1

+ */ + instanceCount?: number; + + /** + * @public + *

The Amazon Key Management Service (Amazon KMS) key that SageMaker uses + * to encrypt data on the storage volume attached to the ML compute instances + * that run the training job. The default is None.

+ */ + volumeEncryptionKMSKey?: string; +} + +/** + * @public + */ +export interface CreateMLEndpointOutput { + /** + * @public + *

The unique ID of the new inference endpoint.

+ */ + id?: string; + + /** + * @public + *

The ARN for the new inference endpoint.

+ */ + arn?: string; + + /** + * @public + *

The endpoint creation time, in milliseconds.

+ */ + creationTimeInMillis?: number; +} + +/** + * @public + */ +export interface DeleteMLEndpointInput { + /** + * @public + *

The unique identifier of the inference endpoint.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role providing Neptune access to SageMaker and + * Amazon S3 resources. This must be listed in your DB cluster parameter + * group or an error will be thrown.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

If this flag is set to TRUE, all Neptune ML S3 artifacts + * should be deleted when the job is stopped. The default is + * FALSE.

+ */ + clean?: boolean; +} + +/** + * @public + */ +export interface DeleteMLEndpointOutput { + /** + * @public + *

The status of the cancellation.

+ */ + status?: string; +} + +/** + * @public + *

The payload for DeleteStatistics.

+ */ +export interface DeleteStatisticsValueMap { + /** + * @public + *

The current status of the statistics.

+ */ + active?: boolean; + + /** + * @public + *

The ID of the statistics generation run that is currently occurring.

+ */ + statisticsId?: string; +} + +/** + * @public + */ +export interface DeletePropertygraphStatisticsOutput { + /** + * @public + *

The HTTP response code: 200 if the delete was successful, or + * 204 if there were no statistics to delete.

+ */ + statusCode?: number; + + /** + * @public + *

The cancel status.

+ */ + status?: string; + + /** + * @public + *

The deletion payload.

+ */ + payload?: DeleteStatisticsValueMap; +} + +/** + * @public + *

Raised when a request attempts to write to a read-only resource.

+ */ +export class ReadOnlyViolationException extends __BaseException { + readonly name: "ReadOnlyViolationException" = "ReadOnlyViolationException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in which the parameter is missing.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ReadOnlyViolationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ReadOnlyViolationException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when statistics needed to satisfy a request are not available.

+ */ +export class StatisticsNotAvailableException extends __BaseException { + readonly name: "StatisticsNotAvailableException" = "StatisticsNotAvailableException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "StatisticsNotAvailableException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, StatisticsNotAvailableException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface DeleteSparqlStatisticsOutput { + /** + * @public + *

The HTTP response code: 200 if the delete was successful, or + * 204 if there were no statistics to delete.

+ */ + statusCode?: number; + + /** + * @public + *

The cancel status.

+ */ + status?: string; + + /** + * @public + *

The deletion payload.

+ */ + payload?: DeleteStatisticsValueMap; +} + +/** + * @public + */ +export interface ExecuteFastResetInput { + /** + * @public + *

The fast reset action. One of the following values:

+ *
    + *
  • + *

    + * + * initiateDatabaseReset + *   – + * This action generates a unique token needed to actually perform the + * fast reset.

    + *
  • + *
  • + *

    + * + * performDatabaseReset + *   – + * This action uses the token generated by the initiateDatabaseReset action + * to actually perform the fast reset.

    + *

    + *

  • + *
+ */ + action: Action | string | undefined; + + /** + * @public + *

The fast-reset token to initiate the reset.

+ */ + token?: string; +} + +/** + * @public + *

A structure containing the fast reset token used to initiate + * a fast reset.

+ */ +export interface FastResetToken { + /** + * @public + *

A UUID generated by the database in the initiateDatabaseReset action, + * and then consumed by the performDatabaseReset to reset the database.

+ */ + token?: string; +} + +/** + * @public + */ +export interface ExecuteFastResetOutput { + /** + * @public + *

The status is only returned for the performDatabaseReset + * action, and indicates whether or not the fast reset rquest is accepted.

+ */ + status: string | undefined; + + /** + * @public + *

The payload is only returned by the initiateDatabaseReset + * action, and contains the unique token to use with the performDatabaseReset + * action to make the reset occur.

+ */ + payload?: FastResetToken; +} + +/** + * @public + *

Raised when the HTTP method used by a request is not supported by the endpoint + * being used.

+ */ +export class MethodNotAllowedException extends __BaseException { + readonly name: "MethodNotAllowedException" = "MethodNotAllowedException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "MethodNotAllowedException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, MethodNotAllowedException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when the server shuts down while processing a request.

+ */ +export class ServerShutdownException extends __BaseException { + readonly name: "ServerShutdownException" = "ServerShutdownException"; + readonly $fault: "server" = "server"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ServerShutdownException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, ServerShutdownException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a user cancelled a request.

+ */ +export class CancelledByUserException extends __BaseException { + readonly name: "CancelledByUserException" = "CancelledByUserException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "CancelledByUserException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, CancelledByUserException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface ExecuteGremlinExplainQueryInput { + /** + * @public + *

The Gremlin explain query string.

+ */ + gremlinQuery: string | undefined; +} + +/** + * @public + */ +export interface ExecuteGremlinExplainQueryOutput { + /** + * @public + *

A text blob containing the Gremlin explain result, as described + * in Tuning + * Gremlin queries.

+ */ + output?: Uint8Array; +} + +/** + * @public + *

Raised when a query is submitted that is syntactically incorrect or does not + * pass additional validation.

+ */ +export class MalformedQueryException extends __BaseException { + readonly name: "MalformedQueryException" = "MalformedQueryException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the malformed query request.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "MalformedQueryException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, MalformedQueryException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when a request fails because of insufficient memory resources. The + * request can be retried.

+ */ +export class MemoryLimitExceededException extends __BaseException { + readonly name: "MemoryLimitExceededException" = "MemoryLimitExceededException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request that failed.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "MemoryLimitExceededException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, MemoryLimitExceededException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when the number of active queries exceeds what the server can process. + * The query in question can be retried when the system is less busy.

+ */ +export class QueryLimitExceededException extends __BaseException { + readonly name: "QueryLimitExceededException" = "QueryLimitExceededException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request which exceeded the limit.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "QueryLimitExceededException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, QueryLimitExceededException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when the size of a query exceeds the system limit.

+ */ +export class QueryLimitException extends __BaseException { + readonly name: "QueryLimitException" = "QueryLimitException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request that exceeded the limit.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "QueryLimitException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, QueryLimitException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when the body of a query is too large.

+ */ +export class QueryTooLargeException extends __BaseException { + readonly name: "QueryTooLargeException" = "QueryTooLargeException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request that is too large.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "QueryTooLargeException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, QueryTooLargeException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + */ +export interface ExecuteGremlinProfileQueryInput { + /** + * @public + *

The Gremlin query string to profile.

+ */ + gremlinQuery: string | undefined; + + /** + * @public + *

If this flag is set to TRUE, the query results are + * gathered and displayed as part of the profile report. + * If FALSE, only the result count is displayed.

+ */ + results?: boolean; + + /** + * @public + *

If non-zero, causes the results string to be truncated at that + * number of characters. If set to zero, the string contains all the results.

+ */ + chop?: number; + + /** + * @public + *

If non-null, the gathered results are returned in a serialized response + * message in the format specified by this parameter. See Gremlin profile + * API in Neptune for more information.

+ */ + serializer?: string; + + /** + * @public + *

If this flag is set to TRUE, the results include a + * detailed report of all index operations that took place during query + * execution and serialization.

+ */ + indexOps?: boolean; +} + +/** + * @public + */ +export interface ExecuteGremlinProfileQueryOutput { + /** + * @public + *

A text blob containing the Gremlin Profile result. See + * Gremlin + * profile API in Neptune for details.

+ */ + output?: Uint8Array; +} + +/** + * @public + */ +export interface ExecuteGremlinQueryInput { + /** + * @public + *

Using this API, you can run Gremlin queries in string format + * much as you can using the HTTP endpoint. The interface is + * compatible with whatever Gremlin version your DB cluster is using + * (see the Tinkerpop + * client section to determine which Gremlin releases your + * engine version supports).

+ */ + gremlinQuery: string | undefined; + + /** + * @public + *

If non-null, the query results are returned in a serialized response + * message in the format specified by this parameter. See the GraphSON + * section in the TinkerPop documentation for a list of the formats that + * are currently supported.

+ */ + serializer?: string; +} + +/** + * @public + *

Contains status components of a Gremlin query.

+ */ +export interface GremlinQueryStatusAttributes { + /** + * @public + *

The status message.

+ */ + message?: string; + + /** + * @public + *

The HTTP response code returned fro the Gremlin query request..

+ */ + code?: number; + + /** + * @public + *

Attributes of the Gremlin query status.

+ */ + attributes?: __DocumentType; +} + +/** + * @public + */ +export interface ExecuteGremlinQueryOutput { + /** + * @public + *

The unique identifier of the Gremlin query.

+ */ + requestId?: string; + + /** + * @public + *

The status of the Gremlin query.

+ */ + status?: GremlinQueryStatusAttributes; + + /** + * @public + *

The Gremlin query output from the server.

+ */ + result?: __DocumentType; + + /** + * @public + *

Metadata about the Gremlin query.

+ */ + meta?: __DocumentType; +} + +/** + * @public + * @enum + */ +export const OpenCypherExplainMode = { + DETAILS: "details", + DYNAMIC: "dynamic", + STATIC: "static", +} as const; + +/** + * @public + */ +export type OpenCypherExplainMode = (typeof OpenCypherExplainMode)[keyof typeof OpenCypherExplainMode]; + +/** + * @public + */ +export interface ExecuteOpenCypherExplainQueryInput { + /** + * @public + *

The openCypher query string.

+ */ + openCypherQuery: string | undefined; + + /** + * @public + *

The openCypher query parameters.

+ */ + parameters?: string; + + /** + * @public + *

The openCypher explain mode. Can be one of: + * static, dynamic, or details.

+ */ + explainMode: OpenCypherExplainMode | string | undefined; +} + +/** + * @public + */ +export interface ExecuteOpenCypherExplainQueryOutput { + /** + * @public + *

A text blob containing the openCypher explain results.

+ */ + results: Uint8Array | undefined; +} + +/** + * @public + */ +export interface ExecuteOpenCypherQueryInput { + /** + * @public + *

The openCypher query string to be executed.

+ */ + openCypherQuery: string | undefined; + + /** + * @public + *

The openCypher query parameters for query execution. + * See Examples + * of openCypher parameterized queries for more information.

+ */ + parameters?: string; +} + +/** + * @public + */ +export interface ExecuteOpenCypherQueryOutput { + /** + * @public + *

The openCypherquery results.

+ */ + results: __DocumentType | undefined; +} + +/** + * @public + *

Structure for expressing the query language version.

+ */ +export interface QueryLanguageVersion { + /** + * @public + *

The version of the query language.

+ */ + version: string | undefined; +} + +/** + * @public + */ +export interface GetEngineStatusOutput { + /** + * @public + *

Set to healthy if the instance is not experiencing problems. + * If the instance is recovering from a crash or from being rebooted and there + * are active transactions running from the latest server shutdown, status is set + * to recovery.

+ */ + status?: string; + + /** + * @public + *

Set to the UTC time at which the current server process started.

+ */ + startTime?: string; + + /** + * @public + *

Set to the Neptune engine version running on your DB cluster. + * If this engine version has been manually patched since it was released, + * the version number is prefixed by Patch-.

+ */ + dbEngineVersion?: string; + + /** + * @public + *

Set to reader if the instance is a read-replica, + * or to writer if the instance is the primary instance.

+ */ + role?: string; + + /** + * @public + *

Set to enabled if the DFE engine is fully enabled, + * or to viaQueryHint (the default) if the DFE engine is + * only used with queries that have the useDFE query hint + * set to true.

+ */ + dfeQueryEngine?: string; + + /** + * @public + *

Contains information about the Gremlin query language available + * on your cluster. Specifically, it contains a version field that specifies + * the current TinkerPop version being used by the engine.

+ */ + gremlin?: QueryLanguageVersion; + + /** + * @public + *

Contains information about the SPARQL query language available + * on your cluster. Specifically, it contains a version field that + * specifies the current SPARQL version being used by the engine.

+ */ + sparql?: QueryLanguageVersion; + + /** + * @public + *

Contains information about the openCypher query language available + * on your cluster. Specifically, it contains a version field that + * specifies the current operCypher version being used by the engine.

+ */ + opencypher?: QueryLanguageVersion; + + /** + * @public + *

Contains Lab Mode settings being used by the engine.

+ */ + labMode?: Record; + + /** + * @public + *

If there are transactions being rolled back, this field is set + * to the number of such transactions. If there are none, the field + * doesn't appear at all.

+ */ + rollingBackTrxCount?: number; + + /** + * @public + *

Set to the start time of the earliest transaction being rolled back. + * If no transactions are being rolled back, the field doesn't appear at all.

+ */ + rollingBackTrxEarliestStartTime?: string; + + /** + * @public + *

Contains status information about the features enabled on your DB cluster.

+ */ + features?: Record; + + /** + * @public + *

Contains information about the current settings on your DB cluster. + * For example, contains the current cluster query timeout setting + * (clusterQueryTimeoutInMs).

+ */ + settings?: Record; +} + +/** + * @public + */ +export interface GetGremlinQueryStatusInput { + /** + * @public + *

The unique identifier that identifies the Gremlin query.

+ */ + queryId: string | undefined; +} + +/** + * @public + *

Structure to capture query statistics such as how many queries + * are running, accepted or waiting and their details.

+ */ +export interface QueryEvalStats { + /** + * @public + *

Indicates how long the query waited, in milliseconds.

+ */ + waited?: number; + + /** + * @public + *

The number of milliseconds the query has been running so far.

+ */ + elapsed?: number; + + /** + * @public + *

Set to TRUE if the query was cancelled, or FALSE + * otherwise.

+ */ + cancelled?: boolean; + + /** + * @public + *

The number of subqueries in this query.

+ */ + subqueries?: __DocumentType; +} + +/** + * @public + */ +export interface GetGremlinQueryStatusOutput { + /** + * @public + *

The ID of the query for which status is being returned.

+ */ + queryId?: string; + + /** + * @public + *

The Gremlin query string.

+ */ + queryString?: string; + + /** + * @public + *

The evaluation status of the Gremlin query.

+ */ + queryEvalStats?: QueryEvalStats; +} + +/** + * @public + */ +export interface GetLoaderJobStatusInput { + /** + * @public + *

The load ID of the load job to get the status of.

+ */ + loadId: string | undefined; + + /** + * @public + *

Flag indicating whether or not to include details beyond the + * overall status (TRUE or FALSE; the default + * is FALSE).

+ */ + details?: boolean; + + /** + * @public + *

Flag indicating whether or not to include a list of errors + * encountered (TRUE or FALSE; the default + * is FALSE).

+ *

The list of errors is paged. The page and errorsPerPage + * parameters allow you to page through all the errors.

+ */ + errors?: boolean; + + /** + * @public + *

The error page number (a positive integer; the default is 1). + * Only valid when the errors parameter is set to + * TRUE.

+ */ + page?: number; + + /** + * @public + *

The number of errors returned in each page (a positive integer; the + * default is 10). Only valid when the errors + * parameter set to TRUE.

+ */ + errorsPerPage?: number; +} + +/** + * @public + */ +export interface GetLoaderJobStatusOutput { + /** + * @public + *

The HTTP response code for the request.

+ */ + status: string | undefined; + + /** + * @public + *

Status information about the load job, in a layout + * that could look like this:

+ */ + payload: __DocumentType | undefined; +} + +/** + * @public + */ +export interface GetMLDataProcessingJobInput { + /** + * @public + *

The unique identifier of the data-processing job to be retrieved.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + *

Defines a Neptune ML resource.

+ */ +export interface MlResourceDefinition { + /** + * @public + *

The resource name.

+ */ + name?: string; + + /** + * @public + *

The resource ARN.

+ */ + arn?: string; + + /** + * @public + *

The resource status.

+ */ + status?: string; + + /** + * @public + *

The output location.

+ */ + outputLocation?: string; + + /** + * @public + *

The failure reason, in case of a failure.

+ */ + failureReason?: string; + + /** + * @public + *

The CloudWatch log URL for the resource.

+ */ + cloudwatchLogUrl?: string; +} + +/** + * @public + */ +export interface GetMLDataProcessingJobOutput { + /** + * @public + *

Status of the data processing job.

+ */ + status?: string; + + /** + * @public + *

The unique identifier of this data-processing job.

+ */ + id?: string; + + /** + * @public + *

Definition of the data processing job.

+ */ + processingJob?: MlResourceDefinition; +} + +/** + * @public + */ +export interface GetMLEndpointInput { + /** + * @public + *

The unique identifier of the inference endpoint.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster parameter + * group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + *

Contains a Neptune ML configuration.

+ */ +export interface MlConfigDefinition { + /** + * @public + *

The configuration name.

+ */ + name?: string; + + /** + * @public + *

The ARN for the configuration.

+ */ + arn?: string; +} + +/** + * @public + */ +export interface GetMLEndpointOutput { + /** + * @public + *

The status of the inference endpoint.

+ */ + status?: string; + + /** + * @public + *

The unique identifier of the inference endpoint.

+ */ + id?: string; + + /** + * @public + *

The endpoint definition.

+ */ + endpoint?: MlResourceDefinition; + + /** + * @public + *

The endpoint configuration

+ */ + endpointConfig?: MlConfigDefinition; +} + +/** + * @public + */ +export interface GetMLModelTrainingJobInput { + /** + * @public + *

The unique identifier of the model-training job to retrieve.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + */ +export interface GetMLModelTrainingJobOutput { + /** + * @public + *

The status of the model training job.

+ */ + status?: string; + + /** + * @public + *

The unique identifier of this model-training job.

+ */ + id?: string; + + /** + * @public + *

The data processing job.

+ */ + processingJob?: MlResourceDefinition; + + /** + * @public + *

The HPO job.

+ */ + hpoJob?: MlResourceDefinition; + + /** + * @public + *

The model transform job.

+ */ + modelTransformJob?: MlResourceDefinition; + + /** + * @public + *

A list of the configurations of the ML models being used.

+ */ + mlModels?: MlConfigDefinition[]; +} + +/** + * @public + */ +export interface GetMLModelTransformJobInput { + /** + * @public + *

The unique identifier of the model-transform job to be reetrieved.

+ */ + id: string | undefined; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + */ +export interface GetMLModelTransformJobOutput { + /** + * @public + *

The status of the model-transform job.

+ */ + status?: string; + + /** + * @public + *

The unique identifier of the model-transform job to be retrieved.

+ */ + id?: string; + + /** + * @public + *

The base data processing job.

+ */ + baseProcessingJob?: MlResourceDefinition; + + /** + * @public + *

The remote model transform job.

+ */ + remoteModelTransformJob?: MlResourceDefinition; + + /** + * @public + *

A list of the configuration information for the models being used.

+ */ + models?: MlConfigDefinition[]; +} + +/** + * @public + */ +export interface GetOpenCypherQueryStatusInput { + /** + * @public + *

The unique ID of the openCypher query for which to retrieve + * the query status.

+ */ + queryId: string | undefined; +} + +/** + * @public + */ +export interface GetOpenCypherQueryStatusOutput { + /** + * @public + *

The unique ID of the query for which status is being returned.

+ */ + queryId?: string; + + /** + * @public + *

The openCypher query string.

+ */ + queryString?: string; + + /** + * @public + *

The openCypher query evaluation status.

+ */ + queryEvalStats?: QueryEvalStats; +} + +/** + * @public + *

Information about the characteristic sets generated in the statistics.

+ */ +export interface StatisticsSummary { + /** + * @public + *

The total number of signatures across all characteristic sets.

+ */ + signatureCount?: number; + + /** + * @public + *

The total number of characteristic-set instances.

+ */ + instanceCount?: number; + + /** + * @public + *

The total number of unique predicates.

+ */ + predicateCount?: number; +} + +/** + * @public + *

Contains statistics information. The DFE engine uses information + * about the data in your Neptune graph to make effective trade-offs when + * planning query execution. This information takes the form of statistics + * that include so-called characteristic sets and predicate statistics + * that can guide query planning. See Managing + * statistics for the Neptune DFE to use.

+ */ +export interface Statistics { + /** + * @public + *

Indicates whether or not automatic statistics generation is enabled.

+ */ + autoCompute?: boolean; + + /** + * @public + *

Indicates whether or not DFE statistics generation is enabled at all.

+ */ + active?: boolean; + + /** + * @public + *

Reports the ID of the current statistics generation run. + * A value of -1 indicates that no statistics have been generated.

+ */ + statisticsId?: string; + + /** + * @public + *

The UTC time at which DFE statistics have most recently been generated.

+ */ + date?: Date; + + /** + * @public + *

A note about problems in the case where statistics are invalid.

+ */ + note?: string; + + /** + * @public + *

A StatisticsSummary structure that contains:

+ *
    + *
  • + *

    + * signatureCount - The total number of signatures + * across all characteristic sets.

    + *
  • + *
  • + *

    + * instanceCount - The total number of + * characteristic-set instances.

    + *
  • + *
  • + *

    + * predicateCount - The total number of unique predicates.

    + *
  • + *
+ */ + signatureInfo?: StatisticsSummary; +} + +/** + * @public + */ +export interface GetPropertygraphStatisticsOutput { + /** + * @public + *

The HTTP return code of the request. If the request succeeded, + * the code is 200. See Common + * error codes for DFE statistics request for a list of common errors.

+ */ + status: string | undefined; + + /** + * @public + *

Statistics for property-graph data.

+ */ + payload: Statistics | undefined; +} + +/** + * @public + *

Raised when a request attempts to access an stream that has expired.

+ */ +export class ExpiredStreamException extends __BaseException { + readonly name: "ExpiredStreamException" = "ExpiredStreamException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ExpiredStreamException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, ExpiredStreamException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + * @enum + */ +export const Encoding = { + GZIP: "gzip", +} as const; + +/** + * @public + */ +export type Encoding = (typeof Encoding)[keyof typeof Encoding]; + +/** + * @public + * @enum + */ +export const IteratorType = { + AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER", + AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER", + LATEST: "LATEST", + TRIM_HORIZON: "TRIM_HORIZON", +} as const; + +/** + * @public + */ +export type IteratorType = (typeof IteratorType)[keyof typeof IteratorType]; + +/** + * @public + */ +export interface GetPropertygraphStreamInput { + /** + * @public + *

Specifies the maximum number of records to return. There + * is also a size limit of 10 MB on the response that can't be modified + * and that takes precedence over the number of records specified in + * the limit parameter. The response does include a + * threshold-breaching record if the 10 MB limit was reached.

+ *

The range for limit is 1 to 100,000, with a + * default of 10.

+ */ + limit?: number; + + /** + * @public + *

Can be one of:

+ *
    + *
  • + *

    + * AT_SEQUENCE_NUMBER   – + * Indicates that reading should start from the event sequence number + * specified jointly by the commitNum and + * opNum parameters.

    + *
  • + *
  • + *

    + * AFTER_SEQUENCE_NUMBER   – + * Indicates that reading should start right after the event sequence number + * specified jointly by the commitNum and opNum + * parameters.

    + *
  • + *
  • + *

    + * TRIM_HORIZON   – + * Indicates that reading should start at the last untrimmed record in the system, + * which is the oldest unexpired (not yet deleted) record in the change-log stream.

    + *
  • + *
  • + *

    + * LATEST   – + * Indicates that reading should start at the most recent record in the system, + * which is the latest unexpired (not yet deleted) record in the change-log stream.

    + *
  • + *
+ */ + iteratorType?: IteratorType | string; + + /** + * @public + *

The commit number of the starting record to read from the + * change-log stream. This parameter is required when iteratorType + * isAT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER, and + * ignored when iteratorType is TRIM_HORIZON or + * LATEST.

+ */ + commitNum?: number; + + /** + * @public + *

The operation sequence number within the specified commit to + * start reading from in the change-log stream data. The default is 1.

+ */ + opNum?: number; + + /** + * @public + *

If set to TRUE, Neptune compresses the response using gzip encoding.

+ */ + encoding?: Encoding | string; +} + +/** + * @public + *

A Gremlin or openCypher change record.

+ */ +export interface PropertygraphData { + /** + * @public + *

The ID of the Gremlin or openCypher element.

+ */ + id: string | undefined; + + /** + * @public + *

The type of this Gremlin or openCypher element. Must be one of:

+ *
    + *
  • + *

    + * + * v1 + *   - + * Vertex label for Gremlin, or node label for openCypher.

    + *
  • + *
  • + *

    + * + * vp + *   - + * Vertex properties for Gremlin, or node properties for openCypher.

    + *
  • + *
  • + *

    + * + * e + *   - + * Edge and edge label for Gremlin, or relationship and relationship type + * for openCypher.

    + *
  • + *
  • + *

    + * + * ep + *   - + * Edge properties for Gremlin, or relationship properties for openCypher.

    + *
  • + *
+ */ + type: string | undefined; + + /** + * @public + *

The property name. For element labels, this is label.

+ */ + key: string | undefined; + + /** + * @public + *

This is a JSON object that contains a value field for the value itself, + * and a datatype field for the JSON data type of that value:

+ */ + value: __DocumentType | undefined; + + /** + * @public + *

If this is an edge (type = e), the ID of the + * corresponding from vertex or source node.

+ */ + from?: string; + + /** + * @public + *

If this is an edge (type = e), the ID of the + * corresponding to vertex or target node.

+ */ + to?: string; +} + +/** + * @public + *

Structure of a property graph record.

+ */ +export interface PropertygraphRecord { + /** + * @public + *

The time at which the commit for the transaction was requested, + * in milliseconds from the Unix epoch.

+ */ + commitTimestampInMillis: number | undefined; + + /** + * @public + *

The sequence identifier of the stream change record.

+ */ + eventId: Record | undefined; + + /** + * @public + *

The serialized Gremlin or openCypher change record.

+ */ + data: PropertygraphData | undefined; + + /** + * @public + *

The operation that created the change.

+ */ + op: string | undefined; + + /** + * @public + *

Only present if this operation is the last one in its transaction. + * If present, it is set to true. It is useful for ensuring that an + * entire transaction is consumed.

+ */ + isLastOp?: boolean; +} + +/** + * @public + */ +export interface GetPropertygraphStreamOutput { + /** + * @public + *

Sequence identifier of the last change in the stream response.

+ *

An event ID is composed of two fields: a commitNum, which + * identifies a transaction that changed the graph, and an opNum, + * which identifies a specific operation within that transaction:

+ */ + lastEventId: Record | undefined; + + /** + * @public + *

The time at which the commit for the transaction was requested, + * in milliseconds from the Unix epoch.

+ */ + lastTrxTimestampInMillis: number | undefined; + + /** + * @public + *

Serialization format for the change records being returned. + * Currently, the only supported value is PG_JSON.

+ */ + format: string | undefined; + + /** + * @public + *

An array of serialized change-log stream records included in the response.

+ */ + records: PropertygraphRecord[] | undefined; + + /** + * @public + *

The total number of records in the response.

+ */ + totalRecords: number | undefined; +} + +/** + * @public + *

Raised when stream records requested by a query cannot be found.

+ */ +export class StreamRecordsNotFoundException extends __BaseException { + readonly name: "StreamRecordsNotFoundException" = "StreamRecordsNotFoundException"; + readonly $fault: "client" = "client"; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "StreamRecordsNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, StreamRecordsNotFoundException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + *

Raised when the rate of requests exceeds the maximum throughput. Requests can + * be retried after encountering this exception.

+ */ +export class ThrottlingException extends __BaseException { + readonly name: "ThrottlingException" = "ThrottlingException"; + readonly $fault: "server" = "server"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request that could not be processed for this reason.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "ThrottlingException", + $fault: "server", + ...opts, + }); + Object.setPrototypeOf(this, ThrottlingException.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + * @enum + */ +export const GraphSummaryType = { + BASIC: "basic", + DETAILED: "detailed", +} as const; + +/** + * @public + */ +export type GraphSummaryType = (typeof GraphSummaryType)[keyof typeof GraphSummaryType]; + +/** + * @public + */ +export interface GetPropertygraphSummaryInput { + /** + * @public + *

Mode can take one of two values: BASIC (the default), + * and DETAILED.

+ */ + mode?: GraphSummaryType | string; +} + +/** + * @public + *

An edge structure.

+ */ +export interface EdgeStructure { + /** + * @public + *

The number of edges that have this specific structure.

+ */ + count?: number; + + /** + * @public + *

A list of edge properties present in this specific structure.

+ */ + edgeProperties?: string[]; +} + +/** + * @public + *

A node structure.

+ */ +export interface NodeStructure { + /** + * @public + *

Number of nodes that have this specific structure.

+ */ + count?: number; + + /** + * @public + *

A list of the node properties present in this specific structure.

+ */ + nodeProperties?: string[]; + + /** + * @public + *

A list of distinct outgoing edge labels present in this specific structure.

+ */ + distinctOutgoingEdgeLabels?: string[]; +} + +/** + * @public + *

The graph summary API returns a read-only list of node and edge + * labels and property keys, along with counts of nodes, edges, and + * properties. See Graph + * summary response for a property graph (PG).

+ */ +export interface PropertygraphSummary { + /** + * @public + *

The number of nodes in the graph.

+ */ + numNodes?: number; + + /** + * @public + *

The number of edges in the graph.

+ */ + numEdges?: number; + + /** + * @public + *

The number of distinct node labels in the graph.

+ */ + numNodeLabels?: number; + + /** + * @public + *

The number of distinct edge labels in the graph.

+ */ + numEdgeLabels?: number; + + /** + * @public + *

A list of the distinct node labels in the graph.

+ */ + nodeLabels?: string[]; + + /** + * @public + *

A list of the distinct edge labels in the graph.

+ */ + edgeLabels?: string[]; + + /** + * @public + *

A list of the distinct node properties in the graph, along + * with the count of nodes where each property is used.

+ */ + numNodeProperties?: number; + + /** + * @public + *

The number of distinct edge properties in the graph.

+ */ + numEdgeProperties?: number; + + /** + * @public + *

The number of distinct node properties in the graph.

+ */ + nodeProperties?: Record[]; + + /** + * @public + *

A list of the distinct edge properties in the graph, along + * with the count of edges where each property is used.

+ */ + edgeProperties?: Record[]; + + /** + * @public + *

The total number of usages of all node properties.

+ */ + totalNodePropertyValues?: number; + + /** + * @public + *

The total number of usages of all edge properties.

+ */ + totalEdgePropertyValues?: number; + + /** + * @public + *

This field is only present when the requested mode is + * DETAILED. It contains a list of node structures.

+ */ + nodeStructures?: NodeStructure[]; + + /** + * @public + *

This field is only present when the requested mode is + * DETAILED. It contains a list of edge structures.

+ */ + edgeStructures?: EdgeStructure[]; +} + +/** + * @public + *

Payload for the property graph summary response.

+ */ +export interface PropertygraphSummaryValueMap { + /** + * @public + *

The version of this graph summary response.

+ */ + version?: string; + + /** + * @public + *

The timestamp, in ISO 8601 format, of the time at which Neptune last computed statistics.

+ */ + lastStatisticsComputationTime?: Date; + + /** + * @public + *

The graph summary.

+ */ + graphSummary?: PropertygraphSummary; +} + +/** + * @public + */ +export interface GetPropertygraphSummaryOutput { + /** + * @public + *

The HTTP return code of the request. If the request succeeded, + * the code is 200.

+ */ + statusCode?: number; + + /** + * @public + *

Payload containing the property graph summary response.

+ */ + payload?: PropertygraphSummaryValueMap; +} + +/** + * @public + */ +export interface GetRDFGraphSummaryInput { + /** + * @public + *

Mode can take one of two values: BASIC (the default), + * and DETAILED.

+ */ + mode?: GraphSummaryType | string; +} + +/** + * @public + *

A subject structure.

+ */ +export interface SubjectStructure { + /** + * @public + *

Number of occurrences of this specific structure.

+ */ + count?: number; + + /** + * @public + *

A list of predicates present in this specific structure.

+ */ + predicates?: string[]; +} + +/** + * @public + *

The RDF graph summary API returns a read-only list of classes and + * predicate keys, along with counts of quads, subjects, and predicates.

+ */ +export interface RDFGraphSummary { + /** + * @public + *

The number of distinct subjects in the graph.

+ */ + numDistinctSubjects?: number; + + /** + * @public + *

The number of distinct predicates in the graph.

+ */ + numDistinctPredicates?: number; + + /** + * @public + *

The number of quads in the graph.

+ */ + numQuads?: number; + + /** + * @public + *

The number of classes in the graph.

+ */ + numClasses?: number; + + /** + * @public + *

A list of the classes in the graph.

+ */ + classes?: string[]; + + /** + * @public + *

"A list of predicates in the graph, along with the predicate counts.

+ */ + predicates?: Record[]; + + /** + * @public + *

This field is only present when the request mode is + * DETAILED. It contains a list of subject structures.

+ */ + subjectStructures?: SubjectStructure[]; +} + +/** + * @public + *

Payload for an RDF graph summary response.

+ */ +export interface RDFGraphSummaryValueMap { + /** + * @public + *

The version of this graph summary response.

+ */ + version?: string; + + /** + * @public + *

The timestamp, in ISO 8601 format, of the time at which Neptune + * last computed statistics.

+ */ + lastStatisticsComputationTime?: Date; + + /** + * @public + *

The graph summary of an RDF graph. See Graph + * summary response for an RDF graph.

+ */ + graphSummary?: RDFGraphSummary; +} + +/** + * @public + */ +export interface GetRDFGraphSummaryOutput { + /** + * @public + *

The HTTP return code of the request. If the request succeeded, + * the code is 200.

+ */ + statusCode?: number; + + /** + * @public + *

Payload for an RDF graph summary response

+ */ + payload?: RDFGraphSummaryValueMap; +} + +/** + * @public + */ +export interface GetSparqlStatisticsOutput { + /** + * @public + *

The HTTP return code of the request. If the request succeeded, + * the code is 200. See Common + * error codes for DFE statistics request for a list of common errors.

+ */ + status: string | undefined; + + /** + * @public + *

Statistics for RDF data.

+ */ + payload: Statistics | undefined; +} + +/** + * @public + */ +export interface GetSparqlStreamInput { + /** + * @public + *

Specifies the maximum number of records to return. There + * is also a size limit of 10 MB on the response that can't be modified + * and that takes precedence over the number of records specified in + * the limit parameter. The response does include a + * threshold-breaching record if the 10 MB limit was reached.

+ *

The range for limit is 1 to 100,000, with a + * default of 10.

+ */ + limit?: number; + + /** + * @public + *

Can be one of:

+ *
    + *
  • + *

    + * AT_SEQUENCE_NUMBER   – + * Indicates that reading should start from the event sequence number + * specified jointly by the commitNum and + * opNum parameters.

    + *
  • + *
  • + *

    + * AFTER_SEQUENCE_NUMBER   – + * Indicates that reading should start right after the event sequence number + * specified jointly by the commitNum and opNum + * parameters.

    + *
  • + *
  • + *

    + * TRIM_HORIZON   – + * Indicates that reading should start at the last untrimmed record in the system, + * which is the oldest unexpired (not yet deleted) record in the change-log stream.

    + *
  • + *
  • + *

    + * LATEST   – + * Indicates that reading should start at the most recent record in the system, + * which is the latest unexpired (not yet deleted) record in the change-log stream.

    + *
  • + *
+ */ + iteratorType?: IteratorType | string; + + /** + * @public + *

The commit number of the starting record to read from the + * change-log stream. This parameter is required when iteratorType + * isAT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER, and + * ignored when iteratorType is TRIM_HORIZON or + * LATEST.

+ */ + commitNum?: number; + + /** + * @public + *

The operation sequence number within the specified commit to + * start reading from in the change-log stream data. The default is 1.

+ */ + opNum?: number; + + /** + * @public + *

If set to TRUE, Neptune compresses the response using gzip encoding.

+ */ + encoding?: Encoding | string; +} + +/** + * @public + *

Neptune logs are converted to SPARQL quads in the graph using the + * Resource Description Framework (RDF) N-QUADS language defined + * in the W3C RDF 1.1 N-Quads specification

+ */ +export interface SparqlData { + /** + * @public + *

Holds an N-QUADS + * statement expressing the changed quad.

+ */ + stmt: string | undefined; +} + +/** + * @public + *

A serialized SPARQL stream record capturing a change-log entry + * for the RDF graph.

+ */ +export interface SparqlRecord { + /** + * @public + *

The time at which the commit for the transaction was requested, + * in milliseconds from the Unix epoch.

+ */ + commitTimestampInMillis: number | undefined; + + /** + * @public + *

The sequence identifier of the stream change record.

+ */ + eventId: Record | undefined; + + /** + * @public + *

The serialized SPARQL change record. The serialization formats + * of each record are described in more detail in Serialization + * Formats in Neptune Streams.

+ */ + data: SparqlData | undefined; + + /** + * @public + *

The operation that created the change.

+ */ + op: string | undefined; + + /** + * @public + *

Only present if this operation is the last one in its transaction. + * If present, it is set to true. It is useful for ensuring that an + * entire transaction is consumed.

+ */ + isLastOp?: boolean; +} + +/** + * @public + */ +export interface GetSparqlStreamOutput { + /** + * @public + *

Sequence identifier of the last change in the stream response.

+ *

An event ID is composed of two fields: a commitNum, which + * identifies a transaction that changed the graph, and an opNum, + * which identifies a specific operation within that transaction:

+ */ + lastEventId: Record | undefined; + + /** + * @public + *

The time at which the commit for the transaction was requested, + * in milliseconds from the Unix epoch.

+ */ + lastTrxTimestampInMillis: number | undefined; + + /** + * @public + *

Serialization format for the change records being returned. + * Currently, the only supported value is NQUADS.

+ */ + format: string | undefined; + + /** + * @public + *

An array of serialized change-log stream records included in the response.

+ */ + records: SparqlRecord[] | undefined; + + /** + * @public + *

The total number of records in the response.

+ */ + totalRecords: number | undefined; +} + +/** + * @public + */ +export interface ListGremlinQueriesInput { + /** + * @public + *

If set to TRUE, the list returned includes waiting + * queries. The default is FALSE;

+ */ + includeWaiting?: boolean; +} + +/** + * @public + *

Captures the status of a Gremlin query (see the Gremlin query + * status API page).

+ */ +export interface GremlinQueryStatus { + /** + * @public + *

The ID of the Gremlin query.

+ */ + queryId?: string; + + /** + * @public + *

The query string of the Gremlin query.

+ */ + queryString?: string; + + /** + * @public + *

The query statistics of the Gremlin query.

+ */ + queryEvalStats?: QueryEvalStats; +} + +/** + * @public + */ +export interface ListGremlinQueriesOutput { + /** + * @public + *

The number of queries that have been accepted but not yet + * completed, including queries in the queue.

+ */ + acceptedQueryCount?: number; + + /** + * @public + *

The number of Gremlin queries currently running.

+ */ + runningQueryCount?: number; + + /** + * @public + *

A list of the current queries.

+ */ + queries?: GremlinQueryStatus[]; +} + +/** + * @public + */ +export interface ListLoaderJobsInput { + /** + * @public + *

The number of load IDs to list. Must be a positive integer + * greater than zero and not more than 100 (which is the default).

+ */ + limit?: number; + + /** + * @public + *

An optional parameter that can be used to exclude the load + * IDs of queued load requests when requesting a list of load IDs by + * setting the parameter to FALSE. The default value + * is TRUE.

+ */ + includeQueuedLoads?: boolean; +} + +/** + * @public + *

Contains a list of load IDs.

+ */ +export interface LoaderIdResult { + /** + * @public + *

A list of load IDs.

+ */ + loadIds?: string[]; +} + +/** + * @public + */ +export interface ListLoaderJobsOutput { + /** + * @public + *

Returns the status of the job list request.

+ */ + status: string | undefined; + + /** + * @public + *

The requested list of job IDs.

+ */ + payload: LoaderIdResult | undefined; +} + +/** + * @public + */ +export interface ListMLDataProcessingJobsInput { + /** + * @public + *

The maximum number of items to return (from 1 to 1024; the default is 10).

+ */ + maxItems?: number; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + */ +export interface ListMLDataProcessingJobsOutput { + /** + * @public + *

A page listing data processing job IDs.

+ */ + ids?: string[]; +} + +/** + * @public + */ +export interface ListMLEndpointsInput { + /** + * @public + *

The maximum number of items to return (from 1 to 1024; the default + * is 10.

+ */ + maxItems?: number; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + */ +export interface ListMLEndpointsOutput { + /** + * @public + *

A page from the list of inference endpoint IDs.

+ */ + ids?: string[]; +} + +/** + * @public + */ +export interface ListMLModelTrainingJobsInput { + /** + * @public + *

The maximum number of items to return (from 1 to 1024; the default + * is 10).

+ */ + maxItems?: number; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + */ +export interface ListMLModelTrainingJobsOutput { + /** + * @public + *

A page of the list of model training job IDs.

+ */ + ids?: string[]; +} + +/** + * @public + */ +export interface ListMLModelTransformJobsInput { + /** + * @public + *

The maximum number of items to return (from 1 to 1024; the + * default is 10).

+ */ + maxItems?: number; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; +} + +/** + * @public + */ +export interface ListMLModelTransformJobsOutput { + /** + * @public + *

A page from the list of model transform IDs.

+ */ + ids?: string[]; +} + +/** + * @public + */ +export interface ListOpenCypherQueriesInput { + /** + * @public + *

When set to TRUE and other parameters are not + * present, causes status information to be returned for waiting + * queries as well as for running queries.

+ */ + includeWaiting?: boolean; +} + +/** + * @public + */ +export interface ListOpenCypherQueriesOutput { + /** + * @public + *

The number of queries that have been accepted but not yet completed, + * including queries in the queue.

+ */ + acceptedQueryCount?: number; + + /** + * @public + *

The number of currently running openCypher queries.

+ */ + runningQueryCount?: number; + + /** + * @public + *

A list of current openCypher queries.

+ */ + queries?: GremlinQueryStatus[]; +} + +/** + * @public + * @enum + */ +export const StatisticsAutoGenerationMode = { + DISABLE_AUTOCOMPUTE: "disableAutoCompute", + ENABLE_AUTOCOMPUTE: "enableAutoCompute", + REFRESH: "refresh", +} as const; + +/** + * @public + */ +export type StatisticsAutoGenerationMode = + (typeof StatisticsAutoGenerationMode)[keyof typeof StatisticsAutoGenerationMode]; + +/** + * @public + */ +export interface ManagePropertygraphStatisticsInput { + /** + * @public + *

The statistics generation mode. One of: DISABLE_AUTOCOMPUTE, + * ENABLE_AUTOCOMPUTE, or REFRESH, the last of + * which manually triggers DFE statistics generation.

+ */ + mode?: StatisticsAutoGenerationMode | string; +} + +/** + * @public + *

Statistics for REFRESH mode.

+ */ +export interface RefreshStatisticsIdMap { + /** + * @public + *

The ID of the statistics generation run that is currently occurring.

+ */ + statisticsId?: string; +} + +/** + * @public + */ +export interface ManagePropertygraphStatisticsOutput { + /** + * @public + *

The HTTP return code of the request. If the request succeeded, + * the code is 200.

+ */ + status: string | undefined; + + /** + * @public + *

This is only returned for refresh mode.

+ */ + payload?: RefreshStatisticsIdMap; +} + +/** + * @public + */ +export interface ManageSparqlStatisticsInput { + /** + * @public + *

The statistics generation mode. One of: DISABLE_AUTOCOMPUTE, + * ENABLE_AUTOCOMPUTE, or REFRESH, the last of + * which manually triggers DFE statistics generation.

+ */ + mode?: StatisticsAutoGenerationMode | string; +} + +/** + * @public + */ +export interface ManageSparqlStatisticsOutput { + /** + * @public + *

The HTTP return code of the request. If the request succeeded, + * the code is 200.

+ */ + status: string | undefined; + + /** + * @public + *

This is only returned for refresh mode.

+ */ + payload?: RefreshStatisticsIdMap; +} + +/** + * @public + *

Raised when there is a problem accessing Amazon S3.

+ */ +export class S3Exception extends __BaseException { + readonly name: "S3Exception" = "S3Exception"; + readonly $fault: "client" = "client"; + $retryable = {}; + /** + * @public + *

A detailed message describing the problem.

+ */ + detailedMessage: string | undefined; + + /** + * @public + *

The ID of the request in question.

+ */ + requestId: string | undefined; + + /** + * @public + *

The HTTP status code returned with the exception.

+ */ + code: string | undefined; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "S3Exception", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, S3Exception.prototype); + this.detailedMessage = opts.detailedMessage; + this.requestId = opts.requestId; + this.code = opts.code; + } +} + +/** + * @public + * @enum + */ +export const Format = { + CSV: "csv", + NQUADS: "nquads", + NTRIPLES: "ntriples", + OPENCYPHER: "opencypher", + RDFXML: "rdfxml", + TURTLE: "turtle", +} as const; + +/** + * @public + */ +export type Format = (typeof Format)[keyof typeof Format]; + +/** + * @public + * @enum + */ +export const Mode = { + AUTO: "AUTO", + NEW: "NEW", + RESUME: "RESUME", +} as const; + +/** + * @public + */ +export type Mode = (typeof Mode)[keyof typeof Mode]; + +/** + * @public + * @enum + */ +export const Parallelism = { + HIGH: "HIGH", + LOW: "LOW", + MEDIUM: "MEDIUM", + OVERSUBSCRIBE: "OVERSUBSCRIBE", +} as const; + +/** + * @public + */ +export type Parallelism = (typeof Parallelism)[keyof typeof Parallelism]; + +/** + * @public + * @enum + */ +export const S3BucketRegion = { + AF_SOUTH_1: "af-south-1", + AP_EAST_1: "ap-east-1", + AP_NORTHEAST_1: "ap-northeast-1", + AP_NORTHEAST_2: "ap-northeast-2", + AP_SOUTHEAST_1: "ap-southeast-1", + AP_SOUTHEAST_2: "ap-southeast-2", + AP_SOUTH_1: "ap-south-1", + CA_CENTRAL_1: "ca-central-1", + CN_NORTHWEST_1: "cn-northwest-1", + CN_NORTH_1: "cn-north-1", + EU_CENTRAL_1: "eu-central-1", + EU_NORTH_1: "eu-north-1", + EU_WEST_1: "eu-west-1", + EU_WEST_2: "eu-west-2", + EU_WEST_3: "eu-west-3", + ME_SOUTH_1: "me-south-1", + SA_EAST_1: "sa-east-1", + US_EAST_1: "us-east-1", + US_EAST_2: "us-east-2", + US_GOV_EAST_1: "us-gov-east-1", + US_GOV_WEST_1: "us-gov-west-1", + US_WEST_1: "us-west-1", + US_WEST_2: "us-west-2", +} as const; + +/** + * @public + */ +export type S3BucketRegion = (typeof S3BucketRegion)[keyof typeof S3BucketRegion]; + +/** + * @public + */ +export interface StartLoaderJobInput { + /** + * @public + *

The source parameter accepts an S3 URI that identifies a single + * file, multiple files, a folder, or multiple folders. Neptune loads every data file + * in any folder that is specified.

+ *

The URI can be in any of the following formats.

+ *
    + *
  • + *

    + * s3://(bucket_name)/(object-key-name) + *

    + *
  • + *
  • + *

    + * https://s3.amazonaws.com/(bucket_name)/(object-key-name) + *

    + *
  • + *
  • + *

    + * https://s3.us-east-1.amazonaws.com/(bucket_name)/(object-key-name) + *

    + *
  • + *
+ *

The object-key-name element of the URI is equivalent to the prefix + * parameter in an S3 ListObjects + * API call. It identifies all the objects in the specified S3 bucket whose names begin with + * that prefix. That can be a single file or folder, or multiple files and/or folders.

+ *

The specified folder or folders can contain multiple vertex files and multiple edge files.

+ */ + source: string | undefined; + + /** + * @public + *

The format of the data. For more information about data formats for the Neptune + * Loader command, see Load Data Formats.

+ *

+ * Allowed values + *

+ * + */ + format: Format | string | undefined; + + /** + * @public + *

The Amazon region of the S3 bucket. This must match the Amazon Region of the DB cluster.

+ */ + s3BucketRegion: S3BucketRegion | string | undefined; + + /** + * @public + *

The Amazon Resource Name (ARN) for an IAM role to be assumed by + * the Neptune DB instance for access to the S3 bucket. The IAM role ARN provided + * here should be attached to the DB cluster (see Adding + * the IAM Role to an Amazon Neptune Cluster.

+ */ + iamRoleArn: string | undefined; + + /** + * @public + *

The load job mode.

+ *

+ * Allowed values: RESUME, NEW, + * AUTO.

+ *

+ * Default value: AUTO.

+ *

+ * + *

+ *
    + *
  • + *

    + * RESUME   –   In RESUME mode, + * the loader looks for a previous load from this source, and if it finds + * one, resumes that load job. If no previous load job is found, the loader stops.

    + *

    The loader avoids reloading files that were successfully loaded in + * a previous job. It only tries to process failed files. If you dropped + * previously loaded data from your Neptune cluster, that data is not + * reloaded in this mode. If a previous load job loaded all files from the + * same source successfully, nothing is reloaded, and the loader returns + * success.

    + *
  • + *
  • + *

    + * NEW   –   In NEW mode, the + * creates a new load request regardless of any previous loads. You + * can use this mode to reload all the data from a source after dropping + * previously loaded data from your Neptune cluster, or to load new data + * available at the same source.

    + *
  • + *
  • + *

    + * AUTO   –   In AUTO mode, + * the loader looks for a previous load job from the same source, and if it + * finds one, resumes that job, just as in RESUME mode.

    + *

    If the loader doesn't find a previous load job from the same + * source, it loads all data from the source, just as in NEW + * mode.

    + *
  • + *
+ */ + mode?: Mode | string; + + /** + * @public + *

+ * + * failOnError + *   –   A flag to toggle a + * complete stop on an error.

+ *

+ * Allowed values: "TRUE", "FALSE".

+ *

+ * Default value: "TRUE".

+ *

When this parameter is set to "FALSE", the loader tries to load all + * the data in the location specified, skipping any entries with errors.

+ *

When this parameter is set to "TRUE", the loader stops + * as soon as it encounters an error. Data loaded up to that point persists.

+ */ + failOnError?: boolean; + + /** + * @public + *

The optional parallelism parameter can be set + * to reduce the number of threads used by the bulk load process.

+ *

+ * Allowed values:

+ *
    + *
  • + *

    + * LOW –   The number of threads used is the + * number of available vCPUs divided by 8.

    + *
  • + *
  • + *

    + * MEDIUM –   The number of threads used is the + * number of available vCPUs divided by 2.

    + *
  • + *
  • + *

    + * HIGH –   The number of threads used is the + * same as the number of available vCPUs.

    + *
  • + *
  • + *

    + * OVERSUBSCRIBE –   The number of threads used is the + * number of available vCPUs multiplied by 2. If this value is used, the bulk loader takes up all + * available resources.

    + *

    This does not mean, however, that the OVERSUBSCRIBE setting + * results in 100% CPU utilization. Because the load operation is I/O bound, the + * highest CPU utilization to expect is in the 60% to 70% range.

    + *
  • + *
+ *

+ * Default value: HIGH + *

+ *

The parallelism setting can sometimes result in a deadlock + * between threads when loading openCypher data. When this happens, Neptune returns the + * LOAD_DATA_DEADLOCK error. You can generally fix the issue by setting + * parallelism to a lower setting and retrying the load command.

+ */ + parallelism?: Parallelism | string; + + /** + * @public + *

+ * + * parserConfiguration + * + * –   An optional object with additional parser configuration values. + * Each of the child parameters is also optional:

+ *

+ * + *

+ *
    + *
  • + *

    + * + * namedGraphUri + *   – + * The default graph for all RDF formats when no graph is specified (for non-quads + * formats and NQUAD entries with no graph).

    + *

    The default is https://aws.amazon.com/neptune/vocab/v01/DefaultNamedGraph.

    + *
  • + *
  • + *

    + * + * baseUri + *   – + * The base URI for RDF/XML and Turtle formats.

    + *

    The default is https://aws.amazon.com/neptune/default.

    + *
  • + *
  • + *

    + * + * allowEmptyStrings + *   – + * Gremlin users need to be able to pass empty string values("") as node + * and edge properties when loading CSV data. If allowEmptyStrings + * is set to false (the default), such empty strings are treated + * as nulls and are not loaded.

    + *

    If allowEmptyStrings is set to true, + * the loader treats empty strings as valid property values and loads + * them accordingly.

    + *
  • + *
+ */ + parserConfiguration?: Record; + + /** + * @public + *

+ * updateSingleCardinalityProperties + * is an optional parameter that controls how the bulk loader treats a new + * value for single-cardinality vertex or edge properties. This is not supported for + * loading openCypher data.

+ *

+ * Allowed values: "TRUE", "FALSE".

+ *

+ * Default value: "FALSE".

+ *

By default, or when updateSingleCardinalityProperties is explicitly + * set to "FALSE", the loader treats a new value as an error, because it + * violates single cardinality.

+ *

When updateSingleCardinalityProperties is set to "TRUE", + * on the other hand, the bulk loader replaces the existing value with the new one. + * If multiple edge or single-cardinality vertex property values are provided in the + * source file(s) being loaded, the final value at the end of the bulk load could be + * any one of those new values. The loader only guarantees that the existing value + * has been replaced by one of the new ones.

+ */ + updateSingleCardinalityProperties?: boolean; + + /** + * @public + *

This is an optional flag parameter + * that indicates whether the load request can be queued up or not.

+ *

You don't have to wait for one load job to complete before issuing the next one, + * because Neptune can queue up as many as 64 jobs at a time, provided that their + * queueRequest parameters are all set to "TRUE".

+ *

If the queueRequest parameter is omitted or set to "FALSE", + * the load request will fail if another load job is already running.

+ *

+ * Allowed values: "TRUE", "FALSE".

+ *

+ * Default value: "FALSE".

+ */ + queueRequest?: boolean; + + /** + * @public + *

This is an optional parameter that can make a queued load request + * contingent on the successful completion of one or more previous jobs + * in the queue.

+ *

Neptune can queue up as many as 64 load requests at a time, if their + * queueRequest parameters are set to "TRUE". The + * dependencies parameter lets you make execution of such a queued request + * dependent on the successful completion of one or more specified previous requests + * in the queue.

+ *

For example, if load Job-A and Job-B are independent + * of each other, but load Job-C needs Job-A and Job-B + * to be finished before it begins, proceed as follows:

+ *
    + *
  1. + *

    Submit load-job-A and load-job-B one after + * another in any order, and save their load-ids.

    + *
  2. + *
  3. + *

    Submit load-job-C with the load-ids of the + * two jobs in its dependencies field:

    + *
  4. + *
+ *

Because of the dependencies parameter, the bulk loader will not start + * Job-C until Job-A and Job-B have completed + * successfully. If either one of them fails, Job-C will not be executed, and its + * status will be set to LOAD_FAILED_BECAUSE_DEPENDENCY_NOT_SATISFIED.

+ *

You can set up multiple levels of dependency in this way, so that the failure of one job + * will cause all requests that are directly or indirectly dependent on it to be cancelled.

+ */ + dependencies?: string[]; + + /** + * @public + *

This parameter is required only when loading openCypher data that contains relationship + * IDs. It must be included and set to True when openCypher relationship IDs + * are explicitly provided in the load data (recommended).

+ *

When userProvidedEdgeIds is absent or set to True, + * an :ID column must be present in every relationship file in the load.

+ *

When userProvidedEdgeIds is present and set to False, + * relationship files in the load must not contain an + * :ID column. Instead, the Neptune loader automatically generates an + * ID for each relationship.

+ *

It's useful to provide relationship IDs explicitly so that the loader can resume + * loading after error in the CSV data have been fixed, without having to reload any + * relationships that have already been loaded. If relationship IDs have not been + * explicitly assigned, the loader cannot resume a failed load if any relationship file + * has had to be corrected, and must instead reload all the relationships.

+ */ + userProvidedEdgeIds?: boolean; +} + +/** + * @public + */ +export interface StartLoaderJobOutput { + /** + * @public + *

The HTTP return code indicating the status of the load job.

+ */ + status: string | undefined; + + /** + * @public + *

Contains a loadId name-value pair that provides an identifier + * for the load operation.

+ */ + payload: Record | undefined; +} + +/** + * @public + */ +export interface StartMLDataProcessingJobInput { + /** + * @public + *

A unique identifier for the new job. The default is an autogenerated UUID.

+ */ + id?: string; + + /** + * @public + *

The job ID of a completed data processing job run on an earlier version of the data.

+ */ + previousDataProcessingJobId?: string; + + /** + * @public + *

The URI of the Amazon S3 location where you want SageMaker to download + * the data needed to run the data processing job.

+ */ + inputDataS3Location: string | undefined; + + /** + * @public + *

The URI of the Amazon S3 location where you want SageMaker to save the + * results of a data processing job.

+ */ + processedDataS3Location: string | undefined; + + /** + * @public + *

The ARN of an IAM role for SageMaker execution. + * This must be listed in your DB cluster parameter group or an error will occur.

+ */ + sagemakerIamRoleArn?: string; + + /** + * @public + *

The Amazon Resource Name (ARN) of an IAM role that SageMaker can assume + * to perform tasks on your behalf. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

The type of ML instance used during data processing. Its memory + * should be large enough to hold the processed dataset. The default is + * the smallest ml.r5 type whose memory is ten times larger than the size + * of the exported graph data on disk.

+ */ + processingInstanceType?: string; + + /** + * @public + *

The disk volume size of the processing instance. Both input data + * and processed data are stored on disk, so the volume size must be large + * enough to hold both data sets. The default is 0. If not specified or 0, + * Neptune ML chooses the volume size automatically based on the data size.

+ */ + processingInstanceVolumeSizeInGB?: number; + + /** + * @public + *

Timeout in seconds for the data processing job. The default is 86,400 (1 day).

+ */ + processingTimeOutInSeconds?: number; + + /** + * @public + *

One of the two model types that Neptune ML currently supports: + * heterogeneous graph models (heterogeneous), and knowledge + * graph (kge). The default is none. If not specified, + * Neptune ML chooses the model type automatically based on the data.

+ */ + modelType?: string; + + /** + * @public + *

A data specification file that describes how to load the exported + * graph data for training. The file is automatically generated by the + * Neptune export toolkit. The default is + * training-data-configuration.json.

+ */ + configFileName?: string; + + /** + * @public + *

The IDs of the subnets in the Neptune VPC. The default is None.

+ */ + subnets?: string[]; + + /** + * @public + *

The VPC security group IDs. The default is None.

+ */ + securityGroupIds?: string[]; + + /** + * @public + *

The Amazon Key Management Service (Amazon KMS) key that SageMaker uses to + * encrypt data on the storage volume attached to the ML compute instances + * that run the training job. The default is None.

+ */ + volumeEncryptionKMSKey?: string; + + /** + * @public + *

The Amazon Key Management Service (Amazon KMS) key that SageMaker uses + * to encrypt the output of the processing job. The default is none.

+ */ + s3OutputEncryptionKMSKey?: string; +} + +/** + * @public + */ +export interface StartMLDataProcessingJobOutput { + /** + * @public + *

The unique ID of the new data processing job.

+ */ + id?: string; + + /** + * @public + *

The ARN of the data processing job.

+ */ + arn?: string; + + /** + * @public + *

The time it took to create the new processing job, in milliseconds.

+ */ + creationTimeInMillis?: number; +} + +/** + * @public + *

Contains custom model training parameters. See Custom + * models in Neptune ML.

+ */ +export interface CustomModelTrainingParameters { + /** + * @public + *

The path to the Amazon S3 location where the Python module + * implementing your model is located. This must point to a valid + * existing Amazon S3 location that contains, at a minimum, a training + * script, a transform script, and a model-hpo-configuration.json + * file.

+ */ + sourceS3DirectoryPath: string | undefined; + + /** + * @public + *

The name of the entry point in your module of a script that performs + * model training and takes hyperparameters as command-line arguments, + * including fixed hyperparameters. The default is training.py.

+ */ + trainingEntryPointScript?: string; + + /** + * @public + *

The name of the entry point in your module of a script that should + * be run after the best model from the hyperparameter search has been + * identified, to compute the model artifacts necessary for model deployment. + * It should be able to run with no command-line arguments.The default is + * transform.py.

+ */ + transformEntryPointScript?: string; +} + +/** + * @public + */ +export interface StartMLModelTrainingJobInput { + /** + * @public + *

A unique identifier for the new job. The default is An autogenerated UUID.

+ */ + id?: string; + + /** + * @public + *

The job ID of a completed model-training job that you want to update + * incrementally based on updated data.

+ */ + previousModelTrainingJobId?: string; + + /** + * @public + *

The job ID of the completed data-processing job that has created + * the data that the training will work with.

+ */ + dataProcessingJobId: string | undefined; + + /** + * @public + *

The location in Amazon S3 where the model artifacts are to be stored.

+ */ + trainModelS3Location: string | undefined; + + /** + * @public + *

The ARN of an IAM role for SageMaker execution.This must be listed + * in your DB cluster parameter group or an error will occur.

+ */ + sagemakerIamRoleArn?: string; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

The type of ML instance used in preparing and managing training + * of ML models. This is a CPU instance chosen based on memory requirements + * for processing the training data and model.

+ */ + baseProcessingInstanceType?: string; + + /** + * @public + *

The type of ML instance used for model training. All Neptune ML + * models support CPU, GPU, and multiGPU training. The default is + * ml.p3.2xlarge. Choosing the right instance type for + * training depends on the task type, graph size, and your budget.

+ */ + trainingInstanceType?: string; + + /** + * @public + *

The disk volume size of the training instance. Both input data + * and the output model are stored on disk, so the volume size must be + * large enough to hold both data sets. The default is 0. If not specified + * or 0, Neptune ML selects a disk volume size based on the recommendation + * generated in the data processing step.

+ */ + trainingInstanceVolumeSizeInGB?: number; + + /** + * @public + *

Timeout in seconds for the training job. The default is 86,400 (1 day).

+ */ + trainingTimeOutInSeconds?: number; + + /** + * @public + *

Maximum total number of training jobs to start for the hyperparameter + * tuning job. The default is 2. Neptune ML automatically tunes the hyperparameters + * of the machine learning model. To obtain a model that performs well, use at + * least 10 jobs (in other words, set maxHPONumberOfTrainingJobs to 10). + * In general, the more tuning runs, the better the results.

+ */ + maxHPONumberOfTrainingJobs?: number; + + /** + * @public + *

Maximum number of parallel training jobs to start for the hyperparameter + * tuning job. The default is 2. The number of parallel jobs you can run is + * limited by the available resources on your training instance.

+ */ + maxHPOParallelTrainingJobs?: number; + + /** + * @public + *

The IDs of the subnets in the Neptune VPC. The default is None.

+ */ + subnets?: string[]; + + /** + * @public + *

The VPC security group IDs. The default is None.

+ */ + securityGroupIds?: string[]; + + /** + * @public + *

The Amazon Key Management Service (KMS) key that SageMaker uses to + * encrypt data on the storage volume attached to the ML compute instances + * that run the training job. The default is None.

+ */ + volumeEncryptionKMSKey?: string; + + /** + * @public + *

The Amazon Key Management Service (KMS) key that SageMaker uses + * to encrypt the output of the processing job. The default is none.

+ */ + s3OutputEncryptionKMSKey?: string; + + /** + * @public + *

Optimizes the cost of training machine-learning models by using + * Amazon Elastic Compute Cloud spot instances. The default is False.

+ */ + enableManagedSpotTraining?: boolean; + + /** + * @public + *

The configuration for custom model training. This is a JSON object.

+ */ + customModelTrainingParameters?: CustomModelTrainingParameters; +} + +/** + * @public + */ +export interface StartMLModelTrainingJobOutput { + /** + * @public + *

The unique ID of the new model training job.

+ */ + id?: string; + + /** + * @public + *

The ARN of the new model training job.

+ */ + arn?: string; + + /** + * @public + *

The model training job creation time, in milliseconds.

+ */ + creationTimeInMillis?: number; +} + +/** + * @public + *

Contains custom model transform parameters. See Use + * a trained model to generate new model artifacts.

+ */ +export interface CustomModelTransformParameters { + /** + * @public + *

The path to the Amazon S3 location where the Python module + * implementing your model is located. This must point to a valid + * existing Amazon S3 location that contains, at a minimum, a training + * script, a transform script, and a model-hpo-configuration.json + * file.

+ */ + sourceS3DirectoryPath: string | undefined; + + /** + * @public + *

The name of the entry point in your module of a script that should + * be run after the best model from the hyperparameter search has been + * identified, to compute the model artifacts necessary for model deployment. + * It should be able to run with no command-line arguments. The default + * is transform.py.

+ */ + transformEntryPointScript?: string; +} + +/** + * @public + */ +export interface StartMLModelTransformJobInput { + /** + * @public + *

A unique identifier for the new job. The default is an autogenerated UUID.

+ */ + id?: string; + + /** + * @public + *

The job ID of a completed data-processing job. You must include either + * dataProcessingJobId and a mlModelTrainingJobId, + * or a trainingJobName.

+ */ + dataProcessingJobId?: string; + + /** + * @public + *

The job ID of a completed model-training job. You must include either + * dataProcessingJobId and a mlModelTrainingJobId, + * or a trainingJobName.

+ */ + mlModelTrainingJobId?: string; + + /** + * @public + *

The name of a completed SageMaker training job. You must include either + * dataProcessingJobId and a mlModelTrainingJobId, + * or a trainingJobName.

+ */ + trainingJobName?: string; + + /** + * @public + *

The location in Amazon S3 where the model artifacts are to be stored.

+ */ + modelTransformOutputS3Location: string | undefined; + + /** + * @public + *

The ARN of an IAM role for SageMaker execution. This must be listed + * in your DB cluster parameter group or an error will occur.

+ */ + sagemakerIamRoleArn?: string; + + /** + * @public + *

The ARN of an IAM role that provides Neptune access to SageMaker + * and Amazon S3 resources. This must be listed in your DB cluster + * parameter group or an error will occur.

+ */ + neptuneIamRoleArn?: string; + + /** + * @public + *

Configuration information for a model transform using a custom model. + * The customModelTransformParameters object contains the following + * fields, which must have values compatible with the saved model parameters from + * the training job:

+ */ + customModelTransformParameters?: CustomModelTransformParameters; + + /** + * @public + *

The type of ML instance used in preparing and managing training of ML models. + * This is an ML compute instance chosen based on memory requirements for processing + * the training data and model.

+ */ + baseProcessingInstanceType?: string; + + /** + * @public + *

The disk volume size of the training instance in gigabytes. The default is 0. + * Both input data and the output model are stored on disk, so the volume size must + * be large enough to hold both data sets. If not specified or 0, Neptune ML selects + * a disk volume size based on the recommendation generated in the data processing step.

+ */ + baseProcessingInstanceVolumeSizeInGB?: number; + + /** + * @public + *

The IDs of the subnets in the Neptune VPC. The default is None.

+ */ + subnets?: string[]; + + /** + * @public + *

The VPC security group IDs. The default is None.

+ */ + securityGroupIds?: string[]; + + /** + * @public + *

The Amazon Key Management Service (KMS) key that SageMaker uses to encrypt data + * on the storage volume attached to the ML compute instances that run the training job. + * The default is None.

+ */ + volumeEncryptionKMSKey?: string; + + /** + * @public + *

The Amazon Key Management Service (KMS) key that SageMaker uses to + * encrypt the output of the processing job. The default is none.

+ */ + s3OutputEncryptionKMSKey?: string; +} + +/** + * @public + */ +export interface StartMLModelTransformJobOutput { + /** + * @public + *

The unique ID of the new model transform job.

+ */ + id?: string; + + /** + * @public + *

The ARN of the model transform job.

+ */ + arn?: string; + + /** + * @public + *

The creation time of the model transform job, in milliseconds.

+ */ + creationTimeInMillis?: number; +} diff --git a/clients/client-neptunedata/src/protocols/Aws_restJson1.ts b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts new file mode 100644 index 0000000000000..c387a76def1bf --- /dev/null +++ b/clients/client-neptunedata/src/protocols/Aws_restJson1.ts @@ -0,0 +1,6188 @@ +// smithy-typescript generated code +import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; +import { + _json, + collectBody, + decorateServiceException as __decorateServiceException, + expectBoolean as __expectBoolean, + expectInt32 as __expectInt32, + expectLong as __expectLong, + expectNonNull as __expectNonNull, + expectObject as __expectObject, + expectString as __expectString, + extendedEncodeURIComponent as __extendedEncodeURIComponent, + map, + parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, + resolvedPath as __resolvedPath, + take, + withBaseException, +} from "@smithy/smithy-client"; +import { + DocumentType as __DocumentType, + Endpoint as __Endpoint, + ResponseMetadata as __ResponseMetadata, + SerdeContext as __SerdeContext, +} from "@smithy/types"; + +import { CancelGremlinQueryCommandInput, CancelGremlinQueryCommandOutput } from "../commands/CancelGremlinQueryCommand"; +import { CancelLoaderJobCommandInput, CancelLoaderJobCommandOutput } from "../commands/CancelLoaderJobCommand"; +import { + CancelMLDataProcessingJobCommandInput, + CancelMLDataProcessingJobCommandOutput, +} from "../commands/CancelMLDataProcessingJobCommand"; +import { + CancelMLModelTrainingJobCommandInput, + CancelMLModelTrainingJobCommandOutput, +} from "../commands/CancelMLModelTrainingJobCommand"; +import { + CancelMLModelTransformJobCommandInput, + CancelMLModelTransformJobCommandOutput, +} from "../commands/CancelMLModelTransformJobCommand"; +import { + CancelOpenCypherQueryCommandInput, + CancelOpenCypherQueryCommandOutput, +} from "../commands/CancelOpenCypherQueryCommand"; +import { CreateMLEndpointCommandInput, CreateMLEndpointCommandOutput } from "../commands/CreateMLEndpointCommand"; +import { DeleteMLEndpointCommandInput, DeleteMLEndpointCommandOutput } from "../commands/DeleteMLEndpointCommand"; +import { + DeletePropertygraphStatisticsCommandInput, + DeletePropertygraphStatisticsCommandOutput, +} from "../commands/DeletePropertygraphStatisticsCommand"; +import { + DeleteSparqlStatisticsCommandInput, + DeleteSparqlStatisticsCommandOutput, +} from "../commands/DeleteSparqlStatisticsCommand"; +import { ExecuteFastResetCommandInput, ExecuteFastResetCommandOutput } from "../commands/ExecuteFastResetCommand"; +import { + ExecuteGremlinExplainQueryCommandInput, + ExecuteGremlinExplainQueryCommandOutput, +} from "../commands/ExecuteGremlinExplainQueryCommand"; +import { + ExecuteGremlinProfileQueryCommandInput, + ExecuteGremlinProfileQueryCommandOutput, +} from "../commands/ExecuteGremlinProfileQueryCommand"; +import { + ExecuteGremlinQueryCommandInput, + ExecuteGremlinQueryCommandOutput, +} from "../commands/ExecuteGremlinQueryCommand"; +import { + ExecuteOpenCypherExplainQueryCommandInput, + ExecuteOpenCypherExplainQueryCommandOutput, +} from "../commands/ExecuteOpenCypherExplainQueryCommand"; +import { + ExecuteOpenCypherQueryCommandInput, + ExecuteOpenCypherQueryCommandOutput, +} from "../commands/ExecuteOpenCypherQueryCommand"; +import { GetEngineStatusCommandInput, GetEngineStatusCommandOutput } from "../commands/GetEngineStatusCommand"; +import { + GetGremlinQueryStatusCommandInput, + GetGremlinQueryStatusCommandOutput, +} from "../commands/GetGremlinQueryStatusCommand"; +import { GetLoaderJobStatusCommandInput, GetLoaderJobStatusCommandOutput } from "../commands/GetLoaderJobStatusCommand"; +import { + GetMLDataProcessingJobCommandInput, + GetMLDataProcessingJobCommandOutput, +} from "../commands/GetMLDataProcessingJobCommand"; +import { GetMLEndpointCommandInput, GetMLEndpointCommandOutput } from "../commands/GetMLEndpointCommand"; +import { + GetMLModelTrainingJobCommandInput, + GetMLModelTrainingJobCommandOutput, +} from "../commands/GetMLModelTrainingJobCommand"; +import { + GetMLModelTransformJobCommandInput, + GetMLModelTransformJobCommandOutput, +} from "../commands/GetMLModelTransformJobCommand"; +import { + GetOpenCypherQueryStatusCommandInput, + GetOpenCypherQueryStatusCommandOutput, +} from "../commands/GetOpenCypherQueryStatusCommand"; +import { + GetPropertygraphStatisticsCommandInput, + GetPropertygraphStatisticsCommandOutput, +} from "../commands/GetPropertygraphStatisticsCommand"; +import { + GetPropertygraphStreamCommandInput, + GetPropertygraphStreamCommandOutput, +} from "../commands/GetPropertygraphStreamCommand"; +import { + GetPropertygraphSummaryCommandInput, + GetPropertygraphSummaryCommandOutput, +} from "../commands/GetPropertygraphSummaryCommand"; +import { GetRDFGraphSummaryCommandInput, GetRDFGraphSummaryCommandOutput } from "../commands/GetRDFGraphSummaryCommand"; +import { + GetSparqlStatisticsCommandInput, + GetSparqlStatisticsCommandOutput, +} from "../commands/GetSparqlStatisticsCommand"; +import { GetSparqlStreamCommandInput, GetSparqlStreamCommandOutput } from "../commands/GetSparqlStreamCommand"; +import { ListGremlinQueriesCommandInput, ListGremlinQueriesCommandOutput } from "../commands/ListGremlinQueriesCommand"; +import { ListLoaderJobsCommandInput, ListLoaderJobsCommandOutput } from "../commands/ListLoaderJobsCommand"; +import { + ListMLDataProcessingJobsCommandInput, + ListMLDataProcessingJobsCommandOutput, +} from "../commands/ListMLDataProcessingJobsCommand"; +import { ListMLEndpointsCommandInput, ListMLEndpointsCommandOutput } from "../commands/ListMLEndpointsCommand"; +import { + ListMLModelTrainingJobsCommandInput, + ListMLModelTrainingJobsCommandOutput, +} from "../commands/ListMLModelTrainingJobsCommand"; +import { + ListMLModelTransformJobsCommandInput, + ListMLModelTransformJobsCommandOutput, +} from "../commands/ListMLModelTransformJobsCommand"; +import { + ListOpenCypherQueriesCommandInput, + ListOpenCypherQueriesCommandOutput, +} from "../commands/ListOpenCypherQueriesCommand"; +import { + ManagePropertygraphStatisticsCommandInput, + ManagePropertygraphStatisticsCommandOutput, +} from "../commands/ManagePropertygraphStatisticsCommand"; +import { + ManageSparqlStatisticsCommandInput, + ManageSparqlStatisticsCommandOutput, +} from "../commands/ManageSparqlStatisticsCommand"; +import { StartLoaderJobCommandInput, StartLoaderJobCommandOutput } from "../commands/StartLoaderJobCommand"; +import { + StartMLDataProcessingJobCommandInput, + StartMLDataProcessingJobCommandOutput, +} from "../commands/StartMLDataProcessingJobCommand"; +import { + StartMLModelTrainingJobCommandInput, + StartMLModelTrainingJobCommandOutput, +} from "../commands/StartMLModelTrainingJobCommand"; +import { + StartMLModelTransformJobCommandInput, + StartMLModelTransformJobCommandOutput, +} from "../commands/StartMLModelTransformJobCommand"; +import { + AccessDeniedException, + BadRequestException, + BulkLoadIdNotFoundException, + CancelledByUserException, + ClientTimeoutException, + ConcurrentModificationException, + ConstraintViolationException, + CustomModelTrainingParameters, + CustomModelTransformParameters, + ExpiredStreamException, + FailureByQueryException, + GremlinQueryStatus, + GremlinQueryStatusAttributes, + IllegalArgumentException, + InternalFailureException, + InvalidArgumentException, + InvalidNumericDataException, + InvalidParameterException, + LoadUrlAccessDeniedException, + MalformedQueryException, + MemoryLimitExceededException, + MethodNotAllowedException, + MissingParameterException, + MLResourceNotFoundException, + ParsingException, + PreconditionsFailedException, + PropertygraphData, + PropertygraphRecord, + PropertygraphSummaryValueMap, + QueryEvalStats, + QueryLimitExceededException, + QueryLimitException, + QueryTooLargeException, + RDFGraphSummaryValueMap, + ReadOnlyViolationException, + S3Exception, + ServerShutdownException, + SparqlRecord, + Statistics, + StatisticsNotAvailableException, + StreamRecordsNotFoundException, + ThrottlingException, + TimeLimitExceededException, + TooManyRequestsException, + UnsupportedOperationException, +} from "../models/models_0"; +import { NeptunedataServiceException as __BaseException } from "../models/NeptunedataServiceException"; + +/** + * serializeAws_restJson1CancelGremlinQueryCommand + */ +export const se_CancelGremlinQueryCommand = async ( + input: CancelGremlinQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/status/{queryId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1CancelLoaderJobCommand + */ +export const se_CancelLoaderJobCommand = async ( + input: CancelLoaderJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader/{loadId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "loadId", () => input.loadId!, "{loadId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1CancelMLDataProcessingJobCommand + */ +export const se_CancelMLDataProcessingJobCommand = async ( + input: CancelMLDataProcessingJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + clean: [() => input.clean !== void 0, () => input.clean!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1CancelMLModelTrainingJobCommand + */ +export const se_CancelMLModelTrainingJobCommand = async ( + input: CancelMLModelTrainingJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + clean: [() => input.clean !== void 0, () => input.clean!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1CancelMLModelTransformJobCommand + */ +export const se_CancelMLModelTransformJobCommand = async ( + input: CancelMLModelTransformJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + clean: [() => input.clean !== void 0, () => input.clean!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1CancelOpenCypherQueryCommand + */ +export const se_CancelOpenCypherQueryCommand = async ( + input: CancelOpenCypherQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/status/{queryId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + const query: any = map({ + silent: [() => input.silent !== void 0, () => input.silent!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1CreateMLEndpointCommand + */ +export const se_CreateMLEndpointCommand = async ( + input: CreateMLEndpointCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints"; + let body: any; + body = JSON.stringify( + take(input, { + id: [], + instanceCount: [], + instanceType: [], + mlModelTrainingJobId: [], + mlModelTransformJobId: [], + modelName: [], + neptuneIamRoleArn: [], + update: [], + volumeEncryptionKMSKey: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1DeleteMLEndpointCommand + */ +export const se_DeleteMLEndpointCommand = async ( + input: DeleteMLEndpointCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + clean: [() => input.clean !== void 0, () => input.clean!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1DeletePropertygraphStatisticsCommand + */ +export const se_DeletePropertygraphStatisticsCommand = async ( + input: DeletePropertygraphStatisticsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics"; + let body: any; + body = ""; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1DeleteSparqlStatisticsCommand + */ +export const se_DeleteSparqlStatisticsCommand = async ( + input: DeleteSparqlStatisticsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/statistics"; + let body: any; + body = ""; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "DELETE", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1ExecuteFastResetCommand + */ +export const se_ExecuteFastResetCommand = async ( + input: ExecuteFastResetCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/system"; + let body: any; + body = JSON.stringify( + take(input, { + action: [], + token: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1ExecuteGremlinExplainQueryCommand + */ +export const se_ExecuteGremlinExplainQueryCommand = async ( + input: ExecuteGremlinExplainQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/explain"; + let body: any; + body = JSON.stringify( + take(input, { + gremlin: [, , `gremlinQuery`], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1ExecuteGremlinProfileQueryCommand + */ +export const se_ExecuteGremlinProfileQueryCommand = async ( + input: ExecuteGremlinProfileQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/profile"; + let body: any; + body = JSON.stringify( + take(input, { + "profile.chop": [, , `chop`], + gremlin: [, , `gremlinQuery`], + "profile.indexOps": [, , `indexOps`], + "profile.results": [, , `results`], + "profile.serializer": [, , `serializer`], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1ExecuteGremlinQueryCommand + */ +export const se_ExecuteGremlinQueryCommand = async ( + input: ExecuteGremlinQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = map({}, isSerializableHeaderValue, { + "content-type": "application/json", + accept: input.serializer!, + }); + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin"; + let body: any; + body = JSON.stringify( + take(input, { + gremlin: [, , `gremlinQuery`], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1ExecuteOpenCypherExplainQueryCommand + */ +export const se_ExecuteOpenCypherExplainQueryCommand = async ( + input: ExecuteOpenCypherExplainQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/explain"; + let body: any; + body = JSON.stringify( + take(input, { + explain: [, , `explainMode`], + query: [, , `openCypherQuery`], + parameters: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1ExecuteOpenCypherQueryCommand + */ +export const se_ExecuteOpenCypherQueryCommand = async ( + input: ExecuteOpenCypherQueryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher"; + let body: any; + body = JSON.stringify( + take(input, { + query: [, , `openCypherQuery`], + parameters: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1GetEngineStatusCommand + */ +export const se_GetEngineStatusCommand = async ( + input: GetEngineStatusCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/status"; + let body: any; + body = ""; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1GetGremlinQueryStatusCommand + */ +export const se_GetGremlinQueryStatusCommand = async ( + input: GetGremlinQueryStatusCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/status/{queryId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1GetLoaderJobStatusCommand + */ +export const se_GetLoaderJobStatusCommand = async ( + input: GetLoaderJobStatusCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader/{loadId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "loadId", () => input.loadId!, "{loadId}", false); + const query: any = map({ + details: [() => input.details !== void 0, () => input.details!.toString()], + errors: [() => input.errors !== void 0, () => input.errors!.toString()], + page: [() => input.page !== void 0, () => input.page!.toString()], + errorsPerPage: [() => input.errorsPerPage !== void 0, () => input.errorsPerPage!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetMLDataProcessingJobCommand + */ +export const se_GetMLDataProcessingJobCommand = async ( + input: GetMLDataProcessingJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetMLEndpointCommand + */ +export const se_GetMLEndpointCommand = async ( + input: GetMLEndpointCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetMLModelTrainingJobCommand + */ +export const se_GetMLModelTrainingJobCommand = async ( + input: GetMLModelTrainingJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetMLModelTransformJobCommand + */ +export const se_GetMLModelTransformJobCommand = async ( + input: GetMLModelTransformJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform/{id}"; + resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false); + const query: any = map({ + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetOpenCypherQueryStatusCommand + */ +export const se_GetOpenCypherQueryStatusCommand = async ( + input: GetOpenCypherQueryStatusCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + let resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/status/{queryId}"; + resolvedPath = __resolvedPath(resolvedPath, input, "queryId", () => input.queryId!, "{queryId}", false); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1GetPropertygraphStatisticsCommand + */ +export const se_GetPropertygraphStatisticsCommand = async ( + input: GetPropertygraphStatisticsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics"; + let body: any; + body = ""; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1GetPropertygraphStreamCommand + */ +export const se_GetPropertygraphStreamCommand = async ( + input: GetPropertygraphStreamCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = map({}, isSerializableHeaderValue, { + "accept-encoding": input.encoding!, + }); + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/stream"; + const query: any = map({ + limit: [() => input.limit !== void 0, () => input.limit!.toString()], + iteratorType: [, input.iteratorType!], + commitNum: [() => input.commitNum !== void 0, () => input.commitNum!.toString()], + opNum: [() => input.opNum !== void 0, () => input.opNum!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetPropertygraphSummaryCommand + */ +export const se_GetPropertygraphSummaryCommand = async ( + input: GetPropertygraphSummaryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics/summary"; + const query: any = map({ + mode: [, input.mode!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetRDFGraphSummaryCommand + */ +export const se_GetRDFGraphSummaryCommand = async ( + input: GetRDFGraphSummaryCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/rdf/statistics/summary"; + const query: any = map({ + mode: [, input.mode!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1GetSparqlStatisticsCommand + */ +export const se_GetSparqlStatisticsCommand = async ( + input: GetSparqlStatisticsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/statistics"; + let body: any; + body = ""; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1GetSparqlStreamCommand + */ +export const se_GetSparqlStreamCommand = async ( + input: GetSparqlStreamCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = map({}, isSerializableHeaderValue, { + "accept-encoding": input.encoding!, + }); + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/stream"; + const query: any = map({ + limit: [() => input.limit !== void 0, () => input.limit!.toString()], + iteratorType: [, input.iteratorType!], + commitNum: [() => input.commitNum !== void 0, () => input.commitNum!.toString()], + opNum: [() => input.opNum !== void 0, () => input.opNum!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListGremlinQueriesCommand + */ +export const se_ListGremlinQueriesCommand = async ( + input: ListGremlinQueriesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/gremlin/status"; + const query: any = map({ + includeWaiting: [() => input.includeWaiting !== void 0, () => input.includeWaiting!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListLoaderJobsCommand + */ +export const se_ListLoaderJobsCommand = async ( + input: ListLoaderJobsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader"; + const query: any = map({ + limit: [() => input.limit !== void 0, () => input.limit!.toString()], + includeQueuedLoads: [() => input.includeQueuedLoads !== void 0, () => input.includeQueuedLoads!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListMLDataProcessingJobsCommand + */ +export const se_ListMLDataProcessingJobsCommand = async ( + input: ListMLDataProcessingJobsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing"; + const query: any = map({ + maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListMLEndpointsCommand + */ +export const se_ListMLEndpointsCommand = async ( + input: ListMLEndpointsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/endpoints"; + const query: any = map({ + maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListMLModelTrainingJobsCommand + */ +export const se_ListMLModelTrainingJobsCommand = async ( + input: ListMLModelTrainingJobsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining"; + const query: any = map({ + maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListMLModelTransformJobsCommand + */ +export const se_ListMLModelTransformJobsCommand = async ( + input: ListMLModelTransformJobsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform"; + const query: any = map({ + maxItems: [() => input.maxItems !== void 0, () => input.maxItems!.toString()], + neptuneIamRoleArn: [, input.neptuneIamRoleArn!], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ListOpenCypherQueriesCommand + */ +export const se_ListOpenCypherQueriesCommand = async ( + input: ListOpenCypherQueriesCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = {}; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/opencypher/status"; + const query: any = map({ + includeWaiting: [() => input.includeWaiting !== void 0, () => input.includeWaiting!.toString()], + }); + let body: any; + return new __HttpRequest({ + protocol, + hostname, + port, + method: "GET", + headers, + path: resolvedPath, + query, + body, + }); +}; + +/** + * serializeAws_restJson1ManagePropertygraphStatisticsCommand + */ +export const se_ManagePropertygraphStatisticsCommand = async ( + input: ManagePropertygraphStatisticsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = + `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/propertygraph/statistics"; + let body: any; + body = JSON.stringify( + take(input, { + mode: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1ManageSparqlStatisticsCommand + */ +export const se_ManageSparqlStatisticsCommand = async ( + input: ManageSparqlStatisticsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sparql/statistics"; + let body: any; + body = JSON.stringify( + take(input, { + mode: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1StartLoaderJobCommand + */ +export const se_StartLoaderJobCommand = async ( + input: StartLoaderJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/loader"; + let body: any; + body = JSON.stringify( + take(input, { + dependencies: (_) => _json(_), + failOnError: [], + format: [], + iamRoleArn: [], + mode: [], + parallelism: [], + parserConfiguration: (_) => _json(_), + queueRequest: [], + region: [, , `s3BucketRegion`], + source: [], + updateSingleCardinalityProperties: [], + userProvidedEdgeIds: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1StartMLDataProcessingJobCommand + */ +export const se_StartMLDataProcessingJobCommand = async ( + input: StartMLDataProcessingJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/dataprocessing"; + let body: any; + body = JSON.stringify( + take(input, { + configFileName: [], + id: [], + inputDataS3Location: [], + modelType: [], + neptuneIamRoleArn: [], + previousDataProcessingJobId: [], + processedDataS3Location: [], + processingInstanceType: [], + processingInstanceVolumeSizeInGB: [], + processingTimeOutInSeconds: [], + s3OutputEncryptionKMSKey: [], + sagemakerIamRoleArn: [], + securityGroupIds: (_) => _json(_), + subnets: (_) => _json(_), + volumeEncryptionKMSKey: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1StartMLModelTrainingJobCommand + */ +export const se_StartMLModelTrainingJobCommand = async ( + input: StartMLModelTrainingJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltraining"; + let body: any; + body = JSON.stringify( + take(input, { + baseProcessingInstanceType: [], + customModelTrainingParameters: (_) => _json(_), + dataProcessingJobId: [], + enableManagedSpotTraining: [], + id: [], + maxHPONumberOfTrainingJobs: [], + maxHPOParallelTrainingJobs: [], + neptuneIamRoleArn: [], + previousModelTrainingJobId: [], + s3OutputEncryptionKMSKey: [], + sagemakerIamRoleArn: [], + securityGroupIds: (_) => _json(_), + subnets: (_) => _json(_), + trainModelS3Location: [], + trainingInstanceType: [], + trainingInstanceVolumeSizeInGB: [], + trainingTimeOutInSeconds: [], + volumeEncryptionKMSKey: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * serializeAws_restJson1StartMLModelTransformJobCommand + */ +export const se_StartMLModelTransformJobCommand = async ( + input: StartMLModelTransformJobCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); + const headers: any = { + "content-type": "application/json", + }; + const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ml/modeltransform"; + let body: any; + body = JSON.stringify( + take(input, { + baseProcessingInstanceType: [], + baseProcessingInstanceVolumeSizeInGB: [], + customModelTransformParameters: (_) => _json(_), + dataProcessingJobId: [], + id: [], + mlModelTrainingJobId: [], + modelTransformOutputS3Location: [], + neptuneIamRoleArn: [], + s3OutputEncryptionKMSKey: [], + sagemakerIamRoleArn: [], + securityGroupIds: (_) => _json(_), + subnets: (_) => _json(_), + trainingJobName: [], + volumeEncryptionKMSKey: [], + }) + ); + return new __HttpRequest({ + protocol, + hostname, + port, + method: "POST", + headers, + path: resolvedPath, + body, + }); +}; + +/** + * deserializeAws_restJson1CancelGremlinQueryCommand + */ +export const de_CancelGremlinQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CancelGremlinQueryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CancelGremlinQueryCommandError + */ +const de_CancelGremlinQueryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1CancelLoaderJobCommand + */ +export const de_CancelLoaderJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CancelLoaderJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CancelLoaderJobCommandError + */ +const de_CancelLoaderJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "BulkLoadIdNotFoundException": + case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException": + throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.neptunedata#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "LoadUrlAccessDeniedException": + case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException": + throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1CancelMLDataProcessingJobCommand + */ +export const de_CancelMLDataProcessingJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CancelMLDataProcessingJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CancelMLDataProcessingJobCommandError + */ +const de_CancelMLDataProcessingJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1CancelMLModelTrainingJobCommand + */ +export const de_CancelMLModelTrainingJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CancelMLModelTrainingJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CancelMLModelTrainingJobCommandError + */ +const de_CancelMLModelTrainingJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1CancelMLModelTransformJobCommand + */ +export const de_CancelMLModelTransformJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CancelMLModelTransformJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CancelMLModelTransformJobCommandError + */ +const de_CancelMLModelTransformJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1CancelOpenCypherQueryCommand + */ +export const de_CancelOpenCypherQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CancelOpenCypherQueryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: __expectBoolean, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CancelOpenCypherQueryCommandError + */ +const de_CancelOpenCypherQueryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidNumericDataException": + case "com.amazonaws.neptunedata#InvalidNumericDataException": + throw await de_InvalidNumericDataExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1CreateMLEndpointCommand + */ +export const de_CreateMLEndpointCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CreateMLEndpointCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + arn: __expectString, + creationTimeInMillis: __expectLong, + id: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1CreateMLEndpointCommandError + */ +const de_CreateMLEndpointCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeleteMLEndpointCommand + */ +export const de_DeleteMLEndpointCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteMLEndpointCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteMLEndpointCommandError + */ +const de_DeleteMLEndpointCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeletePropertygraphStatisticsCommand + */ +export const de_DeletePropertygraphStatisticsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeletePropertygraphStatisticsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: _json, + status: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + statusCode: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeletePropertygraphStatisticsCommandError + */ +const de_DeletePropertygraphStatisticsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1DeleteSparqlStatisticsCommand + */ +export const de_DeleteSparqlStatisticsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_DeleteSparqlStatisticsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: _json, + status: __expectString, + }); + Object.assign(contents, doc); + map(contents, { + statusCode: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1DeleteSparqlStatisticsCommandError + */ +const de_DeleteSparqlStatisticsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ExecuteFastResetCommand + */ +export const de_ExecuteFastResetCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ExecuteFastResetCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ExecuteFastResetCommandError + */ +const de_ExecuteFastResetCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MethodNotAllowedException": + case "com.amazonaws.neptunedata#MethodNotAllowedException": + throw await de_MethodNotAllowedExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "ServerShutdownException": + case "com.amazonaws.neptunedata#ServerShutdownException": + throw await de_ServerShutdownExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ExecuteGremlinExplainQueryCommand + */ +export const de_ExecuteGremlinExplainQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ExecuteGremlinExplainQueryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: any = await collectBody(output.body, context); + contents.output = data; + return contents; +}; + +/** + * deserializeAws_restJson1ExecuteGremlinExplainQueryCommandError + */ +const de_ExecuteGremlinExplainQueryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "CancelledByUserException": + case "com.amazonaws.neptunedata#CancelledByUserException": + throw await de_CancelledByUserExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MalformedQueryException": + case "com.amazonaws.neptunedata#MalformedQueryException": + throw await de_MalformedQueryExceptionRes(parsedOutput, context); + case "MemoryLimitExceededException": + case "com.amazonaws.neptunedata#MemoryLimitExceededException": + throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "QueryLimitExceededException": + case "com.amazonaws.neptunedata#QueryLimitExceededException": + throw await de_QueryLimitExceededExceptionRes(parsedOutput, context); + case "QueryLimitException": + case "com.amazonaws.neptunedata#QueryLimitException": + throw await de_QueryLimitExceptionRes(parsedOutput, context); + case "QueryTooLargeException": + case "com.amazonaws.neptunedata#QueryTooLargeException": + throw await de_QueryTooLargeExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ExecuteGremlinProfileQueryCommand + */ +export const de_ExecuteGremlinProfileQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ExecuteGremlinProfileQueryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: any = await collectBody(output.body, context); + contents.output = data; + return contents; +}; + +/** + * deserializeAws_restJson1ExecuteGremlinProfileQueryCommandError + */ +const de_ExecuteGremlinProfileQueryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "CancelledByUserException": + case "com.amazonaws.neptunedata#CancelledByUserException": + throw await de_CancelledByUserExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MalformedQueryException": + case "com.amazonaws.neptunedata#MalformedQueryException": + throw await de_MalformedQueryExceptionRes(parsedOutput, context); + case "MemoryLimitExceededException": + case "com.amazonaws.neptunedata#MemoryLimitExceededException": + throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "QueryLimitExceededException": + case "com.amazonaws.neptunedata#QueryLimitExceededException": + throw await de_QueryLimitExceededExceptionRes(parsedOutput, context); + case "QueryLimitException": + case "com.amazonaws.neptunedata#QueryLimitException": + throw await de_QueryLimitExceptionRes(parsedOutput, context); + case "QueryTooLargeException": + case "com.amazonaws.neptunedata#QueryTooLargeException": + throw await de_QueryTooLargeExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ExecuteGremlinQueryCommand + */ +export const de_ExecuteGremlinQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ExecuteGremlinQueryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + meta: (_) => de_Document(_, context), + requestId: __expectString, + result: (_) => de_Document(_, context), + status: (_) => de_GremlinQueryStatusAttributes(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ExecuteGremlinQueryCommandError + */ +const de_ExecuteGremlinQueryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "CancelledByUserException": + case "com.amazonaws.neptunedata#CancelledByUserException": + throw await de_CancelledByUserExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MalformedQueryException": + case "com.amazonaws.neptunedata#MalformedQueryException": + throw await de_MalformedQueryExceptionRes(parsedOutput, context); + case "MemoryLimitExceededException": + case "com.amazonaws.neptunedata#MemoryLimitExceededException": + throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "QueryLimitExceededException": + case "com.amazonaws.neptunedata#QueryLimitExceededException": + throw await de_QueryLimitExceededExceptionRes(parsedOutput, context); + case "QueryLimitException": + case "com.amazonaws.neptunedata#QueryLimitException": + throw await de_QueryLimitExceptionRes(parsedOutput, context); + case "QueryTooLargeException": + case "com.amazonaws.neptunedata#QueryTooLargeException": + throw await de_QueryTooLargeExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ExecuteOpenCypherExplainQueryCommand + */ +export const de_ExecuteOpenCypherExplainQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ExecuteOpenCypherExplainQueryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: any = await collectBody(output.body, context); + contents.results = data; + return contents; +}; + +/** + * deserializeAws_restJson1ExecuteOpenCypherExplainQueryCommandError + */ +const de_ExecuteOpenCypherExplainQueryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "CancelledByUserException": + case "com.amazonaws.neptunedata#CancelledByUserException": + throw await de_CancelledByUserExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidNumericDataException": + case "com.amazonaws.neptunedata#InvalidNumericDataException": + throw await de_InvalidNumericDataExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MalformedQueryException": + case "com.amazonaws.neptunedata#MalformedQueryException": + throw await de_MalformedQueryExceptionRes(parsedOutput, context); + case "MemoryLimitExceededException": + case "com.amazonaws.neptunedata#MemoryLimitExceededException": + throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "QueryLimitExceededException": + case "com.amazonaws.neptunedata#QueryLimitExceededException": + throw await de_QueryLimitExceededExceptionRes(parsedOutput, context); + case "QueryLimitException": + case "com.amazonaws.neptunedata#QueryLimitException": + throw await de_QueryLimitExceptionRes(parsedOutput, context); + case "QueryTooLargeException": + case "com.amazonaws.neptunedata#QueryTooLargeException": + throw await de_QueryTooLargeExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ExecuteOpenCypherQueryCommand + */ +export const de_ExecuteOpenCypherQueryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ExecuteOpenCypherQueryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + results: (_) => de_Document(_, context), + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ExecuteOpenCypherQueryCommandError + */ +const de_ExecuteOpenCypherQueryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "CancelledByUserException": + case "com.amazonaws.neptunedata#CancelledByUserException": + throw await de_CancelledByUserExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidNumericDataException": + case "com.amazonaws.neptunedata#InvalidNumericDataException": + throw await de_InvalidNumericDataExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MalformedQueryException": + case "com.amazonaws.neptunedata#MalformedQueryException": + throw await de_MalformedQueryExceptionRes(parsedOutput, context); + case "MemoryLimitExceededException": + case "com.amazonaws.neptunedata#MemoryLimitExceededException": + throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "QueryLimitExceededException": + case "com.amazonaws.neptunedata#QueryLimitExceededException": + throw await de_QueryLimitExceededExceptionRes(parsedOutput, context); + case "QueryLimitException": + case "com.amazonaws.neptunedata#QueryLimitException": + throw await de_QueryLimitExceptionRes(parsedOutput, context); + case "QueryTooLargeException": + case "com.amazonaws.neptunedata#QueryTooLargeException": + throw await de_QueryTooLargeExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetEngineStatusCommand + */ +export const de_GetEngineStatusCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetEngineStatusCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + dbEngineVersion: __expectString, + dfeQueryEngine: __expectString, + features: (_) => de_DocumentValuedMap(_, context), + gremlin: _json, + labMode: _json, + opencypher: _json, + role: __expectString, + rollingBackTrxCount: __expectInt32, + rollingBackTrxEarliestStartTime: __expectString, + settings: _json, + sparql: _json, + startTime: __expectString, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetEngineStatusCommandError + */ +const de_GetEngineStatusCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.neptunedata#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetGremlinQueryStatusCommand + */ +export const de_GetGremlinQueryStatusCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetGremlinQueryStatusCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + queryEvalStats: (_) => de_QueryEvalStats(_, context), + queryId: __expectString, + queryString: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetGremlinQueryStatusCommandError + */ +const de_GetGremlinQueryStatusCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetLoaderJobStatusCommand + */ +export const de_GetLoaderJobStatusCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetLoaderJobStatusCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: (_) => de_Document(_, context), + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetLoaderJobStatusCommandError + */ +const de_GetLoaderJobStatusCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "BulkLoadIdNotFoundException": + case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException": + throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.neptunedata#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "LoadUrlAccessDeniedException": + case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException": + throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetMLDataProcessingJobCommand + */ +export const de_GetMLDataProcessingJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetMLDataProcessingJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + id: __expectString, + processingJob: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetMLDataProcessingJobCommandError + */ +const de_GetMLDataProcessingJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetMLEndpointCommand + */ +export const de_GetMLEndpointCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetMLEndpointCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + endpoint: _json, + endpointConfig: _json, + id: __expectString, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetMLEndpointCommandError + */ +const de_GetMLEndpointCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetMLModelTrainingJobCommand + */ +export const de_GetMLModelTrainingJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetMLModelTrainingJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + hpoJob: _json, + id: __expectString, + mlModels: _json, + modelTransformJob: _json, + processingJob: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetMLModelTrainingJobCommandError + */ +const de_GetMLModelTrainingJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetMLModelTransformJobCommand + */ +export const de_GetMLModelTransformJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetMLModelTransformJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + baseProcessingJob: _json, + id: __expectString, + models: _json, + remoteModelTransformJob: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetMLModelTransformJobCommandError + */ +const de_GetMLModelTransformJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetOpenCypherQueryStatusCommand + */ +export const de_GetOpenCypherQueryStatusCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetOpenCypherQueryStatusCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + queryEvalStats: (_) => de_QueryEvalStats(_, context), + queryId: __expectString, + queryString: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetOpenCypherQueryStatusCommandError + */ +const de_GetOpenCypherQueryStatusCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidNumericDataException": + case "com.amazonaws.neptunedata#InvalidNumericDataException": + throw await de_InvalidNumericDataExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetPropertygraphStatisticsCommand + */ +export const de_GetPropertygraphStatisticsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetPropertygraphStatisticsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: (_) => de_Statistics(_, context), + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetPropertygraphStatisticsCommandError + */ +const de_GetPropertygraphStatisticsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetPropertygraphStreamCommand + */ +export const de_GetPropertygraphStreamCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetPropertygraphStreamCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + format: __expectString, + lastEventId: _json, + lastTrxTimestampInMillis: [, __expectLong, `lastTrxTimestamp`], + records: (_) => de_PropertygraphRecordsList(_, context), + totalRecords: __expectInt32, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetPropertygraphStreamCommandError + */ +const de_GetPropertygraphStreamCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "ExpiredStreamException": + case "com.amazonaws.neptunedata#ExpiredStreamException": + throw await de_ExpiredStreamExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MemoryLimitExceededException": + case "com.amazonaws.neptunedata#MemoryLimitExceededException": + throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "StreamRecordsNotFoundException": + case "com.amazonaws.neptunedata#StreamRecordsNotFoundException": + throw await de_StreamRecordsNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.neptunedata#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetPropertygraphSummaryCommand + */ +export const de_GetPropertygraphSummaryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetPropertygraphSummaryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: (_) => de_PropertygraphSummaryValueMap(_, context), + }); + Object.assign(contents, doc); + map(contents, { + statusCode: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1GetPropertygraphSummaryCommandError + */ +const de_GetPropertygraphSummaryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetRDFGraphSummaryCommand + */ +export const de_GetRDFGraphSummaryCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetRDFGraphSummaryCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: (_) => de_RDFGraphSummaryValueMap(_, context), + }); + Object.assign(contents, doc); + map(contents, { + statusCode: [, output.statusCode], + }); + return contents; +}; + +/** + * deserializeAws_restJson1GetRDFGraphSummaryCommandError + */ +const de_GetRDFGraphSummaryCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetSparqlStatisticsCommand + */ +export const de_GetSparqlStatisticsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetSparqlStatisticsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: (_) => de_Statistics(_, context), + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetSparqlStatisticsCommandError + */ +const de_GetSparqlStatisticsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1GetSparqlStreamCommand + */ +export const de_GetSparqlStreamCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_GetSparqlStreamCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + format: __expectString, + lastEventId: _json, + lastTrxTimestampInMillis: [, __expectLong, `lastTrxTimestamp`], + records: (_) => de_SparqlRecordsList(_, context), + totalRecords: __expectInt32, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1GetSparqlStreamCommandError + */ +const de_GetSparqlStreamCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "ExpiredStreamException": + case "com.amazonaws.neptunedata#ExpiredStreamException": + throw await de_ExpiredStreamExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MemoryLimitExceededException": + case "com.amazonaws.neptunedata#MemoryLimitExceededException": + throw await de_MemoryLimitExceededExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "StreamRecordsNotFoundException": + case "com.amazonaws.neptunedata#StreamRecordsNotFoundException": + throw await de_StreamRecordsNotFoundExceptionRes(parsedOutput, context); + case "ThrottlingException": + case "com.amazonaws.neptunedata#ThrottlingException": + throw await de_ThrottlingExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListGremlinQueriesCommand + */ +export const de_ListGremlinQueriesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListGremlinQueriesCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + acceptedQueryCount: __expectInt32, + queries: (_) => de_GremlinQueries(_, context), + runningQueryCount: __expectInt32, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListGremlinQueriesCommandError + */ +const de_ListGremlinQueriesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListLoaderJobsCommand + */ +export const de_ListLoaderJobsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListLoaderJobsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListLoaderJobsCommandError + */ +const de_ListLoaderJobsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "BulkLoadIdNotFoundException": + case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException": + throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.neptunedata#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "LoadUrlAccessDeniedException": + case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException": + throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListMLDataProcessingJobsCommand + */ +export const de_ListMLDataProcessingJobsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListMLDataProcessingJobsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + ids: _json, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListMLDataProcessingJobsCommandError + */ +const de_ListMLDataProcessingJobsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListMLEndpointsCommand + */ +export const de_ListMLEndpointsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListMLEndpointsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + ids: _json, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListMLEndpointsCommandError + */ +const de_ListMLEndpointsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListMLModelTrainingJobsCommand + */ +export const de_ListMLModelTrainingJobsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListMLModelTrainingJobsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + ids: _json, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListMLModelTrainingJobsCommandError + */ +const de_ListMLModelTrainingJobsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListMLModelTransformJobsCommand + */ +export const de_ListMLModelTransformJobsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListMLModelTransformJobsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + ids: _json, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListMLModelTransformJobsCommandError + */ +const de_ListMLModelTransformJobsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ListOpenCypherQueriesCommand + */ +export const de_ListOpenCypherQueriesCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ListOpenCypherQueriesCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + acceptedQueryCount: __expectInt32, + queries: (_) => de_OpenCypherQueries(_, context), + runningQueryCount: __expectInt32, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ListOpenCypherQueriesCommandError + */ +const de_ListOpenCypherQueriesCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConcurrentModificationException": + case "com.amazonaws.neptunedata#ConcurrentModificationException": + throw await de_ConcurrentModificationExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "FailureByQueryException": + case "com.amazonaws.neptunedata#FailureByQueryException": + throw await de_FailureByQueryExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidNumericDataException": + case "com.amazonaws.neptunedata#InvalidNumericDataException": + throw await de_InvalidNumericDataExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "ParsingException": + case "com.amazonaws.neptunedata#ParsingException": + throw await de_ParsingExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "TimeLimitExceededException": + case "com.amazonaws.neptunedata#TimeLimitExceededException": + throw await de_TimeLimitExceededExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ManagePropertygraphStatisticsCommand + */ +export const de_ManagePropertygraphStatisticsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ManagePropertygraphStatisticsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ManagePropertygraphStatisticsCommandError + */ +const de_ManagePropertygraphStatisticsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1ManageSparqlStatisticsCommand + */ +export const de_ManageSparqlStatisticsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_ManageSparqlStatisticsCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1ManageSparqlStatisticsCommandError + */ +const de_ManageSparqlStatisticsCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "AccessDeniedException": + case "com.amazonaws.neptunedata#AccessDeniedException": + throw await de_AccessDeniedExceptionRes(parsedOutput, context); + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "ReadOnlyViolationException": + case "com.amazonaws.neptunedata#ReadOnlyViolationException": + throw await de_ReadOnlyViolationExceptionRes(parsedOutput, context); + case "StatisticsNotAvailableException": + case "com.amazonaws.neptunedata#StatisticsNotAvailableException": + throw await de_StatisticsNotAvailableExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1StartLoaderJobCommand + */ +export const de_StartLoaderJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_StartLoaderJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + payload: _json, + status: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1StartLoaderJobCommandError + */ +const de_StartLoaderJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "BulkLoadIdNotFoundException": + case "com.amazonaws.neptunedata#BulkLoadIdNotFoundException": + throw await de_BulkLoadIdNotFoundExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InternalFailureException": + case "com.amazonaws.neptunedata#InternalFailureException": + throw await de_InternalFailureExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "LoadUrlAccessDeniedException": + case "com.amazonaws.neptunedata#LoadUrlAccessDeniedException": + throw await de_LoadUrlAccessDeniedExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "S3Exception": + case "com.amazonaws.neptunedata#S3Exception": + throw await de_S3ExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1StartMLDataProcessingJobCommand + */ +export const de_StartMLDataProcessingJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_StartMLDataProcessingJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + arn: __expectString, + creationTimeInMillis: __expectLong, + id: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1StartMLDataProcessingJobCommandError + */ +const de_StartMLDataProcessingJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1StartMLModelTrainingJobCommand + */ +export const de_StartMLModelTrainingJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_StartMLModelTrainingJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + arn: __expectString, + creationTimeInMillis: __expectLong, + id: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1StartMLModelTrainingJobCommandError + */ +const de_StartMLModelTrainingJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +/** + * deserializeAws_restJson1StartMLModelTransformJobCommand + */ +export const de_StartMLModelTransformJobCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_StartMLModelTransformJobCommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + arn: __expectString, + creationTimeInMillis: __expectLong, + id: __expectString, + }); + Object.assign(contents, doc); + return contents; +}; + +/** + * deserializeAws_restJson1StartMLModelTransformJobCommandError + */ +const de_StartMLModelTransformJobCommandError = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + const parsedOutput: any = { + ...output, + body: await parseErrorBody(output.body, context), + }; + const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); + switch (errorCode) { + case "BadRequestException": + case "com.amazonaws.neptunedata#BadRequestException": + throw await de_BadRequestExceptionRes(parsedOutput, context); + case "ClientTimeoutException": + case "com.amazonaws.neptunedata#ClientTimeoutException": + throw await de_ClientTimeoutExceptionRes(parsedOutput, context); + case "ConstraintViolationException": + case "com.amazonaws.neptunedata#ConstraintViolationException": + throw await de_ConstraintViolationExceptionRes(parsedOutput, context); + case "IllegalArgumentException": + case "com.amazonaws.neptunedata#IllegalArgumentException": + throw await de_IllegalArgumentExceptionRes(parsedOutput, context); + case "InvalidArgumentException": + case "com.amazonaws.neptunedata#InvalidArgumentException": + throw await de_InvalidArgumentExceptionRes(parsedOutput, context); + case "InvalidParameterException": + case "com.amazonaws.neptunedata#InvalidParameterException": + throw await de_InvalidParameterExceptionRes(parsedOutput, context); + case "MLResourceNotFoundException": + case "com.amazonaws.neptunedata#MLResourceNotFoundException": + throw await de_MLResourceNotFoundExceptionRes(parsedOutput, context); + case "MissingParameterException": + case "com.amazonaws.neptunedata#MissingParameterException": + throw await de_MissingParameterExceptionRes(parsedOutput, context); + case "PreconditionsFailedException": + case "com.amazonaws.neptunedata#PreconditionsFailedException": + throw await de_PreconditionsFailedExceptionRes(parsedOutput, context); + case "TooManyRequestsException": + case "com.amazonaws.neptunedata#TooManyRequestsException": + throw await de_TooManyRequestsExceptionRes(parsedOutput, context); + case "UnsupportedOperationException": + case "com.amazonaws.neptunedata#UnsupportedOperationException": + throw await de_UnsupportedOperationExceptionRes(parsedOutput, context); + default: + const parsedBody = parsedOutput.body; + return throwDefaultError({ + output, + parsedBody, + errorCode, + }); + } +}; + +const throwDefaultError = withBaseException(__BaseException); +/** + * deserializeAws_restJson1AccessDeniedExceptionRes + */ +const de_AccessDeniedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new AccessDeniedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1BadRequestExceptionRes + */ +const de_BadRequestExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new BadRequestException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1BulkLoadIdNotFoundExceptionRes + */ +const de_BulkLoadIdNotFoundExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new BulkLoadIdNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1CancelledByUserExceptionRes + */ +const de_CancelledByUserExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new CancelledByUserException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ClientTimeoutExceptionRes + */ +const de_ClientTimeoutExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ClientTimeoutException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ConcurrentModificationExceptionRes + */ +const de_ConcurrentModificationExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ConcurrentModificationException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ConstraintViolationExceptionRes + */ +const de_ConstraintViolationExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ConstraintViolationException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ExpiredStreamExceptionRes + */ +const de_ExpiredStreamExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ExpiredStreamException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1FailureByQueryExceptionRes + */ +const de_FailureByQueryExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new FailureByQueryException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1IllegalArgumentExceptionRes + */ +const de_IllegalArgumentExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new IllegalArgumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1InternalFailureExceptionRes + */ +const de_InternalFailureExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new InternalFailureException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1InvalidArgumentExceptionRes + */ +const de_InvalidArgumentExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new InvalidArgumentException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1InvalidNumericDataExceptionRes + */ +const de_InvalidNumericDataExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new InvalidNumericDataException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1InvalidParameterExceptionRes + */ +const de_InvalidParameterExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new InvalidParameterException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1LoadUrlAccessDeniedExceptionRes + */ +const de_LoadUrlAccessDeniedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new LoadUrlAccessDeniedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1MalformedQueryExceptionRes + */ +const de_MalformedQueryExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new MalformedQueryException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1MemoryLimitExceededExceptionRes + */ +const de_MemoryLimitExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new MemoryLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1MethodNotAllowedExceptionRes + */ +const de_MethodNotAllowedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new MethodNotAllowedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1MissingParameterExceptionRes + */ +const de_MissingParameterExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new MissingParameterException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1MLResourceNotFoundExceptionRes + */ +const de_MLResourceNotFoundExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new MLResourceNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ParsingExceptionRes + */ +const de_ParsingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ParsingException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1PreconditionsFailedExceptionRes + */ +const de_PreconditionsFailedExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new PreconditionsFailedException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1QueryLimitExceededExceptionRes + */ +const de_QueryLimitExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new QueryLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1QueryLimitExceptionRes + */ +const de_QueryLimitExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new QueryLimitException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1QueryTooLargeExceptionRes + */ +const de_QueryTooLargeExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new QueryTooLargeException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ReadOnlyViolationExceptionRes + */ +const de_ReadOnlyViolationExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ReadOnlyViolationException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1S3ExceptionRes + */ +const de_S3ExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new S3Exception({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ServerShutdownExceptionRes + */ +const de_ServerShutdownExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ServerShutdownException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1StatisticsNotAvailableExceptionRes + */ +const de_StatisticsNotAvailableExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new StatisticsNotAvailableException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1StreamRecordsNotFoundExceptionRes + */ +const de_StreamRecordsNotFoundExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new StreamRecordsNotFoundException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1ThrottlingExceptionRes + */ +const de_ThrottlingExceptionRes = async (parsedOutput: any, context: __SerdeContext): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new ThrottlingException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1TimeLimitExceededExceptionRes + */ +const de_TimeLimitExceededExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new TimeLimitExceededException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1TooManyRequestsExceptionRes + */ +const de_TooManyRequestsExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new TooManyRequestsException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +/** + * deserializeAws_restJson1UnsupportedOperationExceptionRes + */ +const de_UnsupportedOperationExceptionRes = async ( + parsedOutput: any, + context: __SerdeContext +): Promise => { + const contents: any = map({}); + const data: any = parsedOutput.body; + const doc = take(data, { + code: __expectString, + detailedMessage: __expectString, + requestId: __expectString, + }); + Object.assign(contents, doc); + const exception = new UnsupportedOperationException({ + $metadata: deserializeMetadata(parsedOutput), + ...contents, + }); + return __decorateServiceException(exception, parsedOutput.body); +}; + +// se_CustomModelTrainingParameters omitted. + +// se_CustomModelTransformParameters omitted. + +// se_StringList omitted. + +// se_StringValuedMap omitted. + +// de_Classes omitted. + +// de_DeleteStatisticsValueMap omitted. + +/** + * deserializeAws_restJson1DocumentValuedMap + */ +const de_DocumentValuedMap = (output: any, context: __SerdeContext): Record => { + return Object.entries(output).reduce((acc: Record, [key, value]: [string, any]) => { + if (value === null) { + return acc; + } + acc[key] = de_Document(value, context); + return acc; + }, {}); +}; + +// de_EdgeLabels omitted. + +// de_EdgeProperties omitted. + +// de_EdgeStructure omitted. + +// de_EdgeStructures omitted. + +// de_FastResetToken omitted. + +/** + * deserializeAws_restJson1GremlinQueries + */ +const de_GremlinQueries = (output: any, context: __SerdeContext): GremlinQueryStatus[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_GremlinQueryStatus(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_restJson1GremlinQueryStatus + */ +const de_GremlinQueryStatus = (output: any, context: __SerdeContext): GremlinQueryStatus => { + return take(output, { + queryEvalStats: (_: any) => de_QueryEvalStats(_, context), + queryId: __expectString, + queryString: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1GremlinQueryStatusAttributes + */ +const de_GremlinQueryStatusAttributes = (output: any, context: __SerdeContext): GremlinQueryStatusAttributes => { + return take(output, { + attributes: (_: any) => de_Document(_, context), + code: __expectInt32, + message: __expectString, + }) as any; +}; + +// de_LoaderIdResult omitted. + +// de_LongValuedMap omitted. + +// de_LongValuedMapList omitted. + +// de_MlConfigDefinition omitted. + +// de_MlModels omitted. + +// de_MlResourceDefinition omitted. + +// de_Models omitted. + +// de_NodeLabels omitted. + +// de_NodeProperties omitted. + +// de_NodeStructure omitted. + +// de_NodeStructures omitted. + +/** + * deserializeAws_restJson1OpenCypherQueries + */ +const de_OpenCypherQueries = (output: any, context: __SerdeContext): GremlinQueryStatus[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_GremlinQueryStatus(entry, context); + }); + return retVal; +}; + +// de_OutgoingEdgeLabels omitted. + +// de_Predicates omitted. + +/** + * deserializeAws_restJson1PropertygraphData + */ +const de_PropertygraphData = (output: any, context: __SerdeContext): PropertygraphData => { + return take(output, { + from: __expectString, + id: __expectString, + key: __expectString, + to: __expectString, + type: __expectString, + value: (_: any) => de_Document(_, context), + }) as any; +}; + +/** + * deserializeAws_restJson1PropertygraphRecord + */ +const de_PropertygraphRecord = (output: any, context: __SerdeContext): PropertygraphRecord => { + return take(output, { + commitTimestampInMillis: [, __expectLong, `commitTimestamp`], + data: (_: any) => de_PropertygraphData(_, context), + eventId: _json, + isLastOp: __expectBoolean, + op: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1PropertygraphRecordsList + */ +const de_PropertygraphRecordsList = (output: any, context: __SerdeContext): PropertygraphRecord[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_PropertygraphRecord(entry, context); + }); + return retVal; +}; + +// de_PropertygraphSummary omitted. + +/** + * deserializeAws_restJson1PropertygraphSummaryValueMap + */ +const de_PropertygraphSummaryValueMap = (output: any, context: __SerdeContext): PropertygraphSummaryValueMap => { + return take(output, { + graphSummary: _json, + lastStatisticsComputationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + version: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1QueryEvalStats + */ +const de_QueryEvalStats = (output: any, context: __SerdeContext): QueryEvalStats => { + return take(output, { + cancelled: __expectBoolean, + elapsed: __expectInt32, + subqueries: (_: any) => de_Document(_, context), + waited: __expectInt32, + }) as any; +}; + +// de_QueryLanguageVersion omitted. + +// de_RDFGraphSummary omitted. + +/** + * deserializeAws_restJson1RDFGraphSummaryValueMap + */ +const de_RDFGraphSummaryValueMap = (output: any, context: __SerdeContext): RDFGraphSummaryValueMap => { + return take(output, { + graphSummary: _json, + lastStatisticsComputationTime: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + version: __expectString, + }) as any; +}; + +// de_RefreshStatisticsIdMap omitted. + +// de_SparqlData omitted. + +/** + * deserializeAws_restJson1SparqlRecord + */ +const de_SparqlRecord = (output: any, context: __SerdeContext): SparqlRecord => { + return take(output, { + commitTimestampInMillis: [, __expectLong, `commitTimestamp`], + data: _json, + eventId: _json, + isLastOp: __expectBoolean, + op: __expectString, + }) as any; +}; + +/** + * deserializeAws_restJson1SparqlRecordsList + */ +const de_SparqlRecordsList = (output: any, context: __SerdeContext): SparqlRecord[] => { + const retVal = (output || []) + .filter((e: any) => e != null) + .map((entry: any) => { + return de_SparqlRecord(entry, context); + }); + return retVal; +}; + +/** + * deserializeAws_restJson1Statistics + */ +const de_Statistics = (output: any, context: __SerdeContext): Statistics => { + return take(output, { + active: __expectBoolean, + autoCompute: __expectBoolean, + date: (_: any) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)), + note: __expectString, + signatureInfo: _json, + statisticsId: __expectString, + }) as any; +}; + +// de_StatisticsSummary omitted. + +// de_StringList omitted. + +// de_StringValuedMap omitted. + +// de_SubjectStructure omitted. + +// de_SubjectStructures omitted. + +/** + * deserializeAws_restJson1Document + */ +const de_Document = (output: any, context: __SerdeContext): __DocumentType => { + return output; +}; + +const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({ + httpStatusCode: output.statusCode, + requestId: + output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], + extendedRequestId: output.headers["x-amz-id-2"], + cfId: output.headers["x-amz-cf-id"], +}); + +// Encode Uint8Array data into string with utf-8. +const collectBodyString = (streamBody: any, context: __SerdeContext): Promise => + collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); + +const isSerializableHeaderValue = (value: any): boolean => + value !== undefined && + value !== null && + value !== "" && + (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && + (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); + +const parseBody = (streamBody: any, context: __SerdeContext): any => + collectBodyString(streamBody, context).then((encoded) => { + if (encoded.length) { + return JSON.parse(encoded); + } + return {}; + }); + +const parseErrorBody = async (errorBody: any, context: __SerdeContext) => { + const value = await parseBody(errorBody, context); + value.message = value.message ?? value.Message; + return value; +}; + +/** + * Load an error code for the aws.rest-json-1.1 protocol. + */ +const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string | undefined => { + const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); + + const sanitizeErrorCode = (rawValue: string | number): string => { + let cleanValue = rawValue; + if (typeof cleanValue === "number") { + cleanValue = cleanValue.toString(); + } + if (cleanValue.indexOf(",") >= 0) { + cleanValue = cleanValue.split(",")[0]; + } + if (cleanValue.indexOf(":") >= 0) { + cleanValue = cleanValue.split(":")[0]; + } + if (cleanValue.indexOf("#") >= 0) { + cleanValue = cleanValue.split("#")[1]; + } + return cleanValue; + }; + + const headerKey = findKey(output.headers, "x-amzn-errortype"); + if (headerKey !== undefined) { + return sanitizeErrorCode(output.headers[headerKey]); + } + + if (data.code !== undefined) { + return sanitizeErrorCode(data.code); + } + + if (data["__type"] !== undefined) { + return sanitizeErrorCode(data["__type"]); + } +}; diff --git a/clients/client-neptunedata/src/runtimeConfig.browser.ts b/clients/client-neptunedata/src/runtimeConfig.browser.ts new file mode 100644 index 0000000000000..c67b6aa869f9b --- /dev/null +++ b/clients/client-neptunedata/src/runtimeConfig.browser.ts @@ -0,0 +1,44 @@ +// smithy-typescript generated code +// @ts-ignore: package.json will be imported from dist folders +import packageInfo from "../package.json"; // eslint-disable-line + +import { Sha256 } from "@aws-crypto/sha256-browser"; +import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; +import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; +import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; +import { invalidProvider } from "@smithy/invalid-dependency"; +import { calculateBodyLength } from "@smithy/util-body-length-browser"; +import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; +import { NeptunedataClientConfig } from "./NeptunedataClient"; +import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; +import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; +import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: NeptunedataClientConfig) => { + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getSharedRuntimeConfig(config); + return { + ...clientSharedValues, + ...config, + runtime: "browser", + defaultsMode, + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + credentialDefaultProvider: + config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), + defaultUserAgentProvider: + config?.defaultUserAgentProvider ?? + defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, + region: config?.region ?? invalidProvider("Region is missing"), + requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), + retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), + sha256: config?.sha256 ?? Sha256, + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), + useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), + }; +}; diff --git a/clients/client-neptunedata/src/runtimeConfig.native.ts b/clients/client-neptunedata/src/runtimeConfig.native.ts new file mode 100644 index 0000000000000..6fb0c29c3e55d --- /dev/null +++ b/clients/client-neptunedata/src/runtimeConfig.native.ts @@ -0,0 +1,18 @@ +// smithy-typescript generated code +import { Sha256 } from "@aws-crypto/sha256-js"; + +import { NeptunedataClientConfig } from "./NeptunedataClient"; +import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: NeptunedataClientConfig) => { + const browserDefaults = getBrowserRuntimeConfig(config); + return { + ...browserDefaults, + ...config, + runtime: "react-native", + sha256: config?.sha256 ?? Sha256, + }; +}; diff --git a/clients/client-neptunedata/src/runtimeConfig.shared.ts b/clients/client-neptunedata/src/runtimeConfig.shared.ts new file mode 100644 index 0000000000000..5cc7bfa8ebdec --- /dev/null +++ b/clients/client-neptunedata/src/runtimeConfig.shared.ts @@ -0,0 +1,25 @@ +// smithy-typescript generated code +import { NoOpLogger } from "@smithy/smithy-client"; +import { parseUrl } from "@smithy/url-parser"; +import { fromBase64, toBase64 } from "@smithy/util-base64"; +import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; + +import { defaultEndpointResolver } from "./endpoint/endpointResolver"; +import { NeptunedataClientConfig } from "./NeptunedataClient"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: NeptunedataClientConfig) => ({ + apiVersion: "2023-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, + disableHostPrefix: config?.disableHostPrefix ?? false, + endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, + extensions: config?.extensions ?? [], + logger: config?.logger ?? new NoOpLogger(), + serviceId: config?.serviceId ?? "neptunedata", + urlParser: config?.urlParser ?? parseUrl, + utf8Decoder: config?.utf8Decoder ?? fromUtf8, + utf8Encoder: config?.utf8Encoder ?? toUtf8, +}); diff --git a/clients/client-neptunedata/src/runtimeConfig.ts b/clients/client-neptunedata/src/runtimeConfig.ts new file mode 100644 index 0000000000000..e73248aef5104 --- /dev/null +++ b/clients/client-neptunedata/src/runtimeConfig.ts @@ -0,0 +1,59 @@ +// smithy-typescript generated code +// @ts-ignore: package.json will be imported from dist folders +import packageInfo from "../package.json"; // eslint-disable-line + +import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; +import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; +import { + NODE_REGION_CONFIG_FILE_OPTIONS, + NODE_REGION_CONFIG_OPTIONS, + NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, + NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, +} from "@smithy/config-resolver"; +import { Hash } from "@smithy/hash-node"; +import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; +import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; +import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; +import { calculateBodyLength } from "@smithy/util-body-length-node"; +import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; +import { NeptunedataClientConfig } from "./NeptunedataClient"; +import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; +import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; +import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; +import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; + +/** + * @internal + */ +export const getRuntimeConfig = (config: NeptunedataClientConfig) => { + emitWarningIfUnsupportedVersion(process.version); + const defaultsMode = resolveDefaultsModeConfig(config); + const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); + const clientSharedValues = getSharedRuntimeConfig(config); + return { + ...clientSharedValues, + ...config, + runtime: "node", + defaultsMode, + bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, + credentialDefaultProvider: + config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + defaultUserAgentProvider: + config?.defaultUserAgentProvider ?? + defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), + maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), + region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), + requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), + retryMode: + config?.retryMode ?? + loadNodeConfig({ + ...NODE_RETRY_MODE_CONFIG_OPTIONS, + default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, + }), + sha256: config?.sha256 ?? Hash.bind(null, "sha256"), + streamCollector: config?.streamCollector ?? streamCollector, + useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), + useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), + }; +}; diff --git a/clients/client-neptunedata/src/runtimeExtensions.ts b/clients/client-neptunedata/src/runtimeExtensions.ts new file mode 100644 index 0000000000000..2f67f165f6e7d --- /dev/null +++ b/clients/client-neptunedata/src/runtimeExtensions.ts @@ -0,0 +1,36 @@ +// smithy-typescript generated code +import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; + +import { NeptunedataExtensionConfiguration } from "./extensionConfiguration"; + +/** + * @public + */ +export interface RuntimeExtension { + configure(clientConfiguration: NeptunedataExtensionConfiguration): void; +} + +/** + * @public + */ +export interface RuntimeExtensionsConfig { + extensions: RuntimeExtension[]; +} + +const asPartial = >(t: T) => t; + +/** + * @internal + */ +export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { + const extensionConfiguration: NeptunedataExtensionConfiguration = { + ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), + }; + + extensions.forEach((extension) => extension.configure(extensionConfiguration)); + + return { + ...runtimeConfig, + ...resolveDefaultRuntimeConfig(extensionConfiguration), + }; +}; diff --git a/clients/client-neptunedata/tsconfig.cjs.json b/clients/client-neptunedata/tsconfig.cjs.json new file mode 100644 index 0000000000000..3567d85ba8460 --- /dev/null +++ b/clients/client-neptunedata/tsconfig.cjs.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "outDir": "dist-cjs" + } +} diff --git a/clients/client-neptunedata/tsconfig.es.json b/clients/client-neptunedata/tsconfig.es.json new file mode 100644 index 0000000000000..809f57bde65e6 --- /dev/null +++ b/clients/client-neptunedata/tsconfig.es.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "lib": ["dom"], + "module": "esnext", + "outDir": "dist-es" + } +} diff --git a/clients/client-neptunedata/tsconfig.json b/clients/client-neptunedata/tsconfig.json new file mode 100644 index 0000000000000..344909de21289 --- /dev/null +++ b/clients/client-neptunedata/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "@tsconfig/node14/tsconfig.json", + "compilerOptions": { + "downlevelIteration": true, + "importHelpers": true, + "incremental": true, + "removeComments": true, + "resolveJsonModule": true, + "rootDir": "src", + "useUnknownInCatchVariables": false + }, + "exclude": ["test/"] +} diff --git a/clients/client-neptunedata/tsconfig.types.json b/clients/client-neptunedata/tsconfig.types.json new file mode 100644 index 0000000000000..4c3dfa7b3d25f --- /dev/null +++ b/clients/client-neptunedata/tsconfig.types.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig", + "compilerOptions": { + "removeComments": false, + "declaration": true, + "declarationDir": "dist-types", + "emitDeclarationOnly": true + }, + "exclude": ["test/**/*", "dist-types/**/*"] +} diff --git a/clients/client-neptunedata/typedoc.json b/clients/client-neptunedata/typedoc.json new file mode 100644 index 0000000000000..8a364aa93b692 --- /dev/null +++ b/clients/client-neptunedata/typedoc.json @@ -0,0 +1,6 @@ +{ + "extends": ["../../typedoc.client.json"], + "entryPoints": ["src/index.ts"], + "out": "docs", + "readme": "README.md" +} diff --git a/codegen/sdk-codegen/aws-models/neptunedata.json b/codegen/sdk-codegen/aws-models/neptunedata.json new file mode 100644 index 0000000000000..789dab2dbfff5 --- /dev/null +++ b/codegen/sdk-codegen/aws-models/neptunedata.json @@ -0,0 +1,8032 @@ +{ + "smithy": "2.0", + "shapes": { + "com.amazonaws.neptunedata#AccessDeniedException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised in case of an authentication or authorization failure.

", + "smithy.api#error": "client", + "smithy.api#httpError": 403 + } + }, + "com.amazonaws.neptunedata#Action": { + "type": "enum", + "members": { + "INITIALIZE_RESET": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "initiateDatabaseReset" + } + }, + "PERFORM_RESET": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "performDatabaseReset" + } + } + } + }, + "com.amazonaws.neptunedata#AmazonNeptuneDataplane": { + "type": "service", + "version": "2023-08-01", + "operations": [ + { + "target": "com.amazonaws.neptunedata#CancelGremlinQuery" + }, + { + "target": "com.amazonaws.neptunedata#CancelLoaderJob" + }, + { + "target": "com.amazonaws.neptunedata#CancelMLDataProcessingJob" + }, + { + "target": "com.amazonaws.neptunedata#CancelMLModelTrainingJob" + }, + { + "target": "com.amazonaws.neptunedata#CancelMLModelTransformJob" + }, + { + "target": "com.amazonaws.neptunedata#CancelOpenCypherQuery" + }, + { + "target": "com.amazonaws.neptunedata#CreateMLEndpoint" + }, + { + "target": "com.amazonaws.neptunedata#DeleteMLEndpoint" + }, + { + "target": "com.amazonaws.neptunedata#DeletePropertygraphStatistics" + }, + { + "target": "com.amazonaws.neptunedata#DeleteSparqlStatistics" + }, + { + "target": "com.amazonaws.neptunedata#ExecuteFastReset" + }, + { + "target": "com.amazonaws.neptunedata#ExecuteGremlinExplainQuery" + }, + { + "target": "com.amazonaws.neptunedata#ExecuteGremlinProfileQuery" + }, + { + "target": "com.amazonaws.neptunedata#ExecuteGremlinQuery" + }, + { + "target": "com.amazonaws.neptunedata#ExecuteOpenCypherExplainQuery" + }, + { + "target": "com.amazonaws.neptunedata#ExecuteOpenCypherQuery" + }, + { + "target": "com.amazonaws.neptunedata#GetEngineStatus" + }, + { + "target": "com.amazonaws.neptunedata#GetGremlinQueryStatus" + }, + { + "target": "com.amazonaws.neptunedata#GetLoaderJobStatus" + }, + { + "target": "com.amazonaws.neptunedata#GetMLDataProcessingJob" + }, + { + "target": "com.amazonaws.neptunedata#GetMLEndpoint" + }, + { + "target": "com.amazonaws.neptunedata#GetMLModelTrainingJob" + }, + { + "target": "com.amazonaws.neptunedata#GetMLModelTransformJob" + }, + { + "target": "com.amazonaws.neptunedata#GetOpenCypherQueryStatus" + }, + { + "target": "com.amazonaws.neptunedata#GetPropertygraphStatistics" + }, + { + "target": "com.amazonaws.neptunedata#GetPropertygraphStream" + }, + { + "target": "com.amazonaws.neptunedata#GetPropertygraphSummary" + }, + { + "target": "com.amazonaws.neptunedata#GetRDFGraphSummary" + }, + { + "target": "com.amazonaws.neptunedata#GetSparqlStatistics" + }, + { + "target": "com.amazonaws.neptunedata#GetSparqlStream" + }, + { + "target": "com.amazonaws.neptunedata#ListGremlinQueries" + }, + { + "target": "com.amazonaws.neptunedata#ListLoaderJobs" + }, + { + "target": "com.amazonaws.neptunedata#ListMLDataProcessingJobs" + }, + { + "target": "com.amazonaws.neptunedata#ListMLEndpoints" + }, + { + "target": "com.amazonaws.neptunedata#ListMLModelTrainingJobs" + }, + { + "target": "com.amazonaws.neptunedata#ListMLModelTransformJobs" + }, + { + "target": "com.amazonaws.neptunedata#ListOpenCypherQueries" + }, + { + "target": "com.amazonaws.neptunedata#ManagePropertygraphStatistics" + }, + { + "target": "com.amazonaws.neptunedata#ManageSparqlStatistics" + }, + { + "target": "com.amazonaws.neptunedata#StartLoaderJob" + }, + { + "target": "com.amazonaws.neptunedata#StartMLDataProcessingJob" + }, + { + "target": "com.amazonaws.neptunedata#StartMLModelTrainingJob" + }, + { + "target": "com.amazonaws.neptunedata#StartMLModelTransformJob" + } + ], + "traits": { + "aws.api#service": { + "sdkId": "neptunedata", + "arnNamespace": "neptune-db" + }, + "aws.auth#sigv4": { + "name": "neptune-db" + }, + "aws.protocols#restJson1": {}, + "smithy.api#documentation": "Neptune Data API\n

The Amazon Neptune data API provides SDK support for more than 40 of Neptune's data\n operations, including data loading, query execution, data inquiry, and machine learning.\n It supports all three Neptune query languages (Gremlin, openCypher and SPARQL), and is\n available in all SDK languages. It automatically signs API requests and greatly simplifies\n integrating Neptune into your applications.

", + "smithy.api#externalDocumentation": { + "API Reference": "https://docs.aws.amazon.com/neptune/latest/userguide/intro.html" + }, + "smithy.api#title": "Amazon NeptuneData", + "smithy.rules#endpointRuleSet": { + "version": "1.0", + "parameters": { + "Region": { + "builtIn": "AWS::Region", + "required": false, + "documentation": "The AWS region used to dispatch the request.", + "type": "String" + }, + "UseDualStack": { + "builtIn": "AWS::UseDualStack", + "required": true, + "default": false, + "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", + "type": "Boolean" + }, + "UseFIPS": { + "builtIn": "AWS::UseFIPS", + "required": true, + "default": false, + "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", + "type": "Boolean" + }, + "Endpoint": { + "builtIn": "SDK::Endpoint", + "required": false, + "documentation": "Override the endpoint used to send this request", + "type": "String" + } + }, + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Endpoint" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "error": "Invalid Configuration: FIPS and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", + "type": "error" + }, + { + "conditions": [], + "endpoint": { + "url": { + "ref": "Endpoint" + }, + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "isSet", + "argv": [ + { + "ref": "Region" + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "aws.partition", + "argv": [ + { + "ref": "Region" + } + ], + "assign": "PartitionResult" + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + }, + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + }, + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://neptune-db-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS and DualStack are enabled, but this partition does not support one or both", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseFIPS" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsFIPS" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://neptune-db-fips.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "FIPS is enabled but this partition does not support FIPS", + "type": "error" + } + ] + }, + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + { + "ref": "UseDualStack" + }, + true + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [ + { + "fn": "booleanEquals", + "argv": [ + true, + { + "fn": "getAttr", + "argv": [ + { + "ref": "PartitionResult" + }, + "supportsDualStack" + ] + } + ] + } + ], + "type": "tree", + "rules": [ + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://neptune-db.{Region}.{PartitionResult#dualStackDnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + }, + { + "conditions": [], + "error": "DualStack is enabled but this partition does not support DualStack", + "type": "error" + } + ] + }, + { + "conditions": [], + "type": "tree", + "rules": [ + { + "conditions": [], + "endpoint": { + "url": "https://neptune-db.{Region}.{PartitionResult#dnsSuffix}", + "properties": {}, + "headers": {} + }, + "type": "endpoint" + } + ] + } + ] + } + ] + }, + { + "conditions": [], + "error": "Invalid Configuration: Missing Region", + "type": "error" + } + ] + } + ] + }, + "smithy.rules#endpointTests": { + "testCases": [ + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.us-east-1.api.aws" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.us-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.cn-north-1.api.amazonwebservices.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.cn-north-1.amazonaws.com.cn" + } + }, + "params": { + "Region": "cn-north-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.us-gov-east-1.api.aws" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.us-gov-east-1.amazonaws.com" + } + }, + "params": { + "Region": "us-gov-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.us-iso-east-1.c2s.ic.gov" + } + }, + "params": { + "Region": "us-iso-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack enabled", + "expect": { + "error": "FIPS and DualStack are enabled, but this partition does not support one or both" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db-fips.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": true, + "UseDualStack": false + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack enabled", + "expect": { + "error": "DualStack is enabled but this partition does not support DualStack" + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": true + } + }, + { + "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", + "expect": { + "endpoint": { + "url": "https://neptune-db.us-isob-east-1.sc2s.sgov.gov" + } + }, + "params": { + "Region": "us-isob-east-1", + "UseFIPS": false, + "UseDualStack": false + } + }, + { + "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", + "expect": { + "endpoint": { + "url": "https://example.com" + } + }, + "params": { + "UseFIPS": false, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips enabled and dualstack disabled", + "expect": { + "error": "Invalid Configuration: FIPS and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": true, + "UseDualStack": false, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "For custom endpoint with fips disabled and dualstack enabled", + "expect": { + "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" + }, + "params": { + "Region": "us-east-1", + "UseFIPS": false, + "UseDualStack": true, + "Endpoint": "https://example.com" + } + }, + { + "documentation": "Missing region", + "expect": { + "error": "Invalid Configuration: Missing Region" + } + } + ], + "version": "1.0" + } + } + }, + "com.amazonaws.neptunedata#BadRequestException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the bad request.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request is submitted that cannot be processed.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#BulkLoadIdNotFoundException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The bulk-load job ID that could not be found.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a specified bulk-load job ID cannot be found.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#CancelGremlinQuery": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#CancelGremlinQueryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#CancelGremlinQueryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Cancels a Gremlin query. See Gremlin\n query cancellation for more information.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/gremlin/status/{queryId}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#CancelGremlinQueryInput": { + "type": "structure", + "members": { + "queryId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier that identifies the query to be canceled.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#CancelGremlinQueryOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the cancelation

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#CancelLoaderJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#CancelLoaderJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#CancelLoaderJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#BulkLoadIdNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InternalFailureException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#LoadUrlAccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Cancels a specified load job. This is an HTTP DELETE\n request.

\n

See Neptune\n Loader Get-Status API for more information.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/loader/{loadId}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#CancelLoaderJobInput": { + "type": "structure", + "members": { + "loadId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the load job to be deleted.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#CancelLoaderJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The cancellation status.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#CancelMLDataProcessingJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#CancelMLDataProcessingJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#CancelMLDataProcessingJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Cancels a Neptune ML data processing job. See The\n dataprocessing command.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/ml/dataprocessing/{id}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#CancelMLDataProcessingJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the data-processing job.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + }, + "clean": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If set to TRUE, this flag specifies that all\n Neptune ML S3 artifacts should be deleted when the job is stopped.\n The default is FALSE.

", + "smithy.api#httpQuery": "clean" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#CancelMLDataProcessingJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the cancellation request.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#CancelMLModelTrainingJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#CancelMLModelTrainingJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#CancelMLModelTrainingJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Cancels a Neptune ML model training job. See Model\n training using the modeltraining command.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/ml/modeltraining/{id}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#CancelMLModelTrainingJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the model-training job to be canceled.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + }, + "clean": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If set to TRUE, this flag specifies that all\n Amazon S3 artifacts should be deleted when the job is stopped.\n The default is FALSE.

", + "smithy.api#httpQuery": "clean" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#CancelMLModelTrainingJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the cancellation.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#CancelMLModelTransformJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#CancelMLModelTransformJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#CancelMLModelTransformJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Cancels a specified model transform job. See Use\n a trained model to generate new model artifacts.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/ml/modeltransform/{id}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#CancelMLModelTransformJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the model transform job to be canceled.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + }, + "clean": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If this flag is set to TRUE, all Neptune ML S3 artifacts\n should be deleted when the job is stopped. The default is FALSE.

", + "smithy.api#httpQuery": "clean" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#CancelMLModelTransformJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

the status of the cancelation.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#CancelOpenCypherQuery": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#CancelOpenCypherQueryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#CancelOpenCypherQueryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidNumericDataException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Cancels a specified openCypher query. See Neptune\n openCypher status endpoint for more information.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/opencypher/status/{queryId}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#CancelOpenCypherQueryInput": { + "type": "structure", + "members": { + "queryId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the openCypher query to cancel.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "silent": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If set to TRUE, causes the cancelation of the\n openCypher query to happen silently.

", + "smithy.api#httpQuery": "silent" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#CancelOpenCypherQueryOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The cancellation status of the openCypher query.

" + } + }, + "payload": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

The cancelation payload for the openCypher query.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#CancelledByUserException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a user cancelled a request.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#Classes": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#ClientTimeoutException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request timed out in the client.

", + "smithy.api#error": "client", + "smithy.api#httpError": 408, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#ConcurrentModificationException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request attempts to modify data that is concurrently being\n modified by another process.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#ConstraintViolationException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a value in a request field did not satisfy required constraints.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#CreateMLEndpoint": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#CreateMLEndpointInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#CreateMLEndpointOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new Neptune ML inference endpoint that lets you query\n one specific model that the model-training process constructed. See\n Managing\n inference endpoints using the endpoints command.

", + "smithy.api#http": { + "method": "POST", + "uri": "/ml/endpoints", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#CreateMLEndpointInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A unique identifier for the new inference endpoint. The default\n is an autogenerated timestamped name.

" + } + }, + "mlModelTrainingJobId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The job Id of the completed model-training job that has created the\n model that the inference endpoint will point to. You must supply either\n the mlModelTrainingJobId or the mlModelTransformJobId.

" + } + }, + "mlModelTransformJobId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The job Id of the completed model-transform job. You must supply\n either the mlModelTrainingJobId or the mlModelTransformJobId.

" + } + }, + "update": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If set to true, update indicates that this\n is an update request. The default is false. You must supply\n either the mlModelTrainingJobId or the mlModelTransformJobId.

" + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role providing Neptune access to SageMaker and\n Amazon S3 resources. This must be listed in your DB cluster parameter\n group or an error will be thrown.

" + } + }, + "modelName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Model type for training. By default the Neptune ML model is\n automatically based on the modelType used in data processing,\n but you can specify a different model type here. The default is\n rgcn for heterogeneous graphs and kge for\n knowledge graphs. The only valid value for heterogeneous graphs is\n rgcn. Valid values for knowledge graphs are: kge,\n transe, distmult, and rotate.

" + } + }, + "instanceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of Neptune ML instance to use for online servicing.\n The default is ml.m5.xlarge. Choosing the ML instance\n for an inference endpoint depends on the task type, the graph size,\n and your budget.

" + } + }, + "instanceCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The minimum number of Amazon EC2 instances to deploy to an endpoint\n for prediction. The default is 1

" + } + }, + "volumeEncryptionKMSKey": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Key Management Service (Amazon KMS) key that SageMaker uses\n to encrypt data on the storage volume attached to the ML compute instances\n that run the training job. The default is None.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#CreateMLEndpointOutput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the new inference endpoint.

" + } + }, + "arn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN for the new inference endpoint.

" + } + }, + "creationTimeInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The endpoint creation time, in milliseconds.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#CustomModelTrainingParameters": { + "type": "structure", + "members": { + "sourceS3DirectoryPath": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The path to the Amazon S3 location where the Python module\n implementing your model is located. This must point to a valid\n existing Amazon S3 location that contains, at a minimum, a training\n script, a transform script, and a model-hpo-configuration.json\n file.

", + "smithy.api#required": {} + } + }, + "trainingEntryPointScript": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of the entry point in your module of a script that performs\n model training and takes hyperparameters as command-line arguments,\n including fixed hyperparameters. The default is training.py.

" + } + }, + "transformEntryPointScript": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of the entry point in your module of a script that should\n be run after the best model from the hyperparameter search has been\n identified, to compute the model artifacts necessary for model deployment.\n It should be able to run with no command-line arguments.The default is\n transform.py.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains custom model training parameters. See Custom\n models in Neptune ML.

" + } + }, + "com.amazonaws.neptunedata#CustomModelTransformParameters": { + "type": "structure", + "members": { + "sourceS3DirectoryPath": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The path to the Amazon S3 location where the Python module\n implementing your model is located. This must point to a valid\n existing Amazon S3 location that contains, at a minimum, a training\n script, a transform script, and a model-hpo-configuration.json\n file.

", + "smithy.api#required": {} + } + }, + "transformEntryPointScript": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of the entry point in your module of a script that should\n be run after the best model from the hyperparameter search has been\n identified, to compute the model artifacts necessary for model deployment.\n It should be able to run with no command-line arguments. The default\n is transform.py.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains custom model transform parameters. See Use\n a trained model to generate new model artifacts.

" + } + }, + "com.amazonaws.neptunedata#DeleteMLEndpoint": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#DeleteMLEndpointInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#DeleteMLEndpointOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Cancels the creation of a Neptune ML inference endpoint. See\n Managing\n inference endpoints using the endpoints command.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/ml/endpoints/{id}", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#DeleteMLEndpointInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the inference endpoint.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role providing Neptune access to SageMaker and\n Amazon S3 resources. This must be listed in your DB cluster parameter\n group or an error will be thrown.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + }, + "clean": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If this flag is set to TRUE, all Neptune ML S3 artifacts\n should be deleted when the job is stopped. The default is\n FALSE.

", + "smithy.api#httpQuery": "clean" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#DeleteMLEndpointOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the cancellation.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#DeletePropertygraphStatistics": { + "type": "operation", + "input": { + "target": "smithy.api#Unit" + }, + "output": { + "target": "com.amazonaws.neptunedata#DeletePropertygraphStatisticsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes statistics for Gremlin and openCypher (property graph)\n data.

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/propertygraph/statistics" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#DeletePropertygraphStatisticsOutput": { + "type": "structure", + "members": { + "statusCode": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The HTTP response code: 200 if the delete was successful, or\n 204 if there were no statistics to delete.

", + "smithy.api#httpResponseCode": {} + } + }, + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The cancel status.

" + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#DeleteStatisticsValueMap", + "traits": { + "smithy.api#documentation": "

The deletion payload.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#DeleteSparqlStatistics": { + "type": "operation", + "input": { + "target": "smithy.api#Unit" + }, + "output": { + "target": "com.amazonaws.neptunedata#DeleteSparqlStatisticsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Deletes SPARQL statistics

", + "smithy.api#http": { + "method": "DELETE", + "uri": "/sparql/statistics" + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#DeleteSparqlStatisticsOutput": { + "type": "structure", + "members": { + "statusCode": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The HTTP response code: 200 if the delete was successful, or\n 204 if there were no statistics to delete.

", + "smithy.api#httpResponseCode": {} + } + }, + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The cancel status.

" + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#DeleteStatisticsValueMap", + "traits": { + "smithy.api#documentation": "

The deletion payload.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#DeleteStatisticsValueMap": { + "type": "structure", + "members": { + "active": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

The current status of the statistics.

" + } + }, + "statisticsId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the statistics generation run that is currently occurring.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The payload for DeleteStatistics.

" + } + }, + "com.amazonaws.neptunedata#DocumentValuedMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#Document" + } + }, + "com.amazonaws.neptunedata#EdgeLabels": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#EdgeProperties": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#EdgeStructure": { + "type": "structure", + "members": { + "count": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of edges that have this specific structure.

" + } + }, + "edgeProperties": { + "target": "com.amazonaws.neptunedata#EdgeProperties", + "traits": { + "smithy.api#documentation": "

A list of edge properties present in this specific structure.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

An edge structure.

" + } + }, + "com.amazonaws.neptunedata#EdgeStructures": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#EdgeStructure" + } + }, + "com.amazonaws.neptunedata#Encoding": { + "type": "enum", + "members": { + "GZIP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "gzip" + } + } + } + }, + "com.amazonaws.neptunedata#ExecuteFastReset": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ExecuteFastResetInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ExecuteFastResetOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MethodNotAllowedException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#ServerShutdownException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

The fast reset REST API lets you reset a Neptune graph quicky\n and easily, removing all of its data.

\n

Neptune fast reset is a two-step process. First you call ExecuteFastReset\n with action set to initiateDatabaseReset. This returns a\n UUID token which you then include when calling ExecuteFastReset again\n with action set to performDatabaseReset. See Empty an Amazon Neptune\n DB cluster using the fast reset API.

", + "smithy.api#http": { + "method": "POST", + "uri": "/system", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#ExecuteFastResetInput": { + "type": "structure", + "members": { + "action": { + "target": "com.amazonaws.neptunedata#Action", + "traits": { + "smithy.api#documentation": "

The fast reset action. One of the following values:

\n
    \n
  • \n

    \n \n initiateDatabaseReset\n   –  \n This action generates a unique token needed to actually perform the \n fast reset.

    \n
  • \n
  • \n

    \n \n performDatabaseReset\n   –  \n This action uses the token generated by the initiateDatabaseReset action\n to actually perform the fast reset.

    \n

    \n

  • \n
", + "smithy.api#required": {} + } + }, + "token": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The fast-reset token to initiate the reset.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ExecuteFastResetOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status is only returned for the performDatabaseReset\n action, and indicates whether or not the fast reset rquest is accepted.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#FastResetToken", + "traits": { + "smithy.api#documentation": "

The payload is only returned by the initiateDatabaseReset\n action, and contains the unique token to use with the performDatabaseReset\n action to make the reset occur.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinExplainQuery": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ExecuteGremlinExplainQueryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ExecuteGremlinExplainQueryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#CancelledByUserException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MalformedQueryException" + }, + { + "target": "com.amazonaws.neptunedata#MemoryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitException" + }, + { + "target": "com.amazonaws.neptunedata#QueryTooLargeException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Executes a Gremlin Explain query.

\n

Amazon Neptune has added a Gremlin feature named explain\n that provides is a self-service tool for understanding the execution\n approach being taken by the Neptune engine for the query. You invoke\n it by adding an explain parameter to an HTTP call that\n submits a Gremlin query.

\n

The explain feature provides information about the logical structure\n of query execution plans. You can use this information to identify\n potential evaluation and execution bottlenecks and to tune your query,\n as explained in Tuning\n Gremlin queries. You can also use query hints to improve\n query execution plans.

", + "smithy.api#http": { + "method": "POST", + "uri": "/gremlin/explain", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinExplainQueryInput": { + "type": "structure", + "members": { + "gremlinQuery": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Gremlin explain query string.

", + "smithy.api#jsonName": "gremlin", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinExplainQueryOutput": { + "type": "structure", + "members": { + "output": { + "target": "com.amazonaws.neptunedata#ReportAsText", + "traits": { + "smithy.api#documentation": "

A text blob containing the Gremlin explain result, as described\n in Tuning\n Gremlin queries.

", + "smithy.api#httpPayload": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinProfileQuery": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ExecuteGremlinProfileQueryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ExecuteGremlinProfileQueryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#CancelledByUserException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MalformedQueryException" + }, + { + "target": "com.amazonaws.neptunedata#MemoryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitException" + }, + { + "target": "com.amazonaws.neptunedata#QueryTooLargeException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Executes a Gremlin Profile query, which runs a specified traversal,\n collects various metrics about the run, and produces a profile report\n as output. See Gremlin profile\n API in Neptune for details.

", + "smithy.api#http": { + "method": "POST", + "uri": "/gremlin/profile", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinProfileQueryInput": { + "type": "structure", + "members": { + "gremlinQuery": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Gremlin query string to profile.

", + "smithy.api#jsonName": "gremlin", + "smithy.api#required": {} + } + }, + "results": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If this flag is set to TRUE, the query results are\n gathered and displayed as part of the profile report.\n If FALSE, only the result count is displayed.

", + "smithy.api#jsonName": "profile.results" + } + }, + "chop": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

If non-zero, causes the results string to be truncated at that\n number of characters. If set to zero, the string contains all the results.

", + "smithy.api#jsonName": "profile.chop" + } + }, + "serializer": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

If non-null, the gathered results are returned in a serialized response\n message in the format specified by this parameter. See Gremlin profile\n API in Neptune for more information.

", + "smithy.api#jsonName": "profile.serializer" + } + }, + "indexOps": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If this flag is set to TRUE, the results include a\n detailed report of all index operations that took place during query\n execution and serialization.

", + "smithy.api#jsonName": "profile.indexOps" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinProfileQueryOutput": { + "type": "structure", + "members": { + "output": { + "target": "com.amazonaws.neptunedata#ReportAsText", + "traits": { + "smithy.api#documentation": "

A text blob containing the Gremlin Profile result. See\n Gremlin\n profile API in Neptune for details.

", + "smithy.api#httpPayload": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinQuery": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ExecuteGremlinQueryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ExecuteGremlinQueryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#CancelledByUserException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MalformedQueryException" + }, + { + "target": "com.amazonaws.neptunedata#MemoryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitException" + }, + { + "target": "com.amazonaws.neptunedata#QueryTooLargeException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

This commands executes a Gremlin query. Amazon Neptune is compatible\n with Apache TinkerPop3 and Gremlin, so you can use the Gremlin traversal\n language to query the graph, as described under The\n Graph in the Apache TinkerPop3 documentation.\n More details can also be found in Accessing a\n Neptune graph with Gremlin.

", + "smithy.api#http": { + "method": "POST", + "uri": "/gremlin", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinQueryInput": { + "type": "structure", + "members": { + "gremlinQuery": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Using this API, you can run Gremlin queries in string format\n much as you can using the HTTP endpoint. The interface is\n compatible with whatever Gremlin version your DB cluster is using\n (see the Tinkerpop\n client section to determine which Gremlin releases your\n engine version supports).

", + "smithy.api#jsonName": "gremlin", + "smithy.api#required": {} + } + }, + "serializer": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

If non-null, the query results are returned in a serialized response\n message in the format specified by this parameter. See the GraphSON\n section in the TinkerPop documentation for a list of the formats that\n are currently supported.

", + "smithy.api#httpHeader": "accept" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ExecuteGremlinQueryOutput": { + "type": "structure", + "members": { + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the Gremlin query.

" + } + }, + "status": { + "target": "com.amazonaws.neptunedata#GremlinQueryStatusAttributes", + "traits": { + "smithy.api#documentation": "

The status of the Gremlin query.

" + } + }, + "result": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

The Gremlin query output from the server.

" + } + }, + "meta": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

Metadata about the Gremlin query.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ExecuteOpenCypherExplainQuery": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ExecuteOpenCypherExplainQueryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ExecuteOpenCypherExplainQueryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#CancelledByUserException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidNumericDataException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MalformedQueryException" + }, + { + "target": "com.amazonaws.neptunedata#MemoryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitException" + }, + { + "target": "com.amazonaws.neptunedata#QueryTooLargeException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Executes an openCypher explain request. See\n The\n openCypher explain feature for more information.

", + "smithy.api#http": { + "method": "POST", + "uri": "/opencypher/explain", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ExecuteOpenCypherExplainQueryInput": { + "type": "structure", + "members": { + "openCypherQuery": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The openCypher query string.

", + "smithy.api#jsonName": "query", + "smithy.api#required": {} + } + }, + "parameters": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The openCypher query parameters.

" + } + }, + "explainMode": { + "target": "com.amazonaws.neptunedata#OpenCypherExplainMode", + "traits": { + "smithy.api#documentation": "

The openCypher explain mode. Can be one of:\n static, dynamic, or details.

", + "smithy.api#jsonName": "explain", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ExecuteOpenCypherExplainQueryOutput": { + "type": "structure", + "members": { + "results": { + "target": "smithy.api#Blob", + "traits": { + "smithy.api#documentation": "

A text blob containing the openCypher explain results.

", + "smithy.api#httpPayload": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ExecuteOpenCypherQuery": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ExecuteOpenCypherQueryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ExecuteOpenCypherQueryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#CancelledByUserException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidNumericDataException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MalformedQueryException" + }, + { + "target": "com.amazonaws.neptunedata#MemoryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#QueryLimitException" + }, + { + "target": "com.amazonaws.neptunedata#QueryTooLargeException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Executes an openCypher query. See Accessing\n the Neptune Graph with openCypher for more information.

\n

Neptune supports building graph applications using openCypher,\n which is currently one of the most popular query languages among\n developers working with graph databases. Developers, business analysts,\n and data scientists like openCypher's declarative, SQL-inspired syntax\n because it provides a familiar structure in which to querying property\n graphs.

\n

The openCypher language was originally developed by Neo4j, then\n open-sourced in 2015 and contributed to the openCypher project under an Apache\n 2 open-source license.

", + "smithy.api#http": { + "method": "POST", + "uri": "/opencypher", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#ExecuteOpenCypherQueryInput": { + "type": "structure", + "members": { + "openCypherQuery": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The openCypher query string to be executed.

", + "smithy.api#jsonName": "query", + "smithy.api#required": {} + } + }, + "parameters": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The openCypher query parameters for query execution. \n See Examples\n of openCypher parameterized queries for more information.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ExecuteOpenCypherQueryOutput": { + "type": "structure", + "members": { + "results": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

The openCypherquery results.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ExpiredStreamException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request attempts to access an stream that has expired.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#FailureByQueryException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request fails.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#FastResetToken": { + "type": "structure", + "members": { + "token": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A UUID generated by the database in the initiateDatabaseReset action,\n and then consumed by the performDatabaseReset to reset the database.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A structure containing the fast reset token used to initiate\n a fast reset.

" + } + }, + "com.amazonaws.neptunedata#Format": { + "type": "enum", + "members": { + "CSV": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "csv" + } + }, + "OPENCYPHER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "opencypher" + } + }, + "NTRIPLES": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ntriples" + } + }, + "NQUADS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "nquads" + } + }, + "RDFXML": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "rdfxml" + } + }, + "TURTLE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "turtle" + } + } + } + }, + "com.amazonaws.neptunedata#GetEngineStatus": { + "type": "operation", + "input": { + "target": "smithy.api#Unit" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetEngineStatusOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InternalFailureException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Check the status of the graph database on the host.

", + "smithy.api#http": { + "method": "GET", + "uri": "/status", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetEngineStatusOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Set to healthy if the instance is not experiencing problems.\n If the instance is recovering from a crash or from being rebooted and there\n are active transactions running from the latest server shutdown, status is set\n to recovery.

" + } + }, + "startTime": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Set to the UTC time at which the current server process started.

" + } + }, + "dbEngineVersion": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Set to the Neptune engine version running on your DB cluster.\n If this engine version has been manually patched since it was released,\n the version number is prefixed by Patch-.

" + } + }, + "role": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Set to reader if the instance is a read-replica,\n or to writer if the instance is the primary instance.

" + } + }, + "dfeQueryEngine": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Set to enabled if the DFE engine is fully enabled,\n or to viaQueryHint (the default) if the DFE engine is\n only used with queries that have the useDFE query hint\n set to true.

" + } + }, + "gremlin": { + "target": "com.amazonaws.neptunedata#QueryLanguageVersion", + "traits": { + "smithy.api#documentation": "

Contains information about the Gremlin query language available\n on your cluster. Specifically, it contains a version field that specifies\n the current TinkerPop version being used by the engine.

" + } + }, + "sparql": { + "target": "com.amazonaws.neptunedata#QueryLanguageVersion", + "traits": { + "smithy.api#documentation": "

Contains information about the SPARQL query language available\n on your cluster. Specifically, it contains a version field that\n specifies the current SPARQL version being used by the engine.

" + } + }, + "opencypher": { + "target": "com.amazonaws.neptunedata#QueryLanguageVersion", + "traits": { + "smithy.api#documentation": "

Contains information about the openCypher query language available\n on your cluster. Specifically, it contains a version field that\n specifies the current operCypher version being used by the engine.

" + } + }, + "labMode": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

Contains Lab Mode settings being used by the engine.

" + } + }, + "rollingBackTrxCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

If there are transactions being rolled back, this field is set\n to the number of such transactions. If there are none, the field\n doesn't appear at all.

" + } + }, + "rollingBackTrxEarliestStartTime": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Set to the start time of the earliest transaction being rolled back.\n If no transactions are being rolled back, the field doesn't appear at all.

" + } + }, + "features": { + "target": "com.amazonaws.neptunedata#DocumentValuedMap", + "traits": { + "smithy.api#documentation": "

Contains status information about the features enabled on your DB cluster.

" + } + }, + "settings": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

Contains information about the current settings on your DB cluster.\n For example, contains the current cluster query timeout setting\n (clusterQueryTimeoutInMs).

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetGremlinQueryStatus": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetGremlinQueryStatusInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetGremlinQueryStatusOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets the status of a specified Gremlin query.

", + "smithy.api#http": { + "method": "GET", + "uri": "/gremlin/status/{queryId}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetGremlinQueryStatusInput": { + "type": "structure", + "members": { + "queryId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier that identifies the Gremlin query.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetGremlinQueryStatusOutput": { + "type": "structure", + "members": { + "queryId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the query for which status is being returned.

" + } + }, + "queryString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Gremlin query string.

" + } + }, + "queryEvalStats": { + "target": "com.amazonaws.neptunedata#QueryEvalStats", + "traits": { + "smithy.api#documentation": "

The evaluation status of the Gremlin query.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetLoaderJobStatus": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetLoaderJobStatusInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetLoaderJobStatusOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#BulkLoadIdNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InternalFailureException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#LoadUrlAccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets status information about a specified load job.\n Neptune keeps track of the most recent 1,024 bulk load jobs,\n and stores the last 10,000 error details per job.

\n

See Neptune\n Loader Get-Status API for more information.

", + "smithy.api#http": { + "method": "GET", + "uri": "/loader/{loadId}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetLoaderJobStatusInput": { + "type": "structure", + "members": { + "loadId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The load ID of the load job to get the status of.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "details": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Flag indicating whether or not to include details beyond the\n overall status (TRUE or FALSE; the default\n is FALSE).

", + "smithy.api#httpQuery": "details" + } + }, + "errors": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Flag indicating whether or not to include a list of errors\n encountered (TRUE or FALSE; the default\n is FALSE).

\n

The list of errors is paged. The page and errorsPerPage\n parameters allow you to page through all the errors.

", + "smithy.api#httpQuery": "errors" + } + }, + "page": { + "target": "com.amazonaws.neptunedata#PositiveInteger", + "traits": { + "smithy.api#documentation": "

The error page number (a positive integer; the default is 1).\n Only valid when the errors parameter is set to\n TRUE.

", + "smithy.api#httpQuery": "page" + } + }, + "errorsPerPage": { + "target": "com.amazonaws.neptunedata#PositiveInteger", + "traits": { + "smithy.api#documentation": "

The number of errors returned in each page (a positive integer; the\n default is 10). Only valid when the errors\n parameter set to TRUE.

", + "smithy.api#httpQuery": "errorsPerPage" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetLoaderJobStatusOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP response code for the request.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

Status information about the load job, in a layout\n that could look like this:

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetMLDataProcessingJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetMLDataProcessingJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetMLDataProcessingJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves information about a specified data processing job. See The\n dataprocessing command.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/dataprocessing/{id}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetMLDataProcessingJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the data-processing job to be retrieved.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetMLDataProcessingJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Status of the data processing job.

" + } + }, + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of this data-processing job.

" + } + }, + "processingJob": { + "target": "com.amazonaws.neptunedata#MlResourceDefinition", + "traits": { + "smithy.api#documentation": "

Definition of the data processing job.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetMLEndpoint": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetMLEndpointInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetMLEndpointOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves details about an inference endpoint. See Managing\n inference endpoints using the endpoints command.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/endpoints/{id}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetMLEndpointInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the inference endpoint.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster parameter\n group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetMLEndpointOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the inference endpoint.

" + } + }, + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the inference endpoint.

" + } + }, + "endpoint": { + "target": "com.amazonaws.neptunedata#MlResourceDefinition", + "traits": { + "smithy.api#documentation": "

The endpoint definition.

" + } + }, + "endpointConfig": { + "target": "com.amazonaws.neptunedata#MlConfigDefinition", + "traits": { + "smithy.api#documentation": "

The endpoint configuration

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetMLModelTrainingJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetMLModelTrainingJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetMLModelTrainingJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves information about a Neptune ML model training job. See Model\n training using the modeltraining command.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/modeltraining/{id}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetMLModelTrainingJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the model-training job to retrieve.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetMLModelTrainingJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the model training job.

" + } + }, + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of this model-training job.

" + } + }, + "processingJob": { + "target": "com.amazonaws.neptunedata#MlResourceDefinition", + "traits": { + "smithy.api#documentation": "

The data processing job.

" + } + }, + "hpoJob": { + "target": "com.amazonaws.neptunedata#MlResourceDefinition", + "traits": { + "smithy.api#documentation": "

The HPO job.

" + } + }, + "modelTransformJob": { + "target": "com.amazonaws.neptunedata#MlResourceDefinition", + "traits": { + "smithy.api#documentation": "

The model transform job.

" + } + }, + "mlModels": { + "target": "com.amazonaws.neptunedata#MlModels", + "traits": { + "smithy.api#documentation": "

A list of the configurations of the ML models being used.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetMLModelTransformJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetMLModelTransformJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetMLModelTransformJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets information about a specified model transform job. See Use\n a trained model to generate new model artifacts.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/modeltransform/{id}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetMLModelTransformJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the model-transform job to be reetrieved.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetMLModelTransformJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status of the model-transform job.

" + } + }, + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique identifier of the model-transform job to be retrieved.

" + } + }, + "baseProcessingJob": { + "target": "com.amazonaws.neptunedata#MlResourceDefinition", + "traits": { + "smithy.api#documentation": "

The base data processing job.

" + } + }, + "remoteModelTransformJob": { + "target": "com.amazonaws.neptunedata#MlResourceDefinition", + "traits": { + "smithy.api#documentation": "

The remote model transform job.

" + } + }, + "models": { + "target": "com.amazonaws.neptunedata#Models", + "traits": { + "smithy.api#documentation": "

A list of the configuration information for the models being used.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetOpenCypherQueryStatus": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetOpenCypherQueryStatusInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetOpenCypherQueryStatusOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidNumericDataException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves the status of a specified openCypher query.

", + "smithy.api#http": { + "method": "GET", + "uri": "/opencypher/status/{queryId}", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetOpenCypherQueryStatusInput": { + "type": "structure", + "members": { + "queryId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the openCypher query for which to retrieve\n the query status.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetOpenCypherQueryStatusOutput": { + "type": "structure", + "members": { + "queryId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the query for which status is being returned.

" + } + }, + "queryString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The openCypher query string.

" + } + }, + "queryEvalStats": { + "target": "com.amazonaws.neptunedata#QueryEvalStats", + "traits": { + "smithy.api#documentation": "

The openCypher query evaluation status.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphStatistics": { + "type": "operation", + "input": { + "target": "smithy.api#Unit" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetPropertygraphStatisticsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets property graph statistics (Gremlin and openCypher).

", + "smithy.api#http": { + "method": "GET", + "uri": "/propertygraph/statistics", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphStatisticsOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP return code of the request. If the request succeeded,\n the code is 200. See Common\n error codes for DFE statistics request for a list of common errors.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#Statistics", + "traits": { + "smithy.api#documentation": "

Statistics for property-graph data.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphStream": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetPropertygraphStreamInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetPropertygraphStreamOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#ExpiredStreamException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MemoryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#StreamRecordsNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#ThrottlingException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a stream for a property graph.

\n

With the Neptune Streams feature, you can generate a complete\n sequence of change-log entries that record every change made to your\n graph data as it happens. GetPropertygraphStream lets\n you collect these change-log entries for a property graph.

\n

The Neptune streams feature needs to be enabled on your Neptune\n DBcluster. To enable streams, set the neptune_streams\n DB cluster parameter to 1.

\n

See Capturing\n graph changes in real time using Neptune streams.

", + "smithy.api#http": { + "method": "GET", + "uri": "/propertygraph/stream", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphStreamInput": { + "type": "structure", + "members": { + "limit": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

Specifies the maximum number of records to return. There\n is also a size limit of 10 MB on the response that can't be modified\n and that takes precedence over the number of records specified in\n the limit parameter. The response does include a\n threshold-breaching record if the 10 MB limit was reached.

\n

The range for limit is 1 to 100,000, with a\n default of 10.

", + "smithy.api#httpQuery": "limit", + "smithy.api#range": { + "min": 1, + "max": 100000 + } + } + }, + "iteratorType": { + "target": "com.amazonaws.neptunedata#IteratorType", + "traits": { + "smithy.api#documentation": "

Can be one of:

\n
    \n
  • \n

    \n AT_SEQUENCE_NUMBER   –  \n Indicates that reading should start from the event sequence number\n specified jointly by the commitNum and\n opNum parameters.

    \n
  • \n
  • \n

    \n AFTER_SEQUENCE_NUMBER   –  \n Indicates that reading should start right after the event sequence number\n specified jointly by the commitNum and opNum\n parameters.

    \n
  • \n
  • \n

    \n TRIM_HORIZON   –  \n Indicates that reading should start at the last untrimmed record in the system,\n which is the oldest unexpired (not yet deleted) record in the change-log stream.

    \n
  • \n
  • \n

    \n LATEST   –  \n Indicates that reading should start at the most recent record in the system,\n which is the latest unexpired (not yet deleted) record in the change-log stream.

    \n
  • \n
", + "smithy.api#httpQuery": "iteratorType" + } + }, + "commitNum": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The commit number of the starting record to read from the\n change-log stream. This parameter is required when iteratorType\n isAT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER, and\n ignored when iteratorType is TRIM_HORIZON or\n LATEST.

", + "smithy.api#httpQuery": "commitNum" + } + }, + "opNum": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The operation sequence number within the specified commit to\n start reading from in the change-log stream data. The default is 1.

", + "smithy.api#httpQuery": "opNum" + } + }, + "encoding": { + "target": "com.amazonaws.neptunedata#Encoding", + "traits": { + "smithy.api#documentation": "

If set to TRUE, Neptune compresses the response using gzip encoding.

", + "smithy.api#httpHeader": "Accept-Encoding" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphStreamOutput": { + "type": "structure", + "members": { + "lastEventId": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

Sequence identifier of the last change in the stream response.

\n

An event ID is composed of two fields: a commitNum, which\n identifies a transaction that changed the graph, and an opNum,\n which identifies a specific operation within that transaction:

", + "smithy.api#required": {} + } + }, + "lastTrxTimestampInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The time at which the commit for the transaction was requested,\n in milliseconds from the Unix epoch.

", + "smithy.api#jsonName": "lastTrxTimestamp", + "smithy.api#required": {} + } + }, + "format": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Serialization format for the change records being returned.\n Currently, the only supported value is PG_JSON.

", + "smithy.api#required": {} + } + }, + "records": { + "target": "com.amazonaws.neptunedata#PropertygraphRecordsList", + "traits": { + "smithy.api#documentation": "

An array of serialized change-log stream records included in the response.

", + "smithy.api#required": {} + } + }, + "totalRecords": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The total number of records in the response.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphSummary": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetPropertygraphSummaryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetPropertygraphSummaryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a graph summary for a property graph.

", + "smithy.api#http": { + "method": "GET", + "uri": "/propertygraph/statistics/summary", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphSummaryInput": { + "type": "structure", + "members": { + "mode": { + "target": "com.amazonaws.neptunedata#GraphSummaryType", + "traits": { + "smithy.api#default": "basic", + "smithy.api#documentation": "

Mode can take one of two values: BASIC (the default),\n and DETAILED.

", + "smithy.api#httpQuery": "mode" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetPropertygraphSummaryOutput": { + "type": "structure", + "members": { + "statusCode": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The HTTP return code of the request. If the request succeeded,\n the code is 200.

", + "smithy.api#httpResponseCode": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#PropertygraphSummaryValueMap", + "traits": { + "smithy.api#documentation": "

Payload containing the property graph summary response.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetRDFGraphSummary": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetRDFGraphSummaryInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetRDFGraphSummaryOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a graph summary for an RDF graph.

", + "smithy.api#http": { + "method": "GET", + "uri": "/rdf/statistics/summary", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetRDFGraphSummaryInput": { + "type": "structure", + "members": { + "mode": { + "target": "com.amazonaws.neptunedata#GraphSummaryType", + "traits": { + "smithy.api#default": "basic", + "smithy.api#documentation": "

Mode can take one of two values: BASIC (the default),\n and DETAILED.

", + "smithy.api#httpQuery": "mode" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetRDFGraphSummaryOutput": { + "type": "structure", + "members": { + "statusCode": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The HTTP return code of the request. If the request succeeded,\n the code is 200.

", + "smithy.api#httpResponseCode": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#RDFGraphSummaryValueMap", + "traits": { + "smithy.api#documentation": "

Payload for an RDF graph summary response

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetSparqlStatistics": { + "type": "operation", + "input": { + "target": "smithy.api#Unit" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetSparqlStatisticsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets RDF statistics (SPARQL).

", + "smithy.api#http": { + "method": "GET", + "uri": "/sparql/statistics", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetSparqlStatisticsOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP return code of the request. If the request succeeded,\n the code is 200. See Common\n error codes for DFE statistics request for a list of common errors.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#Statistics", + "traits": { + "smithy.api#documentation": "

Statistics for RDF data.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GetSparqlStream": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#GetSparqlStreamInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#GetSparqlStreamOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#ExpiredStreamException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MemoryLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#StreamRecordsNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#ThrottlingException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Gets a stream for an RDF graph.

\n

With the Neptune Streams feature, you can generate a complete\n sequence of change-log entries that record every change made to your\n graph data as it happens. GetSparqlStream lets\n you collect these change-log entries for an RDF graph.

\n

The Neptune streams feature needs to be enabled on your Neptune\n DBcluster. To enable streams, set the neptune_streams\n DB cluster parameter to 1.

\n

See Capturing\n graph changes in real time using Neptune streams.

", + "smithy.api#http": { + "method": "GET", + "uri": "/sparql/stream", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#GetSparqlStreamInput": { + "type": "structure", + "members": { + "limit": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

Specifies the maximum number of records to return. There\n is also a size limit of 10 MB on the response that can't be modified\n and that takes precedence over the number of records specified in\n the limit parameter. The response does include a\n threshold-breaching record if the 10 MB limit was reached.

\n

The range for limit is 1 to 100,000, with a\n default of 10.

", + "smithy.api#httpQuery": "limit", + "smithy.api#range": { + "min": 1, + "max": 100000 + } + } + }, + "iteratorType": { + "target": "com.amazonaws.neptunedata#IteratorType", + "traits": { + "smithy.api#documentation": "

Can be one of:

\n
    \n
  • \n

    \n AT_SEQUENCE_NUMBER   –  \n Indicates that reading should start from the event sequence number\n specified jointly by the commitNum and\n opNum parameters.

    \n
  • \n
  • \n

    \n AFTER_SEQUENCE_NUMBER   –  \n Indicates that reading should start right after the event sequence number\n specified jointly by the commitNum and opNum\n parameters.

    \n
  • \n
  • \n

    \n TRIM_HORIZON   –  \n Indicates that reading should start at the last untrimmed record in the system,\n which is the oldest unexpired (not yet deleted) record in the change-log stream.

    \n
  • \n
  • \n

    \n LATEST   –  \n Indicates that reading should start at the most recent record in the system,\n which is the latest unexpired (not yet deleted) record in the change-log stream.

    \n
  • \n
", + "smithy.api#httpQuery": "iteratorType" + } + }, + "commitNum": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The commit number of the starting record to read from the\n change-log stream. This parameter is required when iteratorType\n isAT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER, and\n ignored when iteratorType is TRIM_HORIZON or\n LATEST.

", + "smithy.api#httpQuery": "commitNum" + } + }, + "opNum": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The operation sequence number within the specified commit to\n start reading from in the change-log stream data. The default is 1.

", + "smithy.api#httpQuery": "opNum" + } + }, + "encoding": { + "target": "com.amazonaws.neptunedata#Encoding", + "traits": { + "smithy.api#documentation": "

If set to TRUE, Neptune compresses the response using gzip encoding.

", + "smithy.api#httpHeader": "Accept-Encoding" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#GetSparqlStreamOutput": { + "type": "structure", + "members": { + "lastEventId": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

Sequence identifier of the last change in the stream response.

\n

An event ID is composed of two fields: a commitNum, which\n identifies a transaction that changed the graph, and an opNum,\n which identifies a specific operation within that transaction:

", + "smithy.api#required": {} + } + }, + "lastTrxTimestampInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The time at which the commit for the transaction was requested,\n in milliseconds from the Unix epoch.

", + "smithy.api#jsonName": "lastTrxTimestamp", + "smithy.api#required": {} + } + }, + "format": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Serialization format for the change records being returned.\n Currently, the only supported value is NQUADS.

", + "smithy.api#required": {} + } + }, + "records": { + "target": "com.amazonaws.neptunedata#SparqlRecordsList", + "traits": { + "smithy.api#documentation": "

An array of serialized change-log stream records included in the response.

", + "smithy.api#required": {} + } + }, + "totalRecords": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The total number of records in the response.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#GraphSummaryType": { + "type": "enum", + "members": { + "BASIC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "basic" + } + }, + "DETAILED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "detailed" + } + } + } + }, + "com.amazonaws.neptunedata#GremlinQueries": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#GremlinQueryStatus" + } + }, + "com.amazonaws.neptunedata#GremlinQueryStatus": { + "type": "structure", + "members": { + "queryId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the Gremlin query.

" + } + }, + "queryString": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The query string of the Gremlin query.

" + } + }, + "queryEvalStats": { + "target": "com.amazonaws.neptunedata#QueryEvalStats", + "traits": { + "smithy.api#documentation": "

The query statistics of the Gremlin query.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Captures the status of a Gremlin query (see the Gremlin query\n status API page).

" + } + }, + "com.amazonaws.neptunedata#GremlinQueryStatusAttributes": { + "type": "structure", + "members": { + "message": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The status message.

" + } + }, + "code": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The HTTP response code returned fro the Gremlin query request..

" + } + }, + "attributes": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

Attributes of the Gremlin query status.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains status components of a Gremlin query.

" + } + }, + "com.amazonaws.neptunedata#IllegalArgumentException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when an argument in a request is not supported.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#InternalFailureException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the processing of the request failed unexpectedly.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.neptunedata#InvalidArgumentException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when an argument in a request has an invalid value.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#InvalidNumericDataException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when invalid numerical data is encountered when servicing a request.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#InvalidParameterException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request that includes an invalid parameter.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a parameter value is not valid.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#IteratorType": { + "type": "enum", + "members": { + "AT_SEQUENCE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AT_SEQUENCE_NUMBER" + } + }, + "AFTER_SEQUENCE_NUMBER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AFTER_SEQUENCE_NUMBER" + } + }, + "TRIM_HORIZON": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TRIM_HORIZON" + } + }, + "LATEST": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LATEST" + } + } + } + }, + "com.amazonaws.neptunedata#ListGremlinQueries": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ListGremlinQueriesInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ListGremlinQueriesOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists active Gremlin queries. See Gremlin query\n status API for details about the output.

", + "smithy.api#http": { + "method": "GET", + "uri": "/gremlin/status", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ListGremlinQueriesInput": { + "type": "structure", + "members": { + "includeWaiting": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

If set to TRUE, the list returned includes waiting\n queries. The default is FALSE;

", + "smithy.api#httpQuery": "includeWaiting" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ListGremlinQueriesOutput": { + "type": "structure", + "members": { + "acceptedQueryCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The number of queries that have been accepted but not yet\n completed, including queries in the queue.

" + } + }, + "runningQueryCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The number of Gremlin queries currently running.

" + } + }, + "queries": { + "target": "com.amazonaws.neptunedata#GremlinQueries", + "traits": { + "smithy.api#documentation": "

A list of the current queries.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ListLoaderJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ListLoaderJobsInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ListLoaderJobsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#BulkLoadIdNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InternalFailureException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#LoadUrlAccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Retrieves a list of the loadIds for all active\n loader jobs.

", + "smithy.api#http": { + "method": "GET", + "uri": "/loader", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ListLoaderJobsInput": { + "type": "structure", + "members": { + "limit": { + "target": "com.amazonaws.neptunedata#PositiveInteger", + "traits": { + "smithy.api#documentation": "

The number of load IDs to list. Must be a positive integer\n greater than zero and not more than 100 (which is the default).

", + "smithy.api#httpQuery": "limit", + "smithy.api#range": { + "min": 1, + "max": 100 + } + } + }, + "includeQueuedLoads": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

An optional parameter that can be used to exclude the load\n IDs of queued load requests when requesting a list of load IDs by\n setting the parameter to FALSE. The default value\n is TRUE.

", + "smithy.api#httpQuery": "includeQueuedLoads" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ListLoaderJobsOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Returns the status of the job list request.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#LoaderIdResult", + "traits": { + "smithy.api#documentation": "

The requested list of job IDs.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ListMLDataProcessingJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ListMLDataProcessingJobsInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ListMLDataProcessingJobsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of Neptune ML data processing jobs. See Listing\n active data-processing jobs using the Neptune ML dataprocessing command.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/dataprocessing", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ListMLDataProcessingJobsInput": { + "type": "structure", + "members": { + "maxItems": { + "target": "com.amazonaws.neptunedata#PositiveInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return (from 1 to 1024; the default is 10).

", + "smithy.api#httpQuery": "maxItems", + "smithy.api#range": { + "min": 1, + "max": 1024 + } + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ListMLDataProcessingJobsOutput": { + "type": "structure", + "members": { + "ids": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

A page listing data processing job IDs.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ListMLEndpoints": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ListMLEndpointsInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ListMLEndpointsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists existing inference endpoints. See Managing\n inference endpoints using the endpoints command.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/endpoints", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ListMLEndpointsInput": { + "type": "structure", + "members": { + "maxItems": { + "target": "com.amazonaws.neptunedata#PositiveInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return (from 1 to 1024; the default\n is 10.

", + "smithy.api#httpQuery": "maxItems", + "smithy.api#range": { + "min": 1, + "max": 1024 + } + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ListMLEndpointsOutput": { + "type": "structure", + "members": { + "ids": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

A page from the list of inference endpoint IDs.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ListMLModelTrainingJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ListMLModelTrainingJobsInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ListMLModelTrainingJobsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists Neptune ML model-training jobs. See Model\n training using the modeltraining command.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/modeltraining", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ListMLModelTrainingJobsInput": { + "type": "structure", + "members": { + "maxItems": { + "target": "com.amazonaws.neptunedata#PositiveInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return (from 1 to 1024; the default\n is 10).

", + "smithy.api#httpQuery": "maxItems", + "smithy.api#range": { + "min": 1, + "max": 1024 + } + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ListMLModelTrainingJobsOutput": { + "type": "structure", + "members": { + "ids": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

A page of the list of model training job IDs.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ListMLModelTransformJobs": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ListMLModelTransformJobsInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ListMLModelTransformJobsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns a list of model transform job IDs. See Use\n a trained model to generate new model artifacts.

", + "smithy.api#http": { + "method": "GET", + "uri": "/ml/modeltransform", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ListMLModelTransformJobsInput": { + "type": "structure", + "members": { + "maxItems": { + "target": "com.amazonaws.neptunedata#PositiveInteger", + "traits": { + "smithy.api#documentation": "

The maximum number of items to return (from 1 to 1024; the\n default is 10).

", + "smithy.api#httpQuery": "maxItems", + "smithy.api#range": { + "min": 1, + "max": 1024 + } + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

", + "smithy.api#httpQuery": "neptuneIamRoleArn" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ListMLModelTransformJobsOutput": { + "type": "structure", + "members": { + "ids": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

A page from the list of model transform IDs.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ListOpenCypherQueries": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ListOpenCypherQueriesInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ListOpenCypherQueriesOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConcurrentModificationException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#FailureByQueryException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidNumericDataException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#ParsingException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#TimeLimitExceededException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists active openCypher queries. See Neptune\n openCypher status endpoint for more information.

", + "smithy.api#http": { + "method": "GET", + "uri": "/opencypher/status", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.neptunedata#ListOpenCypherQueriesInput": { + "type": "structure", + "members": { + "includeWaiting": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

When set to TRUE and other parameters are not\n present, causes status information to be returned for waiting\n queries as well as for running queries.

", + "smithy.api#httpQuery": "includeWaiting" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ListOpenCypherQueriesOutput": { + "type": "structure", + "members": { + "acceptedQueryCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The number of queries that have been accepted but not yet completed,\n including queries in the queue.

" + } + }, + "runningQueryCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The number of currently running openCypher queries.

" + } + }, + "queries": { + "target": "com.amazonaws.neptunedata#OpenCypherQueries", + "traits": { + "smithy.api#documentation": "

A list of current openCypher queries.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#LoadUrlAccessDeniedException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when access is denied to a specified load URL.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#LoaderIdResult": { + "type": "structure", + "members": { + "loadIds": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

A list of load IDs.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains a list of load IDs.

" + } + }, + "com.amazonaws.neptunedata#LongValuedMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#Long" + } + }, + "com.amazonaws.neptunedata#LongValuedMapList": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#LongValuedMap" + } + }, + "com.amazonaws.neptunedata#MLResourceNotFoundException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a specified machine-learning resource could not be found.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.neptunedata#MalformedQueryException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the malformed query request.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a query is submitted that is syntactically incorrect or does not\n pass additional validation.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#ManagePropertygraphStatistics": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ManagePropertygraphStatisticsInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ManagePropertygraphStatisticsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Manages the generation and use of property graph statistics.

", + "smithy.api#http": { + "method": "POST", + "uri": "/propertygraph/statistics", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#ManagePropertygraphStatisticsInput": { + "type": "structure", + "members": { + "mode": { + "target": "com.amazonaws.neptunedata#StatisticsAutoGenerationMode", + "traits": { + "smithy.api#documentation": "

The statistics generation mode. One of: DISABLE_AUTOCOMPUTE,\n ENABLE_AUTOCOMPUTE, or REFRESH, the last of\n which manually triggers DFE statistics generation.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ManagePropertygraphStatisticsOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP return code of the request. If the request succeeded,\n the code is 200.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#RefreshStatisticsIdMap", + "traits": { + "smithy.api#documentation": "

This is only returned for refresh mode.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#ManageSparqlStatistics": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#ManageSparqlStatisticsInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#ManageSparqlStatisticsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#AccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#ReadOnlyViolationException" + }, + { + "target": "com.amazonaws.neptunedata#StatisticsNotAvailableException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Manages the generation and use of RDF graph statistics.

", + "smithy.api#http": { + "method": "POST", + "uri": "/sparql/statistics", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#ManageSparqlStatisticsInput": { + "type": "structure", + "members": { + "mode": { + "target": "com.amazonaws.neptunedata#StatisticsAutoGenerationMode", + "traits": { + "smithy.api#documentation": "

The statistics generation mode. One of: DISABLE_AUTOCOMPUTE,\n ENABLE_AUTOCOMPUTE, or REFRESH, the last of\n which manually triggers DFE statistics generation.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#ManageSparqlStatisticsOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP return code of the request. If the request succeeded,\n the code is 200.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#RefreshStatisticsIdMap", + "traits": { + "smithy.api#documentation": "

This is only returned for refresh mode.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#MemoryLimitExceededException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request that failed.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request fails because of insufficient memory resources. The\n request can be retried.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#MethodNotAllowedException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the HTTP method used by a request is not supported by the endpoint\n being used.

", + "smithy.api#error": "client", + "smithy.api#httpError": 405 + } + }, + "com.amazonaws.neptunedata#MissingParameterException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in which the parameter is missing.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a required parameter is missing.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#MlConfigDefinition": { + "type": "structure", + "members": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The configuration name.

" + } + }, + "arn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN for the configuration.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains a Neptune ML configuration.

" + } + }, + "com.amazonaws.neptunedata#MlModels": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#MlConfigDefinition" + } + }, + "com.amazonaws.neptunedata#MlResourceDefinition": { + "type": "structure", + "members": { + "name": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The resource name.

" + } + }, + "arn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The resource ARN.

" + } + }, + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The resource status.

" + } + }, + "outputLocation": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The output location.

" + } + }, + "failureReason": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The failure reason, in case of a failure.

" + } + }, + "cloudwatchLogUrl": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The CloudWatch log URL for the resource.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Defines a Neptune ML resource.

" + } + }, + "com.amazonaws.neptunedata#Mode": { + "type": "enum", + "members": { + "RESUME": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "RESUME" + } + }, + "NEW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NEW" + } + }, + "AUTO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "AUTO" + } + } + } + }, + "com.amazonaws.neptunedata#Models": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#MlConfigDefinition" + } + }, + "com.amazonaws.neptunedata#NodeLabels": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#NodeProperties": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#NodeStructure": { + "type": "structure", + "members": { + "count": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

Number of nodes that have this specific structure.

" + } + }, + "nodeProperties": { + "target": "com.amazonaws.neptunedata#NodeProperties", + "traits": { + "smithy.api#documentation": "

A list of the node properties present in this specific structure.

" + } + }, + "distinctOutgoingEdgeLabels": { + "target": "com.amazonaws.neptunedata#OutgoingEdgeLabels", + "traits": { + "smithy.api#documentation": "

A list of distinct outgoing edge labels present in this specific structure.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A node structure.

" + } + }, + "com.amazonaws.neptunedata#NodeStructures": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#NodeStructure" + } + }, + "com.amazonaws.neptunedata#OpenCypherExplainMode": { + "type": "enum", + "members": { + "STATIC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "static" + } + }, + "DYNAMIC": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "dynamic" + } + }, + "DETAILS": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "details" + } + } + } + }, + "com.amazonaws.neptunedata#OpenCypherQueries": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#GremlinQueryStatus" + } + }, + "com.amazonaws.neptunedata#OutgoingEdgeLabels": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#Parallelism": { + "type": "enum", + "members": { + "LOW": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "LOW" + } + }, + "MEDIUM": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "MEDIUM" + } + }, + "HIGH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "HIGH" + } + }, + "OVERSUBSCRIBE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "OVERSUBSCRIBE" + } + } + } + }, + "com.amazonaws.neptunedata#ParsingException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a parsing issue is encountered.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#PositiveInteger": { + "type": "integer", + "traits": { + "smithy.api#range": { + "min": 1 + } + } + }, + "com.amazonaws.neptunedata#PreconditionsFailedException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a precondition for processing a request is not satisfied.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#Predicates": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#PropertygraphData": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the Gremlin or openCypher element.

", + "smithy.api#required": {} + } + }, + "type": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of this Gremlin or openCypher element. Must be one of:

\n
    \n
  • \n

    \n \n v1\n   -  \n Vertex label for Gremlin, or node label for openCypher.

    \n
  • \n
  • \n

    \n \n vp\n   -  \n Vertex properties for Gremlin, or node properties for openCypher.

    \n
  • \n
  • \n

    \n \n e\n   -  \n Edge and edge label for Gremlin, or relationship and relationship type\n for openCypher.

    \n
  • \n
  • \n

    \n \n ep\n   -  \n Edge properties for Gremlin, or relationship properties for openCypher.

    \n
  • \n
", + "smithy.api#required": {} + } + }, + "key": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The property name. For element labels, this is label.

", + "smithy.api#required": {} + } + }, + "value": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

This is a JSON object that contains a value field for the value itself,\n and a datatype field for the JSON data type of that value:

", + "smithy.api#required": {} + } + }, + "from": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

If this is an edge (type = e), the ID of the\n corresponding from vertex or source node.

" + } + }, + "to": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

If this is an edge (type = e), the ID of the\n corresponding to vertex or target node.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A Gremlin or openCypher change record.

" + } + }, + "com.amazonaws.neptunedata#PropertygraphRecord": { + "type": "structure", + "members": { + "commitTimestampInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The time at which the commit for the transaction was requested,\n in milliseconds from the Unix epoch.

", + "smithy.api#jsonName": "commitTimestamp", + "smithy.api#required": {} + } + }, + "eventId": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

The sequence identifier of the stream change record.

", + "smithy.api#required": {} + } + }, + "data": { + "target": "com.amazonaws.neptunedata#PropertygraphData", + "traits": { + "smithy.api#documentation": "

The serialized Gremlin or openCypher change record.

", + "smithy.api#required": {} + } + }, + "op": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The operation that created the change.

", + "smithy.api#required": {} + } + }, + "isLastOp": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Only present if this operation is the last one in its transaction.\n If present, it is set to true. It is useful for ensuring that an\n entire transaction is consumed.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Structure of a property graph record.

" + } + }, + "com.amazonaws.neptunedata#PropertygraphRecordsList": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#PropertygraphRecord" + } + }, + "com.amazonaws.neptunedata#PropertygraphSummary": { + "type": "structure", + "members": { + "numNodes": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of nodes in the graph.

" + } + }, + "numEdges": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of edges in the graph.

" + } + }, + "numNodeLabels": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of distinct node labels in the graph.

" + } + }, + "numEdgeLabels": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of distinct edge labels in the graph.

" + } + }, + "nodeLabels": { + "target": "com.amazonaws.neptunedata#NodeLabels", + "traits": { + "smithy.api#documentation": "

A list of the distinct node labels in the graph.

" + } + }, + "edgeLabels": { + "target": "com.amazonaws.neptunedata#EdgeLabels", + "traits": { + "smithy.api#documentation": "

A list of the distinct edge labels in the graph.

" + } + }, + "numNodeProperties": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

A list of the distinct node properties in the graph, along\n with the count of nodes where each property is used.

" + } + }, + "numEdgeProperties": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of distinct edge properties in the graph.

" + } + }, + "nodeProperties": { + "target": "com.amazonaws.neptunedata#LongValuedMapList", + "traits": { + "smithy.api#documentation": "

The number of distinct node properties in the graph.

" + } + }, + "edgeProperties": { + "target": "com.amazonaws.neptunedata#LongValuedMapList", + "traits": { + "smithy.api#documentation": "

A list of the distinct edge properties in the graph, along\n with the count of edges where each property is used.

" + } + }, + "totalNodePropertyValues": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The total number of usages of all node properties.

" + } + }, + "totalEdgePropertyValues": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The total number of usages of all edge properties.

" + } + }, + "nodeStructures": { + "target": "com.amazonaws.neptunedata#NodeStructures", + "traits": { + "smithy.api#documentation": "

This field is only present when the requested mode is\n DETAILED. It contains a list of node structures.

" + } + }, + "edgeStructures": { + "target": "com.amazonaws.neptunedata#EdgeStructures", + "traits": { + "smithy.api#documentation": "

This field is only present when the requested mode is\n DETAILED. It contains a list of edge structures.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The graph summary API returns a read-only list of node and edge\n labels and property keys, along with counts of nodes, edges, and\n properties. See Graph\n summary response for a property graph (PG).

" + } + }, + "com.amazonaws.neptunedata#PropertygraphSummaryValueMap": { + "type": "structure", + "members": { + "version": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The version of this graph summary response.

" + } + }, + "lastStatisticsComputationTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp, in ISO 8601 format, of the time at which Neptune last computed statistics.

", + "smithy.api#timestampFormat": "date-time" + } + }, + "graphSummary": { + "target": "com.amazonaws.neptunedata#PropertygraphSummary", + "traits": { + "smithy.api#documentation": "

The graph summary.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Payload for the property graph summary response.

" + } + }, + "com.amazonaws.neptunedata#QueryEvalStats": { + "type": "structure", + "members": { + "waited": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Indicates how long the query waited, in milliseconds.

" + } + }, + "elapsed": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The number of milliseconds the query has been running so far.

" + } + }, + "cancelled": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Set to TRUE if the query was cancelled, or FALSE\n otherwise.

" + } + }, + "subqueries": { + "target": "smithy.api#Document", + "traits": { + "smithy.api#documentation": "

The number of subqueries in this query.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Structure to capture query statistics such as how many queries\n are running, accepted or waiting and their details.

" + } + }, + "com.amazonaws.neptunedata#QueryLanguageVersion": { + "type": "structure", + "members": { + "version": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The version of the query language.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Structure for expressing the query language version.

" + } + }, + "com.amazonaws.neptunedata#QueryLimitExceededException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request which exceeded the limit.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the number of active queries exceeds what the server can process.\n The query in question can be retried when the system is less busy.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#QueryLimitException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request that exceeded the limit.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the size of a query exceeds the system limit.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#QueryTooLargeException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request that is too large.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the body of a query is too large.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#RDFGraphSummary": { + "type": "structure", + "members": { + "numDistinctSubjects": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of distinct subjects in the graph.

" + } + }, + "numDistinctPredicates": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of distinct predicates in the graph.

" + } + }, + "numQuads": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of quads in the graph.

" + } + }, + "numClasses": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The number of classes in the graph.

" + } + }, + "classes": { + "target": "com.amazonaws.neptunedata#Classes", + "traits": { + "smithy.api#documentation": "

A list of the classes in the graph.

" + } + }, + "predicates": { + "target": "com.amazonaws.neptunedata#LongValuedMapList", + "traits": { + "smithy.api#documentation": "

\"A list of predicates in the graph, along with the predicate counts.

" + } + }, + "subjectStructures": { + "target": "com.amazonaws.neptunedata#SubjectStructures", + "traits": { + "smithy.api#documentation": "

This field is only present when the request mode is\n DETAILED. It contains a list of subject structures.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

The RDF graph summary API returns a read-only list of classes and\n predicate keys, along with counts of quads, subjects, and predicates.

" + } + }, + "com.amazonaws.neptunedata#RDFGraphSummaryValueMap": { + "type": "structure", + "members": { + "version": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The version of this graph summary response.

" + } + }, + "lastStatisticsComputationTime": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The timestamp, in ISO 8601 format, of the time at which Neptune\n last computed statistics.

", + "smithy.api#timestampFormat": "date-time" + } + }, + "graphSummary": { + "target": "com.amazonaws.neptunedata#RDFGraphSummary", + "traits": { + "smithy.api#documentation": "

The graph summary of an RDF graph. See Graph\n summary response for an RDF graph.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Payload for an RDF graph summary response.

" + } + }, + "com.amazonaws.neptunedata#ReadOnlyViolationException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in which the parameter is missing.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request attempts to write to a read-only resource.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#RefreshStatisticsIdMap": { + "type": "structure", + "members": { + "statisticsId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the statistics generation run that is currently occurring.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Statistics for REFRESH mode.

" + } + }, + "com.amazonaws.neptunedata#ReportAsText": { + "type": "blob", + "traits": { + "smithy.api#mediaType": "text/plain" + } + }, + "com.amazonaws.neptunedata#S3BucketRegion": { + "type": "enum", + "members": { + "US_EAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-east-1" + } + }, + "US_EAST_2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-east-2" + } + }, + "US_WEST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-west-1" + } + }, + "US_WEST_2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-west-2" + } + }, + "CA_CENTRAL_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ca-central-1" + } + }, + "SA_EAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "sa-east-1" + } + }, + "EU_NORTH_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "eu-north-1" + } + }, + "EU_WEST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "eu-west-1" + } + }, + "EU_WEST_2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "eu-west-2" + } + }, + "EU_WEST_3": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "eu-west-3" + } + }, + "EU_CENTRAL_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "eu-central-1" + } + }, + "ME_SOUTH_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "me-south-1" + } + }, + "AF_SOUTH_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "af-south-1" + } + }, + "AP_EAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-east-1" + } + }, + "AP_NORTHEAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-northeast-1" + } + }, + "AP_NORTHEAST_2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-northeast-2" + } + }, + "AP_SOUTHEAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-southeast-1" + } + }, + "AP_SOUTHEAST_2": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-southeast-2" + } + }, + "AP_SOUTH_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ap-south-1" + } + }, + "CN_NORTH_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cn-north-1" + } + }, + "CN_NORTHWEST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "cn-northwest-1" + } + }, + "US_GOV_WEST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-gov-west-1" + } + }, + "US_GOV_EAST_1": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "us-gov-east-1" + } + } + } + }, + "com.amazonaws.neptunedata#S3Exception": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when there is a problem accessing Amazon S3.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#ServerShutdownException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the server shuts down while processing a request.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500 + } + }, + "com.amazonaws.neptunedata#SparqlData": { + "type": "structure", + "members": { + "stmt": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Holds an N-QUADS\n statement expressing the changed quad.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Neptune logs are converted to SPARQL quads in the graph using the\n Resource Description Framework (RDF) N-QUADS language defined\n in the W3C RDF 1.1 N-Quads specification

" + } + }, + "com.amazonaws.neptunedata#SparqlRecord": { + "type": "structure", + "members": { + "commitTimestampInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The time at which the commit for the transaction was requested,\n in milliseconds from the Unix epoch.

", + "smithy.api#jsonName": "commitTimestamp", + "smithy.api#required": {} + } + }, + "eventId": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

The sequence identifier of the stream change record.

", + "smithy.api#required": {} + } + }, + "data": { + "target": "com.amazonaws.neptunedata#SparqlData", + "traits": { + "smithy.api#documentation": "

The serialized SPARQL change record. The serialization formats\n of each record are described in more detail in Serialization\n Formats in Neptune Streams.

", + "smithy.api#required": {} + } + }, + "op": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The operation that created the change.

", + "smithy.api#required": {} + } + }, + "isLastOp": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Only present if this operation is the last one in its transaction.\n If present, it is set to true. It is useful for ensuring that an\n entire transaction is consumed.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A serialized SPARQL stream record capturing a change-log entry\n for the RDF graph.

" + } + }, + "com.amazonaws.neptunedata#SparqlRecordsList": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#SparqlRecord" + } + }, + "com.amazonaws.neptunedata#StartLoaderJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#StartLoaderJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#StartLoaderJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#BulkLoadIdNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InternalFailureException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#LoadUrlAccessDeniedException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#S3Exception" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Starts a Neptune bulk loader job to load data from an Amazon S3\n bucket into a Neptune DB instance. See Using the Amazon Neptune\n Bulk Loader to Ingest Data.

", + "smithy.api#http": { + "method": "POST", + "uri": "/loader", + "code": 200 + }, + "smithy.api#idempotent": {} + } + }, + "com.amazonaws.neptunedata#StartLoaderJobInput": { + "type": "structure", + "members": { + "source": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The source parameter accepts an S3 URI that identifies a single\n file, multiple files, a folder, or multiple folders. Neptune loads every data file\n in any folder that is specified.

\n

The URI can be in any of the following formats.

\n
    \n
  • \n

    \n s3://(bucket_name)/(object-key-name)\n

    \n
  • \n
  • \n

    \n https://s3.amazonaws.com/(bucket_name)/(object-key-name)\n

    \n
  • \n
  • \n

    \n https://s3.us-east-1.amazonaws.com/(bucket_name)/(object-key-name)\n

    \n
  • \n
\n

The object-key-name element of the URI is equivalent to the prefix\n parameter in an S3 ListObjects\n API call. It identifies all the objects in the specified S3 bucket whose names begin with\n that prefix. That can be a single file or folder, or multiple files and/or folders.

\n

The specified folder or folders can contain multiple vertex files and multiple edge files.

", + "smithy.api#required": {} + } + }, + "format": { + "target": "com.amazonaws.neptunedata#Format", + "traits": { + "smithy.api#documentation": "

The format of the data. For more information about data formats for the Neptune\n Loader command, see Load Data Formats.

\n

\n Allowed values\n

\n ", + "smithy.api#required": {} + } + }, + "s3BucketRegion": { + "target": "com.amazonaws.neptunedata#S3BucketRegion", + "traits": { + "smithy.api#documentation": "

The Amazon region of the S3 bucket. This must match the Amazon Region of the DB cluster.

", + "smithy.api#jsonName": "region", + "smithy.api#required": {} + } + }, + "iamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) for an IAM role to be assumed by\n the Neptune DB instance for access to the S3 bucket. The IAM role ARN provided\n here should be attached to the DB cluster (see Adding\n the IAM Role to an Amazon Neptune Cluster.

", + "smithy.api#required": {} + } + }, + "mode": { + "target": "com.amazonaws.neptunedata#Mode", + "traits": { + "smithy.api#documentation": "

The load job mode.

\n

\n Allowed values: RESUME, NEW,\n AUTO.

\n

\n Default value: AUTO.

\n

\n \n

\n
    \n
  • \n

    \n RESUME   –   In RESUME mode,\n the loader looks for a previous load from this source, and if it finds\n one, resumes that load job. If no previous load job is found, the loader stops.

    \n

    The loader avoids reloading files that were successfully loaded in\n a previous job. It only tries to process failed files. If you dropped\n previously loaded data from your Neptune cluster, that data is not\n reloaded in this mode. If a previous load job loaded all files from the\n same source successfully, nothing is reloaded, and the loader returns\n success.

    \n
  • \n
  • \n

    \n NEW   –   In NEW mode, the\n creates a new load request regardless of any previous loads. You\n can use this mode to reload all the data from a source after dropping\n previously loaded data from your Neptune cluster, or to load new data\n available at the same source.

    \n
  • \n
  • \n

    \n AUTO   –   In AUTO mode,\n the loader looks for a previous load job from the same source, and if it\n finds one, resumes that job, just as in RESUME mode.

    \n

    If the loader doesn't find a previous load job from the same\n source, it loads all data from the source, just as in NEW\n mode.

    \n
  • \n
" + } + }, + "failOnError": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

\n \n failOnError\n   –   A flag to toggle a\n complete stop on an error.

\n

\n Allowed values: \"TRUE\", \"FALSE\".

\n

\n Default value: \"TRUE\".

\n

When this parameter is set to \"FALSE\", the loader tries to load all\n the data in the location specified, skipping any entries with errors.

\n

When this parameter is set to \"TRUE\", the loader stops\n as soon as it encounters an error. Data loaded up to that point persists.

" + } + }, + "parallelism": { + "target": "com.amazonaws.neptunedata#Parallelism", + "traits": { + "smithy.api#documentation": "

The optional parallelism parameter can be set\n to reduce the number of threads used by the bulk load process.

\n

\n Allowed values:

\n
    \n
  • \n

    \n LOW –   The number of threads used is the\n number of available vCPUs divided by 8.

    \n
  • \n
  • \n

    \n MEDIUM –   The number of threads used is the\n number of available vCPUs divided by 2.

    \n
  • \n
  • \n

    \n HIGH –   The number of threads used is the\n same as the number of available vCPUs.

    \n
  • \n
  • \n

    \n OVERSUBSCRIBE –   The number of threads used is the\n number of available vCPUs multiplied by 2. If this value is used, the bulk loader takes up all\n available resources.

    \n

    This does not mean, however, that the OVERSUBSCRIBE setting\n results in 100% CPU utilization. Because the load operation is I/O bound, the\n highest CPU utilization to expect is in the 60% to 70% range.

    \n
  • \n
\n

\n Default value: HIGH\n

\n

The parallelism setting can sometimes result in a deadlock\n between threads when loading openCypher data. When this happens, Neptune returns the\n LOAD_DATA_DEADLOCK error. You can generally fix the issue by setting\n parallelism to a lower setting and retrying the load command.

" + } + }, + "parserConfiguration": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

\n \n parserConfiguration\n  \n –   An optional object with additional parser configuration values.\n Each of the child parameters is also optional:

\n

\n \n

\n
    \n
  • \n

    \n \n namedGraphUri\n   –  \n The default graph for all RDF formats when no graph is specified (for non-quads\n formats and NQUAD entries with no graph).

    \n

    The default is https://aws.amazon.com/neptune/vocab/v01/DefaultNamedGraph.

    \n
  • \n
  • \n

    \n \n baseUri\n   –  \n The base URI for RDF/XML and Turtle formats.

    \n

    The default is https://aws.amazon.com/neptune/default.

    \n
  • \n
  • \n

    \n \n allowEmptyStrings\n   –  \n Gremlin users need to be able to pass empty string values(\"\") as node\n and edge properties when loading CSV data. If allowEmptyStrings\n is set to false (the default), such empty strings are treated\n as nulls and are not loaded.

    \n

    If allowEmptyStrings is set to true,\n the loader treats empty strings as valid property values and loads\n them accordingly.

    \n
  • \n
" + } + }, + "updateSingleCardinalityProperties": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

\n updateSingleCardinalityProperties\n is an optional parameter that controls how the bulk loader treats a new\n value for single-cardinality vertex or edge properties. This is not supported for\n loading openCypher data.

\n

\n Allowed values: \"TRUE\", \"FALSE\".

\n

\n Default value: \"FALSE\".

\n

By default, or when updateSingleCardinalityProperties is explicitly\n set to \"FALSE\", the loader treats a new value as an error, because it\n violates single cardinality.

\n

When updateSingleCardinalityProperties is set to \"TRUE\",\n on the other hand, the bulk loader replaces the existing value with the new one.\n If multiple edge or single-cardinality vertex property values are provided in the\n source file(s) being loaded, the final value at the end of the bulk load could be\n any one of those new values. The loader only guarantees that the existing value\n has been replaced by one of the new ones.

" + } + }, + "queueRequest": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

This is an optional flag parameter\n that indicates whether the load request can be queued up or not.

\n

You don't have to wait for one load job to complete before issuing the next one,\n because Neptune can queue up as many as 64 jobs at a time, provided that their\n queueRequest parameters are all set to \"TRUE\".

\n

If the queueRequest parameter is omitted or set to \"FALSE\",\n the load request will fail if another load job is already running.

\n

\n Allowed values: \"TRUE\", \"FALSE\".

\n

\n Default value: \"FALSE\".

" + } + }, + "dependencies": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

This is an optional parameter that can make a queued load request\n contingent on the successful completion of one or more previous jobs\n in the queue.

\n

Neptune can queue up as many as 64 load requests at a time, if their\n queueRequest parameters are set to \"TRUE\". The\n dependencies parameter lets you make execution of such a queued request\n dependent on the successful completion of one or more specified previous requests\n in the queue.

\n

For example, if load Job-A and Job-B are independent\n of each other, but load Job-C needs Job-A and Job-B\n to be finished before it begins, proceed as follows:

\n
    \n
  1. \n

    Submit load-job-A and load-job-B one after\n another in any order, and save their load-ids.

    \n
  2. \n
  3. \n

    Submit load-job-C with the load-ids of the\n two jobs in its dependencies field:

    \n
  4. \n
\n

Because of the dependencies parameter, the bulk loader will not start\n Job-C until Job-A and Job-B have completed\n successfully. If either one of them fails, Job-C will not be executed, and its\n status will be set to LOAD_FAILED_BECAUSE_DEPENDENCY_NOT_SATISFIED.

\n

You can set up multiple levels of dependency in this way, so that the failure of one job\n will cause all requests that are directly or indirectly dependent on it to be cancelled.

" + } + }, + "userProvidedEdgeIds": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

This parameter is required only when loading openCypher data that contains relationship\n IDs. It must be included and set to True when openCypher relationship IDs\n are explicitly provided in the load data (recommended).

\n

When userProvidedEdgeIds is absent or set to True,\n an :ID column must be present in every relationship file in the load.

\n

When userProvidedEdgeIds is present and set to False,\n relationship files in the load must not contain an\n :ID column. Instead, the Neptune loader automatically generates an\n ID for each relationship.

\n

It's useful to provide relationship IDs explicitly so that the loader can resume\n loading after error in the CSV data have been fixed, without having to reload any\n relationships that have already been loaded. If relationship IDs have not been\n explicitly assigned, the loader cannot resume a failed load if any relationship file\n has had to be corrected, and must instead reload all the relationships.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#StartLoaderJobOutput": { + "type": "structure", + "members": { + "status": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP return code indicating the status of the load job.

", + "smithy.api#required": {} + } + }, + "payload": { + "target": "com.amazonaws.neptunedata#StringValuedMap", + "traits": { + "smithy.api#documentation": "

Contains a loadId name-value pair that provides an identifier\n for the load operation.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#StartMLDataProcessingJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#StartMLDataProcessingJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#StartMLDataProcessingJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new Neptune ML data processing job for processing the\n graph data exported from Neptune for training. See The\n dataprocessing command.

", + "smithy.api#http": { + "method": "POST", + "uri": "/ml/dataprocessing", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#StartMLDataProcessingJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A unique identifier for the new job. The default is an autogenerated UUID.

" + } + }, + "previousDataProcessingJobId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The job ID of a completed data processing job run on an earlier version of the data.

" + } + }, + "inputDataS3Location": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The URI of the Amazon S3 location where you want SageMaker to download\n the data needed to run the data processing job.

", + "smithy.api#required": {} + } + }, + "processedDataS3Location": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The URI of the Amazon S3 location where you want SageMaker to save the\n results of a data processing job.

", + "smithy.api#required": {} + } + }, + "sagemakerIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role for SageMaker execution.\n This must be listed in your DB cluster parameter group or an error will occur.

" + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of an IAM role that SageMaker can assume\n to perform tasks on your behalf. This must be listed in your DB cluster\n parameter group or an error will occur.

" + } + }, + "processingInstanceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of ML instance used during data processing. Its memory\n should be large enough to hold the processed dataset. The default is\n the smallest ml.r5 type whose memory is ten times larger than the size\n of the exported graph data on disk.

" + } + }, + "processingInstanceVolumeSizeInGB": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The disk volume size of the processing instance. Both input data\n and processed data are stored on disk, so the volume size must be large\n enough to hold both data sets. The default is 0. If not specified or 0,\n Neptune ML chooses the volume size automatically based on the data size.

" + } + }, + "processingTimeOutInSeconds": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Timeout in seconds for the data processing job. The default is 86,400 (1 day).

" + } + }, + "modelType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

One of the two model types that Neptune ML currently supports:\n heterogeneous graph models (heterogeneous), and knowledge\n graph (kge). The default is none. If not specified,\n Neptune ML chooses the model type automatically based on the data.

" + } + }, + "configFileName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A data specification file that describes how to load the exported\n graph data for training. The file is automatically generated by the\n Neptune export toolkit. The default is\n training-data-configuration.json.

" + } + }, + "subnets": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

The IDs of the subnets in the Neptune VPC. The default is None.

" + } + }, + "securityGroupIds": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

The VPC security group IDs. The default is None.

" + } + }, + "volumeEncryptionKMSKey": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Key Management Service (Amazon KMS) key that SageMaker uses to\n encrypt data on the storage volume attached to the ML compute instances\n that run the training job. The default is None.

" + } + }, + "s3OutputEncryptionKMSKey": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Key Management Service (Amazon KMS) key that SageMaker uses\n to encrypt the output of the processing job. The default is none.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#StartMLDataProcessingJobOutput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the new data processing job.

" + } + }, + "arn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of the data processing job.

" + } + }, + "creationTimeInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The time it took to create the new processing job, in milliseconds.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#StartMLModelTrainingJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#StartMLModelTrainingJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#StartMLModelTrainingJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new Neptune ML model training job. See Model\n training using the modeltraining command.

", + "smithy.api#http": { + "method": "POST", + "uri": "/ml/modeltraining", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#StartMLModelTrainingJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A unique identifier for the new job. The default is An autogenerated UUID.

" + } + }, + "previousModelTrainingJobId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The job ID of a completed model-training job that you want to update\n incrementally based on updated data.

" + } + }, + "dataProcessingJobId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The job ID of the completed data-processing job that has created\n the data that the training will work with.

", + "smithy.api#required": {} + } + }, + "trainModelS3Location": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The location in Amazon S3 where the model artifacts are to be stored.

", + "smithy.api#required": {} + } + }, + "sagemakerIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role for SageMaker execution.This must be listed\n in your DB cluster parameter group or an error will occur.

" + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

" + } + }, + "baseProcessingInstanceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of ML instance used in preparing and managing training\n of ML models. This is a CPU instance chosen based on memory requirements\n for processing the training data and model.

" + } + }, + "trainingInstanceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of ML instance used for model training. All Neptune ML\n models support CPU, GPU, and multiGPU training. The default is\n ml.p3.2xlarge. Choosing the right instance type for\n training depends on the task type, graph size, and your budget.

" + } + }, + "trainingInstanceVolumeSizeInGB": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The disk volume size of the training instance. Both input data\n and the output model are stored on disk, so the volume size must be\n large enough to hold both data sets. The default is 0. If not specified\n or 0, Neptune ML selects a disk volume size based on the recommendation\n generated in the data processing step.

" + } + }, + "trainingTimeOutInSeconds": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Timeout in seconds for the training job. The default is 86,400 (1 day).

" + } + }, + "maxHPONumberOfTrainingJobs": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Maximum total number of training jobs to start for the hyperparameter\n tuning job. The default is 2. Neptune ML automatically tunes the hyperparameters\n of the machine learning model. To obtain a model that performs well, use at\n least 10 jobs (in other words, set maxHPONumberOfTrainingJobs to 10).\n In general, the more tuning runs, the better the results.

" + } + }, + "maxHPOParallelTrainingJobs": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

Maximum number of parallel training jobs to start for the hyperparameter\n tuning job. The default is 2. The number of parallel jobs you can run is\n limited by the available resources on your training instance.

" + } + }, + "subnets": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

The IDs of the subnets in the Neptune VPC. The default is None.

" + } + }, + "securityGroupIds": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

The VPC security group IDs. The default is None.

" + } + }, + "volumeEncryptionKMSKey": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Key Management Service (KMS) key that SageMaker uses to\n encrypt data on the storage volume attached to the ML compute instances\n that run the training job. The default is None.

" + } + }, + "s3OutputEncryptionKMSKey": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Key Management Service (KMS) key that SageMaker uses\n to encrypt the output of the processing job. The default is none.

" + } + }, + "enableManagedSpotTraining": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Optimizes the cost of training machine-learning models by using\n Amazon Elastic Compute Cloud spot instances. The default is False.

" + } + }, + "customModelTrainingParameters": { + "target": "com.amazonaws.neptunedata#CustomModelTrainingParameters", + "traits": { + "smithy.api#documentation": "

The configuration for custom model training. This is a JSON object.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#StartMLModelTrainingJobOutput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the new model training job.

" + } + }, + "arn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of the new model training job.

" + } + }, + "creationTimeInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The model training job creation time, in milliseconds.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#StartMLModelTransformJob": { + "type": "operation", + "input": { + "target": "com.amazonaws.neptunedata#StartMLModelTransformJobInput" + }, + "output": { + "target": "com.amazonaws.neptunedata#StartMLModelTransformJobOutput" + }, + "errors": [ + { + "target": "com.amazonaws.neptunedata#BadRequestException" + }, + { + "target": "com.amazonaws.neptunedata#ClientTimeoutException" + }, + { + "target": "com.amazonaws.neptunedata#ConstraintViolationException" + }, + { + "target": "com.amazonaws.neptunedata#IllegalArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidArgumentException" + }, + { + "target": "com.amazonaws.neptunedata#InvalidParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MissingParameterException" + }, + { + "target": "com.amazonaws.neptunedata#MLResourceNotFoundException" + }, + { + "target": "com.amazonaws.neptunedata#PreconditionsFailedException" + }, + { + "target": "com.amazonaws.neptunedata#TooManyRequestsException" + }, + { + "target": "com.amazonaws.neptunedata#UnsupportedOperationException" + } + ], + "traits": { + "smithy.api#documentation": "

Creates a new model transform job. See Use\n a trained model to generate new model artifacts.

", + "smithy.api#http": { + "method": "POST", + "uri": "/ml/modeltransform", + "code": 200 + } + } + }, + "com.amazonaws.neptunedata#StartMLModelTransformJobInput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A unique identifier for the new job. The default is an autogenerated UUID.

" + } + }, + "dataProcessingJobId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The job ID of a completed data-processing job. You must include either\n dataProcessingJobId and a mlModelTrainingJobId,\n or a trainingJobName.

" + } + }, + "mlModelTrainingJobId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The job ID of a completed model-training job. You must include either\n dataProcessingJobId and a mlModelTrainingJobId,\n or a trainingJobName.

" + } + }, + "trainingJobName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of a completed SageMaker training job. You must include either\n dataProcessingJobId and a mlModelTrainingJobId,\n or a trainingJobName.

" + } + }, + "modelTransformOutputS3Location": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The location in Amazon S3 where the model artifacts are to be stored.

", + "smithy.api#required": {} + } + }, + "sagemakerIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role for SageMaker execution. This must be listed\n in your DB cluster parameter group or an error will occur.

" + } + }, + "neptuneIamRoleArn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of an IAM role that provides Neptune access to SageMaker\n and Amazon S3 resources. This must be listed in your DB cluster\n parameter group or an error will occur.

" + } + }, + "customModelTransformParameters": { + "target": "com.amazonaws.neptunedata#CustomModelTransformParameters", + "traits": { + "smithy.api#documentation": "

Configuration information for a model transform using a custom model.\n The customModelTransformParameters object contains the following\n fields, which must have values compatible with the saved model parameters from\n the training job:

" + } + }, + "baseProcessingInstanceType": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The type of ML instance used in preparing and managing training of ML models.\n This is an ML compute instance chosen based on memory requirements for processing\n the training data and model.

" + } + }, + "baseProcessingInstanceVolumeSizeInGB": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The disk volume size of the training instance in gigabytes. The default is 0.\n Both input data and the output model are stored on disk, so the volume size must\n be large enough to hold both data sets. If not specified or 0, Neptune ML selects\n a disk volume size based on the recommendation generated in the data processing step.

" + } + }, + "subnets": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

The IDs of the subnets in the Neptune VPC. The default is None.

" + } + }, + "securityGroupIds": { + "target": "com.amazonaws.neptunedata#StringList", + "traits": { + "smithy.api#documentation": "

The VPC security group IDs. The default is None.

" + } + }, + "volumeEncryptionKMSKey": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Key Management Service (KMS) key that SageMaker uses to encrypt data\n on the storage volume attached to the ML compute instances that run the training job.\n The default is None.

" + } + }, + "s3OutputEncryptionKMSKey": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The Amazon Key Management Service (KMS) key that SageMaker uses to\n encrypt the output of the processing job. The default is none.

" + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.neptunedata#StartMLModelTransformJobOutput": { + "type": "structure", + "members": { + "id": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The unique ID of the new model transform job.

" + } + }, + "arn": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ARN of the model transform job.

" + } + }, + "creationTimeInMillis": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

The creation time of the model transform job, in milliseconds.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, + "com.amazonaws.neptunedata#Statistics": { + "type": "structure", + "members": { + "autoCompute": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates whether or not automatic statistics generation is enabled.

" + } + }, + "active": { + "target": "smithy.api#Boolean", + "traits": { + "smithy.api#documentation": "

Indicates whether or not DFE statistics generation is enabled at all.

" + } + }, + "statisticsId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

Reports the ID of the current statistics generation run.\n A value of -1 indicates that no statistics have been generated.

" + } + }, + "date": { + "target": "smithy.api#Timestamp", + "traits": { + "smithy.api#documentation": "

The UTC time at which DFE statistics have most recently been generated.

", + "smithy.api#timestampFormat": "date-time" + } + }, + "note": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A note about problems in the case where statistics are invalid.

" + } + }, + "signatureInfo": { + "target": "com.amazonaws.neptunedata#StatisticsSummary", + "traits": { + "smithy.api#documentation": "

A StatisticsSummary structure that contains:

\n
    \n
  • \n

    \n signatureCount - The total number of signatures\n across all characteristic sets.

    \n
  • \n
  • \n

    \n instanceCount - The total number of\n characteristic-set instances.

    \n
  • \n
  • \n

    \n predicateCount - The total number of unique predicates.

    \n
  • \n
" + } + } + }, + "traits": { + "smithy.api#documentation": "

Contains statistics information. The DFE engine uses information\n about the data in your Neptune graph to make effective trade-offs when\n planning query execution. This information takes the form of statistics\n that include so-called characteristic sets and predicate statistics\n that can guide query planning. See Managing\n statistics for the Neptune DFE to use.

" + } + }, + "com.amazonaws.neptunedata#StatisticsAutoGenerationMode": { + "type": "enum", + "members": { + "DISABLE_AUTOCOMPUTE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "disableAutoCompute" + } + }, + "ENABLE_AUTOCOMPUTE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "enableAutoCompute" + } + }, + "REFRESH": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "refresh" + } + } + } + }, + "com.amazonaws.neptunedata#StatisticsNotAvailableException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when statistics needed to satisfy a request are not available.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + }, + "com.amazonaws.neptunedata#StatisticsSummary": { + "type": "structure", + "members": { + "signatureCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The total number of signatures across all characteristic sets.

" + } + }, + "instanceCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The total number of characteristic-set instances.

" + } + }, + "predicateCount": { + "target": "smithy.api#Integer", + "traits": { + "smithy.api#documentation": "

The total number of unique predicates.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Information about the characteristic sets generated in the statistics.

" + } + }, + "com.amazonaws.neptunedata#StreamRecordsNotFoundException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when stream records requested by a query cannot be found.

", + "smithy.api#error": "client", + "smithy.api#httpError": 404 + } + }, + "com.amazonaws.neptunedata#StringList": { + "type": "list", + "member": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#StringValuedMap": { + "type": "map", + "key": { + "target": "smithy.api#String" + }, + "value": { + "target": "smithy.api#String" + } + }, + "com.amazonaws.neptunedata#SubjectStructure": { + "type": "structure", + "members": { + "count": { + "target": "smithy.api#Long", + "traits": { + "smithy.api#documentation": "

Number of occurrences of this specific structure.

" + } + }, + "predicates": { + "target": "com.amazonaws.neptunedata#Predicates", + "traits": { + "smithy.api#documentation": "

A list of predicates present in this specific structure.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

A subject structure.

" + } + }, + "com.amazonaws.neptunedata#SubjectStructures": { + "type": "list", + "member": { + "target": "com.amazonaws.neptunedata#SubjectStructure" + } + }, + "com.amazonaws.neptunedata#ThrottlingException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request that could not be processed for this reason.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the rate of requests exceeds the maximum throughput. Requests can\n be retried after encountering this exception.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#TimeLimitExceededException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request that could not be processed for this reason.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the an operation exceeds the time limit allowed for it.

", + "smithy.api#error": "server", + "smithy.api#httpError": 500, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#TooManyRequestsException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request that could not be processed for this reason.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when the number of requests being processed exceeds the limit.

", + "smithy.api#error": "client", + "smithy.api#httpError": 429, + "smithy.api#retryable": {} + } + }, + "com.amazonaws.neptunedata#UnsupportedOperationException": { + "type": "structure", + "members": { + "detailedMessage": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

A detailed message describing the problem.

", + "smithy.api#required": {} + } + }, + "requestId": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The ID of the request in question.

", + "smithy.api#required": {} + } + }, + "code": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The HTTP status code returned with the exception.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

Raised when a request attempts to initiate an operation that is not supported.

", + "smithy.api#error": "client", + "smithy.api#httpError": 400 + } + } + } +}