@aws-sdk/client-braket 3.936.0 → 3.939.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 +324 -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/index.js +1 -0
- package/dist-es/models/enums.js +132 -0
- package/dist-es/models/models_0.js +1 -129
- 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/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +276 -0
- package/dist-types/models/errors.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +209 -265
- 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/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +162 -0
- package/dist-types/ts3.4/models/errors.d.ts +2 -4
- package/dist-types/ts3.4/models/models_0.d.ts +69 -157
- 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 +2 -2
|
@@ -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
|
+
}
|
|
@@ -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";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
|
|
|
10
10
|
export type { BraketExtensionConfiguration } from "./extensionConfiguration";
|
|
11
11
|
export * from "./commands";
|
|
12
12
|
export * from "./pagination";
|
|
13
|
+
export * from "./models/enums";
|
|
13
14
|
export * from "./models/errors";
|
|
14
15
|
export type * from "./models/models_0";
|
|
15
16
|
export { BraketServiceException } from "./models/BraketServiceException";
|