@aws-sdk/client-budgets 3.490.0 → 3.496.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Budgets.js +1 -57
- package/dist-cjs/BudgetsClient.js +1 -43
- package/dist-cjs/commands/CreateBudgetActionCommand.js +1 -29
- package/dist-cjs/commands/CreateBudgetCommand.js +1 -29
- package/dist-cjs/commands/CreateNotificationCommand.js +1 -29
- package/dist-cjs/commands/CreateSubscriberCommand.js +1 -29
- package/dist-cjs/commands/DeleteBudgetActionCommand.js +1 -29
- package/dist-cjs/commands/DeleteBudgetCommand.js +1 -28
- package/dist-cjs/commands/DeleteNotificationCommand.js +1 -28
- package/dist-cjs/commands/DeleteSubscriberCommand.js +1 -29
- package/dist-cjs/commands/DescribeBudgetActionCommand.js +1 -29
- package/dist-cjs/commands/DescribeBudgetActionHistoriesCommand.js +1 -29
- package/dist-cjs/commands/DescribeBudgetActionsForAccountCommand.js +1 -29
- package/dist-cjs/commands/DescribeBudgetActionsForBudgetCommand.js +1 -29
- package/dist-cjs/commands/DescribeBudgetCommand.js +1 -28
- package/dist-cjs/commands/DescribeBudgetNotificationsForAccountCommand.js +1 -28
- package/dist-cjs/commands/DescribeBudgetPerformanceHistoryCommand.js +1 -28
- package/dist-cjs/commands/DescribeBudgetsCommand.js +1 -28
- package/dist-cjs/commands/DescribeNotificationsForBudgetCommand.js +1 -28
- package/dist-cjs/commands/DescribeSubscribersForNotificationCommand.js +1 -29
- package/dist-cjs/commands/ExecuteBudgetActionCommand.js +1 -28
- package/dist-cjs/commands/UpdateBudgetActionCommand.js +1 -29
- package/dist-cjs/commands/UpdateBudgetCommand.js +1 -28
- package/dist-cjs/commands/UpdateNotificationCommand.js +1 -28
- package/dist-cjs/commands/UpdateSubscriberCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -26
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2842 -11
- package/dist-cjs/models/BudgetsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -317
- package/dist-cjs/pagination/DescribeBudgetActionHistoriesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeBudgetActionsForAccountPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeBudgetActionsForBudgetPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeBudgetNotificationsForAccountPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeBudgetPerformanceHistoryPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeBudgetsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeNotificationsForBudgetPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSubscribersForNotificationPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/index.js +1 -12
- package/dist-cjs/protocols/Aws_json1_1.js +1 -1819
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1819 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateSubscriberCommand = exports.de_UpdateNotificationCommand = exports.de_UpdateBudgetActionCommand = exports.de_UpdateBudgetCommand = exports.de_ExecuteBudgetActionCommand = exports.de_DescribeSubscribersForNotificationCommand = exports.de_DescribeNotificationsForBudgetCommand = exports.de_DescribeBudgetsCommand = exports.de_DescribeBudgetPerformanceHistoryCommand = exports.de_DescribeBudgetNotificationsForAccountCommand = exports.de_DescribeBudgetActionsForBudgetCommand = exports.de_DescribeBudgetActionsForAccountCommand = exports.de_DescribeBudgetActionHistoriesCommand = exports.de_DescribeBudgetActionCommand = exports.de_DescribeBudgetCommand = exports.de_DeleteSubscriberCommand = exports.de_DeleteNotificationCommand = exports.de_DeleteBudgetActionCommand = exports.de_DeleteBudgetCommand = exports.de_CreateSubscriberCommand = exports.de_CreateNotificationCommand = exports.de_CreateBudgetActionCommand = exports.de_CreateBudgetCommand = exports.se_UpdateSubscriberCommand = exports.se_UpdateNotificationCommand = exports.se_UpdateBudgetActionCommand = exports.se_UpdateBudgetCommand = exports.se_ExecuteBudgetActionCommand = exports.se_DescribeSubscribersForNotificationCommand = exports.se_DescribeNotificationsForBudgetCommand = exports.se_DescribeBudgetsCommand = exports.se_DescribeBudgetPerformanceHistoryCommand = exports.se_DescribeBudgetNotificationsForAccountCommand = exports.se_DescribeBudgetActionsForBudgetCommand = exports.se_DescribeBudgetActionsForAccountCommand = exports.se_DescribeBudgetActionHistoriesCommand = exports.se_DescribeBudgetActionCommand = exports.se_DescribeBudgetCommand = exports.se_DeleteSubscriberCommand = exports.se_DeleteNotificationCommand = exports.se_DeleteBudgetActionCommand = exports.se_DeleteBudgetCommand = exports.se_CreateSubscriberCommand = exports.se_CreateNotificationCommand = exports.se_CreateBudgetActionCommand = exports.se_CreateBudgetCommand = void 0;
|
|
4
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const BudgetsServiceException_1 = require("../models/BudgetsServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_CreateBudgetCommand = async (input, context) => {
|
|
9
|
-
const headers = sharedHeaders("CreateBudget");
|
|
10
|
-
let body;
|
|
11
|
-
body = JSON.stringify(se_CreateBudgetRequest(input, context));
|
|
12
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
|
-
};
|
|
14
|
-
exports.se_CreateBudgetCommand = se_CreateBudgetCommand;
|
|
15
|
-
const se_CreateBudgetActionCommand = async (input, context) => {
|
|
16
|
-
const headers = sharedHeaders("CreateBudgetAction");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify(se_CreateBudgetActionRequest(input, context));
|
|
19
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
20
|
-
};
|
|
21
|
-
exports.se_CreateBudgetActionCommand = se_CreateBudgetActionCommand;
|
|
22
|
-
const se_CreateNotificationCommand = async (input, context) => {
|
|
23
|
-
const headers = sharedHeaders("CreateNotification");
|
|
24
|
-
let body;
|
|
25
|
-
body = JSON.stringify(se_CreateNotificationRequest(input, context));
|
|
26
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
|
-
};
|
|
28
|
-
exports.se_CreateNotificationCommand = se_CreateNotificationCommand;
|
|
29
|
-
const se_CreateSubscriberCommand = async (input, context) => {
|
|
30
|
-
const headers = sharedHeaders("CreateSubscriber");
|
|
31
|
-
let body;
|
|
32
|
-
body = JSON.stringify(se_CreateSubscriberRequest(input, context));
|
|
33
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
|
-
};
|
|
35
|
-
exports.se_CreateSubscriberCommand = se_CreateSubscriberCommand;
|
|
36
|
-
const se_DeleteBudgetCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteBudget");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
exports.se_DeleteBudgetCommand = se_DeleteBudgetCommand;
|
|
43
|
-
const se_DeleteBudgetActionCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteBudgetAction");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
exports.se_DeleteBudgetActionCommand = se_DeleteBudgetActionCommand;
|
|
50
|
-
const se_DeleteNotificationCommand = async (input, context) => {
|
|
51
|
-
const headers = sharedHeaders("DeleteNotification");
|
|
52
|
-
let body;
|
|
53
|
-
body = JSON.stringify(se_DeleteNotificationRequest(input, context));
|
|
54
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
55
|
-
};
|
|
56
|
-
exports.se_DeleteNotificationCommand = se_DeleteNotificationCommand;
|
|
57
|
-
const se_DeleteSubscriberCommand = async (input, context) => {
|
|
58
|
-
const headers = sharedHeaders("DeleteSubscriber");
|
|
59
|
-
let body;
|
|
60
|
-
body = JSON.stringify(se_DeleteSubscriberRequest(input, context));
|
|
61
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
62
|
-
};
|
|
63
|
-
exports.se_DeleteSubscriberCommand = se_DeleteSubscriberCommand;
|
|
64
|
-
const se_DescribeBudgetCommand = async (input, context) => {
|
|
65
|
-
const headers = sharedHeaders("DescribeBudget");
|
|
66
|
-
let body;
|
|
67
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
68
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
69
|
-
};
|
|
70
|
-
exports.se_DescribeBudgetCommand = se_DescribeBudgetCommand;
|
|
71
|
-
const se_DescribeBudgetActionCommand = async (input, context) => {
|
|
72
|
-
const headers = sharedHeaders("DescribeBudgetAction");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
exports.se_DescribeBudgetActionCommand = se_DescribeBudgetActionCommand;
|
|
78
|
-
const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DescribeBudgetActionHistories");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input, context));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
exports.se_DescribeBudgetActionHistoriesCommand = se_DescribeBudgetActionHistoriesCommand;
|
|
85
|
-
const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DescribeBudgetActionsForAccount");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
exports.se_DescribeBudgetActionsForAccountCommand = se_DescribeBudgetActionsForAccountCommand;
|
|
92
|
-
const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
|
|
93
|
-
const headers = sharedHeaders("DescribeBudgetActionsForBudget");
|
|
94
|
-
let body;
|
|
95
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
|
-
};
|
|
98
|
-
exports.se_DescribeBudgetActionsForBudgetCommand = se_DescribeBudgetActionsForBudgetCommand;
|
|
99
|
-
const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
100
|
-
const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
exports.se_DescribeBudgetNotificationsForAccountCommand = se_DescribeBudgetNotificationsForAccountCommand;
|
|
106
|
-
const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
107
|
-
const headers = sharedHeaders("DescribeBudgetPerformanceHistory");
|
|
108
|
-
let body;
|
|
109
|
-
body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input, context));
|
|
110
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
|
-
};
|
|
112
|
-
exports.se_DescribeBudgetPerformanceHistoryCommand = se_DescribeBudgetPerformanceHistoryCommand;
|
|
113
|
-
const se_DescribeBudgetsCommand = async (input, context) => {
|
|
114
|
-
const headers = sharedHeaders("DescribeBudgets");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
exports.se_DescribeBudgetsCommand = se_DescribeBudgetsCommand;
|
|
120
|
-
const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("DescribeNotificationsForBudget");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
exports.se_DescribeNotificationsForBudgetCommand = se_DescribeNotificationsForBudgetCommand;
|
|
127
|
-
const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("DescribeSubscribersForNotification");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input, context));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
exports.se_DescribeSubscribersForNotificationCommand = se_DescribeSubscribersForNotificationCommand;
|
|
134
|
-
const se_ExecuteBudgetActionCommand = async (input, context) => {
|
|
135
|
-
const headers = sharedHeaders("ExecuteBudgetAction");
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
138
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
|
-
};
|
|
140
|
-
exports.se_ExecuteBudgetActionCommand = se_ExecuteBudgetActionCommand;
|
|
141
|
-
const se_UpdateBudgetCommand = async (input, context) => {
|
|
142
|
-
const headers = sharedHeaders("UpdateBudget");
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify(se_UpdateBudgetRequest(input, context));
|
|
145
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
|
-
};
|
|
147
|
-
exports.se_UpdateBudgetCommand = se_UpdateBudgetCommand;
|
|
148
|
-
const se_UpdateBudgetActionCommand = async (input, context) => {
|
|
149
|
-
const headers = sharedHeaders("UpdateBudgetAction");
|
|
150
|
-
let body;
|
|
151
|
-
body = JSON.stringify(se_UpdateBudgetActionRequest(input, context));
|
|
152
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
153
|
-
};
|
|
154
|
-
exports.se_UpdateBudgetActionCommand = se_UpdateBudgetActionCommand;
|
|
155
|
-
const se_UpdateNotificationCommand = async (input, context) => {
|
|
156
|
-
const headers = sharedHeaders("UpdateNotification");
|
|
157
|
-
let body;
|
|
158
|
-
body = JSON.stringify(se_UpdateNotificationRequest(input, context));
|
|
159
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
|
-
};
|
|
161
|
-
exports.se_UpdateNotificationCommand = se_UpdateNotificationCommand;
|
|
162
|
-
const se_UpdateSubscriberCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("UpdateSubscriber");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(se_UpdateSubscriberRequest(input, context));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
exports.se_UpdateSubscriberCommand = se_UpdateSubscriberCommand;
|
|
169
|
-
const de_CreateBudgetCommand = async (output, context) => {
|
|
170
|
-
if (output.statusCode >= 300) {
|
|
171
|
-
return de_CreateBudgetCommandError(output, context);
|
|
172
|
-
}
|
|
173
|
-
const data = await parseBody(output.body, context);
|
|
174
|
-
let contents = {};
|
|
175
|
-
contents = (0, smithy_client_1._json)(data);
|
|
176
|
-
const response = {
|
|
177
|
-
$metadata: deserializeMetadata(output),
|
|
178
|
-
...contents,
|
|
179
|
-
};
|
|
180
|
-
return response;
|
|
181
|
-
};
|
|
182
|
-
exports.de_CreateBudgetCommand = de_CreateBudgetCommand;
|
|
183
|
-
const de_CreateBudgetCommandError = async (output, context) => {
|
|
184
|
-
const parsedOutput = {
|
|
185
|
-
...output,
|
|
186
|
-
body: await parseErrorBody(output.body, context),
|
|
187
|
-
};
|
|
188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
189
|
-
switch (errorCode) {
|
|
190
|
-
case "AccessDeniedException":
|
|
191
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
192
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
193
|
-
case "CreationLimitExceededException":
|
|
194
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
195
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
196
|
-
case "DuplicateRecordException":
|
|
197
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
198
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
199
|
-
case "InternalErrorException":
|
|
200
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
201
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
202
|
-
case "InvalidParameterException":
|
|
203
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
204
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
205
|
-
case "ThrottlingException":
|
|
206
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
207
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
208
|
-
default:
|
|
209
|
-
const parsedBody = parsedOutput.body;
|
|
210
|
-
return throwDefaultError({
|
|
211
|
-
output,
|
|
212
|
-
parsedBody,
|
|
213
|
-
errorCode,
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
const de_CreateBudgetActionCommand = async (output, context) => {
|
|
218
|
-
if (output.statusCode >= 300) {
|
|
219
|
-
return de_CreateBudgetActionCommandError(output, context);
|
|
220
|
-
}
|
|
221
|
-
const data = await parseBody(output.body, context);
|
|
222
|
-
let contents = {};
|
|
223
|
-
contents = (0, smithy_client_1._json)(data);
|
|
224
|
-
const response = {
|
|
225
|
-
$metadata: deserializeMetadata(output),
|
|
226
|
-
...contents,
|
|
227
|
-
};
|
|
228
|
-
return response;
|
|
229
|
-
};
|
|
230
|
-
exports.de_CreateBudgetActionCommand = de_CreateBudgetActionCommand;
|
|
231
|
-
const de_CreateBudgetActionCommandError = async (output, context) => {
|
|
232
|
-
const parsedOutput = {
|
|
233
|
-
...output,
|
|
234
|
-
body: await parseErrorBody(output.body, context),
|
|
235
|
-
};
|
|
236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
237
|
-
switch (errorCode) {
|
|
238
|
-
case "AccessDeniedException":
|
|
239
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
240
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
241
|
-
case "CreationLimitExceededException":
|
|
242
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
243
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
244
|
-
case "DuplicateRecordException":
|
|
245
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
246
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
247
|
-
case "InternalErrorException":
|
|
248
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
249
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
250
|
-
case "InvalidParameterException":
|
|
251
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
252
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
253
|
-
case "NotFoundException":
|
|
254
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
255
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
256
|
-
case "ThrottlingException":
|
|
257
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
258
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
259
|
-
default:
|
|
260
|
-
const parsedBody = parsedOutput.body;
|
|
261
|
-
return throwDefaultError({
|
|
262
|
-
output,
|
|
263
|
-
parsedBody,
|
|
264
|
-
errorCode,
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
};
|
|
268
|
-
const de_CreateNotificationCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode >= 300) {
|
|
270
|
-
return de_CreateNotificationCommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const data = await parseBody(output.body, context);
|
|
273
|
-
let contents = {};
|
|
274
|
-
contents = (0, smithy_client_1._json)(data);
|
|
275
|
-
const response = {
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
...contents,
|
|
278
|
-
};
|
|
279
|
-
return response;
|
|
280
|
-
};
|
|
281
|
-
exports.de_CreateNotificationCommand = de_CreateNotificationCommand;
|
|
282
|
-
const de_CreateNotificationCommandError = async (output, context) => {
|
|
283
|
-
const parsedOutput = {
|
|
284
|
-
...output,
|
|
285
|
-
body: await parseErrorBody(output.body, context),
|
|
286
|
-
};
|
|
287
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
288
|
-
switch (errorCode) {
|
|
289
|
-
case "AccessDeniedException":
|
|
290
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
291
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
292
|
-
case "CreationLimitExceededException":
|
|
293
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
294
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
295
|
-
case "DuplicateRecordException":
|
|
296
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
297
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
298
|
-
case "InternalErrorException":
|
|
299
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
300
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
301
|
-
case "InvalidParameterException":
|
|
302
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
303
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
304
|
-
case "NotFoundException":
|
|
305
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
306
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
307
|
-
case "ThrottlingException":
|
|
308
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
309
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
310
|
-
default:
|
|
311
|
-
const parsedBody = parsedOutput.body;
|
|
312
|
-
return throwDefaultError({
|
|
313
|
-
output,
|
|
314
|
-
parsedBody,
|
|
315
|
-
errorCode,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
const de_CreateSubscriberCommand = async (output, context) => {
|
|
320
|
-
if (output.statusCode >= 300) {
|
|
321
|
-
return de_CreateSubscriberCommandError(output, context);
|
|
322
|
-
}
|
|
323
|
-
const data = await parseBody(output.body, context);
|
|
324
|
-
let contents = {};
|
|
325
|
-
contents = (0, smithy_client_1._json)(data);
|
|
326
|
-
const response = {
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
...contents,
|
|
329
|
-
};
|
|
330
|
-
return response;
|
|
331
|
-
};
|
|
332
|
-
exports.de_CreateSubscriberCommand = de_CreateSubscriberCommand;
|
|
333
|
-
const de_CreateSubscriberCommandError = async (output, context) => {
|
|
334
|
-
const parsedOutput = {
|
|
335
|
-
...output,
|
|
336
|
-
body: await parseErrorBody(output.body, context),
|
|
337
|
-
};
|
|
338
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
339
|
-
switch (errorCode) {
|
|
340
|
-
case "AccessDeniedException":
|
|
341
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
342
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
343
|
-
case "CreationLimitExceededException":
|
|
344
|
-
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
345
|
-
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
346
|
-
case "DuplicateRecordException":
|
|
347
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
348
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
349
|
-
case "InternalErrorException":
|
|
350
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
351
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
352
|
-
case "InvalidParameterException":
|
|
353
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
354
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
355
|
-
case "NotFoundException":
|
|
356
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
357
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
358
|
-
case "ThrottlingException":
|
|
359
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
360
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
361
|
-
default:
|
|
362
|
-
const parsedBody = parsedOutput.body;
|
|
363
|
-
return throwDefaultError({
|
|
364
|
-
output,
|
|
365
|
-
parsedBody,
|
|
366
|
-
errorCode,
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
};
|
|
370
|
-
const de_DeleteBudgetCommand = async (output, context) => {
|
|
371
|
-
if (output.statusCode >= 300) {
|
|
372
|
-
return de_DeleteBudgetCommandError(output, context);
|
|
373
|
-
}
|
|
374
|
-
const data = await parseBody(output.body, context);
|
|
375
|
-
let contents = {};
|
|
376
|
-
contents = (0, smithy_client_1._json)(data);
|
|
377
|
-
const response = {
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
...contents,
|
|
380
|
-
};
|
|
381
|
-
return response;
|
|
382
|
-
};
|
|
383
|
-
exports.de_DeleteBudgetCommand = de_DeleteBudgetCommand;
|
|
384
|
-
const de_DeleteBudgetCommandError = async (output, context) => {
|
|
385
|
-
const parsedOutput = {
|
|
386
|
-
...output,
|
|
387
|
-
body: await parseErrorBody(output.body, context),
|
|
388
|
-
};
|
|
389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
390
|
-
switch (errorCode) {
|
|
391
|
-
case "AccessDeniedException":
|
|
392
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
393
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
394
|
-
case "InternalErrorException":
|
|
395
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
396
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
397
|
-
case "InvalidParameterException":
|
|
398
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
399
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
400
|
-
case "NotFoundException":
|
|
401
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
402
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ThrottlingException":
|
|
404
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
406
|
-
default:
|
|
407
|
-
const parsedBody = parsedOutput.body;
|
|
408
|
-
return throwDefaultError({
|
|
409
|
-
output,
|
|
410
|
-
parsedBody,
|
|
411
|
-
errorCode,
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
const de_DeleteBudgetActionCommand = async (output, context) => {
|
|
416
|
-
if (output.statusCode >= 300) {
|
|
417
|
-
return de_DeleteBudgetActionCommandError(output, context);
|
|
418
|
-
}
|
|
419
|
-
const data = await parseBody(output.body, context);
|
|
420
|
-
let contents = {};
|
|
421
|
-
contents = de_DeleteBudgetActionResponse(data, context);
|
|
422
|
-
const response = {
|
|
423
|
-
$metadata: deserializeMetadata(output),
|
|
424
|
-
...contents,
|
|
425
|
-
};
|
|
426
|
-
return response;
|
|
427
|
-
};
|
|
428
|
-
exports.de_DeleteBudgetActionCommand = de_DeleteBudgetActionCommand;
|
|
429
|
-
const de_DeleteBudgetActionCommandError = async (output, context) => {
|
|
430
|
-
const parsedOutput = {
|
|
431
|
-
...output,
|
|
432
|
-
body: await parseErrorBody(output.body, context),
|
|
433
|
-
};
|
|
434
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
|
-
switch (errorCode) {
|
|
436
|
-
case "AccessDeniedException":
|
|
437
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
438
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
439
|
-
case "InternalErrorException":
|
|
440
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
441
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
442
|
-
case "InvalidParameterException":
|
|
443
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
444
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
445
|
-
case "NotFoundException":
|
|
446
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
447
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
448
|
-
case "ResourceLockedException":
|
|
449
|
-
case "com.amazonaws.budgets#ResourceLockedException":
|
|
450
|
-
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
451
|
-
case "ThrottlingException":
|
|
452
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
453
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
454
|
-
default:
|
|
455
|
-
const parsedBody = parsedOutput.body;
|
|
456
|
-
return throwDefaultError({
|
|
457
|
-
output,
|
|
458
|
-
parsedBody,
|
|
459
|
-
errorCode,
|
|
460
|
-
});
|
|
461
|
-
}
|
|
462
|
-
};
|
|
463
|
-
const de_DeleteNotificationCommand = async (output, context) => {
|
|
464
|
-
if (output.statusCode >= 300) {
|
|
465
|
-
return de_DeleteNotificationCommandError(output, context);
|
|
466
|
-
}
|
|
467
|
-
const data = await parseBody(output.body, context);
|
|
468
|
-
let contents = {};
|
|
469
|
-
contents = (0, smithy_client_1._json)(data);
|
|
470
|
-
const response = {
|
|
471
|
-
$metadata: deserializeMetadata(output),
|
|
472
|
-
...contents,
|
|
473
|
-
};
|
|
474
|
-
return response;
|
|
475
|
-
};
|
|
476
|
-
exports.de_DeleteNotificationCommand = de_DeleteNotificationCommand;
|
|
477
|
-
const de_DeleteNotificationCommandError = async (output, context) => {
|
|
478
|
-
const parsedOutput = {
|
|
479
|
-
...output,
|
|
480
|
-
body: await parseErrorBody(output.body, context),
|
|
481
|
-
};
|
|
482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
483
|
-
switch (errorCode) {
|
|
484
|
-
case "AccessDeniedException":
|
|
485
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
486
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
487
|
-
case "InternalErrorException":
|
|
488
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
489
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
490
|
-
case "InvalidParameterException":
|
|
491
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
492
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
493
|
-
case "NotFoundException":
|
|
494
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
495
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ThrottlingException":
|
|
497
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
498
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
499
|
-
default:
|
|
500
|
-
const parsedBody = parsedOutput.body;
|
|
501
|
-
return throwDefaultError({
|
|
502
|
-
output,
|
|
503
|
-
parsedBody,
|
|
504
|
-
errorCode,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
const de_DeleteSubscriberCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode >= 300) {
|
|
510
|
-
return de_DeleteSubscriberCommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const data = await parseBody(output.body, context);
|
|
513
|
-
let contents = {};
|
|
514
|
-
contents = (0, smithy_client_1._json)(data);
|
|
515
|
-
const response = {
|
|
516
|
-
$metadata: deserializeMetadata(output),
|
|
517
|
-
...contents,
|
|
518
|
-
};
|
|
519
|
-
return response;
|
|
520
|
-
};
|
|
521
|
-
exports.de_DeleteSubscriberCommand = de_DeleteSubscriberCommand;
|
|
522
|
-
const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
523
|
-
const parsedOutput = {
|
|
524
|
-
...output,
|
|
525
|
-
body: await parseErrorBody(output.body, context),
|
|
526
|
-
};
|
|
527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
528
|
-
switch (errorCode) {
|
|
529
|
-
case "AccessDeniedException":
|
|
530
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
531
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
532
|
-
case "InternalErrorException":
|
|
533
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
534
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
535
|
-
case "InvalidParameterException":
|
|
536
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
537
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
538
|
-
case "NotFoundException":
|
|
539
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
540
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
541
|
-
case "ThrottlingException":
|
|
542
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
543
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
544
|
-
default:
|
|
545
|
-
const parsedBody = parsedOutput.body;
|
|
546
|
-
return throwDefaultError({
|
|
547
|
-
output,
|
|
548
|
-
parsedBody,
|
|
549
|
-
errorCode,
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
const de_DescribeBudgetCommand = async (output, context) => {
|
|
554
|
-
if (output.statusCode >= 300) {
|
|
555
|
-
return de_DescribeBudgetCommandError(output, context);
|
|
556
|
-
}
|
|
557
|
-
const data = await parseBody(output.body, context);
|
|
558
|
-
let contents = {};
|
|
559
|
-
contents = de_DescribeBudgetResponse(data, context);
|
|
560
|
-
const response = {
|
|
561
|
-
$metadata: deserializeMetadata(output),
|
|
562
|
-
...contents,
|
|
563
|
-
};
|
|
564
|
-
return response;
|
|
565
|
-
};
|
|
566
|
-
exports.de_DescribeBudgetCommand = de_DescribeBudgetCommand;
|
|
567
|
-
const de_DescribeBudgetCommandError = async (output, context) => {
|
|
568
|
-
const parsedOutput = {
|
|
569
|
-
...output,
|
|
570
|
-
body: await parseErrorBody(output.body, context),
|
|
571
|
-
};
|
|
572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
|
-
switch (errorCode) {
|
|
574
|
-
case "AccessDeniedException":
|
|
575
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
576
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
577
|
-
case "InternalErrorException":
|
|
578
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
579
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
580
|
-
case "InvalidParameterException":
|
|
581
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
582
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
583
|
-
case "NotFoundException":
|
|
584
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
585
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
586
|
-
case "ThrottlingException":
|
|
587
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
588
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
589
|
-
default:
|
|
590
|
-
const parsedBody = parsedOutput.body;
|
|
591
|
-
return throwDefaultError({
|
|
592
|
-
output,
|
|
593
|
-
parsedBody,
|
|
594
|
-
errorCode,
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
|
-
const de_DescribeBudgetActionCommand = async (output, context) => {
|
|
599
|
-
if (output.statusCode >= 300) {
|
|
600
|
-
return de_DescribeBudgetActionCommandError(output, context);
|
|
601
|
-
}
|
|
602
|
-
const data = await parseBody(output.body, context);
|
|
603
|
-
let contents = {};
|
|
604
|
-
contents = de_DescribeBudgetActionResponse(data, context);
|
|
605
|
-
const response = {
|
|
606
|
-
$metadata: deserializeMetadata(output),
|
|
607
|
-
...contents,
|
|
608
|
-
};
|
|
609
|
-
return response;
|
|
610
|
-
};
|
|
611
|
-
exports.de_DescribeBudgetActionCommand = de_DescribeBudgetActionCommand;
|
|
612
|
-
const de_DescribeBudgetActionCommandError = async (output, context) => {
|
|
613
|
-
const parsedOutput = {
|
|
614
|
-
...output,
|
|
615
|
-
body: await parseErrorBody(output.body, context),
|
|
616
|
-
};
|
|
617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
|
-
switch (errorCode) {
|
|
619
|
-
case "AccessDeniedException":
|
|
620
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
621
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
622
|
-
case "InternalErrorException":
|
|
623
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
624
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
625
|
-
case "InvalidParameterException":
|
|
626
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
627
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
628
|
-
case "NotFoundException":
|
|
629
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
630
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
631
|
-
case "ThrottlingException":
|
|
632
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
633
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
634
|
-
default:
|
|
635
|
-
const parsedBody = parsedOutput.body;
|
|
636
|
-
return throwDefaultError({
|
|
637
|
-
output,
|
|
638
|
-
parsedBody,
|
|
639
|
-
errorCode,
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
const de_DescribeBudgetActionHistoriesCommand = async (output, context) => {
|
|
644
|
-
if (output.statusCode >= 300) {
|
|
645
|
-
return de_DescribeBudgetActionHistoriesCommandError(output, context);
|
|
646
|
-
}
|
|
647
|
-
const data = await parseBody(output.body, context);
|
|
648
|
-
let contents = {};
|
|
649
|
-
contents = de_DescribeBudgetActionHistoriesResponse(data, context);
|
|
650
|
-
const response = {
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
...contents,
|
|
653
|
-
};
|
|
654
|
-
return response;
|
|
655
|
-
};
|
|
656
|
-
exports.de_DescribeBudgetActionHistoriesCommand = de_DescribeBudgetActionHistoriesCommand;
|
|
657
|
-
const de_DescribeBudgetActionHistoriesCommandError = async (output, context) => {
|
|
658
|
-
const parsedOutput = {
|
|
659
|
-
...output,
|
|
660
|
-
body: await parseErrorBody(output.body, context),
|
|
661
|
-
};
|
|
662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
663
|
-
switch (errorCode) {
|
|
664
|
-
case "AccessDeniedException":
|
|
665
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
666
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
667
|
-
case "InternalErrorException":
|
|
668
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
669
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
670
|
-
case "InvalidNextTokenException":
|
|
671
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
672
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
673
|
-
case "InvalidParameterException":
|
|
674
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
675
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
676
|
-
case "NotFoundException":
|
|
677
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
678
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
679
|
-
case "ThrottlingException":
|
|
680
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
681
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
682
|
-
default:
|
|
683
|
-
const parsedBody = parsedOutput.body;
|
|
684
|
-
return throwDefaultError({
|
|
685
|
-
output,
|
|
686
|
-
parsedBody,
|
|
687
|
-
errorCode,
|
|
688
|
-
});
|
|
689
|
-
}
|
|
690
|
-
};
|
|
691
|
-
const de_DescribeBudgetActionsForAccountCommand = async (output, context) => {
|
|
692
|
-
if (output.statusCode >= 300) {
|
|
693
|
-
return de_DescribeBudgetActionsForAccountCommandError(output, context);
|
|
694
|
-
}
|
|
695
|
-
const data = await parseBody(output.body, context);
|
|
696
|
-
let contents = {};
|
|
697
|
-
contents = de_DescribeBudgetActionsForAccountResponse(data, context);
|
|
698
|
-
const response = {
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
...contents,
|
|
701
|
-
};
|
|
702
|
-
return response;
|
|
703
|
-
};
|
|
704
|
-
exports.de_DescribeBudgetActionsForAccountCommand = de_DescribeBudgetActionsForAccountCommand;
|
|
705
|
-
const de_DescribeBudgetActionsForAccountCommandError = async (output, context) => {
|
|
706
|
-
const parsedOutput = {
|
|
707
|
-
...output,
|
|
708
|
-
body: await parseErrorBody(output.body, context),
|
|
709
|
-
};
|
|
710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
-
switch (errorCode) {
|
|
712
|
-
case "AccessDeniedException":
|
|
713
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
714
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
715
|
-
case "InternalErrorException":
|
|
716
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
717
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
718
|
-
case "InvalidNextTokenException":
|
|
719
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
720
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
721
|
-
case "InvalidParameterException":
|
|
722
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
723
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
724
|
-
case "ThrottlingException":
|
|
725
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
727
|
-
default:
|
|
728
|
-
const parsedBody = parsedOutput.body;
|
|
729
|
-
return throwDefaultError({
|
|
730
|
-
output,
|
|
731
|
-
parsedBody,
|
|
732
|
-
errorCode,
|
|
733
|
-
});
|
|
734
|
-
}
|
|
735
|
-
};
|
|
736
|
-
const de_DescribeBudgetActionsForBudgetCommand = async (output, context) => {
|
|
737
|
-
if (output.statusCode >= 300) {
|
|
738
|
-
return de_DescribeBudgetActionsForBudgetCommandError(output, context);
|
|
739
|
-
}
|
|
740
|
-
const data = await parseBody(output.body, context);
|
|
741
|
-
let contents = {};
|
|
742
|
-
contents = de_DescribeBudgetActionsForBudgetResponse(data, context);
|
|
743
|
-
const response = {
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
...contents,
|
|
746
|
-
};
|
|
747
|
-
return response;
|
|
748
|
-
};
|
|
749
|
-
exports.de_DescribeBudgetActionsForBudgetCommand = de_DescribeBudgetActionsForBudgetCommand;
|
|
750
|
-
const de_DescribeBudgetActionsForBudgetCommandError = async (output, context) => {
|
|
751
|
-
const parsedOutput = {
|
|
752
|
-
...output,
|
|
753
|
-
body: await parseErrorBody(output.body, context),
|
|
754
|
-
};
|
|
755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
756
|
-
switch (errorCode) {
|
|
757
|
-
case "AccessDeniedException":
|
|
758
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
759
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
760
|
-
case "InternalErrorException":
|
|
761
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
762
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
763
|
-
case "InvalidNextTokenException":
|
|
764
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
765
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
766
|
-
case "InvalidParameterException":
|
|
767
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
768
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
769
|
-
case "NotFoundException":
|
|
770
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
771
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
772
|
-
case "ThrottlingException":
|
|
773
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
774
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
775
|
-
default:
|
|
776
|
-
const parsedBody = parsedOutput.body;
|
|
777
|
-
return throwDefaultError({
|
|
778
|
-
output,
|
|
779
|
-
parsedBody,
|
|
780
|
-
errorCode,
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
|
-
const de_DescribeBudgetNotificationsForAccountCommand = async (output, context) => {
|
|
785
|
-
if (output.statusCode >= 300) {
|
|
786
|
-
return de_DescribeBudgetNotificationsForAccountCommandError(output, context);
|
|
787
|
-
}
|
|
788
|
-
const data = await parseBody(output.body, context);
|
|
789
|
-
let contents = {};
|
|
790
|
-
contents = de_DescribeBudgetNotificationsForAccountResponse(data, context);
|
|
791
|
-
const response = {
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
...contents,
|
|
794
|
-
};
|
|
795
|
-
return response;
|
|
796
|
-
};
|
|
797
|
-
exports.de_DescribeBudgetNotificationsForAccountCommand = de_DescribeBudgetNotificationsForAccountCommand;
|
|
798
|
-
const de_DescribeBudgetNotificationsForAccountCommandError = async (output, context) => {
|
|
799
|
-
const parsedOutput = {
|
|
800
|
-
...output,
|
|
801
|
-
body: await parseErrorBody(output.body, context),
|
|
802
|
-
};
|
|
803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
-
switch (errorCode) {
|
|
805
|
-
case "AccessDeniedException":
|
|
806
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ExpiredNextTokenException":
|
|
809
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
810
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
811
|
-
case "InternalErrorException":
|
|
812
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
813
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
814
|
-
case "InvalidNextTokenException":
|
|
815
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
816
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
817
|
-
case "InvalidParameterException":
|
|
818
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
819
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
820
|
-
case "NotFoundException":
|
|
821
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
822
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
823
|
-
case "ThrottlingException":
|
|
824
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
825
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
826
|
-
default:
|
|
827
|
-
const parsedBody = parsedOutput.body;
|
|
828
|
-
return throwDefaultError({
|
|
829
|
-
output,
|
|
830
|
-
parsedBody,
|
|
831
|
-
errorCode,
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
const de_DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
|
|
836
|
-
if (output.statusCode >= 300) {
|
|
837
|
-
return de_DescribeBudgetPerformanceHistoryCommandError(output, context);
|
|
838
|
-
}
|
|
839
|
-
const data = await parseBody(output.body, context);
|
|
840
|
-
let contents = {};
|
|
841
|
-
contents = de_DescribeBudgetPerformanceHistoryResponse(data, context);
|
|
842
|
-
const response = {
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
...contents,
|
|
845
|
-
};
|
|
846
|
-
return response;
|
|
847
|
-
};
|
|
848
|
-
exports.de_DescribeBudgetPerformanceHistoryCommand = de_DescribeBudgetPerformanceHistoryCommand;
|
|
849
|
-
const de_DescribeBudgetPerformanceHistoryCommandError = async (output, context) => {
|
|
850
|
-
const parsedOutput = {
|
|
851
|
-
...output,
|
|
852
|
-
body: await parseErrorBody(output.body, context),
|
|
853
|
-
};
|
|
854
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
855
|
-
switch (errorCode) {
|
|
856
|
-
case "AccessDeniedException":
|
|
857
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
858
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ExpiredNextTokenException":
|
|
860
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
861
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
862
|
-
case "InternalErrorException":
|
|
863
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
864
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
865
|
-
case "InvalidNextTokenException":
|
|
866
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
867
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
868
|
-
case "InvalidParameterException":
|
|
869
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
870
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
871
|
-
case "NotFoundException":
|
|
872
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
873
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
874
|
-
case "ThrottlingException":
|
|
875
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
876
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
877
|
-
default:
|
|
878
|
-
const parsedBody = parsedOutput.body;
|
|
879
|
-
return throwDefaultError({
|
|
880
|
-
output,
|
|
881
|
-
parsedBody,
|
|
882
|
-
errorCode,
|
|
883
|
-
});
|
|
884
|
-
}
|
|
885
|
-
};
|
|
886
|
-
const de_DescribeBudgetsCommand = async (output, context) => {
|
|
887
|
-
if (output.statusCode >= 300) {
|
|
888
|
-
return de_DescribeBudgetsCommandError(output, context);
|
|
889
|
-
}
|
|
890
|
-
const data = await parseBody(output.body, context);
|
|
891
|
-
let contents = {};
|
|
892
|
-
contents = de_DescribeBudgetsResponse(data, context);
|
|
893
|
-
const response = {
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
...contents,
|
|
896
|
-
};
|
|
897
|
-
return response;
|
|
898
|
-
};
|
|
899
|
-
exports.de_DescribeBudgetsCommand = de_DescribeBudgetsCommand;
|
|
900
|
-
const de_DescribeBudgetsCommandError = async (output, context) => {
|
|
901
|
-
const parsedOutput = {
|
|
902
|
-
...output,
|
|
903
|
-
body: await parseErrorBody(output.body, context),
|
|
904
|
-
};
|
|
905
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
-
switch (errorCode) {
|
|
907
|
-
case "AccessDeniedException":
|
|
908
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
909
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ExpiredNextTokenException":
|
|
911
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
912
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
913
|
-
case "InternalErrorException":
|
|
914
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
915
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
916
|
-
case "InvalidNextTokenException":
|
|
917
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
918
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
919
|
-
case "InvalidParameterException":
|
|
920
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
921
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
922
|
-
case "NotFoundException":
|
|
923
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
924
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
925
|
-
case "ThrottlingException":
|
|
926
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
927
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
928
|
-
default:
|
|
929
|
-
const parsedBody = parsedOutput.body;
|
|
930
|
-
return throwDefaultError({
|
|
931
|
-
output,
|
|
932
|
-
parsedBody,
|
|
933
|
-
errorCode,
|
|
934
|
-
});
|
|
935
|
-
}
|
|
936
|
-
};
|
|
937
|
-
const de_DescribeNotificationsForBudgetCommand = async (output, context) => {
|
|
938
|
-
if (output.statusCode >= 300) {
|
|
939
|
-
return de_DescribeNotificationsForBudgetCommandError(output, context);
|
|
940
|
-
}
|
|
941
|
-
const data = await parseBody(output.body, context);
|
|
942
|
-
let contents = {};
|
|
943
|
-
contents = de_DescribeNotificationsForBudgetResponse(data, context);
|
|
944
|
-
const response = {
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
...contents,
|
|
947
|
-
};
|
|
948
|
-
return response;
|
|
949
|
-
};
|
|
950
|
-
exports.de_DescribeNotificationsForBudgetCommand = de_DescribeNotificationsForBudgetCommand;
|
|
951
|
-
const de_DescribeNotificationsForBudgetCommandError = async (output, context) => {
|
|
952
|
-
const parsedOutput = {
|
|
953
|
-
...output,
|
|
954
|
-
body: await parseErrorBody(output.body, context),
|
|
955
|
-
};
|
|
956
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
957
|
-
switch (errorCode) {
|
|
958
|
-
case "AccessDeniedException":
|
|
959
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
960
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ExpiredNextTokenException":
|
|
962
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
963
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
964
|
-
case "InternalErrorException":
|
|
965
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
966
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
967
|
-
case "InvalidNextTokenException":
|
|
968
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
969
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
970
|
-
case "InvalidParameterException":
|
|
971
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
972
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
973
|
-
case "NotFoundException":
|
|
974
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
975
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
976
|
-
case "ThrottlingException":
|
|
977
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
978
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
979
|
-
default:
|
|
980
|
-
const parsedBody = parsedOutput.body;
|
|
981
|
-
return throwDefaultError({
|
|
982
|
-
output,
|
|
983
|
-
parsedBody,
|
|
984
|
-
errorCode,
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
};
|
|
988
|
-
const de_DescribeSubscribersForNotificationCommand = async (output, context) => {
|
|
989
|
-
if (output.statusCode >= 300) {
|
|
990
|
-
return de_DescribeSubscribersForNotificationCommandError(output, context);
|
|
991
|
-
}
|
|
992
|
-
const data = await parseBody(output.body, context);
|
|
993
|
-
let contents = {};
|
|
994
|
-
contents = (0, smithy_client_1._json)(data);
|
|
995
|
-
const response = {
|
|
996
|
-
$metadata: deserializeMetadata(output),
|
|
997
|
-
...contents,
|
|
998
|
-
};
|
|
999
|
-
return response;
|
|
1000
|
-
};
|
|
1001
|
-
exports.de_DescribeSubscribersForNotificationCommand = de_DescribeSubscribersForNotificationCommand;
|
|
1002
|
-
const de_DescribeSubscribersForNotificationCommandError = async (output, context) => {
|
|
1003
|
-
const parsedOutput = {
|
|
1004
|
-
...output,
|
|
1005
|
-
body: await parseErrorBody(output.body, context),
|
|
1006
|
-
};
|
|
1007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1008
|
-
switch (errorCode) {
|
|
1009
|
-
case "AccessDeniedException":
|
|
1010
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1012
|
-
case "ExpiredNextTokenException":
|
|
1013
|
-
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1014
|
-
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1015
|
-
case "InternalErrorException":
|
|
1016
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1017
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1018
|
-
case "InvalidNextTokenException":
|
|
1019
|
-
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1020
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1021
|
-
case "InvalidParameterException":
|
|
1022
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1023
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1024
|
-
case "NotFoundException":
|
|
1025
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1026
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ThrottlingException":
|
|
1028
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1029
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1030
|
-
default:
|
|
1031
|
-
const parsedBody = parsedOutput.body;
|
|
1032
|
-
return throwDefaultError({
|
|
1033
|
-
output,
|
|
1034
|
-
parsedBody,
|
|
1035
|
-
errorCode,
|
|
1036
|
-
});
|
|
1037
|
-
}
|
|
1038
|
-
};
|
|
1039
|
-
const de_ExecuteBudgetActionCommand = async (output, context) => {
|
|
1040
|
-
if (output.statusCode >= 300) {
|
|
1041
|
-
return de_ExecuteBudgetActionCommandError(output, context);
|
|
1042
|
-
}
|
|
1043
|
-
const data = await parseBody(output.body, context);
|
|
1044
|
-
let contents = {};
|
|
1045
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1046
|
-
const response = {
|
|
1047
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
-
...contents,
|
|
1049
|
-
};
|
|
1050
|
-
return response;
|
|
1051
|
-
};
|
|
1052
|
-
exports.de_ExecuteBudgetActionCommand = de_ExecuteBudgetActionCommand;
|
|
1053
|
-
const de_ExecuteBudgetActionCommandError = async (output, context) => {
|
|
1054
|
-
const parsedOutput = {
|
|
1055
|
-
...output,
|
|
1056
|
-
body: await parseErrorBody(output.body, context),
|
|
1057
|
-
};
|
|
1058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1059
|
-
switch (errorCode) {
|
|
1060
|
-
case "AccessDeniedException":
|
|
1061
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1063
|
-
case "InternalErrorException":
|
|
1064
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1065
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1066
|
-
case "InvalidParameterException":
|
|
1067
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1068
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1069
|
-
case "NotFoundException":
|
|
1070
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1071
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "ResourceLockedException":
|
|
1073
|
-
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1074
|
-
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "ThrottlingException":
|
|
1076
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1077
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1078
|
-
default:
|
|
1079
|
-
const parsedBody = parsedOutput.body;
|
|
1080
|
-
return throwDefaultError({
|
|
1081
|
-
output,
|
|
1082
|
-
parsedBody,
|
|
1083
|
-
errorCode,
|
|
1084
|
-
});
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
|
-
const de_UpdateBudgetCommand = async (output, context) => {
|
|
1088
|
-
if (output.statusCode >= 300) {
|
|
1089
|
-
return de_UpdateBudgetCommandError(output, context);
|
|
1090
|
-
}
|
|
1091
|
-
const data = await parseBody(output.body, context);
|
|
1092
|
-
let contents = {};
|
|
1093
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1094
|
-
const response = {
|
|
1095
|
-
$metadata: deserializeMetadata(output),
|
|
1096
|
-
...contents,
|
|
1097
|
-
};
|
|
1098
|
-
return response;
|
|
1099
|
-
};
|
|
1100
|
-
exports.de_UpdateBudgetCommand = de_UpdateBudgetCommand;
|
|
1101
|
-
const de_UpdateBudgetCommandError = async (output, context) => {
|
|
1102
|
-
const parsedOutput = {
|
|
1103
|
-
...output,
|
|
1104
|
-
body: await parseErrorBody(output.body, context),
|
|
1105
|
-
};
|
|
1106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
-
switch (errorCode) {
|
|
1108
|
-
case "AccessDeniedException":
|
|
1109
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1110
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "InternalErrorException":
|
|
1112
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1113
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "InvalidParameterException":
|
|
1115
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1116
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "NotFoundException":
|
|
1118
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1119
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ThrottlingException":
|
|
1121
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1122
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
|
-
const de_UpdateBudgetActionCommand = async (output, context) => {
|
|
1133
|
-
if (output.statusCode >= 300) {
|
|
1134
|
-
return de_UpdateBudgetActionCommandError(output, context);
|
|
1135
|
-
}
|
|
1136
|
-
const data = await parseBody(output.body, context);
|
|
1137
|
-
let contents = {};
|
|
1138
|
-
contents = de_UpdateBudgetActionResponse(data, context);
|
|
1139
|
-
const response = {
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
...contents,
|
|
1142
|
-
};
|
|
1143
|
-
return response;
|
|
1144
|
-
};
|
|
1145
|
-
exports.de_UpdateBudgetActionCommand = de_UpdateBudgetActionCommand;
|
|
1146
|
-
const de_UpdateBudgetActionCommandError = async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context),
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "AccessDeniedException":
|
|
1154
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1155
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InternalErrorException":
|
|
1157
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1158
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "InvalidParameterException":
|
|
1160
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1161
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "NotFoundException":
|
|
1163
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1164
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ResourceLockedException":
|
|
1166
|
-
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1167
|
-
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ThrottlingException":
|
|
1169
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1170
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1171
|
-
default:
|
|
1172
|
-
const parsedBody = parsedOutput.body;
|
|
1173
|
-
return throwDefaultError({
|
|
1174
|
-
output,
|
|
1175
|
-
parsedBody,
|
|
1176
|
-
errorCode,
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
|
-
const de_UpdateNotificationCommand = async (output, context) => {
|
|
1181
|
-
if (output.statusCode >= 300) {
|
|
1182
|
-
return de_UpdateNotificationCommandError(output, context);
|
|
1183
|
-
}
|
|
1184
|
-
const data = await parseBody(output.body, context);
|
|
1185
|
-
let contents = {};
|
|
1186
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1187
|
-
const response = {
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
...contents,
|
|
1190
|
-
};
|
|
1191
|
-
return response;
|
|
1192
|
-
};
|
|
1193
|
-
exports.de_UpdateNotificationCommand = de_UpdateNotificationCommand;
|
|
1194
|
-
const de_UpdateNotificationCommandError = async (output, context) => {
|
|
1195
|
-
const parsedOutput = {
|
|
1196
|
-
...output,
|
|
1197
|
-
body: await parseErrorBody(output.body, context),
|
|
1198
|
-
};
|
|
1199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1200
|
-
switch (errorCode) {
|
|
1201
|
-
case "AccessDeniedException":
|
|
1202
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "DuplicateRecordException":
|
|
1205
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
1206
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
1207
|
-
case "InternalErrorException":
|
|
1208
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1209
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "InvalidParameterException":
|
|
1211
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1212
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "NotFoundException":
|
|
1214
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1215
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "ThrottlingException":
|
|
1217
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1218
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode,
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
const de_UpdateSubscriberCommand = async (output, context) => {
|
|
1229
|
-
if (output.statusCode >= 300) {
|
|
1230
|
-
return de_UpdateSubscriberCommandError(output, context);
|
|
1231
|
-
}
|
|
1232
|
-
const data = await parseBody(output.body, context);
|
|
1233
|
-
let contents = {};
|
|
1234
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1235
|
-
const response = {
|
|
1236
|
-
$metadata: deserializeMetadata(output),
|
|
1237
|
-
...contents,
|
|
1238
|
-
};
|
|
1239
|
-
return response;
|
|
1240
|
-
};
|
|
1241
|
-
exports.de_UpdateSubscriberCommand = de_UpdateSubscriberCommand;
|
|
1242
|
-
const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
1243
|
-
const parsedOutput = {
|
|
1244
|
-
...output,
|
|
1245
|
-
body: await parseErrorBody(output.body, context),
|
|
1246
|
-
};
|
|
1247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
-
switch (errorCode) {
|
|
1249
|
-
case "AccessDeniedException":
|
|
1250
|
-
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1251
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "DuplicateRecordException":
|
|
1253
|
-
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
1254
|
-
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
1255
|
-
case "InternalErrorException":
|
|
1256
|
-
case "com.amazonaws.budgets#InternalErrorException":
|
|
1257
|
-
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "InvalidParameterException":
|
|
1259
|
-
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1260
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "NotFoundException":
|
|
1262
|
-
case "com.amazonaws.budgets#NotFoundException":
|
|
1263
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "ThrottlingException":
|
|
1265
|
-
case "com.amazonaws.budgets#ThrottlingException":
|
|
1266
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1267
|
-
default:
|
|
1268
|
-
const parsedBody = parsedOutput.body;
|
|
1269
|
-
return throwDefaultError({
|
|
1270
|
-
output,
|
|
1271
|
-
parsedBody,
|
|
1272
|
-
errorCode,
|
|
1273
|
-
});
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1277
|
-
const body = parsedOutput.body;
|
|
1278
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1279
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1280
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1281
|
-
...deserialized,
|
|
1282
|
-
});
|
|
1283
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1284
|
-
};
|
|
1285
|
-
const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1286
|
-
const body = parsedOutput.body;
|
|
1287
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1288
|
-
const exception = new models_0_1.CreationLimitExceededException({
|
|
1289
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1290
|
-
...deserialized,
|
|
1291
|
-
});
|
|
1292
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1293
|
-
};
|
|
1294
|
-
const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
|
|
1295
|
-
const body = parsedOutput.body;
|
|
1296
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1297
|
-
const exception = new models_0_1.DuplicateRecordException({
|
|
1298
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1299
|
-
...deserialized,
|
|
1300
|
-
});
|
|
1301
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1302
|
-
};
|
|
1303
|
-
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1304
|
-
const body = parsedOutput.body;
|
|
1305
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1306
|
-
const exception = new models_0_1.ExpiredNextTokenException({
|
|
1307
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1308
|
-
...deserialized,
|
|
1309
|
-
});
|
|
1310
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1311
|
-
};
|
|
1312
|
-
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1313
|
-
const body = parsedOutput.body;
|
|
1314
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1315
|
-
const exception = new models_0_1.InternalErrorException({
|
|
1316
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1317
|
-
...deserialized,
|
|
1318
|
-
});
|
|
1319
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1320
|
-
};
|
|
1321
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1322
|
-
const body = parsedOutput.body;
|
|
1323
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1324
|
-
const exception = new models_0_1.InvalidNextTokenException({
|
|
1325
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1326
|
-
...deserialized,
|
|
1327
|
-
});
|
|
1328
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1329
|
-
};
|
|
1330
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1331
|
-
const body = parsedOutput.body;
|
|
1332
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1333
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
1334
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1335
|
-
...deserialized,
|
|
1336
|
-
});
|
|
1337
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1338
|
-
};
|
|
1339
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1340
|
-
const body = parsedOutput.body;
|
|
1341
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1342
|
-
const exception = new models_0_1.NotFoundException({
|
|
1343
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1344
|
-
...deserialized,
|
|
1345
|
-
});
|
|
1346
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1347
|
-
};
|
|
1348
|
-
const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
|
|
1349
|
-
const body = parsedOutput.body;
|
|
1350
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1351
|
-
const exception = new models_0_1.ResourceLockedException({
|
|
1352
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1353
|
-
...deserialized,
|
|
1354
|
-
});
|
|
1355
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1356
|
-
};
|
|
1357
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1358
|
-
const body = parsedOutput.body;
|
|
1359
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
1360
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1361
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1362
|
-
...deserialized,
|
|
1363
|
-
});
|
|
1364
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1365
|
-
};
|
|
1366
|
-
const se_ActionThreshold = (input, context) => {
|
|
1367
|
-
return (0, smithy_client_1.take)(input, {
|
|
1368
|
-
ActionThresholdType: [],
|
|
1369
|
-
ActionThresholdValue: smithy_client_1.serializeFloat,
|
|
1370
|
-
});
|
|
1371
|
-
};
|
|
1372
|
-
const se_AutoAdjustData = (input, context) => {
|
|
1373
|
-
return (0, smithy_client_1.take)(input, {
|
|
1374
|
-
AutoAdjustType: [],
|
|
1375
|
-
HistoricalOptions: smithy_client_1._json,
|
|
1376
|
-
LastAutoAdjustTime: (_) => Math.round(_.getTime() / 1000),
|
|
1377
|
-
});
|
|
1378
|
-
};
|
|
1379
|
-
const se_Budget = (input, context) => {
|
|
1380
|
-
return (0, smithy_client_1.take)(input, {
|
|
1381
|
-
AutoAdjustData: (_) => se_AutoAdjustData(_, context),
|
|
1382
|
-
BudgetLimit: smithy_client_1._json,
|
|
1383
|
-
BudgetName: [],
|
|
1384
|
-
BudgetType: [],
|
|
1385
|
-
CalculatedSpend: smithy_client_1._json,
|
|
1386
|
-
CostFilters: smithy_client_1._json,
|
|
1387
|
-
CostTypes: smithy_client_1._json,
|
|
1388
|
-
LastUpdatedTime: (_) => Math.round(_.getTime() / 1000),
|
|
1389
|
-
PlannedBudgetLimits: smithy_client_1._json,
|
|
1390
|
-
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1391
|
-
TimeUnit: [],
|
|
1392
|
-
});
|
|
1393
|
-
};
|
|
1394
|
-
const se_CreateBudgetActionRequest = (input, context) => {
|
|
1395
|
-
return (0, smithy_client_1.take)(input, {
|
|
1396
|
-
AccountId: [],
|
|
1397
|
-
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
1398
|
-
ActionType: [],
|
|
1399
|
-
ApprovalModel: [],
|
|
1400
|
-
BudgetName: [],
|
|
1401
|
-
Definition: smithy_client_1._json,
|
|
1402
|
-
ExecutionRoleArn: [],
|
|
1403
|
-
NotificationType: [],
|
|
1404
|
-
Subscribers: smithy_client_1._json,
|
|
1405
|
-
});
|
|
1406
|
-
};
|
|
1407
|
-
const se_CreateBudgetRequest = (input, context) => {
|
|
1408
|
-
return (0, smithy_client_1.take)(input, {
|
|
1409
|
-
AccountId: [],
|
|
1410
|
-
Budget: (_) => se_Budget(_, context),
|
|
1411
|
-
NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_, context),
|
|
1412
|
-
});
|
|
1413
|
-
};
|
|
1414
|
-
const se_CreateNotificationRequest = (input, context) => {
|
|
1415
|
-
return (0, smithy_client_1.take)(input, {
|
|
1416
|
-
AccountId: [],
|
|
1417
|
-
BudgetName: [],
|
|
1418
|
-
Notification: (_) => se_Notification(_, context),
|
|
1419
|
-
Subscribers: smithy_client_1._json,
|
|
1420
|
-
});
|
|
1421
|
-
};
|
|
1422
|
-
const se_CreateSubscriberRequest = (input, context) => {
|
|
1423
|
-
return (0, smithy_client_1.take)(input, {
|
|
1424
|
-
AccountId: [],
|
|
1425
|
-
BudgetName: [],
|
|
1426
|
-
Notification: (_) => se_Notification(_, context),
|
|
1427
|
-
Subscriber: smithy_client_1._json,
|
|
1428
|
-
});
|
|
1429
|
-
};
|
|
1430
|
-
const se_DeleteNotificationRequest = (input, context) => {
|
|
1431
|
-
return (0, smithy_client_1.take)(input, {
|
|
1432
|
-
AccountId: [],
|
|
1433
|
-
BudgetName: [],
|
|
1434
|
-
Notification: (_) => se_Notification(_, context),
|
|
1435
|
-
});
|
|
1436
|
-
};
|
|
1437
|
-
const se_DeleteSubscriberRequest = (input, context) => {
|
|
1438
|
-
return (0, smithy_client_1.take)(input, {
|
|
1439
|
-
AccountId: [],
|
|
1440
|
-
BudgetName: [],
|
|
1441
|
-
Notification: (_) => se_Notification(_, context),
|
|
1442
|
-
Subscriber: smithy_client_1._json,
|
|
1443
|
-
});
|
|
1444
|
-
};
|
|
1445
|
-
const se_DescribeBudgetActionHistoriesRequest = (input, context) => {
|
|
1446
|
-
return (0, smithy_client_1.take)(input, {
|
|
1447
|
-
AccountId: [],
|
|
1448
|
-
ActionId: [],
|
|
1449
|
-
BudgetName: [],
|
|
1450
|
-
MaxResults: [],
|
|
1451
|
-
NextToken: [],
|
|
1452
|
-
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1453
|
-
});
|
|
1454
|
-
};
|
|
1455
|
-
const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
1456
|
-
return (0, smithy_client_1.take)(input, {
|
|
1457
|
-
AccountId: [],
|
|
1458
|
-
BudgetName: [],
|
|
1459
|
-
MaxResults: [],
|
|
1460
|
-
NextToken: [],
|
|
1461
|
-
TimePeriod: (_) => se_TimePeriod(_, context),
|
|
1462
|
-
});
|
|
1463
|
-
};
|
|
1464
|
-
const se_DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
1465
|
-
return (0, smithy_client_1.take)(input, {
|
|
1466
|
-
AccountId: [],
|
|
1467
|
-
BudgetName: [],
|
|
1468
|
-
MaxResults: [],
|
|
1469
|
-
NextToken: [],
|
|
1470
|
-
Notification: (_) => se_Notification(_, context),
|
|
1471
|
-
});
|
|
1472
|
-
};
|
|
1473
|
-
const se_Notification = (input, context) => {
|
|
1474
|
-
return (0, smithy_client_1.take)(input, {
|
|
1475
|
-
ComparisonOperator: [],
|
|
1476
|
-
NotificationState: [],
|
|
1477
|
-
NotificationType: [],
|
|
1478
|
-
Threshold: smithy_client_1.serializeFloat,
|
|
1479
|
-
ThresholdType: [],
|
|
1480
|
-
});
|
|
1481
|
-
};
|
|
1482
|
-
const se_NotificationWithSubscribers = (input, context) => {
|
|
1483
|
-
return (0, smithy_client_1.take)(input, {
|
|
1484
|
-
Notification: (_) => se_Notification(_, context),
|
|
1485
|
-
Subscribers: smithy_client_1._json,
|
|
1486
|
-
});
|
|
1487
|
-
};
|
|
1488
|
-
const se_NotificationWithSubscribersList = (input, context) => {
|
|
1489
|
-
return input
|
|
1490
|
-
.filter((e) => e != null)
|
|
1491
|
-
.map((entry) => {
|
|
1492
|
-
return se_NotificationWithSubscribers(entry, context);
|
|
1493
|
-
});
|
|
1494
|
-
};
|
|
1495
|
-
const se_TimePeriod = (input, context) => {
|
|
1496
|
-
return (0, smithy_client_1.take)(input, {
|
|
1497
|
-
End: (_) => Math.round(_.getTime() / 1000),
|
|
1498
|
-
Start: (_) => Math.round(_.getTime() / 1000),
|
|
1499
|
-
});
|
|
1500
|
-
};
|
|
1501
|
-
const se_UpdateBudgetActionRequest = (input, context) => {
|
|
1502
|
-
return (0, smithy_client_1.take)(input, {
|
|
1503
|
-
AccountId: [],
|
|
1504
|
-
ActionId: [],
|
|
1505
|
-
ActionThreshold: (_) => se_ActionThreshold(_, context),
|
|
1506
|
-
ApprovalModel: [],
|
|
1507
|
-
BudgetName: [],
|
|
1508
|
-
Definition: smithy_client_1._json,
|
|
1509
|
-
ExecutionRoleArn: [],
|
|
1510
|
-
NotificationType: [],
|
|
1511
|
-
Subscribers: smithy_client_1._json,
|
|
1512
|
-
});
|
|
1513
|
-
};
|
|
1514
|
-
const se_UpdateBudgetRequest = (input, context) => {
|
|
1515
|
-
return (0, smithy_client_1.take)(input, {
|
|
1516
|
-
AccountId: [],
|
|
1517
|
-
NewBudget: (_) => se_Budget(_, context),
|
|
1518
|
-
});
|
|
1519
|
-
};
|
|
1520
|
-
const se_UpdateNotificationRequest = (input, context) => {
|
|
1521
|
-
return (0, smithy_client_1.take)(input, {
|
|
1522
|
-
AccountId: [],
|
|
1523
|
-
BudgetName: [],
|
|
1524
|
-
NewNotification: (_) => se_Notification(_, context),
|
|
1525
|
-
OldNotification: (_) => se_Notification(_, context),
|
|
1526
|
-
});
|
|
1527
|
-
};
|
|
1528
|
-
const se_UpdateSubscriberRequest = (input, context) => {
|
|
1529
|
-
return (0, smithy_client_1.take)(input, {
|
|
1530
|
-
AccountId: [],
|
|
1531
|
-
BudgetName: [],
|
|
1532
|
-
NewSubscriber: smithy_client_1._json,
|
|
1533
|
-
Notification: (_) => se_Notification(_, context),
|
|
1534
|
-
OldSubscriber: smithy_client_1._json,
|
|
1535
|
-
});
|
|
1536
|
-
};
|
|
1537
|
-
const de_Action = (output, context) => {
|
|
1538
|
-
return (0, smithy_client_1.take)(output, {
|
|
1539
|
-
ActionId: smithy_client_1.expectString,
|
|
1540
|
-
ActionThreshold: (_) => de_ActionThreshold(_, context),
|
|
1541
|
-
ActionType: smithy_client_1.expectString,
|
|
1542
|
-
ApprovalModel: smithy_client_1.expectString,
|
|
1543
|
-
BudgetName: smithy_client_1.expectString,
|
|
1544
|
-
Definition: smithy_client_1._json,
|
|
1545
|
-
ExecutionRoleArn: smithy_client_1.expectString,
|
|
1546
|
-
NotificationType: smithy_client_1.expectString,
|
|
1547
|
-
Status: smithy_client_1.expectString,
|
|
1548
|
-
Subscribers: smithy_client_1._json,
|
|
1549
|
-
});
|
|
1550
|
-
};
|
|
1551
|
-
const de_ActionHistories = (output, context) => {
|
|
1552
|
-
const retVal = (output || [])
|
|
1553
|
-
.filter((e) => e != null)
|
|
1554
|
-
.map((entry) => {
|
|
1555
|
-
return de_ActionHistory(entry, context);
|
|
1556
|
-
});
|
|
1557
|
-
return retVal;
|
|
1558
|
-
};
|
|
1559
|
-
const de_ActionHistory = (output, context) => {
|
|
1560
|
-
return (0, smithy_client_1.take)(output, {
|
|
1561
|
-
ActionHistoryDetails: (_) => de_ActionHistoryDetails(_, context),
|
|
1562
|
-
EventType: smithy_client_1.expectString,
|
|
1563
|
-
Status: smithy_client_1.expectString,
|
|
1564
|
-
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1565
|
-
});
|
|
1566
|
-
};
|
|
1567
|
-
const de_ActionHistoryDetails = (output, context) => {
|
|
1568
|
-
return (0, smithy_client_1.take)(output, {
|
|
1569
|
-
Action: (_) => de_Action(_, context),
|
|
1570
|
-
Message: smithy_client_1.expectString,
|
|
1571
|
-
});
|
|
1572
|
-
};
|
|
1573
|
-
const de_Actions = (output, context) => {
|
|
1574
|
-
const retVal = (output || [])
|
|
1575
|
-
.filter((e) => e != null)
|
|
1576
|
-
.map((entry) => {
|
|
1577
|
-
return de_Action(entry, context);
|
|
1578
|
-
});
|
|
1579
|
-
return retVal;
|
|
1580
|
-
};
|
|
1581
|
-
const de_ActionThreshold = (output, context) => {
|
|
1582
|
-
return (0, smithy_client_1.take)(output, {
|
|
1583
|
-
ActionThresholdType: smithy_client_1.expectString,
|
|
1584
|
-
ActionThresholdValue: smithy_client_1.limitedParseDouble,
|
|
1585
|
-
});
|
|
1586
|
-
};
|
|
1587
|
-
const de_AutoAdjustData = (output, context) => {
|
|
1588
|
-
return (0, smithy_client_1.take)(output, {
|
|
1589
|
-
AutoAdjustType: smithy_client_1.expectString,
|
|
1590
|
-
HistoricalOptions: smithy_client_1._json,
|
|
1591
|
-
LastAutoAdjustTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1592
|
-
});
|
|
1593
|
-
};
|
|
1594
|
-
const de_Budget = (output, context) => {
|
|
1595
|
-
return (0, smithy_client_1.take)(output, {
|
|
1596
|
-
AutoAdjustData: (_) => de_AutoAdjustData(_, context),
|
|
1597
|
-
BudgetLimit: smithy_client_1._json,
|
|
1598
|
-
BudgetName: smithy_client_1.expectString,
|
|
1599
|
-
BudgetType: smithy_client_1.expectString,
|
|
1600
|
-
CalculatedSpend: smithy_client_1._json,
|
|
1601
|
-
CostFilters: smithy_client_1._json,
|
|
1602
|
-
CostTypes: smithy_client_1._json,
|
|
1603
|
-
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1604
|
-
PlannedBudgetLimits: smithy_client_1._json,
|
|
1605
|
-
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
1606
|
-
TimeUnit: smithy_client_1.expectString,
|
|
1607
|
-
});
|
|
1608
|
-
};
|
|
1609
|
-
const de_BudgetedAndActualAmounts = (output, context) => {
|
|
1610
|
-
return (0, smithy_client_1.take)(output, {
|
|
1611
|
-
ActualAmount: smithy_client_1._json,
|
|
1612
|
-
BudgetedAmount: smithy_client_1._json,
|
|
1613
|
-
TimePeriod: (_) => de_TimePeriod(_, context),
|
|
1614
|
-
});
|
|
1615
|
-
};
|
|
1616
|
-
const de_BudgetedAndActualAmountsList = (output, context) => {
|
|
1617
|
-
const retVal = (output || [])
|
|
1618
|
-
.filter((e) => e != null)
|
|
1619
|
-
.map((entry) => {
|
|
1620
|
-
return de_BudgetedAndActualAmounts(entry, context);
|
|
1621
|
-
});
|
|
1622
|
-
return retVal;
|
|
1623
|
-
};
|
|
1624
|
-
const de_BudgetNotificationsForAccount = (output, context) => {
|
|
1625
|
-
return (0, smithy_client_1.take)(output, {
|
|
1626
|
-
BudgetName: smithy_client_1.expectString,
|
|
1627
|
-
Notifications: (_) => de_Notifications(_, context),
|
|
1628
|
-
});
|
|
1629
|
-
};
|
|
1630
|
-
const de_BudgetNotificationsForAccountList = (output, context) => {
|
|
1631
|
-
const retVal = (output || [])
|
|
1632
|
-
.filter((e) => e != null)
|
|
1633
|
-
.map((entry) => {
|
|
1634
|
-
return de_BudgetNotificationsForAccount(entry, context);
|
|
1635
|
-
});
|
|
1636
|
-
return retVal;
|
|
1637
|
-
};
|
|
1638
|
-
const de_BudgetPerformanceHistory = (output, context) => {
|
|
1639
|
-
return (0, smithy_client_1.take)(output, {
|
|
1640
|
-
BudgetName: smithy_client_1.expectString,
|
|
1641
|
-
BudgetType: smithy_client_1.expectString,
|
|
1642
|
-
BudgetedAndActualAmountsList: (_) => de_BudgetedAndActualAmountsList(_, context),
|
|
1643
|
-
CostFilters: smithy_client_1._json,
|
|
1644
|
-
CostTypes: smithy_client_1._json,
|
|
1645
|
-
TimeUnit: smithy_client_1.expectString,
|
|
1646
|
-
});
|
|
1647
|
-
};
|
|
1648
|
-
const de_Budgets = (output, context) => {
|
|
1649
|
-
const retVal = (output || [])
|
|
1650
|
-
.filter((e) => e != null)
|
|
1651
|
-
.map((entry) => {
|
|
1652
|
-
return de_Budget(entry, context);
|
|
1653
|
-
});
|
|
1654
|
-
return retVal;
|
|
1655
|
-
};
|
|
1656
|
-
const de_DeleteBudgetActionResponse = (output, context) => {
|
|
1657
|
-
return (0, smithy_client_1.take)(output, {
|
|
1658
|
-
AccountId: smithy_client_1.expectString,
|
|
1659
|
-
Action: (_) => de_Action(_, context),
|
|
1660
|
-
BudgetName: smithy_client_1.expectString,
|
|
1661
|
-
});
|
|
1662
|
-
};
|
|
1663
|
-
const de_DescribeBudgetActionHistoriesResponse = (output, context) => {
|
|
1664
|
-
return (0, smithy_client_1.take)(output, {
|
|
1665
|
-
ActionHistories: (_) => de_ActionHistories(_, context),
|
|
1666
|
-
NextToken: smithy_client_1.expectString,
|
|
1667
|
-
});
|
|
1668
|
-
};
|
|
1669
|
-
const de_DescribeBudgetActionResponse = (output, context) => {
|
|
1670
|
-
return (0, smithy_client_1.take)(output, {
|
|
1671
|
-
AccountId: smithy_client_1.expectString,
|
|
1672
|
-
Action: (_) => de_Action(_, context),
|
|
1673
|
-
BudgetName: smithy_client_1.expectString,
|
|
1674
|
-
});
|
|
1675
|
-
};
|
|
1676
|
-
const de_DescribeBudgetActionsForAccountResponse = (output, context) => {
|
|
1677
|
-
return (0, smithy_client_1.take)(output, {
|
|
1678
|
-
Actions: (_) => de_Actions(_, context),
|
|
1679
|
-
NextToken: smithy_client_1.expectString,
|
|
1680
|
-
});
|
|
1681
|
-
};
|
|
1682
|
-
const de_DescribeBudgetActionsForBudgetResponse = (output, context) => {
|
|
1683
|
-
return (0, smithy_client_1.take)(output, {
|
|
1684
|
-
Actions: (_) => de_Actions(_, context),
|
|
1685
|
-
NextToken: smithy_client_1.expectString,
|
|
1686
|
-
});
|
|
1687
|
-
};
|
|
1688
|
-
const de_DescribeBudgetNotificationsForAccountResponse = (output, context) => {
|
|
1689
|
-
return (0, smithy_client_1.take)(output, {
|
|
1690
|
-
BudgetNotificationsForAccount: (_) => de_BudgetNotificationsForAccountList(_, context),
|
|
1691
|
-
NextToken: smithy_client_1.expectString,
|
|
1692
|
-
});
|
|
1693
|
-
};
|
|
1694
|
-
const de_DescribeBudgetPerformanceHistoryResponse = (output, context) => {
|
|
1695
|
-
return (0, smithy_client_1.take)(output, {
|
|
1696
|
-
BudgetPerformanceHistory: (_) => de_BudgetPerformanceHistory(_, context),
|
|
1697
|
-
NextToken: smithy_client_1.expectString,
|
|
1698
|
-
});
|
|
1699
|
-
};
|
|
1700
|
-
const de_DescribeBudgetResponse = (output, context) => {
|
|
1701
|
-
return (0, smithy_client_1.take)(output, {
|
|
1702
|
-
Budget: (_) => de_Budget(_, context),
|
|
1703
|
-
});
|
|
1704
|
-
};
|
|
1705
|
-
const de_DescribeBudgetsResponse = (output, context) => {
|
|
1706
|
-
return (0, smithy_client_1.take)(output, {
|
|
1707
|
-
Budgets: (_) => de_Budgets(_, context),
|
|
1708
|
-
NextToken: smithy_client_1.expectString,
|
|
1709
|
-
});
|
|
1710
|
-
};
|
|
1711
|
-
const de_DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
1712
|
-
return (0, smithy_client_1.take)(output, {
|
|
1713
|
-
NextToken: smithy_client_1.expectString,
|
|
1714
|
-
Notifications: (_) => de_Notifications(_, context),
|
|
1715
|
-
});
|
|
1716
|
-
};
|
|
1717
|
-
const de_Notification = (output, context) => {
|
|
1718
|
-
return (0, smithy_client_1.take)(output, {
|
|
1719
|
-
ComparisonOperator: smithy_client_1.expectString,
|
|
1720
|
-
NotificationState: smithy_client_1.expectString,
|
|
1721
|
-
NotificationType: smithy_client_1.expectString,
|
|
1722
|
-
Threshold: smithy_client_1.limitedParseDouble,
|
|
1723
|
-
ThresholdType: smithy_client_1.expectString,
|
|
1724
|
-
});
|
|
1725
|
-
};
|
|
1726
|
-
const de_Notifications = (output, context) => {
|
|
1727
|
-
const retVal = (output || [])
|
|
1728
|
-
.filter((e) => e != null)
|
|
1729
|
-
.map((entry) => {
|
|
1730
|
-
return de_Notification(entry, context);
|
|
1731
|
-
});
|
|
1732
|
-
return retVal;
|
|
1733
|
-
};
|
|
1734
|
-
const de_TimePeriod = (output, context) => {
|
|
1735
|
-
return (0, smithy_client_1.take)(output, {
|
|
1736
|
-
End: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1737
|
-
Start: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1738
|
-
});
|
|
1739
|
-
};
|
|
1740
|
-
const de_UpdateBudgetActionResponse = (output, context) => {
|
|
1741
|
-
return (0, smithy_client_1.take)(output, {
|
|
1742
|
-
AccountId: smithy_client_1.expectString,
|
|
1743
|
-
BudgetName: smithy_client_1.expectString,
|
|
1744
|
-
NewAction: (_) => de_Action(_, context),
|
|
1745
|
-
OldAction: (_) => de_Action(_, context),
|
|
1746
|
-
});
|
|
1747
|
-
};
|
|
1748
|
-
const deserializeMetadata = (output) => ({
|
|
1749
|
-
httpStatusCode: output.statusCode,
|
|
1750
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1751
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1752
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1753
|
-
});
|
|
1754
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1755
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(BudgetsServiceException_1.BudgetsServiceException);
|
|
1756
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1757
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1758
|
-
const contents = {
|
|
1759
|
-
protocol,
|
|
1760
|
-
hostname,
|
|
1761
|
-
port,
|
|
1762
|
-
method: "POST",
|
|
1763
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1764
|
-
headers,
|
|
1765
|
-
};
|
|
1766
|
-
if (resolvedHostname !== undefined) {
|
|
1767
|
-
contents.hostname = resolvedHostname;
|
|
1768
|
-
}
|
|
1769
|
-
if (body !== undefined) {
|
|
1770
|
-
contents.body = body;
|
|
1771
|
-
}
|
|
1772
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
1773
|
-
};
|
|
1774
|
-
function sharedHeaders(operation) {
|
|
1775
|
-
return {
|
|
1776
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1777
|
-
"x-amz-target": `AWSBudgetServiceGateway.${operation}`,
|
|
1778
|
-
};
|
|
1779
|
-
}
|
|
1780
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1781
|
-
if (encoded.length) {
|
|
1782
|
-
return JSON.parse(encoded);
|
|
1783
|
-
}
|
|
1784
|
-
return {};
|
|
1785
|
-
});
|
|
1786
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1787
|
-
const value = await parseBody(errorBody, context);
|
|
1788
|
-
value.message = value.message ?? value.Message;
|
|
1789
|
-
return value;
|
|
1790
|
-
};
|
|
1791
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1792
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1793
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1794
|
-
let cleanValue = rawValue;
|
|
1795
|
-
if (typeof cleanValue === "number") {
|
|
1796
|
-
cleanValue = cleanValue.toString();
|
|
1797
|
-
}
|
|
1798
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1799
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1800
|
-
}
|
|
1801
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1802
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1803
|
-
}
|
|
1804
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1805
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1806
|
-
}
|
|
1807
|
-
return cleanValue;
|
|
1808
|
-
};
|
|
1809
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1810
|
-
if (headerKey !== undefined) {
|
|
1811
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1812
|
-
}
|
|
1813
|
-
if (data.code !== undefined) {
|
|
1814
|
-
return sanitizeErrorCode(data.code);
|
|
1815
|
-
}
|
|
1816
|
-
if (data["__type"] !== undefined) {
|
|
1817
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1818
|
-
}
|
|
1819
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|