@aws-sdk/client-braket 3.76.0 → 3.80.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.
- package/CHANGELOG.md +30 -0
- package/README.md +10 -1
- package/dist-cjs/pagination/SearchDevicesPaginator.js +2 -1
- package/dist-cjs/pagination/SearchJobsPaginator.js +2 -1
- package/dist-cjs/pagination/SearchQuantumTasksPaginator.js +2 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/pagination/SearchDevicesPaginator.js +3 -2
- package/dist-es/pagination/SearchJobsPaginator.js +3 -2
- package/dist-es/pagination/SearchQuantumTasksPaginator.js +3 -2
- package/dist-es/protocols/Aws_restJson1.js +2 -1
- package/dist-types/Braket.d.ts +19 -1
- package/dist-types/BraketClient.d.ts +10 -1
- package/dist-types/commands/GetDeviceCommand.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +72 -46
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-braket:** This release enables Braket Hybrid Jobs with Embedded Simulators to have multiple instances. ([2de9086](https://github.com/aws/aws-sdk-js-v3/commit/2de908637ea560d2abb9b99c0ca5f4cd19dabc12))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.79.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.78.0...v3.79.0) (2022-04-27)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-braket
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.78.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.77.0...v3.78.0) (2022-04-26)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **types:** add pagination stopOnSameToken option ([#3524](https://github.com/aws/aws-sdk-js-v3/issues/3524)) ([9bf73e8](https://github.com/aws/aws-sdk-js-v3/commit/9bf73e81b8d9be9f12c72cbefbe26c502d1873c6))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.76.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.75.0...v3.76.0) (2022-04-22)
|
|
7
37
|
|
|
8
38
|
**Note:** Version bump only for package @aws-sdk/client-braket
|
package/README.md
CHANGED
|
@@ -7,7 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript Braket Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<p>The Amazon Braket API Reference provides information about the operations and structures
|
|
10
|
+
<p>The Amazon Braket API Reference provides information about the operations and structures
|
|
11
|
+
supported in Amazon Braket.</p>
|
|
12
|
+
<p>Additional Resources:</p>
|
|
13
|
+
<ul>
|
|
14
|
+
<li>
|
|
15
|
+
<p>
|
|
16
|
+
<a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon Braket Developer Guide</a>
|
|
17
|
+
</p>
|
|
18
|
+
</li>
|
|
19
|
+
</ul>
|
|
11
20
|
|
|
12
21
|
## Installing
|
|
13
22
|
|
|
@@ -27,8 +27,9 @@ async function* paginateSearchDevices(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Braket | BraketClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.nextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateSearchJobs(config, input, ...additionalArguments) {
|
|
|
27
27
|
throw new Error("Invalid client, expected Braket | BraketClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.nextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -27,8 +27,9 @@ async function* paginateSearchQuantumTasks(config, input, ...additionalArguments
|
|
|
27
27
|
throw new Error("Invalid client, expected Braket | BraketClient");
|
|
28
28
|
}
|
|
29
29
|
yield page;
|
|
30
|
+
const prevToken = token;
|
|
30
31
|
token = page.nextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
32
33
|
}
|
|
33
34
|
return undefined;
|
|
34
35
|
}
|
|
@@ -1337,6 +1337,7 @@ const serializeAws_restJson1InputFileConfig = (input, context) => {
|
|
|
1337
1337
|
};
|
|
1338
1338
|
const serializeAws_restJson1InstanceConfig = (input, context) => {
|
|
1339
1339
|
return {
|
|
1340
|
+
...(input.instanceCount !== undefined && input.instanceCount !== null && { instanceCount: input.instanceCount }),
|
|
1340
1341
|
...(input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType }),
|
|
1341
1342
|
...(input.volumeSizeInGb !== undefined &&
|
|
1342
1343
|
input.volumeSizeInGb !== null && { volumeSizeInGb: input.volumeSizeInGb }),
|
|
@@ -1527,6 +1528,7 @@ const deserializeAws_restJson1InputFileConfig = (output, context) => {
|
|
|
1527
1528
|
};
|
|
1528
1529
|
const deserializeAws_restJson1InstanceConfig = (output, context) => {
|
|
1529
1530
|
return {
|
|
1531
|
+
instanceCount: (0, smithy_client_1.expectInt32)(output.instanceCount),
|
|
1530
1532
|
instanceType: (0, smithy_client_1.expectString)(output.instanceType),
|
|
1531
1533
|
volumeSizeInGb: (0, smithy_client_1.expectInt32)(output.volumeSizeInGb),
|
|
1532
1534
|
};
|
|
@@ -36,7 +36,7 @@ export function paginateSearchDevices(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateSearchDevices_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateSearchDevices(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.nextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|
|
@@ -36,7 +36,7 @@ export function paginateSearchJobs(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateSearchJobs_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateSearchJobs(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.nextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|
|
@@ -36,7 +36,7 @@ export function paginateSearchQuantumTasks(config, input) {
|
|
|
36
36
|
additionalArguments[_i - 2] = arguments[_i];
|
|
37
37
|
}
|
|
38
38
|
return __asyncGenerator(this, arguments, function paginateSearchQuantumTasks_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
40
|
return __generator(this, function (_a) {
|
|
41
41
|
switch (_a.label) {
|
|
42
42
|
case 0:
|
|
@@ -63,8 +63,9 @@ export function paginateSearchQuantumTasks(config, input) {
|
|
|
63
63
|
case 7: return [4, _a.sent()];
|
|
64
64
|
case 8:
|
|
65
65
|
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
66
67
|
token = page.nextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
68
69
|
return [3, 1];
|
|
69
70
|
case 9: return [4, __await(undefined)];
|
|
70
71
|
case 10: return [2, _a.sent()];
|
|
@@ -1638,7 +1638,7 @@ var serializeAws_restJson1InputFileConfig = function (input, context) {
|
|
|
1638
1638
|
input.dataSource !== null && { dataSource: serializeAws_restJson1DataSource(input.dataSource, context) }));
|
|
1639
1639
|
};
|
|
1640
1640
|
var serializeAws_restJson1InstanceConfig = function (input, context) {
|
|
1641
|
-
return __assign(__assign({}, (input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType })), (input.volumeSizeInGb !== undefined &&
|
|
1641
|
+
return __assign(__assign(__assign({}, (input.instanceCount !== undefined && input.instanceCount !== null && { instanceCount: input.instanceCount })), (input.instanceType !== undefined && input.instanceType !== null && { instanceType: input.instanceType })), (input.volumeSizeInGb !== undefined &&
|
|
1642
1642
|
input.volumeSizeInGb !== null && { volumeSizeInGb: input.volumeSizeInGb }));
|
|
1643
1643
|
};
|
|
1644
1644
|
var serializeAws_restJson1JobCheckpointConfig = function (input, context) {
|
|
@@ -1799,6 +1799,7 @@ var deserializeAws_restJson1InputFileConfig = function (output, context) {
|
|
|
1799
1799
|
};
|
|
1800
1800
|
var deserializeAws_restJson1InstanceConfig = function (output, context) {
|
|
1801
1801
|
return {
|
|
1802
|
+
instanceCount: __expectInt32(output.instanceCount),
|
|
1802
1803
|
instanceType: __expectString(output.instanceType),
|
|
1803
1804
|
volumeSizeInGb: __expectInt32(output.volumeSizeInGb),
|
|
1804
1805
|
};
|
package/dist-types/Braket.d.ts
CHANGED
|
@@ -14,7 +14,16 @@ import { SearchQuantumTasksCommandInput, SearchQuantumTasksCommandOutput } from
|
|
|
14
14
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
15
15
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
16
16
|
/**
|
|
17
|
-
* <p>The Amazon Braket API Reference provides information about the operations and structures
|
|
17
|
+
* <p>The Amazon Braket API Reference provides information about the operations and structures
|
|
18
|
+
* supported in Amazon Braket.</p>
|
|
19
|
+
* <p>Additional Resources:</p>
|
|
20
|
+
* <ul>
|
|
21
|
+
* <li>
|
|
22
|
+
* <p>
|
|
23
|
+
* <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon Braket Developer Guide</a>
|
|
24
|
+
* </p>
|
|
25
|
+
* </li>
|
|
26
|
+
* </ul>
|
|
18
27
|
*/
|
|
19
28
|
export declare class Braket extends BraketClient {
|
|
20
29
|
/**
|
|
@@ -43,6 +52,15 @@ export declare class Braket extends BraketClient {
|
|
|
43
52
|
createQuantumTask(args: CreateQuantumTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateQuantumTaskCommandOutput) => void): void;
|
|
44
53
|
/**
|
|
45
54
|
* <p>Retrieves the devices available in Amazon Braket.</p>
|
|
55
|
+
* <note>
|
|
56
|
+
* <p>For backwards compatibility with older versions of BraketSchemas, OpenQASM
|
|
57
|
+
* information is omitted from GetDevice API calls. To get this information the user-agent
|
|
58
|
+
* needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK
|
|
59
|
+
* automatically reports this for you. If you do not see OpenQASM results in the GetDevice
|
|
60
|
+
* response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment
|
|
61
|
+
* variable to configure user-agent. See the code examples provided below for how to do
|
|
62
|
+
* this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.</p>
|
|
63
|
+
* </note>
|
|
46
64
|
*/
|
|
47
65
|
getDevice(args: GetDeviceCommandInput, options?: __HttpHandlerOptions): Promise<GetDeviceCommandOutput>;
|
|
48
66
|
getDevice(args: GetDeviceCommandInput, cb: (err: any, data?: GetDeviceCommandOutput) => void): void;
|
|
@@ -139,7 +139,16 @@ declare type BraketClientResolvedConfigType = __SmithyResolvedConfiguration<__Ht
|
|
|
139
139
|
export interface BraketClientResolvedConfig extends BraketClientResolvedConfigType {
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
|
-
* <p>The Amazon Braket API Reference provides information about the operations and structures
|
|
142
|
+
* <p>The Amazon Braket API Reference provides information about the operations and structures
|
|
143
|
+
* supported in Amazon Braket.</p>
|
|
144
|
+
* <p>Additional Resources:</p>
|
|
145
|
+
* <ul>
|
|
146
|
+
* <li>
|
|
147
|
+
* <p>
|
|
148
|
+
* <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon Braket Developer Guide</a>
|
|
149
|
+
* </p>
|
|
150
|
+
* </li>
|
|
151
|
+
* </ul>
|
|
143
152
|
*/
|
|
144
153
|
export declare class BraketClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, BraketClientResolvedConfig> {
|
|
145
154
|
/**
|
|
@@ -8,6 +8,15 @@ export interface GetDeviceCommandOutput extends GetDeviceResponse, __MetadataBea
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Retrieves the devices available in Amazon Braket.</p>
|
|
11
|
+
* <note>
|
|
12
|
+
* <p>For backwards compatibility with older versions of BraketSchemas, OpenQASM
|
|
13
|
+
* information is omitted from GetDevice API calls. To get this information the user-agent
|
|
14
|
+
* needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK
|
|
15
|
+
* automatically reports this for you. If you do not see OpenQASM results in the GetDevice
|
|
16
|
+
* response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment
|
|
17
|
+
* variable to configure user-agent. See the code examples provided below for how to do
|
|
18
|
+
* this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.</p>
|
|
19
|
+
* </note>
|
|
11
20
|
* @example
|
|
12
21
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
22
|
* ```javascript
|
|
@@ -31,7 +31,8 @@ export declare enum CompressionType {
|
|
|
31
31
|
NONE = "NONE"
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* <p>Contains information about the Python scripts used for entry and by an Amazon Braket
|
|
34
|
+
* <p>Contains information about the Python scripts used for entry and by an Amazon Braket
|
|
35
|
+
* job.</p>
|
|
35
36
|
*/
|
|
36
37
|
export interface ScriptModeConfig {
|
|
37
38
|
/**
|
|
@@ -56,8 +57,8 @@ export declare namespace ScriptModeConfig {
|
|
|
56
57
|
const filterSensitiveLog: (obj: ScriptModeConfig) => any;
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
* <p>Defines the Amazon Braket job to be created. Specifies the container image the job uses
|
|
60
|
-
* the Python scripts used for entry and training.</p>
|
|
60
|
+
* <p>Defines the Amazon Braket job to be created. Specifies the container image the job uses
|
|
61
|
+
* and the paths to the Python scripts used for entry and training.</p>
|
|
61
62
|
*/
|
|
62
63
|
export interface AlgorithmSpecification {
|
|
63
64
|
/**
|
|
@@ -129,7 +130,8 @@ export declare namespace GetDeviceResponse {
|
|
|
129
130
|
const filterSensitiveLog: (obj: GetDeviceResponse) => any;
|
|
130
131
|
}
|
|
131
132
|
/**
|
|
132
|
-
* <p>The request processing has failed because of an unknown error, exception, or
|
|
133
|
+
* <p>The request processing has failed because of an unknown error, exception, or
|
|
134
|
+
* failure.</p>
|
|
133
135
|
*/
|
|
134
136
|
export declare class InternalServiceException extends __BaseException {
|
|
135
137
|
readonly name: "InternalServiceException";
|
|
@@ -193,7 +195,8 @@ export declare namespace SearchDevicesFilter {
|
|
|
193
195
|
}
|
|
194
196
|
export interface SearchDevicesRequest {
|
|
195
197
|
/**
|
|
196
|
-
* <p>A token used for pagination of results returned in the response. Use the token returned
|
|
198
|
+
* <p>A token used for pagination of results returned in the response. Use the token returned
|
|
199
|
+
* from the previous request continue results where the previous request ended.</p>
|
|
197
200
|
*/
|
|
198
201
|
nextToken?: string;
|
|
199
202
|
/**
|
|
@@ -244,11 +247,14 @@ export declare namespace DeviceSummary {
|
|
|
244
247
|
}
|
|
245
248
|
export interface SearchDevicesResponse {
|
|
246
249
|
/**
|
|
247
|
-
* <p>An array of <code>DeviceSummary</code> objects for devices that match the specified
|
|
250
|
+
* <p>An array of <code>DeviceSummary</code> objects for devices that match the specified
|
|
251
|
+
* filter values.</p>
|
|
248
252
|
*/
|
|
249
253
|
devices: DeviceSummary[] | undefined;
|
|
250
254
|
/**
|
|
251
|
-
* <p>A token used for pagination of results, or null if there are no additional results. Use
|
|
255
|
+
* <p>A token used for pagination of results, or null if there are no additional results. Use
|
|
256
|
+
* the token value in a subsequent request to continue results where the previous request
|
|
257
|
+
* ended.</p>
|
|
252
258
|
*/
|
|
253
259
|
nextToken?: string;
|
|
254
260
|
}
|
|
@@ -306,11 +312,13 @@ export declare class ConflictException extends __BaseException {
|
|
|
306
312
|
*/
|
|
307
313
|
export interface JobCheckpointConfig {
|
|
308
314
|
/**
|
|
309
|
-
* <p>(Optional) The local directory where checkpoints are written. The default directory is
|
|
315
|
+
* <p>(Optional) The local directory where checkpoints are written. The default directory is
|
|
316
|
+
* <code>/opt/braket/checkpoints/</code>.</p>
|
|
310
317
|
*/
|
|
311
318
|
localPath?: string;
|
|
312
319
|
/**
|
|
313
|
-
* <p>Identifies the S3 path where you want Amazon Braket to store checkpoints. For example,
|
|
320
|
+
* <p>Identifies the S3 path where you want Amazon Braket to store checkpoints. For example,
|
|
321
|
+
* <code>s3://bucket-name/key-name-prefix</code>.</p>
|
|
314
322
|
*/
|
|
315
323
|
s3Uri: string | undefined;
|
|
316
324
|
}
|
|
@@ -321,11 +329,13 @@ export declare namespace JobCheckpointConfig {
|
|
|
321
329
|
const filterSensitiveLog: (obj: JobCheckpointConfig) => any;
|
|
322
330
|
}
|
|
323
331
|
/**
|
|
324
|
-
* <p>Configures the quantum processing units (QPUs) or simulator used to create and run an
|
|
332
|
+
* <p>Configures the quantum processing units (QPUs) or simulator used to create and run an
|
|
333
|
+
* Amazon Braket job.</p>
|
|
325
334
|
*/
|
|
326
335
|
export interface DeviceConfig {
|
|
327
336
|
/**
|
|
328
|
-
* <p>The primary quantum processing unit (QPU) or simulator used to create and run an Amazon
|
|
337
|
+
* <p>The primary quantum processing unit (QPU) or simulator used to create and run an Amazon
|
|
338
|
+
* Braket job.</p>
|
|
329
339
|
*/
|
|
330
340
|
device: string | undefined;
|
|
331
341
|
}
|
|
@@ -432,18 +442,24 @@ export declare enum _InstanceType {
|
|
|
432
442
|
ML_P4D_24XLARGE = "ml.p4d.24xlarge"
|
|
433
443
|
}
|
|
434
444
|
/**
|
|
435
|
-
* <p>Configures the resource instances to use while running the Amazon Braket hybrid job on
|
|
436
|
-
* Braket.</p>
|
|
445
|
+
* <p>Configures the resource instances to use while running the Amazon Braket hybrid job on
|
|
446
|
+
* Amazon Braket.</p>
|
|
437
447
|
*/
|
|
438
448
|
export interface InstanceConfig {
|
|
439
449
|
/**
|
|
440
|
-
* <p>Configures the type resource instances to use while running an Amazon Braket hybrid
|
|
450
|
+
* <p>Configures the type resource instances to use while running an Amazon Braket hybrid
|
|
451
|
+
* job.</p>
|
|
441
452
|
*/
|
|
442
453
|
instanceType: _InstanceType | string | undefined;
|
|
443
454
|
/**
|
|
444
455
|
* <p>The size of the storage volume, in GB, that user wants to provision.</p>
|
|
445
456
|
*/
|
|
446
457
|
volumeSizeInGb: number | undefined;
|
|
458
|
+
/**
|
|
459
|
+
* <p>Configures the number of resource instances to use while running an Amazon Braket job on
|
|
460
|
+
* Amazon Braket. The default value is 1.</p>
|
|
461
|
+
*/
|
|
462
|
+
instanceCount?: number;
|
|
447
463
|
}
|
|
448
464
|
export declare namespace InstanceConfig {
|
|
449
465
|
/**
|
|
@@ -457,13 +473,13 @@ export declare namespace InstanceConfig {
|
|
|
457
473
|
*/
|
|
458
474
|
export interface JobOutputDataConfig {
|
|
459
475
|
/**
|
|
460
|
-
* <p>The AWS Key Management Service (AWS KMS) key that Amazon Braket uses to encrypt the
|
|
461
|
-
*
|
|
476
|
+
* <p>The AWS Key Management Service (AWS KMS) key that Amazon Braket uses to encrypt the job
|
|
477
|
+
* training artifacts at rest using Amazon S3 server-side encryption.</p>
|
|
462
478
|
*/
|
|
463
479
|
kmsKeyId?: string;
|
|
464
480
|
/**
|
|
465
|
-
* <p>Identifies the S3 path where you want Amazon Braket to store the job training artifacts.
|
|
466
|
-
* example, <code>s3://bucket-name/key-name-prefix</code>.</p>
|
|
481
|
+
* <p>Identifies the S3 path where you want Amazon Braket to store the job training artifacts.
|
|
482
|
+
* For example, <code>s3://bucket-name/key-name-prefix</code>.</p>
|
|
467
483
|
*/
|
|
468
484
|
s3Path: string | undefined;
|
|
469
485
|
}
|
|
@@ -494,8 +510,8 @@ export interface CreateJobRequest {
|
|
|
494
510
|
*/
|
|
495
511
|
clientToken?: string;
|
|
496
512
|
/**
|
|
497
|
-
* <p>Definition of the Amazon Braket job to be created. Specifies the container image the job
|
|
498
|
-
* about the Python scripts used for entry and training.</p>
|
|
513
|
+
* <p>Definition of the Amazon Braket job to be created. Specifies the container image the job
|
|
514
|
+
* uses and information about the Python scripts used for entry and training.</p>
|
|
499
515
|
*/
|
|
500
516
|
algorithmSpecification: AlgorithmSpecification | undefined;
|
|
501
517
|
/**
|
|
@@ -504,8 +520,8 @@ export interface CreateJobRequest {
|
|
|
504
520
|
*/
|
|
505
521
|
inputDataConfig?: InputFileConfig[];
|
|
506
522
|
/**
|
|
507
|
-
* <p>The path to the S3 location where you want to store job artifacts and the
|
|
508
|
-
*
|
|
523
|
+
* <p>The path to the S3 location where you want to store job artifacts and the encryption key
|
|
524
|
+
* used to store them.</p>
|
|
509
525
|
*/
|
|
510
526
|
outputDataConfig: JobOutputDataConfig | undefined;
|
|
511
527
|
/**
|
|
@@ -533,18 +549,20 @@ export interface CreateJobRequest {
|
|
|
533
549
|
instanceConfig: InstanceConfig | undefined;
|
|
534
550
|
/**
|
|
535
551
|
* <p>Algorithm-specific parameters used by an Amazon Braket job that influence the quality of
|
|
536
|
-
* the training job. The values are set with a string of JSON key:value pairs, where the key
|
|
537
|
-
* name of the hyperparameter and the value is the value of th hyperparameter.</p>
|
|
552
|
+
* the training job. The values are set with a string of JSON key:value pairs, where the key
|
|
553
|
+
* is the name of the hyperparameter and the value is the value of th hyperparameter.</p>
|
|
538
554
|
*/
|
|
539
555
|
hyperParameters?: {
|
|
540
556
|
[key: string]: string;
|
|
541
557
|
};
|
|
542
558
|
/**
|
|
543
|
-
* <p>The quantum processing unit (QPU) or simulator used to create an Amazon Braket
|
|
559
|
+
* <p>The quantum processing unit (QPU) or simulator used to create an Amazon Braket
|
|
560
|
+
* job.</p>
|
|
544
561
|
*/
|
|
545
562
|
deviceConfig: DeviceConfig | undefined;
|
|
546
563
|
/**
|
|
547
|
-
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
|
|
564
|
+
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
|
|
565
|
+
* Amazon Braket resources.</p>
|
|
548
566
|
*/
|
|
549
567
|
tags?: {
|
|
550
568
|
[key: string]: string;
|
|
@@ -671,8 +689,8 @@ export interface GetJobResponse {
|
|
|
671
689
|
jobName: string | undefined;
|
|
672
690
|
/**
|
|
673
691
|
* <p>Algorithm-specific parameters used by an Amazon Braket job that influence the quality of
|
|
674
|
-
* the traiing job. The values are set with a string of JSON key:value pairs, where the key is
|
|
675
|
-
* name of the hyperparameter and the value is the value of th hyperparameter.</p>
|
|
692
|
+
* the traiing job. The values are set with a string of JSON key:value pairs, where the key is
|
|
693
|
+
* the name of the hyperparameter and the value is the value of th hyperparameter.</p>
|
|
676
694
|
*/
|
|
677
695
|
hyperParameters?: {
|
|
678
696
|
[key: string]: string;
|
|
@@ -683,8 +701,8 @@ export interface GetJobResponse {
|
|
|
683
701
|
*/
|
|
684
702
|
inputDataConfig?: InputFileConfig[];
|
|
685
703
|
/**
|
|
686
|
-
* <p>The path to the S3 location where job artifacts are stored and the encryption
|
|
687
|
-
*
|
|
704
|
+
* <p>The path to the S3 location where job artifacts are stored and the encryption key used
|
|
705
|
+
* to store them there.</p>
|
|
688
706
|
*/
|
|
689
707
|
outputDataConfig: JobOutputDataConfig | undefined;
|
|
690
708
|
/**
|
|
@@ -696,14 +714,13 @@ export interface GetJobResponse {
|
|
|
696
714
|
*/
|
|
697
715
|
checkpointConfig?: JobCheckpointConfig;
|
|
698
716
|
/**
|
|
699
|
-
* <p>Definition of the Amazon Braket job created. Specifies the container image the job uses,
|
|
700
|
-
* the Python scripts used for entry and training, and the user-defined
|
|
701
|
-
* evaluation the job.</p>
|
|
717
|
+
* <p>Definition of the Amazon Braket job created. Specifies the container image the job uses,
|
|
718
|
+
* information about the Python scripts used for entry and training, and the user-defined
|
|
719
|
+
* metrics used to evaluation the job.</p>
|
|
702
720
|
*/
|
|
703
721
|
algorithmSpecification: AlgorithmSpecification | undefined;
|
|
704
722
|
/**
|
|
705
|
-
* <p>The resource instances to use while running the hybrid job on Amazon
|
|
706
|
-
* Braket.</p>
|
|
723
|
+
* <p>The resource instances to use while running the hybrid job on Amazon Braket.</p>
|
|
707
724
|
*/
|
|
708
725
|
instanceConfig: InstanceConfig | undefined;
|
|
709
726
|
/**
|
|
@@ -731,7 +748,8 @@ export interface GetJobResponse {
|
|
|
731
748
|
*/
|
|
732
749
|
events?: JobEventDetails[];
|
|
733
750
|
/**
|
|
734
|
-
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
|
|
751
|
+
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
|
|
752
|
+
* Amazon Braket resources.</p>
|
|
735
753
|
*/
|
|
736
754
|
tags?: {
|
|
737
755
|
[key: string]: string;
|
|
@@ -813,7 +831,8 @@ export interface JobSummary {
|
|
|
813
831
|
*/
|
|
814
832
|
jobName: string | undefined;
|
|
815
833
|
/**
|
|
816
|
-
* <p>Provides summary information about the primary device used by an Amazon Braket
|
|
834
|
+
* <p>Provides summary information about the primary device used by an Amazon Braket
|
|
835
|
+
* job.</p>
|
|
817
836
|
*/
|
|
818
837
|
device: string | undefined;
|
|
819
838
|
/**
|
|
@@ -829,7 +848,8 @@ export interface JobSummary {
|
|
|
829
848
|
*/
|
|
830
849
|
endedAt?: Date;
|
|
831
850
|
/**
|
|
832
|
-
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
|
|
851
|
+
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
|
|
852
|
+
* Amazon Braket resources.</p>
|
|
833
853
|
*/
|
|
834
854
|
tags?: {
|
|
835
855
|
[key: string]: string;
|
|
@@ -848,9 +868,9 @@ export interface SearchJobsResponse {
|
|
|
848
868
|
*/
|
|
849
869
|
jobs: JobSummary[] | undefined;
|
|
850
870
|
/**
|
|
851
|
-
* <p>A token used for pagination of results, or <code>null</code> if there are no additional
|
|
852
|
-
* the token value in a subsequent request to continue results where the previous
|
|
853
|
-
* ended.</p>
|
|
871
|
+
* <p>A token used for pagination of results, or <code>null</code> if there are no additional
|
|
872
|
+
* results. Use the token value in a subsequent request to continue results where the previous
|
|
873
|
+
* request ended.</p>
|
|
854
874
|
*/
|
|
855
875
|
nextToken?: string;
|
|
856
876
|
}
|
|
@@ -1099,7 +1119,8 @@ export declare namespace SearchQuantumTasksFilter {
|
|
|
1099
1119
|
}
|
|
1100
1120
|
export interface SearchQuantumTasksRequest {
|
|
1101
1121
|
/**
|
|
1102
|
-
* <p>A token used for pagination of results returned in the response. Use the token returned
|
|
1122
|
+
* <p>A token used for pagination of results returned in the response. Use the token returned
|
|
1123
|
+
* from the previous request continue results where the previous request ended.</p>
|
|
1103
1124
|
*/
|
|
1104
1125
|
nextToken?: string;
|
|
1105
1126
|
/**
|
|
@@ -1168,11 +1189,14 @@ export declare namespace QuantumTaskSummary {
|
|
|
1168
1189
|
}
|
|
1169
1190
|
export interface SearchQuantumTasksResponse {
|
|
1170
1191
|
/**
|
|
1171
|
-
* <p>An array of <code>QuantumTaskSummary</code> objects for tasks that match the specified
|
|
1192
|
+
* <p>An array of <code>QuantumTaskSummary</code> objects for tasks that match the specified
|
|
1193
|
+
* filters.</p>
|
|
1172
1194
|
*/
|
|
1173
1195
|
quantumTasks: QuantumTaskSummary[] | undefined;
|
|
1174
1196
|
/**
|
|
1175
|
-
* <p>A token used for pagination of results, or null if there are no additional results. Use
|
|
1197
|
+
* <p>A token used for pagination of results, or null if there are no additional results. Use
|
|
1198
|
+
* the token value in a subsequent request to continue results where the previous request
|
|
1199
|
+
* ended.</p>
|
|
1176
1200
|
*/
|
|
1177
1201
|
nextToken?: string;
|
|
1178
1202
|
}
|
|
@@ -1184,7 +1208,8 @@ export declare namespace SearchQuantumTasksResponse {
|
|
|
1184
1208
|
}
|
|
1185
1209
|
export interface TagResourceRequest {
|
|
1186
1210
|
/**
|
|
1187
|
-
* <p>Specify the <code>resourceArn</code> of the resource to which a tag will be
|
|
1211
|
+
* <p>Specify the <code>resourceArn</code> of the resource to which a tag will be
|
|
1212
|
+
* added.</p>
|
|
1188
1213
|
*/
|
|
1189
1214
|
resourceArn: string | undefined;
|
|
1190
1215
|
/**
|
|
@@ -1210,7 +1235,8 @@ export declare namespace TagResourceResponse {
|
|
|
1210
1235
|
}
|
|
1211
1236
|
export interface UntagResourceRequest {
|
|
1212
1237
|
/**
|
|
1213
|
-
* <p>Specify the <code>resourceArn</code> for the resource from which to remove the
|
|
1238
|
+
* <p>Specify the <code>resourceArn</code> for the resource from which to remove the
|
|
1239
|
+
* tags.</p>
|
|
1214
1240
|
*/
|
|
1215
1241
|
resourceArn: string | undefined;
|
|
1216
1242
|
/**
|
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.
|
|
4
|
+
"version": "3.80.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",
|
|
@@ -18,34 +18,34 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.80.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.80.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.80.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.78.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.78.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.78.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.78.0",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.80.0",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.78.0",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.78.0",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.78.0",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.78.0",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.80.0",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.78.0",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.78.0",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.78.0",
|
|
39
|
+
"@aws-sdk/types": "3.78.0",
|
|
40
|
+
"@aws-sdk/url-parser": "3.78.0",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.58.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.78.0",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.80.0",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.78.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.80.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.55.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.55.0",
|
|
51
51
|
"tslib": "^2.3.1",
|