@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.
- package/README.md +32 -0
- package/dist-cjs/index.js +173 -0
- package/dist-es/Braket.js +8 -0
- package/dist-es/commands/CreateSpendingLimitCommand.js +16 -0
- package/dist-es/commands/DeleteSpendingLimitCommand.js +16 -0
- package/dist-es/commands/SearchSpendingLimitsCommand.js +16 -0
- package/dist-es/commands/UpdateSpendingLimitCommand.js +16 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/pagination/SearchSpendingLimitsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +114 -0
- package/dist-types/Braket.d.ts +29 -0
- package/dist-types/BraketClient.d.ts +6 -2
- package/dist-types/commands/CreateSpendingLimitCommand.d.ts +98 -0
- package/dist-types/commands/DeleteSpendingLimitCommand.d.ts +87 -0
- package/dist-types/commands/SearchSpendingLimitsCommand.d.ts +114 -0
- package/dist-types/commands/UpdateSpendingLimitCommand.d.ts +93 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +219 -0
- package/dist-types/pagination/SearchSpendingLimitsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +17 -0
- package/dist-types/ts3.4/Braket.d.ts +69 -0
- package/dist-types/ts3.4/BraketClient.d.ts +26 -2
- package/dist-types/ts3.4/commands/CreateSpendingLimitCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteSpendingLimitCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchSpendingLimitsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateSpendingLimitCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +55 -0
- package/dist-types/ts3.4/pagination/SearchSpendingLimitsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,93 @@
|
|
|
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 { UpdateSpendingLimitRequest, UpdateSpendingLimitResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateSpendingLimitCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateSpendingLimitCommandInput extends UpdateSpendingLimitRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateSpendingLimitCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateSpendingLimitCommandOutput extends UpdateSpendingLimitResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateSpendingLimitCommand_base: {
|
|
25
|
+
new (input: UpdateSpendingLimitCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSpendingLimitCommandInput, UpdateSpendingLimitCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateSpendingLimitCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSpendingLimitCommandInput, UpdateSpendingLimitCommandOutput, BraketClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates an existing spending limit. You can modify the spending amount or time period. Changes take effect immediately.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BraketClient, UpdateSpendingLimitCommand } from "@aws-sdk/client-braket"; // ES Modules import
|
|
35
|
+
* // const { BraketClient, UpdateSpendingLimitCommand } = 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 = { // UpdateSpendingLimitRequest
|
|
40
|
+
* spendingLimitArn: "STRING_VALUE", // required
|
|
41
|
+
* clientToken: "STRING_VALUE", // required
|
|
42
|
+
* spendingLimit: "STRING_VALUE",
|
|
43
|
+
* timePeriod: { // TimePeriod
|
|
44
|
+
* startAt: new Date("TIMESTAMP"), // required
|
|
45
|
+
* endAt: new Date("TIMESTAMP"), // required
|
|
46
|
+
* },
|
|
47
|
+
* };
|
|
48
|
+
* const command = new UpdateSpendingLimitCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // {};
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param UpdateSpendingLimitCommandInput - {@link UpdateSpendingLimitCommandInput}
|
|
55
|
+
* @returns {@link UpdateSpendingLimitCommandOutput}
|
|
56
|
+
* @see {@link UpdateSpendingLimitCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link UpdateSpendingLimitCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link BraketClientResolvedConfig | config} for BraketClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>You do not have sufficient permissions to perform this action.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServiceException} (server fault)
|
|
64
|
+
* <p>The request failed because of an unknown error.</p>
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
67
|
+
* <p>The specified resource was not found.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
70
|
+
* <p>The API throttling rate limit is exceeded.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
* <p>The input request failed to satisfy constraints expected by Amazon Braket.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link BraketServiceException}
|
|
76
|
+
* <p>Base exception class for all service exceptions from Braket service.</p>
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
export declare class UpdateSpendingLimitCommand extends UpdateSpendingLimitCommand_base {
|
|
82
|
+
/** @internal type navigation helper, not in runtime. */
|
|
83
|
+
protected static __types: {
|
|
84
|
+
api: {
|
|
85
|
+
input: UpdateSpendingLimitRequest;
|
|
86
|
+
output: {};
|
|
87
|
+
};
|
|
88
|
+
sdk: {
|
|
89
|
+
input: UpdateSpendingLimitCommandInput;
|
|
90
|
+
output: UpdateSpendingLimitCommandOutput;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -2,6 +2,8 @@ export * from "./CancelJobCommand";
|
|
|
2
2
|
export * from "./CancelQuantumTaskCommand";
|
|
3
3
|
export * from "./CreateJobCommand";
|
|
4
4
|
export * from "./CreateQuantumTaskCommand";
|
|
5
|
+
export * from "./CreateSpendingLimitCommand";
|
|
6
|
+
export * from "./DeleteSpendingLimitCommand";
|
|
5
7
|
export * from "./GetDeviceCommand";
|
|
6
8
|
export * from "./GetJobCommand";
|
|
7
9
|
export * from "./GetQuantumTaskCommand";
|
|
@@ -9,5 +11,7 @@ export * from "./ListTagsForResourceCommand";
|
|
|
9
11
|
export * from "./SearchDevicesCommand";
|
|
10
12
|
export * from "./SearchJobsCommand";
|
|
11
13
|
export * from "./SearchQuantumTasksCommand";
|
|
14
|
+
export * from "./SearchSpendingLimitsCommand";
|
|
12
15
|
export * from "./TagResourceCommand";
|
|
13
16
|
export * from "./UntagResourceCommand";
|
|
17
|
+
export * from "./UpdateSpendingLimitCommand";
|
|
@@ -1406,6 +1406,225 @@ export interface SearchQuantumTasksResponse {
|
|
|
1406
1406
|
*/
|
|
1407
1407
|
nextToken?: string | undefined;
|
|
1408
1408
|
}
|
|
1409
|
+
/**
|
|
1410
|
+
* <p>Defines a time range for spending limits, specifying when the limit is active.</p>
|
|
1411
|
+
* @public
|
|
1412
|
+
*/
|
|
1413
|
+
export interface TimePeriod {
|
|
1414
|
+
/**
|
|
1415
|
+
* <p>The start date and time for the spending limit period, in epoch seconds.</p>
|
|
1416
|
+
* @public
|
|
1417
|
+
*/
|
|
1418
|
+
startAt: Date | undefined;
|
|
1419
|
+
/**
|
|
1420
|
+
* <p>The end date and time for the spending limit period, in epoch seconds.</p>
|
|
1421
|
+
* @public
|
|
1422
|
+
*/
|
|
1423
|
+
endAt: Date | undefined;
|
|
1424
|
+
}
|
|
1425
|
+
/**
|
|
1426
|
+
* @public
|
|
1427
|
+
*/
|
|
1428
|
+
export interface CreateSpendingLimitRequest {
|
|
1429
|
+
/**
|
|
1430
|
+
* <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Braket ignores the request, but does not return an error.</p>
|
|
1431
|
+
* @public
|
|
1432
|
+
*/
|
|
1433
|
+
clientToken?: string | undefined;
|
|
1434
|
+
/**
|
|
1435
|
+
* <p>The Amazon Resource Name (ARN) of the quantum device to apply the spending limit to.</p>
|
|
1436
|
+
* @public
|
|
1437
|
+
*/
|
|
1438
|
+
deviceArn: string | undefined;
|
|
1439
|
+
/**
|
|
1440
|
+
* <p>The maximum amount that can be spent on the specified device, in USD.</p>
|
|
1441
|
+
* @public
|
|
1442
|
+
*/
|
|
1443
|
+
spendingLimit: string | undefined;
|
|
1444
|
+
/**
|
|
1445
|
+
* <p>The time period during which the spending limit is active, including start and end dates.</p>
|
|
1446
|
+
* @public
|
|
1447
|
+
*/
|
|
1448
|
+
timePeriod?: TimePeriod | undefined;
|
|
1449
|
+
/**
|
|
1450
|
+
* <p>The tags to apply to the spending limit. Each tag consists of a key and an optional value.</p>
|
|
1451
|
+
* @public
|
|
1452
|
+
*/
|
|
1453
|
+
tags?: Record<string, string> | undefined;
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* @public
|
|
1457
|
+
*/
|
|
1458
|
+
export interface CreateSpendingLimitResponse {
|
|
1459
|
+
/**
|
|
1460
|
+
* <p>The Amazon Resource Name (ARN) of the created spending limit.</p>
|
|
1461
|
+
* @public
|
|
1462
|
+
*/
|
|
1463
|
+
spendingLimitArn: string | undefined;
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* @public
|
|
1467
|
+
*/
|
|
1468
|
+
export interface DeleteSpendingLimitRequest {
|
|
1469
|
+
/**
|
|
1470
|
+
* <p>The Amazon Resource Name (ARN) of the spending limit to delete.</p>
|
|
1471
|
+
* @public
|
|
1472
|
+
*/
|
|
1473
|
+
spendingLimitArn: string | undefined;
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* @public
|
|
1477
|
+
*/
|
|
1478
|
+
export interface DeleteSpendingLimitResponse {
|
|
1479
|
+
}
|
|
1480
|
+
/**
|
|
1481
|
+
* @public
|
|
1482
|
+
* @enum
|
|
1483
|
+
*/
|
|
1484
|
+
export declare const SearchSpendingLimitsFilterOperator: {
|
|
1485
|
+
readonly EQUAL: "EQUAL";
|
|
1486
|
+
};
|
|
1487
|
+
/**
|
|
1488
|
+
* @public
|
|
1489
|
+
*/
|
|
1490
|
+
export type SearchSpendingLimitsFilterOperator = (typeof SearchSpendingLimitsFilterOperator)[keyof typeof SearchSpendingLimitsFilterOperator];
|
|
1491
|
+
/**
|
|
1492
|
+
* <p>Specifies filter criteria for searching spending limits. Use filters to narrow down results based on specific attributes.</p>
|
|
1493
|
+
* @public
|
|
1494
|
+
*/
|
|
1495
|
+
export interface SearchSpendingLimitsFilter {
|
|
1496
|
+
/**
|
|
1497
|
+
* <p>The name of the field to filter on. Currently only supports <code>deviceArn</code>.</p>
|
|
1498
|
+
* @public
|
|
1499
|
+
*/
|
|
1500
|
+
name: string | undefined;
|
|
1501
|
+
/**
|
|
1502
|
+
* <p>An array of values to match against the specified field.</p>
|
|
1503
|
+
* @public
|
|
1504
|
+
*/
|
|
1505
|
+
values: string[] | undefined;
|
|
1506
|
+
/**
|
|
1507
|
+
* <p>The comparison operator to use when filtering.</p>
|
|
1508
|
+
* @public
|
|
1509
|
+
*/
|
|
1510
|
+
operator: SearchSpendingLimitsFilterOperator | undefined;
|
|
1511
|
+
}
|
|
1512
|
+
/**
|
|
1513
|
+
* @public
|
|
1514
|
+
*/
|
|
1515
|
+
export interface SearchSpendingLimitsRequest {
|
|
1516
|
+
/**
|
|
1517
|
+
* <p>The token to retrieve the next page of results. This value is returned from a previous call to SearchSpendingLimits when there are more results available.</p>
|
|
1518
|
+
* @public
|
|
1519
|
+
*/
|
|
1520
|
+
nextToken?: string | undefined;
|
|
1521
|
+
/**
|
|
1522
|
+
* <p>The maximum number of results to return in a single call. Minimum value of 1, maximum value of 100. Default is 20.</p>
|
|
1523
|
+
* @public
|
|
1524
|
+
*/
|
|
1525
|
+
maxResults?: number | undefined;
|
|
1526
|
+
/**
|
|
1527
|
+
* <p>The filters to apply when searching for spending limits. Use filters to narrow down the results based on specific criteria.</p>
|
|
1528
|
+
* @public
|
|
1529
|
+
*/
|
|
1530
|
+
filters?: SearchSpendingLimitsFilter[] | undefined;
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* <p>Contains summary information about a spending limit, including current spending status and configuration details.</p>
|
|
1534
|
+
* @public
|
|
1535
|
+
*/
|
|
1536
|
+
export interface SpendingLimitSummary {
|
|
1537
|
+
/**
|
|
1538
|
+
* <p>The Amazon Resource Name (ARN) that uniquely identifies the spending limit.</p>
|
|
1539
|
+
* @public
|
|
1540
|
+
*/
|
|
1541
|
+
spendingLimitArn: string | undefined;
|
|
1542
|
+
/**
|
|
1543
|
+
* <p>The Amazon Resource Name (ARN) of the quantum device associated with this spending limit.</p>
|
|
1544
|
+
* @public
|
|
1545
|
+
*/
|
|
1546
|
+
deviceArn: string | undefined;
|
|
1547
|
+
/**
|
|
1548
|
+
* <p>The time period during which the spending limit is active.</p>
|
|
1549
|
+
* @public
|
|
1550
|
+
*/
|
|
1551
|
+
timePeriod: TimePeriod | undefined;
|
|
1552
|
+
/**
|
|
1553
|
+
* <p>The maximum spending amount allowed for the device during the specified time period, in USD.</p>
|
|
1554
|
+
* @public
|
|
1555
|
+
*/
|
|
1556
|
+
spendingLimit: string | undefined;
|
|
1557
|
+
/**
|
|
1558
|
+
* <p>The amount currently queued for spending on the device, in USD.</p>
|
|
1559
|
+
* @public
|
|
1560
|
+
*/
|
|
1561
|
+
queuedSpend: string | undefined;
|
|
1562
|
+
/**
|
|
1563
|
+
* <p>The total amount spent on the device so far during the current time period, in USD.</p>
|
|
1564
|
+
* @public
|
|
1565
|
+
*/
|
|
1566
|
+
totalSpend: string | undefined;
|
|
1567
|
+
/**
|
|
1568
|
+
* <p>The date and time when the spending limit was created, in epoch seconds.</p>
|
|
1569
|
+
* @public
|
|
1570
|
+
*/
|
|
1571
|
+
createdAt: Date | undefined;
|
|
1572
|
+
/**
|
|
1573
|
+
* <p>The date and time when the spending limit was last modified, in epoch seconds.</p>
|
|
1574
|
+
* @public
|
|
1575
|
+
*/
|
|
1576
|
+
updatedAt: Date | undefined;
|
|
1577
|
+
/**
|
|
1578
|
+
* <p>The tags associated with the spending limit. Each tag consists of a key and an optional value.</p>
|
|
1579
|
+
* @public
|
|
1580
|
+
*/
|
|
1581
|
+
tags?: Record<string, string> | undefined;
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* @public
|
|
1585
|
+
*/
|
|
1586
|
+
export interface SearchSpendingLimitsResponse {
|
|
1587
|
+
/**
|
|
1588
|
+
* <p>An array of spending limit summaries that match the specified filters.</p>
|
|
1589
|
+
* @public
|
|
1590
|
+
*/
|
|
1591
|
+
spendingLimits: SpendingLimitSummary[] | undefined;
|
|
1592
|
+
/**
|
|
1593
|
+
* <p>The token to retrieve the next page of results. This value is null when there are no more results to return.</p>
|
|
1594
|
+
* @public
|
|
1595
|
+
*/
|
|
1596
|
+
nextToken?: string | undefined;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* @public
|
|
1600
|
+
*/
|
|
1601
|
+
export interface UpdateSpendingLimitRequest {
|
|
1602
|
+
/**
|
|
1603
|
+
* <p>The Amazon Resource Name (ARN) of the spending limit to update.</p>
|
|
1604
|
+
* @public
|
|
1605
|
+
*/
|
|
1606
|
+
spendingLimitArn: string | undefined;
|
|
1607
|
+
/**
|
|
1608
|
+
* <p>A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Braket ignores the request, but does not return an error.</p>
|
|
1609
|
+
* @public
|
|
1610
|
+
*/
|
|
1611
|
+
clientToken?: string | undefined;
|
|
1612
|
+
/**
|
|
1613
|
+
* <p>The new maximum amount that can be spent on the specified device, in USD.</p>
|
|
1614
|
+
* @public
|
|
1615
|
+
*/
|
|
1616
|
+
spendingLimit?: string | undefined;
|
|
1617
|
+
/**
|
|
1618
|
+
* <p>The new time period during which the spending limit is active, including start and end dates.</p>
|
|
1619
|
+
* @public
|
|
1620
|
+
*/
|
|
1621
|
+
timePeriod?: TimePeriod | undefined;
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* @public
|
|
1625
|
+
*/
|
|
1626
|
+
export interface UpdateSpendingLimitResponse {
|
|
1627
|
+
}
|
|
1409
1628
|
/**
|
|
1410
1629
|
* @public
|
|
1411
1630
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { SearchSpendingLimitsCommandInput, SearchSpendingLimitsCommandOutput } from "../commands/SearchSpendingLimitsCommand";
|
|
3
|
+
import { BraketPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateSearchSpendingLimits: (config: BraketPaginationConfiguration, input: SearchSpendingLimitsCommandInput, ...rest: any[]) => Paginator<SearchSpendingLimitsCommandOutput>;
|
|
@@ -14,7 +14,11 @@ export declare var CreateJobRequest: StaticStructureSchema;
|
|
|
14
14
|
export declare var CreateJobResponse: StaticStructureSchema;
|
|
15
15
|
export declare var CreateQuantumTaskRequest: StaticStructureSchema;
|
|
16
16
|
export declare var CreateQuantumTaskResponse: StaticStructureSchema;
|
|
17
|
+
export declare var CreateSpendingLimitRequest: StaticStructureSchema;
|
|
18
|
+
export declare var CreateSpendingLimitResponse: StaticStructureSchema;
|
|
17
19
|
export declare var DataSource: StaticStructureSchema;
|
|
20
|
+
export declare var DeleteSpendingLimitRequest: StaticStructureSchema;
|
|
21
|
+
export declare var DeleteSpendingLimitResponse: StaticStructureSchema;
|
|
18
22
|
export declare var DeviceConfig: StaticStructureSchema;
|
|
19
23
|
export declare var DeviceOfflineException: StaticErrorSchema;
|
|
20
24
|
export declare var DeviceQueueInfo: StaticStructureSchema;
|
|
@@ -52,12 +56,19 @@ export declare var SearchJobsResponse: StaticStructureSchema;
|
|
|
52
56
|
export declare var SearchQuantumTasksFilter: StaticStructureSchema;
|
|
53
57
|
export declare var SearchQuantumTasksRequest: StaticStructureSchema;
|
|
54
58
|
export declare var SearchQuantumTasksResponse: StaticStructureSchema;
|
|
59
|
+
export declare var SearchSpendingLimitsFilter: StaticStructureSchema;
|
|
60
|
+
export declare var SearchSpendingLimitsRequest: StaticStructureSchema;
|
|
61
|
+
export declare var SearchSpendingLimitsResponse: StaticStructureSchema;
|
|
55
62
|
export declare var ServiceQuotaExceededException: StaticErrorSchema;
|
|
63
|
+
export declare var SpendingLimitSummary: StaticStructureSchema;
|
|
56
64
|
export declare var TagResourceRequest: StaticStructureSchema;
|
|
57
65
|
export declare var TagResourceResponse: StaticStructureSchema;
|
|
58
66
|
export declare var ThrottlingException: StaticErrorSchema;
|
|
67
|
+
export declare var TimePeriod: StaticStructureSchema;
|
|
59
68
|
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
60
69
|
export declare var UntagResourceResponse: StaticStructureSchema;
|
|
70
|
+
export declare var UpdateSpendingLimitRequest: StaticStructureSchema;
|
|
71
|
+
export declare var UpdateSpendingLimitResponse: StaticStructureSchema;
|
|
61
72
|
export declare var ValidationException: StaticErrorSchema;
|
|
62
73
|
export declare var BraketServiceException: StaticErrorSchema;
|
|
63
74
|
export declare var Associations: StaticListSchema;
|
|
@@ -74,6 +85,8 @@ export declare var QuantumTaskSummaryList: StaticListSchema;
|
|
|
74
85
|
export declare var SearchDevicesFilterList: StaticListSchema;
|
|
75
86
|
export declare var SearchJobsFilterList: StaticListSchema;
|
|
76
87
|
export declare var SearchQuantumTasksFilterList: StaticListSchema;
|
|
88
|
+
export declare var SearchSpendingLimitsFilterList: StaticListSchema;
|
|
89
|
+
export declare var SpendingLimitSummaryList: StaticListSchema;
|
|
77
90
|
export declare var String256List: number;
|
|
78
91
|
export declare var TagKeys: number;
|
|
79
92
|
export declare var HyperParameters: number;
|
|
@@ -83,6 +96,8 @@ export declare var CancelJob: StaticOperationSchema;
|
|
|
83
96
|
export declare var CancelQuantumTask: StaticOperationSchema;
|
|
84
97
|
export declare var CreateJob: StaticOperationSchema;
|
|
85
98
|
export declare var CreateQuantumTask: StaticOperationSchema;
|
|
99
|
+
export declare var CreateSpendingLimit: StaticOperationSchema;
|
|
100
|
+
export declare var DeleteSpendingLimit: StaticOperationSchema;
|
|
86
101
|
export declare var GetDevice: StaticOperationSchema;
|
|
87
102
|
export declare var GetJob: StaticOperationSchema;
|
|
88
103
|
export declare var GetQuantumTask: StaticOperationSchema;
|
|
@@ -90,5 +105,7 @@ export declare var ListTagsForResource: StaticOperationSchema;
|
|
|
90
105
|
export declare var SearchDevices: StaticOperationSchema;
|
|
91
106
|
export declare var SearchJobs: StaticOperationSchema;
|
|
92
107
|
export declare var SearchQuantumTasks: StaticOperationSchema;
|
|
108
|
+
export declare var SearchSpendingLimits: StaticOperationSchema;
|
|
93
109
|
export declare var TagResource: StaticOperationSchema;
|
|
94
110
|
export declare var UntagResource: StaticOperationSchema;
|
|
111
|
+
export declare var UpdateSpendingLimit: StaticOperationSchema;
|
|
@@ -16,6 +16,14 @@ import {
|
|
|
16
16
|
CreateQuantumTaskCommandInput,
|
|
17
17
|
CreateQuantumTaskCommandOutput,
|
|
18
18
|
} from "./commands/CreateQuantumTaskCommand";
|
|
19
|
+
import {
|
|
20
|
+
CreateSpendingLimitCommandInput,
|
|
21
|
+
CreateSpendingLimitCommandOutput,
|
|
22
|
+
} from "./commands/CreateSpendingLimitCommand";
|
|
23
|
+
import {
|
|
24
|
+
DeleteSpendingLimitCommandInput,
|
|
25
|
+
DeleteSpendingLimitCommandOutput,
|
|
26
|
+
} from "./commands/DeleteSpendingLimitCommand";
|
|
19
27
|
import {
|
|
20
28
|
GetDeviceCommandInput,
|
|
21
29
|
GetDeviceCommandOutput,
|
|
@@ -44,6 +52,10 @@ import {
|
|
|
44
52
|
SearchQuantumTasksCommandInput,
|
|
45
53
|
SearchQuantumTasksCommandOutput,
|
|
46
54
|
} from "./commands/SearchQuantumTasksCommand";
|
|
55
|
+
import {
|
|
56
|
+
SearchSpendingLimitsCommandInput,
|
|
57
|
+
SearchSpendingLimitsCommandOutput,
|
|
58
|
+
} from "./commands/SearchSpendingLimitsCommand";
|
|
47
59
|
import {
|
|
48
60
|
TagResourceCommandInput,
|
|
49
61
|
TagResourceCommandOutput,
|
|
@@ -52,6 +64,10 @@ import {
|
|
|
52
64
|
UntagResourceCommandInput,
|
|
53
65
|
UntagResourceCommandOutput,
|
|
54
66
|
} from "./commands/UntagResourceCommand";
|
|
67
|
+
import {
|
|
68
|
+
UpdateSpendingLimitCommandInput,
|
|
69
|
+
UpdateSpendingLimitCommandOutput,
|
|
70
|
+
} from "./commands/UpdateSpendingLimitCommand";
|
|
55
71
|
export interface Braket {
|
|
56
72
|
cancelJob(
|
|
57
73
|
args: CancelJobCommandInput,
|
|
@@ -105,6 +121,32 @@ export interface Braket {
|
|
|
105
121
|
options: __HttpHandlerOptions,
|
|
106
122
|
cb: (err: any, data?: CreateQuantumTaskCommandOutput) => void
|
|
107
123
|
): void;
|
|
124
|
+
createSpendingLimit(
|
|
125
|
+
args: CreateSpendingLimitCommandInput,
|
|
126
|
+
options?: __HttpHandlerOptions
|
|
127
|
+
): Promise<CreateSpendingLimitCommandOutput>;
|
|
128
|
+
createSpendingLimit(
|
|
129
|
+
args: CreateSpendingLimitCommandInput,
|
|
130
|
+
cb: (err: any, data?: CreateSpendingLimitCommandOutput) => void
|
|
131
|
+
): void;
|
|
132
|
+
createSpendingLimit(
|
|
133
|
+
args: CreateSpendingLimitCommandInput,
|
|
134
|
+
options: __HttpHandlerOptions,
|
|
135
|
+
cb: (err: any, data?: CreateSpendingLimitCommandOutput) => void
|
|
136
|
+
): void;
|
|
137
|
+
deleteSpendingLimit(
|
|
138
|
+
args: DeleteSpendingLimitCommandInput,
|
|
139
|
+
options?: __HttpHandlerOptions
|
|
140
|
+
): Promise<DeleteSpendingLimitCommandOutput>;
|
|
141
|
+
deleteSpendingLimit(
|
|
142
|
+
args: DeleteSpendingLimitCommandInput,
|
|
143
|
+
cb: (err: any, data?: DeleteSpendingLimitCommandOutput) => void
|
|
144
|
+
): void;
|
|
145
|
+
deleteSpendingLimit(
|
|
146
|
+
args: DeleteSpendingLimitCommandInput,
|
|
147
|
+
options: __HttpHandlerOptions,
|
|
148
|
+
cb: (err: any, data?: DeleteSpendingLimitCommandOutput) => void
|
|
149
|
+
): void;
|
|
108
150
|
getDevice(
|
|
109
151
|
args: GetDeviceCommandInput,
|
|
110
152
|
options?: __HttpHandlerOptions
|
|
@@ -196,6 +238,20 @@ export interface Braket {
|
|
|
196
238
|
options: __HttpHandlerOptions,
|
|
197
239
|
cb: (err: any, data?: SearchQuantumTasksCommandOutput) => void
|
|
198
240
|
): void;
|
|
241
|
+
searchSpendingLimits(): Promise<SearchSpendingLimitsCommandOutput>;
|
|
242
|
+
searchSpendingLimits(
|
|
243
|
+
args: SearchSpendingLimitsCommandInput,
|
|
244
|
+
options?: __HttpHandlerOptions
|
|
245
|
+
): Promise<SearchSpendingLimitsCommandOutput>;
|
|
246
|
+
searchSpendingLimits(
|
|
247
|
+
args: SearchSpendingLimitsCommandInput,
|
|
248
|
+
cb: (err: any, data?: SearchSpendingLimitsCommandOutput) => void
|
|
249
|
+
): void;
|
|
250
|
+
searchSpendingLimits(
|
|
251
|
+
args: SearchSpendingLimitsCommandInput,
|
|
252
|
+
options: __HttpHandlerOptions,
|
|
253
|
+
cb: (err: any, data?: SearchSpendingLimitsCommandOutput) => void
|
|
254
|
+
): void;
|
|
199
255
|
tagResource(
|
|
200
256
|
args: TagResourceCommandInput,
|
|
201
257
|
options?: __HttpHandlerOptions
|
|
@@ -222,5 +278,18 @@ export interface Braket {
|
|
|
222
278
|
options: __HttpHandlerOptions,
|
|
223
279
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
224
280
|
): void;
|
|
281
|
+
updateSpendingLimit(
|
|
282
|
+
args: UpdateSpendingLimitCommandInput,
|
|
283
|
+
options?: __HttpHandlerOptions
|
|
284
|
+
): Promise<UpdateSpendingLimitCommandOutput>;
|
|
285
|
+
updateSpendingLimit(
|
|
286
|
+
args: UpdateSpendingLimitCommandInput,
|
|
287
|
+
cb: (err: any, data?: UpdateSpendingLimitCommandOutput) => void
|
|
288
|
+
): void;
|
|
289
|
+
updateSpendingLimit(
|
|
290
|
+
args: UpdateSpendingLimitCommandInput,
|
|
291
|
+
options: __HttpHandlerOptions,
|
|
292
|
+
cb: (err: any, data?: UpdateSpendingLimitCommandOutput) => void
|
|
293
|
+
): void;
|
|
225
294
|
}
|
|
226
295
|
export declare class Braket extends BraketClient implements Braket {}
|
|
@@ -64,6 +64,14 @@ import {
|
|
|
64
64
|
CreateQuantumTaskCommandInput,
|
|
65
65
|
CreateQuantumTaskCommandOutput,
|
|
66
66
|
} from "./commands/CreateQuantumTaskCommand";
|
|
67
|
+
import {
|
|
68
|
+
CreateSpendingLimitCommandInput,
|
|
69
|
+
CreateSpendingLimitCommandOutput,
|
|
70
|
+
} from "./commands/CreateSpendingLimitCommand";
|
|
71
|
+
import {
|
|
72
|
+
DeleteSpendingLimitCommandInput,
|
|
73
|
+
DeleteSpendingLimitCommandOutput,
|
|
74
|
+
} from "./commands/DeleteSpendingLimitCommand";
|
|
67
75
|
import {
|
|
68
76
|
GetDeviceCommandInput,
|
|
69
77
|
GetDeviceCommandOutput,
|
|
@@ -92,6 +100,10 @@ import {
|
|
|
92
100
|
SearchQuantumTasksCommandInput,
|
|
93
101
|
SearchQuantumTasksCommandOutput,
|
|
94
102
|
} from "./commands/SearchQuantumTasksCommand";
|
|
103
|
+
import {
|
|
104
|
+
SearchSpendingLimitsCommandInput,
|
|
105
|
+
SearchSpendingLimitsCommandOutput,
|
|
106
|
+
} from "./commands/SearchSpendingLimitsCommand";
|
|
95
107
|
import {
|
|
96
108
|
TagResourceCommandInput,
|
|
97
109
|
TagResourceCommandOutput,
|
|
@@ -100,6 +112,10 @@ import {
|
|
|
100
112
|
UntagResourceCommandInput,
|
|
101
113
|
UntagResourceCommandOutput,
|
|
102
114
|
} from "./commands/UntagResourceCommand";
|
|
115
|
+
import {
|
|
116
|
+
UpdateSpendingLimitCommandInput,
|
|
117
|
+
UpdateSpendingLimitCommandOutput,
|
|
118
|
+
} from "./commands/UpdateSpendingLimitCommand";
|
|
103
119
|
import {
|
|
104
120
|
ClientInputEndpointParameters,
|
|
105
121
|
ClientResolvedEndpointParameters,
|
|
@@ -112,6 +128,8 @@ export type ServiceInputTypes =
|
|
|
112
128
|
| CancelQuantumTaskCommandInput
|
|
113
129
|
| CreateJobCommandInput
|
|
114
130
|
| CreateQuantumTaskCommandInput
|
|
131
|
+
| CreateSpendingLimitCommandInput
|
|
132
|
+
| DeleteSpendingLimitCommandInput
|
|
115
133
|
| GetDeviceCommandInput
|
|
116
134
|
| GetJobCommandInput
|
|
117
135
|
| GetQuantumTaskCommandInput
|
|
@@ -119,13 +137,17 @@ export type ServiceInputTypes =
|
|
|
119
137
|
| SearchDevicesCommandInput
|
|
120
138
|
| SearchJobsCommandInput
|
|
121
139
|
| SearchQuantumTasksCommandInput
|
|
140
|
+
| SearchSpendingLimitsCommandInput
|
|
122
141
|
| TagResourceCommandInput
|
|
123
|
-
| UntagResourceCommandInput
|
|
142
|
+
| UntagResourceCommandInput
|
|
143
|
+
| UpdateSpendingLimitCommandInput;
|
|
124
144
|
export type ServiceOutputTypes =
|
|
125
145
|
| CancelJobCommandOutput
|
|
126
146
|
| CancelQuantumTaskCommandOutput
|
|
127
147
|
| CreateJobCommandOutput
|
|
128
148
|
| CreateQuantumTaskCommandOutput
|
|
149
|
+
| CreateSpendingLimitCommandOutput
|
|
150
|
+
| DeleteSpendingLimitCommandOutput
|
|
129
151
|
| GetDeviceCommandOutput
|
|
130
152
|
| GetJobCommandOutput
|
|
131
153
|
| GetQuantumTaskCommandOutput
|
|
@@ -133,8 +155,10 @@ export type ServiceOutputTypes =
|
|
|
133
155
|
| SearchDevicesCommandOutput
|
|
134
156
|
| SearchJobsCommandOutput
|
|
135
157
|
| SearchQuantumTasksCommandOutput
|
|
158
|
+
| SearchSpendingLimitsCommandOutput
|
|
136
159
|
| TagResourceCommandOutput
|
|
137
|
-
| UntagResourceCommandOutput
|
|
160
|
+
| UntagResourceCommandOutput
|
|
161
|
+
| UpdateSpendingLimitCommandOutput;
|
|
138
162
|
export interface ClientDefaults
|
|
139
163
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
140
164
|
requestHandler?: __HttpHandlerUserInput;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
BraketClientResolvedConfig,
|
|
5
|
+
ServiceInputTypes,
|
|
6
|
+
ServiceOutputTypes,
|
|
7
|
+
} from "../BraketClient";
|
|
8
|
+
import {
|
|
9
|
+
CreateSpendingLimitRequest,
|
|
10
|
+
CreateSpendingLimitResponse,
|
|
11
|
+
} from "../models/models_0";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface CreateSpendingLimitCommandInput
|
|
15
|
+
extends CreateSpendingLimitRequest {}
|
|
16
|
+
export interface CreateSpendingLimitCommandOutput
|
|
17
|
+
extends CreateSpendingLimitResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const CreateSpendingLimitCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: CreateSpendingLimitCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
CreateSpendingLimitCommandInput,
|
|
24
|
+
CreateSpendingLimitCommandOutput,
|
|
25
|
+
BraketClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: CreateSpendingLimitCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
CreateSpendingLimitCommandInput,
|
|
33
|
+
CreateSpendingLimitCommandOutput,
|
|
34
|
+
BraketClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class CreateSpendingLimitCommand extends CreateSpendingLimitCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: CreateSpendingLimitRequest;
|
|
44
|
+
output: CreateSpendingLimitResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: CreateSpendingLimitCommandInput;
|
|
48
|
+
output: CreateSpendingLimitCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|