@aws-sdk/client-braket 3.462.0 → 3.466.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/dist-cjs/models/models_0.js +4 -1
- package/dist-cjs/protocols/Aws_restJson1.js +4 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/commands/CreateJobCommand.d.ts +6 -0
- package/dist-types/commands/CreateQuantumTaskCommand.d.ts +6 -0
- package/dist-types/commands/GetJobCommand.d.ts +6 -0
- package/dist-types/commands/GetQuantumTaskCommand.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +49 -2
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/package.json +14 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchQuantumTasksFilterOperator = exports.QuantumTaskStatus = exports.QuantumTaskAdditionalAttributeName = exports.DeviceOfflineException = exports.SearchJobsFilterOperator = exports.JobPrimaryStatus = exports.JobEventType = exports.HybridJobAdditionalAttributeName = exports.ServiceQuotaExceededException = exports.DeviceRetiredException = exports._InstanceType = exports.ConflictException = exports.CancellationStatus = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServiceException = exports.DeviceType = exports.DeviceStatus = exports.QueuePriority = exports.QueueName = exports.CompressionType = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.SearchQuantumTasksFilterOperator = exports.QuantumTaskStatus = exports.QuantumTaskAdditionalAttributeName = exports.DeviceOfflineException = exports.SearchJobsFilterOperator = exports.JobPrimaryStatus = exports.JobEventType = exports.HybridJobAdditionalAttributeName = exports.ServiceQuotaExceededException = exports.DeviceRetiredException = exports._InstanceType = exports.ConflictException = exports.CancellationStatus = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServiceException = exports.DeviceType = exports.DeviceStatus = exports.QueuePriority = exports.QueueName = exports.AssociationType = exports.CompressionType = exports.AccessDeniedException = void 0;
|
|
4
4
|
const BraketServiceException_1 = require("./BraketServiceException");
|
|
5
5
|
class AccessDeniedException extends BraketServiceException_1.BraketServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -19,6 +19,9 @@ exports.CompressionType = {
|
|
|
19
19
|
GZIP: "GZIP",
|
|
20
20
|
NONE: "NONE",
|
|
21
21
|
};
|
|
22
|
+
exports.AssociationType = {
|
|
23
|
+
RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN",
|
|
24
|
+
};
|
|
22
25
|
exports.QueueName = {
|
|
23
26
|
JOBS_QUEUE: "JOBS_QUEUE",
|
|
24
27
|
QUANTUM_TASKS_QUEUE: "QUANTUM_TASKS_QUEUE",
|
|
@@ -54,6 +54,7 @@ const se_CreateJobCommand = async (input, context) => {
|
|
|
54
54
|
let body;
|
|
55
55
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
56
56
|
algorithmSpecification: (_) => (0, smithy_client_1._json)(_),
|
|
57
|
+
associations: (_) => (0, smithy_client_1._json)(_),
|
|
57
58
|
checkpointConfig: (_) => (0, smithy_client_1._json)(_),
|
|
58
59
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
59
60
|
deviceConfig: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -86,6 +87,7 @@ const se_CreateQuantumTaskCommand = async (input, context) => {
|
|
|
86
87
|
let body;
|
|
87
88
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
88
89
|
action: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
90
|
+
associations: (_) => (0, smithy_client_1._json)(_),
|
|
89
91
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
90
92
|
deviceArn: [],
|
|
91
93
|
deviceParameters: (_) => smithy_client_1.LazyJsonString.fromObject(_),
|
|
@@ -569,6 +571,7 @@ const de_GetJobCommand = async (output, context) => {
|
|
|
569
571
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
570
572
|
const doc = (0, smithy_client_1.take)(data, {
|
|
571
573
|
algorithmSpecification: smithy_client_1._json,
|
|
574
|
+
associations: smithy_client_1._json,
|
|
572
575
|
billableDuration: smithy_client_1.expectInt32,
|
|
573
576
|
checkpointConfig: smithy_client_1._json,
|
|
574
577
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -633,6 +636,7 @@ const de_GetQuantumTaskCommand = async (output, context) => {
|
|
|
633
636
|
});
|
|
634
637
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
635
638
|
const doc = (0, smithy_client_1.take)(data, {
|
|
639
|
+
associations: smithy_client_1._json,
|
|
636
640
|
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
637
641
|
deviceArn: smithy_client_1.expectString,
|
|
638
642
|
deviceParameters: (_) => new smithy_client_1.LazyJsonString(_),
|
|
@@ -15,6 +15,9 @@ export const CompressionType = {
|
|
|
15
15
|
GZIP: "GZIP",
|
|
16
16
|
NONE: "NONE",
|
|
17
17
|
};
|
|
18
|
+
export const AssociationType = {
|
|
19
|
+
RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN",
|
|
20
|
+
};
|
|
18
21
|
export const QueueName = {
|
|
19
22
|
JOBS_QUEUE: "JOBS_QUEUE",
|
|
20
23
|
QUANTUM_TASKS_QUEUE: "QUANTUM_TASKS_QUEUE",
|
|
@@ -49,6 +49,7 @@ export const se_CreateJobCommand = async (input, context) => {
|
|
|
49
49
|
let body;
|
|
50
50
|
body = JSON.stringify(take(input, {
|
|
51
51
|
algorithmSpecification: (_) => _json(_),
|
|
52
|
+
associations: (_) => _json(_),
|
|
52
53
|
checkpointConfig: (_) => _json(_),
|
|
53
54
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
54
55
|
deviceConfig: (_) => _json(_),
|
|
@@ -80,6 +81,7 @@ export const se_CreateQuantumTaskCommand = async (input, context) => {
|
|
|
80
81
|
let body;
|
|
81
82
|
body = JSON.stringify(take(input, {
|
|
82
83
|
action: (_) => __LazyJsonString.fromObject(_),
|
|
84
|
+
associations: (_) => _json(_),
|
|
83
85
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
84
86
|
deviceArn: [],
|
|
85
87
|
deviceParameters: (_) => __LazyJsonString.fromObject(_),
|
|
@@ -548,6 +550,7 @@ export const de_GetJobCommand = async (output, context) => {
|
|
|
548
550
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
549
551
|
const doc = take(data, {
|
|
550
552
|
algorithmSpecification: _json,
|
|
553
|
+
associations: _json,
|
|
551
554
|
billableDuration: __expectInt32,
|
|
552
555
|
checkpointConfig: _json,
|
|
553
556
|
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
@@ -611,6 +614,7 @@ export const de_GetQuantumTaskCommand = async (output, context) => {
|
|
|
611
614
|
});
|
|
612
615
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
613
616
|
const doc = take(data, {
|
|
617
|
+
associations: _json,
|
|
614
618
|
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
615
619
|
deviceArn: __expectString,
|
|
616
620
|
deviceParameters: (_) => new __LazyJsonString(_),
|
|
@@ -80,6 +80,12 @@ export interface CreateJobCommandOutput extends CreateJobResponse, __MetadataBea
|
|
|
80
80
|
* tags: { // TagsMap
|
|
81
81
|
* "<keys>": "STRING_VALUE",
|
|
82
82
|
* },
|
|
83
|
+
* associations: [ // Associations
|
|
84
|
+
* { // Association
|
|
85
|
+
* arn: "STRING_VALUE", // required
|
|
86
|
+
* type: "STRING_VALUE", // required
|
|
87
|
+
* },
|
|
88
|
+
* ],
|
|
83
89
|
* };
|
|
84
90
|
* const command = new CreateJobCommand(input);
|
|
85
91
|
* const response = await client.send(command);
|
|
@@ -42,6 +42,12 @@ export interface CreateQuantumTaskCommandOutput extends CreateQuantumTaskRespons
|
|
|
42
42
|
* "<keys>": "STRING_VALUE",
|
|
43
43
|
* },
|
|
44
44
|
* jobToken: "STRING_VALUE",
|
|
45
|
+
* associations: [ // Associations
|
|
46
|
+
* { // Association
|
|
47
|
+
* arn: "STRING_VALUE", // required
|
|
48
|
+
* type: "STRING_VALUE", // required
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
45
51
|
* };
|
|
46
52
|
* const command = new CreateQuantumTaskCommand(input);
|
|
47
53
|
* const response = await client.send(command);
|
|
@@ -106,6 +106,12 @@ export interface GetJobCommandOutput extends GetJobResponse, __MetadataBearer {
|
|
|
106
106
|
* // position: "STRING_VALUE", // required
|
|
107
107
|
* // message: "STRING_VALUE",
|
|
108
108
|
* // },
|
|
109
|
+
* // associations: [ // Associations
|
|
110
|
+
* // { // Association
|
|
111
|
+
* // arn: "STRING_VALUE", // required
|
|
112
|
+
* // type: "STRING_VALUE", // required
|
|
113
|
+
* // },
|
|
114
|
+
* // ],
|
|
109
115
|
* // };
|
|
110
116
|
*
|
|
111
117
|
* ```
|
|
@@ -59,6 +59,12 @@ export interface GetQuantumTaskCommandOutput extends GetQuantumTaskResponse, __M
|
|
|
59
59
|
* // queuePriority: "STRING_VALUE",
|
|
60
60
|
* // message: "STRING_VALUE",
|
|
61
61
|
* // },
|
|
62
|
+
* // associations: [ // Associations
|
|
63
|
+
* // { // Association
|
|
64
|
+
* // arn: "STRING_VALUE", // required
|
|
65
|
+
* // type: "STRING_VALUE", // required
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
62
68
|
* // };
|
|
63
69
|
*
|
|
64
70
|
* ```
|
|
@@ -76,6 +76,33 @@ export interface AlgorithmSpecification {
|
|
|
76
76
|
*/
|
|
77
77
|
containerImage?: ContainerImage;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
* @enum
|
|
82
|
+
*/
|
|
83
|
+
export declare const AssociationType: {
|
|
84
|
+
readonly RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN";
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export type AssociationType = (typeof AssociationType)[keyof typeof AssociationType];
|
|
90
|
+
/**
|
|
91
|
+
* @public
|
|
92
|
+
* <p>The Amazon Braket resource and the association type.</p>
|
|
93
|
+
*/
|
|
94
|
+
export interface Association {
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* <p>The Amazon Braket resource arn.</p>
|
|
98
|
+
*/
|
|
99
|
+
arn: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* @public
|
|
102
|
+
* <p>The association type for the specified Amazon Braket resource arn.</p>
|
|
103
|
+
*/
|
|
104
|
+
type: AssociationType | undefined;
|
|
105
|
+
}
|
|
79
106
|
/**
|
|
80
107
|
* @public
|
|
81
108
|
*/
|
|
@@ -634,6 +661,11 @@ export interface CreateJobRequest {
|
|
|
634
661
|
* Amazon Braket resources.</p>
|
|
635
662
|
*/
|
|
636
663
|
tags?: Record<string, string>;
|
|
664
|
+
/**
|
|
665
|
+
* @public
|
|
666
|
+
* <p>The list of Amazon Braket resources associated with the hybrid job.</p>
|
|
667
|
+
*/
|
|
668
|
+
associations?: Association[];
|
|
637
669
|
}
|
|
638
670
|
/**
|
|
639
671
|
* @public
|
|
@@ -728,7 +760,7 @@ export interface JobEventDetails {
|
|
|
728
760
|
eventType?: JobEventType;
|
|
729
761
|
/**
|
|
730
762
|
* @public
|
|
731
|
-
* <p>
|
|
763
|
+
* <p>The type of event that occurred related to the Amazon Braket job.</p>
|
|
732
764
|
*/
|
|
733
765
|
timeOfEvent?: Date;
|
|
734
766
|
/**
|
|
@@ -891,6 +923,11 @@ export interface GetJobResponse {
|
|
|
891
923
|
* field in the <code>GetJob</code> API request.</p>
|
|
892
924
|
*/
|
|
893
925
|
queueInfo?: HybridJobQueueInfo;
|
|
926
|
+
/**
|
|
927
|
+
* @public
|
|
928
|
+
* <p>The list of Amazon Braket resources associated with the hybrid job.</p>
|
|
929
|
+
*/
|
|
930
|
+
associations?: Association[];
|
|
894
931
|
}
|
|
895
932
|
/**
|
|
896
933
|
* @public
|
|
@@ -1116,6 +1153,11 @@ export interface CreateQuantumTaskRequest {
|
|
|
1116
1153
|
* <p>The token for an Amazon Braket job that associates it with the quantum task.</p>
|
|
1117
1154
|
*/
|
|
1118
1155
|
jobToken?: string;
|
|
1156
|
+
/**
|
|
1157
|
+
* @public
|
|
1158
|
+
* <p>The list of Amazon Braket resources associated with the quantum task.</p>
|
|
1159
|
+
*/
|
|
1160
|
+
associations?: Association[];
|
|
1119
1161
|
}
|
|
1120
1162
|
/**
|
|
1121
1163
|
* @public
|
|
@@ -1156,7 +1198,7 @@ export type QuantumTaskAdditionalAttributeName = (typeof QuantumTaskAdditionalAt
|
|
|
1156
1198
|
export interface GetQuantumTaskRequest {
|
|
1157
1199
|
/**
|
|
1158
1200
|
* @public
|
|
1159
|
-
* <p>
|
|
1201
|
+
* <p>The ARN of the task to retrieve.</p>
|
|
1160
1202
|
*/
|
|
1161
1203
|
quantumTaskArn: string | undefined;
|
|
1162
1204
|
/**
|
|
@@ -1282,6 +1324,11 @@ export interface GetQuantumTaskResponse {
|
|
|
1282
1324
|
* field in the <code>GetQuantumTask</code> API request.</p>
|
|
1283
1325
|
*/
|
|
1284
1326
|
queueInfo?: QuantumTaskQueueInfo;
|
|
1327
|
+
/**
|
|
1328
|
+
* @public
|
|
1329
|
+
* <p>The list of Amazon Braket resources associated with the quantum task.</p>
|
|
1330
|
+
*/
|
|
1331
|
+
associations?: Association[];
|
|
1285
1332
|
}
|
|
1286
1333
|
/**
|
|
1287
1334
|
* @public
|
|
@@ -28,6 +28,15 @@ export interface AlgorithmSpecification {
|
|
|
28
28
|
scriptModeConfig?: ScriptModeConfig;
|
|
29
29
|
containerImage?: ContainerImage;
|
|
30
30
|
}
|
|
31
|
+
export declare const AssociationType: {
|
|
32
|
+
readonly RESERVATION_TIME_WINDOW_ARN: "RESERVATION_TIME_WINDOW_ARN";
|
|
33
|
+
};
|
|
34
|
+
export type AssociationType =
|
|
35
|
+
(typeof AssociationType)[keyof typeof AssociationType];
|
|
36
|
+
export interface Association {
|
|
37
|
+
arn: string | undefined;
|
|
38
|
+
type: AssociationType | undefined;
|
|
39
|
+
}
|
|
31
40
|
export interface GetDeviceRequest {
|
|
32
41
|
deviceArn: string | undefined;
|
|
33
42
|
}
|
|
@@ -217,6 +226,7 @@ export interface CreateJobRequest {
|
|
|
217
226
|
hyperParameters?: Record<string, string>;
|
|
218
227
|
deviceConfig: DeviceConfig | undefined;
|
|
219
228
|
tags?: Record<string, string>;
|
|
229
|
+
associations?: Association[];
|
|
220
230
|
}
|
|
221
231
|
export interface CreateJobResponse {
|
|
222
232
|
jobArn: string | undefined;
|
|
@@ -299,6 +309,7 @@ export interface GetJobResponse {
|
|
|
299
309
|
events?: JobEventDetails[];
|
|
300
310
|
tags?: Record<string, string>;
|
|
301
311
|
queueInfo?: HybridJobQueueInfo;
|
|
312
|
+
associations?: Association[];
|
|
302
313
|
}
|
|
303
314
|
export declare const SearchJobsFilterOperator: {
|
|
304
315
|
readonly BETWEEN: "BETWEEN";
|
|
@@ -359,6 +370,7 @@ export interface CreateQuantumTaskRequest {
|
|
|
359
370
|
action: __LazyJsonString | string | undefined;
|
|
360
371
|
tags?: Record<string, string>;
|
|
361
372
|
jobToken?: string;
|
|
373
|
+
associations?: Association[];
|
|
362
374
|
}
|
|
363
375
|
export interface CreateQuantumTaskResponse {
|
|
364
376
|
quantumTaskArn: string | undefined;
|
|
@@ -410,6 +422,7 @@ export interface GetQuantumTaskResponse {
|
|
|
410
422
|
tags?: Record<string, string>;
|
|
411
423
|
jobArn?: string;
|
|
412
424
|
queueInfo?: QuantumTaskQueueInfo;
|
|
425
|
+
associations?: Association[];
|
|
413
426
|
}
|
|
414
427
|
export declare const SearchQuantumTasksFilterOperator: {
|
|
415
428
|
readonly BETWEEN: "BETWEEN";
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
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.466.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",
|
|
8
|
-
"build:docs": "typedoc",
|
|
9
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
11
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -21,19 +20,19 @@
|
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-signing": "3.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
33
|
-
"@aws-sdk/types": "3.
|
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.465.0",
|
|
24
|
+
"@aws-sdk/core": "3.465.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.465.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.465.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.465.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.465.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.465.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.465.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.465.0",
|
|
32
|
+
"@aws-sdk/types": "3.465.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.465.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.465.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.465.0",
|
|
37
36
|
"@smithy/config-resolver": "^2.0.18",
|
|
38
37
|
"@smithy/fetch-http-handler": "^2.2.6",
|
|
39
38
|
"@smithy/hash-node": "^2.0.15",
|
|
@@ -68,7 +67,6 @@
|
|
|
68
67
|
"concurrently": "7.0.0",
|
|
69
68
|
"downlevel-dts": "0.10.1",
|
|
70
69
|
"rimraf": "3.0.2",
|
|
71
|
-
"typedoc": "0.23.23",
|
|
72
70
|
"typescript": "~4.9.5"
|
|
73
71
|
},
|
|
74
72
|
"engines": {
|