@aws-sdk/client-braket 3.41.0 → 3.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Braket.js +60 -0
  4. package/dist-cjs/commands/CancelJobCommand.js +36 -0
  5. package/dist-cjs/commands/CreateJobCommand.js +36 -0
  6. package/dist-cjs/commands/GetJobCommand.js +36 -0
  7. package/dist-cjs/commands/SearchJobsCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/endpoints.js +1 -0
  10. package/dist-cjs/models/models_0.js +237 -24
  11. package/dist-cjs/pagination/SearchJobsPaginator.js +35 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restJson1.js +824 -25
  14. package/dist-cjs/runtimeConfig.js +0 -2
  15. package/dist-es/Braket.js +60 -0
  16. package/dist-es/commands/CancelJobCommand.js +39 -0
  17. package/dist-es/commands/CreateJobCommand.js +39 -0
  18. package/dist-es/commands/GetJobCommand.js +39 -0
  19. package/dist-es/commands/SearchJobsCommand.js +39 -0
  20. package/dist-es/commands/index.js +4 -0
  21. package/dist-es/endpoints.js +1 -0
  22. package/dist-es/models/models_0.js +189 -21
  23. package/dist-es/pagination/SearchJobsPaginator.js +74 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restJson1.js +887 -66
  26. package/dist-es/runtimeConfig.js +0 -2
  27. package/dist-types/Braket.d.ts +28 -0
  28. package/dist-types/BraketClient.d.ts +6 -2
  29. package/dist-types/commands/CancelJobCommand.d.ts +35 -0
  30. package/dist-types/commands/CreateJobCommand.d.ts +35 -0
  31. package/dist-types/commands/GetJobCommand.d.ts +35 -0
  32. package/dist-types/commands/SearchJobsCommand.d.ts +35 -0
  33. package/dist-types/commands/index.d.ts +4 -0
  34. package/dist-types/models/models_0.d.ts +674 -37
  35. package/dist-types/pagination/SearchJobsPaginator.d.ts +4 -0
  36. package/dist-types/pagination/index.d.ts +1 -0
  37. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  38. package/dist-types/ts3.4/Braket.d.ts +20 -0
  39. package/dist-types/ts3.4/BraketClient.d.ts +6 -2
  40. package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/CreateJobCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/GetJobCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/SearchJobsCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  45. package/dist-types/ts3.4/models/models_0.d.ts +413 -30
  46. package/dist-types/ts3.4/pagination/SearchJobsPaginator.d.ts +4 -0
  47. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  48. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  49. package/package.json +36 -43
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
12
+
13
+
14
+ ### Features
15
+
16
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
17
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
18
+
19
+
20
+
21
+
22
+
23
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
24
+
25
+
26
+ ### Features
27
+
28
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
46
+
47
+ **Note:** Version bump only for package @aws-sdk/client-braket
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
7
54
 
8
55
 
package/README.md CHANGED
@@ -24,16 +24,16 @@ using your favorite package manager:
24
24
 
25
25
  The AWS SDK is modulized by clients and commands.
26
26
  To send a request, you only need to import the `BraketClient` and
27
- the commands you need, for example `CancelQuantumTaskCommand`:
27
+ the commands you need, for example `CancelJobCommand`:
28
28
 
29
29
  ```js
30
30
  // ES5 example
31
- const { BraketClient, CancelQuantumTaskCommand } = require("@aws-sdk/client-braket");
31
+ const { BraketClient, CancelJobCommand } = require("@aws-sdk/client-braket");
32
32
  ```
33
33
 
34
34
  ```ts
35
35
  // ES6+ example
36
- import { BraketClient, CancelQuantumTaskCommand } from "@aws-sdk/client-braket";
36
+ import { BraketClient, CancelJobCommand } from "@aws-sdk/client-braket";
37
37
  ```
38
38
 
39
39
  ### Usage
@@ -52,7 +52,7 @@ const client = new BraketClient({ region: "REGION" });
52
52
  const params = {
53
53
  /** input parameters */
54
54
  };
55
- const command = new CancelQuantumTaskCommand(params);
55
+ const command = new CancelJobCommand(params);
56
56
  ```
57
57
 
58
58
  #### Async/await
@@ -131,7 +131,7 @@ const client = new AWS.Braket({ region: "REGION" });
131
131
 
132
132
  // async/await.
133
133
  try {
134
- const data = await client.cancelQuantumTask(params);
134
+ const data = await client.cancelJob(params);
135
135
  // process data.
136
136
  } catch (error) {
137
137
  // error handling.
@@ -139,7 +139,7 @@ try {
139
139
 
140
140
  // Promises.
141
141
  client
142
- .cancelQuantumTask(params)
142
+ .cancelJob(params)
143
143
  .then((data) => {
144
144
  // process data.
145
145
  })
@@ -148,7 +148,7 @@ client
148
148
  });
149
149
 
150
150
  // callbacks.
151
- client.cancelQuantumTask(params, (err, data) => {
151
+ client.cancelJob(params, (err, data) => {
152
152
  // proccess err and data.
153
153
  });
154
154
  ```
@@ -2,16 +2,34 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Braket = void 0;
4
4
  const BraketClient_1 = require("./BraketClient");
5
+ const CancelJobCommand_1 = require("./commands/CancelJobCommand");
5
6
  const CancelQuantumTaskCommand_1 = require("./commands/CancelQuantumTaskCommand");
7
+ const CreateJobCommand_1 = require("./commands/CreateJobCommand");
6
8
  const CreateQuantumTaskCommand_1 = require("./commands/CreateQuantumTaskCommand");
7
9
  const GetDeviceCommand_1 = require("./commands/GetDeviceCommand");
