@aws-sdk/client-braket 3.42.0 → 3.47.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 (57) hide show
  1. package/CHANGELOG.md +50 -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 +213 -54
  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.browser.js +7 -2
  15. package/dist-cjs/runtimeConfig.js +9 -3
  16. package/dist-es/Braket.js +60 -0
  17. package/dist-es/commands/CancelJobCommand.js +39 -0
  18. package/dist-es/commands/CreateJobCommand.js +39 -0
  19. package/dist-es/commands/GetJobCommand.js +39 -0
  20. package/dist-es/commands/SearchJobsCommand.js +39 -0
  21. package/dist-es/commands/index.js +4 -0
  22. package/dist-es/endpoints.js +1 -0
  23. package/dist-es/models/models_0.js +173 -41
  24. package/dist-es/pagination/SearchJobsPaginator.js +74 -0
  25. package/dist-es/pagination/index.js +1 -0
  26. package/dist-es/protocols/Aws_restJson1.js +887 -66
  27. package/dist-es/runtimeConfig.browser.js +12 -3
  28. package/dist-es/runtimeConfig.js +13 -6
  29. package/dist-types/Braket.d.ts +28 -0
  30. package/dist-types/BraketClient.d.ts +11 -3
  31. package/dist-types/commands/CancelJobCommand.d.ts +35 -0
  32. package/dist-types/commands/CreateJobCommand.d.ts +35 -0
  33. package/dist-types/commands/GetJobCommand.d.ts +35 -0
  34. package/dist-types/commands/SearchJobsCommand.d.ts +35 -0
  35. package/dist-types/commands/index.d.ts +4 -0
  36. package/dist-types/models/models_0.d.ts +650 -67
  37. package/dist-types/pagination/SearchJobsPaginator.d.ts +4 -0
  38. package/dist-types/pagination/index.d.ts +1 -0
  39. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  40. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  41. package/dist-types/runtimeConfig.d.ts +4 -3
  42. package/dist-types/runtimeConfig.native.d.ts +1 -0
  43. package/dist-types/ts3.4/Braket.d.ts +20 -0
  44. package/dist-types/ts3.4/BraketClient.d.ts +9 -3
  45. package/dist-types/ts3.4/commands/CancelJobCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/CreateJobCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/GetJobCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/SearchJobsCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +397 -50
  51. package/dist-types/ts3.4/pagination/SearchJobsPaginator.d.ts +4 -0
  52. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  53. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  54. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  55. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  56. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  57. package/package.json +38 -45
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
package/dist-es/Braket.js CHANGED
@@ -1,11 +1,15 @@
1
1
  import { __extends } from "tslib";
2
2
  import { BraketClient } from "./BraketClient";
3
+ import { CancelJobCommand } from "./commands/CancelJobCommand";
3
4
  import { CancelQuantumTaskCommand, } from "./commands/CancelQuantumTaskCommand";
5
+ import { CreateJobCommand } from "./commands/CreateJobCommand";
4
6
  import { CreateQuantumTaskCommand, } from "./commands/CreateQuantumTaskCommand";
5
7
  import { GetDeviceCommand } from "./commands/GetDeviceCommand";
8
+ import { GetJobCommand } from "./commands/GetJobCommand";
6
9
  import { GetQuantumTaskCommand, } from "./commands/GetQuantumTaskCommand";
7
10
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
8
11
  import { SearchDevicesCommand, } from "./commands/SearchDevicesCommand";
12
+ import { SearchJobsCommand } from "./commands/SearchJobsCommand";
9
13
  import { SearchQuantumTasksCommand, } from "./commands/SearchQuantumTasksCommand";
10
14
  import { TagResourceCommand } from "./commands/TagResourceCommand";
