@aws-sdk/client-budgets 3.303.0 → 3.309.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/commands/CreateBudgetActionCommand.js +2 -2
- package/dist-cjs/commands/CreateBudgetCommand.js +2 -2
- package/dist-cjs/commands/CreateNotificationCommand.js +2 -2
- package/dist-cjs/commands/CreateSubscriberCommand.js +2 -2
- package/dist-cjs/commands/DeleteBudgetActionCommand.js +2 -2
- package/dist-cjs/commands/DeleteBudgetCommand.js +2 -2
- package/dist-cjs/commands/DeleteNotificationCommand.js +2 -2
- package/dist-cjs/commands/DeleteSubscriberCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetActionCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetActionHistoriesCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetActionsForAccountCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetActionsForBudgetCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetNotificationsForAccountCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetPerformanceHistoryCommand.js +2 -2
- package/dist-cjs/commands/DescribeBudgetsCommand.js +2 -2
- package/dist-cjs/commands/DescribeNotificationsForBudgetCommand.js +2 -2
- package/dist-cjs/commands/DescribeSubscribersForNotificationCommand.js +2 -2
- package/dist-cjs/commands/ExecuteBudgetActionCommand.js +2 -2
- package/dist-cjs/commands/UpdateBudgetActionCommand.js +2 -2
- package/dist-cjs/commands/UpdateBudgetCommand.js +2 -2
- package/dist-cjs/commands/UpdateNotificationCommand.js +2 -2
- package/dist-cjs/commands/UpdateSubscriberCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +560 -592
- package/dist-es/commands/CreateBudgetActionCommand.js +3 -3
- package/dist-es/commands/CreateBudgetCommand.js +3 -3
- package/dist-es/commands/CreateNotificationCommand.js +3 -3
- package/dist-es/commands/CreateSubscriberCommand.js +3 -3
- package/dist-es/commands/DeleteBudgetActionCommand.js +3 -3
- package/dist-es/commands/DeleteBudgetCommand.js +3 -3
- package/dist-es/commands/DeleteNotificationCommand.js +3 -3
- package/dist-es/commands/DeleteSubscriberCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetActionCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetActionHistoriesCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetActionsForAccountCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetActionsForBudgetCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetPerformanceHistoryCommand.js +3 -3
- package/dist-es/commands/DescribeBudgetsCommand.js +3 -3
- package/dist-es/commands/DescribeNotificationsForBudgetCommand.js +3 -3
- package/dist-es/commands/DescribeSubscribersForNotificationCommand.js +3 -3
- package/dist-es/commands/ExecuteBudgetActionCommand.js +3 -3
- package/dist-es/commands/UpdateBudgetActionCommand.js +3 -3
- package/dist-es/commands/UpdateBudgetCommand.js +3 -3
- package/dist-es/commands/UpdateNotificationCommand.js +3 -3
- package/dist-es/commands/UpdateSubscriberCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +513 -545
- package/dist-types/protocols/Aws_json1_1.d.ts +184 -46
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +46 -46
- package/package.json +29 -29
|
@@ -2,227 +2,227 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { BudgetsServiceException as __BaseException } from "../models/BudgetsServiceException";
|
|
4
4
|
import { AccessDeniedException, CreationLimitExceededException, DuplicateRecordException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceLockedException, ThrottlingException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateBudgetCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "AWSBudgetServiceGateway.CreateBudget",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_CreateBudgetRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_CreateBudgetActionCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "AWSBudgetServiceGateway.CreateBudgetAction",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_CreateBudgetActionRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_CreateNotificationCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "AWSBudgetServiceGateway.CreateNotification",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_CreateNotificationRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_CreateSubscriberCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "AWSBudgetServiceGateway.CreateSubscriber",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_CreateSubscriberRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_DeleteBudgetCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudget",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_DeleteBudgetRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_DeleteBudgetActionCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudgetAction",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_DeleteBudgetActionRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_DeleteNotificationCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteNotification",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DeleteNotificationRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_DeleteSubscriberCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "AWSBudgetServiceGateway.DeleteSubscriber",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DeleteSubscriberRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_DescribeBudgetCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudget",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_DescribeBudgetRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_DescribeBudgetActionCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetAction",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_DescribeBudgetActionRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionHistories",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.1",
|
|
107
107
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForAccount",
|
|
108
108
|
};
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(se_DescribeBudgetActionsForAccountRequest(input, context));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
|
-
export const
|
|
113
|
+
export const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
|
|
114
114
|
const headers = {
|
|
115
115
|
"content-type": "application/x-amz-json-1.1",
|
|
116
116
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForBudget",
|
|
117
117
|
};
|
|
118
118
|
let body;
|
|
119
|
-
body = JSON.stringify(
|
|
119
|
+
body = JSON.stringify(se_DescribeBudgetActionsForBudgetRequest(input, context));
|
|
120
120
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
121
|
};
|
|
122
|
-
export const
|
|
122
|
+
export const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
123
123
|
const headers = {
|
|
124
124
|
"content-type": "application/x-amz-json-1.1",
|
|
125
125
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetNotificationsForAccount",
|
|
126
126
|
};
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(se_DescribeBudgetNotificationsForAccountRequest(input, context));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
132
132
|
const headers = {
|
|
133
133
|
"content-type": "application/x-amz-json-1.1",
|
|
134
134
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetPerformanceHistory",
|
|
135
135
|
};
|
|
136
136
|
let body;
|
|
137
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input, context));
|
|
138
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
139
|
};
|
|
140
|
-
export const
|
|
140
|
+
export const se_DescribeBudgetsCommand = async (input, context) => {
|
|
141
141
|
const headers = {
|
|
142
142
|
"content-type": "application/x-amz-json-1.1",
|
|
143
143
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgets",
|
|
144
144
|
};
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(se_DescribeBudgetsRequest(input, context));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
|
|
150
150
|
const headers = {
|
|
151
151
|
"content-type": "application/x-amz-json-1.1",
|
|
152
152
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeNotificationsForBudget",
|
|
153
153
|
};
|
|
154
154
|
let body;
|
|
155
|
-
body = JSON.stringify(
|
|
155
|
+
body = JSON.stringify(se_DescribeNotificationsForBudgetRequest(input, context));
|
|
156
156
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
157
|
};
|
|
158
|
-
export const
|
|
158
|
+
export const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
|
|
159
159
|
const headers = {
|
|
160
160
|
"content-type": "application/x-amz-json-1.1",
|
|
161
161
|
"x-amz-target": "AWSBudgetServiceGateway.DescribeSubscribersForNotification",
|
|
162
162
|
};
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
-
export const
|
|
167
|
+
export const se_ExecuteBudgetActionCommand = async (input, context) => {
|
|
168
168
|
const headers = {
|
|
169
169
|
"content-type": "application/x-amz-json-1.1",
|
|
170
170
|
"x-amz-target": "AWSBudgetServiceGateway.ExecuteBudgetAction",
|
|
171
171
|
};
|
|
172
172
|
let body;
|
|
173
|
-
body = JSON.stringify(
|
|
173
|
+
body = JSON.stringify(se_ExecuteBudgetActionRequest(input, context));
|
|
174
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
175
|
};
|
|
176
|
-
export const
|
|
176
|
+
export const se_UpdateBudgetCommand = async (input, context) => {
|
|
177
177
|
const headers = {
|
|
178
178
|
"content-type": "application/x-amz-json-1.1",
|
|
179
179
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudget",
|
|
180
180
|
};
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(se_UpdateBudgetRequest(input, context));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
|
-
export const
|
|
185
|
+
export const se_UpdateBudgetActionCommand = async (input, context) => {
|
|
186
186
|
const headers = {
|
|
187
187
|
"content-type": "application/x-amz-json-1.1",
|
|
188
188
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudgetAction",
|
|
189
189
|
};
|
|
190
190
|
let body;
|
|
191
|
-
body = JSON.stringify(
|
|
191
|
+
body = JSON.stringify(se_UpdateBudgetActionRequest(input, context));
|
|
192
192
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
193
|
};
|
|
194
|
-
export const
|
|
194
|
+
export const se_UpdateNotificationCommand = async (input, context) => {
|
|
195
195
|
const headers = {
|
|
196
196
|
"content-type": "application/x-amz-json-1.1",
|
|
197
197
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateNotification",
|
|
198
198
|
};
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(se_UpdateNotificationRequest(input, context));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
|
-
export const
|
|
203
|
+
export const se_UpdateSubscriberCommand = async (input, context) => {
|
|
204
204
|
const headers = {
|
|
205
205
|
"content-type": "application/x-amz-json-1.1",
|
|
206
206
|
"x-amz-target": "AWSBudgetServiceGateway.UpdateSubscriber",
|
|
207
207
|
};
|
|
208
208
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
209
|
+
body = JSON.stringify(se_UpdateSubscriberRequest(input, context));
|
|
210
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
211
|
};
|
|
212
|
-
export const
|
|
212
|
+
export const de_CreateBudgetCommand = async (output, context) => {
|
|
213
213
|
if (output.statusCode >= 300) {
|
|
214
|
-
return
|
|
214
|
+
return de_CreateBudgetCommandError(output, context);
|
|
215
215
|
}
|
|
216
216
|
const data = await parseBody(output.body, context);
|
|
217
217
|
let contents = {};
|
|
218
|
-
contents =
|
|
218
|
+
contents = de_CreateBudgetResponse(data, context);
|
|
219
219
|
const response = {
|
|
220
220
|
$metadata: deserializeMetadata(output),
|
|
221
221
|
...contents,
|
|
222
222
|
};
|
|
223
223
|
return Promise.resolve(response);
|
|
224
224
|
};
|
|
225
|
-
const
|
|
225
|
+
const de_CreateBudgetCommandError = async (output, context) => {
|
|
226
226
|
const parsedOutput = {
|
|
227
227
|
...output,
|
|
228
228
|
body: await parseErrorBody(output.body, context),
|
|
@@ -231,22 +231,22 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) =
|
|
|
231
231
|
switch (errorCode) {
|
|
232
232
|
case "AccessDeniedException":
|
|
233
233
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
235
235
|
case "CreationLimitExceededException":
|
|
236
236
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
238
238
|
case "DuplicateRecordException":
|
|
239
239
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
241
241
|
case "InternalErrorException":
|
|
242
242
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
244
244
|
case "InvalidParameterException":
|
|
245
245
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
247
247
|
case "ThrottlingException":
|
|
248
248
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
249
|
-
throw await
|
|
249
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
250
250
|
default:
|
|
251
251
|
const parsedBody = parsedOutput.body;
|
|
252
252
|
throwDefaultError({
|
|
@@ -257,20 +257,20 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (output, context) =
|
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
export const
|
|
260
|
+
export const de_CreateBudgetActionCommand = async (output, context) => {
|
|
261
261
|
if (output.statusCode >= 300) {
|
|
262
|
-
return
|
|
262
|
+
return de_CreateBudgetActionCommandError(output, context);
|
|
263
263
|
}
|
|
264
264
|
const data = await parseBody(output.body, context);
|
|
265
265
|
let contents = {};
|
|
266
|
-
contents =
|
|
266
|
+
contents = de_CreateBudgetActionResponse(data, context);
|
|
267
267
|
const response = {
|
|
268
268
|
$metadata: deserializeMetadata(output),
|
|
269
269
|
...contents,
|
|
270
270
|
};
|
|
271
271
|
return Promise.resolve(response);
|
|
272
272
|
};
|
|
273
|
-
const
|
|
273
|
+
const de_CreateBudgetActionCommandError = async (output, context) => {
|
|
274
274
|
const parsedOutput = {
|
|
275
275
|
...output,
|
|
276
276
|
body: await parseErrorBody(output.body, context),
|
|
@@ -279,25 +279,25 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, cont
|
|
|
279
279
|
switch (errorCode) {
|
|
280
280
|
case "AccessDeniedException":
|
|
281
281
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
282
|
-
throw await
|
|
282
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
283
283
|
case "CreationLimitExceededException":
|
|
284
284
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
285
|
-
throw await
|
|
285
|
+
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
286
286
|
case "DuplicateRecordException":
|
|
287
287
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
288
|
-
throw await
|
|
288
|
+
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
289
289
|
case "InternalErrorException":
|
|
290
290
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
291
|
-
throw await
|
|
291
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
292
292
|
case "InvalidParameterException":
|
|
293
293
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
294
|
-
throw await
|
|
294
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
295
295
|
case "NotFoundException":
|
|
296
296
|
case "com.amazonaws.budgets#NotFoundException":
|
|
297
|
-
throw await
|
|
297
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
298
298
|
case "ThrottlingException":
|
|
299
299
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
300
|
-
throw await
|
|
300
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
301
301
|
default:
|
|
302
302
|
const parsedBody = parsedOutput.body;
|
|
303
303
|
throwDefaultError({
|
|
@@ -308,20 +308,20 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (output, cont
|
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
|
-
export const
|
|
311
|
+
export const de_CreateNotificationCommand = async (output, context) => {
|
|
312
312
|
if (output.statusCode >= 300) {
|
|
313
|
-
return
|
|
313
|
+
return de_CreateNotificationCommandError(output, context);
|
|
314
314
|
}
|
|
315
315
|
const data = await parseBody(output.body, context);
|
|
316
316
|
let contents = {};
|
|
317
|
-
contents =
|
|
317
|
+
contents = de_CreateNotificationResponse(data, context);
|
|
318
318
|
const response = {
|
|
319
319
|
$metadata: deserializeMetadata(output),
|
|
320
320
|
...contents,
|
|
321
321
|
};
|
|
322
322
|
return Promise.resolve(response);
|
|
323
323
|
};
|
|
324
|
-
const
|
|
324
|
+
const de_CreateNotificationCommandError = async (output, context) => {
|
|
325
325
|
const parsedOutput = {
|
|
326
326
|
...output,
|
|
327
327
|
body: await parseErrorBody(output.body, context),
|
|
@@ -330,25 +330,25 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (output, cont
|
|
|
330
330
|
switch (errorCode) {
|
|
331
331
|
case "AccessDeniedException":
|
|
332
332
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
333
|
-
throw await
|
|
333
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
334
334
|
case "CreationLimitExceededException":
|
|
335
335
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
336
|
-
throw await
|
|
336
|
+
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
337
337
|
case "DuplicateRecordException":
|
|
338
338
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
339
|
-
throw await
|
|
339
|
+
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
340
340
|
case "InternalErrorException":
|
|
341
341
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
342
|
-
throw await
|
|
342
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
343
343
|
case "InvalidParameterException":
|
|
344
344
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
345
|
-
throw await
|
|
345
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
346
346
|
case "NotFoundException":
|
|
347
347
|
case "com.amazonaws.budgets#NotFoundException":
|
|
348
|
-
throw await
|
|
348
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
349
349
|
case "ThrottlingException":
|
|
350
350
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
351
|
-
throw await
|
|
351
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
352
352
|
default:
|
|
353
353
|
const parsedBody = parsedOutput.body;
|
|
354
354
|
throwDefaultError({
|
|
@@ -359,20 +359,20 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (output, cont
|
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
|
-
export const
|
|
362
|
+
export const de_CreateSubscriberCommand = async (output, context) => {
|
|
363
363
|
if (output.statusCode >= 300) {
|
|
364
|
-
return
|
|
364
|
+
return de_CreateSubscriberCommandError(output, context);
|
|
365
365
|
}
|
|
366
366
|
const data = await parseBody(output.body, context);
|
|
367
367
|
let contents = {};
|
|
368
|
-
contents =
|
|
368
|
+
contents = de_CreateSubscriberResponse(data, context);
|
|
369
369
|
const response = {
|
|
370
370
|
$metadata: deserializeMetadata(output),
|
|
371
371
|
...contents,
|
|
372
372
|
};
|
|
373
373
|
return Promise.resolve(response);
|
|
374
374
|
};
|
|
375
|
-
const
|
|
375
|
+
const de_CreateSubscriberCommandError = async (output, context) => {
|
|
376
376
|
const parsedOutput = {
|
|
377
377
|
...output,
|
|
378
378
|
body: await parseErrorBody(output.body, context),
|
|
@@ -381,25 +381,25 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (output, contex
|
|
|
381
381
|
switch (errorCode) {
|
|
382
382
|
case "AccessDeniedException":
|
|
383
383
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
384
|
-
throw await
|
|
384
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
385
385
|
case "CreationLimitExceededException":
|
|
386
386
|
case "com.amazonaws.budgets#CreationLimitExceededException":
|
|
387
|
-
throw await
|
|
387
|
+
throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
|
|
388
388
|
case "DuplicateRecordException":
|
|
389
389
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
390
|
-
throw await
|
|
390
|
+
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
391
391
|
case "InternalErrorException":
|
|
392
392
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
393
|
-
throw await
|
|
393
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
394
394
|
case "InvalidParameterException":
|
|
395
395
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
396
|
-
throw await
|
|
396
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
397
397
|
case "NotFoundException":
|
|
398
398
|
case "com.amazonaws.budgets#NotFoundException":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
400
400
|
case "ThrottlingException":
|
|
401
401
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
403
403
|
default:
|
|
404
404
|
const parsedBody = parsedOutput.body;
|
|
405
405
|
throwDefaultError({
|
|
@@ -410,20 +410,20 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (output, contex
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
-
export const
|
|
413
|
+
export const de_DeleteBudgetCommand = async (output, context) => {
|
|
414
414
|
if (output.statusCode >= 300) {
|
|
415
|
-
return
|
|
415
|
+
return de_DeleteBudgetCommandError(output, context);
|
|
416
416
|
}
|
|
417
417
|
const data = await parseBody(output.body, context);
|
|
418
418
|
let contents = {};
|
|
419
|
-
contents =
|
|
419
|
+
contents = de_DeleteBudgetResponse(data, context);
|
|
420
420
|
const response = {
|
|
421
421
|
$metadata: deserializeMetadata(output),
|
|
422
422
|
...contents,
|
|
423
423
|
};
|
|
424
424
|
return Promise.resolve(response);
|
|
425
425
|
};
|
|
426
|
-
const
|
|
426
|
+
const de_DeleteBudgetCommandError = async (output, context) => {
|
|
427
427
|
const parsedOutput = {
|
|
428
428
|
...output,
|
|
429
429
|
body: await parseErrorBody(output.body, context),
|
|
@@ -432,19 +432,19 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) =
|
|
|
432
432
|
switch (errorCode) {
|
|
433
433
|
case "AccessDeniedException":
|
|
434
434
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
435
|
-
throw await
|
|
435
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
436
436
|
case "InternalErrorException":
|
|
437
437
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
438
|
-
throw await
|
|
438
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
439
439
|
case "InvalidParameterException":
|
|
440
440
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
441
|
-
throw await
|
|
441
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
442
442
|
case "NotFoundException":
|
|
443
443
|
case "com.amazonaws.budgets#NotFoundException":
|
|
444
|
-
throw await
|
|
444
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
445
445
|
case "ThrottlingException":
|
|
446
446
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
447
|
-
throw await
|
|
447
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
448
448
|
default:
|
|
449
449
|
const parsedBody = parsedOutput.body;
|
|
450
450
|
throwDefaultError({
|
|
@@ -455,20 +455,20 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (output, context) =
|
|
|
455
455
|
});
|
|
456
456
|
}
|
|
457
457
|
};
|
|
458
|
-
export const
|
|
458
|
+
export const de_DeleteBudgetActionCommand = async (output, context) => {
|
|
459
459
|
if (output.statusCode >= 300) {
|
|
460
|
-
return
|
|
460
|
+
return de_DeleteBudgetActionCommandError(output, context);
|
|
461
461
|
}
|
|
462
462
|
const data = await parseBody(output.body, context);
|
|
463
463
|
let contents = {};
|
|
464
|
-
contents =
|
|
464
|
+
contents = de_DeleteBudgetActionResponse(data, context);
|
|
465
465
|
const response = {
|
|
466
466
|
$metadata: deserializeMetadata(output),
|
|
467
467
|
...contents,
|
|
468
468
|
};
|
|
469
469
|
return Promise.resolve(response);
|
|
470
470
|
};
|
|
471
|
-
const
|
|
471
|
+
const de_DeleteBudgetActionCommandError = async (output, context) => {
|
|
472
472
|
const parsedOutput = {
|
|
473
473
|
...output,
|
|
474
474
|
body: await parseErrorBody(output.body, context),
|
|
@@ -477,22 +477,22 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, cont
|
|
|
477
477
|
switch (errorCode) {
|
|
478
478
|
case "AccessDeniedException":
|
|
479
479
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
480
|
-
throw await
|
|
480
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
481
481
|
case "InternalErrorException":
|
|
482
482
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
483
|
-
throw await
|
|
483
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
484
484
|
case "InvalidParameterException":
|
|
485
485
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
486
|
-
throw await
|
|
486
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
487
487
|
case "NotFoundException":
|
|
488
488
|
case "com.amazonaws.budgets#NotFoundException":
|
|
489
|
-
throw await
|
|
489
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
490
490
|
case "ResourceLockedException":
|
|
491
491
|
case "com.amazonaws.budgets#ResourceLockedException":
|
|
492
|
-
throw await
|
|
492
|
+
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
493
493
|
case "ThrottlingException":
|
|
494
494
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
495
|
-
throw await
|
|
495
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
496
496
|
default:
|
|
497
497
|
const parsedBody = parsedOutput.body;
|
|
498
498
|
throwDefaultError({
|
|
@@ -503,20 +503,20 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (output, cont
|
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
|
-
export const
|
|
506
|
+
export const de_DeleteNotificationCommand = async (output, context) => {
|
|
507
507
|
if (output.statusCode >= 300) {
|
|
508
|
-
return
|
|
508
|
+
return de_DeleteNotificationCommandError(output, context);
|
|
509
509
|
}
|
|
510
510
|
const data = await parseBody(output.body, context);
|
|
511
511
|
let contents = {};
|
|
512
|
-
contents =
|
|
512
|
+
contents = de_DeleteNotificationResponse(data, context);
|
|
513
513
|
const response = {
|
|
514
514
|
$metadata: deserializeMetadata(output),
|
|
515
515
|
...contents,
|
|
516
516
|
};
|
|
517
517
|
return Promise.resolve(response);
|
|
518
518
|
};
|
|
519
|
-
const
|
|
519
|
+
const de_DeleteNotificationCommandError = async (output, context) => {
|
|
520
520
|
const parsedOutput = {
|
|
521
521
|
...output,
|
|
522
522
|
body: await parseErrorBody(output.body, context),
|
|
@@ -525,19 +525,19 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (output, cont
|
|
|
525
525
|
switch (errorCode) {
|
|
526
526
|
case "AccessDeniedException":
|
|
527
527
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
528
|
-
throw await
|
|
528
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
529
529
|
case "InternalErrorException":
|
|
530
530
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
531
|
-
throw await
|
|
531
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
532
532
|
case "InvalidParameterException":
|
|
533
533
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
534
|
-
throw await
|
|
534
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
535
535
|
case "NotFoundException":
|
|
536
536
|
case "com.amazonaws.budgets#NotFoundException":
|
|
537
|
-
throw await
|
|
537
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
538
538
|
case "ThrottlingException":
|
|
539
539
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
540
|
-
throw await
|
|
540
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
541
541
|
default:
|
|
542
542
|
const parsedBody = parsedOutput.body;
|
|
543
543
|
throwDefaultError({
|
|
@@ -548,20 +548,20 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (output, cont
|
|
|
548
548
|
});
|
|
549
549
|
}
|
|
550
550
|
};
|
|
551
|
-
export const
|
|
551
|
+
export const de_DeleteSubscriberCommand = async (output, context) => {
|
|
552
552
|
if (output.statusCode >= 300) {
|
|
553
|
-
return
|
|
553
|
+
return de_DeleteSubscriberCommandError(output, context);
|
|
554
554
|
}
|
|
555
555
|
const data = await parseBody(output.body, context);
|
|
556
556
|
let contents = {};
|
|
557
|
-
contents =
|
|
557
|
+
contents = de_DeleteSubscriberResponse(data, context);
|
|
558
558
|
const response = {
|
|
559
559
|
$metadata: deserializeMetadata(output),
|
|
560
560
|
...contents,
|
|
561
561
|
};
|
|
562
562
|
return Promise.resolve(response);
|
|
563
563
|
};
|
|
564
|
-
const
|
|
564
|
+
const de_DeleteSubscriberCommandError = async (output, context) => {
|
|
565
565
|
const parsedOutput = {
|
|
566
566
|
...output,
|
|
567
567
|
body: await parseErrorBody(output.body, context),
|
|
@@ -570,19 +570,19 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, contex
|
|
|
570
570
|
switch (errorCode) {
|
|
571
571
|
case "AccessDeniedException":
|
|
572
572
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
574
574
|
case "InternalErrorException":
|
|
575
575
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
576
|
-
throw await
|
|
576
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
577
577
|
case "InvalidParameterException":
|
|
578
578
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
579
|
-
throw await
|
|
579
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
580
580
|
case "NotFoundException":
|
|
581
581
|
case "com.amazonaws.budgets#NotFoundException":
|
|
582
|
-
throw await
|
|
582
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
583
583
|
case "ThrottlingException":
|
|
584
584
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
585
|
-
throw await
|
|
585
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
586
586
|
default:
|
|
587
587
|
const parsedBody = parsedOutput.body;
|
|
588
588
|
throwDefaultError({
|
|
@@ -593,20 +593,20 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (output, contex
|
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
|
-
export const
|
|
596
|
+
export const de_DescribeBudgetCommand = async (output, context) => {
|
|
597
597
|
if (output.statusCode >= 300) {
|
|
598
|
-
return
|
|
598
|
+
return de_DescribeBudgetCommandError(output, context);
|
|
599
599
|
}
|
|
600
600
|
const data = await parseBody(output.body, context);
|
|
601
601
|
let contents = {};
|
|
602
|
-
contents =
|
|
602
|
+
contents = de_DescribeBudgetResponse(data, context);
|
|
603
603
|
const response = {
|
|
604
604
|
$metadata: deserializeMetadata(output),
|
|
605
605
|
...contents,
|
|
606
606
|
};
|
|
607
607
|
return Promise.resolve(response);
|
|
608
608
|
};
|
|
609
|
-
const
|
|
609
|
+
const de_DescribeBudgetCommandError = async (output, context) => {
|
|
610
610
|
const parsedOutput = {
|
|
611
611
|
...output,
|
|
612
612
|
body: await parseErrorBody(output.body, context),
|
|
@@ -615,19 +615,19 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context)
|
|
|
615
615
|
switch (errorCode) {
|
|
616
616
|
case "AccessDeniedException":
|
|
617
617
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
618
|
-
throw await
|
|
618
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
619
619
|
case "InternalErrorException":
|
|
620
620
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
621
|
-
throw await
|
|
621
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
622
622
|
case "InvalidParameterException":
|
|
623
623
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
624
|
-
throw await
|
|
624
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
625
625
|
case "NotFoundException":
|
|
626
626
|
case "com.amazonaws.budgets#NotFoundException":
|
|
627
|
-
throw await
|
|
627
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
628
628
|
case "ThrottlingException":
|
|
629
629
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
630
|
-
throw await
|
|
630
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
631
631
|
default:
|
|
632
632
|
const parsedBody = parsedOutput.body;
|
|
633
633
|
throwDefaultError({
|
|
@@ -638,20 +638,20 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (output, context)
|
|
|
638
638
|
});
|
|
639
639
|
}
|
|
640
640
|
};
|
|
641
|
-
export const
|
|
641
|
+
export const de_DescribeBudgetActionCommand = async (output, context) => {
|
|
642
642
|
if (output.statusCode >= 300) {
|
|
643
|
-
return
|
|
643
|
+
return de_DescribeBudgetActionCommandError(output, context);
|
|
644
644
|
}
|
|
645
645
|
const data = await parseBody(output.body, context);
|
|
646
646
|
let contents = {};
|
|
647
|
-
contents =
|
|
647
|
+
contents = de_DescribeBudgetActionResponse(data, context);
|
|
648
648
|
const response = {
|
|
649
649
|
$metadata: deserializeMetadata(output),
|
|
650
650
|
...contents,
|
|
651
651
|
};
|
|
652
652
|
return Promise.resolve(response);
|
|
653
653
|
};
|
|
654
|
-
const
|
|
654
|
+
const de_DescribeBudgetActionCommandError = async (output, context) => {
|
|
655
655
|
const parsedOutput = {
|
|
656
656
|
...output,
|
|
657
657
|
body: await parseErrorBody(output.body, context),
|
|
@@ -660,19 +660,19 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, co
|
|
|
660
660
|
switch (errorCode) {
|
|
661
661
|
case "AccessDeniedException":
|
|
662
662
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
663
|
-
throw await
|
|
663
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
664
664
|
case "InternalErrorException":
|
|
665
665
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
666
|
-
throw await
|
|
666
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
667
667
|
case "InvalidParameterException":
|
|
668
668
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
669
|
-
throw await
|
|
669
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
670
670
|
case "NotFoundException":
|
|
671
671
|
case "com.amazonaws.budgets#NotFoundException":
|
|
672
|
-
throw await
|
|
672
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
673
673
|
case "ThrottlingException":
|
|
674
674
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
675
|
-
throw await
|
|
675
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
676
676
|
default:
|
|
677
677
|
const parsedBody = parsedOutput.body;
|
|
678
678
|
throwDefaultError({
|
|
@@ -683,20 +683,20 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (output, co
|
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
685
|
};
|
|
686
|
-
export const
|
|
686
|
+
export const de_DescribeBudgetActionHistoriesCommand = async (output, context) => {
|
|
687
687
|
if (output.statusCode >= 300) {
|
|
688
|
-
return
|
|
688
|
+
return de_DescribeBudgetActionHistoriesCommandError(output, context);
|
|
689
689
|
}
|
|
690
690
|
const data = await parseBody(output.body, context);
|
|
691
691
|
let contents = {};
|
|
692
|
-
contents =
|
|
692
|
+
contents = de_DescribeBudgetActionHistoriesResponse(data, context);
|
|
693
693
|
const response = {
|
|
694
694
|
$metadata: deserializeMetadata(output),
|
|
695
695
|
...contents,
|
|
696
696
|
};
|
|
697
697
|
return Promise.resolve(response);
|
|
698
698
|
};
|
|
699
|
-
const
|
|
699
|
+
const de_DescribeBudgetActionHistoriesCommandError = async (output, context) => {
|
|
700
700
|
const parsedOutput = {
|
|
701
701
|
...output,
|
|
702
702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -705,22 +705,22 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (o
|
|
|
705
705
|
switch (errorCode) {
|
|
706
706
|
case "AccessDeniedException":
|
|
707
707
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
708
|
-
throw await
|
|
708
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
709
709
|
case "InternalErrorException":
|
|
710
710
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
711
|
-
throw await
|
|
711
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
712
712
|
case "InvalidNextTokenException":
|
|
713
713
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
714
|
-
throw await
|
|
714
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
715
715
|
case "InvalidParameterException":
|
|
716
716
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
717
|
-
throw await
|
|
717
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
718
718
|
case "NotFoundException":
|
|
719
719
|
case "com.amazonaws.budgets#NotFoundException":
|
|
720
|
-
throw await
|
|
720
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
721
721
|
case "ThrottlingException":
|
|
722
722
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
723
|
-
throw await
|
|
723
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
724
724
|
default:
|
|
725
725
|
const parsedBody = parsedOutput.body;
|
|
726
726
|
throwDefaultError({
|
|
@@ -731,20 +731,20 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (o
|
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
|
-
export const
|
|
734
|
+
export const de_DescribeBudgetActionsForAccountCommand = async (output, context) => {
|
|
735
735
|
if (output.statusCode >= 300) {
|
|
736
|
-
return
|
|
736
|
+
return de_DescribeBudgetActionsForAccountCommandError(output, context);
|
|
737
737
|
}
|
|
738
738
|
const data = await parseBody(output.body, context);
|
|
739
739
|
let contents = {};
|
|
740
|
-
contents =
|
|
740
|
+
contents = de_DescribeBudgetActionsForAccountResponse(data, context);
|
|
741
741
|
const response = {
|
|
742
742
|
$metadata: deserializeMetadata(output),
|
|
743
743
|
...contents,
|
|
744
744
|
};
|
|
745
745
|
return Promise.resolve(response);
|
|
746
746
|
};
|
|
747
|
-
const
|
|
747
|
+
const de_DescribeBudgetActionsForAccountCommandError = async (output, context) => {
|
|
748
748
|
const parsedOutput = {
|
|
749
749
|
...output,
|
|
750
750
|
body: await parseErrorBody(output.body, context),
|
|
@@ -753,19 +753,19 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
|
|
|
753
753
|
switch (errorCode) {
|
|
754
754
|
case "AccessDeniedException":
|
|
755
755
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
756
|
-
throw await
|
|
756
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
757
757
|
case "InternalErrorException":
|
|
758
758
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
759
|
-
throw await
|
|
759
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
760
760
|
case "InvalidNextTokenException":
|
|
761
761
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
762
|
-
throw await
|
|
762
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
763
763
|
case "InvalidParameterException":
|
|
764
764
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
765
|
-
throw await
|
|
765
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
766
766
|
case "ThrottlingException":
|
|
767
767
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
768
|
-
throw await
|
|
768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
769
769
|
default:
|
|
770
770
|
const parsedBody = parsedOutput.body;
|
|
771
771
|
throwDefaultError({
|
|
@@ -776,20 +776,20 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
export const
|
|
779
|
+
export const de_DescribeBudgetActionsForBudgetCommand = async (output, context) => {
|
|
780
780
|
if (output.statusCode >= 300) {
|
|
781
|
-
return
|
|
781
|
+
return de_DescribeBudgetActionsForBudgetCommandError(output, context);
|
|
782
782
|
}
|
|
783
783
|
const data = await parseBody(output.body, context);
|
|
784
784
|
let contents = {};
|
|
785
|
-
contents =
|
|
785
|
+
contents = de_DescribeBudgetActionsForBudgetResponse(data, context);
|
|
786
786
|
const response = {
|
|
787
787
|
$metadata: deserializeMetadata(output),
|
|
788
788
|
...contents,
|
|
789
789
|
};
|
|
790
790
|
return Promise.resolve(response);
|
|
791
791
|
};
|
|
792
|
-
const
|
|
792
|
+
const de_DescribeBudgetActionsForBudgetCommandError = async (output, context) => {
|
|
793
793
|
const parsedOutput = {
|
|
794
794
|
...output,
|
|
795
795
|
body: await parseErrorBody(output.body, context),
|
|
@@ -798,22 +798,22 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
798
798
|
switch (errorCode) {
|
|
799
799
|
case "AccessDeniedException":
|
|
800
800
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
801
|
-
throw await
|
|
801
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
802
802
|
case "InternalErrorException":
|
|
803
803
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
804
|
-
throw await
|
|
804
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
805
805
|
case "InvalidNextTokenException":
|
|
806
806
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
807
|
-
throw await
|
|
807
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
808
808
|
case "InvalidParameterException":
|
|
809
809
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
810
|
-
throw await
|
|
810
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
811
811
|
case "NotFoundException":
|
|
812
812
|
case "com.amazonaws.budgets#NotFoundException":
|
|
813
|
-
throw await
|
|
813
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
814
814
|
case "ThrottlingException":
|
|
815
815
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
816
|
-
throw await
|
|
816
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
817
817
|
default:
|
|
818
818
|
const parsedBody = parsedOutput.body;
|
|
819
819
|
throwDefaultError({
|
|
@@ -824,20 +824,20 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
|
-
export const
|
|
827
|
+
export const de_DescribeBudgetNotificationsForAccountCommand = async (output, context) => {
|
|
828
828
|
if (output.statusCode >= 300) {
|
|
829
|
-
return
|
|
829
|
+
return de_DescribeBudgetNotificationsForAccountCommandError(output, context);
|
|
830
830
|
}
|
|
831
831
|
const data = await parseBody(output.body, context);
|
|
832
832
|
let contents = {};
|
|
833
|
-
contents =
|
|
833
|
+
contents = de_DescribeBudgetNotificationsForAccountResponse(data, context);
|
|
834
834
|
const response = {
|
|
835
835
|
$metadata: deserializeMetadata(output),
|
|
836
836
|
...contents,
|
|
837
837
|
};
|
|
838
838
|
return Promise.resolve(response);
|
|
839
839
|
};
|
|
840
|
-
const
|
|
840
|
+
const de_DescribeBudgetNotificationsForAccountCommandError = async (output, context) => {
|
|
841
841
|
const parsedOutput = {
|
|
842
842
|
...output,
|
|
843
843
|
body: await parseErrorBody(output.body, context),
|
|
@@ -846,25 +846,25 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
|
|
|
846
846
|
switch (errorCode) {
|
|
847
847
|
case "AccessDeniedException":
|
|
848
848
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
849
|
-
throw await
|
|
849
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
850
850
|
case "ExpiredNextTokenException":
|
|
851
851
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
852
|
-
throw await
|
|
852
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
853
853
|
case "InternalErrorException":
|
|
854
854
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
855
|
-
throw await
|
|
855
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
856
856
|
case "InvalidNextTokenException":
|
|
857
857
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
858
|
-
throw await
|
|
858
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
859
859
|
case "InvalidParameterException":
|
|
860
860
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
861
|
-
throw await
|
|
861
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
862
862
|
case "NotFoundException":
|
|
863
863
|
case "com.amazonaws.budgets#NotFoundException":
|
|
864
|
-
throw await
|
|
864
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
865
865
|
case "ThrottlingException":
|
|
866
866
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
867
|
-
throw await
|
|
867
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
868
868
|
default:
|
|
869
869
|
const parsedBody = parsedOutput.body;
|
|
870
870
|
throwDefaultError({
|
|
@@ -875,20 +875,20 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
|
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
877
|
};
|
|
878
|
-
export const
|
|
878
|
+
export const de_DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
|
|
879
879
|
if (output.statusCode >= 300) {
|
|
880
|
-
return
|
|
880
|
+
return de_DescribeBudgetPerformanceHistoryCommandError(output, context);
|
|
881
881
|
}
|
|
882
882
|
const data = await parseBody(output.body, context);
|
|
883
883
|
let contents = {};
|
|
884
|
-
contents =
|
|
884
|
+
contents = de_DescribeBudgetPerformanceHistoryResponse(data, context);
|
|
885
885
|
const response = {
|
|
886
886
|
$metadata: deserializeMetadata(output),
|
|
887
887
|
...contents,
|
|
888
888
|
};
|
|
889
889
|
return Promise.resolve(response);
|
|
890
890
|
};
|
|
891
|
-
const
|
|
891
|
+
const de_DescribeBudgetPerformanceHistoryCommandError = async (output, context) => {
|
|
892
892
|
const parsedOutput = {
|
|
893
893
|
...output,
|
|
894
894
|
body: await parseErrorBody(output.body, context),
|
|
@@ -897,25 +897,25 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
|
|
|
897
897
|
switch (errorCode) {
|
|
898
898
|
case "AccessDeniedException":
|
|
899
899
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
900
|
-
throw await
|
|
900
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
901
901
|
case "ExpiredNextTokenException":
|
|
902
902
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
903
|
-
throw await
|
|
903
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
904
904
|
case "InternalErrorException":
|
|
905
905
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
906
|
-
throw await
|
|
906
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
907
907
|
case "InvalidNextTokenException":
|
|
908
908
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
909
|
-
throw await
|
|
909
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
910
910
|
case "InvalidParameterException":
|
|
911
911
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
912
|
-
throw await
|
|
912
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
913
913
|
case "NotFoundException":
|
|
914
914
|
case "com.amazonaws.budgets#NotFoundException":
|
|
915
|
-
throw await
|
|
915
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
916
916
|
case "ThrottlingException":
|
|
917
917
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
918
|
-
throw await
|
|
918
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
919
919
|
default:
|
|
920
920
|
const parsedBody = parsedOutput.body;
|
|
921
921
|
throwDefaultError({
|
|
@@ -926,20 +926,20 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
|
|
|
926
926
|
});
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
|
-
export const
|
|
929
|
+
export const de_DescribeBudgetsCommand = async (output, context) => {
|
|
930
930
|
if (output.statusCode >= 300) {
|
|
931
|
-
return
|
|
931
|
+
return de_DescribeBudgetsCommandError(output, context);
|
|
932
932
|
}
|
|
933
933
|
const data = await parseBody(output.body, context);
|
|
934
934
|
let contents = {};
|
|
935
|
-
contents =
|
|
935
|
+
contents = de_DescribeBudgetsResponse(data, context);
|
|
936
936
|
const response = {
|
|
937
937
|
$metadata: deserializeMetadata(output),
|
|
938
938
|
...contents,
|
|
939
939
|
};
|
|
940
940
|
return Promise.resolve(response);
|
|
941
941
|
};
|
|
942
|
-
const
|
|
942
|
+
const de_DescribeBudgetsCommandError = async (output, context) => {
|
|
943
943
|
const parsedOutput = {
|
|
944
944
|
...output,
|
|
945
945
|
body: await parseErrorBody(output.body, context),
|
|
@@ -948,25 +948,25 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context
|
|
|
948
948
|
switch (errorCode) {
|
|
949
949
|
case "AccessDeniedException":
|
|
950
950
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
951
|
-
throw await
|
|
951
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
952
952
|
case "ExpiredNextTokenException":
|
|
953
953
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
954
|
-
throw await
|
|
954
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
955
955
|
case "InternalErrorException":
|
|
956
956
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
957
|
-
throw await
|
|
957
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
958
958
|
case "InvalidNextTokenException":
|
|
959
959
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
960
|
-
throw await
|
|
960
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
961
961
|
case "InvalidParameterException":
|
|
962
962
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
963
|
-
throw await
|
|
963
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
964
964
|
case "NotFoundException":
|
|
965
965
|
case "com.amazonaws.budgets#NotFoundException":
|
|
966
|
-
throw await
|
|
966
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
967
967
|
case "ThrottlingException":
|
|
968
968
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
969
|
-
throw await
|
|
969
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
970
970
|
default:
|
|
971
971
|
const parsedBody = parsedOutput.body;
|
|
972
972
|
throwDefaultError({
|
|
@@ -977,20 +977,20 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (output, context
|
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
|
-
export const
|
|
980
|
+
export const de_DescribeNotificationsForBudgetCommand = async (output, context) => {
|
|
981
981
|
if (output.statusCode >= 300) {
|
|
982
|
-
return
|
|
982
|
+
return de_DescribeNotificationsForBudgetCommandError(output, context);
|
|
983
983
|
}
|
|
984
984
|
const data = await parseBody(output.body, context);
|
|
985
985
|
let contents = {};
|
|
986
|
-
contents =
|
|
986
|
+
contents = de_DescribeNotificationsForBudgetResponse(data, context);
|
|
987
987
|
const response = {
|
|
988
988
|
$metadata: deserializeMetadata(output),
|
|
989
989
|
...contents,
|
|
990
990
|
};
|
|
991
991
|
return Promise.resolve(response);
|
|
992
992
|
};
|
|
993
|
-
const
|
|
993
|
+
const de_DescribeNotificationsForBudgetCommandError = async (output, context) => {
|
|
994
994
|
const parsedOutput = {
|
|
995
995
|
...output,
|
|
996
996
|
body: await parseErrorBody(output.body, context),
|
|
@@ -999,25 +999,25 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
|
|
|
999
999
|
switch (errorCode) {
|
|
1000
1000
|
case "AccessDeniedException":
|
|
1001
1001
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1002
|
-
throw await
|
|
1002
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1003
1003
|
case "ExpiredNextTokenException":
|
|
1004
1004
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1005
|
-
throw await
|
|
1005
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1006
1006
|
case "InternalErrorException":
|
|
1007
1007
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1008
|
-
throw await
|
|
1008
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1009
1009
|
case "InvalidNextTokenException":
|
|
1010
1010
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1011
|
-
throw await
|
|
1011
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1012
1012
|
case "InvalidParameterException":
|
|
1013
1013
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1014
|
-
throw await
|
|
1014
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1015
1015
|
case "NotFoundException":
|
|
1016
1016
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1017
|
-
throw await
|
|
1017
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1018
1018
|
case "ThrottlingException":
|
|
1019
1019
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1020
|
-
throw await
|
|
1020
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1021
1021
|
default:
|
|
1022
1022
|
const parsedBody = parsedOutput.body;
|
|
1023
1023
|
throwDefaultError({
|
|
@@ -1028,20 +1028,20 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
|
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
|
-
export const
|
|
1031
|
+
export const de_DescribeSubscribersForNotificationCommand = async (output, context) => {
|
|
1032
1032
|
if (output.statusCode >= 300) {
|
|
1033
|
-
return
|
|
1033
|
+
return de_DescribeSubscribersForNotificationCommandError(output, context);
|
|
1034
1034
|
}
|
|
1035
1035
|
const data = await parseBody(output.body, context);
|
|
1036
1036
|
let contents = {};
|
|
1037
|
-
contents =
|
|
1037
|
+
contents = de_DescribeSubscribersForNotificationResponse(data, context);
|
|
1038
1038
|
const response = {
|
|
1039
1039
|
$metadata: deserializeMetadata(output),
|
|
1040
1040
|
...contents,
|
|
1041
1041
|
};
|
|
1042
1042
|
return Promise.resolve(response);
|
|
1043
1043
|
};
|
|
1044
|
-
const
|
|
1044
|
+
const de_DescribeSubscribersForNotificationCommandError = async (output, context) => {
|
|
1045
1045
|
const parsedOutput = {
|
|
1046
1046
|
...output,
|
|
1047
1047
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1050,25 +1050,25 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
|
|
|
1050
1050
|
switch (errorCode) {
|
|
1051
1051
|
case "AccessDeniedException":
|
|
1052
1052
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1053
|
-
throw await
|
|
1053
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1054
1054
|
case "ExpiredNextTokenException":
|
|
1055
1055
|
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1056
|
-
throw await
|
|
1056
|
+
throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
|
|
1057
1057
|
case "InternalErrorException":
|
|
1058
1058
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1059
|
-
throw await
|
|
1059
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1060
1060
|
case "InvalidNextTokenException":
|
|
1061
1061
|
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1062
|
-
throw await
|
|
1062
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1063
1063
|
case "InvalidParameterException":
|
|
1064
1064
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1065
|
-
throw await
|
|
1065
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1066
1066
|
case "NotFoundException":
|
|
1067
1067
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1068
|
-
throw await
|
|
1068
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1069
1069
|
case "ThrottlingException":
|
|
1070
1070
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1071
|
-
throw await
|
|
1071
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1072
1072
|
default:
|
|
1073
1073
|
const parsedBody = parsedOutput.body;
|
|
1074
1074
|
throwDefaultError({
|
|
@@ -1079,20 +1079,20 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
|
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
|
-
export const
|
|
1082
|
+
export const de_ExecuteBudgetActionCommand = async (output, context) => {
|
|
1083
1083
|
if (output.statusCode >= 300) {
|
|
1084
|
-
return
|
|
1084
|
+
return de_ExecuteBudgetActionCommandError(output, context);
|
|
1085
1085
|
}
|
|
1086
1086
|
const data = await parseBody(output.body, context);
|
|
1087
1087
|
let contents = {};
|
|
1088
|
-
contents =
|
|
1088
|
+
contents = de_ExecuteBudgetActionResponse(data, context);
|
|
1089
1089
|
const response = {
|
|
1090
1090
|
$metadata: deserializeMetadata(output),
|
|
1091
1091
|
...contents,
|
|
1092
1092
|
};
|
|
1093
1093
|
return Promise.resolve(response);
|
|
1094
1094
|
};
|
|
1095
|
-
const
|
|
1095
|
+
const de_ExecuteBudgetActionCommandError = async (output, context) => {
|
|
1096
1096
|
const parsedOutput = {
|
|
1097
1097
|
...output,
|
|
1098
1098
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1101,22 +1101,22 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, con
|
|
|
1101
1101
|
switch (errorCode) {
|
|
1102
1102
|
case "AccessDeniedException":
|
|
1103
1103
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1104
|
-
throw await
|
|
1104
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1105
1105
|
case "InternalErrorException":
|
|
1106
1106
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1107
|
-
throw await
|
|
1107
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1108
1108
|
case "InvalidParameterException":
|
|
1109
1109
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1110
|
-
throw await
|
|
1110
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1111
1111
|
case "NotFoundException":
|
|
1112
1112
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1113
|
-
throw await
|
|
1113
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1114
1114
|
case "ResourceLockedException":
|
|
1115
1115
|
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1116
|
-
throw await
|
|
1116
|
+
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
1117
1117
|
case "ThrottlingException":
|
|
1118
1118
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1119
|
-
throw await
|
|
1119
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1120
1120
|
default:
|
|
1121
1121
|
const parsedBody = parsedOutput.body;
|
|
1122
1122
|
throwDefaultError({
|
|
@@ -1127,20 +1127,20 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (output, con
|
|
|
1127
1127
|
});
|
|
1128
1128
|
}
|
|
1129
1129
|
};
|
|
1130
|
-
export const
|
|
1130
|
+
export const de_UpdateBudgetCommand = async (output, context) => {
|
|
1131
1131
|
if (output.statusCode >= 300) {
|
|
1132
|
-
return
|
|
1132
|
+
return de_UpdateBudgetCommandError(output, context);
|
|
1133
1133
|
}
|
|
1134
1134
|
const data = await parseBody(output.body, context);
|
|
1135
1135
|
let contents = {};
|
|
1136
|
-
contents =
|
|
1136
|
+
contents = de_UpdateBudgetResponse(data, context);
|
|
1137
1137
|
const response = {
|
|
1138
1138
|
$metadata: deserializeMetadata(output),
|
|
1139
1139
|
...contents,
|
|
1140
1140
|
};
|
|
1141
1141
|
return Promise.resolve(response);
|
|
1142
1142
|
};
|
|
1143
|
-
const
|
|
1143
|
+
const de_UpdateBudgetCommandError = async (output, context) => {
|
|
1144
1144
|
const parsedOutput = {
|
|
1145
1145
|
...output,
|
|
1146
1146
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1149,19 +1149,19 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) =
|
|
|
1149
1149
|
switch (errorCode) {
|
|
1150
1150
|
case "AccessDeniedException":
|
|
1151
1151
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1152
|
-
throw await
|
|
1152
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1153
1153
|
case "InternalErrorException":
|
|
1154
1154
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1155
|
-
throw await
|
|
1155
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1156
1156
|
case "InvalidParameterException":
|
|
1157
1157
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1158
|
-
throw await
|
|
1158
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1159
1159
|
case "NotFoundException":
|
|
1160
1160
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1161
|
-
throw await
|
|
1161
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1162
1162
|
case "ThrottlingException":
|
|
1163
1163
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1164
|
-
throw await
|
|
1164
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1165
1165
|
default:
|
|
1166
1166
|
const parsedBody = parsedOutput.body;
|
|
1167
1167
|
throwDefaultError({
|
|
@@ -1172,20 +1172,20 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (output, context) =
|
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
1174
|
};
|
|
1175
|
-
export const
|
|
1175
|
+
export const de_UpdateBudgetActionCommand = async (output, context) => {
|
|
1176
1176
|
if (output.statusCode >= 300) {
|
|
1177
|
-
return
|
|
1177
|
+
return de_UpdateBudgetActionCommandError(output, context);
|
|
1178
1178
|
}
|
|
1179
1179
|
const data = await parseBody(output.body, context);
|
|
1180
1180
|
let contents = {};
|
|
1181
|
-
contents =
|
|
1181
|
+
contents = de_UpdateBudgetActionResponse(data, context);
|
|
1182
1182
|
const response = {
|
|
1183
1183
|
$metadata: deserializeMetadata(output),
|
|
1184
1184
|
...contents,
|
|
1185
1185
|
};
|
|
1186
1186
|
return Promise.resolve(response);
|
|
1187
1187
|
};
|
|
1188
|
-
const
|
|
1188
|
+
const de_UpdateBudgetActionCommandError = async (output, context) => {
|
|
1189
1189
|
const parsedOutput = {
|
|
1190
1190
|
...output,
|
|
1191
1191
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1194,22 +1194,22 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, cont
|
|
|
1194
1194
|
switch (errorCode) {
|
|
1195
1195
|
case "AccessDeniedException":
|
|
1196
1196
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1197
|
-
throw await
|
|
1197
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1198
1198
|
case "InternalErrorException":
|
|
1199
1199
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1200
|
-
throw await
|
|
1200
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1201
1201
|
case "InvalidParameterException":
|
|
1202
1202
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1203
|
-
throw await
|
|
1203
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1204
1204
|
case "NotFoundException":
|
|
1205
1205
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1206
|
-
throw await
|
|
1206
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1207
1207
|
case "ResourceLockedException":
|
|
1208
1208
|
case "com.amazonaws.budgets#ResourceLockedException":
|
|
1209
|
-
throw await
|
|
1209
|
+
throw await de_ResourceLockedExceptionRes(parsedOutput, context);
|
|
1210
1210
|
case "ThrottlingException":
|
|
1211
1211
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1212
|
-
throw await
|
|
1212
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1213
1213
|
default:
|
|
1214
1214
|
const parsedBody = parsedOutput.body;
|
|
1215
1215
|
throwDefaultError({
|
|
@@ -1220,20 +1220,20 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (output, cont
|
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
1222
|
};
|
|
1223
|
-
export const
|
|
1223
|
+
export const de_UpdateNotificationCommand = async (output, context) => {
|
|
1224
1224
|
if (output.statusCode >= 300) {
|
|
1225
|
-
return
|
|
1225
|
+
return de_UpdateNotificationCommandError(output, context);
|
|
1226
1226
|
}
|
|
1227
1227
|
const data = await parseBody(output.body, context);
|
|
1228
1228
|
let contents = {};
|
|
1229
|
-
contents =
|
|
1229
|
+
contents = de_UpdateNotificationResponse(data, context);
|
|
1230
1230
|
const response = {
|
|
1231
1231
|
$metadata: deserializeMetadata(output),
|
|
1232
1232
|
...contents,
|
|
1233
1233
|
};
|
|
1234
1234
|
return Promise.resolve(response);
|
|
1235
1235
|
};
|
|
1236
|
-
const
|
|
1236
|
+
const de_UpdateNotificationCommandError = async (output, context) => {
|
|
1237
1237
|
const parsedOutput = {
|
|
1238
1238
|
...output,
|
|
1239
1239
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1242,22 +1242,22 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (output, cont
|
|
|
1242
1242
|
switch (errorCode) {
|
|
1243
1243
|
case "AccessDeniedException":
|
|
1244
1244
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1245
|
-
throw await
|
|
1245
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1246
1246
|
case "DuplicateRecordException":
|
|
1247
1247
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
1248
|
-
throw await
|
|
1248
|
+
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
1249
1249
|
case "InternalErrorException":
|
|
1250
1250
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1251
|
-
throw await
|
|
1251
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1252
1252
|
case "InvalidParameterException":
|
|
1253
1253
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1254
|
-
throw await
|
|
1254
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1255
1255
|
case "NotFoundException":
|
|
1256
1256
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1257
|
-
throw await
|
|
1257
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1258
1258
|
case "ThrottlingException":
|
|
1259
1259
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1260
|
-
throw await
|
|
1260
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1261
1261
|
default:
|
|
1262
1262
|
const parsedBody = parsedOutput.body;
|
|
1263
1263
|
throwDefaultError({
|
|
@@ -1268,20 +1268,20 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (output, cont
|
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
|
-
export const
|
|
1271
|
+
export const de_UpdateSubscriberCommand = async (output, context) => {
|
|
1272
1272
|
if (output.statusCode >= 300) {
|
|
1273
|
-
return
|
|
1273
|
+
return de_UpdateSubscriberCommandError(output, context);
|
|
1274
1274
|
}
|
|
1275
1275
|
const data = await parseBody(output.body, context);
|
|
1276
1276
|
let contents = {};
|
|
1277
|
-
contents =
|
|
1277
|
+
contents = de_UpdateSubscriberResponse(data, context);
|
|
1278
1278
|
const response = {
|
|
1279
1279
|
$metadata: deserializeMetadata(output),
|
|
1280
1280
|
...contents,
|
|
1281
1281
|
};
|
|
1282
1282
|
return Promise.resolve(response);
|
|
1283
1283
|
};
|
|
1284
|
-
const
|
|
1284
|
+
const de_UpdateSubscriberCommandError = async (output, context) => {
|
|
1285
1285
|
const parsedOutput = {
|
|
1286
1286
|
...output,
|
|
1287
1287
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1290,22 +1290,22 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, contex
|
|
|
1290
1290
|
switch (errorCode) {
|
|
1291
1291
|
case "AccessDeniedException":
|
|
1292
1292
|
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1293
|
-
throw await
|
|
1293
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1294
1294
|
case "DuplicateRecordException":
|
|
1295
1295
|
case "com.amazonaws.budgets#DuplicateRecordException":
|
|
1296
|
-
throw await
|
|
1296
|
+
throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
|
|
1297
1297
|
case "InternalErrorException":
|
|
1298
1298
|
case "com.amazonaws.budgets#InternalErrorException":
|
|
1299
|
-
throw await
|
|
1299
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
1300
1300
|
case "InvalidParameterException":
|
|
1301
1301
|
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1302
|
-
throw await
|
|
1302
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1303
1303
|
case "NotFoundException":
|
|
1304
1304
|
case "com.amazonaws.budgets#NotFoundException":
|
|
1305
|
-
throw await
|
|
1305
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1306
1306
|
case "ThrottlingException":
|
|
1307
1307
|
case "com.amazonaws.budgets#ThrottlingException":
|
|
1308
|
-
throw await
|
|
1308
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1309
1309
|
default:
|
|
1310
1310
|
const parsedBody = parsedOutput.body;
|
|
1311
1311
|
throwDefaultError({
|
|
@@ -1316,152 +1316,146 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (output, contex
|
|
|
1316
1316
|
});
|
|
1317
1317
|
}
|
|
1318
1318
|
};
|
|
1319
|
-
const
|
|
1319
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1320
1320
|
const body = parsedOutput.body;
|
|
1321
|
-
const deserialized =
|
|
1321
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1322
1322
|
const exception = new AccessDeniedException({
|
|
1323
1323
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1324
1324
|
...deserialized,
|
|
1325
1325
|
});
|
|
1326
1326
|
return __decorateServiceException(exception, body);
|
|
1327
1327
|
};
|
|
1328
|
-
const
|
|
1328
|
+
const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1329
1329
|
const body = parsedOutput.body;
|
|
1330
|
-
const deserialized =
|
|
1330
|
+
const deserialized = de_CreationLimitExceededException(body, context);
|
|
1331
1331
|
const exception = new CreationLimitExceededException({
|
|
1332
1332
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1333
1333
|
...deserialized,
|
|
1334
1334
|
});
|
|
1335
1335
|
return __decorateServiceException(exception, body);
|
|
1336
1336
|
};
|
|
1337
|
-
const
|
|
1337
|
+
const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
|
|
1338
1338
|
const body = parsedOutput.body;
|
|
1339
|
-
const deserialized =
|
|
1339
|
+
const deserialized = de_DuplicateRecordException(body, context);
|
|
1340
1340
|
const exception = new DuplicateRecordException({
|
|
1341
1341
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1342
1342
|
...deserialized,
|
|
1343
1343
|
});
|
|
1344
1344
|
return __decorateServiceException(exception, body);
|
|
1345
1345
|
};
|
|
1346
|
-
const
|
|
1346
|
+
const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1347
1347
|
const body = parsedOutput.body;
|
|
1348
|
-
const deserialized =
|
|
1348
|
+
const deserialized = de_ExpiredNextTokenException(body, context);
|
|
1349
1349
|
const exception = new ExpiredNextTokenException({
|
|
1350
1350
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1351
1351
|
...deserialized,
|
|
1352
1352
|
});
|
|
1353
1353
|
return __decorateServiceException(exception, body);
|
|
1354
1354
|
};
|
|
1355
|
-
const
|
|
1355
|
+
const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1356
1356
|
const body = parsedOutput.body;
|
|
1357
|
-
const deserialized =
|
|
1357
|
+
const deserialized = de_InternalErrorException(body, context);
|
|
1358
1358
|
const exception = new InternalErrorException({
|
|
1359
1359
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1360
1360
|
...deserialized,
|
|
1361
1361
|
});
|
|
1362
1362
|
return __decorateServiceException(exception, body);
|
|
1363
1363
|
};
|
|
1364
|
-
const
|
|
1364
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
1365
1365
|
const body = parsedOutput.body;
|
|
1366
|
-
const deserialized =
|
|
1366
|
+
const deserialized = de_InvalidNextTokenException(body, context);
|
|
1367
1367
|
const exception = new InvalidNextTokenException({
|
|
1368
1368
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1369
1369
|
...deserialized,
|
|
1370
1370
|
});
|
|
1371
1371
|
return __decorateServiceException(exception, body);
|
|
1372
1372
|
};
|
|
1373
|
-
const
|
|
1373
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1374
1374
|
const body = parsedOutput.body;
|
|
1375
|
-
const deserialized =
|
|
1375
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
1376
1376
|
const exception = new InvalidParameterException({
|
|
1377
1377
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1378
1378
|
...deserialized,
|
|
1379
1379
|
});
|
|
1380
1380
|
return __decorateServiceException(exception, body);
|
|
1381
1381
|
};
|
|
1382
|
-
const
|
|
1382
|
+
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1383
1383
|
const body = parsedOutput.body;
|
|
1384
|
-
const deserialized =
|
|
1384
|
+
const deserialized = de_NotFoundException(body, context);
|
|
1385
1385
|
const exception = new NotFoundException({
|
|
1386
1386
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1387
1387
|
...deserialized,
|
|
1388
1388
|
});
|
|
1389
1389
|
return __decorateServiceException(exception, body);
|
|
1390
1390
|
};
|
|
1391
|
-
const
|
|
1391
|
+
const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
|
|
1392
1392
|
const body = parsedOutput.body;
|
|
1393
|
-
const deserialized =
|
|
1393
|
+
const deserialized = de_ResourceLockedException(body, context);
|
|
1394
1394
|
const exception = new ResourceLockedException({
|
|
1395
1395
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1396
1396
|
...deserialized,
|
|
1397
1397
|
});
|
|
1398
1398
|
return __decorateServiceException(exception, body);
|
|
1399
1399
|
};
|
|
1400
|
-
const
|
|
1400
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1401
1401
|
const body = parsedOutput.body;
|
|
1402
|
-
const deserialized =
|
|
1402
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1403
1403
|
const exception = new ThrottlingException({
|
|
1404
1404
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1405
1405
|
...deserialized,
|
|
1406
1406
|
});
|
|
1407
1407
|
return __decorateServiceException(exception, body);
|
|
1408
1408
|
};
|
|
1409
|
-
const
|
|
1409
|
+
const se_ActionThreshold = (input, context) => {
|
|
1410
1410
|
return {
|
|
1411
1411
|
...(input.ActionThresholdType != null && { ActionThresholdType: input.ActionThresholdType }),
|
|
1412
1412
|
...(input.ActionThresholdValue != null && { ActionThresholdValue: __serializeFloat(input.ActionThresholdValue) }),
|
|
1413
1413
|
};
|
|
1414
1414
|
};
|
|
1415
|
-
const
|
|
1415
|
+
const se_AutoAdjustData = (input, context) => {
|
|
1416
1416
|
return {
|
|
1417
1417
|
...(input.AutoAdjustType != null && { AutoAdjustType: input.AutoAdjustType }),
|
|
1418
1418
|
...(input.HistoricalOptions != null && {
|
|
1419
|
-
HistoricalOptions:
|
|
1419
|
+
HistoricalOptions: se_HistoricalOptions(input.HistoricalOptions, context),
|
|
1420
1420
|
}),
|
|
1421
1421
|
...(input.LastAutoAdjustTime != null && {
|
|
1422
1422
|
LastAutoAdjustTime: Math.round(input.LastAutoAdjustTime.getTime() / 1000),
|
|
1423
1423
|
}),
|
|
1424
1424
|
};
|
|
1425
1425
|
};
|
|
1426
|
-
const
|
|
1426
|
+
const se_Budget = (input, context) => {
|
|
1427
1427
|
return {
|
|
1428
|
-
...(input.AutoAdjustData != null && {
|
|
1429
|
-
|
|
1430
|
-
}),
|
|
1431
|
-
...(input.BudgetLimit != null && { BudgetLimit: serializeAws_json1_1Spend(input.BudgetLimit, context) }),
|
|
1428
|
+
...(input.AutoAdjustData != null && { AutoAdjustData: se_AutoAdjustData(input.AutoAdjustData, context) }),
|
|
1429
|
+
...(input.BudgetLimit != null && { BudgetLimit: se_Spend(input.BudgetLimit, context) }),
|
|
1432
1430
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1433
1431
|
...(input.BudgetType != null && { BudgetType: input.BudgetType }),
|
|
1434
|
-
...(input.CalculatedSpend != null && {
|
|
1435
|
-
|
|
1436
|
-
}),
|
|
1437
|
-
...(input.CostFilters != null && { CostFilters: serializeAws_json1_1CostFilters(input.CostFilters, context) }),
|
|
1438
|
-
...(input.CostTypes != null && { CostTypes: serializeAws_json1_1CostTypes(input.CostTypes, context) }),
|
|
1432
|
+
...(input.CalculatedSpend != null && { CalculatedSpend: se_CalculatedSpend(input.CalculatedSpend, context) }),
|
|
1433
|
+
...(input.CostFilters != null && { CostFilters: se_CostFilters(input.CostFilters, context) }),
|
|
1434
|
+
...(input.CostTypes != null && { CostTypes: se_CostTypes(input.CostTypes, context) }),
|
|
1439
1435
|
...(input.LastUpdatedTime != null && { LastUpdatedTime: Math.round(input.LastUpdatedTime.getTime() / 1000) }),
|
|
1440
1436
|
...(input.PlannedBudgetLimits != null && {
|
|
1441
|
-
PlannedBudgetLimits:
|
|
1437
|
+
PlannedBudgetLimits: se_PlannedBudgetLimits(input.PlannedBudgetLimits, context),
|
|
1442
1438
|
}),
|
|
1443
|
-
...(input.TimePeriod != null && { TimePeriod:
|
|
1439
|
+
...(input.TimePeriod != null && { TimePeriod: se_TimePeriod(input.TimePeriod, context) }),
|
|
1444
1440
|
...(input.TimeUnit != null && { TimeUnit: input.TimeUnit }),
|
|
1445
1441
|
};
|
|
1446
1442
|
};
|
|
1447
|
-
const
|
|
1443
|
+
const se_CalculatedSpend = (input, context) => {
|
|
1448
1444
|
return {
|
|
1449
|
-
...(input.ActualSpend != null && { ActualSpend:
|
|
1450
|
-
...(input.ForecastedSpend != null && {
|
|
1451
|
-
ForecastedSpend: serializeAws_json1_1Spend(input.ForecastedSpend, context),
|
|
1452
|
-
}),
|
|
1445
|
+
...(input.ActualSpend != null && { ActualSpend: se_Spend(input.ActualSpend, context) }),
|
|
1446
|
+
...(input.ForecastedSpend != null && { ForecastedSpend: se_Spend(input.ForecastedSpend, context) }),
|
|
1453
1447
|
};
|
|
1454
1448
|
};
|
|
1455
|
-
const
|
|
1449
|
+
const se_CostFilters = (input, context) => {
|
|
1456
1450
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1457
1451
|
if (value === null) {
|
|
1458
1452
|
return acc;
|
|
1459
1453
|
}
|
|
1460
|
-
acc[key] =
|
|
1454
|
+
acc[key] = se_DimensionValues(value, context);
|
|
1461
1455
|
return acc;
|
|
1462
1456
|
}, {});
|
|
1463
1457
|
};
|
|
1464
|
-
const
|
|
1458
|
+
const se_CostTypes = (input, context) => {
|
|
1465
1459
|
return {
|
|
1466
1460
|
...(input.IncludeCredit != null && { IncludeCredit: input.IncludeCredit }),
|
|
1467
1461
|
...(input.IncludeDiscount != null && { IncludeDiscount: input.IncludeDiscount }),
|
|
@@ -1476,112 +1470,110 @@ const serializeAws_json1_1CostTypes = (input, context) => {
|
|
|
1476
1470
|
...(input.UseBlended != null && { UseBlended: input.UseBlended }),
|
|
1477
1471
|
};
|
|
1478
1472
|
};
|
|
1479
|
-
const
|
|
1473
|
+
const se_CreateBudgetActionRequest = (input, context) => {
|
|
1480
1474
|
return {
|
|
1481
1475
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1482
|
-
...(input.ActionThreshold != null && {
|
|
1483
|
-
ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
|
|
1484
|
-
}),
|
|
1476
|
+
...(input.ActionThreshold != null && { ActionThreshold: se_ActionThreshold(input.ActionThreshold, context) }),
|
|
1485
1477
|
...(input.ActionType != null && { ActionType: input.ActionType }),
|
|
1486
1478
|
...(input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel }),
|
|
1487
1479
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1488
|
-
...(input.Definition != null && { Definition:
|
|
1480
|
+
...(input.Definition != null && { Definition: se_Definition(input.Definition, context) }),
|
|
1489
1481
|
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
1490
1482
|
...(input.NotificationType != null && { NotificationType: input.NotificationType }),
|
|
1491
|
-
...(input.Subscribers != null && { Subscribers:
|
|
1483
|
+
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
1492
1484
|
};
|
|
1493
1485
|
};
|
|
1494
|
-
const
|
|
1486
|
+
const se_CreateBudgetRequest = (input, context) => {
|
|
1495
1487
|
return {
|
|
1496
1488
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1497
|
-
...(input.Budget != null && { Budget:
|
|
1489
|
+
...(input.Budget != null && { Budget: se_Budget(input.Budget, context) }),
|
|
1498
1490
|
...(input.NotificationsWithSubscribers != null && {
|
|
1499
|
-
NotificationsWithSubscribers:
|
|
1491
|
+
NotificationsWithSubscribers: se_NotificationWithSubscribersList(input.NotificationsWithSubscribers, context),
|
|
1500
1492
|
}),
|
|
1501
1493
|
};
|
|
1502
1494
|
};
|
|
1503
|
-
const
|
|
1495
|
+
const se_CreateNotificationRequest = (input, context) => {
|
|
1504
1496
|
return {
|
|
1505
1497
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1506
1498
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1507
|
-
...(input.Notification != null && { Notification:
|
|
1508
|
-
...(input.Subscribers != null && { Subscribers:
|
|
1499
|
+
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1500
|
+
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
1509
1501
|
};
|
|
1510
1502
|
};
|
|
1511
|
-
const
|
|
1503
|
+
const se_CreateSubscriberRequest = (input, context) => {
|
|
1512
1504
|
return {
|
|
1513
1505
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1514
1506
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1515
|
-
...(input.Notification != null && { Notification:
|
|
1516
|
-
...(input.Subscriber != null && { Subscriber:
|
|
1507
|
+
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1508
|
+
...(input.Subscriber != null && { Subscriber: se_Subscriber(input.Subscriber, context) }),
|
|
1517
1509
|
};
|
|
1518
1510
|
};
|
|
1519
|
-
const
|
|
1511
|
+
const se_Definition = (input, context) => {
|
|
1520
1512
|
return {
|
|
1521
1513
|
...(input.IamActionDefinition != null && {
|
|
1522
|
-
IamActionDefinition:
|
|
1514
|
+
IamActionDefinition: se_IamActionDefinition(input.IamActionDefinition, context),
|
|
1523
1515
|
}),
|
|
1524
1516
|
...(input.ScpActionDefinition != null && {
|
|
1525
|
-
ScpActionDefinition:
|
|
1517
|
+
ScpActionDefinition: se_ScpActionDefinition(input.ScpActionDefinition, context),
|
|
1526
1518
|
}),
|
|
1527
1519
|
...(input.SsmActionDefinition != null && {
|
|
1528
|
-
SsmActionDefinition:
|
|
1520
|
+
SsmActionDefinition: se_SsmActionDefinition(input.SsmActionDefinition, context),
|
|
1529
1521
|
}),
|
|
1530
1522
|
};
|
|
1531
1523
|
};
|
|
1532
|
-
const
|
|
1524
|
+
const se_DeleteBudgetActionRequest = (input, context) => {
|
|
1533
1525
|
return {
|
|
1534
1526
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1535
1527
|
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1536
1528
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1537
1529
|
};
|
|
1538
1530
|
};
|
|
1539
|
-
const
|
|
1531
|
+
const se_DeleteBudgetRequest = (input, context) => {
|
|
1540
1532
|
return {
|
|
1541
1533
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1542
1534
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1543
1535
|
};
|
|
1544
1536
|
};
|
|
1545
|
-
const
|
|
1537
|
+
const se_DeleteNotificationRequest = (input, context) => {
|
|
1546
1538
|
return {
|
|
1547
1539
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1548
1540
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1549
|
-
...(input.Notification != null && { Notification:
|
|
1541
|
+
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1550
1542
|
};
|
|
1551
1543
|
};
|
|
1552
|
-
const
|
|
1544
|
+
const se_DeleteSubscriberRequest = (input, context) => {
|
|
1553
1545
|
return {
|
|
1554
1546
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1555
1547
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1556
|
-
...(input.Notification != null && { Notification:
|
|
1557
|
-
...(input.Subscriber != null && { Subscriber:
|
|
1548
|
+
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1549
|
+
...(input.Subscriber != null && { Subscriber: se_Subscriber(input.Subscriber, context) }),
|
|
1558
1550
|
};
|
|
1559
1551
|
};
|
|
1560
|
-
const
|
|
1552
|
+
const se_DescribeBudgetActionHistoriesRequest = (input, context) => {
|
|
1561
1553
|
return {
|
|
1562
1554
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1563
1555
|
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1564
1556
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1565
1557
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1566
1558
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1567
|
-
...(input.TimePeriod != null && { TimePeriod:
|
|
1559
|
+
...(input.TimePeriod != null && { TimePeriod: se_TimePeriod(input.TimePeriod, context) }),
|
|
1568
1560
|
};
|
|
1569
1561
|
};
|
|
1570
|
-
const
|
|
1562
|
+
const se_DescribeBudgetActionRequest = (input, context) => {
|
|
1571
1563
|
return {
|
|
1572
1564
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1573
1565
|
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1574
1566
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1575
1567
|
};
|
|
1576
1568
|
};
|
|
1577
|
-
const
|
|
1569
|
+
const se_DescribeBudgetActionsForAccountRequest = (input, context) => {
|
|
1578
1570
|
return {
|
|
1579
1571
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1580
1572
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1581
1573
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1582
1574
|
};
|
|
1583
1575
|
};
|
|
1584
|
-
const
|
|
1576
|
+
const se_DescribeBudgetActionsForBudgetRequest = (input, context) => {
|
|
1585
1577
|
return {
|
|
1586
1578
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1587
1579
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
@@ -1589,36 +1581,36 @@ const serializeAws_json1_1DescribeBudgetActionsForBudgetRequest = (input, contex
|
|
|
1589
1581
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1590
1582
|
};
|
|
1591
1583
|
};
|
|
1592
|
-
const
|
|
1584
|
+
const se_DescribeBudgetNotificationsForAccountRequest = (input, context) => {
|
|
1593
1585
|
return {
|
|
1594
1586
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1595
1587
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1596
1588
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1597
1589
|
};
|
|
1598
1590
|
};
|
|
1599
|
-
const
|
|
1591
|
+
const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
1600
1592
|
return {
|
|
1601
1593
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1602
1594
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1603
1595
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1604
1596
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1605
|
-
...(input.TimePeriod != null && { TimePeriod:
|
|
1597
|
+
...(input.TimePeriod != null && { TimePeriod: se_TimePeriod(input.TimePeriod, context) }),
|
|
1606
1598
|
};
|
|
1607
1599
|
};
|
|
1608
|
-
const
|
|
1600
|
+
const se_DescribeBudgetRequest = (input, context) => {
|
|
1609
1601
|
return {
|
|
1610
1602
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1611
1603
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1612
1604
|
};
|
|
1613
1605
|
};
|
|
1614
|
-
const
|
|
1606
|
+
const se_DescribeBudgetsRequest = (input, context) => {
|
|
1615
1607
|
return {
|
|
1616
1608
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1617
1609
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1618
1610
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1619
1611
|
};
|
|
1620
1612
|
};
|
|
1621
|
-
const
|
|
1613
|
+
const se_DescribeNotificationsForBudgetRequest = (input, context) => {
|
|
1622
1614
|
return {
|
|
1623
1615
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1624
1616
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
@@ -1626,23 +1618,23 @@ const serializeAws_json1_1DescribeNotificationsForBudgetRequest = (input, contex
|
|
|
1626
1618
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1627
1619
|
};
|
|
1628
1620
|
};
|
|
1629
|
-
const
|
|
1621
|
+
const se_DescribeSubscribersForNotificationRequest = (input, context) => {
|
|
1630
1622
|
return {
|
|
1631
1623
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1632
1624
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1633
1625
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1634
1626
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1635
|
-
...(input.Notification != null && { Notification:
|
|
1627
|
+
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1636
1628
|
};
|
|
1637
1629
|
};
|
|
1638
|
-
const
|
|
1630
|
+
const se_DimensionValues = (input, context) => {
|
|
1639
1631
|
return input
|
|
1640
1632
|
.filter((e) => e != null)
|
|
1641
1633
|
.map((entry) => {
|
|
1642
1634
|
return entry;
|
|
1643
1635
|
});
|
|
1644
1636
|
};
|
|
1645
|
-
const
|
|
1637
|
+
const se_ExecuteBudgetActionRequest = (input, context) => {
|
|
1646
1638
|
return {
|
|
1647
1639
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1648
1640
|
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
@@ -1650,35 +1642,35 @@ const serializeAws_json1_1ExecuteBudgetActionRequest = (input, context) => {
|
|
|
1650
1642
|
...(input.ExecutionType != null && { ExecutionType: input.ExecutionType }),
|
|
1651
1643
|
};
|
|
1652
1644
|
};
|
|
1653
|
-
const
|
|
1645
|
+
const se_Groups = (input, context) => {
|
|
1654
1646
|
return input
|
|
1655
1647
|
.filter((e) => e != null)
|
|
1656
1648
|
.map((entry) => {
|
|
1657
1649
|
return entry;
|
|
1658
1650
|
});
|
|
1659
1651
|
};
|
|
1660
|
-
const
|
|
1652
|
+
const se_HistoricalOptions = (input, context) => {
|
|
1661
1653
|
return {
|
|
1662
1654
|
...(input.BudgetAdjustmentPeriod != null && { BudgetAdjustmentPeriod: input.BudgetAdjustmentPeriod }),
|
|
1663
1655
|
...(input.LookBackAvailablePeriods != null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }),
|
|
1664
1656
|
};
|
|
1665
1657
|
};
|
|
1666
|
-
const
|
|
1658
|
+
const se_IamActionDefinition = (input, context) => {
|
|
1667
1659
|
return {
|
|
1668
|
-
...(input.Groups != null && { Groups:
|
|
1660
|
+
...(input.Groups != null && { Groups: se_Groups(input.Groups, context) }),
|
|
1669
1661
|
...(input.PolicyArn != null && { PolicyArn: input.PolicyArn }),
|
|
1670
|
-
...(input.Roles != null && { Roles:
|
|
1671
|
-
...(input.Users != null && { Users:
|
|
1662
|
+
...(input.Roles != null && { Roles: se_Roles(input.Roles, context) }),
|
|
1663
|
+
...(input.Users != null && { Users: se_Users(input.Users, context) }),
|
|
1672
1664
|
};
|
|
1673
1665
|
};
|
|
1674
|
-
const
|
|
1666
|
+
const se_InstanceIds = (input, context) => {
|
|
1675
1667
|
return input
|
|
1676
1668
|
.filter((e) => e != null)
|
|
1677
1669
|
.map((entry) => {
|
|
1678
1670
|
return entry;
|
|
1679
1671
|
});
|
|
1680
1672
|
};
|
|
1681
|
-
const
|
|
1673
|
+
const se_Notification = (input, context) => {
|
|
1682
1674
|
return {
|
|
1683
1675
|
...(input.ComparisonOperator != null && { ComparisonOperator: input.ComparisonOperator }),
|
|
1684
1676
|
...(input.NotificationState != null && { NotificationState: input.NotificationState }),
|
|
@@ -1687,300 +1679,284 @@ const serializeAws_json1_1Notification = (input, context) => {
|
|
|
1687
1679
|
...(input.ThresholdType != null && { ThresholdType: input.ThresholdType }),
|
|
1688
1680
|
};
|
|
1689
1681
|
};
|
|
1690
|
-
const
|
|
1682
|
+
const se_NotificationWithSubscribers = (input, context) => {
|
|
1691
1683
|
return {
|
|
1692
|
-
...(input.Notification != null && { Notification:
|
|
1693
|
-
...(input.Subscribers != null && { Subscribers:
|
|
1684
|
+
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1685
|
+
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
1694
1686
|
};
|
|
1695
1687
|
};
|
|
1696
|
-
const
|
|
1688
|
+
const se_NotificationWithSubscribersList = (input, context) => {
|
|
1697
1689
|
return input
|
|
1698
1690
|
.filter((e) => e != null)
|
|
1699
1691
|
.map((entry) => {
|
|
1700
|
-
return
|
|
1692
|
+
return se_NotificationWithSubscribers(entry, context);
|
|
1701
1693
|
});
|
|
1702
1694
|
};
|
|
1703
|
-
const
|
|
1695
|
+
const se_PlannedBudgetLimits = (input, context) => {
|
|
1704
1696
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1705
1697
|
if (value === null) {
|
|
1706
1698
|
return acc;
|
|
1707
1699
|
}
|
|
1708
|
-
acc[key] =
|
|
1700
|
+
acc[key] = se_Spend(value, context);
|
|
1709
1701
|
return acc;
|
|
1710
1702
|
}, {});
|
|
1711
1703
|
};
|
|
1712
|
-
const
|
|
1704
|
+
const se_Roles = (input, context) => {
|
|
1713
1705
|
return input
|
|
1714
1706
|
.filter((e) => e != null)
|
|
1715
1707
|
.map((entry) => {
|
|
1716
1708
|
return entry;
|
|
1717
1709
|
});
|
|
1718
1710
|
};
|
|
1719
|
-
const
|
|
1711
|
+
const se_ScpActionDefinition = (input, context) => {
|
|
1720
1712
|
return {
|
|
1721
1713
|
...(input.PolicyId != null && { PolicyId: input.PolicyId }),
|
|
1722
|
-
...(input.TargetIds != null && { TargetIds:
|
|
1714
|
+
...(input.TargetIds != null && { TargetIds: se_TargetIds(input.TargetIds, context) }),
|
|
1723
1715
|
};
|
|
1724
1716
|
};
|
|
1725
|
-
const
|
|
1717
|
+
const se_Spend = (input, context) => {
|
|
1726
1718
|
return {
|
|
1727
1719
|
...(input.Amount != null && { Amount: input.Amount }),
|
|
1728
1720
|
...(input.Unit != null && { Unit: input.Unit }),
|
|
1729
1721
|
};
|
|
1730
1722
|
};
|
|
1731
|
-
const
|
|
1723
|
+
const se_SsmActionDefinition = (input, context) => {
|
|
1732
1724
|
return {
|
|
1733
1725
|
...(input.ActionSubType != null && { ActionSubType: input.ActionSubType }),
|
|
1734
|
-
...(input.InstanceIds != null && { InstanceIds:
|
|
1726
|
+
...(input.InstanceIds != null && { InstanceIds: se_InstanceIds(input.InstanceIds, context) }),
|
|
1735
1727
|
...(input.Region != null && { Region: input.Region }),
|
|
1736
1728
|
};
|
|
1737
1729
|
};
|
|
1738
|
-
const
|
|
1730
|
+
const se_Subscriber = (input, context) => {
|
|
1739
1731
|
return {
|
|
1740
1732
|
...(input.Address != null && { Address: input.Address }),
|
|
1741
1733
|
...(input.SubscriptionType != null && { SubscriptionType: input.SubscriptionType }),
|
|
1742
1734
|
};
|
|
1743
1735
|
};
|
|
1744
|
-
const
|
|
1736
|
+
const se_Subscribers = (input, context) => {
|
|
1745
1737
|
return input
|
|
1746
1738
|
.filter((e) => e != null)
|
|
1747
1739
|
.map((entry) => {
|
|
1748
|
-
return
|
|
1740
|
+
return se_Subscriber(entry, context);
|
|
1749
1741
|
});
|
|
1750
1742
|
};
|
|
1751
|
-
const
|
|
1743
|
+
const se_TargetIds = (input, context) => {
|
|
1752
1744
|
return input
|
|
1753
1745
|
.filter((e) => e != null)
|
|
1754
1746
|
.map((entry) => {
|
|
1755
1747
|
return entry;
|
|
1756
1748
|
});
|
|
1757
1749
|
};
|
|
1758
|
-
const
|
|
1750
|
+
const se_TimePeriod = (input, context) => {
|
|
1759
1751
|
return {
|
|
1760
1752
|
...(input.End != null && { End: Math.round(input.End.getTime() / 1000) }),
|
|
1761
1753
|
...(input.Start != null && { Start: Math.round(input.Start.getTime() / 1000) }),
|
|
1762
1754
|
};
|
|
1763
1755
|
};
|
|
1764
|
-
const
|
|
1756
|
+
const se_UpdateBudgetActionRequest = (input, context) => {
|
|
1765
1757
|
return {
|
|
1766
1758
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1767
1759
|
...(input.ActionId != null && { ActionId: input.ActionId }),
|
|
1768
|
-
...(input.ActionThreshold != null && {
|
|
1769
|
-
ActionThreshold: serializeAws_json1_1ActionThreshold(input.ActionThreshold, context),
|
|
1770
|
-
}),
|
|
1760
|
+
...(input.ActionThreshold != null && { ActionThreshold: se_ActionThreshold(input.ActionThreshold, context) }),
|
|
1771
1761
|
...(input.ApprovalModel != null && { ApprovalModel: input.ApprovalModel }),
|
|
1772
1762
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1773
|
-
...(input.Definition != null && { Definition:
|
|
1763
|
+
...(input.Definition != null && { Definition: se_Definition(input.Definition, context) }),
|
|
1774
1764
|
...(input.ExecutionRoleArn != null && { ExecutionRoleArn: input.ExecutionRoleArn }),
|
|
1775
1765
|
...(input.NotificationType != null && { NotificationType: input.NotificationType }),
|
|
1776
|
-
...(input.Subscribers != null && { Subscribers:
|
|
1766
|
+
...(input.Subscribers != null && { Subscribers: se_Subscribers(input.Subscribers, context) }),
|
|
1777
1767
|
};
|
|
1778
1768
|
};
|
|
1779
|
-
const
|
|
1769
|
+
const se_UpdateBudgetRequest = (input, context) => {
|
|
1780
1770
|
return {
|
|
1781
1771
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1782
|
-
...(input.NewBudget != null && { NewBudget:
|
|
1772
|
+
...(input.NewBudget != null && { NewBudget: se_Budget(input.NewBudget, context) }),
|
|
1783
1773
|
};
|
|
1784
1774
|
};
|
|
1785
|
-
const
|
|
1775
|
+
const se_UpdateNotificationRequest = (input, context) => {
|
|
1786
1776
|
return {
|
|
1787
1777
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1788
1778
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1789
|
-
...(input.NewNotification != null && {
|
|
1790
|
-
|
|
1791
|
-
}),
|
|
1792
|
-
...(input.OldNotification != null && {
|
|
1793
|
-
OldNotification: serializeAws_json1_1Notification(input.OldNotification, context),
|
|
1794
|
-
}),
|
|
1779
|
+
...(input.NewNotification != null && { NewNotification: se_Notification(input.NewNotification, context) }),
|
|
1780
|
+
...(input.OldNotification != null && { OldNotification: se_Notification(input.OldNotification, context) }),
|
|
1795
1781
|
};
|
|
1796
1782
|
};
|
|
1797
|
-
const
|
|
1783
|
+
const se_UpdateSubscriberRequest = (input, context) => {
|
|
1798
1784
|
return {
|
|
1799
1785
|
...(input.AccountId != null && { AccountId: input.AccountId }),
|
|
1800
1786
|
...(input.BudgetName != null && { BudgetName: input.BudgetName }),
|
|
1801
|
-
...(input.NewSubscriber != null && { NewSubscriber:
|
|
1802
|
-
...(input.Notification != null && { Notification:
|
|
1803
|
-
...(input.OldSubscriber != null && { OldSubscriber:
|
|
1787
|
+
...(input.NewSubscriber != null && { NewSubscriber: se_Subscriber(input.NewSubscriber, context) }),
|
|
1788
|
+
...(input.Notification != null && { Notification: se_Notification(input.Notification, context) }),
|
|
1789
|
+
...(input.OldSubscriber != null && { OldSubscriber: se_Subscriber(input.OldSubscriber, context) }),
|
|
1804
1790
|
};
|
|
1805
1791
|
};
|
|
1806
|
-
const
|
|
1792
|
+
const se_Users = (input, context) => {
|
|
1807
1793
|
return input
|
|
1808
1794
|
.filter((e) => e != null)
|
|
1809
1795
|
.map((entry) => {
|
|
1810
1796
|
return entry;
|
|
1811
1797
|
});
|
|
1812
1798
|
};
|
|
1813
|
-
const
|
|
1799
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1814
1800
|
return {
|
|
1815
1801
|
Message: __expectString(output.Message),
|
|
1816
1802
|
};
|
|
1817
1803
|
};
|
|
1818
|
-
const
|
|
1804
|
+
const de_Action = (output, context) => {
|
|
1819
1805
|
return {
|
|
1820
1806
|
ActionId: __expectString(output.ActionId),
|
|
1821
|
-
ActionThreshold: output.ActionThreshold != null
|
|
1822
|
-
? deserializeAws_json1_1ActionThreshold(output.ActionThreshold, context)
|
|
1823
|
-
: undefined,
|
|
1807
|
+
ActionThreshold: output.ActionThreshold != null ? de_ActionThreshold(output.ActionThreshold, context) : undefined,
|
|
1824
1808
|
ActionType: __expectString(output.ActionType),
|
|
1825
1809
|
ApprovalModel: __expectString(output.ApprovalModel),
|
|
1826
1810
|
BudgetName: __expectString(output.BudgetName),
|
|
1827
|
-
Definition: output.Definition != null ?
|
|
1811
|
+
Definition: output.Definition != null ? de_Definition(output.Definition, context) : undefined,
|
|
1828
1812
|
ExecutionRoleArn: __expectString(output.ExecutionRoleArn),
|
|
1829
1813
|
NotificationType: __expectString(output.NotificationType),
|
|
1830
1814
|
Status: __expectString(output.Status),
|
|
1831
|
-
Subscribers: output.Subscribers != null ?
|
|
1815
|
+
Subscribers: output.Subscribers != null ? de_Subscribers(output.Subscribers, context) : undefined,
|
|
1832
1816
|
};
|
|
1833
1817
|
};
|
|
1834
|
-
const
|
|
1818
|
+
const de_ActionHistories = (output, context) => {
|
|
1835
1819
|
const retVal = (output || [])
|
|
1836
1820
|
.filter((e) => e != null)
|
|
1837
1821
|
.map((entry) => {
|
|
1838
1822
|
if (entry === null) {
|
|
1839
1823
|
return null;
|
|
1840
1824
|
}
|
|
1841
|
-
return
|
|
1825
|
+
return de_ActionHistory(entry, context);
|
|
1842
1826
|
});
|
|
1843
1827
|
return retVal;
|
|
1844
1828
|
};
|
|
1845
|
-
const
|
|
1829
|
+
const de_ActionHistory = (output, context) => {
|
|
1846
1830
|
return {
|
|
1847
|
-
ActionHistoryDetails: output.ActionHistoryDetails != null
|
|
1848
|
-
? deserializeAws_json1_1ActionHistoryDetails(output.ActionHistoryDetails, context)
|
|
1849
|
-
: undefined,
|
|
1831
|
+
ActionHistoryDetails: output.ActionHistoryDetails != null ? de_ActionHistoryDetails(output.ActionHistoryDetails, context) : undefined,
|
|
1850
1832
|
EventType: __expectString(output.EventType),
|
|
1851
1833
|
Status: __expectString(output.Status),
|
|
1852
1834
|
Timestamp: output.Timestamp != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Timestamp))) : undefined,
|
|
1853
1835
|
};
|
|
1854
1836
|
};
|
|
1855
|
-
const
|
|
1837
|
+
const de_ActionHistoryDetails = (output, context) => {
|
|
1856
1838
|
return {
|
|
1857
|
-
Action: output.Action != null ?
|
|
1839
|
+
Action: output.Action != null ? de_Action(output.Action, context) : undefined,
|
|
1858
1840
|
Message: __expectString(output.Message),
|
|
1859
1841
|
};
|
|
1860
1842
|
};
|
|
1861
|
-
const
|
|
1843
|
+
const de_Actions = (output, context) => {
|
|
1862
1844
|
const retVal = (output || [])
|
|
1863
1845
|
.filter((e) => e != null)
|
|
1864
1846
|
.map((entry) => {
|
|
1865
1847
|
if (entry === null) {
|
|
1866
1848
|
return null;
|
|
1867
1849
|
}
|
|
1868
|
-
return
|
|
1850
|
+
return de_Action(entry, context);
|
|
1869
1851
|
});
|
|
1870
1852
|
return retVal;
|
|
1871
1853
|
};
|
|
1872
|
-
const
|
|
1854
|
+
const de_ActionThreshold = (output, context) => {
|
|
1873
1855
|
return {
|
|
1874
1856
|
ActionThresholdType: __expectString(output.ActionThresholdType),
|
|
1875
1857
|
ActionThresholdValue: __limitedParseDouble(output.ActionThresholdValue),
|
|
1876
1858
|
};
|
|
1877
1859
|
};
|
|
1878
|
-
const
|
|
1860
|
+
const de_AutoAdjustData = (output, context) => {
|
|
1879
1861
|
return {
|
|
1880
1862
|
AutoAdjustType: __expectString(output.AutoAdjustType),
|
|
1881
|
-
HistoricalOptions: output.HistoricalOptions != null
|
|
1882
|
-
? deserializeAws_json1_1HistoricalOptions(output.HistoricalOptions, context)
|
|
1883
|
-
: undefined,
|
|
1863
|
+
HistoricalOptions: output.HistoricalOptions != null ? de_HistoricalOptions(output.HistoricalOptions, context) : undefined,
|
|
1884
1864
|
LastAutoAdjustTime: output.LastAutoAdjustTime != null
|
|
1885
1865
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastAutoAdjustTime)))
|
|
1886
1866
|
: undefined,
|
|
1887
1867
|
};
|
|
1888
1868
|
};
|
|
1889
|
-
const
|
|
1869
|
+
const de_Budget = (output, context) => {
|
|
1890
1870
|
return {
|
|
1891
|
-
AutoAdjustData: output.AutoAdjustData != null ?
|
|
1892
|
-
BudgetLimit: output.BudgetLimit != null ?
|
|
1871
|
+
AutoAdjustData: output.AutoAdjustData != null ? de_AutoAdjustData(output.AutoAdjustData, context) : undefined,
|
|
1872
|
+
BudgetLimit: output.BudgetLimit != null ? de_Spend(output.BudgetLimit, context) : undefined,
|
|
1893
1873
|
BudgetName: __expectString(output.BudgetName),
|
|
1894
1874
|
BudgetType: __expectString(output.BudgetType),
|
|
1895
|
-
CalculatedSpend: output.CalculatedSpend != null
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
CostFilters: output.CostFilters != null ? deserializeAws_json1_1CostFilters(output.CostFilters, context) : undefined,
|
|
1899
|
-
CostTypes: output.CostTypes != null ? deserializeAws_json1_1CostTypes(output.CostTypes, context) : undefined,
|
|
1875
|
+
CalculatedSpend: output.CalculatedSpend != null ? de_CalculatedSpend(output.CalculatedSpend, context) : undefined,
|
|
1876
|
+
CostFilters: output.CostFilters != null ? de_CostFilters(output.CostFilters, context) : undefined,
|
|
1877
|
+
CostTypes: output.CostTypes != null ? de_CostTypes(output.CostTypes, context) : undefined,
|
|
1900
1878
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
1901
1879
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTime)))
|
|
1902
1880
|
: undefined,
|
|
1903
|
-
PlannedBudgetLimits: output.PlannedBudgetLimits != null
|
|
1904
|
-
|
|
1905
|
-
: undefined,
|
|
1906
|
-
TimePeriod: output.TimePeriod != null ? deserializeAws_json1_1TimePeriod(output.TimePeriod, context) : undefined,
|
|
1881
|
+
PlannedBudgetLimits: output.PlannedBudgetLimits != null ? de_PlannedBudgetLimits(output.PlannedBudgetLimits, context) : undefined,
|
|
1882
|
+
TimePeriod: output.TimePeriod != null ? de_TimePeriod(output.TimePeriod, context) : undefined,
|
|
1907
1883
|
TimeUnit: __expectString(output.TimeUnit),
|
|
1908
1884
|
};
|
|
1909
1885
|
};
|
|
1910
|
-
const
|
|
1886
|
+
const de_BudgetedAndActualAmounts = (output, context) => {
|
|
1911
1887
|
return {
|
|
1912
|
-
ActualAmount: output.ActualAmount != null ?
|
|
1913
|
-
BudgetedAmount: output.BudgetedAmount != null ?
|
|
1914
|
-
TimePeriod: output.TimePeriod != null ?
|
|
1888
|
+
ActualAmount: output.ActualAmount != null ? de_Spend(output.ActualAmount, context) : undefined,
|
|
1889
|
+
BudgetedAmount: output.BudgetedAmount != null ? de_Spend(output.BudgetedAmount, context) : undefined,
|
|
1890
|
+
TimePeriod: output.TimePeriod != null ? de_TimePeriod(output.TimePeriod, context) : undefined,
|
|
1915
1891
|
};
|
|
1916
1892
|
};
|
|
1917
|
-
const
|
|
1893
|
+
const de_BudgetedAndActualAmountsList = (output, context) => {
|
|
1918
1894
|
const retVal = (output || [])
|
|
1919
1895
|
.filter((e) => e != null)
|
|
1920
1896
|
.map((entry) => {
|
|
1921
1897
|
if (entry === null) {
|
|
1922
1898
|
return null;
|
|
1923
1899
|
}
|
|
1924
|
-
return
|
|
1900
|
+
return de_BudgetedAndActualAmounts(entry, context);
|
|
1925
1901
|
});
|
|
1926
1902
|
return retVal;
|
|
1927
1903
|
};
|
|
1928
|
-
const
|
|
1904
|
+
const de_BudgetNotificationsForAccount = (output, context) => {
|
|
1929
1905
|
return {
|
|
1930
1906
|
BudgetName: __expectString(output.BudgetName),
|
|
1931
|
-
Notifications: output.Notifications != null ?
|
|
1907
|
+
Notifications: output.Notifications != null ? de_Notifications(output.Notifications, context) : undefined,
|
|
1932
1908
|
};
|
|
1933
1909
|
};
|
|
1934
|
-
const
|
|
1910
|
+
const de_BudgetNotificationsForAccountList = (output, context) => {
|
|
1935
1911
|
const retVal = (output || [])
|
|
1936
1912
|
.filter((e) => e != null)
|
|
1937
1913
|
.map((entry) => {
|
|
1938
1914
|
if (entry === null) {
|
|
1939
1915
|
return null;
|
|
1940
1916
|
}
|
|
1941
|
-
return
|
|
1917
|
+
return de_BudgetNotificationsForAccount(entry, context);
|
|
1942
1918
|
});
|
|
1943
1919
|
return retVal;
|
|
1944
1920
|
};
|
|
1945
|
-
const
|
|
1921
|
+
const de_BudgetPerformanceHistory = (output, context) => {
|
|
1946
1922
|
return {
|
|
1947
1923
|
BudgetName: __expectString(output.BudgetName),
|
|
1948
1924
|
BudgetType: __expectString(output.BudgetType),
|
|
1949
1925
|
BudgetedAndActualAmountsList: output.BudgetedAndActualAmountsList != null
|
|
1950
|
-
?
|
|
1926
|
+
? de_BudgetedAndActualAmountsList(output.BudgetedAndActualAmountsList, context)
|
|
1951
1927
|
: undefined,
|
|
1952
|
-
CostFilters: output.CostFilters != null ?
|
|
1953
|
-
CostTypes: output.CostTypes != null ?
|
|
1928
|
+
CostFilters: output.CostFilters != null ? de_CostFilters(output.CostFilters, context) : undefined,
|
|
1929
|
+
CostTypes: output.CostTypes != null ? de_CostTypes(output.CostTypes, context) : undefined,
|
|
1954
1930
|
TimeUnit: __expectString(output.TimeUnit),
|
|
1955
1931
|
};
|
|
1956
1932
|
};
|
|
1957
|
-
const
|
|
1933
|
+
const de_Budgets = (output, context) => {
|
|
1958
1934
|
const retVal = (output || [])
|
|
1959
1935
|
.filter((e) => e != null)
|
|
1960
1936
|
.map((entry) => {
|
|
1961
1937
|
if (entry === null) {
|
|
1962
1938
|
return null;
|
|
1963
1939
|
}
|
|
1964
|
-
return
|
|
1940
|
+
return de_Budget(entry, context);
|
|
1965
1941
|
});
|
|
1966
1942
|
return retVal;
|
|
1967
1943
|
};
|
|
1968
|
-
const
|
|
1944
|
+
const de_CalculatedSpend = (output, context) => {
|
|
1969
1945
|
return {
|
|
1970
|
-
ActualSpend: output.ActualSpend != null ?
|
|
1971
|
-
ForecastedSpend: output.ForecastedSpend != null ?
|
|
1946
|
+
ActualSpend: output.ActualSpend != null ? de_Spend(output.ActualSpend, context) : undefined,
|
|
1947
|
+
ForecastedSpend: output.ForecastedSpend != null ? de_Spend(output.ForecastedSpend, context) : undefined,
|
|
1972
1948
|
};
|
|
1973
1949
|
};
|
|
1974
|
-
const
|
|
1950
|
+
const de_CostFilters = (output, context) => {
|
|
1975
1951
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1976
1952
|
if (value === null) {
|
|
1977
1953
|
return acc;
|
|
1978
1954
|
}
|
|
1979
|
-
acc[key] =
|
|
1955
|
+
acc[key] = de_DimensionValues(value, context);
|
|
1980
1956
|
return acc;
|
|
1981
1957
|
}, {});
|
|
1982
1958
|
};
|
|
1983
|
-
const
|
|
1959
|
+
const de_CostTypes = (output, context) => {
|
|
1984
1960
|
return {
|
|
1985
1961
|
IncludeCredit: __expectBoolean(output.IncludeCredit),
|
|
1986
1962
|
IncludeDiscount: __expectBoolean(output.IncludeDiscount),
|
|
@@ -1995,123 +1971,115 @@ const deserializeAws_json1_1CostTypes = (output, context) => {
|
|
|
1995
1971
|
UseBlended: __expectBoolean(output.UseBlended),
|
|
1996
1972
|
};
|
|
1997
1973
|
};
|
|
1998
|
-
const
|
|
1974
|
+
const de_CreateBudgetActionResponse = (output, context) => {
|
|
1999
1975
|
return {
|
|
2000
1976
|
AccountId: __expectString(output.AccountId),
|
|
2001
1977
|
ActionId: __expectString(output.ActionId),
|
|
2002
1978
|
BudgetName: __expectString(output.BudgetName),
|
|
2003
1979
|
};
|
|
2004
1980
|
};
|
|
2005
|
-
const
|
|
1981
|
+
const de_CreateBudgetResponse = (output, context) => {
|
|
2006
1982
|
return {};
|
|
2007
1983
|
};
|
|
2008
|
-
const
|
|
1984
|
+
const de_CreateNotificationResponse = (output, context) => {
|
|
2009
1985
|
return {};
|
|
2010
1986
|
};
|
|
2011
|
-
const
|
|
1987
|
+
const de_CreateSubscriberResponse = (output, context) => {
|
|
2012
1988
|
return {};
|
|
2013
1989
|
};
|
|
2014
|
-
const
|
|
1990
|
+
const de_CreationLimitExceededException = (output, context) => {
|
|
2015
1991
|
return {
|
|
2016
1992
|
Message: __expectString(output.Message),
|
|
2017
1993
|
};
|
|
2018
1994
|
};
|
|
2019
|
-
const
|
|
1995
|
+
const de_Definition = (output, context) => {
|
|
2020
1996
|
return {
|
|
2021
|
-
IamActionDefinition: output.IamActionDefinition != null
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
ScpActionDefinition: output.ScpActionDefinition != null
|
|
2025
|
-
? deserializeAws_json1_1ScpActionDefinition(output.ScpActionDefinition, context)
|
|
2026
|
-
: undefined,
|
|
2027
|
-
SsmActionDefinition: output.SsmActionDefinition != null
|
|
2028
|
-
? deserializeAws_json1_1SsmActionDefinition(output.SsmActionDefinition, context)
|
|
2029
|
-
: undefined,
|
|
1997
|
+
IamActionDefinition: output.IamActionDefinition != null ? de_IamActionDefinition(output.IamActionDefinition, context) : undefined,
|
|
1998
|
+
ScpActionDefinition: output.ScpActionDefinition != null ? de_ScpActionDefinition(output.ScpActionDefinition, context) : undefined,
|
|
1999
|
+
SsmActionDefinition: output.SsmActionDefinition != null ? de_SsmActionDefinition(output.SsmActionDefinition, context) : undefined,
|
|
2030
2000
|
};
|
|
2031
2001
|
};
|
|
2032
|
-
const
|
|
2002
|
+
const de_DeleteBudgetActionResponse = (output, context) => {
|
|
2033
2003
|
return {
|
|
2034
2004
|
AccountId: __expectString(output.AccountId),
|
|
2035
|
-
Action: output.Action != null ?
|
|
2005
|
+
Action: output.Action != null ? de_Action(output.Action, context) : undefined,
|
|
2036
2006
|
BudgetName: __expectString(output.BudgetName),
|
|
2037
2007
|
};
|
|
2038
2008
|
};
|
|
2039
|
-
const
|
|
2009
|
+
const de_DeleteBudgetResponse = (output, context) => {
|
|
2040
2010
|
return {};
|
|
2041
2011
|
};
|
|
2042
|
-
const
|
|
2012
|
+
const de_DeleteNotificationResponse = (output, context) => {
|
|
2043
2013
|
return {};
|
|
2044
2014
|
};
|
|
2045
|
-
const
|
|
2015
|
+
const de_DeleteSubscriberResponse = (output, context) => {
|
|
2046
2016
|
return {};
|
|
2047
2017
|
};
|
|
2048
|
-
const
|
|
2018
|
+
const de_DescribeBudgetActionHistoriesResponse = (output, context) => {
|
|
2049
2019
|
return {
|
|
2050
|
-
ActionHistories: output.ActionHistories != null
|
|
2051
|
-
? deserializeAws_json1_1ActionHistories(output.ActionHistories, context)
|
|
2052
|
-
: undefined,
|
|
2020
|
+
ActionHistories: output.ActionHistories != null ? de_ActionHistories(output.ActionHistories, context) : undefined,
|
|
2053
2021
|
NextToken: __expectString(output.NextToken),
|
|
2054
2022
|
};
|
|
2055
2023
|
};
|
|
2056
|
-
const
|
|
2024
|
+
const de_DescribeBudgetActionResponse = (output, context) => {
|
|
2057
2025
|
return {
|
|
2058
2026
|
AccountId: __expectString(output.AccountId),
|
|
2059
|
-
Action: output.Action != null ?
|
|
2027
|
+
Action: output.Action != null ? de_Action(output.Action, context) : undefined,
|
|
2060
2028
|
BudgetName: __expectString(output.BudgetName),
|
|
2061
2029
|
};
|
|
2062
2030
|
};
|
|
2063
|
-
const
|
|
2031
|
+
const de_DescribeBudgetActionsForAccountResponse = (output, context) => {
|
|
2064
2032
|
return {
|
|
2065
|
-
Actions: output.Actions != null ?
|
|
2033
|
+
Actions: output.Actions != null ? de_Actions(output.Actions, context) : undefined,
|
|
2066
2034
|
NextToken: __expectString(output.NextToken),
|
|
2067
2035
|
};
|
|
2068
2036
|
};
|
|
2069
|
-
const
|
|
2037
|
+
const de_DescribeBudgetActionsForBudgetResponse = (output, context) => {
|
|
2070
2038
|
return {
|
|
2071
|
-
Actions: output.Actions != null ?
|
|
2039
|
+
Actions: output.Actions != null ? de_Actions(output.Actions, context) : undefined,
|
|
2072
2040
|
NextToken: __expectString(output.NextToken),
|
|
2073
2041
|
};
|
|
2074
2042
|
};
|
|
2075
|
-
const
|
|
2043
|
+
const de_DescribeBudgetNotificationsForAccountResponse = (output, context) => {
|
|
2076
2044
|
return {
|
|
2077
2045
|
BudgetNotificationsForAccount: output.BudgetNotificationsForAccount != null
|
|
2078
|
-
?
|
|
2046
|
+
? de_BudgetNotificationsForAccountList(output.BudgetNotificationsForAccount, context)
|
|
2079
2047
|
: undefined,
|
|
2080
2048
|
NextToken: __expectString(output.NextToken),
|
|
2081
2049
|
};
|
|
2082
2050
|
};
|
|
2083
|
-
const
|
|
2051
|
+
const de_DescribeBudgetPerformanceHistoryResponse = (output, context) => {
|
|
2084
2052
|
return {
|
|
2085
2053
|
BudgetPerformanceHistory: output.BudgetPerformanceHistory != null
|
|
2086
|
-
?
|
|
2054
|
+
? de_BudgetPerformanceHistory(output.BudgetPerformanceHistory, context)
|
|
2087
2055
|
: undefined,
|
|
2088
2056
|
NextToken: __expectString(output.NextToken),
|
|
2089
2057
|
};
|
|
2090
2058
|
};
|
|
2091
|
-
const
|
|
2059
|
+
const de_DescribeBudgetResponse = (output, context) => {
|
|
2092
2060
|
return {
|
|
2093
|
-
Budget: output.Budget != null ?
|
|
2061
|
+
Budget: output.Budget != null ? de_Budget(output.Budget, context) : undefined,
|
|
2094
2062
|
};
|
|
2095
2063
|
};
|
|
2096
|
-
const
|
|
2064
|
+
const de_DescribeBudgetsResponse = (output, context) => {
|
|
2097
2065
|
return {
|
|
2098
|
-
Budgets: output.Budgets != null ?
|
|
2066
|
+
Budgets: output.Budgets != null ? de_Budgets(output.Budgets, context) : undefined,
|
|
2099
2067
|
NextToken: __expectString(output.NextToken),
|
|
2100
2068
|
};
|
|
2101
2069
|
};
|
|
2102
|
-
const
|
|
2070
|
+
const de_DescribeNotificationsForBudgetResponse = (output, context) => {
|
|
2103
2071
|
return {
|
|
2104
2072
|
NextToken: __expectString(output.NextToken),
|
|
2105
|
-
Notifications: output.Notifications != null ?
|
|
2073
|
+
Notifications: output.Notifications != null ? de_Notifications(output.Notifications, context) : undefined,
|
|
2106
2074
|
};
|
|
2107
2075
|
};
|
|
2108
|
-
const
|
|
2076
|
+
const de_DescribeSubscribersForNotificationResponse = (output, context) => {
|
|
2109
2077
|
return {
|
|
2110
2078
|
NextToken: __expectString(output.NextToken),
|
|
2111
|
-
Subscribers: output.Subscribers != null ?
|
|
2079
|
+
Subscribers: output.Subscribers != null ? de_Subscribers(output.Subscribers, context) : undefined,
|
|
2112
2080
|
};
|
|
2113
2081
|
};
|
|
2114
|
-
const
|
|
2082
|
+
const de_DimensionValues = (output, context) => {
|
|
2115
2083
|
const retVal = (output || [])
|
|
2116
2084
|
.filter((e) => e != null)
|
|
2117
2085
|
.map((entry) => {
|
|
@@ -2122,12 +2090,12 @@ const deserializeAws_json1_1DimensionValues = (output, context) => {
|
|
|
2122
2090
|
});
|
|
2123
2091
|
return retVal;
|
|
2124
2092
|
};
|
|
2125
|
-
const
|
|
2093
|
+
const de_DuplicateRecordException = (output, context) => {
|
|
2126
2094
|
return {
|
|
2127
2095
|
Message: __expectString(output.Message),
|
|
2128
2096
|
};
|
|
2129
2097
|
};
|
|
2130
|
-
const
|
|
2098
|
+
const de_ExecuteBudgetActionResponse = (output, context) => {
|
|
2131
2099
|
return {
|
|
2132
2100
|
AccountId: __expectString(output.AccountId),
|
|
2133
2101
|
ActionId: __expectString(output.ActionId),
|
|
@@ -2135,12 +2103,12 @@ const deserializeAws_json1_1ExecuteBudgetActionResponse = (output, context) => {
|
|
|
2135
2103
|
ExecutionType: __expectString(output.ExecutionType),
|
|
2136
2104
|
};
|
|
2137
2105
|
};
|
|
2138
|
-
const
|
|
2106
|
+
const de_ExpiredNextTokenException = (output, context) => {
|
|
2139
2107
|
return {
|
|
2140
2108
|
Message: __expectString(output.Message),
|
|
2141
2109
|
};
|
|
2142
2110
|
};
|
|
2143
|
-
const
|
|
2111
|
+
const de_Groups = (output, context) => {
|
|
2144
2112
|
const retVal = (output || [])
|
|
2145
2113
|
.filter((e) => e != null)
|
|
2146
2114
|
.map((entry) => {
|
|
@@ -2151,21 +2119,21 @@ const deserializeAws_json1_1Groups = (output, context) => {
|
|
|
2151
2119
|
});
|
|
2152
2120
|
return retVal;
|
|
2153
2121
|
};
|
|
2154
|
-
const
|
|
2122
|
+
const de_HistoricalOptions = (output, context) => {
|
|
2155
2123
|
return {
|
|
2156
2124
|
BudgetAdjustmentPeriod: __expectInt32(output.BudgetAdjustmentPeriod),
|
|
2157
2125
|
LookBackAvailablePeriods: __expectInt32(output.LookBackAvailablePeriods),
|
|
2158
2126
|
};
|
|
2159
2127
|
};
|
|
2160
|
-
const
|
|
2128
|
+
const de_IamActionDefinition = (output, context) => {
|
|
2161
2129
|
return {
|
|
2162
|
-
Groups: output.Groups != null ?
|
|
2130
|
+
Groups: output.Groups != null ? de_Groups(output.Groups, context) : undefined,
|
|
2163
2131
|
PolicyArn: __expectString(output.PolicyArn),
|
|
2164
|
-
Roles: output.Roles != null ?
|
|
2165
|
-
Users: output.Users != null ?
|
|
2132
|
+
Roles: output.Roles != null ? de_Roles(output.Roles, context) : undefined,
|
|
2133
|
+
Users: output.Users != null ? de_Users(output.Users, context) : undefined,
|
|
2166
2134
|
};
|
|
2167
2135
|
};
|
|
2168
|
-
const
|
|
2136
|
+
const de_InstanceIds = (output, context) => {
|
|
2169
2137
|
const retVal = (output || [])
|
|
2170
2138
|
.filter((e) => e != null)
|
|
2171
2139
|
.map((entry) => {
|
|
@@ -2176,27 +2144,27 @@ const deserializeAws_json1_1InstanceIds = (output, context) => {
|
|
|
2176
2144
|
});
|
|
2177
2145
|
return retVal;
|
|
2178
2146
|
};
|
|
2179
|
-
const
|
|
2147
|
+
const de_InternalErrorException = (output, context) => {
|
|
2180
2148
|
return {
|
|
2181
2149
|
Message: __expectString(output.Message),
|
|
2182
2150
|
};
|
|
2183
2151
|
};
|
|
2184
|
-
const
|
|
2152
|
+
const de_InvalidNextTokenException = (output, context) => {
|
|
2185
2153
|
return {
|
|
2186
2154
|
Message: __expectString(output.Message),
|
|
2187
2155
|
};
|
|
2188
2156
|
};
|
|
2189
|
-
const
|
|
2157
|
+
const de_InvalidParameterException = (output, context) => {
|
|
2190
2158
|
return {
|
|
2191
2159
|
Message: __expectString(output.Message),
|
|
2192
2160
|
};
|
|
2193
2161
|
};
|
|
2194
|
-
const
|
|
2162
|
+
const de_NotFoundException = (output, context) => {
|
|
2195
2163
|
return {
|
|
2196
2164
|
Message: __expectString(output.Message),
|
|
2197
2165
|
};
|
|
2198
2166
|
};
|
|
2199
|
-
const
|
|
2167
|
+
const de_Notification = (output, context) => {
|
|
2200
2168
|
return {
|
|
2201
2169
|
ComparisonOperator: __expectString(output.ComparisonOperator),
|
|
2202
2170
|
NotificationState: __expectString(output.NotificationState),
|
|
@@ -2205,32 +2173,32 @@ const deserializeAws_json1_1Notification = (output, context) => {
|
|
|
2205
2173
|
ThresholdType: __expectString(output.ThresholdType),
|
|
2206
2174
|
};
|
|
2207
2175
|
};
|
|
2208
|
-
const
|
|
2176
|
+
const de_Notifications = (output, context) => {
|
|
2209
2177
|
const retVal = (output || [])
|
|
2210
2178
|
.filter((e) => e != null)
|
|
2211
2179
|
.map((entry) => {
|
|
2212
2180
|
if (entry === null) {
|
|
2213
2181
|
return null;
|
|
2214
2182
|
}
|
|
2215
|
-
return
|
|
2183
|
+
return de_Notification(entry, context);
|
|
2216
2184
|
});
|
|
2217
2185
|
return retVal;
|
|
2218
2186
|
};
|
|
2219
|
-
const
|
|
2187
|
+
const de_PlannedBudgetLimits = (output, context) => {
|
|
2220
2188
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2221
2189
|
if (value === null) {
|
|
2222
2190
|
return acc;
|
|
2223
2191
|
}
|
|
2224
|
-
acc[key] =
|
|
2192
|
+
acc[key] = de_Spend(value, context);
|
|
2225
2193
|
return acc;
|
|
2226
2194
|
}, {});
|
|
2227
2195
|
};
|
|
2228
|
-
const
|
|
2196
|
+
const de_ResourceLockedException = (output, context) => {
|
|
2229
2197
|
return {
|
|
2230
2198
|
Message: __expectString(output.Message),
|
|
2231
2199
|
};
|
|
2232
2200
|
};
|
|
2233
|
-
const
|
|
2201
|
+
const de_Roles = (output, context) => {
|
|
2234
2202
|
const retVal = (output || [])
|
|
2235
2203
|
.filter((e) => e != null)
|
|
2236
2204
|
.map((entry) => {
|
|
@@ -2241,43 +2209,43 @@ const deserializeAws_json1_1Roles = (output, context) => {
|
|
|
2241
2209
|
});
|
|
2242
2210
|
return retVal;
|
|
2243
2211
|
};
|
|
2244
|
-
const
|
|
2212
|
+
const de_ScpActionDefinition = (output, context) => {
|
|
2245
2213
|
return {
|
|
2246
2214
|
PolicyId: __expectString(output.PolicyId),
|
|
2247
|
-
TargetIds: output.TargetIds != null ?
|
|
2215
|
+
TargetIds: output.TargetIds != null ? de_TargetIds(output.TargetIds, context) : undefined,
|
|
2248
2216
|
};
|
|
2249
2217
|
};
|
|
2250
|
-
const
|
|
2218
|
+
const de_Spend = (output, context) => {
|
|
2251
2219
|
return {
|
|
2252
2220
|
Amount: __expectString(output.Amount),
|
|
2253
2221
|
Unit: __expectString(output.Unit),
|
|
2254
2222
|
};
|
|
2255
2223
|
};
|
|
2256
|
-
const
|
|
2224
|
+
const de_SsmActionDefinition = (output, context) => {
|
|
2257
2225
|
return {
|
|
2258
2226
|
ActionSubType: __expectString(output.ActionSubType),
|
|
2259
|
-
InstanceIds: output.InstanceIds != null ?
|
|
2227
|
+
InstanceIds: output.InstanceIds != null ? de_InstanceIds(output.InstanceIds, context) : undefined,
|
|
2260
2228
|
Region: __expectString(output.Region),
|
|
2261
2229
|
};
|
|
2262
2230
|
};
|
|
2263
|
-
const
|
|
2231
|
+
const de_Subscriber = (output, context) => {
|
|
2264
2232
|
return {
|
|
2265
2233
|
Address: __expectString(output.Address),
|
|
2266
2234
|
SubscriptionType: __expectString(output.SubscriptionType),
|
|
2267
2235
|
};
|
|
2268
2236
|
};
|
|
2269
|
-
const
|
|
2237
|
+
const de_Subscribers = (output, context) => {
|
|
2270
2238
|
const retVal = (output || [])
|
|
2271
2239
|
.filter((e) => e != null)
|
|
2272
2240
|
.map((entry) => {
|
|
2273
2241
|
if (entry === null) {
|
|
2274
2242
|
return null;
|
|
2275
2243
|
}
|
|
2276
|
-
return
|
|
2244
|
+
return de_Subscriber(entry, context);
|
|
2277
2245
|
});
|
|
2278
2246
|
return retVal;
|
|
2279
2247
|
};
|
|
2280
|
-
const
|
|
2248
|
+
const de_TargetIds = (output, context) => {
|
|
2281
2249
|
const retVal = (output || [])
|
|
2282
2250
|
.filter((e) => e != null)
|
|
2283
2251
|
.map((entry) => {
|
|
@@ -2288,35 +2256,35 @@ const deserializeAws_json1_1TargetIds = (output, context) => {
|
|
|
2288
2256
|
});
|
|
2289
2257
|
return retVal;
|
|
2290
2258
|
};
|
|
2291
|
-
const
|
|
2259
|
+
const de_ThrottlingException = (output, context) => {
|
|
2292
2260
|
return {
|
|
2293
2261
|
Message: __expectString(output.Message),
|
|
2294
2262
|
};
|
|
2295
2263
|
};
|
|
2296
|
-
const
|
|
2264
|
+
const de_TimePeriod = (output, context) => {
|
|
2297
2265
|
return {
|
|
2298
2266
|
End: output.End != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.End))) : undefined,
|
|
2299
2267
|
Start: output.Start != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Start))) : undefined,
|
|
2300
2268
|
};
|
|
2301
2269
|
};
|
|
2302
|
-
const
|
|
2270
|
+
const de_UpdateBudgetActionResponse = (output, context) => {
|
|
2303
2271
|
return {
|
|
2304
2272
|
AccountId: __expectString(output.AccountId),
|
|
2305
2273
|
BudgetName: __expectString(output.BudgetName),
|
|
2306
|
-
NewAction: output.NewAction != null ?
|
|
2307
|
-
OldAction: output.OldAction != null ?
|
|
2274
|
+
NewAction: output.NewAction != null ? de_Action(output.NewAction, context) : undefined,
|
|
2275
|
+
OldAction: output.OldAction != null ? de_Action(output.OldAction, context) : undefined,
|
|
2308
2276
|
};
|
|
2309
2277
|
};
|
|
2310
|
-
const
|
|
2278
|
+
const de_UpdateBudgetResponse = (output, context) => {
|
|
2311
2279
|
return {};
|
|
2312
2280
|
};
|
|
2313
|
-
const
|
|
2281
|
+
const de_UpdateNotificationResponse = (output, context) => {
|
|
2314
2282
|
return {};
|
|
2315
2283
|
};
|
|
2316
|
-
const
|
|
2284
|
+
const de_UpdateSubscriberResponse = (output, context) => {
|
|
2317
2285
|
return {};
|
|
2318
2286
|
};
|
|
2319
|
-
const
|
|
2287
|
+
const de_Users = (output, context) => {
|
|
2320
2288
|
const retVal = (output || [])
|
|
2321
2289
|
.filter((e) => e != null)
|
|
2322
2290
|
.map((entry) => {
|