@aws-sdk/client-braket 3.936.0 → 3.937.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +173 -0
  3. package/dist-es/Braket.js +8 -0
  4. package/dist-es/commands/CreateSpendingLimitCommand.js +16 -0
  5. package/dist-es/commands/DeleteSpendingLimitCommand.js +16 -0
  6. package/dist-es/commands/SearchSpendingLimitsCommand.js +16 -0
  7. package/dist-es/commands/UpdateSpendingLimitCommand.js +16 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +3 -0
  10. package/dist-es/pagination/SearchSpendingLimitsPaginator.js +4 -0
  11. package/dist-es/pagination/index.js +1 -0
  12. package/dist-es/schemas/schemas_0.js +114 -0
  13. package/dist-types/Braket.d.ts +29 -0
  14. package/dist-types/BraketClient.d.ts +6 -2
  15. package/dist-types/commands/CreateSpendingLimitCommand.d.ts +98 -0
  16. package/dist-types/commands/DeleteSpendingLimitCommand.d.ts +87 -0
  17. package/dist-types/commands/SearchSpendingLimitsCommand.d.ts +114 -0
  18. package/dist-types/commands/UpdateSpendingLimitCommand.d.ts +93 -0
  19. package/dist-types/commands/index.d.ts +4 -0
  20. package/dist-types/models/models_0.d.ts +219 -0
  21. package/dist-types/pagination/SearchSpendingLimitsPaginator.d.ts +7 -0
  22. package/dist-types/pagination/index.d.ts +1 -0
  23. package/dist-types/schemas/schemas_0.d.ts +17 -0
  24. package/dist-types/ts3.4/Braket.d.ts +69 -0
  25. package/dist-types/ts3.4/BraketClient.d.ts +26 -2
  26. package/dist-types/ts3.4/commands/CreateSpendingLimitCommand.d.ts +51 -0
  27. package/dist-types/ts3.4/commands/DeleteSpendingLimitCommand.d.ts +51 -0
  28. package/dist-types/ts3.4/commands/SearchSpendingLimitsCommand.d.ts +51 -0
  29. package/dist-types/ts3.4/commands/UpdateSpendingLimitCommand.d.ts +51 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +55 -0
  32. package/dist-types/ts3.4/pagination/SearchSpendingLimitsPaginator.d.ts +11 -0
  33. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  34. package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
  35. package/package.json +1 -1
@@ -17,6 +17,9 @@ const _CQTRa = "CancelQuantumTaskResponse";
17
17
  const _CQTRr = "CreateQuantumTaskRequest";
18
18
  const _CQTRre = "CreateQuantumTaskResponse";
19
19
  const _CQTr = "CreateQuantumTask";
20
+ const _CSL = "CreateSpendingLimit";
21
+ const _CSLR = "CreateSpendingLimitRequest";
22
+ const _CSLRr = "CreateSpendingLimitResponse";
20
23
  const _DC = "DeviceConfig";
21
24
  const _DOE = "DeviceOfflineException";
22
25
  const _DQI = "DeviceQueueInfo";
@@ -24,6 +27,9 @@ const _DQIL = "DeviceQueueInfoList";
24
27
  const _DRE = "DeviceRetiredException";
25
28
  const _DS = "DataSource";
26
29
  const _DSL = "DeviceSummaryList";
30
+ const _DSLR = "DeleteSpendingLimitRequest";
31
+ const _DSLRe = "DeleteSpendingLimitResponse";
32
+ const _DSLe = "DeleteSpendingLimit";
27
33
  const _DSe = "DeviceSummary";
28
34
  const _EC = "ExperimentalCapabilities";
29
35
  const _GD = "GetDevice";
@@ -68,6 +74,8 @@ const _SJF = "SearchJobsFilter";
68
74
  const _SJFL = "SearchJobsFilterList";
69
75
  const _SJR = "SearchJobsRequest";
70
76
  const _SJRe = "SearchJobsResponse";
77
+ const _SLS = "SpendingLimitSummary";
78
+ const _SLSL = "SpendingLimitSummaryList";
71
79
  const _SMC = "ScriptModeConfig";
72
80
  const _SQEE = "ServiceQuotaExceededException";
73
81
  const _SQT = "SearchQuantumTasks";
@@ -75,13 +83,22 @@ const _SQTF = "SearchQuantumTasksFilter";
75
83
  const _SQTFL = "SearchQuantumTasksFilterList";
76
84
  const _SQTR = "SearchQuantumTasksRequest";
77
85
  const _SQTRe = "SearchQuantumTasksResponse";
