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