@aws-sdk/client-braket 3.315.0 → 3.319.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Braket = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const BraketClient_1 = require("./BraketClient");
5
6
  const CancelJobCommand_1 = require("./commands/CancelJobCommand");
6
7
  const CancelQuantumTaskCommand_1 = require("./commands/CancelQuantumTaskCommand");
@@ -15,188 +16,22 @@ const SearchJobsCommand_1 = require("./commands/SearchJobsCommand");
15
16
  const SearchQuantumTasksCommand_1 = require("./commands/SearchQuantumTasksCommand");
16
17
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
17
18
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
19
+ const commands = {
20
+ CancelJobCommand: CancelJobCommand_1.CancelJobCommand,
21
+ CancelQuantumTaskCommand: CancelQuantumTaskCommand_1.CancelQuantumTaskCommand,
22
+ CreateJobCommand: CreateJobCommand_1.CreateJobCommand,
23
+ CreateQuantumTaskCommand: CreateQuantumTaskCommand_1.CreateQuantumTaskCommand,
24
+ GetDeviceCommand: GetDeviceCommand_1.GetDeviceCommand,
25
+ GetJobCommand: GetJobCommand_1.GetJobCommand,
26
+ GetQuantumTaskCommand: GetQuantumTaskCommand_1.GetQuantumTaskCommand,
27
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
28
+ SearchDevicesCommand: SearchDevicesCommand_1.SearchDevicesCommand,
29
+ SearchJobsCommand: SearchJobsCommand_1.SearchJobsCommand,
30
+ SearchQuantumTasksCommand: SearchQuantumTasksCommand_1.SearchQuantumTasksCommand,
31
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
32
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
33
+ };
18
34
  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
- }
33
- cancelQuantumTask(args, optionsOrCb, cb) {
34
- const command = new CancelQuantumTaskCommand_1.CancelQuantumTaskCommand(args);
35
- if (typeof optionsOrCb === "function") {
36
- this.send(command, optionsOrCb);
37
- }
38
- else if (typeof cb === "function") {
39
- if (typeof optionsOrCb !== "object")
40
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
41
- this.send(command, optionsOrCb || {}, cb);
42
- }
43
- else {
44
- return this.send(command, optionsOrCb);
45
- }
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
- }
61
- createQuantumTask(args, optionsOrCb, cb) {
62
- const command = new CreateQuantumTaskCommand_1.CreateQuantumTaskCommand(args);
63
- if (typeof optionsOrCb === "function") {
64
- this.send(command, optionsOrCb);
65
- }
66
- else if (typeof cb === "function") {
67
- if (typeof optionsOrCb !== "object")
68
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
69
- this.send(command, optionsOrCb || {}, cb);
70
- }
71
- else {
72
- return this.send(command, optionsOrCb);
73
- }
74
- }
75
- getDevice(args, optionsOrCb, cb) {
76
- const command = new GetDeviceCommand_1.GetDeviceCommand(args);
77
- if (typeof optionsOrCb === "function") {
78
- this.send(command, optionsOrCb);
79
- }
80
- else if (typeof cb === "function") {
81
- if (typeof optionsOrCb !== "object")
82
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
- this.send(command, optionsOrCb || {}, cb);
84
- }
85
- else {
86
- return this.send(command, optionsOrCb);
87
- }
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
- }
103
- getQuantumTask(args, optionsOrCb, cb) {
104
- const command = new GetQuantumTaskCommand_1.GetQuantumTaskCommand(args);
105
- if (typeof optionsOrCb === "function") {
106
- this.send(command, optionsOrCb);
107
- }
108
- else if (typeof cb === "function") {
109
- if (typeof optionsOrCb !== "object")
110
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
- this.send(command, optionsOrCb || {}, cb);
112
- }
113
- else {
114
- return this.send(command, optionsOrCb);
115
- }
116
- }
117
- listTagsForResource(args, optionsOrCb, cb) {
118
- const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
119
- if (typeof optionsOrCb === "function") {
120
- this.send(command, optionsOrCb);
121
- }
122
- else if (typeof cb === "function") {
123
- if (typeof optionsOrCb !== "object")
124
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
- this.send(command, optionsOrCb || {}, cb);
126
- }
127
- else {
128
- return this.send(command, optionsOrCb);
129
- }
130
- }
131
- searchDevices(args, optionsOrCb, cb) {
132
- const command = new SearchDevicesCommand_1.SearchDevicesCommand(args);
133
- if (typeof optionsOrCb === "function") {
134
- this.send(command, optionsOrCb);
135
- }
136
- else if (typeof cb === "function") {
137
- if (typeof optionsOrCb !== "object")
138
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
- this.send(command, optionsOrCb || {}, cb);
140
- }
141
- else {
142
- return this.send(command, optionsOrCb);
143
- }
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
- }
159
- searchQuantumTasks(args, optionsOrCb, cb) {
160
- const command = new SearchQuantumTasksCommand_1.SearchQuantumTasksCommand(args);
161
- if (typeof optionsOrCb === "function") {
162
- this.send(command, optionsOrCb);
163
- }
164
- else if (typeof cb === "function") {
165
- if (typeof optionsOrCb !== "object")
166
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
- this.send(command, optionsOrCb || {}, cb);
168
- }
169
- else {
170
- return this.send(command, optionsOrCb);
171
- }
172
- }
173
- tagResource(args, optionsOrCb, cb) {
174
- const command = new TagResourceCommand_1.TagResourceCommand(args);
175
- if (typeof optionsOrCb === "function") {
176
- this.send(command, optionsOrCb);
177
- }
178
- else if (typeof cb === "function") {
179
- if (typeof optionsOrCb !== "object")
180
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
- this.send(command, optionsOrCb || {}, cb);
182
- }
183
- else {
184
- return this.send(command, optionsOrCb);
185
- }
186
- }
187
- untagResource(args, optionsOrCb, cb) {
188
- const command = new UntagResourceCommand_1.UntagResourceCommand(args);
189
- if (typeof optionsOrCb === "function") {
190
- this.send(command, optionsOrCb);
191
- }
192
- else if (typeof cb === "function") {
193
- if (typeof optionsOrCb !== "object")
194
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
- this.send(command, optionsOrCb || {}, cb);
196
- }
197
- else {
198
- return this.send(command, optionsOrCb);
199
- }
200
- }
201
35
  }