86
+ const _SSL = "SearchSpendingLimits";
87
+ const _SSLF = "SearchSpendingLimitsFilter";
88
+ const _SSLFL = "SearchSpendingLimitsFilterList";
89
+ const _SSLR = "SearchSpendingLimitsRequest";
90
+ const _SSLRe = "SearchSpendingLimitsResponse";
78
91
  const _TE = "ThrottlingException";
92
+ const _TP = "TimePeriod";
79
93
  const _TR = "TagResource";
80
94
  const _TRR = "TagResourceRequest";
81
95
  const _TRRa = "TagResourceResponse";
82
96
  const _UR = "UntagResource";
83
97
  const _URR = "UntagResourceRequest";
84
98
  const _URRn = "UntagResourceResponse";
99
+ const _USL = "UpdateSpendingLimit";
100
+ const _USLR = "UpdateSpendingLimitRequest";
101
+ const _USLRp = "UpdateSpendingLimitResponse";
85
102
  const _VE = "ValidationException";
86
103
  const _a = "application/json";
87
104
  const _aAN = "additionalAttributeNames";
@@ -114,6 +131,7 @@ const _dT = "deviceType";
114
131
  const _de = "devices";
115
132
  const _e = "error";
116
133
  const _eA = "endedAt";
134
+ const _eAn = "endAt";
117
135
  const _eC = "executableCount";
118
136
  const _eCx = "experimentalCapabilities";
119
137
  const _eP = "entryPoint";
@@ -159,6 +177,7 @@ const _q = "queue";
159
177
  const _qI = "queueInfo";
160
178
  const _qP = "queuePriority";
161
179
  const _qS = "queueSize";
180
+ const _qSu = "queuedSpend";
162
181
  const _qT = "quantumTasks";
163
182
  const _qTA = "quantumTaskArn";
164
183
  const _r = "reason";
@@ -166,8 +185,12 @@ const _rA = "roleArn";
166
185
  const _rAe = "resourceArn";
167
186
  const _s = "shots";
168
187
  const _sA = "startedAt";
188
+ const _sAt = "startAt";
169
189
  const _sC = "stoppingCondition";
170
190
  const _sDS = "s3DataSource";
191
+ const _sL = "spendingLimit";
192
+ const _sLA = "spendingLimitArn";
193
+ const _sLp = "spendingLimits";
171
194
  const _sMC = "scriptModeConfig";
172
195
  const _sP = "s3Path";
173
196
  const _sU = "s3Uri";
@@ -177,8 +200,11 @@ const _st = "status";
177
200
  const _t = "type";
178
201
  const _tK = "tagKeys";
179
202
  const _tOE = "timeOfEvent";
203
+ const _tP = "timePeriod";
204
+ const _tS = "totalSpend";
180
205
  const _ta = "tags";
181
206
  const _u = "uri";
207
+ const _uA = "updatedAt";
182
208
  const _v = "values";
183
209
  const _vSIG = "volumeSizeInGb";
184
210
  const n0 = "com.amazonaws.braket";
@@ -287,7 +313,18 @@ export var CreateQuantumTaskRequest = [
287
313
  ],
288
314
  ];
289
315
  export var CreateQuantumTaskResponse = [3, n0, _CQTRre, 0, [_qTA], [0]];
316
+ export var CreateSpendingLimitRequest = [
317
+ 3,
318
+ n0,
319
+ _CSLR,
320
+ 0,
321
+ [_cT, _dA, _sL, _tP, _ta],
322
+ [[0, 4], 0, 0, () => TimePeriod, 128 | 0],
323
+ ];
324
+ export var CreateSpendingLimitResponse = [3, n0, _CSLRr, 0, [_sLA], [0]];
290
325
  export var DataSource = [3, n0, _DS, 0, [_sDS], [() => S3DataSource]];
326
+ export var DeleteSpendingLimitRequest = [3, n0, _DSLR, 0, [_sLA], [[0, 1]]];
327
+ export var DeleteSpendingLimitResponse = [3, n0, _DSLRe, 0, [], []];
291
328
  export var DeviceConfig = [3, n0, _DC, 0, [_d], [0]];
