@aws-sdk/client-budgets 3.901.0 → 3.906.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.
Files changed (2) hide show
  1. package/dist-cjs/index.js +2152 -2388
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2453 +1,2217 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- ActionFilterSensitiveLog: () => ActionFilterSensitiveLog,
26
- ActionHistoryDetailsFilterSensitiveLog: () => ActionHistoryDetailsFilterSensitiveLog,
27
- ActionHistoryFilterSensitiveLog: () => ActionHistoryFilterSensitiveLog,
28
- ActionStatus: () => ActionStatus,
29
- ActionSubType: () => ActionSubType,
30
- ActionType: () => ActionType,
31
- ApprovalModel: () => ApprovalModel,
32
- AutoAdjustType: () => AutoAdjustType,
33
- BillingViewHealthStatusException: () => BillingViewHealthStatusException,
34
- BudgetType: () => BudgetType,
35
- Budgets: () => Budgets,
36
- BudgetsClient: () => BudgetsClient,
37
- BudgetsServiceException: () => BudgetsServiceException,
38
- ComparisonOperator: () => ComparisonOperator,
39
- CreateBudgetActionCommand: () => CreateBudgetActionCommand,
40
- CreateBudgetActionRequestFilterSensitiveLog: () => CreateBudgetActionRequestFilterSensitiveLog,
41
- CreateBudgetCommand: () => CreateBudgetCommand,
42
- CreateBudgetRequestFilterSensitiveLog: () => CreateBudgetRequestFilterSensitiveLog,
43
- CreateNotificationCommand: () => CreateNotificationCommand,
44
- CreateNotificationRequestFilterSensitiveLog: () => CreateNotificationRequestFilterSensitiveLog,
45
- CreateSubscriberCommand: () => CreateSubscriberCommand,
46
- CreateSubscriberRequestFilterSensitiveLog: () => CreateSubscriberRequestFilterSensitiveLog,
47
- CreationLimitExceededException: () => CreationLimitExceededException,
48
- DeleteBudgetActionCommand: () => DeleteBudgetActionCommand,
49
- DeleteBudgetActionResponseFilterSensitiveLog: () => DeleteBudgetActionResponseFilterSensitiveLog,
50
- DeleteBudgetCommand: () => DeleteBudgetCommand,
51
- DeleteNotificationCommand: () => DeleteNotificationCommand,
52
- DeleteSubscriberCommand: () => DeleteSubscriberCommand,
53
- DeleteSubscriberRequestFilterSensitiveLog: () => DeleteSubscriberRequestFilterSensitiveLog,
54
- DescribeBudgetActionCommand: () => DescribeBudgetActionCommand,
55
- DescribeBudgetActionHistoriesCommand: () => DescribeBudgetActionHistoriesCommand,
56
- DescribeBudgetActionHistoriesResponseFilterSensitiveLog: () => DescribeBudgetActionHistoriesResponseFilterSensitiveLog,
57
- DescribeBudgetActionResponseFilterSensitiveLog: () => DescribeBudgetActionResponseFilterSensitiveLog,
58
- DescribeBudgetActionsForAccountCommand: () => DescribeBudgetActionsForAccountCommand,
59
- DescribeBudgetActionsForAccountResponseFilterSensitiveLog: () => DescribeBudgetActionsForAccountResponseFilterSensitiveLog,
60
- DescribeBudgetActionsForBudgetCommand: () => DescribeBudgetActionsForBudgetCommand,
61
- DescribeBudgetActionsForBudgetResponseFilterSensitiveLog: () => DescribeBudgetActionsForBudgetResponseFilterSensitiveLog,
62
- DescribeBudgetCommand: () => DescribeBudgetCommand,
63
- DescribeBudgetNotificationsForAccountCommand: () => DescribeBudgetNotificationsForAccountCommand,
64
- DescribeBudgetPerformanceHistoryCommand: () => DescribeBudgetPerformanceHistoryCommand,
65
- DescribeBudgetsCommand: () => DescribeBudgetsCommand,
66
- DescribeNotificationsForBudgetCommand: () => DescribeNotificationsForBudgetCommand,
67
- DescribeSubscribersForNotificationCommand: () => DescribeSubscribersForNotificationCommand,
68
- DescribeSubscribersForNotificationResponseFilterSensitiveLog: () => DescribeSubscribersForNotificationResponseFilterSensitiveLog,
69
- Dimension: () => Dimension,
70
- DuplicateRecordException: () => DuplicateRecordException,
71
- EventType: () => EventType,
72
- ExecuteBudgetActionCommand: () => ExecuteBudgetActionCommand,
73
- ExecutionType: () => ExecutionType,
74
- ExpiredNextTokenException: () => ExpiredNextTokenException,
75
- HealthStatusReason: () => HealthStatusReason,
76
- HealthStatusValue: () => HealthStatusValue,
77
- InternalErrorException: () => InternalErrorException,
78
- InvalidNextTokenException: () => InvalidNextTokenException,
79
- InvalidParameterException: () => InvalidParameterException,
80
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
81
- MatchOption: () => MatchOption,
82
- Metric: () => Metric,
83
- NotFoundException: () => NotFoundException,
84
- NotificationState: () => NotificationState,
85
- NotificationType: () => NotificationType,
86
- NotificationWithSubscribersFilterSensitiveLog: () => NotificationWithSubscribersFilterSensitiveLog,
87
- ResourceLockedException: () => ResourceLockedException,
88
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
89
- SubscriberFilterSensitiveLog: () => SubscriberFilterSensitiveLog,
90
- SubscriptionType: () => SubscriptionType,
91
- TagResourceCommand: () => TagResourceCommand,
92
- ThresholdType: () => ThresholdType,
93
- ThrottlingException: () => ThrottlingException,
94
- TimeUnit: () => TimeUnit,
95
- UntagResourceCommand: () => UntagResourceCommand,
96
- UpdateBudgetActionCommand: () => UpdateBudgetActionCommand,
97
- UpdateBudgetActionRequestFilterSensitiveLog: () => UpdateBudgetActionRequestFilterSensitiveLog,
98
- UpdateBudgetActionResponseFilterSensitiveLog: () => UpdateBudgetActionResponseFilterSensitiveLog,
99
- UpdateBudgetCommand: () => UpdateBudgetCommand,
100
- UpdateNotificationCommand: () => UpdateNotificationCommand,
101
- UpdateSubscriberCommand: () => UpdateSubscriberCommand,
102
- UpdateSubscriberRequestFilterSensitiveLog: () => UpdateSubscriberRequestFilterSensitiveLog,
103
- __Client: () => import_smithy_client.Client,
104
- paginateDescribeBudgetActionHistories: () => paginateDescribeBudgetActionHistories,
105
- paginateDescribeBudgetActionsForAccount: () => paginateDescribeBudgetActionsForAccount,
106
- paginateDescribeBudgetActionsForBudget: () => paginateDescribeBudgetActionsForBudget,
107
- paginateDescribeBudgetNotificationsForAccount: () => paginateDescribeBudgetNotificationsForAccount,
108
- paginateDescribeBudgetPerformanceHistory: () => paginateDescribeBudgetPerformanceHistory,
109
- paginateDescribeBudgets: () => paginateDescribeBudgets,
110
- paginateDescribeNotificationsForBudget: () => paginateDescribeNotificationsForBudget,
111
- paginateDescribeSubscribersForNotification: () => paginateDescribeSubscribersForNotification
112
- });
113
- module.exports = __toCommonJS(index_exports);
114
-
115
- // src/BudgetsClient.ts
116
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
117
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
118
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
119
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
120
- var import_config_resolver = require("@smithy/config-resolver");
121
- var import_core = require("@smithy/core");
122
- var import_middleware_content_length = require("@smithy/middleware-content-length");
123
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
124
- var import_middleware_retry = require("@smithy/middleware-retry");
125
-
126
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
127
-
128
- // src/endpoint/EndpointParameters.ts
129
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
130
- return Object.assign(options, {
131
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
132
- useFipsEndpoint: options.useFipsEndpoint ?? false,
133
- defaultSigningName: "budgets"
134
- });
135
- }, "resolveClientEndpointParameters");
136
- var commonParams = {
137
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
138
- Endpoint: { type: "builtInParams", name: "endpoint" },
139
- Region: { type: "builtInParams", name: "region" },
140
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "budgets",
25
+ });
141
26
  };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
+ };
33
+
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
72
+
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
78
+
79
+ class BudgetsClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBudgetsHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ }
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
142
112
 
143
- // src/BudgetsClient.ts
144
- var import_runtimeConfig = require("././runtimeConfig");
145
-
146
- // src/runtimeExtensions.ts
147
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
148
- var import_protocol_http = require("@smithy/protocol-http");
149
- var import_smithy_client = require("@smithy/smithy-client");
150
-
151
- // src/auth/httpAuthExtensionConfiguration.ts
152
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
153
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
154
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
155
- let _credentials = runtimeConfig.credentials;
156
- return {
157
- setHttpAuthScheme(httpAuthScheme) {
158
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
159
- if (index === -1) {
160
- _httpAuthSchemes.push(httpAuthScheme);
161
- } else {
162
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
163
- }
164
- },
165
- httpAuthSchemes() {
166
- return _httpAuthSchemes;
167
- },
168
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
169
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
170
- },
171
- httpAuthSchemeProvider() {
172
- return _httpAuthSchemeProvider;
173
- },
174
- setCredentials(credentials) {
175
- _credentials = credentials;
176
- },
177
- credentials() {
178
- return _credentials;
113
+ class BudgetsServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, BudgetsServiceException.prototype);
179
117
  }
180
- };
181
- }, "getHttpAuthExtensionConfiguration");
182
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
183
- return {
184
- httpAuthSchemes: config.httpAuthSchemes(),
185
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
186
- credentials: config.credentials()
187
- };
188
- }, "resolveHttpAuthRuntimeConfig");
118
+ }
189
119
 
190
- // src/runtimeExtensions.ts
191
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
192
- const extensionConfiguration = Object.assign(
193
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
194
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
195
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
196
- getHttpAuthExtensionConfiguration(runtimeConfig)
197
- );
198
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
199
- return Object.assign(
200
- runtimeConfig,
201
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
202
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
203
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
204
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
205
- );
206
- }, "resolveRuntimeExtensions");
120
+ class AccessDeniedException extends BudgetsServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ Message;
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ this.Message = opts.Message;
132
+ }
133
+ }
134
+ const ThresholdType = {
135
+ ABSOLUTE_VALUE: "ABSOLUTE_VALUE",
136
+ PERCENTAGE: "PERCENTAGE",
137
+ };
138
+ const ActionType = {
139
+ IAM: "APPLY_IAM_POLICY",
140
+ SCP: "APPLY_SCP_POLICY",
141
+ SSM: "RUN_SSM_DOCUMENTS",
142
+ };
143
+ const ApprovalModel = {
144
+ AUTO: "AUTOMATIC",
145
+ MANUAL: "MANUAL",
146
+ };
147
+ const ActionSubType = {
148
+ STOP_EC2: "STOP_EC2_INSTANCES",
149
+ STOP_RDS: "STOP_RDS_INSTANCES",
150
+ };
151
+ const NotificationType = {
152
+ ACTUAL: "ACTUAL",
153
+ FORECASTED: "FORECASTED",
154
+ };
155
+ const ActionStatus = {
156
+ Execution_Failure: "EXECUTION_FAILURE",
157
+ Execution_In_Progress: "EXECUTION_IN_PROGRESS",
158
+ Execution_Success: "EXECUTION_SUCCESS",
159
+ Pending: "PENDING",
160
+ Reset_Failure: "RESET_FAILURE",
161
+ Reset_In_Progress: "RESET_IN_PROGRESS",
162
+ Reverse_Failure: "REVERSE_FAILURE",
163
+ Reverse_In_Progress: "REVERSE_IN_PROGRESS",
164
+ Reverse_Success: "REVERSE_SUCCESS",
165
+ Standby: "STANDBY",
166
+ };
167
+ const SubscriptionType = {
168
+ EMAIL: "EMAIL",
169
+ SNS: "SNS",
170
+ };
171
+ const EventType = {
172
+ CreateAction: "CREATE_ACTION",
173
+ DeleteAction: "DELETE_ACTION",
174
+ ExecuteAction: "EXECUTE_ACTION",
175
+ System: "SYSTEM",
176
+ UpdateAction: "UPDATE_ACTION",
177
+ };
178
+ const AutoAdjustType = {
179
+ FORECAST: "FORECAST",
180
+ HISTORICAL: "HISTORICAL",
181
+ };
182
+ class BillingViewHealthStatusException extends BudgetsServiceException {
183
+ name = "BillingViewHealthStatusException";
184
+ $fault = "client";
185
+ Message;
186
+ constructor(opts) {
187
+ super({
188
+ name: "BillingViewHealthStatusException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
193
+ this.Message = opts.Message;
194
+ }
195
+ }
196
+ const BudgetType = {
197
+ Cost: "COST",
198
+ RICoverage: "RI_COVERAGE",
199
+ RIUtilization: "RI_UTILIZATION",
200
+ SPCoverage: "SAVINGS_PLANS_COVERAGE",
201
+ SPUtilization: "SAVINGS_PLANS_UTILIZATION",
202
+ Usage: "USAGE",
203
+ };
204
+ const MatchOption = {
205
+ ABSENT: "ABSENT",
206
+ CASE_INSENSITIVE: "CASE_INSENSITIVE",
207
+ CASE_SENSITIVE: "CASE_SENSITIVE",
208
+ CONTAINS: "CONTAINS",
209
+ ENDS_WITH: "ENDS_WITH",
210
+ EQUALS: "EQUALS",
211
+ GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL",
212
+ STARTS_WITH: "STARTS_WITH",
213
+ };
214
+ const Dimension = {
215
+ AZ: "AZ",
216
+ BILLING_ENTITY: "BILLING_ENTITY",
217
+ CACHE_ENGINE: "CACHE_ENGINE",
218
+ COST_CATEGORY_NAME: "COST_CATEGORY_NAME",
219
+ DATABASE_ENGINE: "DATABASE_ENGINE",
220
+ DEPLOYMENT_OPTION: "DEPLOYMENT_OPTION",
221
+ INSTANCE_TYPE: "INSTANCE_TYPE",
222
+ INSTANCE_TYPE_FAMILY: "INSTANCE_TYPE_FAMILY",
223
+ INVOICING_ENTITY: "INVOICING_ENTITY",
224
+ LEGAL_ENTITY_NAME: "LEGAL_ENTITY_NAME",
225
+ LINKED_ACCOUNT: "LINKED_ACCOUNT",
226
+ LINKED_ACCOUNT_NAME: "LINKED_ACCOUNT_NAME",
227
+ OPERATING_SYSTEM: "OPERATING_SYSTEM",
228
+ OPERATION: "OPERATION",
229
+ PAYMENT_OPTION: "PAYMENT_OPTION",
230
+ PLATFORM: "PLATFORM",
231
+ PURCHASE_TYPE: "PURCHASE_TYPE",
232
+ RECORD_TYPE: "RECORD_TYPE",
233
+ REGION: "REGION",
234
+ RESERVATION_ID: "RESERVATION_ID",
235
+ RESERVATION_MODIFIED: "RESERVATION_MODIFIED",
236
+ RESOURCE_ID: "RESOURCE_ID",
237
+ RIGHTSIZING_TYPE: "RIGHTSIZING_TYPE",
238
+ SAVINGS_PLANS_TYPE: "SAVINGS_PLANS_TYPE",
239
+ SAVINGS_PLAN_ARN: "SAVINGS_PLAN_ARN",
240
+ SCOPE: "SCOPE",
241
+ SERVICE: "SERVICE",
242
+ SERVICE_CODE: "SERVICE_CODE",
243
+ SUBSCRIPTION_ID: "SUBSCRIPTION_ID",
244
+ TAG_KEY: "TAG_KEY",
245
+ TENANCY: "TENANCY",
246
+ USAGE_TYPE: "USAGE_TYPE",
247
+ USAGE_TYPE_GROUP: "USAGE_TYPE_GROUP",
248
+ };
249
+ const HealthStatusValue = {
250
+ HEALTHY: "HEALTHY",
251
+ UNHEALTHY: "UNHEALTHY",
252
+ };
253
+ const HealthStatusReason = {
254
+ BILLING_VIEW_NO_ACCESS: "BILLING_VIEW_NO_ACCESS",
255
+ BILLING_VIEW_UNHEALTHY: "BILLING_VIEW_UNHEALTHY",
256
+ FILTER_INVALID: "FILTER_INVALID",
257
+ MULTI_YEAR_HISTORICAL_DATA_DISABLED: "MULTI_YEAR_HISTORICAL_DATA_DISABLED",
258
+ };
259
+ const Metric = {
260
+ AMORTIZED_COST: "AmortizedCost",
261
+ BLENDED_COST: "BlendedCost",
262
+ HOURS: "Hours",
263
+ NET_AMORTIZED_COST: "NetAmortizedCost",
264
+ NET_UNBLENDED_COST: "NetUnblendedCost",
265
+ NORMALIZED_USAGE_AMOUNT: "NormalizedUsageAmount",
266
+ UNBLENDED_COST: "UnblendedCost",
267
+ USAGE_QUANTITY: "UsageQuantity",
268
+ };
269
+ const TimeUnit = {
270
+ ANNUALLY: "ANNUALLY",
271
+ CUSTOM: "CUSTOM",
272
+ DAILY: "DAILY",
273
+ MONTHLY: "MONTHLY",
274
+ QUARTERLY: "QUARTERLY",
275
+ };
276
+ const ComparisonOperator = {
277
+ EQUAL_TO: "EQUAL_TO",
278
+ GREATER_THAN: "GREATER_THAN",
279
+ LESS_THAN: "LESS_THAN",
280
+ };
281
+ const NotificationState = {
282
+ ALARM: "ALARM",
283
+ OK: "OK",
284
+ };
285
+ class CreationLimitExceededException extends BudgetsServiceException {
286
+ name = "CreationLimitExceededException";
287
+ $fault = "client";
288
+ Message;
289
+ constructor(opts) {
290
+ super({
291
+ name: "CreationLimitExceededException",
292
+ $fault: "client",
293
+ ...opts,
294
+ });
295
+ Object.setPrototypeOf(this, CreationLimitExceededException.prototype);
296
+ this.Message = opts.Message;
297
+ }
298
+ }
299
+ class DuplicateRecordException extends BudgetsServiceException {
300
+ name = "DuplicateRecordException";
301
+ $fault = "client";
302
+ Message;
303
+ constructor(opts) {
304
+ super({
305
+ name: "DuplicateRecordException",
306
+ $fault: "client",
307
+ ...opts,
308
+ });
309
+ Object.setPrototypeOf(this, DuplicateRecordException.prototype);
310
+ this.Message = opts.Message;
311
+ }
312
+ }
313
+ class InternalErrorException extends BudgetsServiceException {
314
+ name = "InternalErrorException";
315
+ $fault = "server";
316
+ Message;
317
+ constructor(opts) {
318
+ super({
319
+ name: "InternalErrorException",
320
+ $fault: "server",
321
+ ...opts,
322
+ });
323
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
324
+ this.Message = opts.Message;
325
+ }
326
+ }
327
+ class InvalidParameterException extends BudgetsServiceException {
328
+ name = "InvalidParameterException";
329
+ $fault = "client";
330
+ Message;
331
+ constructor(opts) {
332
+ super({
333
+ name: "InvalidParameterException",
334
+ $fault: "client",
335
+ ...opts,
336
+ });
337
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
338
+ this.Message = opts.Message;
339
+ }
340
+ }
341
+ class NotFoundException extends BudgetsServiceException {
342
+ name = "NotFoundException";
343
+ $fault = "client";
344
+ Message;
345
+ constructor(opts) {
346
+ super({
347
+ name: "NotFoundException",
348
+ $fault: "client",
349
+ ...opts,
350
+ });
351
+ Object.setPrototypeOf(this, NotFoundException.prototype);
352
+ this.Message = opts.Message;
353
+ }
354
+ }
355
+ class ServiceQuotaExceededException extends BudgetsServiceException {
356
+ name = "ServiceQuotaExceededException";
357
+ $fault = "client";
358
+ Message;
359
+ constructor(opts) {
360
+ super({
361
+ name: "ServiceQuotaExceededException",
362
+ $fault: "client",
363
+ ...opts,
364
+ });
365
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
366
+ this.Message = opts.Message;
367
+ }
368
+ }
369
+ class ThrottlingException extends BudgetsServiceException {
370
+ name = "ThrottlingException";
371
+ $fault = "client";
372
+ Message;
373
+ constructor(opts) {
374
+ super({
375
+ name: "ThrottlingException",
376
+ $fault: "client",
377
+ ...opts,
378
+ });
379
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
380
+ this.Message = opts.Message;
381
+ }
382
+ }
383
+ class ResourceLockedException extends BudgetsServiceException {
384
+ name = "ResourceLockedException";
385
+ $fault = "client";
386
+ Message;
387
+ constructor(opts) {
388
+ super({
389
+ name: "ResourceLockedException",
390
+ $fault: "client",
391
+ ...opts,
392
+ });
393
+ Object.setPrototypeOf(this, ResourceLockedException.prototype);
394
+ this.Message = opts.Message;
395
+ }
396
+ }
397
+ class InvalidNextTokenException extends BudgetsServiceException {
398
+ name = "InvalidNextTokenException";
399
+ $fault = "client";
400
+ Message;
401
+ constructor(opts) {
402
+ super({
403
+ name: "InvalidNextTokenException",
404
+ $fault: "client",
405
+ ...opts,
406
+ });
407
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
408
+ this.Message = opts.Message;
409
+ }
410
+ }
411
+ class ExpiredNextTokenException extends BudgetsServiceException {
412
+ name = "ExpiredNextTokenException";
413
+ $fault = "client";
414
+ Message;
415
+ constructor(opts) {
416
+ super({
417
+ name: "ExpiredNextTokenException",
418
+ $fault: "client",
419
+ ...opts,
420
+ });
421
+ Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
422
+ this.Message = opts.Message;
423
+ }
424
+ }
425
+ const ExecutionType = {
426
+ ApproveBudgetAction: "APPROVE_BUDGET_ACTION",
427
+ ResetBudgetAction: "RESET_BUDGET_ACTION",
428
+ RetryBudgetAction: "RETRY_BUDGET_ACTION",
429
+ ReverseBudgetAction: "REVERSE_BUDGET_ACTION",
430
+ };
431
+ const SubscriberFilterSensitiveLog = (obj) => ({
432
+ ...obj,
433
+ ...(obj.Address && { Address: smithyClient.SENSITIVE_STRING }),
434
+ });
435
+ const ActionFilterSensitiveLog = (obj) => ({
436
+ ...obj,
437
+ ...(obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }),
438
+ });
439
+ const ActionHistoryDetailsFilterSensitiveLog = (obj) => ({
440
+ ...obj,
441
+ ...(obj.Action && { Action: ActionFilterSensitiveLog(obj.Action) }),
442
+ });
443
+ const ActionHistoryFilterSensitiveLog = (obj) => ({
444
+ ...obj,
445
+ ...(obj.ActionHistoryDetails && {
446
+ ActionHistoryDetails: ActionHistoryDetailsFilterSensitiveLog(obj.ActionHistoryDetails),
447
+ }),
448
+ });
449
+ const NotificationWithSubscribersFilterSensitiveLog = (obj) => ({
450
+ ...obj,
451
+ ...(obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }),
452
+ });
453
+ const CreateBudgetActionRequestFilterSensitiveLog = (obj) => ({
454
+ ...obj,
455
+ ...(obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }),
456
+ });
457
+ const CreateNotificationRequestFilterSensitiveLog = (obj) => ({
458
+ ...obj,
459
+ ...(obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }),
460
+ });
461
+ const CreateSubscriberRequestFilterSensitiveLog = (obj) => ({
462
+ ...obj,
463
+ ...(obj.Subscriber && { Subscriber: SubscriberFilterSensitiveLog(obj.Subscriber) }),
464
+ });
465
+ const DeleteBudgetActionResponseFilterSensitiveLog = (obj) => ({
466
+ ...obj,
467
+ ...(obj.Action && { Action: ActionFilterSensitiveLog(obj.Action) }),
468
+ });
469
+ const DeleteSubscriberRequestFilterSensitiveLog = (obj) => ({
470
+ ...obj,
471
+ ...(obj.Subscriber && { Subscriber: SubscriberFilterSensitiveLog(obj.Subscriber) }),
472
+ });
473
+ const DescribeBudgetActionResponseFilterSensitiveLog = (obj) => ({
474
+ ...obj,
475
+ ...(obj.Action && { Action: ActionFilterSensitiveLog(obj.Action) }),
476
+ });
477
+ const DescribeBudgetActionHistoriesResponseFilterSensitiveLog = (obj) => ({
478
+ ...obj,
479
+ });
480
+ const DescribeBudgetActionsForAccountResponseFilterSensitiveLog = (obj) => ({
481
+ ...obj,
482
+ });
483
+ const DescribeBudgetActionsForBudgetResponseFilterSensitiveLog = (obj) => ({
484
+ ...obj,
485
+ });
486
+ const DescribeSubscribersForNotificationResponseFilterSensitiveLog = (obj) => ({
487
+ ...obj,
488
+ ...(obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }),
489
+ });
490
+ const UpdateBudgetActionRequestFilterSensitiveLog = (obj) => ({
491
+ ...obj,
492
+ ...(obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }),
493
+ });
494
+ const UpdateBudgetActionResponseFilterSensitiveLog = (obj) => ({
495
+ ...obj,
496
+ ...(obj.OldAction && { OldAction: ActionFilterSensitiveLog(obj.OldAction) }),
497
+ ...(obj.NewAction && { NewAction: ActionFilterSensitiveLog(obj.NewAction) }),
498
+ });
499
+ const UpdateSubscriberRequestFilterSensitiveLog = (obj) => ({
500
+ ...obj,
501
+ ...(obj.OldSubscriber && { OldSubscriber: SubscriberFilterSensitiveLog(obj.OldSubscriber) }),
502
+ ...(obj.NewSubscriber && { NewSubscriber: SubscriberFilterSensitiveLog(obj.NewSubscriber) }),
503
+ });
504
+ const CreateBudgetRequestFilterSensitiveLog = (obj) => ({
505
+ ...obj,
506
+ });
207
507
 
