@aws-sdk/client-budgets 3.309.0 → 3.312.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/protocols/Aws_json1_1.js +29 -92
- package/dist-es/protocols/Aws_json1_1.js +29 -92
- package/package.json +35 -35
|
@@ -6,230 +6,161 @@ 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
8
|
const se_CreateBudgetCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateBudget",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("CreateBudget");
|
|
13
10
|
let body;
|
|
14
11
|
body = JSON.stringify(se_CreateBudgetRequest(input, context));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_CreateBudgetCommand = se_CreateBudgetCommand;
|
|
18
15
|
const se_CreateBudgetActionCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateBudgetAction",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("CreateBudgetAction");
|
|
23
17
|
let body;
|
|
24
18
|
body = JSON.stringify(se_CreateBudgetActionRequest(input, context));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_CreateBudgetActionCommand = se_CreateBudgetActionCommand;
|
|
28
22
|
const se_CreateNotificationCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateNotification",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("CreateNotification");
|
|
33
24
|
let body;
|
|
34
25
|
body = JSON.stringify(se_CreateNotificationRequest(input, context));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_CreateNotificationCommand = se_CreateNotificationCommand;
|
|
38
29
|
const se_CreateSubscriberCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateSubscriber",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("CreateSubscriber");
|
|
43
31
|
let body;
|
|
44
32
|
body = JSON.stringify(se_CreateSubscriberRequest(input, context));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_CreateSubscriberCommand = se_CreateSubscriberCommand;
|
|
48
36
|
const se_DeleteBudgetCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudget",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("DeleteBudget");
|
|
53
38
|
let body;
|
|
54
39
|
body = JSON.stringify(se_DeleteBudgetRequest(input, context));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_DeleteBudgetCommand = se_DeleteBudgetCommand;
|
|
58
43
|
const se_DeleteBudgetActionCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudgetAction",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("DeleteBudgetAction");
|
|
63
45
|
let body;
|
|
64
46
|
body = JSON.stringify(se_DeleteBudgetActionRequest(input, context));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
48
|
};
|
|
67
49
|
exports.se_DeleteBudgetActionCommand = se_DeleteBudgetActionCommand;
|
|
68
50
|
const se_DeleteNotificationCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteNotification",
|
|
72
|
-
};
|
|
51
|
+
const headers = sharedHeaders("DeleteNotification");
|
|
73
52
|
let body;
|
|
74
53
|
body = JSON.stringify(se_DeleteNotificationRequest(input, context));
|
|
75
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
55
|
};
|
|
77
56
|
exports.se_DeleteNotificationCommand = se_DeleteNotificationCommand;
|
|
78
57
|
const se_DeleteSubscriberCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-amz-json-1.1",
|
|
81
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteSubscriber",
|
|
82
|
-
};
|
|
58
|
+
const headers = sharedHeaders("DeleteSubscriber");
|
|
83
59
|
let body;
|
|
84
60
|
body = JSON.stringify(se_DeleteSubscriberRequest(input, context));
|
|
85
61
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
62
|
};
|
|
87
63
|
exports.se_DeleteSubscriberCommand = se_DeleteSubscriberCommand;
|
|
88
64
|
const se_DescribeBudgetCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-amz-json-1.1",
|
|
91
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudget",
|
|
92
|
-
};
|
|
65
|
+
const headers = sharedHeaders("DescribeBudget");
|
|
93
66
|
let body;
|
|
94
67
|
body = JSON.stringify(se_DescribeBudgetRequest(input, context));
|
|
95
68
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
69
|
};
|
|
97
70
|
exports.se_DescribeBudgetCommand = se_DescribeBudgetCommand;
|
|
98
71
|
const se_DescribeBudgetActionCommand = async (input, context) => {
|
|
99
|
-
const headers =
|
|
100
|
-
"content-type": "application/x-amz-json-1.1",
|
|
101
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetAction",
|
|
102
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DescribeBudgetAction");
|
|
103
73
|
let body;
|
|
104
74
|
body = JSON.stringify(se_DescribeBudgetActionRequest(input, context));
|
|
105
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
76
|
};
|
|
107
77
|
exports.se_DescribeBudgetActionCommand = se_DescribeBudgetActionCommand;
|
|
108
78
|
const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
|
|
109
|
-
const headers =
|
|
110
|
-
"content-type": "application/x-amz-json-1.1",
|
|
111
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionHistories",
|
|
112
|
-
};
|
|
79
|
+
const headers = sharedHeaders("DescribeBudgetActionHistories");
|
|
113
80
|
let body;
|
|
114
81
|
body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input, context));
|
|
115
82
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
83
|
};
|
|
117
84
|
exports.se_DescribeBudgetActionHistoriesCommand = se_DescribeBudgetActionHistoriesCommand;
|
|
118
85
|
const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
|
|
119
|
-
const headers =
|
|
120
|
-
"content-type": "application/x-amz-json-1.1",
|
|
121
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForAccount",
|
|
122
|
-
};
|
|
86
|
+
const headers = sharedHeaders("DescribeBudgetActionsForAccount");
|
|
123
87
|
let body;
|
|
124
88
|
body = JSON.stringify(se_DescribeBudgetActionsForAccountRequest(input, context));
|
|
125
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
90
|
};
|
|
127
91
|
exports.se_DescribeBudgetActionsForAccountCommand = se_DescribeBudgetActionsForAccountCommand;
|
|
128
92
|
const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
|
|
129
|
-
const headers =
|
|
130
|
-
"content-type": "application/x-amz-json-1.1",
|
|
131
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForBudget",
|
|
132
|
-
};
|
|
93
|
+
const headers = sharedHeaders("DescribeBudgetActionsForBudget");
|
|
133
94
|
let body;
|
|
134
95
|
body = JSON.stringify(se_DescribeBudgetActionsForBudgetRequest(input, context));
|
|
135
96
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
97
|
};
|
|
137
98
|
exports.se_DescribeBudgetActionsForBudgetCommand = se_DescribeBudgetActionsForBudgetCommand;
|
|
138
99
|
const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-amz-json-1.1",
|
|
141
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetNotificationsForAccount",
|
|
142
|
-
};
|
|
100
|
+
const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
|
|
143
101
|
let body;
|
|
144
102
|
body = JSON.stringify(se_DescribeBudgetNotificationsForAccountRequest(input, context));
|
|
145
103
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
104
|
};
|
|
147
105
|
exports.se_DescribeBudgetNotificationsForAccountCommand = se_DescribeBudgetNotificationsForAccountCommand;
|
|
148
106
|
const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
149
|
-
const headers =
|
|
150
|
-
"content-type": "application/x-amz-json-1.1",
|
|
151
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetPerformanceHistory",
|
|
152
|
-
};
|
|
107
|
+
const headers = sharedHeaders("DescribeBudgetPerformanceHistory");
|
|
153
108
|
let body;
|
|
154
109
|
body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input, context));
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_DescribeBudgetPerformanceHistoryCommand = se_DescribeBudgetPerformanceHistoryCommand;
|
|
158
113
|
const se_DescribeBudgetsCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgets",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("DescribeBudgets");
|
|
163
115
|
let body;
|
|
164
116
|
body = JSON.stringify(se_DescribeBudgetsRequest(input, context));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_DescribeBudgetsCommand = se_DescribeBudgetsCommand;
|
|
168
120
|
const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeNotificationsForBudget",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("DescribeNotificationsForBudget");
|
|
173
122
|
let body;
|
|
174
123
|
body = JSON.stringify(se_DescribeNotificationsForBudgetRequest(input, context));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_DescribeNotificationsForBudgetCommand = se_DescribeNotificationsForBudgetCommand;
|
|
178
127
|
const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeSubscribersForNotification",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("DescribeSubscribersForNotification");
|
|
183
129
|
let body;
|
|
184
130
|
body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input, context));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_DescribeSubscribersForNotificationCommand = se_DescribeSubscribersForNotificationCommand;
|
|
188
134
|
const se_ExecuteBudgetActionCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "AWSBudgetServiceGateway.ExecuteBudgetAction",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("ExecuteBudgetAction");
|
|
193
136
|
let body;
|
|
194
137
|
body = JSON.stringify(se_ExecuteBudgetActionRequest(input, context));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_ExecuteBudgetActionCommand = se_ExecuteBudgetActionCommand;
|
|
198
141
|
const se_UpdateBudgetCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudget",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("UpdateBudget");
|
|
203
143
|
let body;
|
|
204
144
|
body = JSON.stringify(se_UpdateBudgetRequest(input, context));
|
|
205
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
146
|
};
|
|
207
147
|
exports.se_UpdateBudgetCommand = se_UpdateBudgetCommand;
|
|
208
148
|
const se_UpdateBudgetActionCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.1",
|
|
211
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudgetAction",
|
|
212
|
-
};
|
|
149
|
+
const headers = sharedHeaders("UpdateBudgetAction");
|
|
213
150
|
let body;
|
|
214
151
|
body = JSON.stringify(se_UpdateBudgetActionRequest(input, context));
|
|
215
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
153
|
};
|
|
217
154
|
exports.se_UpdateBudgetActionCommand = se_UpdateBudgetActionCommand;
|
|
218
155
|
const se_UpdateNotificationCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-amz-json-1.1",
|
|
221
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateNotification",
|
|
222
|
-
};
|
|
156
|
+
const headers = sharedHeaders("UpdateNotification");
|
|
223
157
|
let body;
|
|
224
158
|
body = JSON.stringify(se_UpdateNotificationRequest(input, context));
|
|
225
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
160
|
};
|
|
227
161
|
exports.se_UpdateNotificationCommand = se_UpdateNotificationCommand;
|
|
228
162
|
const se_UpdateSubscriberCommand = async (input, context) => {
|
|
229
|
-
const headers =
|
|
230
|
-
"content-type": "application/x-amz-json-1.1",
|
|
231
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateSubscriber",
|
|
232
|
-
};
|
|
163
|
+
const headers = sharedHeaders("UpdateSubscriber");
|
|
233
164
|
let body;
|
|
234
165
|
body = JSON.stringify(se_UpdateSubscriberRequest(input, context));
|
|
235
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2375,6 +2306,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2375
2306
|
}
|
|
2376
2307
|
return new protocol_http_1.HttpRequest(contents);
|
|
2377
2308
|
};
|
|
2309
|
+
function sharedHeaders(operation) {
|
|
2310
|
+
return {
|
|
2311
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2312
|
+
"x-amz-target": `AWSBudgetServiceGateway.${operation}`,
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2378
2315
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2379
2316
|
if (encoded.length) {
|
|
2380
2317
|
return JSON.parse(encoded);
|
|
@@ -3,208 +3,139 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { BudgetsServiceException as __BaseException } from "../models/BudgetsServiceException";
|
|
4
4
|
import { AccessDeniedException, CreationLimitExceededException, DuplicateRecordException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceLockedException, ThrottlingException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateBudgetCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateBudget",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("CreateBudget");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_CreateBudgetRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_CreateBudgetActionCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateBudgetAction",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("CreateBudgetAction");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_CreateBudgetActionRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_CreateNotificationCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateNotification",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateNotification");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_CreateNotificationRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_CreateSubscriberCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "AWSBudgetServiceGateway.CreateSubscriber",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateSubscriber");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_CreateSubscriberRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_DeleteBudgetCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudget",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DeleteBudget");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_DeleteBudgetRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_DeleteBudgetActionCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteBudgetAction",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("DeleteBudgetAction");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_DeleteBudgetActionRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_DeleteNotificationCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteNotification",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("DeleteNotification");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_DeleteNotificationRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_DeleteSubscriberCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "AWSBudgetServiceGateway.DeleteSubscriber",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("DeleteSubscriber");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_DeleteSubscriberRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_DescribeBudgetCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudget",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("DescribeBudget");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_DescribeBudgetRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_DescribeBudgetActionCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetAction",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DescribeBudgetAction");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_DescribeBudgetActionRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionHistories",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeBudgetActionHistories");
|
|
100
67
|
let body;
|
|
101
68
|
body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input, context));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForAccount",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("DescribeBudgetActionsForAccount");
|
|
109
73
|
let body;
|
|
110
74
|
body = JSON.stringify(se_DescribeBudgetActionsForAccountRequest(input, context));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetActionsForBudget",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("DescribeBudgetActionsForBudget");
|
|
118
79
|
let body;
|
|
119
80
|
body = JSON.stringify(se_DescribeBudgetActionsForBudgetRequest(input, context));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetNotificationsForAccount",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
|
|
127
85
|
let body;
|
|
128
86
|
body = JSON.stringify(se_DescribeBudgetNotificationsForAccountRequest(input, context));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetPerformanceHistory",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("DescribeBudgetPerformanceHistory");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_DescribeBudgetsCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgets",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("DescribeBudgets");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_DescribeBudgetsRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeNotificationsForBudget",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("DescribeNotificationsForBudget");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_DescribeNotificationsForBudgetRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSBudgetServiceGateway.DescribeSubscribersForNotification",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("DescribeSubscribersForNotification");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_ExecuteBudgetActionCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "AWSBudgetServiceGateway.ExecuteBudgetAction",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("ExecuteBudgetAction");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_ExecuteBudgetActionRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_UpdateBudgetCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudget",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("UpdateBudget");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_UpdateBudgetRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_UpdateBudgetActionCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateBudgetAction",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("UpdateBudgetAction");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_UpdateBudgetActionRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_UpdateNotificationCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateNotification",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("UpdateNotification");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_UpdateNotificationRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_UpdateSubscriberCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "AWSBudgetServiceGateway.UpdateSubscriber",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("UpdateSubscriber");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_UpdateSubscriberRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -2326,6 +2257,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2326
2257
|
}
|
|
2327
2258
|
return new __HttpRequest(contents);
|
|
2328
2259
|
};
|
|
2260
|
+
function sharedHeaders(operation) {
|
|
2261
|
+
return {
|
|
2262
|
+
"content-type": "application/x-amz-json-1.1",
|
|
2263
|
+
"x-amz-target": `AWSBudgetServiceGateway.${operation}`,
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2329
2266
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2330
2267
|
if (encoded.length) {
|
|
2331
2268
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-budgets",
|
|
3
3
|
"description": "AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.310.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.310.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.310.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.310.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.310.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.310.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.310.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.310.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.310.0",
|
|
44
|
+
"@aws-sdk/types": "3.310.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.310.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.310.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.310.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.310.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.310.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.310.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.310.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
|
-
"dist
|
|
79
|
+
"dist-*/**"
|
|
80
80
|
],
|
|
81
81
|
"author": {
|
|
82
82
|
"name": "AWS SDK for JavaScript Team",
|