292
329
  export var DeviceOfflineException = [
293
330
  -3,
@@ -502,6 +539,23 @@ export var SearchQuantumTasksResponse = [
502
539
  [_qT, _nT],
503
540
  [() => QuantumTaskSummaryList, 0],
504
541
  ];
542
+ export var SearchSpendingLimitsFilter = [3, n0, _SSLF, 0, [_n, _v, _o], [0, 64 | 0, 0]];
543
+ export var SearchSpendingLimitsRequest = [
544
+ 3,
545
+ n0,
546
+ _SSLR,
547
+ 0,
548
+ [_nT, _mR, _f],
549
+ [0, 1, () => SearchSpendingLimitsFilterList],
550
+ ];
551
+ export var SearchSpendingLimitsResponse = [
552
+ 3,
553
+ n0,
554
+ _SSLRe,
555
+ 0,
556
+ [_sLp, _nT],
557
+ [() => SpendingLimitSummaryList, 0],
558
+ ];
505
559
  export var ServiceQuotaExceededException = [
506
560
  -3,
507
561
  n0,
@@ -514,6 +568,14 @@ export var ServiceQuotaExceededException = [
514
568
  [0],
515
569
  ];
516
570
  TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
571
+ export var SpendingLimitSummary = [
572
+ 3,
573
+ n0,
574
+ _SLS,
575
+ 0,
576
+ [_sLA, _dA, _tP, _sL, _qSu, _tS, _cA, _uA, _ta],
577
+ [0, 0, () => TimePeriod, 0, 0, 0, 5, 5, 128 | 0],
578
+ ];
517
579
  export var TagResourceRequest = [3, n0, _TRR, 0, [_rAe, _ta], [[0, 1], 128 | 0]];
518
580
  export var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
519
581
  export var ThrottlingException = [
@@ -528,6 +590,7 @@ export var ThrottlingException = [
528
590
  [0],
529
591
  ];
530
592
  TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
593
+ export var TimePeriod = [3, n0, _TP, 0, [_sAt, _eAn], [7, 7]];
531
594
  export var UntagResourceRequest = [
532
595
  3,
533
596
  n0,
@@ -545,6 +608,15 @@ export var UntagResourceRequest = [
545
608
  ],
546
609
  ];
547
610
  export var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
611
+ export var UpdateSpendingLimitRequest = [
612
+ 3,
613
+ n0,
614
+ _USLR,
615
+ 0,
616
+ [_sLA, _cT, _sL, _tP],
617
+ [[0, 1], [0, 4], 0, () => TimePeriod],
618
+ ];
619
+ export var UpdateSpendingLimitResponse = [3, n0, _USLRp, 0, [], []];
548
620
  export var ValidationException = [
549
621
  -3,
550
622
  n0,
@@ -573,6 +645,8 @@ export var QuantumTaskSummaryList = [1, n0, _QTSL, 0, () => QuantumTaskSummary];
573
645
  export var SearchDevicesFilterList = [1, n0, _SDFL, 0, () => SearchDevicesFilter];
574
646
  export var SearchJobsFilterList = [1, n0, _SJFL, 0, () => SearchJobsFilter];
575
647
  export var SearchQuantumTasksFilterList = [1, n0, _SQTFL, 0, () => SearchQuantumTasksFilter];
648
+ export var SearchSpendingLimitsFilterList = [1, n0, _SSLFL, 0, () => SearchSpendingLimitsFilter];
649
+ export var SpendingLimitSummaryList = [1, n0, _SLSL, 0, () => SpendingLimitSummary];
576
650
  export var String256List = 64 | 0;
577
651
  export var TagKeys = 64 | 0;
578
652
  export var HyperParameters = 128 | 0;
@@ -618,6 +692,26 @@ export var CreateQuantumTask = [
618
692
  () => CreateQuantumTaskRequest,
619
693
  () => CreateQuantumTaskResponse,
620
694
  ];
695
+ export var CreateSpendingLimit = [
696
+ 9,
697
+ n0,
698
+ _CSL,
699
+ {
700
+ [_h]: ["POST", "/spending-limit", 201],
701
+ },
702
+ () => CreateSpendingLimitRequest,
703
+ () => CreateSpendingLimitResponse,
704
+ ];
705
+ export var DeleteSpendingLimit = [
706
+ 9,
707
+ n0,
708
+ _DSLe,
709
+ {
710
+ [_h]: ["DELETE", "/spending-limit/{spendingLimitArn}/delete", 200],
711
+ },
712
+ () => DeleteSpendingLimitRequest,
713
+ () => DeleteSpendingLimitResponse,
714
+ ];
621
715
  export var GetDevice = [
622
716
  9,
623
717
  n0,
@@ -688,6 +782,16 @@ export var SearchQuantumTasks = [
688
782
  () => SearchQuantumTasksRequest,
689
783
  () => SearchQuantumTasksResponse,
690
784
  ];
785
+ export var SearchSpendingLimits = [
786
+ 9,
787
+ n0,
788
+ _SSL,
789
+ {
790
+ [_h]: ["POST", "/spending-limits", 200],
791
+ },
792
+ () => SearchSpendingLimitsRequest,
793
+ () => SearchSpendingLimitsResponse,
794
+ ];
691
795
  export var TagResource = [
692
796
  9,
693
797
  n0,
@@ -708,3 +812,13 @@ export var UntagResource = [
708
812
  () => UntagResourceRequest,
709
813
  () => UntagResourceResponse,
710
814
  ];
815
+ export var UpdateSpendingLimit = [
816
+ 9,
817
+ n0,
818
+ _USL,
819
+ {
820
+ [_h]: ["PATCH", "/spending-limit/{spendingLimitArn}/update", 200],
821
+ },
822
+ () => UpdateSpendingLimitRequest,
823
+ () => UpdateSpendingLimitResponse,
824
+ ];
@@ -4,6 +4,8 @@ import { CancelJobCommandInput, CancelJobCommandOutput } from "./commands/Cancel
4
4
  import { CancelQuantumTaskCommandInput, CancelQuantumTaskCommandOutput } from "./commands/CancelQuantumTaskCommand";
5
5
  import { CreateJobCommandInput, CreateJobCommandOutput } from "./commands/CreateJobCommand";
6
6
  import { CreateQuantumTaskCommandInput, CreateQuantumTaskCommandOutput } from "./commands/CreateQuantumTaskCommand";
7
+ import { CreateSpendingLimitCommandInput, CreateSpendingLimitCommandOutput } from "./commands/CreateSpendingLimitCommand";
8
+ import { DeleteSpendingLimitCommandInput, DeleteSpendingLimitCommandOutput } from "./commands/DeleteSpendingLimitCommand";
7
9
  import { GetDeviceCommandInput, GetDeviceCommandOutput } from "./commands/GetDeviceCommand";
8
10
  import { GetJobCommandInput, GetJobCommandOutput } from "./commands/GetJobCommand";
9
11
  import { GetQuantumTaskCommandInput, GetQuantumTaskCommandOutput } from "./commands/GetQuantumTaskCommand";
@@ -11,8 +13,10 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
11
13
  import { SearchDevicesCommandInput, SearchDevicesCommandOutput } from "./commands/SearchDevicesCommand";
12
14
  import { SearchJobsCommandInput, SearchJobsCommandOutput } from "./commands/SearchJobsCommand";
13
15
  import { SearchQuantumTasksCommandInput, SearchQuantumTasksCommandOutput } from "./commands/SearchQuantumTasksCommand";
16
+ import { SearchSpendingLimitsCommandInput, SearchSpendingLimitsCommandOutput } from "./commands/SearchSpendingLimitsCommand";
14
17
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
15
18
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
19
+ import { UpdateSpendingLimitCommandInput, UpdateSpendingLimitCommandOutput } from "./commands/UpdateSpendingLimitCommand";
16
20
  export interface Braket {
17
21
  /**
18
22
  * @see {@link CancelJobCommand}
@@ -38,6 +42,18 @@ export interface Braket {
38
42
  createQuantumTask(args: CreateQuantumTaskCommandInput, options?: __HttpHandlerOptions): Promise<CreateQuantumTaskCommandOutput>;
39
43
  createQuantumTask(args: CreateQuantumTaskCommandInput, cb: (err: any, data?: CreateQuantumTaskCommandOutput) => void): void;
40
44
  createQuantumTask(args: CreateQuantumTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateQuantumTaskCommandOutput) => void): void;
45
+ /**
46
+ * @see {@link CreateSpendingLimitCommand}
47
+ */
48
+ createSpendingLimit(args: CreateSpendingLimitCommandInput, options?: __HttpHandlerOptions): Promise<CreateSpendingLimitCommandOutput>;
49
+ createSpendingLimit(args: CreateSpendingLimitCommandInput, cb: (err: any, data?: CreateSpendingLimitCommandOutput) => void): void;
50
+ createSpendingLimit(args: CreateSpendingLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSpendingLimitCommandOutput) => void): void;
51
+ /**
52
+ * @see {@link DeleteSpendingLimitCommand}
53
+ */
54
+ deleteSpendingLimit(args: DeleteSpendingLimitCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSpendingLimitCommandOutput>;
55
+ deleteSpendingLimit(args: DeleteSpendingLimitCommandInput, cb: (err: any, data?: DeleteSpendingLimitCommandOutput) => void): void;
56
+ deleteSpendingLimit(args: DeleteSpendingLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSpendingLimitCommandOutput) => void): void;
41
57
  /**
42
58
  * @see {@link GetDeviceCommand}
43
59
  */
@@ -80,6 +96,13 @@ export interface Braket {
80
96
  searchQuantumTasks(args: SearchQuantumTasksCommandInput, options?: __HttpHandlerOptions): Promise<SearchQuantumTasksCommandOutput>;
81
97
  searchQuantumTasks(args: SearchQuantumTasksCommandInput, cb: (err: any, data?: SearchQuantumTasksCommandOutput) => void): void;
82
98
  searchQuantumTasks(args: SearchQuantumTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchQuantumTasksCommandOutput) => void): void;
99
+ /**
100
+ * @see {@link SearchSpendingLimitsCommand}
101
+ */
102
+ searchSpendingLimits(): Promise<SearchSpendingLimitsCommandOutput>;
103
+ searchSpendingLimits(args: SearchSpendingLimitsCommandInput, options?: __HttpHandlerOptions): Promise<SearchSpendingLimitsCommandOutput>;
104
+ searchSpendingLimits(args: SearchSpendingLimitsCommandInput, cb: (err: any, data?: SearchSpendingLimitsCommandOutput) => void): void;
105
+ searchSpendingLimits(args: SearchSpendingLimitsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchSpendingLimitsCommandOutput) => void): void;
83
106
  /**
84
107
  * @see {@link TagResourceCommand}
85
108
  */
@@ -92,6 +115,12 @@ export interface Braket {
92
115
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
93
116
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
94
117
  untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
118
+ /**
119
+ * @see {@link UpdateSpendingLimitCommand}
120
+ */
121
+ updateSpendingLimit(args: UpdateSpendingLimitCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSpendingLimitCommandOutput>;
122
+ updateSpendingLimit(args: UpdateSpendingLimitCommandInput, cb: (err: any, data?: UpdateSpendingLimitCommandOutput) => void): void;
123
+ updateSpendingLimit(args: UpdateSpendingLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSpendingLimitCommandOutput) => void): void;
95
124
  }
96
125
  /**
97
126
  * <p>The Amazon Braket API Reference provides information about the operations and structures supported by Amazon Braket.</p> <p>To learn about the permissions required to call an Amazon Braket API action, see <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonbraket.html">Actions, resources, and condition keys for Amazon Braket</a>. <a href="https://amazon-braket-sdk-python.readthedocs.io/en/latest/#">Amazon Braket Python SDK</a> and the <a href="https://docs.aws.amazon.com/cli/latest/reference/braket/">AWS Command Line Interface</a> can be used to make discovery and creation of API calls easier. For more information about Amazon Braket features, see <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">What is Amazon Braket?</a> and important <a href="https://docs.aws.amazon.com/braket/latest/developerguide/braket-terms.html">terms and concepts</a> in the <i>Amazon Braket Developer Guide</i>.</p> <p> <b>In this guide:</b> </p> <ul> <li> <p/> </li> <li> <p/> </li> <li> <p> <a>CommonParameters</a> </p> </li> <li> <p> <a>CommonErrors</a> </p> </li> </ul> <p> <b>Available languages for AWS SDK:</b> </p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/Braket/NBraket.html">.NET</a> </p> </li> <li> <p> <a href="https://sdk.amazonaws.com/cpp/api/LATEST/root/html/index.html">C++</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/sdk-for-go/api/service/braket/">Go API reference</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/braket/package-summary.html">Java</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Braket.html">JavaScript</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/aws-sdk-php/v3/api/class-Aws.Braket.BraketClient.html">PHP</a> </p> </li> <li> <p> <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/braket.html">Python (Boto)</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Braket.html">Ruby</a> </p> </li> </ul> <p> <b>Code examples from the Amazon Braket Tutorials GitHub repository:</b> </p> <ul> <li> <p> <a href="https://github.com/amazon-braket/amazon-braket-examples">Amazon Braket Examples</a> </p> </li> </ul>
@@ -11,6 +11,8 @@ import { CancelJobCommandInput, CancelJobCommandOutput } from "./commands/Cancel
11
11
  import { CancelQuantumTaskCommandInput, CancelQuantumTaskCommandOutput } from "./commands/CancelQuantumTaskCommand";
12
12
  import { CreateJobCommandInput, CreateJobCommandOutput } from "./commands/CreateJobCommand";
13
13
  import { CreateQuantumTaskCommandInput, CreateQuantumTaskCommandOutput } from "./commands/CreateQuantumTaskCommand";
14
+ import { CreateSpendingLimitCommandInput, CreateSpendingLimitCommandOutput } from "./commands/CreateSpendingLimitCommand";
15
+ import { DeleteSpendingLimitCommandInput, DeleteSpendingLimitCommandOutput } from "./commands/DeleteSpendingLimitCommand";
14
16
  import { GetDeviceCommandInput, GetDeviceCommandOutput } from "./commands/GetDeviceCommand";
15
17
  import { GetJobCommandInput, GetJobCommandOutput } from "./commands/GetJobCommand";
16
18
  import { GetQuantumTaskCommandInput, GetQuantumTaskCommandOutput } from "./commands/GetQuantumTaskCommand";
@@ -18,19 +20,21 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
18
20
  import { SearchDevicesCommandInput, SearchDevicesCommandOutput } from "./commands/SearchDevicesCommand";
19
21
  import { SearchJobsCommandInput, SearchJobsCommandOutput } from "./commands/SearchJobsCommand";
20
22
  import { SearchQuantumTasksCommandInput, SearchQuantumTasksCommandOutput } from "./commands/SearchQuantumTasksCommand";
23
+ import { SearchSpendingLimitsCommandInput, SearchSpendingLimitsCommandOutput } from "./commands/SearchSpendingLimitsCommand";
21
24
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
22
25
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
+ import { UpdateSpendingLimitCommandInput, UpdateSpendingLimitCommandOutput } from "./commands/UpdateSpendingLimitCommand";
23
27
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
24
28
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
25
29
  export { __Client };
26
30
  /**
27
31
  * @public
28
32
  */
29
- export type ServiceInputTypes = CancelJobCommandInput | CancelQuantumTaskCommandInput | CreateJobCommandInput | CreateQuantumTaskCommandInput | GetDeviceCommandInput | GetJobCommandInput | GetQuantumTaskCommandInput | ListTagsForResourceCommandInput | SearchDevicesCommandInput | SearchJobsCommandInput | SearchQuantumTasksCommandInput | TagResourceCommandInput | UntagResourceCommandInput;
33
+ export type ServiceInputTypes = CancelJobCommandInput | CancelQuantumTaskCommandInput | CreateJobCommandInput | CreateQuantumTaskCommandInput | CreateSpendingLimitCommandInput | DeleteSpendingLimitCommandInput | GetDeviceCommandInput | GetJobCommandInput | GetQuantumTaskCommandInput | ListTagsForResourceCommandInput | SearchDevicesCommandInput | SearchJobsCommandInput | SearchQuantumTasksCommandInput | SearchSpendingLimitsCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSpendingLimitCommandInput;
30
34
  /**
31
35
  * @public
32
36
  */
33
- export type ServiceOutputTypes = CancelJobCommandOutput | CancelQuantumTaskCommandOutput | CreateJobCommandOutput | CreateQuantumTaskCommandOutput | GetDeviceCommandOutput | GetJobCommandOutput | GetQuantumTaskCommandOutput | ListTagsForResourceCommandOutput | SearchDevicesCommandOutput | SearchJobsCommandOutput | SearchQuantumTasksCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput;
37
+ export type ServiceOutputTypes = CancelJobCommandOutput | CancelQuantumTaskCommandOutput | CreateJobCommandOutput | CreateQuantumTaskCommandOutput | CreateSpendingLimitCommandOutput | DeleteSpendingLimitCommandOutput | GetDeviceCommandOutput | GetJobCommandOutput | GetQuantumTaskCommandOutput | ListTagsForResourceCommandOutput | SearchDevicesCommandOutput | SearchJobsCommandOutput | SearchQuantumTasksCommandOutput | SearchSpendingLimitsCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSpendingLimitCommandOutput;
34
38
  /**
35
39
  * @public
36
40
  */
@@ -0,0 +1,98 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BraketClient";
4
+ import { CreateSpendingLimitRequest, CreateSpendingLimitResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateSpendingLimitCommand}.
14
+ */
15
+ export interface CreateSpendingLimitCommandInput extends CreateSpendingLimitRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateSpendingLimitCommand}.
21
+ */
22
+ export interface CreateSpendingLimitCommandOutput extends CreateSpendingLimitResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateSpendingLimitCommand_base: {
25
+ new (input: CreateSpendingLimitCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSpendingLimitCommandInput, CreateSpendingLimitCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateSpendingLimitCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSpendingLimitCommandInput, CreateSpendingLimitCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a spending limit for a specified quantum device. Spending limits help you control costs by setting maximum amounts that can be spent on quantum computing tasks within a specified time period. Simulators do not support spending limits.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BraketClient, CreateSpendingLimitCommand } from "@aws-sdk/client-braket"; // ES Modules import
35
+ * // const { BraketClient, CreateSpendingLimitCommand } = require("@aws-sdk/client-braket"); // CommonJS import
36
+ * // import type { BraketClientConfig } from "@aws-sdk/client-braket";
37
+ * const config = {}; // type is BraketClientConfig
38
+ * const client = new BraketClient(config);
39
+ * const input = { // CreateSpendingLimitRequest
40
+ * clientToken: "STRING_VALUE", // required
41
+ * deviceArn: "STRING_VALUE", // required
42
+ * spendingLimit: "STRING_VALUE", // required
43
+ * timePeriod: { // TimePeriod
44
+ * startAt: new Date("TIMESTAMP"), // required
45
+ * endAt: new Date("TIMESTAMP"), // required
46
+ * },
47
+ * tags: { // TagsMap
48
+ * "<keys>": "STRING_VALUE",
49
+ * },
50
+ * };
51
+ * const command = new CreateSpendingLimitCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // CreateSpendingLimitResponse
54
+ * // spendingLimitArn: "STRING_VALUE", // required
55
+ * // };
56
+ *
57
+ * ```
58
+ *
59
+ * @param CreateSpendingLimitCommandInput - {@link CreateSpendingLimitCommandInput}
60
+ * @returns {@link CreateSpendingLimitCommandOutput}
61
+ * @see {@link CreateSpendingLimitCommandInput} for command's `input` shape.
62
+ * @see {@link CreateSpendingLimitCommandOutput} for command's `response` shape.
63
+ * @see {@link BraketClientResolvedConfig | config} for BraketClient's `config` shape.
64
+ *
65
+ * @throws {@link AccessDeniedException} (client fault)
66
+ * <p>You do not have sufficient permissions to perform this action.</p>
67
+ *
68
+ * @throws {@link DeviceRetiredException} (client fault)
69
+ * <p>The specified device has been retired.</p>
70
+ *
71
+ * @throws {@link InternalServiceException} (server fault)
72
+ * <p>The request failed because of an unknown error.</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>The API throttling rate limit is exceeded.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The input request failed to satisfy constraints expected by Amazon Braket.</p>
79
+ *
80
+ * @throws {@link BraketServiceException}
81
+ * <p>Base exception class for all service exceptions from Braket service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class CreateSpendingLimitCommand extends CreateSpendingLimitCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: CreateSpendingLimitRequest;
91
+ output: CreateSpendingLimitResponse;
92
+ };
93
+ sdk: {
94
+ input: CreateSpendingLimitCommandInput;
95
+ output: CreateSpendingLimitCommandOutput;
96
+ };
97
+ };
98
+ }
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BraketClient";
4
+ import { DeleteSpendingLimitRequest, DeleteSpendingLimitResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteSpendingLimitCommand}.
14
+ */
15
+ export interface DeleteSpendingLimitCommandInput extends DeleteSpendingLimitRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteSpendingLimitCommand}.
21
+ */
22
+ export interface DeleteSpendingLimitCommandOutput extends DeleteSpendingLimitResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteSpendingLimitCommand_base: {
25
+ new (input: DeleteSpendingLimitCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSpendingLimitCommandInput, DeleteSpendingLimitCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteSpendingLimitCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteSpendingLimitCommandInput, DeleteSpendingLimitCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes an existing spending limit. This operation permanently removes the spending limit and cannot be undone. After deletion, the associated device becomes unrestricted for spending.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BraketClient, DeleteSpendingLimitCommand } from "@aws-sdk/client-braket"; // ES Modules import
35
+ * // const { BraketClient, DeleteSpendingLimitCommand } = require("@aws-sdk/client-braket"); // CommonJS import
36
+ * // import type { BraketClientConfig } from "@aws-sdk/client-braket";
37
+ * const config = {}; // type is BraketClientConfig
38
+ * const client = new BraketClient(config);
39
+ * const input = { // DeleteSpendingLimitRequest
40
+ * spendingLimitArn: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new DeleteSpendingLimitCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteSpendingLimitCommandInput - {@link DeleteSpendingLimitCommandInput}
49
+ * @returns {@link DeleteSpendingLimitCommandOutput}
50
+ * @see {@link DeleteSpendingLimitCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteSpendingLimitCommandOutput} for command's `response` shape.
52
+ * @see {@link BraketClientResolvedConfig | config} for BraketClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient permissions to perform this action.</p>
56
+ *
57
+ * @throws {@link InternalServiceException} (server fault)
58
+ * <p>The request failed because of an unknown error.</p>
59
+ *
60
+ * @throws {@link ResourceNotFoundException} (client fault)
61
+ * <p>The specified resource was not found.</p>
62
+ *
63
+ * @throws {@link ThrottlingException} (client fault)
64
+ * <p>The API throttling rate limit is exceeded.</p>
65
+ *
66
+ * @throws {@link ValidationException} (client fault)
67
+ * <p>The input request failed to satisfy constraints expected by Amazon Braket.</p>
68
+ *
69
+ * @throws {@link BraketServiceException}
70
+ * <p>Base exception class for all service exceptions from Braket service.</p>
71
+ *
72
+ *
73
+ * @public
74
+ */
75
+ export declare class DeleteSpendingLimitCommand extends DeleteSpendingLimitCommand_base {
76
+ /** @internal type navigation helper, not in runtime. */
77
+ protected static __types: {
78
+ api: {
79
+ input: DeleteSpendingLimitRequest;
80
+ output: {};
81
+ };
82
+ sdk: {
83
+ input: DeleteSpendingLimitCommandInput;
84
+ output: DeleteSpendingLimitCommandOutput;
85
+ };
86
+ };
87
+ }
@@ -0,0 +1,114 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BraketClient";
4
+ import { SearchSpendingLimitsRequest, SearchSpendingLimitsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SearchSpendingLimitsCommand}.
14
+ */
15
+ export interface SearchSpendingLimitsCommandInput extends SearchSpendingLimitsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SearchSpendingLimitsCommand}.
21
+ */
22
+ export interface SearchSpendingLimitsCommandOutput extends SearchSpendingLimitsResponse, __MetadataBearer {
23
+ }
24
+ declare const SearchSpendingLimitsCommand_base: {
25
+ new (input: SearchSpendingLimitsCommandInput): import("@smithy/smithy-client").CommandImpl<SearchSpendingLimitsCommandInput, SearchSpendingLimitsCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [SearchSpendingLimitsCommandInput]): import("@smithy/smithy-client").CommandImpl<SearchSpendingLimitsCommandInput, SearchSpendingLimitsCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Searches and lists spending limits based on specified filters. This operation supports pagination and allows filtering by various criteria to find specific spending limits. We recommend using pagination to ensure that the operation returns quickly and successfully.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BraketClient, SearchSpendingLimitsCommand } from "@aws-sdk/client-braket"; // ES Modules import
35
+ * // const { BraketClient, SearchSpendingLimitsCommand } = require("@aws-sdk/client-braket"); // CommonJS import
36
+ * // import type { BraketClientConfig } from "@aws-sdk/client-braket";
37
+ * const config = {}; // type is BraketClientConfig
38
+ * const client = new BraketClient(config);
39
+ * const input = { // SearchSpendingLimitsRequest
40
+ * nextToken: "STRING_VALUE",
41
+ * maxResults: Number("int"),
42
+ * filters: [ // SearchSpendingLimitsFilterList
43
+ * { // SearchSpendingLimitsFilter
44
+ * name: "STRING_VALUE", // required
45
+ * values: [ // String256List // required
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * operator: "STRING_VALUE", // required
49
+ * },
50
+ * ],
51
+ * };
52
+ * const command = new SearchSpendingLimitsCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // SearchSpendingLimitsResponse
55
+ * // spendingLimits: [ // SpendingLimitSummaryList // required
56
+ * // { // SpendingLimitSummary
57
+ * // spendingLimitArn: "STRING_VALUE", // required
58
+ * // deviceArn: "STRING_VALUE", // required
59
+ * // timePeriod: { // TimePeriod
60
+ * // startAt: new Date("TIMESTAMP"), // required
61
+ * // endAt: new Date("TIMESTAMP"), // required
62
+ * // },
63
+ * // spendingLimit: "STRING_VALUE", // required
64
+ * // queuedSpend: "STRING_VALUE", // required
65
+ * // totalSpend: "STRING_VALUE", // required
66
+ * // createdAt: new Date("TIMESTAMP"), // required
67
+ * // updatedAt: new Date("TIMESTAMP"), // required
68
+ * // tags: { // TagsMap
69
+ * // "<keys>": "STRING_VALUE",
70
+ * // },
71
+ * // },
72
+ * // ],
73
+ * // nextToken: "STRING_VALUE",
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param SearchSpendingLimitsCommandInput - {@link SearchSpendingLimitsCommandInput}
79
+ * @returns {@link SearchSpendingLimitsCommandOutput}
80
+ * @see {@link SearchSpendingLimitsCommandInput} for command's `input` shape.
81
+ * @see {@link SearchSpendingLimitsCommandOutput} for command's `response` shape.
82
+ * @see {@link BraketClientResolvedConfig | config} for BraketClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>You do not have sufficient permissions to perform this action.</p>
86
+ *
87
+ * @throws {@link InternalServiceException} (server fault)
88
+ * <p>The request failed because of an unknown error.</p>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p>The API throttling rate limit is exceeded.</p>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p>The input request failed to satisfy constraints expected by Amazon Braket.</p>
95
+ *
96
+ * @throws {@link BraketServiceException}
97
+ * <p>Base exception class for all service exceptions from Braket service.</p>
98
+ *
99
+ *
100
+ * @public
101
+ */
102
+ export declare class SearchSpendingLimitsCommand extends SearchSpendingLimitsCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: SearchSpendingLimitsRequest;
107
+ output: SearchSpendingLimitsResponse;
108
+ };
109
+ sdk: {
110
+ input: SearchSpendingLimitsCommandInput;
111
+ output: SearchSpendingLimitsCommandOutput;
112
+ };
113
+ };
114
+ }