202
36
  exports.Braket = Braket;
37
+ (0, smithy_client_1.createAggregatedClient)(commands, Braket);
@@ -32,7 +32,7 @@ const se_CancelQuantumTaskCommand = async (input, context) => {
32
32
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
33
33
  let body;
34
34
  body = JSON.stringify((0, smithy_client_1.take)(input, {
35
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
35
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
36
36
  }));
37
37
  return new protocol_http_1.HttpRequest({
38
38
  protocol,
@@ -55,7 +55,7 @@ const se_CreateJobCommand = async (input, context) => {
55
55
  body = JSON.stringify((0, smithy_client_1.take)(input, {
56
56
  algorithmSpecification: (_) => (0, smithy_client_1._json)(_),
57
57
  checkpointConfig: (_) => (0, smithy_client_1._json)(_),
58
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
58
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
59
59
  deviceConfig: (_) => (0, smithy_client_1._json)(_),
60
60
  hyperParameters: (_) => (0, smithy_client_1._json)(_),
61
61
  inputDataConfig: (_) => (0, smithy_client_1._json)(_),
@@ -86,7 +86,7 @@ const se_CreateQuantumTaskCommand = async (input, context) => {
86
86
  let body;
87
87
  body = JSON.stringify((0, smithy_client_1.take)(input, {
88
88
  action: (_) => smithy_client_1.LazyJsonString.fromObject(_),
89
- clientToken: (_) => _ ?? (0, uuid_1.v4)(),
89
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
90
90
  deviceArn: [],
91
91
  deviceParameters: (_) => smithy_client_1.LazyJsonString.fromObject(_),
92
92
  jobToken: [],
package/dist-es/Braket.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { createAggregatedClient } from "@aws-sdk/smithy-client";
1
2
  import { BraketClient } from "./BraketClient";
2
3
  import { CancelJobCommand } from "./commands/CancelJobCommand";
3
4
  import { CancelQuantumTaskCommand, } from "./commands/CancelQuantumTaskCommand";
@@ -12,187 +13,21 @@ import { SearchJobsCommand } from "./commands/SearchJobsCommand";
12
13
  import { SearchQuantumTasksCommand, } from "./commands/SearchQuantumTasksCommand";
13
14
  import { TagResourceCommand } from "./commands/TagResourceCommand";
14
15
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
16
+ const commands = {
17
+ CancelJobCommand,
18
+ CancelQuantumTaskCommand,
19
+ CreateJobCommand,
20
+ CreateQuantumTaskCommand,
21
+ GetDeviceCommand,
22
+ GetJobCommand,
23
+ GetQuantumTaskCommand,
24
+ ListTagsForResourceCommand,
25
+ SearchDevicesCommand,
26
+ SearchJobsCommand,
27
+ SearchQuantumTasksCommand,
28
+ TagResourceCommand,
29
+ UntagResourceCommand,
30
+ };
15
31
  export class Braket extends BraketClient {
16
- cancelJob(args, optionsOrCb, cb) {
17
- const command = new CancelJobCommand(args);
18
- if (typeof optionsOrCb === "function") {
19
- this.send(command, optionsOrCb);
20
- }
21
- else if (typeof cb === "function") {
22
- if (typeof optionsOrCb !== "object")
23
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
24
- this.send(command, optionsOrCb || {}, cb);
25
- }
26
- else {
27
- return this.send(command, optionsOrCb);
28
- }
29
- }
30
- cancelQuantumTask(args, optionsOrCb, cb) {
31
- const command = new CancelQuantumTaskCommand(args);
32
- if (typeof optionsOrCb === "function") {
33
- this.send(command, optionsOrCb);
34
- }
35
- else if (typeof cb === "function") {
36
- if (typeof optionsOrCb !== "object")
37
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
- this.send(command, optionsOrCb || {}, cb);
39
- }
40
- else {
41
- return this.send(command, optionsOrCb);
42
- }
43
- }
44
- createJob(args, optionsOrCb, cb) {
45
- const command = new CreateJobCommand(args);
46
- if (typeof optionsOrCb === "function") {
47
- this.send(command, optionsOrCb);
48
- }
49
- else if (typeof cb === "function") {
50
- if (typeof optionsOrCb !== "object")
51
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
- this.send(command, optionsOrCb || {}, cb);
53
- }
54
- else {
55
- return this.send(command, optionsOrCb);
56
- }
57
- }
58
- createQuantumTask(args, optionsOrCb, cb) {
59
- const command = new CreateQuantumTaskCommand(args);
60
- if (typeof optionsOrCb === "function") {
61
- this.send(command, optionsOrCb);
62
- }
63
- else if (typeof cb === "function") {
64
- if (typeof optionsOrCb !== "object")
65
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
- this.send(command, optionsOrCb || {}, cb);
67
- }
68
- else {
69
- return this.send(command, optionsOrCb);
70
- }
71
- }
72
- getDevice(args, optionsOrCb, cb) {
73
- const command = new GetDeviceCommand(args);
74
- if (typeof optionsOrCb === "function") {
75
- this.send(command, optionsOrCb);
76
- }
77
- else if (typeof cb === "function") {
78
- if (typeof optionsOrCb !== "object")
79
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
- this.send(command, optionsOrCb || {}, cb);
81
- }
82
- else {
83
- return this.send(command, optionsOrCb);
84
- }
85
- }
86
- getJob(args, optionsOrCb, cb) {
87
- const command = new GetJobCommand(args);
88
- if (typeof optionsOrCb === "function") {
89
- this.send(command, optionsOrCb);
90
- }
91
- else if (typeof cb === "function") {
92
- if (typeof optionsOrCb !== "object")
93
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
- this.send(command, optionsOrCb || {}, cb);
95
- }
96
- else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
- getQuantumTask(args, optionsOrCb, cb) {
101
- const command = new GetQuantumTaskCommand(args);
102
- if (typeof optionsOrCb === "function") {
103
- this.send(command, optionsOrCb);
104
- }
105
- else if (typeof cb === "function") {
106
- if (typeof optionsOrCb !== "object")
107
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
- this.send(command, optionsOrCb || {}, cb);
109
- }
110
- else {
111
- return this.send(command, optionsOrCb);
112
- }
113
- }
114
- listTagsForResource(args, optionsOrCb, cb) {
115
- const command = new ListTagsForResourceCommand(args);
116
- if (typeof optionsOrCb === "function") {
117
- this.send(command, optionsOrCb);
118
- }
119
- else if (typeof cb === "function") {
120
- if (typeof optionsOrCb !== "object")
121
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
- this.send(command, optionsOrCb || {}, cb);
123
- }
124
- else {
125
- return this.send(command, optionsOrCb);
126
- }
127
- }
128
- searchDevices(args, optionsOrCb, cb) {
129
- const command = new SearchDevicesCommand(args);
130
- if (typeof optionsOrCb === "function") {
131
- this.send(command, optionsOrCb);
132
- }
133
- else if (typeof cb === "function") {
134
- if (typeof optionsOrCb !== "object")
135
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
- this.send(command, optionsOrCb || {}, cb);
137
- }
138
- else {
139
- return this.send(command, optionsOrCb);
140
- }
141
- }
142
- searchJobs(args, optionsOrCb, cb) {
143
- const command = new SearchJobsCommand(args);
144
- if (typeof optionsOrCb === "function") {
145
- this.send(command, optionsOrCb);
146
- }
147
- else if (typeof cb === "function") {
148
- if (typeof optionsOrCb !== "object")
149
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
- this.send(command, optionsOrCb || {}, cb);
151
- }
152
- else {
153
- return this.send(command, optionsOrCb);
154
- }
155
- }
156
- searchQuantumTasks(args, optionsOrCb, cb) {
157
- const command = new SearchQuantumTasksCommand(args);
158
- if (typeof optionsOrCb === "function") {
159
- this.send(command, optionsOrCb);
160
- }
161
- else if (typeof cb === "function") {
162
- if (typeof optionsOrCb !== "object")
163
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
- this.send(command, optionsOrCb || {}, cb);
165
- }
166
- else {
167
- return this.send(command, optionsOrCb);
168
- }
169
- }
170
- tagResource(args, optionsOrCb, cb) {
171
- const command = new TagResourceCommand(args);
172
- if (typeof optionsOrCb === "function") {
173
- this.send(command, optionsOrCb);
174
- }
175
- else if (typeof cb === "function") {
176
- if (typeof optionsOrCb !== "object")
177
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
- this.send(command, optionsOrCb || {}, cb);
179
- }
180
- else {
181
- return this.send(command, optionsOrCb);
182
- }
183
- }
184
- untagResource(args, optionsOrCb, cb) {
185
- const command = new UntagResourceCommand(args);
186
- if (typeof optionsOrCb === "function") {
187
- this.send(command, optionsOrCb);
188
- }
189
- else if (typeof cb === "function") {
190
- if (typeof optionsOrCb !== "object")
191
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
- this.send(command, optionsOrCb || {}, cb);
193
- }
194
- else {
195
- return this.send(command, optionsOrCb);
196
- }
197
- }
198
32
  }
33
+ createAggregatedClient(commands, Braket);
@@ -28,7 +28,7 @@ export const se_CancelQuantumTaskCommand = async (input, context) => {
28
28
  resolvedPath = __resolvedPath(resolvedPath, input, "quantumTaskArn", () => input.quantumTaskArn, "{quantumTaskArn}", false);
29
29
  let body;
30
30
  body = JSON.stringify(take(input, {
31
- clientToken: (_) => _ ?? generateIdempotencyToken(),
31
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
32
32
  }));
33
33
  return new __HttpRequest({
34
34
  protocol,
@@ -50,7 +50,7 @@ export const se_CreateJobCommand = async (input, context) => {
50
50
  body = JSON.stringify(take(input, {
51
51
  algorithmSpecification: (_) => _json(_),
52
52
  checkpointConfig: (_) => _json(_),
53
- clientToken: (_) => _ ?? generateIdempotencyToken(),
53
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
54
54
  deviceConfig: (_) => _json(_),
55
55
  hyperParameters: (_) => _json(_),
56
56
  inputDataConfig: (_) => _json(_),
@@ -80,7 +80,7 @@ export const se_CreateQuantumTaskCommand = async (input, context) => {
80
80
  let body;
81
81
  body = JSON.stringify(take(input, {
82
82
  action: (_) => __LazyJsonString.fromObject(_),
83
- clientToken: (_) => _ ?? generateIdempotencyToken(),
83
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
84
84
  deviceArn: [],
85
85
  deviceParameters: (_) => __LazyJsonString.fromObject(_),
86
86
  jobToken: [],
@@ -13,118 +13,98 @@ import { SearchJobsCommandInput, SearchJobsCommandOutput } from "./commands/Sear
13
13
  import { SearchQuantumTasksCommandInput, SearchQuantumTasksCommandOutput } from "./commands/SearchQuantumTasksCommand";
14
14
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
15
15
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
16
- /**
17
- * @public
18
- * <p>The Amazon Braket API Reference provides information about the operations and structures
19
- * supported in Amazon Braket.</p>
20
- * <p>Additional Resources:</p>
21
- * <ul>
22
- * <li>
23
- * <p>
24
- * <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon Braket Developer Guide</a>
25
- * </p>
26
- * </li>
27
- * </ul>
28
- */
29
- export declare class Braket extends BraketClient {
16
+ export interface Braket {
30
17
  /**
31
- * @public
32
- * <p>Cancels an Amazon Braket job.</p>
18
+ * @see {@link CancelJobCommand}
33
19
  */
34
20
  cancelJob(args: CancelJobCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobCommandOutput>;
35
21
  cancelJob(args: CancelJobCommandInput, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
36
22
  cancelJob(args: CancelJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
37
23
  /**
38
- * @public
39
- * <p>Cancels the specified task.</p>
24
+ * @see {@link CancelQuantumTaskCommand}
40
25
  */
41
26
  cancelQuantumTask(args: CancelQuantumTaskCommandInput, options?: __HttpHandlerOptions): Promise<CancelQuantumTaskCommandOutput>;
42
27
  cancelQuantumTask(args: CancelQuantumTaskCommandInput, cb: (err: any, data?: CancelQuantumTaskCommandOutput) => void): void;
43
28
  cancelQuantumTask(args: CancelQuantumTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelQuantumTaskCommandOutput) => void): void;
44
29
  /**
45
- * @public
46
- * <p>Creates an Amazon Braket job.</p>
30
+ * @see {@link CreateJobCommand}
47
31
  */
48
32
  createJob(args: CreateJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateJobCommandOutput>;
49
33
  createJob(args: CreateJobCommandInput, cb: (err: any, data?: CreateJobCommandOutput) => void): void;
50
34
  createJob(args: CreateJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateJobCommandOutput) => void): void;
51
35
  /**
52
- * @public
53
- * <p>Creates a quantum task.</p>
36
+ * @see {@link CreateQuantumTaskCommand}
54
37
  */
55
38
  createQuantumTask(args: CreateQuantumTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateQuantumTaskCommandOutput>;
56
39
  createQuantumTask(args: CreateQuantumTaskCommandInput, cb: (err: any, data?: CreateQuantumTaskCommandOutput) => void): void;
57
40
  createQuantumTask(args: CreateQuantumTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateQuantumTaskCommandOutput) => void): void;
58
41
  /**
59
- * @public
60
- * <p>Retrieves the devices available in Amazon Braket.</p>
61
- * <note>
62
- * <p>For backwards compatibility with older versions of BraketSchemas, OpenQASM
63
- * information is omitted from GetDevice API calls. To get this information the user-agent
64
- * needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK
65
- * automatically reports this for you. If you do not see OpenQASM results in the GetDevice
66
- * response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment
67
- * variable to configure user-agent. See the code examples provided below for how to do
68
- * this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.</p>
69
- * </note>
42
+ * @see {@link GetDeviceCommand}
70
43
  */
71
44
  getDevice(args: GetDeviceCommandInput, options?: __HttpHandlerOptions): Promise<GetDeviceCommandOutput>;
72
45
  getDevice(args: GetDeviceCommandInput, cb: (err: any, data?: GetDeviceCommandOutput) => void): void;
73
46
  getDevice(args: GetDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeviceCommandOutput) => void): void;
74
47
  /**
75
- * @public
76
- * <p>Retrieves the specified Amazon Braket job.</p>
48
+ * @see {@link GetJobCommand}
77
49
  */
78
50
  getJob(args: GetJobCommandInput, options?: __HttpHandlerOptions): Promise<GetJobCommandOutput>;
79
51
  getJob(args: GetJobCommandInput, cb: (err: any, data?: GetJobCommandOutput) => void): void;
80
52
  getJob(args: GetJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetJobCommandOutput) => void): void;
81
53
  /**
82
- * @public
83
- * <p>Retrieves the specified quantum task.</p>
54
+ * @see {@link GetQuantumTaskCommand}
84
55
  */
85
56
  getQuantumTask(args: GetQuantumTaskCommandInput, options?: __HttpHandlerOptions): Promise<GetQuantumTaskCommandOutput>;
86
57
  getQuantumTask(args: GetQuantumTaskCommandInput, cb: (err: any, data?: GetQuantumTaskCommandOutput) => void): void;
87
58
  getQuantumTask(args: GetQuantumTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetQuantumTaskCommandOutput) => void): void;
88
59
  /**
89
- * @public
90
- * <p>Shows the tags associated with this resource.</p>
60
+ * @see {@link ListTagsForResourceCommand}
91
61
  */
92
62
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
93
63
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
94
64
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
95
65
  /**
96
- * @public
97
- * <p>Searches for devices using the specified filters.</p>
66
+ * @see {@link SearchDevicesCommand}
98
67
  */
99
68
  searchDevices(args: SearchDevicesCommandInput, options?: __HttpHandlerOptions): Promise<SearchDevicesCommandOutput>;
100
69
  searchDevices(args: SearchDevicesCommandInput, cb: (err: any, data?: SearchDevicesCommandOutput) => void): void;
101
70
  searchDevices(args: SearchDevicesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchDevicesCommandOutput) => void): void;
102
71
  /**
103
- * @public
104
- * <p>Searches for Amazon Braket jobs that match the specified filter values.</p>
72
+ * @see {@link SearchJobsCommand}
105
73
  */
106
74
  searchJobs(args: SearchJobsCommandInput, options?: __HttpHandlerOptions): Promise<SearchJobsCommandOutput>;
107
75
  searchJobs(args: SearchJobsCommandInput, cb: (err: any, data?: SearchJobsCommandOutput) => void): void;
108
76
  searchJobs(args: SearchJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchJobsCommandOutput) => void): void;
109
77
  /**
110
- * @public
111
- * <p>Searches for tasks that match the specified filter values.</p>
78
+ * @see {@link SearchQuantumTasksCommand}
112
79
  */
113
80
  searchQuantumTasks(args: SearchQuantumTasksCommandInput, options?: __HttpHandlerOptions): Promise<SearchQuantumTasksCommandOutput>;
114
81
  searchQuantumTasks(args: SearchQuantumTasksCommandInput, cb: (err: any, data?: SearchQuantumTasksCommandOutput) => void): void;
115
82
  searchQuantumTasks(args: SearchQuantumTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchQuantumTasksCommandOutput) => void): void;
116
83
  /**
117
- * @public
118
- * <p>Add a tag to the specified resource.</p>
84
+ * @see {@link TagResourceCommand}
119
85
  */
120
86
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
121
87
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
122
88
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
123
89
  /**
124
- * @public
125
- * <p>Remove tags from a resource.</p>
90
+ * @see {@link UntagResourceCommand}
126
91
  */
127
92
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
128
93
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
129
94
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
130
95
  }
96
+ /**
97
+ * @public
98
+ * <p>The Amazon Braket API Reference provides information about the operations and structures
99
+ * supported in Amazon Braket.</p>
100
+ * <p>Additional Resources:</p>
101
+ * <ul>
102
+ * <li>
103
+ * <p>
104
+ * <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon Braket Developer Guide</a>
105
+ * </p>
106
+ * </li>
107
+ * </ul>
108
+ */
109
+ export declare class Braket extends BraketClient implements Braket {
110
+ }
@@ -52,7 +52,7 @@ import {
52
52
  UntagResourceCommandInput,
53
53
  UntagResourceCommandOutput,
54
54
  } from "./commands/UntagResourceCommand";
55
- export declare class Braket extends BraketClient {
55
+ export interface Braket {
56
56
  cancelJob(
57
57
  args: CancelJobCommandInput,
58
58
  options?: __HttpHandlerOptions
@@ -223,3 +223,4 @@ export declare class Braket extends BraketClient {
223
223
  cb: (err: any, data?: UntagResourceCommandOutput) => void
224
224
  ): void;
225
225
  }
226
+ export declare class Braket extends BraketClient implements Braket {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-braket",
3
3
  "description": "AWS SDK for JavaScript Braket Client for Node.js, Browser and React Native",
4
- "version": "3.315.0",
4
+ "version": "3.319.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.315.0",
24
+ "@aws-sdk/client-sts": "3.319.0",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.315.0",
26
+ "@aws-sdk/credential-provider-node": "3.319.0",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -36,19 +36,19 @@
36
36
  "@aws-sdk/middleware-serde": "3.310.0",
37
37
  "@aws-sdk/middleware-signing": "3.310.0",
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
- "@aws-sdk/middleware-user-agent": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
41
  "@aws-sdk/node-http-handler": "3.310.0",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
- "@aws-sdk/smithy-client": "3.315.0",
43
+ "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",
45
45
  "@aws-sdk/url-parser": "3.310.0",
46
46
  "@aws-sdk/util-base64": "3.310.0",
47
47
  "@aws-sdk/util-body-length-browser": "3.310.0",
48
48
  "@aws-sdk/util-body-length-node": "3.310.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.315.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.315.0",
51
- "@aws-sdk/util-endpoints": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.316.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.316.0",
51
+ "@aws-sdk/util-endpoints": "3.319.0",
52
52
  "@aws-sdk/util-retry": "3.310.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.310.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.310.0",