208
- // src/BudgetsClient.ts
209
- var BudgetsClient = class extends import_smithy_client.Client {
210
- static {
211
- __name(this, "BudgetsClient");
212
- }
213
- /**
214
- * The resolved configuration of BudgetsClient class. This is resolved and normalized from the {@link BudgetsClientConfig | constructor configuration interface}.
215
- */
216
- config;
217
- constructor(...[configuration]) {
218
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
219
- super(_config_0);
220
- this.initConfig = _config_0;
221
- const _config_1 = resolveClientEndpointParameters(_config_0);
222
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
223
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
224
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
225
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
226
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
227
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
228
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
229
- this.config = _config_8;
230
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
231
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
232
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
233
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
234
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
235
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
236
- this.middlewareStack.use(
237
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
238
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBudgetsHttpAuthSchemeParametersProvider,
239
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
240
- "aws.auth#sigv4": config.credentials
241
- }), "identityProviderConfigProvider")
242
- })
243
- );
244
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
245
- }
246
- /**
247
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
248
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
249
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
250
- */
251
- destroy() {
252
- super.destroy();
253
- }
508
+ const se_CreateBudgetCommand = async (input, context) => {
509
+ const headers = sharedHeaders("CreateBudget");
510
+ let body;
511
+ body = JSON.stringify(se_CreateBudgetRequest(input));
512
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
513
+ };
514
+ const se_CreateBudgetActionCommand = async (input, context) => {
515
+ const headers = sharedHeaders("CreateBudgetAction");
516
+ let body;
517
+ body = JSON.stringify(se_CreateBudgetActionRequest(input));
518
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
519
+ };
520
+ const se_CreateNotificationCommand = async (input, context) => {
521
+ const headers = sharedHeaders("CreateNotification");
522
+ let body;
523
+ body = JSON.stringify(se_CreateNotificationRequest(input));
524
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
525
+ };
526
+ const se_CreateSubscriberCommand = async (input, context) => {
527
+ const headers = sharedHeaders("CreateSubscriber");
528
+ let body;
529
+ body = JSON.stringify(se_CreateSubscriberRequest(input));
530
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
531
+ };
532
+ const se_DeleteBudgetCommand = async (input, context) => {
533
+ const headers = sharedHeaders("DeleteBudget");
534
+ let body;
535
+ body = JSON.stringify(smithyClient._json(input));
536
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
537
+ };
538
+ const se_DeleteBudgetActionCommand = async (input, context) => {
539
+ const headers = sharedHeaders("DeleteBudgetAction");
540
+ let body;
541
+ body = JSON.stringify(smithyClient._json(input));
542
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
543
+ };
544
+ const se_DeleteNotificationCommand = async (input, context) => {
545
+ const headers = sharedHeaders("DeleteNotification");
546
+ let body;
547
+ body = JSON.stringify(se_DeleteNotificationRequest(input));
548
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
549
+ };
550
+ const se_DeleteSubscriberCommand = async (input, context) => {
551
+ const headers = sharedHeaders("DeleteSubscriber");
552
+ let body;
553
+ body = JSON.stringify(se_DeleteSubscriberRequest(input));
554
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
555
+ };
556
+ const se_DescribeBudgetCommand = async (input, context) => {
557
+ const headers = sharedHeaders("DescribeBudget");
558
+ let body;
559
+ body = JSON.stringify(smithyClient._json(input));
560
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
561
+ };
562
+ const se_DescribeBudgetActionCommand = async (input, context) => {
563
+ const headers = sharedHeaders("DescribeBudgetAction");
564
+ let body;
565
+ body = JSON.stringify(smithyClient._json(input));
566
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
567
+ };
568
+ const se_DescribeBudgetActionHistoriesCommand = async (input, context) => {
569
+ const headers = sharedHeaders("DescribeBudgetActionHistories");
570
+ let body;
571
+ body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input));
572
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
573
+ };
574
+ const se_DescribeBudgetActionsForAccountCommand = async (input, context) => {
575
+ const headers = sharedHeaders("DescribeBudgetActionsForAccount");
576
+ let body;
577
+ body = JSON.stringify(smithyClient._json(input));
578
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
579
+ };
580
+ const se_DescribeBudgetActionsForBudgetCommand = async (input, context) => {
581
+ const headers = sharedHeaders("DescribeBudgetActionsForBudget");
582
+ let body;
583
+ body = JSON.stringify(smithyClient._json(input));
584
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
585
+ };
586
+ const se_DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
587
+ const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
588
+ let body;
589
+ body = JSON.stringify(smithyClient._json(input));
590
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
591
+ };
592
+ const se_DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
593
+ const headers = sharedHeaders("DescribeBudgetPerformanceHistory");
594
+ let body;
595
+ body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input));
596
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
597
+ };
598
+ const se_DescribeBudgetsCommand = async (input, context) => {
599
+ const headers = sharedHeaders("DescribeBudgets");
600
+ let body;
601
+ body = JSON.stringify(smithyClient._json(input));
602
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
603
+ };
604
+ const se_DescribeNotificationsForBudgetCommand = async (input, context) => {
605
+ const headers = sharedHeaders("DescribeNotificationsForBudget");
606
+ let body;
607
+ body = JSON.stringify(smithyClient._json(input));
608
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
609
+ };
610
+ const se_DescribeSubscribersForNotificationCommand = async (input, context) => {
611
+ const headers = sharedHeaders("DescribeSubscribersForNotification");
612
+ let body;
613
+ body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input));
614
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
615
+ };
616
+ const se_ExecuteBudgetActionCommand = async (input, context) => {
617
+ const headers = sharedHeaders("ExecuteBudgetAction");
618
+ let body;
619
+ body = JSON.stringify(smithyClient._json(input));
620
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
621
+ };
622
+ const se_ListTagsForResourceCommand = async (input, context) => {
623
+ const headers = sharedHeaders("ListTagsForResource");
624
+ let body;
625
+ body = JSON.stringify(smithyClient._json(input));
626
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
627
+ };
628
+ const se_TagResourceCommand = async (input, context) => {
629
+ const headers = sharedHeaders("TagResource");
630
+ let body;
631
+ body = JSON.stringify(smithyClient._json(input));
632
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
633
+ };
634
+ const se_UntagResourceCommand = async (input, context) => {
635
+ const headers = sharedHeaders("UntagResource");
636
+ let body;
637
+ body = JSON.stringify(smithyClient._json(input));
638
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
639
+ };
640
+ const se_UpdateBudgetCommand = async (input, context) => {
641
+ const headers = sharedHeaders("UpdateBudget");
642
+ let body;
643
+ body = JSON.stringify(se_UpdateBudgetRequest(input));
644
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
645
+ };
646
+ const se_UpdateBudgetActionCommand = async (input, context) => {
647
+ const headers = sharedHeaders("UpdateBudgetAction");
648
+ let body;
649
+ body = JSON.stringify(se_UpdateBudgetActionRequest(input));
650
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
651
+ };
652
+ const se_UpdateNotificationCommand = async (input, context) => {
653
+ const headers = sharedHeaders("UpdateNotification");
654
+ let body;
655
+ body = JSON.stringify(se_UpdateNotificationRequest(input));
656
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
657
+ };
658
+ const se_UpdateSubscriberCommand = async (input, context) => {
659
+ const headers = sharedHeaders("UpdateSubscriber");
660
+ let body;
661
+ body = JSON.stringify(se_UpdateSubscriberRequest(input));
662
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
663
+ };
664
+ const de_CreateBudgetCommand = async (output, context) => {
665
+ if (output.statusCode >= 300) {
666
+ return de_CommandError(output, context);
667
+ }
668
+ const data = await core$1.parseJsonBody(output.body, context);
669
+ let contents = {};
670
+ contents = smithyClient._json(data);
671
+ const response = {
672
+ $metadata: deserializeMetadata(output),
673
+ ...contents,
674
+ };
675
+ return response;
676
+ };
677
+ const de_CreateBudgetActionCommand = async (output, context) => {
678
+ if (output.statusCode >= 300) {
679
+ return de_CommandError(output, context);
680
+ }
681
+ const data = await core$1.parseJsonBody(output.body, context);
682
+ let contents = {};
683
+ contents = smithyClient._json(data);
684
+ const response = {
685
+ $metadata: deserializeMetadata(output),
686
+ ...contents,
687
+ };
688
+ return response;
689
+ };
690
+ const de_CreateNotificationCommand = async (output, context) => {
691
+ if (output.statusCode >= 300) {
692
+ return de_CommandError(output, context);
693
+ }
694
+ const data = await core$1.parseJsonBody(output.body, context);
695
+ let contents = {};
696
+ contents = smithyClient._json(data);
697
+ const response = {
698
+ $metadata: deserializeMetadata(output),
699
+ ...contents,
700
+ };
701
+ return response;
702
+ };
703
+ const de_CreateSubscriberCommand = async (output, context) => {
704
+ if (output.statusCode >= 300) {
705
+ return de_CommandError(output, context);
706
+ }
707
+ const data = await core$1.parseJsonBody(output.body, context);
708
+ let contents = {};
709
+ contents = smithyClient._json(data);
710
+ const response = {
711
+ $metadata: deserializeMetadata(output),
712
+ ...contents,
713
+ };
714
+ return response;
715
+ };
716
+ const de_DeleteBudgetCommand = async (output, context) => {
717
+ if (output.statusCode >= 300) {
718
+ return de_CommandError(output, context);
719
+ }
720
+ const data = await core$1.parseJsonBody(output.body, context);
721
+ let contents = {};
722
+ contents = smithyClient._json(data);
723
+ const response = {
724
+ $metadata: deserializeMetadata(output),
725
+ ...contents,
726
+ };
727
+ return response;
728
+ };
729
+ const de_DeleteBudgetActionCommand = async (output, context) => {
730
+ if (output.statusCode >= 300) {
731
+ return de_CommandError(output, context);
732
+ }
733
+ const data = await core$1.parseJsonBody(output.body, context);
734
+ let contents = {};
735
+ contents = de_DeleteBudgetActionResponse(data);
736
+ const response = {
737
+ $metadata: deserializeMetadata(output),
738
+ ...contents,
739
+ };
740
+ return response;
741
+ };
742
+ const de_DeleteNotificationCommand = async (output, context) => {
743
+ if (output.statusCode >= 300) {
744
+ return de_CommandError(output, context);
745
+ }
746
+ const data = await core$1.parseJsonBody(output.body, context);
747
+ let contents = {};
748
+ contents = smithyClient._json(data);
749
+ const response = {
750
+ $metadata: deserializeMetadata(output),
751
+ ...contents,
752
+ };
753
+ return response;
754
+ };
755
+ const de_DeleteSubscriberCommand = async (output, context) => {
756
+ if (output.statusCode >= 300) {
757
+ return de_CommandError(output, context);
758
+ }
759
+ const data = await core$1.parseJsonBody(output.body, context);
760
+ let contents = {};
761
+ contents = smithyClient._json(data);
762
+ const response = {
763
+ $metadata: deserializeMetadata(output),
764
+ ...contents,
765
+ };
766
+ return response;
767
+ };
768
+ const de_DescribeBudgetCommand = async (output, context) => {
769
+ if (output.statusCode >= 300) {
770
+ return de_CommandError(output, context);
771
+ }
772
+ const data = await core$1.parseJsonBody(output.body, context);
773
+ let contents = {};
774
+ contents = de_DescribeBudgetResponse(data);
775
+ const response = {
776
+ $metadata: deserializeMetadata(output),
777
+ ...contents,
778
+ };
779
+ return response;
780
+ };
781
+ const de_DescribeBudgetActionCommand = async (output, context) => {
782
+ if (output.statusCode >= 300) {
783
+ return de_CommandError(output, context);
784
+ }
785
+ const data = await core$1.parseJsonBody(output.body, context);
786
+ let contents = {};
787
+ contents = de_DescribeBudgetActionResponse(data);
788
+ const response = {
789
+ $metadata: deserializeMetadata(output),
790
+ ...contents,
791
+ };
792
+ return response;
793
+ };
794
+ const de_DescribeBudgetActionHistoriesCommand = async (output, context) => {
795
+ if (output.statusCode >= 300) {
796
+ return de_CommandError(output, context);
797
+ }
798
+ const data = await core$1.parseJsonBody(output.body, context);
799
+ let contents = {};
800
+ contents = de_DescribeBudgetActionHistoriesResponse(data);
801
+ const response = {
802
+ $metadata: deserializeMetadata(output),
803
+ ...contents,
804
+ };
805
+ return response;
806
+ };
807
+ const de_DescribeBudgetActionsForAccountCommand = async (output, context) => {
808
+ if (output.statusCode >= 300) {
809
+ return de_CommandError(output, context);
810
+ }
811
+ const data = await core$1.parseJsonBody(output.body, context);
812
+ let contents = {};
813
+ contents = de_DescribeBudgetActionsForAccountResponse(data);
814
+ const response = {
815
+ $metadata: deserializeMetadata(output),
816
+ ...contents,
817
+ };
818
+ return response;
819
+ };
820
+ const de_DescribeBudgetActionsForBudgetCommand = async (output, context) => {
821
+ if (output.statusCode >= 300) {
822
+ return de_CommandError(output, context);
823
+ }
824
+ const data = await core$1.parseJsonBody(output.body, context);
825
+ let contents = {};
826
+ contents = de_DescribeBudgetActionsForBudgetResponse(data);
827
+ const response = {
828
+ $metadata: deserializeMetadata(output),
829
+ ...contents,
830
+ };
831
+ return response;
832
+ };
833
+ const de_DescribeBudgetNotificationsForAccountCommand = async (output, context) => {
834
+ if (output.statusCode >= 300) {
835
+ return de_CommandError(output, context);
836
+ }
837
+ const data = await core$1.parseJsonBody(output.body, context);
838
+ let contents = {};
839
+ contents = de_DescribeBudgetNotificationsForAccountResponse(data);
840
+ const response = {
841
+ $metadata: deserializeMetadata(output),
842
+ ...contents,
843
+ };
844
+ return response;
845
+ };
846
+ const de_DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
847
+ if (output.statusCode >= 300) {
848
+ return de_CommandError(output, context);
849
+ }
850
+ const data = await core$1.parseJsonBody(output.body, context);
851
+ let contents = {};
852
+ contents = de_DescribeBudgetPerformanceHistoryResponse(data);
853
+ const response = {
854
+ $metadata: deserializeMetadata(output),
855
+ ...contents,
856
+ };
857
+ return response;
858
+ };
859
+ const de_DescribeBudgetsCommand = async (output, context) => {
860
+ if (output.statusCode >= 300) {
861
+ return de_CommandError(output, context);
862
+ }
863
+ const data = await core$1.parseJsonBody(output.body, context);
864
+ let contents = {};
865
+ contents = de_DescribeBudgetsResponse(data);
866
+ const response = {
867
+ $metadata: deserializeMetadata(output),
868
+ ...contents,
869
+ };
870
+ return response;
871
+ };
872
+ const de_DescribeNotificationsForBudgetCommand = async (output, context) => {
873
+ if (output.statusCode >= 300) {
874
+ return de_CommandError(output, context);
875
+ }
876
+ const data = await core$1.parseJsonBody(output.body, context);
877
+ let contents = {};
878
+ contents = de_DescribeNotificationsForBudgetResponse(data);
879
+ const response = {
880
+ $metadata: deserializeMetadata(output),
881
+ ...contents,
882
+ };
883
+ return response;
884
+ };
885
+ const de_DescribeSubscribersForNotificationCommand = async (output, context) => {
886
+ if (output.statusCode >= 300) {
887
+ return de_CommandError(output, context);
888
+ }
889
+ const data = await core$1.parseJsonBody(output.body, context);
890
+ let contents = {};
891
+ contents = smithyClient._json(data);
892
+ const response = {
893
+ $metadata: deserializeMetadata(output),
894
+ ...contents,
895
+ };
896
+ return response;
897
+ };
898
+ const de_ExecuteBudgetActionCommand = async (output, context) => {
899
+ if (output.statusCode >= 300) {
900
+ return de_CommandError(output, context);
901
+ }
902
+ const data = await core$1.parseJsonBody(output.body, context);
903
+ let contents = {};
904
+ contents = smithyClient._json(data);
905
+ const response = {
906
+ $metadata: deserializeMetadata(output),
907
+ ...contents,
908
+ };
909
+ return response;
910
+ };
911
+ const de_ListTagsForResourceCommand = async (output, context) => {
912
+ if (output.statusCode >= 300) {
913
+ return de_CommandError(output, context);
914
+ }
915
+ const data = await core$1.parseJsonBody(output.body, context);
916
+ let contents = {};
917
+ contents = smithyClient._json(data);
918
+ const response = {
919
+ $metadata: deserializeMetadata(output),
920
+ ...contents,
921
+ };
922
+ return response;
923
+ };
924
+ const de_TagResourceCommand = async (output, context) => {
925
+ if (output.statusCode >= 300) {
926
+ return de_CommandError(output, context);
927
+ }
928
+ const data = await core$1.parseJsonBody(output.body, context);
929
+ let contents = {};
930
+ contents = smithyClient._json(data);
931
+ const response = {
932
+ $metadata: deserializeMetadata(output),
933
+ ...contents,
934
+ };
935
+ return response;
936
+ };
937
+ const de_UntagResourceCommand = async (output, context) => {
938
+ if (output.statusCode >= 300) {
939
+ return de_CommandError(output, context);
940
+ }
941
+ const data = await core$1.parseJsonBody(output.body, context);
942
+ let contents = {};
943
+ contents = smithyClient._json(data);
944
+ const response = {
945
+ $metadata: deserializeMetadata(output),
946
+ ...contents,
947
+ };
948
+ return response;
949
+ };
950
+ const de_UpdateBudgetCommand = async (output, context) => {
951
+ if (output.statusCode >= 300) {
952
+ return de_CommandError(output, context);
953
+ }
954
+ const data = await core$1.parseJsonBody(output.body, context);
955
+ let contents = {};
956
+ contents = smithyClient._json(data);
957
+ const response = {
958
+ $metadata: deserializeMetadata(output),
959
+ ...contents,
960
+ };
961
+ return response;
962
+ };
963
+ const de_UpdateBudgetActionCommand = async (output, context) => {
964
+ if (output.statusCode >= 300) {
965
+ return de_CommandError(output, context);
966
+ }
967
+ const data = await core$1.parseJsonBody(output.body, context);
968
+ let contents = {};
969
+ contents = de_UpdateBudgetActionResponse(data);
970
+ const response = {
971
+ $metadata: deserializeMetadata(output),
972
+ ...contents,
973
+ };
974
+ return response;
975
+ };
976
+ const de_UpdateNotificationCommand = async (output, context) => {
977
+ if (output.statusCode >= 300) {
978
+ return de_CommandError(output, context);
979
+ }
980
+ const data = await core$1.parseJsonBody(output.body, context);
981
+ let contents = {};
982
+ contents = smithyClient._json(data);
983
+ const response = {
984
+ $metadata: deserializeMetadata(output),
985
+ ...contents,
986
+ };
987
+ return response;
988
+ };
989
+ const de_UpdateSubscriberCommand = async (output, context) => {
990
+ if (output.statusCode >= 300) {
991
+ return de_CommandError(output, context);
992
+ }
993
+ const data = await core$1.parseJsonBody(output.body, context);
994
+ let contents = {};
995
+ contents = smithyClient._json(data);
996
+ const response = {
997
+ $metadata: deserializeMetadata(output),
998
+ ...contents,
999
+ };
1000
+ return response;
1001
+ };
1002
+ const de_CommandError = async (output, context) => {
1003
+ const parsedOutput = {
1004
+ ...output,
1005
+ body: await core$1.parseJsonErrorBody(output.body, context),
1006
+ };
1007
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1008
+ switch (errorCode) {
1009
+ case "AccessDeniedException":
1010
+ case "com.amazonaws.budgets#AccessDeniedException":
1011
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1012
+ case "BillingViewHealthStatusException":
1013
+ case "com.amazonaws.budgets#BillingViewHealthStatusException":
1014
+ throw await de_BillingViewHealthStatusExceptionRes(parsedOutput);
1015
+ case "CreationLimitExceededException":
1016
+ case "com.amazonaws.budgets#CreationLimitExceededException":
1017
+ throw await de_CreationLimitExceededExceptionRes(parsedOutput);
1018
+ case "DuplicateRecordException":
1019
+ case "com.amazonaws.budgets#DuplicateRecordException":
1020
+ throw await de_DuplicateRecordExceptionRes(parsedOutput);
1021
+ case "InternalErrorException":
1022
+ case "com.amazonaws.budgets#InternalErrorException":
1023
+ throw await de_InternalErrorExceptionRes(parsedOutput);
1024
+ case "InvalidParameterException":
1025
+ case "com.amazonaws.budgets#InvalidParameterException":
1026
+ throw await de_InvalidParameterExceptionRes(parsedOutput);
1027
+ case "NotFoundException":
1028
+ case "com.amazonaws.budgets#NotFoundException":
1029
+ throw await de_NotFoundExceptionRes(parsedOutput);
1030
+ case "ServiceQuotaExceededException":
1031
+ case "com.amazonaws.budgets#ServiceQuotaExceededException":
1032
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1033
+ case "ThrottlingException":
1034
+ case "com.amazonaws.budgets#ThrottlingException":
1035
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1036
+ case "ResourceLockedException":
1037
+ case "com.amazonaws.budgets#ResourceLockedException":
1038
+ throw await de_ResourceLockedExceptionRes(parsedOutput);
1039
+ case "InvalidNextTokenException":
1040
+ case "com.amazonaws.budgets#InvalidNextTokenException":
1041
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput);
1042
+ case "ExpiredNextTokenException":
1043
+ case "com.amazonaws.budgets#ExpiredNextTokenException":
1044
+ throw await de_ExpiredNextTokenExceptionRes(parsedOutput);
1045
+ default:
1046
+ const parsedBody = parsedOutput.body;
1047
+ return throwDefaultError({
1048
+ output,
1049
+ parsedBody,
1050
+ errorCode,
1051
+ });
1052
+ }
254
1053
  };