10
+ const GetJobCommand_1 = require("./commands/GetJobCommand");
8
11
  const GetQuantumTaskCommand_1 = require("./commands/GetQuantumTaskCommand");
9
12
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
10
13
  const SearchDevicesCommand_1 = require("./commands/SearchDevicesCommand");
14
+ const SearchJobsCommand_1 = require("./commands/SearchJobsCommand");
11
15
  const SearchQuantumTasksCommand_1 = require("./commands/SearchQuantumTasksCommand");
12
16
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
13
17
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
14
18
  class Braket extends BraketClient_1.BraketClient {
19
+ cancelJob(args, optionsOrCb, cb) {
20
+ const command = new CancelJobCommand_1.CancelJobCommand(args);
21
+ if (typeof optionsOrCb === "function") {
22
+ this.send(command, optionsOrCb);
23
+ }
24
+ else if (typeof cb === "function") {
25
+ if (typeof optionsOrCb !== "object")
26
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
27
+ this.send(command, optionsOrCb || {}, cb);
28
+ }
29
+ else {
30
+ return this.send(command, optionsOrCb);
31
+ }
32
+ }
15
33
  cancelQuantumTask(args, optionsOrCb, cb) {
16
34
  const command = new CancelQuantumTaskCommand_1.CancelQuantumTaskCommand(args);
17
35
  if (typeof optionsOrCb === "function") {
@@ -26,6 +44,20 @@ class Braket extends BraketClient_1.BraketClient {
26
44
  return this.send(command, optionsOrCb);
27
45
  }
28
46
  }
47
+ createJob(args, optionsOrCb, cb) {
48
+ const command = new CreateJobCommand_1.CreateJobCommand(args);
49
+ if (typeof optionsOrCb === "function") {
50
+ this.send(command, optionsOrCb);
51
+ }
52
+ else if (typeof cb === "function") {
53
+ if (typeof optionsOrCb !== "object")
54
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
55
+ this.send(command, optionsOrCb || {}, cb);
56
+ }
57
+ else {
58
+ return this.send(command, optionsOrCb);
59
+ }
60
+ }
29
61
  createQuantumTask(args, optionsOrCb, cb) {
30
62
  const command = new CreateQuantumTaskCommand_1.CreateQuantumTaskCommand(args);
31
63
  if (typeof optionsOrCb === "function") {
@@ -54,6 +86,20 @@ class Braket extends BraketClient_1.BraketClient {
54
86
  return this.send(command, optionsOrCb);
55
87
  }
56
88
  }
89
+ getJob(args, optionsOrCb, cb) {
90
+ const command = new GetJobCommand_1.GetJobCommand(args);
91
+ if (typeof optionsOrCb === "function") {
92
+ this.send(command, optionsOrCb);
93
+ }
94
+ else if (typeof cb === "function") {
95
+ if (typeof optionsOrCb !== "object")
96
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
+ this.send(command, optionsOrCb || {}, cb);
98
+ }
99
+ else {
100
+ return this.send(command, optionsOrCb);
101
+ }
102
+ }
57
103
  getQuantumTask(args, optionsOrCb, cb) {
58
104
  const command = new GetQuantumTaskCommand_1.GetQuantumTaskCommand(args);
59
105
  if (typeof optionsOrCb === "function") {
@@ -96,6 +142,20 @@ class Braket extends BraketClient_1.BraketClient {
96
142
  return this.send(command, optionsOrCb);
97
143
  }
98
144
  }
145
+ searchJobs(args, optionsOrCb, cb) {
146
+ const command = new SearchJobsCommand_1.SearchJobsCommand(args);
147
+ if (typeof optionsOrCb === "function") {
148
+ this.send(command, optionsOrCb);
149
+ }
150
+ else if (typeof cb === "function") {
151
+ if (typeof optionsOrCb !== "object")
152
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
+ this.send(command, optionsOrCb || {}, cb);
154
+ }
155
+ else {
156
+ return this.send(command, optionsOrCb);
157
+ }
158
+ }
99
159
  searchQuantumTasks(args, optionsOrCb, cb) {
100
160
  const command = new SearchQuantumTasksCommand_1.SearchQuantumTasksCommand(args);
101
161
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelJobCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CancelJobCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BraketClient";
18
+ const commandName = "CancelJobCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CancelJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CancelJobResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CancelJobCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CancelJobCommand(output, context);
34
+ }
35
+ }
36
+ exports.CancelJobCommand = CancelJobCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateJobCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateJobCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BraketClient";
18
+ const commandName = "CreateJobCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateJobResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateJobCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateJobCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateJobCommand = CreateJobCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetJobCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetJobCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BraketClient";
18
+ const commandName = "GetJobCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetJobResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1GetJobCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1GetJobCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetJobCommand = GetJobCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchJobsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class SearchJobsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BraketClient";
18
+ const commandName = "SearchJobsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.SearchJobsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.SearchJobsResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1SearchJobsCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1SearchJobsCommand(output, context);
34
+ }
35
+ }
36
+ exports.SearchJobsCommand = SearchJobsCommand;
@@ -1,12 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CancelJobCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CancelQuantumTaskCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateJobCommand"), exports);
5
7
  tslib_1.__exportStar(require("./CreateQuantumTaskCommand"), exports);
6
8
  tslib_1.__exportStar(require("./GetDeviceCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetJobCommand"), exports);
7
10
  tslib_1.__exportStar(require("./GetQuantumTaskCommand"), exports);
8
11
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
9
12
  tslib_1.__exportStar(require("./SearchDevicesCommand"), exports);
13
+ tslib_1.__exportStar(require("./SearchJobsCommand"), exports);
10
14
  tslib_1.__exportStar(require("./SearchQuantumTasksCommand"), exports);
11
15
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
12
16
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",