@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
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  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
- const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const getRuntimeConfig = (config) => {
20
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
20
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
21
  return {
24
22
  ...clientSharedValues,
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",
@@ -3,14 +3,23 @@ export var AccessDeniedException;
3
3
  (function (AccessDeniedException) {
4
4
  AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
5
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 = {}));
6
+ export var ContainerImage;
7
+ (function (ContainerImage) {
8
+ ContainerImage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
9
+ })(ContainerImage || (ContainerImage = {}));
10
+ export var CompressionType;
11
+ (function (CompressionType) {
12
+ CompressionType["GZIP"] = "GZIP";
13
+ CompressionType["NONE"] = "NONE";
14
+ })(CompressionType || (CompressionType = {}));
15
+ export var ScriptModeConfig;
16
+ (function (ScriptModeConfig) {
17
+ ScriptModeConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
18
+ })(ScriptModeConfig || (ScriptModeConfig = {}));
19
+ export var AlgorithmSpecification;
20
+ (function (AlgorithmSpecification) {
21
+ AlgorithmSpecification.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
22
+ })(AlgorithmSpecification || (AlgorithmSpecification = {}));
14
23
  export var GetDeviceRequest;
15
24
  (function (GetDeviceRequest) {
16
25
  GetDeviceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -62,6 +71,174 @@ export var SearchDevicesResponse;
62
71
  (function (SearchDevicesResponse) {
63
72
  SearchDevicesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
64
73
  })(SearchDevicesResponse || (SearchDevicesResponse = {}));
74
+ export var CancelJobRequest;
75
+ (function (CancelJobRequest) {
76
+ CancelJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
+ })(CancelJobRequest || (CancelJobRequest = {}));
78
+ export var CancellationStatus;
79
+ (function (CancellationStatus) {
80
+ CancellationStatus["CANCELLED"] = "CANCELLED";
81
+ CancellationStatus["CANCELLING"] = "CANCELLING";
82
+ })(CancellationStatus || (CancellationStatus = {}));
83
+ export var CancelJobResponse;
84
+ (function (CancelJobResponse) {
85
+ CancelJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
86
+ })(CancelJobResponse || (CancelJobResponse = {}));
87
+ export var ConflictException;
88
+ (function (ConflictException) {
89
+ ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
90
+ })(ConflictException || (ConflictException = {}));
91
+ export var JobCheckpointConfig;
92
+ (function (JobCheckpointConfig) {
93
+ JobCheckpointConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
94
+ })(JobCheckpointConfig || (JobCheckpointConfig = {}));
95
+ export var DeviceConfig;
96
+ (function (DeviceConfig) {
97
+ DeviceConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
+ })(DeviceConfig || (DeviceConfig = {}));
99
+ export var S3DataSource;
100
+ (function (S3DataSource) {
101
+ S3DataSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
+ })(S3DataSource || (S3DataSource = {}));
103
+ export var DataSource;
104
+ (function (DataSource) {
105
+ DataSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
+ })(DataSource || (DataSource = {}));
107
+ export var InputFileConfig;
108
+ (function (InputFileConfig) {
109
+ InputFileConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
+ })(InputFileConfig || (InputFileConfig = {}));
111
+ export var _InstanceType;
112
+ (function (_InstanceType) {
113
+ _InstanceType["ML_C4_2XLARGE"] = "ml.c4.2xlarge";
114
+ _InstanceType["ML_C4_4XLARGE"] = "ml.c4.4xlarge";
115
+ _InstanceType["ML_C4_8XLARGE"] = "ml.c4.8xlarge";
116
+ _InstanceType["ML_C4_XLARGE"] = "ml.c4.xlarge";
117
+ _InstanceType["ML_C5N_18XLARGE"] = "ml.c5n.18xlarge";
118
+ _InstanceType["ML_C5N_2XLARGE"] = "ml.c5n.2xlarge";
119
+ _InstanceType["ML_C5N_4XLARGE"] = "ml.c5n.4xlarge";
120
+ _InstanceType["ML_C5N_9XLARGE"] = "ml.c5n.9xlarge";
121
+ _InstanceType["ML_C5N_XLARGE"] = "ml.c5n.xlarge";
122
+ _InstanceType["ML_C5_18XLARGE"] = "ml.c5.18xlarge";
123
+ _InstanceType["ML_C5_2XLARGE"] = "ml.c5.2xlarge";
124
+ _InstanceType["ML_C5_4XLARGE"] = "ml.c5.4xlarge";
125
+ _InstanceType["ML_C5_9XLARGE"] = "ml.c5.9xlarge";
126
+ _InstanceType["ML_C5_XLARGE"] = "ml.c5.xlarge";
127
+ _InstanceType["ML_G4DN_12XLARGE"] = "ml.g4dn.12xlarge";
128
+ _InstanceType["ML_G4DN_16XLARGE"] = "ml.g4dn.16xlarge";
129
+ _InstanceType["ML_G4DN_2XLARGE"] = "ml.g4dn.2xlarge";
130
+ _InstanceType["ML_G4DN_4XLARGE"] = "ml.g4dn.4xlarge";
131
+ _InstanceType["ML_G4DN_8XLARGE"] = "ml.g4dn.8xlarge";
132
+ _InstanceType["ML_G4DN_XLARGE"] = "ml.g4dn.xlarge";
133
+ _InstanceType["ML_M4_10XLARGE"] = "ml.m4.10xlarge";
134
+ _InstanceType["ML_M4_16XLARGE"] = "ml.m4.16xlarge";
135
+ _InstanceType["ML_M4_2XLARGE"] = "ml.m4.2xlarge";
136
+ _InstanceType["ML_M4_4XLARGE"] = "ml.m4.4xlarge";
137
+ _InstanceType["ML_M4_XLARGE"] = "ml.m4.xlarge";
138
+ _InstanceType["ML_M5_12XLARGE"] = "ml.m5.12xlarge";
139
+ _InstanceType["ML_M5_24XLARGE"] = "ml.m5.24xlarge";
140
+ _InstanceType["ML_M5_2XLARGE"] = "ml.m5.2xlarge";
141
+ _InstanceType["ML_M5_4XLARGE"] = "ml.m5.4xlarge";
142
+ _InstanceType["ML_M5_LARGE"] = "ml.m5.large";
143
+ _InstanceType["ML_M5_XLARGE"] = "ml.m5.xlarge";
144
+ _InstanceType["ML_P2_16XLARGE"] = "ml.p2.16xlarge";
145
+ _InstanceType["ML_P2_8XLARGE"] = "ml.p2.8xlarge";
146
+ _InstanceType["ML_P2_XLARGE"] = "ml.p2.xlarge";
147
+ _InstanceType["ML_P3DN_24XLARGE"] = "ml.p3dn.24xlarge";
148
+ _InstanceType["ML_P3_16XLARGE"] = "ml.p3.16xlarge";
149
+ _InstanceType["ML_P3_2XLARGE"] = "ml.p3.2xlarge";
150
+ _InstanceType["ML_P3_8XLARGE"] = "ml.p3.8xlarge";
151
+ _InstanceType["ML_P4D_24XLARGE"] = "ml.p4d.24xlarge";
152
+ })(_InstanceType || (_InstanceType = {}));
153
+ export var InstanceConfig;
154
+ (function (InstanceConfig) {
155
+ InstanceConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
156
+ })(InstanceConfig || (InstanceConfig = {}));
157
+ export var JobOutputDataConfig;
158
+ (function (JobOutputDataConfig) {
159
+ JobOutputDataConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
160
+ })(JobOutputDataConfig || (JobOutputDataConfig = {}));
161
+ export var JobStoppingCondition;
162
+ (function (JobStoppingCondition) {
163
+ JobStoppingCondition.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
164
+ })(JobStoppingCondition || (JobStoppingCondition = {}));
165
+ export var CreateJobRequest;
166
+ (function (CreateJobRequest) {
167
+ CreateJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
168
+ })(CreateJobRequest || (CreateJobRequest = {}));
169
+ export var CreateJobResponse;
170
+ (function (CreateJobResponse) {
171
+ CreateJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
172
+ })(CreateJobResponse || (CreateJobResponse = {}));
173
+ export var DeviceRetiredException;
174
+ (function (DeviceRetiredException) {
175
+ DeviceRetiredException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
176
+ })(DeviceRetiredException || (DeviceRetiredException = {}));
177
+ export var ServiceQuotaExceededException;
178
+ (function (ServiceQuotaExceededException) {
179
+ ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
180
+ })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
181
+ export var GetJobRequest;
182
+ (function (GetJobRequest) {
183
+ GetJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
184
+ })(GetJobRequest || (GetJobRequest = {}));
185
+ export var JobEventType;
186
+ (function (JobEventType) {
187
+ JobEventType["CANCELLED"] = "CANCELLED";
188
+ JobEventType["COMPLETED"] = "COMPLETED";
189
+ JobEventType["DEPRIORITIZED_DUE_TO_INACTIVITY"] = "DEPRIORITIZED_DUE_TO_INACTIVITY";
190
+ JobEventType["DOWNLOADING_DATA"] = "DOWNLOADING_DATA";
191
+ JobEventType["FAILED"] = "FAILED";
192
+ JobEventType["MAX_RUNTIME_EXCEEDED"] = "MAX_RUNTIME_EXCEEDED";
193
+ JobEventType["QUEUED_FOR_EXECUTION"] = "QUEUED_FOR_EXECUTION";
194
+ JobEventType["RUNNING"] = "RUNNING";
195
+ JobEventType["STARTING_INSTANCE"] = "STARTING_INSTANCE";
196
+ JobEventType["UPLOADING_RESULTS"] = "UPLOADING_RESULTS";
197
+ JobEventType["WAITING_FOR_PRIORITY"] = "WAITING_FOR_PRIORITY";
198
+ })(JobEventType || (JobEventType = {}));
199
+ export var JobEventDetails;
200
+ (function (JobEventDetails) {
201
+ JobEventDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
202
+ })(JobEventDetails || (JobEventDetails = {}));
203
+ export var JobPrimaryStatus;
204
+ (function (JobPrimaryStatus) {
205
+ JobPrimaryStatus["CANCELLED"] = "CANCELLED";
206
+ JobPrimaryStatus["CANCELLING"] = "CANCELLING";
207
+ JobPrimaryStatus["COMPLETED"] = "COMPLETED";
208
+ JobPrimaryStatus["FAILED"] = "FAILED";
209
+ JobPrimaryStatus["QUEUED"] = "QUEUED";
210
+ JobPrimaryStatus["RUNNING"] = "RUNNING";
211
+ })(JobPrimaryStatus || (JobPrimaryStatus = {}));
212
+ export var GetJobResponse;
213
+ (function (GetJobResponse) {
214
+ GetJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
215
+ })(GetJobResponse || (GetJobResponse = {}));
216
+ export var SearchJobsFilterOperator;
217
+ (function (SearchJobsFilterOperator) {
218
+ SearchJobsFilterOperator["BETWEEN"] = "BETWEEN";
219
+ SearchJobsFilterOperator["CONTAINS"] = "CONTAINS";
220
+ SearchJobsFilterOperator["EQUAL"] = "EQUAL";
221
+ SearchJobsFilterOperator["GT"] = "GT";
222
+ SearchJobsFilterOperator["GTE"] = "GTE";
223
+ SearchJobsFilterOperator["LT"] = "LT";
224
+ SearchJobsFilterOperator["LTE"] = "LTE";
225
+ })(SearchJobsFilterOperator || (SearchJobsFilterOperator = {}));
226
+ export var SearchJobsFilter;
227
+ (function (SearchJobsFilter) {
228
+ SearchJobsFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
229
+ })(SearchJobsFilter || (SearchJobsFilter = {}));
230
+ export var SearchJobsRequest;
231
+ (function (SearchJobsRequest) {
232
+ SearchJobsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
233
+ })(SearchJobsRequest || (SearchJobsRequest = {}));
234
+ export var JobSummary;
235
+ (function (JobSummary) {
236
+ JobSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
237
+ })(JobSummary || (JobSummary = {}));
238
+ export var SearchJobsResponse;
239
+ (function (SearchJobsResponse) {
240
+ SearchJobsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
241
+ })(SearchJobsResponse || (SearchJobsResponse = {}));
65
242
  export var ListTagsForResourceRequest;
66
243
  (function (ListTagsForResourceRequest) {
67
244
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -74,19 +251,10 @@ export var CancelQuantumTaskRequest;
74
251
  (function (CancelQuantumTaskRequest) {
75
252
  CancelQuantumTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
253
  })(CancelQuantumTaskRequest || (CancelQuantumTaskRequest = {}));
77
- export var CancellationStatus;
78
- (function (CancellationStatus) {
79
- CancellationStatus["CANCELLED"] = "CANCELLED";
80
- CancellationStatus["CANCELLING"] = "CANCELLING";
81
- })(CancellationStatus || (CancellationStatus = {}));
82
254
  export var CancelQuantumTaskResponse;
83
255
  (function (CancelQuantumTaskResponse) {
84
256
  CancelQuantumTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
257
  })(CancelQuantumTaskResponse || (CancelQuantumTaskResponse = {}));
86
- export var ConflictException;
87
- (function (ConflictException) {
88
- ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
89
- })(ConflictException || (ConflictException = {}));
90
258
  export var CreateQuantumTaskRequest;
91
259
  (function (CreateQuantumTaskRequest) {
92
260
  CreateQuantumTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -95,10 +263,10 @@ export var CreateQuantumTaskResponse;
95
263
  (function (CreateQuantumTaskResponse) {
96
264
  CreateQuantumTaskResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
97
265
  })(CreateQuantumTaskResponse || (CreateQuantumTaskResponse = {}));
98
- export var ServiceQuotaExceededException;
99
- (function (ServiceQuotaExceededException) {
100
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
101
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
266
+ export var DeviceOfflineException;
267
+ (function (DeviceOfflineException) {
268
+ DeviceOfflineException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
269
+ })(DeviceOfflineException || (DeviceOfflineException = {}));
102
270
  export var GetQuantumTaskRequest;
103
271
  (function (GetQuantumTaskRequest) {
104
272
  GetQuantumTaskRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -0,0 +1,74 @@
1
+ import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
+ import { Braket } from "../Braket";
3
+ import { BraketClient } from "../BraketClient";
4
+ import { SearchJobsCommand } from "../commands/SearchJobsCommand";
5
+ var makePagedClientRequest = function (client, input) {
6
+ var args = [];
7
+ for (var _i = 2; _i < arguments.length; _i++) {
8
+ args[_i - 2] = arguments[_i];
9
+ }
10
+ return __awaiter(void 0, void 0, void 0, function () {
11
+ return __generator(this, function (_a) {
12
+ switch (_a.label) {
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new SearchJobsCommand(input)], __read(args)))];
14
+ case 1: return [2, _a.sent()];
15
+ }
16
+ });
17
+ });
18
+ };
19
+ var makePagedRequest = function (client, input) {
20
+ var args = [];
21
+ for (var _i = 2; _i < arguments.length; _i++) {
22
+ args[_i - 2] = arguments[_i];
23
+ }
24
+ return __awaiter(void 0, void 0, void 0, function () {
25
+ return __generator(this, function (_a) {
26
+ switch (_a.label) {
27
+ case 0: return [4, client.searchJobs.apply(client, __spreadArray([input], __read(args)))];
28
+ case 1: return [2, _a.sent()];
29
+ }
30
+ });
31
+ });
32
+ };
33
+ export function paginateSearchJobs(config, input) {
34
+ var additionalArguments = [];
35
+ for (var _i = 2; _i < arguments.length; _i++) {
36
+ additionalArguments[_i - 2] = arguments[_i];
37
+ }
38
+ return __asyncGenerator(this, arguments, function paginateSearchJobs_1() {
39
+ var token, hasNext, page;
40
+ return __generator(this, function (_a) {
41
+ switch (_a.label) {
42
+ case 0:
43
+ token = config.startingToken || undefined;
44
+ hasNext = true;
45
+ _a.label = 1;
46
+ case 1:
47
+ if (!hasNext) return [3, 9];
48
+ input.nextToken = token;
49
+ input["maxResults"] = config.pageSize;
50
+ if (!(config.client instanceof Braket)) return [3, 3];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
52
+ case 2:
53
+ page = _a.sent();
54
+ return [3, 6];
55
+ case 3:
56
+ if (!(config.client instanceof BraketClient)) return [3, 5];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
58
+ case 4:
59
+ page = _a.sent();
60
+ return [3, 6];
61
+ case 5: throw new Error("Invalid client, expected Braket | BraketClient");
62
+ case 6: return [4, __await(page)];
63
+ case 7: return [4, _a.sent()];
64
+ case 8:
65
+ _a.sent();
66
+ token = page.nextToken;
67
+ hasNext = !!token;
68
+ return [3, 1];
69
+ case 9: return [4, __await(undefined)];
70
+ case 10: return [2, _a.sent()];
71
+ }
72
+ });
73
+ });
74
+ }
@@ -1,3 +1,4 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./SearchDevicesPaginator";
3
+ export * from "./SearchJobsPaginator";
3
4
  export * from "./SearchQuantumTasksPaginator";