/
models_0.ts
1515 lines (1305 loc) · 35.7 KB
/
models_0.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// smithy-typescript generated code
import {
ExceptionOptionType as __ExceptionOptionType,
LazyJsonString as __LazyJsonString,
} from "@aws-sdk/smithy-client";
import { BraketServiceException as __BaseException } from "./BraketServiceException";
/**
* <p>You do not have sufficient access to perform this action.</p>
*/
export class AccessDeniedException extends __BaseException {
readonly name: "AccessDeniedException" = "AccessDeniedException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>) {
super({
name: "AccessDeniedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccessDeniedException.prototype);
}
}
/**
* <p>The container image used to create an Amazon Braket job.</p>
*/
export interface ContainerImage {
/**
* <p>The URI locating the container image.</p>
*/
uri: string | undefined;
}
export enum CompressionType {
GZIP = "GZIP",
NONE = "NONE",
}
/**
* <p>Contains information about the Python scripts used for entry and by an Amazon Braket
* job.</p>
*/
export interface ScriptModeConfig {
/**
* <p>The path to the Python script that serves as the entry point for an Amazon Braket
* job.</p>
*/
entryPoint: string | undefined;
/**
* <p>The URI that specifies the S3 path to the Python script module that contains the
* training script used by an Amazon Braket job.</p>
*/
s3Uri: string | undefined;
/**
* <p>The type of compression used by the Python scripts for an Amazon Braket job.</p>
*/
compressionType?: CompressionType | string;
}
/**
* <p>Defines the Amazon Braket job to be created. Specifies the container image the job uses
* and the paths to the Python scripts used for entry and training.</p>
*/
export interface AlgorithmSpecification {
/**
* <p>Configures the paths to the Python scripts used for entry and training.</p>
*/
scriptModeConfig?: ScriptModeConfig;
/**
* <p>The container image used to create an Amazon Braket job.</p>
*/
containerImage?: ContainerImage;
}
export interface GetDeviceRequest {
/**
* <p>The ARN of the device to retrieve.</p>
*/
deviceArn: string | undefined;
}
export enum DeviceStatus {
OFFLINE = "OFFLINE",
ONLINE = "ONLINE",
RETIRED = "RETIRED",
}
export enum DeviceType {
QPU = "QPU",
SIMULATOR = "SIMULATOR",
}
export interface GetDeviceResponse {
/**
* <p>The ARN of the device.</p>
*/
deviceArn: string | undefined;
/**
* <p>The name of the device.</p>
*/
deviceName: string | undefined;
/**
* <p>The name of the partner company for the device.</p>
*/
providerName: string | undefined;
/**
* <p>The type of the device.</p>
*/
deviceType: DeviceType | string | undefined;
/**
* <p>The status of the device.</p>
*/
deviceStatus: DeviceStatus | string | undefined;
/**
* <p>Details about the capabilities of the device.</p>
*/
deviceCapabilities: __LazyJsonString | string | undefined;
}
/**
* <p>The request processing has failed because of an unknown error, exception, or
* failure.</p>
*/
export class InternalServiceException extends __BaseException {
readonly name: "InternalServiceException" = "InternalServiceException";
readonly $fault: "server" = "server";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>) {
super({
name: "InternalServiceException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalServiceException.prototype);
}
}
/**
* <p>The specified resource was not found.</p>
*/
export class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException" = "ResourceNotFoundException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
}
}
/**
* <p>The throttling rate limit is met.</p>
*/
export class ThrottlingException extends __BaseException {
readonly name: "ThrottlingException" = "ThrottlingException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>) {
super({
name: "ThrottlingException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ThrottlingException.prototype);
}
}
/**
* <p>The input fails to satisfy the constraints specified by an AWS service.</p>
*/
export class ValidationException extends __BaseException {
readonly name: "ValidationException" = "ValidationException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>) {
super({
name: "ValidationException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ValidationException.prototype);
}
}
/**
* <p>The filter to use for searching devices.</p>
*/
export interface SearchDevicesFilter {
/**
* <p>The name to use to filter results.</p>
*/
name: string | undefined;
/**
* <p>The values to use to filter results.</p>
*/
values: string[] | undefined;
}
export interface SearchDevicesRequest {
/**
* <p>A token used for pagination of results returned in the response. Use the token returned
* from the previous request continue results where the previous request ended.</p>
*/
nextToken?: string;
/**
* <p>The maximum number of results to return in the response.</p>
*/
maxResults?: number;
/**
* <p>The filter values to use to search for a device.</p>
*/
filters: SearchDevicesFilter[] | undefined;
}
/**
* <p>Includes information about the device.</p>
*/
export interface DeviceSummary {
/**
* <p>The ARN of the device.</p>
*/
deviceArn: string | undefined;
/**
* <p>The name of the device.</p>
*/
deviceName: string | undefined;
/**
* <p>The provider of the device.</p>
*/
providerName: string | undefined;
/**
* <p>The type of the device.</p>
*/
deviceType: DeviceType | string | undefined;
/**
* <p>The status of the device.</p>
*/
deviceStatus: DeviceStatus | string | undefined;
}
export interface SearchDevicesResponse {
/**
* <p>An array of <code>DeviceSummary</code> objects for devices that match the specified
* filter values.</p>
*/
devices: DeviceSummary[] | undefined;
/**
* <p>A token used for pagination of results, or null if there are no additional results. Use
* the token value in a subsequent request to continue results where the previous request
* ended.</p>
*/
nextToken?: string;
}
export interface CancelJobRequest {
/**
* <p>The ARN of the Amazon Braket job to cancel.</p>
*/
jobArn: string | undefined;
}
export enum CancellationStatus {
CANCELLED = "CANCELLED",
CANCELLING = "CANCELLING",
}
export interface CancelJobResponse {
/**
* <p>The ARN of the Amazon Braket job.</p>
*/
jobArn: string | undefined;
/**
* <p>The status of the job cancellation request.</p>
*/
cancellationStatus: CancellationStatus | string | undefined;
}
/**
* <p>An error occurred due to a conflict.</p>
*/
export class ConflictException extends __BaseException {
readonly name: "ConflictException" = "ConflictException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>) {
super({
name: "ConflictException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ConflictException.prototype);
}
}
/**
* <p>Contains information about the output locations for job checkpoint data.</p>
*/
export interface JobCheckpointConfig {
/**
* <p>(Optional) The local directory where checkpoints are written. The default directory is
* <code>/opt/braket/checkpoints/</code>.</p>
*/
localPath?: string;
/**
* <p>Identifies the S3 path where you want Amazon Braket to store checkpoints. For example,
* <code>s3://bucket-name/key-name-prefix</code>.</p>
*/
s3Uri: string | undefined;
}
/**
* <p>Configures the quantum processing units (QPUs) or simulator used to create and run an
* Amazon Braket job.</p>
*/
export interface DeviceConfig {
/**
* <p>The primary quantum processing unit (QPU) or simulator used to create and run an Amazon
* Braket job.</p>
*/
device: string | undefined;
}
/**
* <p>Information about the data stored in Amazon S3 used by the Amazon Braket job.</p>
*/
export interface S3DataSource {
/**
* <p>Depending on the value specified for the <code>S3DataType</code>, identifies either a
* key name prefix or a manifest that locates the S3 data source.</p>
*/
s3Uri: string | undefined;
}
/**
* <p>Information about the source of the data used by the Amazon Braket job.</p>
*/
export interface DataSource {
/**
* <p>Information about the data stored in Amazon S3 used by the Amazon Braket job.</p>
*/
s3DataSource: S3DataSource | undefined;
}
/**
* <p>A list of parameters that specify the input channels, type of input data, and where it
* is located.</p>
*/
export interface InputFileConfig {
/**
* <p>A named input source that an Amazon Braket job can consume.</p>
*/
channelName: string | undefined;
/**
* <p>The MIME type of the data.</p>
*/
contentType?: string;
/**
* <p>The location of the channel data.</p>
*/
dataSource: DataSource | undefined;
}
export enum _InstanceType {
ML_C4_2XLARGE = "ml.c4.2xlarge",
ML_C4_4XLARGE = "ml.c4.4xlarge",
ML_C4_8XLARGE = "ml.c4.8xlarge",
ML_C4_XLARGE = "ml.c4.xlarge",
ML_C5N_18XLARGE = "ml.c5n.18xlarge",
ML_C5N_2XLARGE = "ml.c5n.2xlarge",
ML_C5N_4XLARGE = "ml.c5n.4xlarge",
ML_C5N_9XLARGE = "ml.c5n.9xlarge",
ML_C5N_XLARGE = "ml.c5n.xlarge",
ML_C5_18XLARGE = "ml.c5.18xlarge",
ML_C5_2XLARGE = "ml.c5.2xlarge",
ML_C5_4XLARGE = "ml.c5.4xlarge",
ML_C5_9XLARGE = "ml.c5.9xlarge",
ML_C5_XLARGE = "ml.c5.xlarge",
ML_G4DN_12XLARGE = "ml.g4dn.12xlarge",
ML_G4DN_16XLARGE = "ml.g4dn.16xlarge",
ML_G4DN_2XLARGE = "ml.g4dn.2xlarge",
ML_G4DN_4XLARGE = "ml.g4dn.4xlarge",
ML_G4DN_8XLARGE = "ml.g4dn.8xlarge",
ML_G4DN_XLARGE = "ml.g4dn.xlarge",
ML_M4_10XLARGE = "ml.m4.10xlarge",
ML_M4_16XLARGE = "ml.m4.16xlarge",
ML_M4_2XLARGE = "ml.m4.2xlarge",
ML_M4_4XLARGE = "ml.m4.4xlarge",
ML_M4_XLARGE = "ml.m4.xlarge",
ML_M5_12XLARGE = "ml.m5.12xlarge",
ML_M5_24XLARGE = "ml.m5.24xlarge",
ML_M5_2XLARGE = "ml.m5.2xlarge",
ML_M5_4XLARGE = "ml.m5.4xlarge",
ML_M5_LARGE = "ml.m5.large",
ML_M5_XLARGE = "ml.m5.xlarge",
ML_P2_16XLARGE = "ml.p2.16xlarge",
ML_P2_8XLARGE = "ml.p2.8xlarge",
ML_P2_XLARGE = "ml.p2.xlarge",
ML_P3DN_24XLARGE = "ml.p3dn.24xlarge",
ML_P3_16XLARGE = "ml.p3.16xlarge",
ML_P3_2XLARGE = "ml.p3.2xlarge",
ML_P3_8XLARGE = "ml.p3.8xlarge",
ML_P4D_24XLARGE = "ml.p4d.24xlarge",
}
/**
* <p>Configures the resource instances to use while running the Amazon Braket hybrid job on
* Amazon Braket.</p>
*/
export interface InstanceConfig {
/**
* <p>Configures the type resource instances to use while running an Amazon Braket hybrid
* job.</p>
*/
instanceType: _InstanceType | string | undefined;
/**
* <p>The size of the storage volume, in GB, that user wants to provision.</p>
*/
volumeSizeInGb: number | undefined;
/**
* <p>Configures the number of resource instances to use while running an Amazon Braket job on
* Amazon Braket. The default value is 1.</p>
*/
instanceCount?: number;
}
/**
* <p>Specifies the path to the S3 location where you want to store job artifacts and the
* encryption key used to store them.</p>
*/
export interface JobOutputDataConfig {
/**
* <p>The AWS Key Management Service (AWS KMS) key that Amazon Braket uses to encrypt the job
* training artifacts at rest using Amazon S3 server-side encryption.</p>
*/
kmsKeyId?: string;
/**
* <p>Identifies the S3 path where you want Amazon Braket to store the job training artifacts.
* For example, <code>s3://bucket-name/key-name-prefix</code>.</p>
*/
s3Path: string | undefined;
}
/**
* <p>Specifies limits for how long an Amazon Braket job can run. </p>
*/
export interface JobStoppingCondition {
/**
* <p>The maximum length of time, in seconds, that an Amazon Braket job can run.</p>
*/
maxRuntimeInSeconds?: number;
}
export interface CreateJobRequest {
/**
* <p>A unique token that guarantees that the call to this API is idempotent.</p>
*/
clientToken?: string;
/**
* <p>Definition of the Amazon Braket job to be created. Specifies the container image the job
* uses and information about the Python scripts used for entry and training.</p>
*/
algorithmSpecification: AlgorithmSpecification | undefined;
/**
* <p>A list of parameters that specify the name and type of input data and where it is
* located.</p>
*/
inputDataConfig?: InputFileConfig[];
/**
* <p>The path to the S3 location where you want to store job artifacts and the encryption key
* used to store them.</p>
*/
outputDataConfig: JobOutputDataConfig | undefined;
/**
* <p>Information about the output locations for job checkpoint data.</p>
*/
checkpointConfig?: JobCheckpointConfig;
/**
* <p>The name of the Amazon Braket job.</p>
*/
jobName: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform
* tasks on behalf of a user. It can access user resources, run an Amazon Braket job container
* on behalf of user, and output resources to the users' s3 buckets.</p>
*/
roleArn: string | undefined;
/**
* <p> The user-defined criteria that specifies when a job stops running.</p>
*/
stoppingCondition?: JobStoppingCondition;
/**
* <p>Configuration of the resource instances to use while running the hybrid job on Amazon
* Braket.</p>
*/
instanceConfig: InstanceConfig | undefined;
/**
* <p>Algorithm-specific parameters used by an Amazon Braket job that influence the quality of
* the training job. The values are set with a string of JSON key:value pairs, where the key
* is the name of the hyperparameter and the value is the value of th hyperparameter.</p>
*/
hyperParameters?: Record<string, string>;
/**
* <p>The quantum processing unit (QPU) or simulator used to create an Amazon Braket
* job.</p>
*/
deviceConfig: DeviceConfig | undefined;
/**
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
* Amazon Braket resources.</p>
*/
tags?: Record<string, string>;
}
export interface CreateJobResponse {
/**
* <p>The ARN of the Amazon Braket job created.</p>
*/
jobArn: string | undefined;
}
/**
* <p>The specified device has been retired.</p>
*/
export class DeviceRetiredException extends __BaseException {
readonly name: "DeviceRetiredException" = "DeviceRetiredException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<DeviceRetiredException, __BaseException>) {
super({
name: "DeviceRetiredException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, DeviceRetiredException.prototype);
}
}
/**
* <p>The request failed because a service quota is exceeded.</p>
*/
export class ServiceQuotaExceededException extends __BaseException {
readonly name: "ServiceQuotaExceededException" = "ServiceQuotaExceededException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>) {
super({
name: "ServiceQuotaExceededException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
}
}
export interface GetJobRequest {
/**
* <p>The ARN of the job to retrieve.</p>
*/
jobArn: string | undefined;
}
export enum JobEventType {
CANCELLED = "CANCELLED",
COMPLETED = "COMPLETED",
DEPRIORITIZED_DUE_TO_INACTIVITY = "DEPRIORITIZED_DUE_TO_INACTIVITY",
DOWNLOADING_DATA = "DOWNLOADING_DATA",
FAILED = "FAILED",
MAX_RUNTIME_EXCEEDED = "MAX_RUNTIME_EXCEEDED",
QUEUED_FOR_EXECUTION = "QUEUED_FOR_EXECUTION",
RUNNING = "RUNNING",
STARTING_INSTANCE = "STARTING_INSTANCE",
UPLOADING_RESULTS = "UPLOADING_RESULTS",
WAITING_FOR_PRIORITY = "WAITING_FOR_PRIORITY",
}
/**
* <p>Details about the type and time events occurred related to the Amazon Braket job.</p>
*/
export interface JobEventDetails {
/**
* <p>The type of event that occurred related to the Amazon Braket job.</p>
*/
eventType?: JobEventType | string;
/**
* <p>TThe type of event that occurred related to the Amazon Braket job.</p>
*/
timeOfEvent?: Date;
/**
* <p>A message describing the event that occurred related to the Amazon Braket job.</p>
*/
message?: string;
}
export enum JobPrimaryStatus {
CANCELLED = "CANCELLED",
CANCELLING = "CANCELLING",
COMPLETED = "COMPLETED",
FAILED = "FAILED",
QUEUED = "QUEUED",
RUNNING = "RUNNING",
}
export interface GetJobResponse {
/**
* <p>The status of the Amazon Braket job.</p>
*/
status: JobPrimaryStatus | string | undefined;
/**
* <p>The ARN of the Amazon Braket job.</p>
*/
jobArn: string | undefined;
/**
* <p>The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform
* tasks on behalf of a user. It can access user resources, run an Amazon Braket job container
* on behalf of user, and output resources to the s3 buckets of a user.</p>
*/
roleArn: string | undefined;
/**
* <p>A description of the reason why an Amazon Braket job failed, if it failed.</p>
*/
failureReason?: string;
/**
* <p>The name of the Amazon Braket job.</p>
*/
jobName: string | undefined;
/**
* <p>Algorithm-specific parameters used by an Amazon Braket job that influence the quality of
* the traiing job. The values are set with a string of JSON key:value pairs, where the key is
* the name of the hyperparameter and the value is the value of th hyperparameter.</p>
*/
hyperParameters?: Record<string, string>;
/**
* <p>A list of parameters that specify the name and type of input data and where it is
* located.</p>
*/
inputDataConfig?: InputFileConfig[];
/**
* <p>The path to the S3 location where job artifacts are stored and the encryption key used
* to store them there.</p>
*/
outputDataConfig: JobOutputDataConfig | undefined;
/**
* <p>The user-defined criteria that specifies when to stop a job running.</p>
*/
stoppingCondition?: JobStoppingCondition;
/**
* <p>Information about the output locations for job checkpoint data.</p>
*/
checkpointConfig?: JobCheckpointConfig;
/**
* <p>Definition of the Amazon Braket job created. Specifies the container image the job uses,
* information about the Python scripts used for entry and training, and the user-defined
* metrics used to evaluation the job.</p>
*/
algorithmSpecification: AlgorithmSpecification | undefined;
/**
* <p>The resource instances to use while running the hybrid job on Amazon Braket.</p>
*/
instanceConfig: InstanceConfig | undefined;
/**
* <p>The date and time that the Amazon Braket job was created.</p>
*/
createdAt: Date | undefined;
/**
* <p>The date and time that the Amazon Braket job was started.</p>
*/
startedAt?: Date;
/**
* <p>The date and time that the Amazon Braket job ended.</p>
*/
endedAt?: Date;
/**
* <p>The billable time the Amazon Braket job used to complete.</p>
*/
billableDuration?: number;
/**
* <p>The quantum processing unit (QPU) or simulator used to run the Amazon Braket job.</p>
*/
deviceConfig?: DeviceConfig;
/**
* <p>Details about the type and time events occurred related to the Amazon Braket job.</p>
*/
events?: JobEventDetails[];
/**
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
* Amazon Braket resources.</p>
*/
tags?: Record<string, string>;
}
export enum SearchJobsFilterOperator {
BETWEEN = "BETWEEN",
CONTAINS = "CONTAINS",
EQUAL = "EQUAL",
GT = "GT",
GTE = "GTE",
LT = "LT",
LTE = "LTE",
}
/**
* <p>A filter used to search for Amazon Braket jobs.</p>
*/
export interface SearchJobsFilter {
/**
* <p>The name to use for the jobs filter.</p>
*/
name: string | undefined;
/**
* <p>The values to use for the jobs filter.</p>
*/
values: string[] | undefined;
/**
* <p>An operator to use for the jobs filter.</p>
*/
operator: SearchJobsFilterOperator | string | undefined;
}
export interface SearchJobsRequest {
/**
* <p>A token used for pagination of results returned in the response. Use the token returned
* from the previous request to continue results where the previous request ended.</p>
*/
nextToken?: string;
/**
* <p>The maximum number of results to return in the response.</p>
*/
maxResults?: number;
/**
* <p>The filter values to use when searching for a job.</p>
*/
filters: SearchJobsFilter[] | undefined;
}
/**
* <p>Provides summary information about an Amazon Braket job.</p>
*/
export interface JobSummary {
/**
* <p>The status of the Amazon Braket job.</p>
*/
status: JobPrimaryStatus | string | undefined;
/**
* <p>The ARN of the Amazon Braket job.</p>
*/
jobArn: string | undefined;
/**
* <p>The name of the Amazon Braket job.</p>
*/
jobName: string | undefined;
/**
* <p>Provides summary information about the primary device used by an Amazon Braket
* job.</p>
*/
device: string | undefined;
/**
* <p>The date and time that the Amazon Braket job was created.</p>
*/
createdAt: Date | undefined;
/**
* <p>The date and time that the Amazon Braket job was started.</p>
*/
startedAt?: Date;
/**
* <p>The date and time that the Amazon Braket job ended.</p>
*/
endedAt?: Date;
/**
* <p>A tag object that consists of a key and an optional value, used to manage metadata for
* Amazon Braket resources.</p>
*/
tags?: Record<string, string>;
}
export interface SearchJobsResponse {
/**
* <p>An array of <code>JobSummary</code> objects for devices that match the specified filter
* values.</p>
*/
jobs: JobSummary[] | undefined;
/**
* <p>A token used for pagination of results, or <code>null</code> if there are no additional
* results. Use the token value in a subsequent request to continue results where the previous
* request ended.</p>
*/
nextToken?: string;
}
export interface ListTagsForResourceRequest {
/**
* <p>Specify the <code>resourceArn</code> for the resource whose tags to display.</p>
*/
resourceArn: string | undefined;
}
export interface ListTagsForResourceResponse {
/**
* <p>Displays the key, value pairs of tags associated with this resource.</p>
*/
tags?: Record<string, string>;
}
export interface CancelQuantumTaskRequest {
/**
* <p>The ARN of the task to cancel.</p>
*/
quantumTaskArn: string | undefined;
/**
* <p>The client token associated with the request.</p>
*/
clientToken?: string;
}
export interface CancelQuantumTaskResponse {
/**
* <p>The ARN of the task.</p>
*/
quantumTaskArn: string | undefined;
/**
* <p>The status of the cancellation request.</p>
*/
cancellationStatus: CancellationStatus | string | undefined;
}
export interface CreateQuantumTaskRequest {
/**
* <p>The client token associated with the request.</p>
*/
clientToken?: string;
/**
* <p>The ARN of the device to run the task on.</p>
*/
deviceArn: string | undefined;
/**
* <p>The parameters for the device to run the task on.</p>
*/
deviceParameters?: __LazyJsonString | string;
/**
* <p>The number of shots to use for the task.</p>
*/
shots: number | undefined;
/**
* <p>The S3 bucket to store task result files in.</p>
*/
outputS3Bucket: string | undefined;
/**
* <p>The key prefix for the location in the S3 bucket to store task results in.</p>
*/
outputS3KeyPrefix: string | undefined;
/**
* <p>The action associated with the task.</p>
*/
action: __LazyJsonString | string | undefined;
/**
* <p>Tags to be added to the quantum task you're creating.</p>
*/
tags?: Record<string, string>;
/**
* <p>The token for an Amazon Braket job that associates it with the quantum task.</p>
*/
jobToken?: string;
}
export interface CreateQuantumTaskResponse {
/**
* <p>The ARN of the task created by the request.</p>
*/
quantumTaskArn: string | undefined;
}
/**
* <p>The specified device is currently offline.</p>
*/
export class DeviceOfflineException extends __BaseException {
readonly name: "DeviceOfflineException" = "DeviceOfflineException";
readonly $fault: "client" = "client";
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<DeviceOfflineException, __BaseException>) {
super({
name: "DeviceOfflineException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, DeviceOfflineException.prototype);
}
}
export interface GetQuantumTaskRequest {
/**
* <p>the ARN of the task to retrieve.</p>
*/
quantumTaskArn: string | undefined;
}
export enum QuantumTaskStatus {
CANCELLED = "CANCELLED",
CANCELLING = "CANCELLING",
COMPLETED = "COMPLETED",
CREATED = "CREATED",
FAILED = "FAILED",