255
-
256
- // src/Budgets.ts
257
-
258
-
259
- // src/commands/CreateBudgetActionCommand.ts
260
-
261
- var import_middleware_serde = require("@smithy/middleware-serde");
262
-
263
-
264
- // src/models/models_0.ts
265
-
266
-
267
- // src/models/BudgetsServiceException.ts
268
-
269
- var BudgetsServiceException = class _BudgetsServiceException extends import_smithy_client.ServiceException {
270
- static {
271
- __name(this, "BudgetsServiceException");
272
- }
273
- /**
274
- * @internal
275
- */
276
- constructor(options) {
277
- super(options);
278
- Object.setPrototypeOf(this, _BudgetsServiceException.prototype);
279
- }
1054
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1055
+ const body = parsedOutput.body;
1056
+ const deserialized = smithyClient._json(body);
1057
+ const exception = new AccessDeniedException({
1058
+ $metadata: deserializeMetadata(parsedOutput),
1059
+ ...deserialized,
1060
+ });
1061
+ return smithyClient.decorateServiceException(exception, body);
1062
+ };
1063
+ const de_BillingViewHealthStatusExceptionRes = async (parsedOutput, context) => {
1064
+ const body = parsedOutput.body;
1065
+ const deserialized = smithyClient._json(body);
1066
+ const exception = new BillingViewHealthStatusException({
1067
+ $metadata: deserializeMetadata(parsedOutput),
1068
+ ...deserialized,
1069
+ });
1070
+ return smithyClient.decorateServiceException(exception, body);
1071
+ };
1072
+ const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
1073
+ const body = parsedOutput.body;
1074
+ const deserialized = smithyClient._json(body);
1075
+ const exception = new CreationLimitExceededException({
1076
+ $metadata: deserializeMetadata(parsedOutput),
1077
+ ...deserialized,
1078
+ });
1079
+ return smithyClient.decorateServiceException(exception, body);
1080
+ };
1081
+ const de_DuplicateRecordExceptionRes = async (parsedOutput, context) => {
1082
+ const body = parsedOutput.body;
1083
+ const deserialized = smithyClient._json(body);
1084
+ const exception = new DuplicateRecordException({
1085
+ $metadata: deserializeMetadata(parsedOutput),
1086
+ ...deserialized,
1087
+ });
1088
+ return smithyClient.decorateServiceException(exception, body);
1089
+ };
1090
+ const de_ExpiredNextTokenExceptionRes = async (parsedOutput, context) => {
1091
+ const body = parsedOutput.body;
1092
+ const deserialized = smithyClient._json(body);
1093
+ const exception = new ExpiredNextTokenException({
1094
+ $metadata: deserializeMetadata(parsedOutput),
1095
+ ...deserialized,
1096
+ });
1097
+ return smithyClient.decorateServiceException(exception, body);
1098
+ };
1099
+ const de_InternalErrorExceptionRes = async (parsedOutput, context) => {
1100
+ const body = parsedOutput.body;
1101
+ const deserialized = smithyClient._json(body);
1102
+ const exception = new InternalErrorException({
1103
+ $metadata: deserializeMetadata(parsedOutput),
1104
+ ...deserialized,
1105
+ });
1106
+ return smithyClient.decorateServiceException(exception, body);
1107
+ };
1108
+ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
1109
+ const body = parsedOutput.body;
1110
+ const deserialized = smithyClient._json(body);
1111
+ const exception = new InvalidNextTokenException({
1112
+ $metadata: deserializeMetadata(parsedOutput),
1113
+ ...deserialized,
1114
+ });
1115
+ return smithyClient.decorateServiceException(exception, body);
1116
+ };
1117
+ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
1118
+ const body = parsedOutput.body;
1119
+ const deserialized = smithyClient._json(body);
1120
+ const exception = new InvalidParameterException({
1121
+ $metadata: deserializeMetadata(parsedOutput),
1122
+ ...deserialized,
1123
+ });
1124
+ return smithyClient.decorateServiceException(exception, body);
1125
+ };
1126
+ const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1127
+ const body = parsedOutput.body;
1128
+ const deserialized = smithyClient._json(body);
1129
+ const exception = new NotFoundException({
1130
+ $metadata: deserializeMetadata(parsedOutput),
1131
+ ...deserialized,
1132
+ });
1133
+ return smithyClient.decorateServiceException(exception, body);
1134
+ };
1135
+ const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
1136
+ const body = parsedOutput.body;
1137
+ const deserialized = smithyClient._json(body);
1138
+ const exception = new ResourceLockedException({
1139
+ $metadata: deserializeMetadata(parsedOutput),
1140
+ ...deserialized,
1141
+ });
1142
+ return smithyClient.decorateServiceException(exception, body);
1143
+ };
1144
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1145
+ const body = parsedOutput.body;
1146
+ const deserialized = smithyClient._json(body);
1147
+ const exception = new ServiceQuotaExceededException({
1148
+ $metadata: deserializeMetadata(parsedOutput),
1149
+ ...deserialized,
1150
+ });
1151
+ return smithyClient.decorateServiceException(exception, body);
1152
+ };
1153
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1154
+ const body = parsedOutput.body;
1155
+ const deserialized = smithyClient._json(body);
1156
+ const exception = new ThrottlingException({
1157
+ $metadata: deserializeMetadata(parsedOutput),
1158
+ ...deserialized,
1159
+ });
1160
+ return smithyClient.decorateServiceException(exception, body);
280
1161
  };
281
-
282
- // src/models/models_0.ts
283
- var AccessDeniedException = class _AccessDeniedException extends BudgetsServiceException {
284
- static {
285
- __name(this, "AccessDeniedException");
286
- }
287
- name = "AccessDeniedException";
288
- $fault = "client";
289
- /**
290
- * <p>The error message the exception carries.</p>
291
- * @public
292
- */
293
- Message;
294
- /**
295
- * @internal
296
- */
297
- constructor(opts) {
298
- super({
299
- name: "AccessDeniedException",
300
- $fault: "client",
301
- ...opts
302
- });
303
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
304
- this.Message = opts.Message;
305
- }
306
- };
307
- var ThresholdType = {
308
- ABSOLUTE_VALUE: "ABSOLUTE_VALUE",
309
- PERCENTAGE: "PERCENTAGE"
310
- };
311
- var ActionType = {
312
- IAM: "APPLY_IAM_POLICY",
313
- SCP: "APPLY_SCP_POLICY",
314
- SSM: "RUN_SSM_DOCUMENTS"
315
- };
316
- var ApprovalModel = {
317
- AUTO: "AUTOMATIC",
318
- MANUAL: "MANUAL"
319
- };
320
- var ActionSubType = {
321
- STOP_EC2: "STOP_EC2_INSTANCES",
322
- STOP_RDS: "STOP_RDS_INSTANCES"
323
- };
324
- var NotificationType = {
325
- ACTUAL: "ACTUAL",
326
- FORECASTED: "FORECASTED"
327
- };
328
- var ActionStatus = {
329
- Execution_Failure: "EXECUTION_FAILURE",
330
- Execution_In_Progress: "EXECUTION_IN_PROGRESS",
331
- Execution_Success: "EXECUTION_SUCCESS",
332
- Pending: "PENDING",
333
- Reset_Failure: "RESET_FAILURE",
334
- Reset_In_Progress: "RESET_IN_PROGRESS",
335
- Reverse_Failure: "REVERSE_FAILURE",
336
- Reverse_In_Progress: "REVERSE_IN_PROGRESS",
337
- Reverse_Success: "REVERSE_SUCCESS",
338
- Standby: "STANDBY"
339
- };
340
- var SubscriptionType = {
341
- EMAIL: "EMAIL",
342
- SNS: "SNS"
343
- };
344
- var EventType = {
345
- CreateAction: "CREATE_ACTION",
346
- DeleteAction: "DELETE_ACTION",
347
- ExecuteAction: "EXECUTE_ACTION",
348
- System: "SYSTEM",
349
- UpdateAction: "UPDATE_ACTION"
350
- };
351
- var AutoAdjustType = {
352
- FORECAST: "FORECAST",
353
- HISTORICAL: "HISTORICAL"
354
- };
355
- var BillingViewHealthStatusException = class _BillingViewHealthStatusException extends BudgetsServiceException {
356
- static {
357
- __name(this, "BillingViewHealthStatusException");
358
- }
359
- name = "BillingViewHealthStatusException";
360
- $fault = "client";
361
- /**
362
- * <p>The error message the exception carries.</p>
363
- * @public
364
- */
365
- Message;
366
- /**
367
- * @internal
368
- */
369
- constructor(opts) {
370
- super({
371
- name: "BillingViewHealthStatusException",
372
- $fault: "client",
373
- ...opts
374
- });
375
- Object.setPrototypeOf(this, _BillingViewHealthStatusException.prototype);
376
- this.Message = opts.Message;
377
- }
378
- };
379
- var BudgetType = {
380
- Cost: "COST",
381
- RICoverage: "RI_COVERAGE",
382
- RIUtilization: "RI_UTILIZATION",
383
- SPCoverage: "SAVINGS_PLANS_COVERAGE",
384
- SPUtilization: "SAVINGS_PLANS_UTILIZATION",
385
- Usage: "USAGE"
386
- };
387
- var MatchOption = {
388
- ABSENT: "ABSENT",
389
- CASE_INSENSITIVE: "CASE_INSENSITIVE",
390
- CASE_SENSITIVE: "CASE_SENSITIVE",
391
- CONTAINS: "CONTAINS",
392
- ENDS_WITH: "ENDS_WITH",
393
- EQUALS: "EQUALS",
394
- GREATER_THAN_OR_EQUAL: "GREATER_THAN_OR_EQUAL",
395
- STARTS_WITH: "STARTS_WITH"
396
- };
397
- var Dimension = {
398
- AZ: "AZ",
399
- BILLING_ENTITY: "BILLING_ENTITY",
400
- CACHE_ENGINE: "CACHE_ENGINE",
401
- COST_CATEGORY_NAME: "COST_CATEGORY_NAME",
402
- DATABASE_ENGINE: "DATABASE_ENGINE",
403
- DEPLOYMENT_OPTION: "DEPLOYMENT_OPTION",
404
- INSTANCE_TYPE: "INSTANCE_TYPE",
405
- INSTANCE_TYPE_FAMILY: "INSTANCE_TYPE_FAMILY",
406
- INVOICING_ENTITY: "INVOICING_ENTITY",
407
- LEGAL_ENTITY_NAME: "LEGAL_ENTITY_NAME",
408
- LINKED_ACCOUNT: "LINKED_ACCOUNT",
409
- LINKED_ACCOUNT_NAME: "LINKED_ACCOUNT_NAME",
410
- OPERATING_SYSTEM: "OPERATING_SYSTEM",
411
- OPERATION: "OPERATION",
412
- PAYMENT_OPTION: "PAYMENT_OPTION",
413
- PLATFORM: "PLATFORM",
414
- PURCHASE_TYPE: "PURCHASE_TYPE",
415
- RECORD_TYPE: "RECORD_TYPE",
416
- REGION: "REGION",
417
- RESERVATION_ID: "RESERVATION_ID",
418
- RESERVATION_MODIFIED: "RESERVATION_MODIFIED",
419
- RESOURCE_ID: "RESOURCE_ID",
420
- RIGHTSIZING_TYPE: "RIGHTSIZING_TYPE",
421
- SAVINGS_PLANS_TYPE: "SAVINGS_PLANS_TYPE",
422
- SAVINGS_PLAN_ARN: "SAVINGS_PLAN_ARN",
423
- SCOPE: "SCOPE",
424
- SERVICE: "SERVICE",
425
- SERVICE_CODE: "SERVICE_CODE",
426
- SUBSCRIPTION_ID: "SUBSCRIPTION_ID",
427
- TAG_KEY: "TAG_KEY",
428
- TENANCY: "TENANCY",
429
- USAGE_TYPE: "USAGE_TYPE",
430
- USAGE_TYPE_GROUP: "USAGE_TYPE_GROUP"
431
- };
432
- var HealthStatusValue = {
433
- HEALTHY: "HEALTHY",
434
- UNHEALTHY: "UNHEALTHY"
435
- };
436
- var HealthStatusReason = {
437
- BILLING_VIEW_NO_ACCESS: "BILLING_VIEW_NO_ACCESS",
438
- BILLING_VIEW_UNHEALTHY: "BILLING_VIEW_UNHEALTHY",
439
- FILTER_INVALID: "FILTER_INVALID",
440
- MULTI_YEAR_HISTORICAL_DATA_DISABLED: "MULTI_YEAR_HISTORICAL_DATA_DISABLED"
441
- };
442
- var Metric = {
443
- AMORTIZED_COST: "AmortizedCost",
444
- BLENDED_COST: "BlendedCost",
445
- HOURS: "Hours",
446
- NET_AMORTIZED_COST: "NetAmortizedCost",
447
- NET_UNBLENDED_COST: "NetUnblendedCost",
448
- NORMALIZED_USAGE_AMOUNT: "NormalizedUsageAmount",
449
- UNBLENDED_COST: "UnblendedCost",
450
- USAGE_QUANTITY: "UsageQuantity"
451
- };
452
- var TimeUnit = {
453
- ANNUALLY: "ANNUALLY",
454
- CUSTOM: "CUSTOM",
455
- DAILY: "DAILY",
456
- MONTHLY: "MONTHLY",
457
- QUARTERLY: "QUARTERLY"
458
- };
459
- var ComparisonOperator = {
460
- EQUAL_TO: "EQUAL_TO",
461
- GREATER_THAN: "GREATER_THAN",
462
- LESS_THAN: "LESS_THAN"
463
- };
464
- var NotificationState = {
465
- ALARM: "ALARM",
466
- OK: "OK"
467
- };
468
- var CreationLimitExceededException = class _CreationLimitExceededException extends BudgetsServiceException {
469
- static {
470
- __name(this, "CreationLimitExceededException");
471
- }
472
- name = "CreationLimitExceededException";
473
- $fault = "client";
474
- /**
475
- * <p>The error message the exception carries.</p>
476
- * @public
477
- */
478
- Message;
479
- /**
480
- * @internal
481
- */
482
- constructor(opts) {
483
- super({
484
- name: "CreationLimitExceededException",
485
- $fault: "client",
486
- ...opts
487
- });
488
- Object.setPrototypeOf(this, _CreationLimitExceededException.prototype);
489
- this.Message = opts.Message;
490
- }
491
- };
492
- var DuplicateRecordException = class _DuplicateRecordException extends BudgetsServiceException {
493
- static {
494
- __name(this, "DuplicateRecordException");
495
- }
496
- name = "DuplicateRecordException";
497
- $fault = "client";
498
- /**
499
- * <p>The error message the exception carries.</p>
500
- * @public
501
- */
502
- Message;
503
- /**
504
- * @internal
505
- */
506
- constructor(opts) {
507
- super({
508
- name: "DuplicateRecordException",
509
- $fault: "client",
510
- ...opts
511
- });
512
- Object.setPrototypeOf(this, _DuplicateRecordException.prototype);
513
- this.Message = opts.Message;
514
- }
515
- };
516
- var InternalErrorException = class _InternalErrorException extends BudgetsServiceException {
517
- static {
518
- __name(this, "InternalErrorException");
519
- }
520
- name = "InternalErrorException";
521
- $fault = "server";
522
- /**
523
- * <p>The error message the exception carries.</p>
524
- * @public
525
- */
526
- Message;
527
- /**
528
- * @internal
529
- */
530
- constructor(opts) {
531
- super({
532
- name: "InternalErrorException",
533
- $fault: "server",
534
- ...opts
535
- });
536
- Object.setPrototypeOf(this, _InternalErrorException.prototype);
537
- this.Message = opts.Message;
538
- }
539
- };
540
- var InvalidParameterException = class _InvalidParameterException extends BudgetsServiceException {
541
- static {
542
- __name(this, "InvalidParameterException");
543
- }
544
- name = "InvalidParameterException";
545
- $fault = "client";
546
- /**
547
- * <p>The error message the exception carries.</p>
548
- * @public
549
- */
550
- Message;
551
- /**
552
- * @internal
553
- */
554
- constructor(opts) {
555
- super({
556
- name: "InvalidParameterException",
557
- $fault: "client",
558
- ...opts
559
- });
560
- Object.setPrototypeOf(this, _InvalidParameterException.prototype);
561
- this.Message = opts.Message;
562
- }
563
- };
564
- var NotFoundException = class _NotFoundException extends BudgetsServiceException {
565
- static {
566
- __name(this, "NotFoundException");
567
- }
568
- name = "NotFoundException";
569
- $fault = "client";
570
- /**
571
- * <p>The error message the exception carries.</p>
572
- * @public
573
- */
574
- Message;
575
- /**
576
- * @internal
577
- */
578
- constructor(opts) {
579
- super({
580
- name: "NotFoundException",
581
- $fault: "client",
582
- ...opts
583
- });
584
- Object.setPrototypeOf(this, _NotFoundException.prototype);
585
- this.Message = opts.Message;
586
- }
587
- };
588
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BudgetsServiceException {
589
- static {
590
- __name(this, "ServiceQuotaExceededException");
591
- }
592
- name = "ServiceQuotaExceededException";
593
- $fault = "client";
594
- /**
595
- * <p>The error message the exception carries.</p>
596
- * @public
597
- */
598
- Message;
599
- /**
600
- * @internal
601
- */
602
- constructor(opts) {
603
- super({
604
- name: "ServiceQuotaExceededException",
605
- $fault: "client",
606
- ...opts
607
- });
608
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
609
- this.Message = opts.Message;
610
- }
611
- };
612
- var ThrottlingException = class _ThrottlingException extends BudgetsServiceException {
613
- static {
614
- __name(this, "ThrottlingException");
615
- }
616
- name = "ThrottlingException";
617
- $fault = "client";
618
- /**
619
- * <p>The error message the exception carries.</p>
620
- * @public
621
- */
622
- Message;
623
- /**
624
- * @internal
625
- */
626
- constructor(opts) {
627
- super({
628
- name: "ThrottlingException",
629
- $fault: "client",
630
- ...opts
631
- });
632
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
633
- this.Message = opts.Message;
634
- }
635
- };
636
- var ResourceLockedException = class _ResourceLockedException extends BudgetsServiceException {
637
- static {
638
- __name(this, "ResourceLockedException");
639
- }
640
- name = "ResourceLockedException";
641
- $fault = "client";
642
- /**
643
- * <p>The error message the exception carries.</p>
644
- * @public
645
- */
646
- Message;
647
- /**
648
- * @internal
649
- */
650
- constructor(opts) {
651
- super({
652
- name: "ResourceLockedException",
653
- $fault: "client",
654
- ...opts
655
- });
656
- Object.setPrototypeOf(this, _ResourceLockedException.prototype);
657
- this.Message = opts.Message;
658
- }
659
- };
660
- var InvalidNextTokenException = class _InvalidNextTokenException extends BudgetsServiceException {
661
- static {
662
- __name(this, "InvalidNextTokenException");
663
- }
664
- name = "InvalidNextTokenException";
665
- $fault = "client";
666
- /**
667
- * <p>The error message the exception carries.</p>
668
- * @public
669
- */
670
- Message;
671
- /**
672
- * @internal
673
- */
674
- constructor(opts) {
675
- super({
676
- name: "InvalidNextTokenException",
677
- $fault: "client",
678
- ...opts
679
- });
680
- Object.setPrototypeOf(this, _InvalidNextTokenException.prototype);
681
- this.Message = opts.Message;
682
- }
683
- };
684
- var ExpiredNextTokenException = class _ExpiredNextTokenException extends BudgetsServiceException {
685
- static {
686
- __name(this, "ExpiredNextTokenException");
687
- }
688
- name = "ExpiredNextTokenException";
689
- $fault = "client";
690
- /**
691
- * <p>The error message the exception carries.</p>
692
- * @public
693
- */
694
- Message;
695
- /**
696
- * @internal
697
- */
698
- constructor(opts) {
699
- super({
700
- name: "ExpiredNextTokenException",
701
- $fault: "client",
702
- ...opts
703
- });
704
- Object.setPrototypeOf(this, _ExpiredNextTokenException.prototype);
705
- this.Message = opts.Message;
706
- }
707
- };
708
- var ExecutionType = {
709
- ApproveBudgetAction: "APPROVE_BUDGET_ACTION",
710
- ResetBudgetAction: "RESET_BUDGET_ACTION",
711
- RetryBudgetAction: "RETRY_BUDGET_ACTION",
712
- ReverseBudgetAction: "REVERSE_BUDGET_ACTION"
713
- };
714
- var SubscriberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
715
- ...obj,
716
- ...obj.Address && { Address: import_smithy_client.SENSITIVE_STRING }
717
- }), "SubscriberFilterSensitiveLog");
718
- var ActionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
719
- ...obj,
720
- ...obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }
721
- }), "ActionFilterSensitiveLog");
722
- var ActionHistoryDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
723
- ...obj,
724
- ...obj.Action && { Action: ActionFilterSensitiveLog(obj.Action) }
725
- }), "ActionHistoryDetailsFilterSensitiveLog");
726
- var ActionHistoryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
727
- ...obj,
728
- ...obj.ActionHistoryDetails && {
729
- ActionHistoryDetails: ActionHistoryDetailsFilterSensitiveLog(obj.ActionHistoryDetails)
730
- }
731
- }), "ActionHistoryFilterSensitiveLog");
732
- var NotificationWithSubscribersFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
733
- ...obj,
734
- ...obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }
735
- }), "NotificationWithSubscribersFilterSensitiveLog");
736
- var CreateBudgetActionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
737
- ...obj,
738
- ...obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }
739
- }), "CreateBudgetActionRequestFilterSensitiveLog");
740
- var CreateNotificationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
741
- ...obj,
742
- ...obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }
743
- }), "CreateNotificationRequestFilterSensitiveLog");
744
- var CreateSubscriberRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
745
- ...obj,
746
- ...obj.Subscriber && { Subscriber: SubscriberFilterSensitiveLog(obj.Subscriber) }
747
- }), "CreateSubscriberRequestFilterSensitiveLog");
748
- var DeleteBudgetActionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
749
- ...obj,
750
- ...obj.Action && { Action: ActionFilterSensitiveLog(obj.Action) }
751
- }), "DeleteBudgetActionResponseFilterSensitiveLog");
752
- var DeleteSubscriberRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
753
- ...obj,
754
- ...obj.Subscriber && { Subscriber: SubscriberFilterSensitiveLog(obj.Subscriber) }
755
- }), "DeleteSubscriberRequestFilterSensitiveLog");
756
- var DescribeBudgetActionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
757
- ...obj,
758
- ...obj.Action && { Action: ActionFilterSensitiveLog(obj.Action) }
759
- }), "DescribeBudgetActionResponseFilterSensitiveLog");
760
- var DescribeBudgetActionHistoriesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
761
- ...obj
762
- }), "DescribeBudgetActionHistoriesResponseFilterSensitiveLog");
763
- var DescribeBudgetActionsForAccountResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
764
- ...obj
765
- }), "DescribeBudgetActionsForAccountResponseFilterSensitiveLog");
766
- var DescribeBudgetActionsForBudgetResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
767
- ...obj
768
- }), "DescribeBudgetActionsForBudgetResponseFilterSensitiveLog");
769
- var DescribeSubscribersForNotificationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
770
- ...obj,
771
- ...obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }
772
- }), "DescribeSubscribersForNotificationResponseFilterSensitiveLog");
773
- var UpdateBudgetActionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
774
- ...obj,
775
- ...obj.Subscribers && { Subscribers: obj.Subscribers.map((item) => SubscriberFilterSensitiveLog(item)) }
776
- }), "UpdateBudgetActionRequestFilterSensitiveLog");
777
- var UpdateBudgetActionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
778
- ...obj,
779
- ...obj.OldAction && { OldAction: ActionFilterSensitiveLog(obj.OldAction) },
780
- ...obj.NewAction && { NewAction: ActionFilterSensitiveLog(obj.NewAction) }
781
- }), "UpdateBudgetActionResponseFilterSensitiveLog");
782
- var UpdateSubscriberRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
783
- ...obj,
784
- ...obj.OldSubscriber && { OldSubscriber: SubscriberFilterSensitiveLog(obj.OldSubscriber) },
785
- ...obj.NewSubscriber && { NewSubscriber: SubscriberFilterSensitiveLog(obj.NewSubscriber) }
786
- }), "UpdateSubscriberRequestFilterSensitiveLog");
787
- var CreateBudgetRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
788
- ...obj
789
- }), "CreateBudgetRequestFilterSensitiveLog");
790
-
791
- // src/protocols/Aws_json1_1.ts
792
- var import_core2 = require("@aws-sdk/core");
793
-
794
-
795
- var se_CreateBudgetCommand = /* @__PURE__ */ __name(async (input, context) => {
796
- const headers = sharedHeaders("CreateBudget");
797
- let body;
798
- body = JSON.stringify(se_CreateBudgetRequest(input, context));
799
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
800
- }, "se_CreateBudgetCommand");
801
- var se_CreateBudgetActionCommand = /* @__PURE__ */ __name(async (input, context) => {
802
- const headers = sharedHeaders("CreateBudgetAction");
803
- let body;
804
- body = JSON.stringify(se_CreateBudgetActionRequest(input, context));
805
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
806
- }, "se_CreateBudgetActionCommand");
807
- var se_CreateNotificationCommand = /* @__PURE__ */ __name(async (input, context) => {
808
- const headers = sharedHeaders("CreateNotification");
809
- let body;
810
- body = JSON.stringify(se_CreateNotificationRequest(input, context));
811
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
812
- }, "se_CreateNotificationCommand");
813
- var se_CreateSubscriberCommand = /* @__PURE__ */ __name(async (input, context) => {
814
- const headers = sharedHeaders("CreateSubscriber");
815
- let body;
816
- body = JSON.stringify(se_CreateSubscriberRequest(input, context));
817
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
818
- }, "se_CreateSubscriberCommand");
819
- var se_DeleteBudgetCommand = /* @__PURE__ */ __name(async (input, context) => {
820
- const headers = sharedHeaders("DeleteBudget");
821
- let body;
822
- body = JSON.stringify((0, import_smithy_client._json)(input));
823
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
824
- }, "se_DeleteBudgetCommand");
825
- var se_DeleteBudgetActionCommand = /* @__PURE__ */ __name(async (input, context) => {
826
- const headers = sharedHeaders("DeleteBudgetAction");
827
- let body;
828
- body = JSON.stringify((0, import_smithy_client._json)(input));
829
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
830
- }, "se_DeleteBudgetActionCommand");
831
- var se_DeleteNotificationCommand = /* @__PURE__ */ __name(async (input, context) => {
832
- const headers = sharedHeaders("DeleteNotification");
833
- let body;
834
- body = JSON.stringify(se_DeleteNotificationRequest(input, context));
835
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
836
- }, "se_DeleteNotificationCommand");
837
- var se_DeleteSubscriberCommand = /* @__PURE__ */ __name(async (input, context) => {
838
- const headers = sharedHeaders("DeleteSubscriber");
839
- let body;
840
- body = JSON.stringify(se_DeleteSubscriberRequest(input, context));
841
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
842
- }, "se_DeleteSubscriberCommand");
843
- var se_DescribeBudgetCommand = /* @__PURE__ */ __name(async (input, context) => {
844
- const headers = sharedHeaders("DescribeBudget");
845
- let body;
846
- body = JSON.stringify((0, import_smithy_client._json)(input));
847
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
848
- }, "se_DescribeBudgetCommand");
849
- var se_DescribeBudgetActionCommand = /* @__PURE__ */ __name(async (input, context) => {
850
- const headers = sharedHeaders("DescribeBudgetAction");
851
- let body;
852
- body = JSON.stringify((0, import_smithy_client._json)(input));
853
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
854
- }, "se_DescribeBudgetActionCommand");
855
- var se_DescribeBudgetActionHistoriesCommand = /* @__PURE__ */ __name(async (input, context) => {
856
- const headers = sharedHeaders("DescribeBudgetActionHistories");
857
- let body;
858
- body = JSON.stringify(se_DescribeBudgetActionHistoriesRequest(input, context));
859
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
860
- }, "se_DescribeBudgetActionHistoriesCommand");
861
- var se_DescribeBudgetActionsForAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
862
- const headers = sharedHeaders("DescribeBudgetActionsForAccount");
863
- let body;
864
- body = JSON.stringify((0, import_smithy_client._json)(input));
865
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
866
- }, "se_DescribeBudgetActionsForAccountCommand");
867
- var se_DescribeBudgetActionsForBudgetCommand = /* @__PURE__ */ __name(async (input, context) => {
868
- const headers = sharedHeaders("DescribeBudgetActionsForBudget");
869
- let body;
870
- body = JSON.stringify((0, import_smithy_client._json)(input));
871
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
872
- }, "se_DescribeBudgetActionsForBudgetCommand");
873
- var se_DescribeBudgetNotificationsForAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
874
- const headers = sharedHeaders("DescribeBudgetNotificationsForAccount");
875
- let body;
876
- body = JSON.stringify((0, import_smithy_client._json)(input));
877
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
878
- }, "se_DescribeBudgetNotificationsForAccountCommand");
879
- var se_DescribeBudgetPerformanceHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
880
- const headers = sharedHeaders("DescribeBudgetPerformanceHistory");
881
- let body;
882
- body = JSON.stringify(se_DescribeBudgetPerformanceHistoryRequest(input, context));
883
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
884
- }, "se_DescribeBudgetPerformanceHistoryCommand");
885
- var se_DescribeBudgetsCommand = /* @__PURE__ */ __name(async (input, context) => {
886
- const headers = sharedHeaders("DescribeBudgets");
887
- let body;
888
- body = JSON.stringify((0, import_smithy_client._json)(input));
889
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
890
- }, "se_DescribeBudgetsCommand");
891
- var se_DescribeNotificationsForBudgetCommand = /* @__PURE__ */ __name(async (input, context) => {
892
- const headers = sharedHeaders("DescribeNotificationsForBudget");
893
- let body;
894
- body = JSON.stringify((0, import_smithy_client._json)(input));
895
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
896
- }, "se_DescribeNotificationsForBudgetCommand");
897
- var se_DescribeSubscribersForNotificationCommand = /* @__PURE__ */ __name(async (input, context) => {
898
- const headers = sharedHeaders("DescribeSubscribersForNotification");
899
- let body;
900
- body = JSON.stringify(se_DescribeSubscribersForNotificationRequest(input, context));
901
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
902
- }, "se_DescribeSubscribersForNotificationCommand");
903
- var se_ExecuteBudgetActionCommand = /* @__PURE__ */ __name(async (input, context) => {
904
- const headers = sharedHeaders("ExecuteBudgetAction");
905
- let body;
906
- body = JSON.stringify((0, import_smithy_client._json)(input));
907
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
908
- }, "se_ExecuteBudgetActionCommand");
909
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
910
- const headers = sharedHeaders("ListTagsForResource");
911
- let body;
912
- body = JSON.stringify((0, import_smithy_client._json)(input));
913
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
914
- }, "se_ListTagsForResourceCommand");
915
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
916
- const headers = sharedHeaders("TagResource");
917
- let body;
918
- body = JSON.stringify((0, import_smithy_client._json)(input));
919
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
920
- }, "se_TagResourceCommand");
921
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
922
- const headers = sharedHeaders("UntagResource");
923
- let body;
924
- body = JSON.stringify((0, import_smithy_client._json)(input));
925
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
926
- }, "se_UntagResourceCommand");
927
- var se_UpdateBudgetCommand = /* @__PURE__ */ __name(async (input, context) => {
928
- const headers = sharedHeaders("UpdateBudget");
929
- let body;
930
- body = JSON.stringify(se_UpdateBudgetRequest(input, context));
931
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
932
- }, "se_UpdateBudgetCommand");
933
- var se_UpdateBudgetActionCommand = /* @__PURE__ */ __name(async (input, context) => {
934
- const headers = sharedHeaders("UpdateBudgetAction");
935
- let body;
936
- body = JSON.stringify(se_UpdateBudgetActionRequest(input, context));
937
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
938
- }, "se_UpdateBudgetActionCommand");
939
- var se_UpdateNotificationCommand = /* @__PURE__ */ __name(async (input, context) => {
940
- const headers = sharedHeaders("UpdateNotification");
941
- let body;
942
- body = JSON.stringify(se_UpdateNotificationRequest(input, context));
943
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
944
- }, "se_UpdateNotificationCommand");
945
- var se_UpdateSubscriberCommand = /* @__PURE__ */ __name(async (input, context) => {
946
- const headers = sharedHeaders("UpdateSubscriber");
947
- let body;
948
- body = JSON.stringify(se_UpdateSubscriberRequest(input, context));
949
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
950
- }, "se_UpdateSubscriberCommand");
951
- var de_CreateBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
952
- if (output.statusCode >= 300) {
953
- return de_CommandError(output, context);
954
- }
955
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
956
- let contents = {};
957
- contents = (0, import_smithy_client._json)(data);
958
- const response = {
959
- $metadata: deserializeMetadata(output),
960
- ...contents
961
- };
962
- return response;
963
- }, "de_CreateBudgetCommand");
964
- var de_CreateBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
965
- if (output.statusCode >= 300) {
966
- return de_CommandError(output, context);
967
- }
968
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
969
- let contents = {};
970
- contents = (0, import_smithy_client._json)(data);
971
- const response = {
972
- $metadata: deserializeMetadata(output),
973
- ...contents
974
- };
975
- return response;
976
- }, "de_CreateBudgetActionCommand");
977
- var de_CreateNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
978
- if (output.statusCode >= 300) {
979
- return de_CommandError(output, context);
980
- }
981
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
982
- let contents = {};
983
- contents = (0, import_smithy_client._json)(data);
984
- const response = {
985
- $metadata: deserializeMetadata(output),
986
- ...contents
987
- };
988
- return response;
989
- }, "de_CreateNotificationCommand");
990
- var de_CreateSubscriberCommand = /* @__PURE__ */ __name(async (output, context) => {
991
- if (output.statusCode >= 300) {
992
- return de_CommandError(output, context);
993
- }
994
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
995
- let contents = {};
996
- contents = (0, import_smithy_client._json)(data);
997
- const response = {
998
- $metadata: deserializeMetadata(output),
999
- ...contents
1000
- };
1001
- return response;
1002
- }, "de_CreateSubscriberCommand");
1003
- var de_DeleteBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
1004
- if (output.statusCode >= 300) {
1005
- return de_CommandError(output, context);
1006
- }
1007
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1008
- let contents = {};
1009
- contents = (0, import_smithy_client._json)(data);
1010
- const response = {
1011
- $metadata: deserializeMetadata(output),
1012
- ...contents
1013
- };
1014
- return response;
1015
- }, "de_DeleteBudgetCommand");
1016
- var de_DeleteBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
1017
- if (output.statusCode >= 300) {
1018
- return de_CommandError(output, context);
1019
- }
1020
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1021
- let contents = {};
1022
- contents = de_DeleteBudgetActionResponse(data, context);
1023
- const response = {
1024
- $metadata: deserializeMetadata(output),
1025
- ...contents
1026
- };
1027
- return response;
1028
- }, "de_DeleteBudgetActionCommand");
1029
- var de_DeleteNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
1030
- if (output.statusCode >= 300) {
1031
- return de_CommandError(output, context);
1032
- }
1033
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1034
- let contents = {};
1035
- contents = (0, import_smithy_client._json)(data);
1036
- const response = {
1037
- $metadata: deserializeMetadata(output),
1038
- ...contents
1039
- };
1040
- return response;
1041
- }, "de_DeleteNotificationCommand");
1042
- var de_DeleteSubscriberCommand = /* @__PURE__ */ __name(async (output, context) => {
1043
- if (output.statusCode >= 300) {
1044
- return de_CommandError(output, context);
1045
- }
1046
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1047
- let contents = {};
1048
- contents = (0, import_smithy_client._json)(data);
1049
- const response = {
1050
- $metadata: deserializeMetadata(output),
1051
- ...contents
1052
- };
1053
- return response;
1054
- }, "de_DeleteSubscriberCommand");
1055
- var de_DescribeBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
1056
- if (output.statusCode >= 300) {
1057
- return de_CommandError(output, context);
1058
- }
1059
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1060
- let contents = {};
1061
- contents = de_DescribeBudgetResponse(data, context);
1062
- const response = {
1063
- $metadata: deserializeMetadata(output),
1064
- ...contents
1065
- };
1066
- return response;
1067
- }, "de_DescribeBudgetCommand");
1068
- var de_DescribeBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
1069
- if (output.statusCode >= 300) {
1070
- return de_CommandError(output, context);
1071
- }
1072
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1073
- let contents = {};
1074
- contents = de_DescribeBudgetActionResponse(data, context);
1075
- const response = {
1076
- $metadata: deserializeMetadata(output),
1077
- ...contents
1078
- };
1079
- return response;
1080
- }, "de_DescribeBudgetActionCommand");
1081
- var de_DescribeBudgetActionHistoriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1082
- if (output.statusCode >= 300) {
1083
- return de_CommandError(output, context);
1084
- }
1085
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1086
- let contents = {};
1087
- contents = de_DescribeBudgetActionHistoriesResponse(data, context);
1088
- const response = {
1089
- $metadata: deserializeMetadata(output),
1090
- ...contents
1091
- };
1092
- return response;
1093
- }, "de_DescribeBudgetActionHistoriesCommand");
1094
- var de_DescribeBudgetActionsForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1095
- if (output.statusCode >= 300) {
1096
- return de_CommandError(output, context);
1097
- }
1098
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1099
- let contents = {};
1100
- contents = de_DescribeBudgetActionsForAccountResponse(data, context);
1101
- const response = {
1102
- $metadata: deserializeMetadata(output),
1103
- ...contents
1104
- };
1105
- return response;
1106
- }, "de_DescribeBudgetActionsForAccountCommand");
1107
- var de_DescribeBudgetActionsForBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
1108
- if (output.statusCode >= 300) {
1109
- return de_CommandError(output, context);
1110
- }
1111
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1112
- let contents = {};
1113
- contents = de_DescribeBudgetActionsForBudgetResponse(data, context);
1114
- const response = {
1115
- $metadata: deserializeMetadata(output),
1116
- ...contents
1117
- };
1118
- return response;
1119
- }, "de_DescribeBudgetActionsForBudgetCommand");
1120
- var de_DescribeBudgetNotificationsForAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1121
- if (output.statusCode >= 300) {
1122
- return de_CommandError(output, context);
1123
- }
1124
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1125
- let contents = {};
1126
- contents = de_DescribeBudgetNotificationsForAccountResponse(data, context);
1127
- const response = {
1128
- $metadata: deserializeMetadata(output),
1129
- ...contents
1130
- };
1131
- return response;
1132
- }, "de_DescribeBudgetNotificationsForAccountCommand");
1133
- var de_DescribeBudgetPerformanceHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1134
- if (output.statusCode >= 300) {
1135
- return de_CommandError(output, context);
1136
- }
1137
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1138
- let contents = {};
1139
- contents = de_DescribeBudgetPerformanceHistoryResponse(data, context);
1140
- const response = {
1141
- $metadata: deserializeMetadata(output),
1142
- ...contents
1143
- };
1144
- return response;
1145
- }, "de_DescribeBudgetPerformanceHistoryCommand");
1146
- var de_DescribeBudgetsCommand = /* @__PURE__ */ __name(async (output, context) => {
1147
- if (output.statusCode >= 300) {
1148
- return de_CommandError(output, context);
1149
- }
1150
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1151
- let contents = {};
1152
- contents = de_DescribeBudgetsResponse(data, context);
1153
- const response = {
1154
- $metadata: deserializeMetadata(output),
1155
- ...contents
1156
- };
1157
- return response;
1158
- }, "de_DescribeBudgetsCommand");
1159
- var de_DescribeNotificationsForBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
1160
- if (output.statusCode >= 300) {
1161
- return de_CommandError(output, context);
1162
- }
1163
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1164
- let contents = {};
1165
- contents = de_DescribeNotificationsForBudgetResponse(data, context);
1166
- const response = {
1167
- $metadata: deserializeMetadata(output),
1168
- ...contents
1169
- };
1170
- return response;
1171
- }, "de_DescribeNotificationsForBudgetCommand");
1172
- var de_DescribeSubscribersForNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
1173
- if (output.statusCode >= 300) {
1174
- return de_CommandError(output, context);
1175
- }
1176
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1177
- let contents = {};
1178
- contents = (0, import_smithy_client._json)(data);
1179
- const response = {
1180
- $metadata: deserializeMetadata(output),
1181
- ...contents
1182
- };
1183
- return response;
1184
- }, "de_DescribeSubscribersForNotificationCommand");
1185
- var de_ExecuteBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
1186
- if (output.statusCode >= 300) {
1187
- return de_CommandError(output, context);
1188
- }
1189
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1190
- let contents = {};
1191
- contents = (0, import_smithy_client._json)(data);
1192
- const response = {
1193
- $metadata: deserializeMetadata(output),
1194
- ...contents
1195
- };
1196
- return response;
1197
- }, "de_ExecuteBudgetActionCommand");
1198
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1199
- if (output.statusCode >= 300) {
1200
- return de_CommandError(output, context);
1201
- }
1202
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1203
- let contents = {};
1204
- contents = (0, import_smithy_client._json)(data);
1205
- const response = {
1206
- $metadata: deserializeMetadata(output),
1207
- ...contents
1208
- };
1209
- return response;
1210
- }, "de_ListTagsForResourceCommand");
1211
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1212
- if (output.statusCode >= 300) {
1213
- return de_CommandError(output, context);
1214
- }
1215
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1216
- let contents = {};
1217
- contents = (0, import_smithy_client._json)(data);
1218
- const response = {
1219
- $metadata: deserializeMetadata(output),
1220
- ...contents
1221
- };
1222
- return response;
1223
- }, "de_TagResourceCommand");
1224
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1225
- if (output.statusCode >= 300) {
1226
- return de_CommandError(output, context);
1227
- }
1228
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1229
- let contents = {};
1230
- contents = (0, import_smithy_client._json)(data);
1231
- const response = {
1232
- $metadata: deserializeMetadata(output),
1233
- ...contents
1234
- };
1235
- return response;
1236
- }, "de_UntagResourceCommand");
1237
- var de_UpdateBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
1238
- if (output.statusCode >= 300) {
1239
- return de_CommandError(output, context);
1240
- }
1241
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1242
- let contents = {};
1243
- contents = (0, import_smithy_client._json)(data);
1244
- const response = {
1245
- $metadata: deserializeMetadata(output),
1246
- ...contents
1247
- };
1248
- return response;
1249
- }, "de_UpdateBudgetCommand");
1250
- var de_UpdateBudgetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
1251
- if (output.statusCode >= 300) {
1252
- return de_CommandError(output, context);
1253
- }
1254
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1255
- let contents = {};
1256
- contents = de_UpdateBudgetActionResponse(data, context);
1257
- const response = {
1258
- $metadata: deserializeMetadata(output),
1259
- ...contents
1260
- };
1261
- return response;
1262
- }, "de_UpdateBudgetActionCommand");
1263
- var de_UpdateNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
1264
- if (output.statusCode >= 300) {
1265
- return de_CommandError(output, context);
1266
- }
1267
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1268
- let contents = {};
1269
- contents = (0, import_smithy_client._json)(data);
1270
- const response = {
1271
- $metadata: deserializeMetadata(output),
1272
- ...contents
1273
- };
1274
- return response;
1275
- }, "de_UpdateNotificationCommand");
1276
- var de_UpdateSubscriberCommand = /* @__PURE__ */ __name(async (output, context) => {
1277
- if (output.statusCode >= 300) {
1278
- return de_CommandError(output, context);
1279
- }
1280
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1281
- let contents = {};
1282
- contents = (0, import_smithy_client._json)(data);
1283
- const response = {
1284
- $metadata: deserializeMetadata(output),
1285
- ...contents
1286
- };
1287
- return response;
1288
- }, "de_UpdateSubscriberCommand");
1289
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1290
- const parsedOutput = {
1291
- ...output,
1292
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1293
- };
1294
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1295
- switch (errorCode) {
1296
- case "AccessDeniedException":
1297
- case "com.amazonaws.budgets#AccessDeniedException":
1298
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1299
- case "BillingViewHealthStatusException":
1300
- case "com.amazonaws.budgets#BillingViewHealthStatusException":
1301
- throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
1302
- case "CreationLimitExceededException":
1303
- case "com.amazonaws.budgets#CreationLimitExceededException":
1304
- throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
1305
- case "DuplicateRecordException":
1306
- case "com.amazonaws.budgets#DuplicateRecordException":
1307
- throw await de_DuplicateRecordExceptionRes(parsedOutput, context);
1308
- case "InternalErrorException":
1309
- case "com.amazonaws.budgets#InternalErrorException":
1310
- throw await de_InternalErrorExceptionRes(parsedOutput, context);
1311
- case "InvalidParameterException":
1312
- case "com.amazonaws.budgets#InvalidParameterException":
1313
- throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1314
- case "NotFoundException":
1315
- case "com.amazonaws.budgets#NotFoundException":
1316
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1317
- case "ServiceQuotaExceededException":
1318
- case "com.amazonaws.budgets#ServiceQuotaExceededException":
1319
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1320
- case "ThrottlingException":
1321
- case "com.amazonaws.budgets#ThrottlingException":
1322
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1323
- case "ResourceLockedException":
1324
- case "com.amazonaws.budgets#ResourceLockedException":
1325
- throw await de_ResourceLockedExceptionRes(parsedOutput, context);
1326
- case "InvalidNextTokenException":
1327
- case "com.amazonaws.budgets#InvalidNextTokenException":
1328
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1329
- case "ExpiredNextTokenException":
1330
- case "com.amazonaws.budgets#ExpiredNextTokenException":
1331
- throw await de_ExpiredNextTokenExceptionRes(parsedOutput, context);
1332
- default:
1333
- const parsedBody = parsedOutput.body;
1334
- return throwDefaultError({
1335
- output,
1336
- parsedBody,
1337
- errorCode
1338
- });
1339
- }
1340
- }, "de_CommandError");
1341
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1342
- const body = parsedOutput.body;
1343
- const deserialized = (0, import_smithy_client._json)(body);
1344
- const exception = new AccessDeniedException({
1345
- $metadata: deserializeMetadata(parsedOutput),
1346
- ...deserialized
1347
- });
1348
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1349
- }, "de_AccessDeniedExceptionRes");
1350
- var de_BillingViewHealthStatusExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1351
- const body = parsedOutput.body;
1352
- const deserialized = (0, import_smithy_client._json)(body);
1353
- const exception = new BillingViewHealthStatusException({
1354
- $metadata: deserializeMetadata(parsedOutput),
1355
- ...deserialized
1356
- });
1357
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1358
- }, "de_BillingViewHealthStatusExceptionRes");
1359
- var de_CreationLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1360
- const body = parsedOutput.body;
1361
- const deserialized = (0, import_smithy_client._json)(body);
1362
- const exception = new CreationLimitExceededException({
1363
- $metadata: deserializeMetadata(parsedOutput),
1364
- ...deserialized
1365
- });
1366
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1367
- }, "de_CreationLimitExceededExceptionRes");
1368
- var de_DuplicateRecordExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1369
- const body = parsedOutput.body;
1370
- const deserialized = (0, import_smithy_client._json)(body);
1371
- const exception = new DuplicateRecordException({
1372
- $metadata: deserializeMetadata(parsedOutput),
1373
- ...deserialized
1374
- });
1375
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1376
- }, "de_DuplicateRecordExceptionRes");
1377
- var de_ExpiredNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1378
- const body = parsedOutput.body;
1379
- const deserialized = (0, import_smithy_client._json)(body);
1380
- const exception = new ExpiredNextTokenException({
1381
- $metadata: deserializeMetadata(parsedOutput),
1382
- ...deserialized
1383
- });
1384
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1385
- }, "de_ExpiredNextTokenExceptionRes");
1386
- var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1387
- const body = parsedOutput.body;
1388
- const deserialized = (0, import_smithy_client._json)(body);
1389
- const exception = new InternalErrorException({
1390
- $metadata: deserializeMetadata(parsedOutput),
1391
- ...deserialized
1392
- });
1393
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1394
- }, "de_InternalErrorExceptionRes");
1395
- var de_InvalidNextTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1396
- const body = parsedOutput.body;
1397
- const deserialized = (0, import_smithy_client._json)(body);
1398
- const exception = new InvalidNextTokenException({
1399
- $metadata: deserializeMetadata(parsedOutput),
1400
- ...deserialized
1401
- });
1402
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1403
- }, "de_InvalidNextTokenExceptionRes");
1404
- var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1405
- const body = parsedOutput.body;
1406
- const deserialized = (0, import_smithy_client._json)(body);
1407
- const exception = new InvalidParameterException({
1408
- $metadata: deserializeMetadata(parsedOutput),
1409
- ...deserialized
1410
- });
1411
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1412
- }, "de_InvalidParameterExceptionRes");
1413
- var de_NotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1414
- const body = parsedOutput.body;
1415
- const deserialized = (0, import_smithy_client._json)(body);
1416
- const exception = new NotFoundException({
1417
- $metadata: deserializeMetadata(parsedOutput),
1418
- ...deserialized
1419
- });
1420
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1421
- }, "de_NotFoundExceptionRes");
1422
- var de_ResourceLockedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1423
- const body = parsedOutput.body;
1424
- const deserialized = (0, import_smithy_client._json)(body);
1425
- const exception = new ResourceLockedException({
1426
- $metadata: deserializeMetadata(parsedOutput),
1427
- ...deserialized
1428
- });
1429
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1430
- }, "de_ResourceLockedExceptionRes");
1431
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1432
- const body = parsedOutput.body;
1433
- const deserialized = (0, import_smithy_client._json)(body);
1434
- const exception = new ServiceQuotaExceededException({
1435
- $metadata: deserializeMetadata(parsedOutput),
1436
- ...deserialized
1437
- });
1438
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1439
- }, "de_ServiceQuotaExceededExceptionRes");
1440
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1441
- const body = parsedOutput.body;
1442
- const deserialized = (0, import_smithy_client._json)(body);
1443
- const exception = new ThrottlingException({
1444
- $metadata: deserializeMetadata(parsedOutput),
1445
- ...deserialized
1446
- });
1447
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1448
- }, "de_ThrottlingExceptionRes");
1449
- var se_ActionThreshold = /* @__PURE__ */ __name((input, context) => {
1450
- return (0, import_smithy_client.take)(input, {
1451
- ActionThresholdType: [],
1452
- ActionThresholdValue: import_smithy_client.serializeFloat
1453
- });
1454
- }, "se_ActionThreshold");
1455
- var se_AutoAdjustData = /* @__PURE__ */ __name((input, context) => {
1456
- return (0, import_smithy_client.take)(input, {
1457
- AutoAdjustType: [],
1458
- HistoricalOptions: import_smithy_client._json,
1459
- LastAutoAdjustTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "LastAutoAdjustTime")
1460
- });
1461
- }, "se_AutoAdjustData");
1462
- var se_Budget = /* @__PURE__ */ __name((input, context) => {
1463
- return (0, import_smithy_client.take)(input, {
1464
- AutoAdjustData: /* @__PURE__ */ __name((_) => se_AutoAdjustData(_, context), "AutoAdjustData"),
1465
- BillingViewArn: [],
1466
- BudgetLimit: import_smithy_client._json,
1467
- BudgetName: [],
1468
- BudgetType: [],
1469
- CalculatedSpend: import_smithy_client._json,
1470
- CostFilters: import_smithy_client._json,
1471
- CostTypes: import_smithy_client._json,
1472
- FilterExpression: /* @__PURE__ */ __name((_) => se_Expression(_, context), "FilterExpression"),
1473
- HealthStatus: /* @__PURE__ */ __name((_) => se_HealthStatus(_, context), "HealthStatus"),
1474
- LastUpdatedTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "LastUpdatedTime"),
1475
- Metrics: import_smithy_client._json,
1476
- PlannedBudgetLimits: import_smithy_client._json,
1477
- TimePeriod: /* @__PURE__ */ __name((_) => se_TimePeriod(_, context), "TimePeriod"),
1478
- TimeUnit: []
1479
- });
1480
- }, "se_Budget");
1481
- var se_CreateBudgetActionRequest = /* @__PURE__ */ __name((input, context) => {
1482
- return (0, import_smithy_client.take)(input, {
1483
- AccountId: [],
1484
- ActionThreshold: /* @__PURE__ */ __name((_) => se_ActionThreshold(_, context), "ActionThreshold"),
1485
- ActionType: [],
1486
- ApprovalModel: [],
1487
- BudgetName: [],
1488
- Definition: import_smithy_client._json,
1489
- ExecutionRoleArn: [],
1490
- NotificationType: [],
1491
- ResourceTags: import_smithy_client._json,
1492
- Subscribers: import_smithy_client._json
1493
- });
1494
- }, "se_CreateBudgetActionRequest");
1495
- var se_CreateBudgetRequest = /* @__PURE__ */ __name((input, context) => {
1496
- return (0, import_smithy_client.take)(input, {
1497
- AccountId: [],
1498
- Budget: /* @__PURE__ */ __name((_) => se_Budget(_, context), "Budget"),
1499
- NotificationsWithSubscribers: /* @__PURE__ */ __name((_) => se_NotificationWithSubscribersList(_, context), "NotificationsWithSubscribers"),
1500
- ResourceTags: import_smithy_client._json
1501
- });
1502
- }, "se_CreateBudgetRequest");
1503
- var se_CreateNotificationRequest = /* @__PURE__ */ __name((input, context) => {
1504
- return (0, import_smithy_client.take)(input, {
1505
- AccountId: [],
1506
- BudgetName: [],
1507
- Notification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "Notification"),
1508
- Subscribers: import_smithy_client._json
1509
- });
1510
- }, "se_CreateNotificationRequest");
1511
- var se_CreateSubscriberRequest = /* @__PURE__ */ __name((input, context) => {
1512
- return (0, import_smithy_client.take)(input, {
1513
- AccountId: [],
1514
- BudgetName: [],
1515
- Notification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "Notification"),
1516
- Subscriber: import_smithy_client._json
1517
- });
1518
- }, "se_CreateSubscriberRequest");
1519
- var se_DeleteNotificationRequest = /* @__PURE__ */ __name((input, context) => {
1520
- return (0, import_smithy_client.take)(input, {
1521
- AccountId: [],
1522
- BudgetName: [],
1523
- Notification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "Notification")
1524
- });
1525
- }, "se_DeleteNotificationRequest");
1526
- var se_DeleteSubscriberRequest = /* @__PURE__ */ __name((input, context) => {
1527
- return (0, import_smithy_client.take)(input, {
1528
- AccountId: [],
1529
- BudgetName: [],
1530
- Notification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "Notification"),
1531
- Subscriber: import_smithy_client._json
1532
- });
1533
- }, "se_DeleteSubscriberRequest");
1534
- var se_DescribeBudgetActionHistoriesRequest = /* @__PURE__ */ __name((input, context) => {
1535
- return (0, import_smithy_client.take)(input, {
1536
- AccountId: [],
1537
- ActionId: [],
1538
- BudgetName: [],
1539
- MaxResults: [],
1540
- NextToken: [],
1541
- TimePeriod: /* @__PURE__ */ __name((_) => se_TimePeriod(_, context), "TimePeriod")
1542
- });
1543
- }, "se_DescribeBudgetActionHistoriesRequest");
1544
- var se_DescribeBudgetPerformanceHistoryRequest = /* @__PURE__ */ __name((input, context) => {
1545
- return (0, import_smithy_client.take)(input, {
1546
- AccountId: [],
1547
- BudgetName: [],
1548
- MaxResults: [],
1549
- NextToken: [],
1550
- TimePeriod: /* @__PURE__ */ __name((_) => se_TimePeriod(_, context), "TimePeriod")
1551
- });
1552
- }, "se_DescribeBudgetPerformanceHistoryRequest");
1553
- var se_DescribeSubscribersForNotificationRequest = /* @__PURE__ */ __name((input, context) => {
1554
- return (0, import_smithy_client.take)(input, {
1555
- AccountId: [],
1556
- BudgetName: [],
1557
- MaxResults: [],
1558
- NextToken: [],
1559
- Notification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "Notification")
1560
- });
1561
- }, "se_DescribeSubscribersForNotificationRequest");
1562
- var se_Expression = /* @__PURE__ */ __name((input, context) => {
1563
- return (0, import_smithy_client.take)(input, {
1564
- And: /* @__PURE__ */ __name((_) => se_Expressions(_, context), "And"),
1565
- CostCategories: import_smithy_client._json,
1566
- Dimensions: import_smithy_client._json,
1567
- Not: /* @__PURE__ */ __name((_) => se_Expression(_, context), "Not"),
1568
- Or: /* @__PURE__ */ __name((_) => se_Expressions(_, context), "Or"),
1569
- Tags: import_smithy_client._json
1570
- });
1571
- }, "se_Expression");
1572
- var se_Expressions = /* @__PURE__ */ __name((input, context) => {
1573
- return input.filter((e) => e != null).map((entry) => {
1574
- return se_Expression(entry, context);
1575
- });
1576
- }, "se_Expressions");
1577
- var se_HealthStatus = /* @__PURE__ */ __name((input, context) => {
1578
- return (0, import_smithy_client.take)(input, {
1579
- LastUpdatedTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "LastUpdatedTime"),
1580
- Status: [],
1581
- StatusReason: []
1582
- });
1583
- }, "se_HealthStatus");
1584
- var se_Notification = /* @__PURE__ */ __name((input, context) => {
1585
- return (0, import_smithy_client.take)(input, {
1586
- ComparisonOperator: [],
1587
- NotificationState: [],
1588
- NotificationType: [],
1589
- Threshold: import_smithy_client.serializeFloat,
1590
- ThresholdType: []
1591
- });
1592
- }, "se_Notification");
1593
- var se_NotificationWithSubscribers = /* @__PURE__ */ __name((input, context) => {
1594
- return (0, import_smithy_client.take)(input, {
1595
- Notification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "Notification"),
1596
- Subscribers: import_smithy_client._json
1597
- });
1598
- }, "se_NotificationWithSubscribers");
1599
- var se_NotificationWithSubscribersList = /* @__PURE__ */ __name((input, context) => {
1600
- return input.filter((e) => e != null).map((entry) => {
1601
- return se_NotificationWithSubscribers(entry, context);
1602
- });
1603
- }, "se_NotificationWithSubscribersList");
1604
- var se_TimePeriod = /* @__PURE__ */ __name((input, context) => {
1605
- return (0, import_smithy_client.take)(input, {
1606
- End: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "End"),
1607
- Start: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Start")
1608
- });
1609
- }, "se_TimePeriod");
1610
- var se_UpdateBudgetActionRequest = /* @__PURE__ */ __name((input, context) => {
1611
- return (0, import_smithy_client.take)(input, {
1612
- AccountId: [],
1613
- ActionId: [],
1614
- ActionThreshold: /* @__PURE__ */ __name((_) => se_ActionThreshold(_, context), "ActionThreshold"),
1615
- ApprovalModel: [],
1616
- BudgetName: [],
1617
- Definition: import_smithy_client._json,
1618
- ExecutionRoleArn: [],
1619
- NotificationType: [],
1620
- Subscribers: import_smithy_client._json
1621
- });
1622
- }, "se_UpdateBudgetActionRequest");
1623
- var se_UpdateBudgetRequest = /* @__PURE__ */ __name((input, context) => {
1624
- return (0, import_smithy_client.take)(input, {
1625
- AccountId: [],
1626
- NewBudget: /* @__PURE__ */ __name((_) => se_Budget(_, context), "NewBudget")
1627
- });
1628
- }, "se_UpdateBudgetRequest");
1629
- var se_UpdateNotificationRequest = /* @__PURE__ */ __name((input, context) => {
1630
- return (0, import_smithy_client.take)(input, {
1631
- AccountId: [],
1632
- BudgetName: [],
1633
- NewNotification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "NewNotification"),
1634
- OldNotification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "OldNotification")
1635
- });
1636
- }, "se_UpdateNotificationRequest");
1637
- var se_UpdateSubscriberRequest = /* @__PURE__ */ __name((input, context) => {
1638
- return (0, import_smithy_client.take)(input, {
1639
- AccountId: [],
1640
- BudgetName: [],
1641
- NewSubscriber: import_smithy_client._json,
1642
- Notification: /* @__PURE__ */ __name((_) => se_Notification(_, context), "Notification"),
1643
- OldSubscriber: import_smithy_client._json
1644
- });
1645
- }, "se_UpdateSubscriberRequest");
1646
- var de_Action = /* @__PURE__ */ __name((output, context) => {
1647
- return (0, import_smithy_client.take)(output, {
1648
- ActionId: import_smithy_client.expectString,
1649
- ActionThreshold: /* @__PURE__ */ __name((_) => de_ActionThreshold(_, context), "ActionThreshold"),
1650
- ActionType: import_smithy_client.expectString,
1651
- ApprovalModel: import_smithy_client.expectString,
1652
- BudgetName: import_smithy_client.expectString,
1653
- Definition: import_smithy_client._json,
1654
- ExecutionRoleArn: import_smithy_client.expectString,
1655
- NotificationType: import_smithy_client.expectString,
1656
- Status: import_smithy_client.expectString,
1657
- Subscribers: import_smithy_client._json
1658
- });
1659
- }, "de_Action");
1660
- var de_ActionHistories = /* @__PURE__ */ __name((output, context) => {
1661
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1662
- return de_ActionHistory(entry, context);
1663
- });
1664
- return retVal;
1665
- }, "de_ActionHistories");
1666
- var de_ActionHistory = /* @__PURE__ */ __name((output, context) => {
1667
- return (0, import_smithy_client.take)(output, {
1668
- ActionHistoryDetails: /* @__PURE__ */ __name((_) => de_ActionHistoryDetails(_, context), "ActionHistoryDetails"),
1669
- EventType: import_smithy_client.expectString,
1670
- Status: import_smithy_client.expectString,
1671
- Timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Timestamp")
1672
- });
1673
- }, "de_ActionHistory");
1674
- var de_ActionHistoryDetails = /* @__PURE__ */ __name((output, context) => {
1675
- return (0, import_smithy_client.take)(output, {
1676
- Action: /* @__PURE__ */ __name((_) => de_Action(_, context), "Action"),
1677
- Message: import_smithy_client.expectString
1678
- });
1679
- }, "de_ActionHistoryDetails");
1680
- var de_Actions = /* @__PURE__ */ __name((output, context) => {
1681
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1682
- return de_Action(entry, context);
1683
- });
1684
- return retVal;
1685
- }, "de_Actions");
1686
- var de_ActionThreshold = /* @__PURE__ */ __name((output, context) => {
1687
- return (0, import_smithy_client.take)(output, {
1688
- ActionThresholdType: import_smithy_client.expectString,
1689
- ActionThresholdValue: import_smithy_client.limitedParseDouble
1690
- });
1691
- }, "de_ActionThreshold");
1692
- var de_AutoAdjustData = /* @__PURE__ */ __name((output, context) => {
1693
- return (0, import_smithy_client.take)(output, {
1694
- AutoAdjustType: import_smithy_client.expectString,
1695
- HistoricalOptions: import_smithy_client._json,
1696
- LastAutoAdjustTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastAutoAdjustTime")
1697
- });
1698
- }, "de_AutoAdjustData");
1699
- var de_Budget = /* @__PURE__ */ __name((output, context) => {
1700
- return (0, import_smithy_client.take)(output, {
1701
- AutoAdjustData: /* @__PURE__ */ __name((_) => de_AutoAdjustData(_, context), "AutoAdjustData"),
1702
- BillingViewArn: import_smithy_client.expectString,
1703
- BudgetLimit: import_smithy_client._json,
1704
- BudgetName: import_smithy_client.expectString,
1705
- BudgetType: import_smithy_client.expectString,
1706
- CalculatedSpend: import_smithy_client._json,
1707
- CostFilters: import_smithy_client._json,
1708
- CostTypes: import_smithy_client._json,
1709
- FilterExpression: /* @__PURE__ */ __name((_) => de_Expression(_, context), "FilterExpression"),
1710
- HealthStatus: /* @__PURE__ */ __name((_) => de_HealthStatus(_, context), "HealthStatus"),
1711
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1712
- Metrics: import_smithy_client._json,
1713
- PlannedBudgetLimits: import_smithy_client._json,
1714
- TimePeriod: /* @__PURE__ */ __name((_) => de_TimePeriod(_, context), "TimePeriod"),
1715
- TimeUnit: import_smithy_client.expectString
1716
- });
1717
- }, "de_Budget");
1718
- var de_BudgetedAndActualAmounts = /* @__PURE__ */ __name((output, context) => {
1719
- return (0, import_smithy_client.take)(output, {
1720
- ActualAmount: import_smithy_client._json,
1721
- BudgetedAmount: import_smithy_client._json,
1722
- TimePeriod: /* @__PURE__ */ __name((_) => de_TimePeriod(_, context), "TimePeriod")
1723
- });
1724
- }, "de_BudgetedAndActualAmounts");
1725
- var de_BudgetedAndActualAmountsList = /* @__PURE__ */ __name((output, context) => {
1726
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1727
- return de_BudgetedAndActualAmounts(entry, context);
1728
- });
1729
- return retVal;
1730
- }, "de_BudgetedAndActualAmountsList");
1731
- var de_BudgetNotificationsForAccount = /* @__PURE__ */ __name((output, context) => {
1732
- return (0, import_smithy_client.take)(output, {
1733
- BudgetName: import_smithy_client.expectString,
1734
- Notifications: /* @__PURE__ */ __name((_) => de_Notifications(_, context), "Notifications")
1735
- });
1736
- }, "de_BudgetNotificationsForAccount");
1737
- var de_BudgetNotificationsForAccountList = /* @__PURE__ */ __name((output, context) => {
1738
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1739
- return de_BudgetNotificationsForAccount(entry, context);
1740
- });
1741
- return retVal;
1742
- }, "de_BudgetNotificationsForAccountList");
1743
- var de_BudgetPerformanceHistory = /* @__PURE__ */ __name((output, context) => {
1744
- return (0, import_smithy_client.take)(output, {
1745
- BillingViewArn: import_smithy_client.expectString,
1746
- BudgetName: import_smithy_client.expectString,
1747
- BudgetType: import_smithy_client.expectString,
1748
- BudgetedAndActualAmountsList: /* @__PURE__ */ __name((_) => de_BudgetedAndActualAmountsList(_, context), "BudgetedAndActualAmountsList"),
1749
- CostFilters: import_smithy_client._json,
1750
- CostTypes: import_smithy_client._json,
1751
- TimeUnit: import_smithy_client.expectString
1752
- });
1753
- }, "de_BudgetPerformanceHistory");
1754
- var de_Budgets = /* @__PURE__ */ __name((output, context) => {
1755
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1756
- return de_Budget(entry, context);
1757
- });
1758
- return retVal;
1759
- }, "de_Budgets");
1760
- var de_DeleteBudgetActionResponse = /* @__PURE__ */ __name((output, context) => {
1761
- return (0, import_smithy_client.take)(output, {
1762
- AccountId: import_smithy_client.expectString,
1763
- Action: /* @__PURE__ */ __name((_) => de_Action(_, context), "Action"),
1764
- BudgetName: import_smithy_client.expectString
1765
- });
1766
- }, "de_DeleteBudgetActionResponse");
1767
- var de_DescribeBudgetActionHistoriesResponse = /* @__PURE__ */ __name((output, context) => {
1768
- return (0, import_smithy_client.take)(output, {
1769
- ActionHistories: /* @__PURE__ */ __name((_) => de_ActionHistories(_, context), "ActionHistories"),
1770
- NextToken: import_smithy_client.expectString
1771
- });
1772
- }, "de_DescribeBudgetActionHistoriesResponse");
1773
- var de_DescribeBudgetActionResponse = /* @__PURE__ */ __name((output, context) => {
1774
- return (0, import_smithy_client.take)(output, {
1775
- AccountId: import_smithy_client.expectString,
1776
- Action: /* @__PURE__ */ __name((_) => de_Action(_, context), "Action"),
1777
- BudgetName: import_smithy_client.expectString
1778
- });
1779
- }, "de_DescribeBudgetActionResponse");
1780
- var de_DescribeBudgetActionsForAccountResponse = /* @__PURE__ */ __name((output, context) => {
1781
- return (0, import_smithy_client.take)(output, {
1782
- Actions: /* @__PURE__ */ __name((_) => de_Actions(_, context), "Actions"),
1783
- NextToken: import_smithy_client.expectString
1784
- });
1785
- }, "de_DescribeBudgetActionsForAccountResponse");
1786
- var de_DescribeBudgetActionsForBudgetResponse = /* @__PURE__ */ __name((output, context) => {
1787
- return (0, import_smithy_client.take)(output, {
1788
- Actions: /* @__PURE__ */ __name((_) => de_Actions(_, context), "Actions"),
1789
- NextToken: import_smithy_client.expectString
1790
- });
1791
- }, "de_DescribeBudgetActionsForBudgetResponse");
1792
- var de_DescribeBudgetNotificationsForAccountResponse = /* @__PURE__ */ __name((output, context) => {
1793
- return (0, import_smithy_client.take)(output, {
1794
- BudgetNotificationsForAccount: /* @__PURE__ */ __name((_) => de_BudgetNotificationsForAccountList(_, context), "BudgetNotificationsForAccount"),
1795
- NextToken: import_smithy_client.expectString
1796
- });
1797
- }, "de_DescribeBudgetNotificationsForAccountResponse");
1798
- var de_DescribeBudgetPerformanceHistoryResponse = /* @__PURE__ */ __name((output, context) => {
1799
- return (0, import_smithy_client.take)(output, {
1800
- BudgetPerformanceHistory: /* @__PURE__ */ __name((_) => de_BudgetPerformanceHistory(_, context), "BudgetPerformanceHistory"),
1801
- NextToken: import_smithy_client.expectString
1802
- });
1803
- }, "de_DescribeBudgetPerformanceHistoryResponse");
1804
- var de_DescribeBudgetResponse = /* @__PURE__ */ __name((output, context) => {
1805
- return (0, import_smithy_client.take)(output, {
1806
- Budget: /* @__PURE__ */ __name((_) => de_Budget(_, context), "Budget")
1807
- });
1808
- }, "de_DescribeBudgetResponse");
1809
- var de_DescribeBudgetsResponse = /* @__PURE__ */ __name((output, context) => {
1810
- return (0, import_smithy_client.take)(output, {
1811
- Budgets: /* @__PURE__ */ __name((_) => de_Budgets(_, context), "Budgets"),
1812
- NextToken: import_smithy_client.expectString
1813
- });
1814
- }, "de_DescribeBudgetsResponse");
1815
- var de_DescribeNotificationsForBudgetResponse = /* @__PURE__ */ __name((output, context) => {
1816
- return (0, import_smithy_client.take)(output, {
1817
- NextToken: import_smithy_client.expectString,
1818
- Notifications: /* @__PURE__ */ __name((_) => de_Notifications(_, context), "Notifications")
1819
- });
1820
- }, "de_DescribeNotificationsForBudgetResponse");
1821
- var de_Expression = /* @__PURE__ */ __name((output, context) => {
1822
- return (0, import_smithy_client.take)(output, {
1823
- And: /* @__PURE__ */ __name((_) => de_Expressions(_, context), "And"),
1824
- CostCategories: import_smithy_client._json,
1825
- Dimensions: import_smithy_client._json,
1826
- Not: /* @__PURE__ */ __name((_) => de_Expression(_, context), "Not"),
1827
- Or: /* @__PURE__ */ __name((_) => de_Expressions(_, context), "Or"),
1828
- Tags: import_smithy_client._json
1829
- });
1830
- }, "de_Expression");
1831
- var de_Expressions = /* @__PURE__ */ __name((output, context) => {
1832
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1833
- return de_Expression(entry, context);
1834
- });
1835
- return retVal;
1836
- }, "de_Expressions");
1837
- var de_HealthStatus = /* @__PURE__ */ __name((output, context) => {
1838
- return (0, import_smithy_client.take)(output, {
1839
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1840
- Status: import_smithy_client.expectString,
1841
- StatusReason: import_smithy_client.expectString
1842
- });
1843
- }, "de_HealthStatus");
1844
- var de_Notification = /* @__PURE__ */ __name((output, context) => {
1845
- return (0, import_smithy_client.take)(output, {
1846
- ComparisonOperator: import_smithy_client.expectString,
1847
- NotificationState: import_smithy_client.expectString,
1848
- NotificationType: import_smithy_client.expectString,
1849
- Threshold: import_smithy_client.limitedParseDouble,
1850
- ThresholdType: import_smithy_client.expectString
1851
- });
1852
- }, "de_Notification");
1853
- var de_Notifications = /* @__PURE__ */ __name((output, context) => {
1854
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1855
- return de_Notification(entry, context);
1856
- });
1857
- return retVal;
1858
- }, "de_Notifications");
1859
- var de_TimePeriod = /* @__PURE__ */ __name((output, context) => {
1860
- return (0, import_smithy_client.take)(output, {
1861
- End: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "End"),
1862
- Start: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Start")
1863
- });
1864
- }, "de_TimePeriod");
1865
- var de_UpdateBudgetActionResponse = /* @__PURE__ */ __name((output, context) => {
1866
- return (0, import_smithy_client.take)(output, {
1867
- AccountId: import_smithy_client.expectString,
1868
- BudgetName: import_smithy_client.expectString,
1869
- NewAction: /* @__PURE__ */ __name((_) => de_Action(_, context), "NewAction"),
1870
- OldAction: /* @__PURE__ */ __name((_) => de_Action(_, context), "OldAction")
1871
- });
1872
- }, "de_UpdateBudgetActionResponse");
1873
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1874
- httpStatusCode: output.statusCode,
1875
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1876
- extendedRequestId: output.headers["x-amz-id-2"],
1877
- cfId: output.headers["x-amz-cf-id"]
1878
- }), "deserializeMetadata");
1879
- var throwDefaultError = (0, import_smithy_client.withBaseException)(BudgetsServiceException);
1880
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1881
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1882
- const contents = {
1883
- protocol,
1884
- hostname,
1885
- port,
1886
- method: "POST",
1887
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1888
- headers
1889
- };
1890
- if (resolvedHostname !== void 0) {
1891
- contents.hostname = resolvedHostname;
1892
- }
1893
- if (body !== void 0) {
1894
- contents.body = body;
1895
- }
1896
- return new import_protocol_http.HttpRequest(contents);
1897
- }, "buildHttpRpcRequest");
1898
- function sharedHeaders(operation) {
1899
- return {
1900
- "content-type": "application/x-amz-json-1.1",
1901
- "x-amz-target": `AWSBudgetServiceGateway.${operation}`
1902
- };
1903
- }
1904
- __name(sharedHeaders, "sharedHeaders");
1905
-
1906
- // src/commands/CreateBudgetActionCommand.ts
1907
- var CreateBudgetActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1908
- return [
1909
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1910
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1911
- ];
1912
- }).s("AWSBudgetServiceGateway", "CreateBudgetAction", {}).n("BudgetsClient", "CreateBudgetActionCommand").f(CreateBudgetActionRequestFilterSensitiveLog, void 0).ser(se_CreateBudgetActionCommand).de(de_CreateBudgetActionCommand).build() {
1913
- static {
1914
- __name(this, "CreateBudgetActionCommand");
1915
- }
1162
+ const se_ActionThreshold = (input, context) => {
1163
+ return smithyClient.take(input, {
1164
+ ActionThresholdType: [],
1165
+ ActionThresholdValue: smithyClient.serializeFloat,
1166
+ });
1916
1167
  };
1917
-
1918
- // src/commands/CreateBudgetCommand.ts
1919
-
1920
-
1921
-
1922
- var CreateBudgetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1923
- return [
1924
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1925
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1926
- ];
1927
- }).s("AWSBudgetServiceGateway", "CreateBudget", {}).n("BudgetsClient", "CreateBudgetCommand").f(CreateBudgetRequestFilterSensitiveLog, void 0).ser(se_CreateBudgetCommand).de(de_CreateBudgetCommand).build() {
1928
- static {
1929
- __name(this, "CreateBudgetCommand");
1930
- }
1168
+ const se_AutoAdjustData = (input, context) => {
1169
+ return smithyClient.take(input, {
1170
+ AutoAdjustType: [],
1171
+ HistoricalOptions: smithyClient._json,
1172
+ LastAutoAdjustTime: (_) => _.getTime() / 1_000,
1173
+ });
1931
1174
  };
1932
-
1933
- // src/commands/CreateNotificationCommand.ts
1934
-
1935
-
1936
-
1937
- var CreateNotificationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1938
- return [
1939
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1940
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1941
- ];
1942
- }).s("AWSBudgetServiceGateway", "CreateNotification", {}).n("BudgetsClient", "CreateNotificationCommand").f(CreateNotificationRequestFilterSensitiveLog, void 0).ser(se_CreateNotificationCommand).de(de_CreateNotificationCommand).build() {
1943
- static {
1944
- __name(this, "CreateNotificationCommand");
1945
- }
1175
+ const se_Budget = (input, context) => {
1176
+ return smithyClient.take(input, {
1177
+ AutoAdjustData: (_) => se_AutoAdjustData(_),
1178
+ BillingViewArn: [],
1179
+ BudgetLimit: smithyClient._json,
1180
+ BudgetName: [],
1181
+ BudgetType: [],
1182
+ CalculatedSpend: smithyClient._json,
1183
+ CostFilters: smithyClient._json,
1184
+ CostTypes: smithyClient._json,
1185
+ FilterExpression: (_) => se_Expression(_),
1186
+ HealthStatus: (_) => se_HealthStatus(_),
1187
+ LastUpdatedTime: (_) => _.getTime() / 1_000,
1188
+ Metrics: smithyClient._json,
1189
+ PlannedBudgetLimits: smithyClient._json,
1190
+ TimePeriod: (_) => se_TimePeriod(_),
1191
+ TimeUnit: [],
1192
+ });
1946
1193
  };
1947
-
1948
- // src/commands/CreateSubscriberCommand.ts
1949
-
1950
-
1951
-
1952
- var CreateSubscriberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1953
- return [
1954
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1955
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1956
- ];
1957
- }).s("AWSBudgetServiceGateway", "CreateSubscriber", {}).n("BudgetsClient", "CreateSubscriberCommand").f(CreateSubscriberRequestFilterSensitiveLog, void 0).ser(se_CreateSubscriberCommand).de(de_CreateSubscriberCommand).build() {
1958
- static {
1959
- __name(this, "CreateSubscriberCommand");
1960
- }
1194
+ const se_CreateBudgetActionRequest = (input, context) => {
1195
+ return smithyClient.take(input, {
1196
+ AccountId: [],
1197
+ ActionThreshold: (_) => se_ActionThreshold(_),
1198
+ ActionType: [],
1199
+ ApprovalModel: [],
1200
+ BudgetName: [],
1201
+ Definition: smithyClient._json,
1202
+ ExecutionRoleArn: [],
1203
+ NotificationType: [],
1204
+ ResourceTags: smithyClient._json,
1205
+ Subscribers: smithyClient._json,
1206
+ });
1961
1207
  };
1962
-
1963
- // src/commands/DeleteBudgetActionCommand.ts
1964
-
1965
-
1966
-
1967
- var DeleteBudgetActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1968
- return [
1969
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1970
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1971
- ];
1972
- }).s("AWSBudgetServiceGateway", "DeleteBudgetAction", {}).n("BudgetsClient", "DeleteBudgetActionCommand").f(void 0, DeleteBudgetActionResponseFilterSensitiveLog).ser(se_DeleteBudgetActionCommand).de(de_DeleteBudgetActionCommand).build() {
1973
- static {
1974
- __name(this, "DeleteBudgetActionCommand");
1975
- }
1208
+ const se_CreateBudgetRequest = (input, context) => {
1209
+ return smithyClient.take(input, {
1210
+ AccountId: [],
1211
+ Budget: (_) => se_Budget(_),
1212
+ NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_),
1213
+ ResourceTags: smithyClient._json,
1214
+ });
1976
1215
  };
1977
-
1978
- // src/commands/DeleteBudgetCommand.ts
1979
-
1980
-
1981
-
1982
- var DeleteBudgetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1983
- return [
1984
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1985
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1986
- ];
1987
- }).s("AWSBudgetServiceGateway", "DeleteBudget", {}).n("BudgetsClient", "DeleteBudgetCommand").f(void 0, void 0).ser(se_DeleteBudgetCommand).de(de_DeleteBudgetCommand).build() {
1988
- static {
1989
- __name(this, "DeleteBudgetCommand");
1990
- }
1216
+ const se_CreateNotificationRequest = (input, context) => {
1217
+ return smithyClient.take(input, {
1218
+ AccountId: [],
1219
+ BudgetName: [],
1220
+ Notification: (_) => se_Notification(_),
1221
+ Subscribers: smithyClient._json,
1222
+ });
1991
1223
  };
1992
-
1993
- // src/commands/DeleteNotificationCommand.ts
1994
-
1995
-
1996
-
1997
- var DeleteNotificationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1998
- return [
1999
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2000
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2001
- ];
2002
- }).s("AWSBudgetServiceGateway", "DeleteNotification", {}).n("BudgetsClient", "DeleteNotificationCommand").f(void 0, void 0).ser(se_DeleteNotificationCommand).de(de_DeleteNotificationCommand).build() {
2003
- static {
2004
- __name(this, "DeleteNotificationCommand");
2005
- }
1224
+ const se_CreateSubscriberRequest = (input, context) => {
1225
+ return smithyClient.take(input, {
1226
+ AccountId: [],
1227
+ BudgetName: [],
1228
+ Notification: (_) => se_Notification(_),
1229
+ Subscriber: smithyClient._json,
1230
+ });
2006
1231
  };
2007
-
2008
- // src/commands/DeleteSubscriberCommand.ts
2009
-
2010
-
2011
-
2012
- var DeleteSubscriberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2013
- return [
2014
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2015
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2016
- ];
2017
- }).s("AWSBudgetServiceGateway", "DeleteSubscriber", {}).n("BudgetsClient", "DeleteSubscriberCommand").f(DeleteSubscriberRequestFilterSensitiveLog, void 0).ser(se_DeleteSubscriberCommand).de(de_DeleteSubscriberCommand).build() {
2018
- static {
2019
- __name(this, "DeleteSubscriberCommand");
2020
- }
1232
+ const se_DeleteNotificationRequest = (input, context) => {
1233
+ return smithyClient.take(input, {
1234
+ AccountId: [],
1235
+ BudgetName: [],
1236
+ Notification: (_) => se_Notification(_),
1237
+ });
2021
1238
  };
2022
-
2023
- // src/commands/DescribeBudgetActionCommand.ts
2024
-
2025
-
2026
-
2027
- var DescribeBudgetActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2028
- return [
2029
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2030
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2031
- ];
2032
- }).s("AWSBudgetServiceGateway", "DescribeBudgetAction", {}).n("BudgetsClient", "DescribeBudgetActionCommand").f(void 0, DescribeBudgetActionResponseFilterSensitiveLog).ser(se_DescribeBudgetActionCommand).de(de_DescribeBudgetActionCommand).build() {
2033
- static {
2034
- __name(this, "DescribeBudgetActionCommand");
2035
- }
1239
+ const se_DeleteSubscriberRequest = (input, context) => {
1240
+ return smithyClient.take(input, {
1241
+ AccountId: [],
1242
+ BudgetName: [],
1243
+ Notification: (_) => se_Notification(_),
1244
+ Subscriber: smithyClient._json,
1245
+ });
2036
1246
  };
2037
-
2038
- // src/commands/DescribeBudgetActionHistoriesCommand.ts
2039
-
2040
-
2041
-
2042
- var DescribeBudgetActionHistoriesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2043
- return [
2044
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2045
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2046
- ];
2047
- }).s("AWSBudgetServiceGateway", "DescribeBudgetActionHistories", {}).n("BudgetsClient", "DescribeBudgetActionHistoriesCommand").f(void 0, DescribeBudgetActionHistoriesResponseFilterSensitiveLog).ser(se_DescribeBudgetActionHistoriesCommand).de(de_DescribeBudgetActionHistoriesCommand).build() {
2048
- static {
2049
- __name(this, "DescribeBudgetActionHistoriesCommand");
2050
- }
1247
+ const se_DescribeBudgetActionHistoriesRequest = (input, context) => {
1248
+ return smithyClient.take(input, {
1249
+ AccountId: [],
1250
+ ActionId: [],
1251
+ BudgetName: [],
1252
+ MaxResults: [],
1253
+ NextToken: [],
1254
+ TimePeriod: (_) => se_TimePeriod(_),
1255
+ });
2051
1256
  };
2052
-
2053
- // src/commands/DescribeBudgetActionsForAccountCommand.ts
2054
-
2055
-
2056
-
2057
- var DescribeBudgetActionsForAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2058
- return [
2059
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2060
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2061
- ];
2062
- }).s("AWSBudgetServiceGateway", "DescribeBudgetActionsForAccount", {}).n("BudgetsClient", "DescribeBudgetActionsForAccountCommand").f(void 0, DescribeBudgetActionsForAccountResponseFilterSensitiveLog).ser(se_DescribeBudgetActionsForAccountCommand).de(de_DescribeBudgetActionsForAccountCommand).build() {
2063
- static {
2064
- __name(this, "DescribeBudgetActionsForAccountCommand");
2065
- }
1257
+ const se_DescribeBudgetPerformanceHistoryRequest = (input, context) => {
1258
+ return smithyClient.take(input, {
1259
+ AccountId: [],
1260
+ BudgetName: [],
1261
+ MaxResults: [],
1262
+ NextToken: [],
1263
+ TimePeriod: (_) => se_TimePeriod(_),
1264
+ });
2066
1265
  };
2067
-
2068
- // src/commands/DescribeBudgetActionsForBudgetCommand.ts
2069
-
2070
-
2071
-
2072
- var DescribeBudgetActionsForBudgetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2073
- return [
2074
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2075
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2076
- ];
2077
- }).s("AWSBudgetServiceGateway", "DescribeBudgetActionsForBudget", {}).n("BudgetsClient", "DescribeBudgetActionsForBudgetCommand").f(void 0, DescribeBudgetActionsForBudgetResponseFilterSensitiveLog).ser(se_DescribeBudgetActionsForBudgetCommand).de(de_DescribeBudgetActionsForBudgetCommand).build() {
2078
- static {
2079
- __name(this, "DescribeBudgetActionsForBudgetCommand");
2080
- }
1266
+ const se_DescribeSubscribersForNotificationRequest = (input, context) => {
1267
+ return smithyClient.take(input, {
1268
+ AccountId: [],
1269
+ BudgetName: [],
1270
+ MaxResults: [],
1271
+ NextToken: [],
1272
+ Notification: (_) => se_Notification(_),
1273
+ });
2081
1274
  };
2082
-
2083
- // src/commands/DescribeBudgetCommand.ts
2084
-
2085
-
2086
-
2087
- var DescribeBudgetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2088
- return [
2089
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2090
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2091
- ];
2092
- }).s("AWSBudgetServiceGateway", "DescribeBudget", {}).n("BudgetsClient", "DescribeBudgetCommand").f(void 0, void 0).ser(se_DescribeBudgetCommand).de(de_DescribeBudgetCommand).build() {
2093
- static {
2094
- __name(this, "DescribeBudgetCommand");
2095
- }
1275
+ const se_Expression = (input, context) => {
1276
+ return smithyClient.take(input, {
1277
+ And: (_) => se_Expressions(_),
1278
+ CostCategories: smithyClient._json,
1279
+ Dimensions: smithyClient._json,
1280
+ Not: (_) => se_Expression(_),
1281
+ Or: (_) => se_Expressions(_),
1282
+ Tags: smithyClient._json,
1283
+ });
2096
1284
  };
2097
-
2098
- // src/commands/DescribeBudgetNotificationsForAccountCommand.ts
2099
-
2100
-
2101
-
2102
- var DescribeBudgetNotificationsForAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2103
- return [
2104
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2105
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2106
- ];
2107
- }).s("AWSBudgetServiceGateway", "DescribeBudgetNotificationsForAccount", {}).n("BudgetsClient", "DescribeBudgetNotificationsForAccountCommand").f(void 0, void 0).ser(se_DescribeBudgetNotificationsForAccountCommand).de(de_DescribeBudgetNotificationsForAccountCommand).build() {
2108
- static {
2109
- __name(this, "DescribeBudgetNotificationsForAccountCommand");
2110
- }
1285
+ const se_Expressions = (input, context) => {
1286
+ return input
1287
+ .filter((e) => e != null)
1288
+ .map((entry) => {
1289
+ return se_Expression(entry);
1290
+ });
2111
1291
  };
2112
-
2113
- // src/commands/DescribeBudgetPerformanceHistoryCommand.ts
2114
-
2115
-
2116
-
2117
- var DescribeBudgetPerformanceHistoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2118
- return [
2119
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2120
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2121
- ];
2122
- }).s("AWSBudgetServiceGateway", "DescribeBudgetPerformanceHistory", {}).n("BudgetsClient", "DescribeBudgetPerformanceHistoryCommand").f(void 0, void 0).ser(se_DescribeBudgetPerformanceHistoryCommand).de(de_DescribeBudgetPerformanceHistoryCommand).build() {
2123
- static {
2124
- __name(this, "DescribeBudgetPerformanceHistoryCommand");
2125
- }
1292
+ const se_HealthStatus = (input, context) => {
1293
+ return smithyClient.take(input, {
1294
+ LastUpdatedTime: (_) => _.getTime() / 1_000,
1295
+ Status: [],
1296
+ StatusReason: [],
1297
+ });
2126
1298
  };
2127
-
2128
- // src/commands/DescribeBudgetsCommand.ts
2129
-
2130
-
2131
-
2132
- var DescribeBudgetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2133
- return [
2134
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2135
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2136
- ];
2137
- }).s("AWSBudgetServiceGateway", "DescribeBudgets", {}).n("BudgetsClient", "DescribeBudgetsCommand").f(void 0, void 0).ser(se_DescribeBudgetsCommand).de(de_DescribeBudgetsCommand).build() {
2138
- static {
2139
- __name(this, "DescribeBudgetsCommand");
2140
- }
1299
+ const se_Notification = (input, context) => {
1300
+ return smithyClient.take(input, {
1301
+ ComparisonOperator: [],
1302
+ NotificationState: [],
1303
+ NotificationType: [],
1304
+ Threshold: smithyClient.serializeFloat,
1305
+ ThresholdType: [],
1306
+ });
2141
1307
  };
2142
-
2143
- // src/commands/DescribeNotificationsForBudgetCommand.ts
2144
-
2145
-
2146
-
2147
- var DescribeNotificationsForBudgetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2148
- return [
2149
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2150
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2151
- ];
2152
- }).s("AWSBudgetServiceGateway", "DescribeNotificationsForBudget", {}).n("BudgetsClient", "DescribeNotificationsForBudgetCommand").f(void 0, void 0).ser(se_DescribeNotificationsForBudgetCommand).de(de_DescribeNotificationsForBudgetCommand).build() {
2153
- static {
2154
- __name(this, "DescribeNotificationsForBudgetCommand");
2155
- }
1308
+ const se_NotificationWithSubscribers = (input, context) => {
1309
+ return smithyClient.take(input, {
1310
+ Notification: (_) => se_Notification(_),
1311
+ Subscribers: smithyClient._json,
1312
+ });
2156
1313
  };
2157
-
2158
- // src/commands/DescribeSubscribersForNotificationCommand.ts
2159
-
2160
-
2161
-
2162
- var DescribeSubscribersForNotificationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2163
- return [
2164
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2165
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2166
- ];
2167
- }).s("AWSBudgetServiceGateway", "DescribeSubscribersForNotification", {}).n("BudgetsClient", "DescribeSubscribersForNotificationCommand").f(void 0, DescribeSubscribersForNotificationResponseFilterSensitiveLog).ser(se_DescribeSubscribersForNotificationCommand).de(de_DescribeSubscribersForNotificationCommand).build() {
2168
- static {
2169
- __name(this, "DescribeSubscribersForNotificationCommand");
2170
- }
1314
+ const se_NotificationWithSubscribersList = (input, context) => {
1315
+ return input
1316
+ .filter((e) => e != null)
1317
+ .map((entry) => {
1318
+ return se_NotificationWithSubscribers(entry);
1319
+ });
2171
1320
  };
2172
-
2173
- // src/commands/ExecuteBudgetActionCommand.ts
2174
-
2175
-
2176
-
2177
- var ExecuteBudgetActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2178
- return [
2179
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2180
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2181
- ];
2182
- }).s("AWSBudgetServiceGateway", "ExecuteBudgetAction", {}).n("BudgetsClient", "ExecuteBudgetActionCommand").f(void 0, void 0).ser(se_ExecuteBudgetActionCommand).de(de_ExecuteBudgetActionCommand).build() {
2183
- static {
2184
- __name(this, "ExecuteBudgetActionCommand");
2185
- }
1321
+ const se_TimePeriod = (input, context) => {
1322
+ return smithyClient.take(input, {
1323
+ End: (_) => _.getTime() / 1_000,
1324
+ Start: (_) => _.getTime() / 1_000,
1325
+ });
2186
1326
  };
2187
-
2188
- // src/commands/ListTagsForResourceCommand.ts
2189
-
2190
-
2191
-
2192
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2193
- return [
2194
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2195
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2196
- ];
2197
- }).s("AWSBudgetServiceGateway", "ListTagsForResource", {}).n("BudgetsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2198
- static {
2199
- __name(this, "ListTagsForResourceCommand");
2200
- }
1327
+ const se_UpdateBudgetActionRequest = (input, context) => {
1328
+ return smithyClient.take(input, {
1329
+ AccountId: [],
1330
+ ActionId: [],
1331
+ ActionThreshold: (_) => se_ActionThreshold(_),
1332
+ ApprovalModel: [],
1333
+ BudgetName: [],
1334
+ Definition: smithyClient._json,
1335
+ ExecutionRoleArn: [],
1336
+ NotificationType: [],
1337
+ Subscribers: smithyClient._json,
1338
+ });
2201
1339
  };
2202
-
2203
- // src/commands/TagResourceCommand.ts
2204
-
2205
-
2206
-
2207
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2208
- return [
2209
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2210
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2211
- ];
2212
- }).s("AWSBudgetServiceGateway", "TagResource", {}).n("BudgetsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2213
- static {
2214
- __name(this, "TagResourceCommand");
2215
- }
1340
+ const se_UpdateBudgetRequest = (input, context) => {
1341
+ return smithyClient.take(input, {
1342
+ AccountId: [],
1343
+ NewBudget: (_) => se_Budget(_),
1344
+ });
2216
1345
  };
1346
+ const se_UpdateNotificationRequest = (input, context) => {
1347
+ return smithyClient.take(input, {
1348
+ AccountId: [],
1349
+ BudgetName: [],
1350
+ NewNotification: (_) => se_Notification(_),
1351
+ OldNotification: (_) => se_Notification(_),
1352
+ });
1353
+ };
1354
+ const se_UpdateSubscriberRequest = (input, context) => {
1355
+ return smithyClient.take(input, {
1356
+ AccountId: [],
1357
+ BudgetName: [],
1358
+ NewSubscriber: smithyClient._json,
1359
+ Notification: (_) => se_Notification(_),
1360
+ OldSubscriber: smithyClient._json,
1361
+ });
1362
+ };
1363
+ const de_Action = (output, context) => {
1364
+ return smithyClient.take(output, {
1365
+ ActionId: smithyClient.expectString,
1366
+ ActionThreshold: (_) => de_ActionThreshold(_),
1367
+ ActionType: smithyClient.expectString,
1368
+ ApprovalModel: smithyClient.expectString,
1369
+ BudgetName: smithyClient.expectString,
1370
+ Definition: smithyClient._json,
1371
+ ExecutionRoleArn: smithyClient.expectString,
1372
+ NotificationType: smithyClient.expectString,
1373
+ Status: smithyClient.expectString,
1374
+ Subscribers: smithyClient._json,
1375
+ });
1376
+ };
1377
+ const de_ActionHistories = (output, context) => {
1378
+ const retVal = (output || [])
1379
+ .filter((e) => e != null)
1380
+ .map((entry) => {
1381
+ return de_ActionHistory(entry);
1382
+ });
1383
+ return retVal;
1384
+ };
1385
+ const de_ActionHistory = (output, context) => {
1386
+ return smithyClient.take(output, {
1387
+ ActionHistoryDetails: (_) => de_ActionHistoryDetails(_),
1388
+ EventType: smithyClient.expectString,
1389
+ Status: smithyClient.expectString,
1390
+ Timestamp: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1391
+ });
1392
+ };
1393
+ const de_ActionHistoryDetails = (output, context) => {
1394
+ return smithyClient.take(output, {
1395
+ Action: (_) => de_Action(_),
1396
+ Message: smithyClient.expectString,
1397
+ });
1398
+ };
1399
+ const de_Actions = (output, context) => {
1400
+ const retVal = (output || [])
1401
+ .filter((e) => e != null)
1402
+ .map((entry) => {
1403
+ return de_Action(entry);
1404
+ });
1405
+ return retVal;
1406
+ };
1407
+ const de_ActionThreshold = (output, context) => {
1408
+ return smithyClient.take(output, {
1409
+ ActionThresholdType: smithyClient.expectString,
1410
+ ActionThresholdValue: smithyClient.limitedParseDouble,
1411
+ });
1412
+ };
1413
+ const de_AutoAdjustData = (output, context) => {
1414
+ return smithyClient.take(output, {
1415
+ AutoAdjustType: smithyClient.expectString,
1416
+ HistoricalOptions: smithyClient._json,
1417
+ LastAutoAdjustTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1418
+ });
1419
+ };
1420
+ const de_Budget = (output, context) => {
1421
+ return smithyClient.take(output, {
1422
+ AutoAdjustData: (_) => de_AutoAdjustData(_),
1423
+ BillingViewArn: smithyClient.expectString,
1424
+ BudgetLimit: smithyClient._json,
1425
+ BudgetName: smithyClient.expectString,
1426
+ BudgetType: smithyClient.expectString,
1427
+ CalculatedSpend: smithyClient._json,
1428
+ CostFilters: smithyClient._json,
1429
+ CostTypes: smithyClient._json,
1430
+ FilterExpression: (_) => de_Expression(_),
1431
+ HealthStatus: (_) => de_HealthStatus(_),
1432
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1433
+ Metrics: smithyClient._json,
1434
+ PlannedBudgetLimits: smithyClient._json,
1435
+ TimePeriod: (_) => de_TimePeriod(_),
1436
+ TimeUnit: smithyClient.expectString,
1437
+ });
1438
+ };
1439
+ const de_BudgetedAndActualAmounts = (output, context) => {
1440
+ return smithyClient.take(output, {
1441
+ ActualAmount: smithyClient._json,
1442
+ BudgetedAmount: smithyClient._json,
1443
+ TimePeriod: (_) => de_TimePeriod(_),
1444
+ });
1445
+ };
1446
+ const de_BudgetedAndActualAmountsList = (output, context) => {
1447
+ const retVal = (output || [])
1448
+ .filter((e) => e != null)
1449
+ .map((entry) => {
1450
+ return de_BudgetedAndActualAmounts(entry);
1451
+ });
1452
+ return retVal;
1453
+ };
1454
+ const de_BudgetNotificationsForAccount = (output, context) => {
1455
+ return smithyClient.take(output, {
1456
+ BudgetName: smithyClient.expectString,
1457
+ Notifications: (_) => de_Notifications(_),
1458
+ });
1459
+ };
1460
+ const de_BudgetNotificationsForAccountList = (output, context) => {
1461
+ const retVal = (output || [])
1462
+ .filter((e) => e != null)
1463
+ .map((entry) => {
1464
+ return de_BudgetNotificationsForAccount(entry);
1465
+ });
1466
+ return retVal;
1467
+ };
1468
+ const de_BudgetPerformanceHistory = (output, context) => {
1469
+ return smithyClient.take(output, {
1470
+ BillingViewArn: smithyClient.expectString,
1471
+ BudgetName: smithyClient.expectString,
1472
+ BudgetType: smithyClient.expectString,
1473
+ BudgetedAndActualAmountsList: (_) => de_BudgetedAndActualAmountsList(_),
1474
+ CostFilters: smithyClient._json,
1475
+ CostTypes: smithyClient._json,
1476
+ TimeUnit: smithyClient.expectString,
1477
+ });
1478
+ };
1479
+ const de_Budgets = (output, context) => {
1480
+ const retVal = (output || [])
1481
+ .filter((e) => e != null)
1482
+ .map((entry) => {
1483
+ return de_Budget(entry);
1484
+ });
1485
+ return retVal;
1486
+ };
1487
+ const de_DeleteBudgetActionResponse = (output, context) => {
1488
+ return smithyClient.take(output, {
1489
+ AccountId: smithyClient.expectString,
1490
+ Action: (_) => de_Action(_),
1491
+ BudgetName: smithyClient.expectString,
1492
+ });
1493
+ };
1494
+ const de_DescribeBudgetActionHistoriesResponse = (output, context) => {
1495
+ return smithyClient.take(output, {
1496
+ ActionHistories: (_) => de_ActionHistories(_),
1497
+ NextToken: smithyClient.expectString,
1498
+ });
1499
+ };
1500
+ const de_DescribeBudgetActionResponse = (output, context) => {
1501
+ return smithyClient.take(output, {
1502
+ AccountId: smithyClient.expectString,
1503
+ Action: (_) => de_Action(_),
1504
+ BudgetName: smithyClient.expectString,
1505
+ });
1506
+ };
1507
+ const de_DescribeBudgetActionsForAccountResponse = (output, context) => {
1508
+ return smithyClient.take(output, {
1509
+ Actions: (_) => de_Actions(_),
1510
+ NextToken: smithyClient.expectString,
1511
+ });
1512
+ };
1513
+ const de_DescribeBudgetActionsForBudgetResponse = (output, context) => {
1514
+ return smithyClient.take(output, {
1515
+ Actions: (_) => de_Actions(_),
1516
+ NextToken: smithyClient.expectString,
1517
+ });
1518
+ };
1519
+ const de_DescribeBudgetNotificationsForAccountResponse = (output, context) => {
1520
+ return smithyClient.take(output, {
1521
+ BudgetNotificationsForAccount: (_) => de_BudgetNotificationsForAccountList(_),
1522
+ NextToken: smithyClient.expectString,
1523
+ });
1524
+ };
1525
+ const de_DescribeBudgetPerformanceHistoryResponse = (output, context) => {
1526
+ return smithyClient.take(output, {
1527
+ BudgetPerformanceHistory: (_) => de_BudgetPerformanceHistory(_),
1528
+ NextToken: smithyClient.expectString,
1529
+ });
1530
+ };
1531
+ const de_DescribeBudgetResponse = (output, context) => {
1532
+ return smithyClient.take(output, {
1533
+ Budget: (_) => de_Budget(_),
1534
+ });
1535
+ };
1536
+ const de_DescribeBudgetsResponse = (output, context) => {
1537
+ return smithyClient.take(output, {
1538
+ Budgets: (_) => de_Budgets(_),
1539
+ NextToken: smithyClient.expectString,
1540
+ });
1541
+ };
1542
+ const de_DescribeNotificationsForBudgetResponse = (output, context) => {
1543
+ return smithyClient.take(output, {
1544
+ NextToken: smithyClient.expectString,
1545
+ Notifications: (_) => de_Notifications(_),
1546
+ });
1547
+ };
1548
+ const de_Expression = (output, context) => {
1549
+ return smithyClient.take(output, {
1550
+ And: (_) => de_Expressions(_),
1551
+ CostCategories: smithyClient._json,
1552
+ Dimensions: smithyClient._json,
1553
+ Not: (_) => de_Expression(_),
1554
+ Or: (_) => de_Expressions(_),
1555
+ Tags: smithyClient._json,
1556
+ });
1557
+ };
1558
+ const de_Expressions = (output, context) => {
1559
+ const retVal = (output || [])
1560
+ .filter((e) => e != null)
1561
+ .map((entry) => {
1562
+ return de_Expression(entry);
1563
+ });
1564
+ return retVal;
1565
+ };
1566
+ const de_HealthStatus = (output, context) => {
1567
+ return smithyClient.take(output, {
1568
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1569
+ Status: smithyClient.expectString,
1570
+ StatusReason: smithyClient.expectString,
1571
+ });
1572
+ };
1573
+ const de_Notification = (output, context) => {
1574
+ return smithyClient.take(output, {
1575
+ ComparisonOperator: smithyClient.expectString,
1576
+ NotificationState: smithyClient.expectString,
1577
+ NotificationType: smithyClient.expectString,
1578
+ Threshold: smithyClient.limitedParseDouble,
1579
+ ThresholdType: smithyClient.expectString,
1580
+ });
1581
+ };
1582
+ const de_Notifications = (output, context) => {
1583
+ const retVal = (output || [])
1584
+ .filter((e) => e != null)
1585
+ .map((entry) => {
1586
+ return de_Notification(entry);
1587
+ });
1588
+ return retVal;
1589
+ };
1590
+ const de_TimePeriod = (output, context) => {
1591
+ return smithyClient.take(output, {
1592
+ End: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1593
+ Start: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1594
+ });
1595
+ };
1596
+ const de_UpdateBudgetActionResponse = (output, context) => {
1597
+ return smithyClient.take(output, {
1598
+ AccountId: smithyClient.expectString,
1599
+ BudgetName: smithyClient.expectString,
1600
+ NewAction: (_) => de_Action(_),
1601
+ OldAction: (_) => de_Action(_),
1602
+ });
1603
+ };
1604
+ const deserializeMetadata = (output) => ({
1605
+ httpStatusCode: output.statusCode,
1606
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1607
+ extendedRequestId: output.headers["x-amz-id-2"],
1608
+ cfId: output.headers["x-amz-cf-id"],
1609
+ });
1610
+ const throwDefaultError = smithyClient.withBaseException(BudgetsServiceException);
1611
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1612
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1613
+ const contents = {
1614
+ protocol,
1615
+ hostname,
1616
+ port,
1617
+ method: "POST",
1618
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1619
+ headers,
1620
+ };
1621
+ if (body !== undefined) {
1622
+ contents.body = body;
1623
+ }
1624
+ return new protocolHttp.HttpRequest(contents);
1625
+ };
1626
+ function sharedHeaders(operation) {
1627
+ return {
1628
+ "content-type": "application/x-amz-json-1.1",
1629
+ "x-amz-target": `AWSBudgetServiceGateway.${operation}`,
1630
+ };
1631
+ }
2217
1632
 
2218
- // src/commands/UntagResourceCommand.ts
2219
-
2220
-
1633
+ class CreateBudgetActionCommand extends smithyClient.Command
1634
+ .classBuilder()
1635
+ .ep(commonParams)
1636
+ .m(function (Command, cs, config, o) {
1637
+ return [
1638
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1639
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1640
+ ];
1641
+ })
1642
+ .s("AWSBudgetServiceGateway", "CreateBudgetAction", {})
1643
+ .n("BudgetsClient", "CreateBudgetActionCommand")
1644
+ .f(CreateBudgetActionRequestFilterSensitiveLog, void 0)
1645
+ .ser(se_CreateBudgetActionCommand)
1646
+ .de(de_CreateBudgetActionCommand)
1647
+ .build() {
1648
+ }
2221
1649
 
2222
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2223
- return [
2224
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2225
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2226
- ];
2227
- }).s("AWSBudgetServiceGateway", "UntagResource", {}).n("BudgetsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2228
- static {
2229
- __name(this, "UntagResourceCommand");
2230
- }
2231
- };
1650
+ class CreateBudgetCommand extends smithyClient.Command
1651
+ .classBuilder()
1652
+ .ep(commonParams)
1653
+ .m(function (Command, cs, config, o) {
1654
+ return [
1655
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1656
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1657
+ ];
1658
+ })
1659
+ .s("AWSBudgetServiceGateway", "CreateBudget", {})
1660
+ .n("BudgetsClient", "CreateBudgetCommand")
1661
+ .f(CreateBudgetRequestFilterSensitiveLog, void 0)
1662
+ .ser(se_CreateBudgetCommand)
1663
+ .de(de_CreateBudgetCommand)
1664
+ .build() {
1665
+ }
2232
1666
 
2233
- // src/commands/UpdateBudgetActionCommand.ts
1667
+ class CreateNotificationCommand extends smithyClient.Command
1668
+ .classBuilder()
1669
+ .ep(commonParams)
1670
+ .m(function (Command, cs, config, o) {
1671
+ return [
1672
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1673
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1674
+ ];
1675
+ })
1676
+ .s("AWSBudgetServiceGateway", "CreateNotification", {})
1677
+ .n("BudgetsClient", "CreateNotificationCommand")
1678
+ .f(CreateNotificationRequestFilterSensitiveLog, void 0)
1679
+ .ser(se_CreateNotificationCommand)
1680
+ .de(de_CreateNotificationCommand)
1681
+ .build() {
1682
+ }
2234
1683
 
1684
+ class CreateSubscriberCommand extends smithyClient.Command
1685
+ .classBuilder()
1686
+ .ep(commonParams)
1687
+ .m(function (Command, cs, config, o) {
1688
+ return [
1689
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1690
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1691
+ ];
1692
+ })
1693
+ .s("AWSBudgetServiceGateway", "CreateSubscriber", {})
1694
+ .n("BudgetsClient", "CreateSubscriberCommand")
1695
+ .f(CreateSubscriberRequestFilterSensitiveLog, void 0)
1696
+ .ser(se_CreateSubscriberCommand)
1697
+ .de(de_CreateSubscriberCommand)
1698
+ .build() {
1699
+ }
2235
1700
 
1701
+ class DeleteBudgetActionCommand extends smithyClient.Command
1702
+ .classBuilder()
1703
+ .ep(commonParams)
1704
+ .m(function (Command, cs, config, o) {
1705
+ return [
1706
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1707
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1708
+ ];
1709
+ })
1710
+ .s("AWSBudgetServiceGateway", "DeleteBudgetAction", {})
1711
+ .n("BudgetsClient", "DeleteBudgetActionCommand")
1712
+ .f(void 0, DeleteBudgetActionResponseFilterSensitiveLog)
1713
+ .ser(se_DeleteBudgetActionCommand)
1714
+ .de(de_DeleteBudgetActionCommand)
1715
+ .build() {
1716
+ }
2236
1717
 
2237
- var UpdateBudgetActionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2238
- return [
2239
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2240
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2241
- ];
2242
- }).s("AWSBudgetServiceGateway", "UpdateBudgetAction", {}).n("BudgetsClient", "UpdateBudgetActionCommand").f(UpdateBudgetActionRequestFilterSensitiveLog, UpdateBudgetActionResponseFilterSensitiveLog).ser(se_UpdateBudgetActionCommand).de(de_UpdateBudgetActionCommand).build() {
2243
- static {
2244
- __name(this, "UpdateBudgetActionCommand");
2245
- }
2246
- };
1718
+ class DeleteBudgetCommand extends smithyClient.Command
1719
+ .classBuilder()
1720
+ .ep(commonParams)
1721
+ .m(function (Command, cs, config, o) {
1722
+ return [
1723
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1724
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1725
+ ];
1726
+ })
1727
+ .s("AWSBudgetServiceGateway", "DeleteBudget", {})
1728
+ .n("BudgetsClient", "DeleteBudgetCommand")
1729
+ .f(void 0, void 0)
1730
+ .ser(se_DeleteBudgetCommand)
1731
+ .de(de_DeleteBudgetCommand)
1732
+ .build() {
1733
+ }
2247
1734
 
2248
- // src/commands/UpdateBudgetCommand.ts
1735
+ class DeleteNotificationCommand extends smithyClient.Command
1736
+ .classBuilder()
1737
+ .ep(commonParams)
1738
+ .m(function (Command, cs, config, o) {
1739
+ return [
1740
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1741
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1742
+ ];
1743
+ })
1744
+ .s("AWSBudgetServiceGateway", "DeleteNotification", {})
1745
+ .n("BudgetsClient", "DeleteNotificationCommand")
1746
+ .f(void 0, void 0)
1747
+ .ser(se_DeleteNotificationCommand)
1748
+ .de(de_DeleteNotificationCommand)
1749
+ .build() {
1750
+ }
2249
1751
 
1752
+ class DeleteSubscriberCommand extends smithyClient.Command
1753
+ .classBuilder()
1754
+ .ep(commonParams)
1755
+ .m(function (Command, cs, config, o) {
1756
+ return [
1757
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1758
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1759
+ ];
1760
+ })
1761
+ .s("AWSBudgetServiceGateway", "DeleteSubscriber", {})
1762
+ .n("BudgetsClient", "DeleteSubscriberCommand")
1763
+ .f(DeleteSubscriberRequestFilterSensitiveLog, void 0)
1764
+ .ser(se_DeleteSubscriberCommand)
1765
+ .de(de_DeleteSubscriberCommand)
1766
+ .build() {
1767
+ }
2250
1768
 
1769
+ class DescribeBudgetActionCommand extends smithyClient.Command
1770
+ .classBuilder()
1771
+ .ep(commonParams)
1772
+ .m(function (Command, cs, config, o) {
1773
+ return [
1774
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1775
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1776
+ ];
1777
+ })
1778
+ .s("AWSBudgetServiceGateway", "DescribeBudgetAction", {})
1779
+ .n("BudgetsClient", "DescribeBudgetActionCommand")
1780
+ .f(void 0, DescribeBudgetActionResponseFilterSensitiveLog)
1781
+ .ser(se_DescribeBudgetActionCommand)
1782
+ .de(de_DescribeBudgetActionCommand)
1783
+ .build() {
1784
+ }
2251
1785
 
2252
- var UpdateBudgetCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2253
- return [
2254
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2255
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2256
- ];
2257
- }).s("AWSBudgetServiceGateway", "UpdateBudget", {}).n("BudgetsClient", "UpdateBudgetCommand").f(void 0, void 0).ser(se_UpdateBudgetCommand).de(de_UpdateBudgetCommand).build() {
2258
- static {
2259
- __name(this, "UpdateBudgetCommand");
2260
- }
2261
- };
1786
+ class DescribeBudgetActionHistoriesCommand extends smithyClient.Command
1787
+ .classBuilder()
1788
+ .ep(commonParams)
1789
+ .m(function (Command, cs, config, o) {
1790
+ return [
1791
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1792
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1793
+ ];
1794
+ })
1795
+ .s("AWSBudgetServiceGateway", "DescribeBudgetActionHistories", {})
1796
+ .n("BudgetsClient", "DescribeBudgetActionHistoriesCommand")
1797
+ .f(void 0, DescribeBudgetActionHistoriesResponseFilterSensitiveLog)
1798
+ .ser(se_DescribeBudgetActionHistoriesCommand)
1799
+ .de(de_DescribeBudgetActionHistoriesCommand)
1800
+ .build() {
1801
+ }
2262
1802
 
2263
- // src/commands/UpdateNotificationCommand.ts
1803
+ class DescribeBudgetActionsForAccountCommand extends smithyClient.Command
1804
+ .classBuilder()
1805
+ .ep(commonParams)
1806
+ .m(function (Command, cs, config, o) {
1807
+ return [
1808
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1809
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1810
+ ];
1811
+ })
1812
+ .s("AWSBudgetServiceGateway", "DescribeBudgetActionsForAccount", {})
1813
+ .n("BudgetsClient", "DescribeBudgetActionsForAccountCommand")
1814
+ .f(void 0, DescribeBudgetActionsForAccountResponseFilterSensitiveLog)
1815
+ .ser(se_DescribeBudgetActionsForAccountCommand)
1816
+ .de(de_DescribeBudgetActionsForAccountCommand)
1817
+ .build() {
1818
+ }
2264
1819
 
1820
+ class DescribeBudgetActionsForBudgetCommand extends smithyClient.Command
1821
+ .classBuilder()
1822
+ .ep(commonParams)
1823
+ .m(function (Command, cs, config, o) {
1824
+ return [
1825
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1826
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1827
+ ];
1828
+ })
1829
+ .s("AWSBudgetServiceGateway", "DescribeBudgetActionsForBudget", {})
1830
+ .n("BudgetsClient", "DescribeBudgetActionsForBudgetCommand")
1831
+ .f(void 0, DescribeBudgetActionsForBudgetResponseFilterSensitiveLog)
1832
+ .ser(se_DescribeBudgetActionsForBudgetCommand)
1833
+ .de(de_DescribeBudgetActionsForBudgetCommand)
1834
+ .build() {
1835
+ }
2265
1836
 
1837
+ class DescribeBudgetCommand extends smithyClient.Command
1838
+ .classBuilder()
1839
+ .ep(commonParams)
1840
+ .m(function (Command, cs, config, o) {
1841
+ return [
1842
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1843
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1844
+ ];
1845
+ })
1846
+ .s("AWSBudgetServiceGateway", "DescribeBudget", {})
1847
+ .n("BudgetsClient", "DescribeBudgetCommand")
1848
+ .f(void 0, void 0)
1849
+ .ser(se_DescribeBudgetCommand)
1850
+ .de(de_DescribeBudgetCommand)
1851
+ .build() {
1852
+ }
2266
1853
 
2267
- var UpdateNotificationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2268
- return [
2269
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2270
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2271
- ];
2272
- }).s("AWSBudgetServiceGateway", "UpdateNotification", {}).n("BudgetsClient", "UpdateNotificationCommand").f(void 0, void 0).ser(se_UpdateNotificationCommand).de(de_UpdateNotificationCommand).build() {
2273
- static {
2274
- __name(this, "UpdateNotificationCommand");
2275
- }
2276
- };
1854
+ class DescribeBudgetNotificationsForAccountCommand extends smithyClient.Command
1855
+ .classBuilder()
1856
+ .ep(commonParams)
1857
+ .m(function (Command, cs, config, o) {
1858
+ return [
1859
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1860
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1861
+ ];
1862
+ })
1863
+ .s("AWSBudgetServiceGateway", "DescribeBudgetNotificationsForAccount", {})
1864
+ .n("BudgetsClient", "DescribeBudgetNotificationsForAccountCommand")
1865
+ .f(void 0, void 0)
1866
+ .ser(se_DescribeBudgetNotificationsForAccountCommand)
1867
+ .de(de_DescribeBudgetNotificationsForAccountCommand)
1868
+ .build() {
1869
+ }
2277
1870
 
2278
- // src/commands/UpdateSubscriberCommand.ts
1871
+ class DescribeBudgetPerformanceHistoryCommand extends smithyClient.Command
1872
+ .classBuilder()
1873
+ .ep(commonParams)
1874
+ .m(function (Command, cs, config, o) {
1875
+ return [
1876
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1877
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1878
+ ];
1879
+ })
1880
+ .s("AWSBudgetServiceGateway", "DescribeBudgetPerformanceHistory", {})
1881
+ .n("BudgetsClient", "DescribeBudgetPerformanceHistoryCommand")
1882
+ .f(void 0, void 0)
1883
+ .ser(se_DescribeBudgetPerformanceHistoryCommand)
1884
+ .de(de_DescribeBudgetPerformanceHistoryCommand)
1885
+ .build() {
1886
+ }
2279
1887
 
1888
+ class DescribeBudgetsCommand extends smithyClient.Command
1889
+ .classBuilder()
1890
+ .ep(commonParams)
1891
+ .m(function (Command, cs, config, o) {
1892
+ return [
1893
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1894
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1895
+ ];
1896
+ })
1897
+ .s("AWSBudgetServiceGateway", "DescribeBudgets", {})
1898
+ .n("BudgetsClient", "DescribeBudgetsCommand")
1899
+ .f(void 0, void 0)
1900
+ .ser(se_DescribeBudgetsCommand)
1901
+ .de(de_DescribeBudgetsCommand)
1902
+ .build() {
1903
+ }
2280
1904
 
1905
+ class DescribeNotificationsForBudgetCommand extends smithyClient.Command
1906
+ .classBuilder()
1907
+ .ep(commonParams)
1908
+ .m(function (Command, cs, config, o) {
1909
+ return [
1910
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1911
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1912
+ ];
1913
+ })
1914
+ .s("AWSBudgetServiceGateway", "DescribeNotificationsForBudget", {})
1915
+ .n("BudgetsClient", "DescribeNotificationsForBudgetCommand")
1916
+ .f(void 0, void 0)
1917
+ .ser(se_DescribeNotificationsForBudgetCommand)
1918
+ .de(de_DescribeNotificationsForBudgetCommand)
1919
+ .build() {
1920
+ }
2281
1921
 
2282
- var UpdateSubscriberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2283
- return [
2284
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2285
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2286
- ];
2287
- }).s("AWSBudgetServiceGateway", "UpdateSubscriber", {}).n("BudgetsClient", "UpdateSubscriberCommand").f(UpdateSubscriberRequestFilterSensitiveLog, void 0).ser(se_UpdateSubscriberCommand).de(de_UpdateSubscriberCommand).build() {
2288
- static {
2289
- __name(this, "UpdateSubscriberCommand");
2290
- }
2291
- };
1922
+ class DescribeSubscribersForNotificationCommand extends smithyClient.Command
1923
+ .classBuilder()
1924
+ .ep(commonParams)
1925
+ .m(function (Command, cs, config, o) {
1926
+ return [
1927
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1928
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1929
+ ];
1930
+ })
1931
+ .s("AWSBudgetServiceGateway", "DescribeSubscribersForNotification", {})
1932
+ .n("BudgetsClient", "DescribeSubscribersForNotificationCommand")
1933
+ .f(void 0, DescribeSubscribersForNotificationResponseFilterSensitiveLog)
1934
+ .ser(se_DescribeSubscribersForNotificationCommand)
1935
+ .de(de_DescribeSubscribersForNotificationCommand)
1936
+ .build() {
1937
+ }
2292
1938
 
2293
- // src/Budgets.ts
2294
- var commands = {
2295
- CreateBudgetCommand,
2296
- CreateBudgetActionCommand,
2297
- CreateNotificationCommand,
2298
- CreateSubscriberCommand,
2299
- DeleteBudgetCommand,
2300
- DeleteBudgetActionCommand,
2301
- DeleteNotificationCommand,
2302
- DeleteSubscriberCommand,
2303
- DescribeBudgetCommand,
2304
- DescribeBudgetActionCommand,
2305
- DescribeBudgetActionHistoriesCommand,
2306
- DescribeBudgetActionsForAccountCommand,
2307
- DescribeBudgetActionsForBudgetCommand,
2308
- DescribeBudgetNotificationsForAccountCommand,
2309
- DescribeBudgetPerformanceHistoryCommand,
2310
- DescribeBudgetsCommand,
2311
- DescribeNotificationsForBudgetCommand,
2312
- DescribeSubscribersForNotificationCommand,
2313
- ExecuteBudgetActionCommand,
2314
- ListTagsForResourceCommand,
2315
- TagResourceCommand,
2316
- UntagResourceCommand,
2317
- UpdateBudgetCommand,
2318
- UpdateBudgetActionCommand,
2319
- UpdateNotificationCommand,
2320
- UpdateSubscriberCommand
2321
- };
2322
- var Budgets = class extends BudgetsClient {
2323
- static {
2324
- __name(this, "Budgets");
2325
- }
2326
- };
2327
- (0, import_smithy_client.createAggregatedClient)(commands, Budgets);
1939
+ class ExecuteBudgetActionCommand extends smithyClient.Command
1940
+ .classBuilder()
1941
+ .ep(commonParams)
1942
+ .m(function (Command, cs, config, o) {
1943
+ return [
1944
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1945
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1946
+ ];
1947
+ })
1948
+ .s("AWSBudgetServiceGateway", "ExecuteBudgetAction", {})
1949
+ .n("BudgetsClient", "ExecuteBudgetActionCommand")
1950
+ .f(void 0, void 0)
1951
+ .ser(se_ExecuteBudgetActionCommand)
1952
+ .de(de_ExecuteBudgetActionCommand)
1953
+ .build() {
1954
+ }
2328
1955
 
2329
- // src/pagination/DescribeBudgetActionHistoriesPaginator.ts
1956
+ class ListTagsForResourceCommand extends smithyClient.Command
1957
+ .classBuilder()
1958
+ .ep(commonParams)
1959
+ .m(function (Command, cs, config, o) {
1960
+ return [
1961
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1962
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1963
+ ];
1964
+ })
1965
+ .s("AWSBudgetServiceGateway", "ListTagsForResource", {})
1966
+ .n("BudgetsClient", "ListTagsForResourceCommand")
1967
+ .f(void 0, void 0)
1968
+ .ser(se_ListTagsForResourceCommand)
1969
+ .de(de_ListTagsForResourceCommand)
1970
+ .build() {
1971
+ }
2330
1972
 
2331
- var paginateDescribeBudgetActionHistories = (0, import_core.createPaginator)(BudgetsClient, DescribeBudgetActionHistoriesCommand, "NextToken", "NextToken", "MaxResults");
1973
+ class TagResourceCommand extends smithyClient.Command
1974
+ .classBuilder()
1975
+ .ep(commonParams)
1976
+ .m(function (Command, cs, config, o) {
1977
+ return [
1978
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1979
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1980
+ ];
1981
+ })
1982
+ .s("AWSBudgetServiceGateway", "TagResource", {})
1983
+ .n("BudgetsClient", "TagResourceCommand")
1984
+ .f(void 0, void 0)
1985
+ .ser(se_TagResourceCommand)
1986
+ .de(de_TagResourceCommand)
1987
+ .build() {
1988
+ }
2332
1989
 
2333
- // src/pagination/DescribeBudgetActionsForAccountPaginator.ts
1990
+ class UntagResourceCommand extends smithyClient.Command
1991
+ .classBuilder()
1992
+ .ep(commonParams)
1993
+ .m(function (Command, cs, config, o) {
1994
+ return [
1995
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1996
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1997
+ ];
1998
+ })
1999
+ .s("AWSBudgetServiceGateway", "UntagResource", {})
2000
+ .n("BudgetsClient", "UntagResourceCommand")
2001
+ .f(void 0, void 0)
2002
+ .ser(se_UntagResourceCommand)
2003
+ .de(de_UntagResourceCommand)
2004
+ .build() {
2005
+ }
2334
2006
 
2335
- var paginateDescribeBudgetActionsForAccount = (0, import_core.createPaginator)(BudgetsClient, DescribeBudgetActionsForAccountCommand, "NextToken", "NextToken", "MaxResults");
2007
+ class UpdateBudgetActionCommand extends smithyClient.Command
2008
+ .classBuilder()
2009
+ .ep(commonParams)
2010
+ .m(function (Command, cs, config, o) {
2011
+ return [
2012
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2013
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2014
+ ];
2015
+ })
2016
+ .s("AWSBudgetServiceGateway", "UpdateBudgetAction", {})
2017
+ .n("BudgetsClient", "UpdateBudgetActionCommand")
2018
+ .f(UpdateBudgetActionRequestFilterSensitiveLog, UpdateBudgetActionResponseFilterSensitiveLog)
2019
+ .ser(se_UpdateBudgetActionCommand)
2020
+ .de(de_UpdateBudgetActionCommand)
2021
+ .build() {
2022
+ }
2336
2023
 
2337
- // src/pagination/DescribeBudgetActionsForBudgetPaginator.ts
2024
+ class UpdateBudgetCommand extends smithyClient.Command
2025
+ .classBuilder()
2026
+ .ep(commonParams)
2027
+ .m(function (Command, cs, config, o) {
2028
+ return [
2029
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2030
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2031
+ ];
2032
+ })
2033
+ .s("AWSBudgetServiceGateway", "UpdateBudget", {})
2034
+ .n("BudgetsClient", "UpdateBudgetCommand")
2035
+ .f(void 0, void 0)
2036
+ .ser(se_UpdateBudgetCommand)
2037
+ .de(de_UpdateBudgetCommand)
2038
+ .build() {
2039
+ }
2338
2040
 
2339
- var paginateDescribeBudgetActionsForBudget = (0, import_core.createPaginator)(BudgetsClient, DescribeBudgetActionsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
2041
+ class UpdateNotificationCommand extends smithyClient.Command
2042
+ .classBuilder()
2043
+ .ep(commonParams)
2044
+ .m(function (Command, cs, config, o) {
2045
+ return [
2046
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2047
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2048
+ ];
2049
+ })
2050
+ .s("AWSBudgetServiceGateway", "UpdateNotification", {})
2051
+ .n("BudgetsClient", "UpdateNotificationCommand")
2052
+ .f(void 0, void 0)
2053
+ .ser(se_UpdateNotificationCommand)
2054
+ .de(de_UpdateNotificationCommand)
2055
+ .build() {
2056
+ }
2340
2057
 
2341
- // src/pagination/DescribeBudgetNotificationsForAccountPaginator.ts
2058
+ class UpdateSubscriberCommand extends smithyClient.Command
2059
+ .classBuilder()
2060
+ .ep(commonParams)
2061
+ .m(function (Command, cs, config, o) {
2062
+ return [
2063
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
2064
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
2065
+ ];
2066
+ })
2067
+ .s("AWSBudgetServiceGateway", "UpdateSubscriber", {})
2068
+ .n("BudgetsClient", "UpdateSubscriberCommand")
2069
+ .f(UpdateSubscriberRequestFilterSensitiveLog, void 0)
2070
+ .ser(se_UpdateSubscriberCommand)
2071
+ .de(de_UpdateSubscriberCommand)
2072
+ .build() {
2073
+ }
2342
2074
 
2343
- var paginateDescribeBudgetNotificationsForAccount = (0, import_core.createPaginator)(BudgetsClient, DescribeBudgetNotificationsForAccountCommand, "NextToken", "NextToken", "MaxResults");
2075
+ const commands = {
2076
+ CreateBudgetCommand,
2077
+ CreateBudgetActionCommand,
2078
+ CreateNotificationCommand,
2079
+ CreateSubscriberCommand,
2080
+ DeleteBudgetCommand,
2081
+ DeleteBudgetActionCommand,
2082
+ DeleteNotificationCommand,
2083
+ DeleteSubscriberCommand,
2084
+ DescribeBudgetCommand,
2085
+ DescribeBudgetActionCommand,
2086
+ DescribeBudgetActionHistoriesCommand,
2087
+ DescribeBudgetActionsForAccountCommand,
2088
+ DescribeBudgetActionsForBudgetCommand,
2089
+ DescribeBudgetNotificationsForAccountCommand,
2090
+ DescribeBudgetPerformanceHistoryCommand,
2091
+ DescribeBudgetsCommand,
2092
+ DescribeNotificationsForBudgetCommand,
2093
+ DescribeSubscribersForNotificationCommand,
2094
+ ExecuteBudgetActionCommand,
2095
+ ListTagsForResourceCommand,
2096
+ TagResourceCommand,
2097
+ UntagResourceCommand,
2098
+ UpdateBudgetCommand,
2099
+ UpdateBudgetActionCommand,
2100
+ UpdateNotificationCommand,
2101
+ UpdateSubscriberCommand,
2102
+ };
2103
+ class Budgets extends BudgetsClient {
2104
+ }
2105
+ smithyClient.createAggregatedClient(commands, Budgets);
2344
2106
 
2345
- // src/pagination/DescribeBudgetPerformanceHistoryPaginator.ts
2107
+ const paginateDescribeBudgetActionHistories = core.createPaginator(BudgetsClient, DescribeBudgetActionHistoriesCommand, "NextToken", "NextToken", "MaxResults");
2346
2108
 
2347
- var paginateDescribeBudgetPerformanceHistory = (0, import_core.createPaginator)(BudgetsClient, DescribeBudgetPerformanceHistoryCommand, "NextToken", "NextToken", "MaxResults");
2109
+ const paginateDescribeBudgetActionsForAccount = core.createPaginator(BudgetsClient, DescribeBudgetActionsForAccountCommand, "NextToken", "NextToken", "MaxResults");
2348
2110
 
2349
- // src/pagination/DescribeBudgetsPaginator.ts
2111
+ const paginateDescribeBudgetActionsForBudget = core.createPaginator(BudgetsClient, DescribeBudgetActionsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
2350
2112
 
2351
- var paginateDescribeBudgets = (0, import_core.createPaginator)(BudgetsClient, DescribeBudgetsCommand, "NextToken", "NextToken", "MaxResults");
2113
+ const paginateDescribeBudgetNotificationsForAccount = core.createPaginator(BudgetsClient, DescribeBudgetNotificationsForAccountCommand, "NextToken", "NextToken", "MaxResults");
2352
2114
 
2353
- // src/pagination/DescribeNotificationsForBudgetPaginator.ts
2115
+ const paginateDescribeBudgetPerformanceHistory = core.createPaginator(BudgetsClient, DescribeBudgetPerformanceHistoryCommand, "NextToken", "NextToken", "MaxResults");
2354
2116
 
2355
- var paginateDescribeNotificationsForBudget = (0, import_core.createPaginator)(BudgetsClient, DescribeNotificationsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
2117
+ const paginateDescribeBudgets = core.createPaginator(BudgetsClient, DescribeBudgetsCommand, "NextToken", "NextToken", "MaxResults");
2356
2118
 
2357
- // src/pagination/DescribeSubscribersForNotificationPaginator.ts
2119
+ const paginateDescribeNotificationsForBudget = core.createPaginator(BudgetsClient, DescribeNotificationsForBudgetCommand, "NextToken", "NextToken", "MaxResults");
2358
2120
 
2359
- var paginateDescribeSubscribersForNotification = (0, import_core.createPaginator)(BudgetsClient, DescribeSubscribersForNotificationCommand, "NextToken", "NextToken", "MaxResults");
2360
- // Annotate the CommonJS export names for ESM import in node:
2121
+ const paginateDescribeSubscribersForNotification = core.createPaginator(BudgetsClient, DescribeSubscribersForNotificationCommand, "NextToken", "NextToken", "MaxResults");
2361
2122
 
2362
- 0 && (module.exports = {
2363
- BudgetsServiceException,
2364
- __Client,
2365
- BudgetsClient,
2366
- Budgets,
2367
- $Command,
2368
- CreateBudgetActionCommand,
2369
- CreateBudgetCommand,
2370
- CreateNotificationCommand,
2371
- CreateSubscriberCommand,
2372
- DeleteBudgetActionCommand,
2373
- DeleteBudgetCommand,
2374
- DeleteNotificationCommand,
2375
- DeleteSubscriberCommand,
2376
- DescribeBudgetActionCommand,
2377
- DescribeBudgetActionHistoriesCommand,
2378
- DescribeBudgetActionsForAccountCommand,
2379
- DescribeBudgetActionsForBudgetCommand,
2380
- DescribeBudgetCommand,
2381
- DescribeBudgetNotificationsForAccountCommand,
2382
- DescribeBudgetPerformanceHistoryCommand,
2383
- DescribeBudgetsCommand,
2384
- DescribeNotificationsForBudgetCommand,
2385
- DescribeSubscribersForNotificationCommand,
2386
- ExecuteBudgetActionCommand,
2387
- ListTagsForResourceCommand,
2388
- TagResourceCommand,
2389
- UntagResourceCommand,
2390
- UpdateBudgetActionCommand,
2391
- UpdateBudgetCommand,
2392
- UpdateNotificationCommand,
2393
- UpdateSubscriberCommand,
2394
- paginateDescribeBudgetActionHistories,
2395
- paginateDescribeBudgetActionsForAccount,
2396
- paginateDescribeBudgetActionsForBudget,
2397
- paginateDescribeBudgetNotificationsForAccount,
2398
- paginateDescribeBudgetPerformanceHistory,
2399
- paginateDescribeBudgets,
2400
- paginateDescribeNotificationsForBudget,
2401
- paginateDescribeSubscribersForNotification,
2402
- AccessDeniedException,
2403
- ThresholdType,
2404
- ActionType,
2405
- ApprovalModel,
2406
- ActionSubType,
2407
- NotificationType,
2408
- ActionStatus,
2409
- SubscriptionType,
2410
- EventType,
2411
- AutoAdjustType,
2412
- BillingViewHealthStatusException,
2413
- BudgetType,
2414
- MatchOption,
2415
- Dimension,
2416
- HealthStatusValue,
2417
- HealthStatusReason,
2418
- Metric,
2419
- TimeUnit,
2420
- ComparisonOperator,
2421
- NotificationState,
2422
- CreationLimitExceededException,
2423
- DuplicateRecordException,
2424
- InternalErrorException,
2425
- InvalidParameterException,
2426
- NotFoundException,
2427
- ServiceQuotaExceededException,
2428
- ThrottlingException,
2429
- ResourceLockedException,
2430
- InvalidNextTokenException,
2431
- ExpiredNextTokenException,
2432
- ExecutionType,
2433
- SubscriberFilterSensitiveLog,
2434
- ActionFilterSensitiveLog,
2435
- ActionHistoryDetailsFilterSensitiveLog,
2436
- ActionHistoryFilterSensitiveLog,
2437
- NotificationWithSubscribersFilterSensitiveLog,
2438
- CreateBudgetActionRequestFilterSensitiveLog,
2439
- CreateNotificationRequestFilterSensitiveLog,
2440
- CreateSubscriberRequestFilterSensitiveLog,
2441
- DeleteBudgetActionResponseFilterSensitiveLog,
2442
- DeleteSubscriberRequestFilterSensitiveLog,
2443
- DescribeBudgetActionResponseFilterSensitiveLog,
2444
- DescribeBudgetActionHistoriesResponseFilterSensitiveLog,
2445
- DescribeBudgetActionsForAccountResponseFilterSensitiveLog,
2446
- DescribeBudgetActionsForBudgetResponseFilterSensitiveLog,
2447
- DescribeSubscribersForNotificationResponseFilterSensitiveLog,
2448
- UpdateBudgetActionRequestFilterSensitiveLog,
2449
- UpdateBudgetActionResponseFilterSensitiveLog,
2450
- UpdateSubscriberRequestFilterSensitiveLog,
2451
- CreateBudgetRequestFilterSensitiveLog
2123
+ Object.defineProperty(exports, "$Command", {
2124
+ enumerable: true,
2125
+ get: function () { return smithyClient.Command; }
2452
2126
  });
2453
-
2127
+ Object.defineProperty(exports, "__Client", {
2128
+ enumerable: true,
2129
+ get: function () { return smithyClient.Client; }
2130
+ });
2131
+ exports.AccessDeniedException = AccessDeniedException;
2132
+ exports.ActionFilterSensitiveLog = ActionFilterSensitiveLog;
2133
+ exports.ActionHistoryDetailsFilterSensitiveLog = ActionHistoryDetailsFilterSensitiveLog;
2134
+ exports.ActionHistoryFilterSensitiveLog = ActionHistoryFilterSensitiveLog;
2135
+ exports.ActionStatus = ActionStatus;
2136
+ exports.ActionSubType = ActionSubType;
2137
+ exports.ActionType = ActionType;
2138
+ exports.ApprovalModel = ApprovalModel;
2139
+ exports.AutoAdjustType = AutoAdjustType;
2140
+ exports.BillingViewHealthStatusException = BillingViewHealthStatusException;
2141
+ exports.BudgetType = BudgetType;
2142
+ exports.Budgets = Budgets;
2143
+ exports.BudgetsClient = BudgetsClient;
2144
+ exports.BudgetsServiceException = BudgetsServiceException;
2145
+ exports.ComparisonOperator = ComparisonOperator;
2146
+ exports.CreateBudgetActionCommand = CreateBudgetActionCommand;
2147
+ exports.CreateBudgetActionRequestFilterSensitiveLog = CreateBudgetActionRequestFilterSensitiveLog;
2148
+ exports.CreateBudgetCommand = CreateBudgetCommand;
2149
+ exports.CreateBudgetRequestFilterSensitiveLog = CreateBudgetRequestFilterSensitiveLog;
2150
+ exports.CreateNotificationCommand = CreateNotificationCommand;
2151
+ exports.CreateNotificationRequestFilterSensitiveLog = CreateNotificationRequestFilterSensitiveLog;
2152
+ exports.CreateSubscriberCommand = CreateSubscriberCommand;
2153
+ exports.CreateSubscriberRequestFilterSensitiveLog = CreateSubscriberRequestFilterSensitiveLog;
2154
+ exports.CreationLimitExceededException = CreationLimitExceededException;
2155
+ exports.DeleteBudgetActionCommand = DeleteBudgetActionCommand;
2156
+ exports.DeleteBudgetActionResponseFilterSensitiveLog = DeleteBudgetActionResponseFilterSensitiveLog;
2157
+ exports.DeleteBudgetCommand = DeleteBudgetCommand;
2158
+ exports.DeleteNotificationCommand = DeleteNotificationCommand;
2159
+ exports.DeleteSubscriberCommand = DeleteSubscriberCommand;
2160
+ exports.DeleteSubscriberRequestFilterSensitiveLog = DeleteSubscriberRequestFilterSensitiveLog;
2161
+ exports.DescribeBudgetActionCommand = DescribeBudgetActionCommand;
2162
+ exports.DescribeBudgetActionHistoriesCommand = DescribeBudgetActionHistoriesCommand;
2163
+ exports.DescribeBudgetActionHistoriesResponseFilterSensitiveLog = DescribeBudgetActionHistoriesResponseFilterSensitiveLog;
2164
+ exports.DescribeBudgetActionResponseFilterSensitiveLog = DescribeBudgetActionResponseFilterSensitiveLog;
2165
+ exports.DescribeBudgetActionsForAccountCommand = DescribeBudgetActionsForAccountCommand;
2166
+ exports.DescribeBudgetActionsForAccountResponseFilterSensitiveLog = DescribeBudgetActionsForAccountResponseFilterSensitiveLog;
2167
+ exports.DescribeBudgetActionsForBudgetCommand = DescribeBudgetActionsForBudgetCommand;
2168
+ exports.DescribeBudgetActionsForBudgetResponseFilterSensitiveLog = DescribeBudgetActionsForBudgetResponseFilterSensitiveLog;
2169
+ exports.DescribeBudgetCommand = DescribeBudgetCommand;
2170
+ exports.DescribeBudgetNotificationsForAccountCommand = DescribeBudgetNotificationsForAccountCommand;
2171
+ exports.DescribeBudgetPerformanceHistoryCommand = DescribeBudgetPerformanceHistoryCommand;
2172
+ exports.DescribeBudgetsCommand = DescribeBudgetsCommand;
2173
+ exports.DescribeNotificationsForBudgetCommand = DescribeNotificationsForBudgetCommand;
2174
+ exports.DescribeSubscribersForNotificationCommand = DescribeSubscribersForNotificationCommand;
2175
+ exports.DescribeSubscribersForNotificationResponseFilterSensitiveLog = DescribeSubscribersForNotificationResponseFilterSensitiveLog;
2176
+ exports.Dimension = Dimension;
2177
+ exports.DuplicateRecordException = DuplicateRecordException;
2178
+ exports.EventType = EventType;
2179
+ exports.ExecuteBudgetActionCommand = ExecuteBudgetActionCommand;
2180
+ exports.ExecutionType = ExecutionType;
2181
+ exports.ExpiredNextTokenException = ExpiredNextTokenException;
2182
+ exports.HealthStatusReason = HealthStatusReason;
2183
+ exports.HealthStatusValue = HealthStatusValue;
2184
+ exports.InternalErrorException = InternalErrorException;
2185
+ exports.InvalidNextTokenException = InvalidNextTokenException;
2186
+ exports.InvalidParameterException = InvalidParameterException;
2187
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2188
+ exports.MatchOption = MatchOption;
2189
+ exports.Metric = Metric;
2190
+ exports.NotFoundException = NotFoundException;
2191
+ exports.NotificationState = NotificationState;
2192
+ exports.NotificationType = NotificationType;
2193
+ exports.NotificationWithSubscribersFilterSensitiveLog = NotificationWithSubscribersFilterSensitiveLog;
2194
+ exports.ResourceLockedException = ResourceLockedException;
2195
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
2196
+ exports.SubscriberFilterSensitiveLog = SubscriberFilterSensitiveLog;
2197
+ exports.SubscriptionType = SubscriptionType;
2198
+ exports.TagResourceCommand = TagResourceCommand;
2199
+ exports.ThresholdType = ThresholdType;
2200
+ exports.ThrottlingException = ThrottlingException;
2201
+ exports.TimeUnit = TimeUnit;
2202
+ exports.UntagResourceCommand = UntagResourceCommand;
2203
+ exports.UpdateBudgetActionCommand = UpdateBudgetActionCommand;
2204
+ exports.UpdateBudgetActionRequestFilterSensitiveLog = UpdateBudgetActionRequestFilterSensitiveLog;
2205
+ exports.UpdateBudgetActionResponseFilterSensitiveLog = UpdateBudgetActionResponseFilterSensitiveLog;
2206
+ exports.UpdateBudgetCommand = UpdateBudgetCommand;
2207
+ exports.UpdateNotificationCommand = UpdateNotificationCommand;
2208
+ exports.UpdateSubscriberCommand = UpdateSubscriberCommand;
2209
+ exports.UpdateSubscriberRequestFilterSensitiveLog = UpdateSubscriberRequestFilterSensitiveLog;
2210
+ exports.paginateDescribeBudgetActionHistories = paginateDescribeBudgetActionHistories;
2211
+ exports.paginateDescribeBudgetActionsForAccount = paginateDescribeBudgetActionsForAccount;
2212
+ exports.paginateDescribeBudgetActionsForBudget = paginateDescribeBudgetActionsForBudget;
2213
+ exports.paginateDescribeBudgetNotificationsForAccount = paginateDescribeBudgetNotificationsForAccount;
2214
+ exports.paginateDescribeBudgetPerformanceHistory = paginateDescribeBudgetPerformanceHistory;
2215
+ exports.paginateDescribeBudgets = paginateDescribeBudgets;
2216
+ exports.paginateDescribeNotificationsForBudget = paginateDescribeNotificationsForBudget;
2217
+ exports.paginateDescribeSubscribersForNotification = paginateDescribeSubscribersForNotification;