11
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
@@ -14,6 +18,20 @@ var Braket = (function (_super) {
14
18
  function Braket() {
15
19
  return _super !== null && _super.apply(this, arguments) || this;
16
20
  }
21
+ Braket.prototype.cancelJob = function (args, optionsOrCb, cb) {
22
+ var command = new CancelJobCommand(args);
23
+ if (typeof optionsOrCb === "function") {
24
+ this.send(command, optionsOrCb);
25
+ }
26
+ else if (typeof cb === "function") {
27
+ if (typeof optionsOrCb !== "object")
28
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
29
+ this.send(command, optionsOrCb || {}, cb);
30
+ }
31
+ else {
32
+ return this.send(command, optionsOrCb);
33
+ }
34
+ };
17
35
  Braket.prototype.cancelQuantumTask = function (args, optionsOrCb, cb) {
18
36
  var command = new CancelQuantumTaskCommand(args);
19
37
  if (typeof optionsOrCb === "function") {
@@ -28,6 +46,20 @@ var Braket = (function (_super) {
28
46
  return this.send(command, optionsOrCb);
29
47
  }
30
48
  };
49
+ Braket.prototype.createJob = function (args, optionsOrCb, cb) {
50
+ var command = new CreateJobCommand(args);
51
+ if (typeof optionsOrCb === "function") {
52
+ this.send(command, optionsOrCb);
53
+ }
54
+ else if (typeof cb === "function") {
55
+ if (typeof optionsOrCb !== "object")
56
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
57
+ this.send(command, optionsOrCb || {}, cb);
58
+ }
59
+ else {
60
+ return this.send(command, optionsOrCb);
61
+ }
62
+ };
31
63
  Braket.prototype.createQuantumTask = function (args, optionsOrCb, cb) {
32
64
  var command = new CreateQuantumTaskCommand(args);
33
65
  if (typeof optionsOrCb === "function") {
@@ -56,6 +88,20 @@ var Braket = (function (_super) {
56
88
  return this.send(command, optionsOrCb);
57
89
  }
58
90
  };
91
+ Braket.prototype.getJob = function (args, optionsOrCb, cb) {
92
+ var command = new GetJobCommand(args);
93
+ if (typeof optionsOrCb === "function") {
94
+ this.send(command, optionsOrCb);
95
+ }
96
+ else if (typeof cb === "function") {
97
+ if (typeof optionsOrCb !== "object")
98
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
99
+ this.send(command, optionsOrCb || {}, cb);
100
+ }
101
+ else {
102
+ return this.send(command, optionsOrCb);
103
+ }
104
+ };
59
105
  Braket.prototype.getQuantumTask = function (args, optionsOrCb, cb) {
60
106
  var command = new GetQuantumTaskCommand(args);
61
107
  if (typeof optionsOrCb === "function") {
@@ -98,6 +144,20 @@ var Braket = (function (_super) {
98
144
  return this.send(command, optionsOrCb);
99
145
  }
100
146
  };
147
+ Braket.prototype.searchJobs = function (args, optionsOrCb, cb) {
148
+ var command = new SearchJobsCommand(args);
149
+ if (typeof optionsOrCb === "function") {
150
+ this.send(command, optionsOrCb);
151
+ }
152
+ else if (typeof cb === "function") {
153
+ if (typeof optionsOrCb !== "object")
154
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
155
+ this.send(command, optionsOrCb || {}, cb);
156
+ }
157
+ else {
158
+ return this.send(command, optionsOrCb);
159
+ }
160
+ };
101
161
  Braket.prototype.searchQuantumTasks = function (args, optionsOrCb, cb) {
102
162
  var command = new SearchQuantumTasksCommand(args);
103
163
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CancelJobRequest, CancelJobResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CancelJobCommand, serializeAws_restJson1CancelJobCommand, } from "../protocols/Aws_restJson1";
6
+ var CancelJobCommand = (function (_super) {
7
+ __extends(CancelJobCommand, _super);
8
+ function CancelJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CancelJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BraketClient";
18
+ var commandName = "CancelJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CancelJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CancelJobResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CancelJobCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CancelJobCommand(input, context);
33
+ };
34
+ CancelJobCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CancelJobCommand(output, context);
36
+ };
37
+ return CancelJobCommand;
38
+ }($Command));
39
+ export { CancelJobCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateJobRequest, CreateJobResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateJobCommand, serializeAws_restJson1CreateJobCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateJobCommand = (function (_super) {
7
+ __extends(CreateJobCommand, _super);
8
+ function CreateJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BraketClient";
18
+ var commandName = "CreateJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateJobResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateJobCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateJobCommand(input, context);
33
+ };
34
+ CreateJobCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateJobCommand(output, context);
36
+ };
37
+ return CreateJobCommand;
38
+ }($Command));
39
+ export { CreateJobCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetJobRequest, GetJobResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetJobCommand, serializeAws_restJson1GetJobCommand } from "../protocols/Aws_restJson1";
6
+ var GetJobCommand = (function (_super) {
7
+ __extends(GetJobCommand, _super);
8
+ function GetJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetJobCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BraketClient";
18
+ var commandName = "GetJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetJobResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetJobCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetJobCommand(input, context);
33
+ };
34
+ GetJobCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetJobCommand(output, context);
36
+ };
37
+ return GetJobCommand;
38
+ }($Command));
39
+ export { GetJobCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { SearchJobsRequest, SearchJobsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1SearchJobsCommand, serializeAws_restJson1SearchJobsCommand, } from "../protocols/Aws_restJson1";
6
+ var SearchJobsCommand = (function (_super) {
7
+ __extends(SearchJobsCommand, _super);
8
+ function SearchJobsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ SearchJobsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "BraketClient";
18
+ var commandName = "SearchJobsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: SearchJobsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: SearchJobsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ SearchJobsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1SearchJobsCommand(input, context);
33
+ };
34
+ SearchJobsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1SearchJobsCommand(output, context);
36
+ };
37
+ return SearchJobsCommand;
38
+ }($Command));
39
+ export { SearchJobsCommand };
@@ -1,9 +1,13 @@
1
+ export * from "./CancelJobCommand";
1
2
  export * from "./CancelQuantumTaskCommand";
3
+ export * from "./CreateJobCommand";
2
4
  export * from "./CreateQuantumTaskCommand";
3
5
  export * from "./GetDeviceCommand";
6
+ export * from "./GetJobCommand";
4
7
  export * from "./GetQuantumTaskCommand";
5
8
  export * from "./ListTagsForResourceCommand";
6
9
  export * from "./SearchDevicesCommand";
10
+ export * from "./SearchJobsCommand";
7
11
  export * from "./SearchQuantumTasksCommand";
8
12
  export * from "./TagResourceCommand";
9
13
  export * from "./UntagResourceCommand";
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",
@@ -1,16 +1,21 @@
1
1
  import { __assign } from "tslib";
2
- export var AccessDeniedException;
3
- (function (AccessDeniedException) {
4
- AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
- })(AccessDeniedException || (AccessDeniedException = {}));
6
- export var DeviceOfflineException;
7
- (function (DeviceOfflineException) {
8
- DeviceOfflineException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
- })(DeviceOfflineException || (DeviceOfflineException = {}));
10
- export var DeviceRetiredException;
11
- (function (DeviceRetiredException) {
12
- DeviceRetiredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
13
- })(DeviceRetiredException || (DeviceRetiredException = {}));
2
+ export var ContainerImage;
3
+ (function (ContainerImage) {
4
+ ContainerImage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
+ })(ContainerImage || (ContainerImage = {}));
6
+ export var CompressionType;
7
+ (function (CompressionType) {
8
+ CompressionType["GZIP"] = "GZIP";
9
+ CompressionType["NONE"] = "NONE";
10
+ })(CompressionType || (CompressionType = {}));
11
+ export var ScriptModeConfig;
12
+ (function (ScriptModeConfig) {
13
+ ScriptModeConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
14
+ })(ScriptModeConfig || (ScriptModeConfig = {}));
15
+ export var AlgorithmSpecification;
16
+ (function (AlgorithmSpecification) {
17
+ AlgorithmSpecification.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
+ })(AlgorithmSpecification || (AlgorithmSpecification = {}));
14
19
  export var GetDeviceRequest;
15
20
  (function (GetDeviceRequest) {
16
21
  GetDeviceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -30,22 +35,6 @@ export var GetDeviceResponse;
30
35
  (function (GetDeviceResponse) {
31
36
  GetDeviceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
32
37
  })(GetDeviceResponse || (GetDeviceResponse = {}));
33
- export var InternalServiceException;
34
- (function (InternalServiceException) {
35
- InternalServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
36
- })(InternalServiceException || (InternalServiceException = {}));
37
- export var ResourceNotFoundException;
38
- (function (ResourceNotFoundException) {
39
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
40
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
41
- export var ThrottlingException;
42
- (function (ThrottlingException) {
43
- ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
44
- })(ThrottlingException || (ThrottlingException = {}));
45
- export var ValidationException;
46
- (function (ValidationException) {
47
- ValidationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
48
- })(ValidationException || (ValidationException = {}));
49
38
  export var SearchDevicesFilter;
50
39
  (function (SearchDevicesFilter) {
51
40
  SearchDevicesFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -62,6 +51,162 @@ export var SearchDevicesResponse;
62
51
  (function (SearchDevicesResponse) {
63
52
  SearchDevicesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
64
53
  })(SearchDevicesResponse || (SearchDevicesResponse = {}));
54
+ export var CancelJobRequest;
55
+ (function (CancelJobRequest) {
56
+ CancelJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
+ })(CancelJobRequest || (CancelJobRequest = {}));
58
+ export var CancellationStatus;
59
+ (function (CancellationStatus) {
60
+ CancellationStatus["CANCELLED"] = "CANCELLED";
61
+ CancellationStatus["CANCELLING"] = "CANCELLING";
62
+ })(CancellationStatus || (CancellationStatus = {}));
63
+ export var CancelJobResponse;
64
+ (function (CancelJobResponse) {
65
+ CancelJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
66
+ })(CancelJobResponse || (CancelJobResponse = {}));
67
+ export var JobCheckpointConfig;
68
+ (function (JobCheckpointConfig) {
69
+ JobCheckpointConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
+ })(JobCheckpointConfig || (JobCheckpointConfig = {}));
71
+ export var DeviceConfig;
72
+ (function (DeviceConfig) {
73
+ DeviceConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
+ })(DeviceConfig || (DeviceConfig = {}));
75
+ export var S3DataSource;
76
+ (function (S3DataSource) {
77
+ S3DataSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
+ })(S3DataSource || (S3DataSource = {}));
79
+ export var DataSource;
80
+ (function (DataSource) {
81
+ DataSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
+ })(DataSource || (DataSource = {}));
83
+ export var InputFileConfig;
84
+ (function (InputFileConfig) {
85
+ InputFileConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
+ })(InputFileConfig || (InputFileConfig = {}));
87
+ export var _InstanceType;
88
+ (function (_InstanceType) {
89
+ _InstanceType["ML_C4_2XLARGE"] = "ml.c4.2xlarge";
90
+ _InstanceType["ML_C4_4XLARGE"] = "ml.c4.4xlarge";
91
+ _InstanceType["ML_C4_8XLARGE"] = "ml.c4.8xlarge";
92
+ _InstanceType["ML_C4_XLARGE"] = "ml.c4.xlarge";
93
+ _InstanceType["ML_C5N_18XLARGE"] = "ml.c5n.18xlarge";
94
+ _InstanceType["ML_C5N_2XLARGE"] = "ml.c5n.2xlarge";
95
+ _InstanceType["ML_C5N_4XLARGE"] = "ml.c5n.4xlarge";
96
+ _InstanceType["ML_C5N_9XLARGE"] = "ml.c5n.9xlarge";
97
+ _InstanceType["ML_C5N_XLARGE"] = "ml.c5n.xlarge";
98
+ _InstanceType["ML_C5_18XLARGE"] = "ml.c5.18xlarge";
99
+ _InstanceType["ML_C5_2XLARGE"] = "ml.c5.2xlarge";
100
+ _InstanceType["ML_C5_4XLARGE"] = "ml.c5.4xlarge";
101
+ _InstanceType["ML_C5_9XLARGE"] = "ml.c5.9xlarge";
102
+ _InstanceType["ML_C5_XLARGE"] = "ml.c5.xlarge";
103
+ _InstanceType["ML_G4DN_12XLARGE"] = "ml.g4dn.12xlarge";
104
+ _InstanceType["ML_G4DN_16XLARGE"] = "ml.g4dn.16xlarge";
105
+ _InstanceType["ML_G4DN_2XLARGE"] = "ml.g4dn.2xlarge";
106
+ _InstanceType["ML_G4DN_4XLARGE"] = "ml.g4dn.4xlarge";
107
+ _InstanceType["ML_G4DN_8XLARGE"] = "ml.g4dn.8xlarge";
108
+ _InstanceType["ML_G4DN_XLARGE"] = "ml.g4dn.xlarge";
109
+ _InstanceType["ML_M4_10XLARGE"] = "ml.m4.10xlarge";
110
+ _InstanceType["ML_M4_16XLARGE"] = "ml.m4.16xlarge";
111
+ _InstanceType["ML_M4_2XLARGE"] = "ml.m4.2xlarge";
112
+ _InstanceType["ML_M4_4XLARGE"] = "ml.m4.4xlarge";
113
+ _InstanceType["ML_M4_XLARGE"] = "ml.m4.xlarge";
114
+ _InstanceType["ML_M5_12XLARGE"] = "ml.m5.12xlarge";
115
+ _InstanceType["ML_M5_24XLARGE"] = "ml.m5.24xlarge";
116
+ _InstanceType["ML_M5_2XLARGE"] = "ml.m5.2xlarge";
117
+ _InstanceType["ML_M5_4XLARGE"] = "ml.m5.4xlarge";
118
+ _InstanceType["ML_M5_LARGE"] = "ml.m5.large";
119
+ _InstanceType["ML_M5_XLARGE"] = "ml.m5.xlarge";
120
+ _InstanceType["ML_P2_16XLARGE"] = "ml.p2.16xlarge";
121
+ _InstanceType["ML_P2_8XLARGE"] = "ml.p2.8xlarge";
122
+ _InstanceType["ML_P2_XLARGE"] = "ml.p2.xlarge";
123
+ _InstanceType["ML_P3DN_24XLARGE"] = "ml.p3dn.24xlarge";
124
+ _InstanceType["ML_P3_16XLARGE"] = "ml.p3.16xlarge";
125
+ _InstanceType["ML_P3_2XLARGE"] = "ml.p3.2xlarge";
126
+ _InstanceType["ML_P3_8XLARGE"] = "ml.p3.8xlarge";
127
+ _InstanceType["ML_P4D_24XLARGE"] = "ml.p4d.24xlarge";
128
+ })(_InstanceType || (_InstanceType = {}));
129
+ export var InstanceConfig;
130
+ (function (InstanceConfig) {
131
+ InstanceConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
132
+ })(InstanceConfig || (InstanceConfig = {}));
133
+ export var JobOutputDataConfig;
134
+ (function (JobOutputDataConfig) {
135
+ JobOutputDataConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
136
+ })(JobOutputDataConfig || (JobOutputDataConfig = {}));
137
+ export var JobStoppingCondition;
138
+ (function (JobStoppingCondition) {
139
+ JobStoppingCondition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
+ })(JobStoppingCondition || (JobStoppingCondition = {}));
141
+ export var CreateJobRequest;
142
+ (function (CreateJobRequest) {
143
+ CreateJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
144
+ })(CreateJobRequest || (CreateJobRequest = {}));
145
+ export var CreateJobResponse;
146
+ (function (CreateJobResponse) {
147
+ CreateJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
148
+ })(CreateJobResponse || (CreateJobResponse = {}));
149
+ export var GetJobRequest;
150
+ (function (GetJobRequest) {
151
+ GetJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
152
+ })(GetJobRequest || (GetJobRequest = {}));
153
+ export var JobEventType;
154
+ (function (JobEventType) {
155
+ JobEventType["CANCELLED"] = "CANCELLED";
156
+ JobEventType["COMPLETED"] = "COMPLETED";
157
+ JobEventType["DEPRIORITIZED_DUE_TO_INACTIVITY"] = "DEPRIORITIZED_DUE_TO_INACTIVITY";
158
+ JobEventType["DOWNLOADING_DATA"] = "DOWNLOADING_DATA";
159
+ JobEventType["FAILED"] = "FAILED";
160
+ JobEventType["MAX_RUNTIME_EXCEEDED"] = "MAX_RUNTIME_EXCEEDED";
161
+ JobEventType["QUEUED_FOR_EXECUTION"] = "QUEUED_FOR_EXECUTION";
162
+ JobEventType["RUNNING"] = "RUNNING";
163
+ JobEventType["STARTING_INSTANCE"] = "STARTING_INSTANCE";
164
+ JobEventType["UPLOADING_RESULTS"] = "UPLOADING_RESULTS";
165
+ JobEventType["WAITING_FOR_PRIORITY"] = "WAITING_FOR_PRIORITY";
166
+ })(JobEventType || (JobEventType = {}));
167
+ export var JobEventDetails;
168
+ (function (JobEventDetails) {
169
+ JobEventDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
170
+ })(JobEventDetails || (JobEventDetails = {}));
171
+ export var JobPrimaryStatus;
172
+ (function (JobPrimaryStatus) {
173
+ JobPrimaryStatus["CANCELLED"] = "CANCELLED";
174
+ JobPrimaryStatus["CANCELLING"] = "CANCELLING";
175
+ JobPrimaryStatus["COMPLETED"] = "COMPLETED";
176
+ JobPrimaryStatus["FAILED"] = "FAILED";
177
+ JobPrimaryStatus["QUEUED"] = "QUEUED";
178
+ JobPrimaryStatus["RUNNING"] = "RUNNING";
179
+ })(JobPrimaryStatus || (JobPrimaryStatus = {}));
180
+ export var GetJobResponse;
181
+ (function (GetJobResponse) {
182
+ GetJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
183
+ })(GetJobResponse || (GetJobResponse = {}));
184
+ export var SearchJobsFilterOperator;
185
+ (function (SearchJobsFilterOperator) {
186
+ SearchJobsFilterOperator["BETWEEN"] = "BETWEEN";
187
+ SearchJobsFilterOperator["CONTAINS"] = "CONTAINS";
188
+ SearchJobsFilterOperator["EQUAL"] = "EQUAL";
189
+ SearchJobsFilterOperator["GT"] = "GT";
190
+ SearchJobsFilterOperator["GTE"] = "GTE";
191
+ SearchJobsFilterOperator["LT"] = "LT";
192
+ SearchJobsFilterOperator["LTE"] = "LTE";
193
+ })(SearchJobsFilterOperator || (SearchJobsFilterOperator = {}));
194
+ export var SearchJobsFilter;
195
+ (function (SearchJobsFilter) {
196
+ SearchJobsFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
+ })(SearchJobsFilter || (SearchJobsFilter = {}));
198
+ export var SearchJobsRequest;
199
+ (function (SearchJobsRequest) {
200
+ SearchJobsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
+ })(SearchJobsRequest || (SearchJobsRequest = {}));
202
+ export var JobSummary;
203
+ (function (JobSummary) {
204
+ JobSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
205
+ })(JobSummary || (JobSummary = {}));
206
+ export var SearchJobsResponse;
207
+ (function (SearchJobsResponse) {
208
+ SearchJobsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
+ })(SearchJobsResponse || (SearchJobsResponse = {}));
65
210
  export var ListTagsForResourceRequest;
66
211
  (function (ListTagsForResourceRequest) {
67
212
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -74,19 +219,10 @@ export var CancelQuantumTaskRequest;
74
219
  (function (CancelQuantumTaskRequest) {
75
220
  CancelQuantumTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
221
  })(CancelQuantumTaskRequest || (CancelQuantumTaskRequest = {}));
77
- export var CancellationStatus;
78
- (function (CancellationStatus) {
79
- CancellationStatus["CANCELLED"] = "CANCELLED";
80
- CancellationStatus["CANCELLING"] = "CANCELLING";
81
- })(CancellationStatus || (CancellationStatus = {}));
82
222
  export var CancelQuantumTaskResponse;
83
223
  (function (CancelQuantumTaskResponse) {
84
224
  CancelQuantumTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
225
  })(CancelQuantumTaskResponse || (CancelQuantumTaskResponse = {}));
86
- export var ConflictException;
87
- (function (ConflictException) {
88
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- })(ConflictException || (ConflictException = {}));
90
226
  export var CreateQuantumTaskRequest;
91
227
  (function (CreateQuantumTaskRequest) {
92
228
  CreateQuantumTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -95,10 +231,6 @@ export var CreateQuantumTaskResponse;
95
231
  (function (CreateQuantumTaskResponse) {
96
232
  CreateQuantumTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
233
  })(CreateQuantumTaskResponse || (CreateQuantumTaskResponse = {}));
98
- export var ServiceQuotaExceededException;
99
- (function (ServiceQuotaExceededException) {
100
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
102
234
  export var GetQuantumTaskRequest;
103
235
  (function (GetQuantumTaskRequest) {
104
236
  GetQuantumTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };