@aws-sdk/client-billing 3.901.0 → 3.907.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 +972 -1159
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,1218 +1,1031 @@
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 });
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
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "billing",
26
+ });
10
27
  };
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;
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
33
  };
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
- AssociateSourceViewsCommand: () => AssociateSourceViewsCommand,
26
- Billing: () => Billing,
27
- BillingClient: () => BillingClient,
28
- BillingServiceException: () => BillingServiceException,
29
- BillingViewElementFilterSensitiveLog: () => BillingViewElementFilterSensitiveLog,
30
- BillingViewHealthStatusException: () => BillingViewHealthStatusException,
31
- BillingViewListElementFilterSensitiveLog: () => BillingViewListElementFilterSensitiveLog,
32
- BillingViewStatus: () => BillingViewStatus,
33
- BillingViewStatusReason: () => BillingViewStatusReason,
34
- BillingViewType: () => BillingViewType,
35
- ConflictException: () => ConflictException,
36
- CreateBillingViewCommand: () => CreateBillingViewCommand,
37
- CreateBillingViewRequestFilterSensitiveLog: () => CreateBillingViewRequestFilterSensitiveLog,
38
- DeleteBillingViewCommand: () => DeleteBillingViewCommand,
39
- Dimension: () => Dimension,
40
- DisassociateSourceViewsCommand: () => DisassociateSourceViewsCommand,
41
- GetBillingViewCommand: () => GetBillingViewCommand,
42
- GetBillingViewResponseFilterSensitiveLog: () => GetBillingViewResponseFilterSensitiveLog,
43
- GetResourcePolicyCommand: () => GetResourcePolicyCommand,
44
- InternalServerException: () => InternalServerException,
45
- ListBillingViewsCommand: () => ListBillingViewsCommand,
46
- ListBillingViewsResponseFilterSensitiveLog: () => ListBillingViewsResponseFilterSensitiveLog,
47
- ListSourceViewsForBillingViewCommand: () => ListSourceViewsForBillingViewCommand,
48
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
49
- ResourceNotFoundException: () => ResourceNotFoundException,
50
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
51
- TagResourceCommand: () => TagResourceCommand,
52
- ThrottlingException: () => ThrottlingException,
53
- UntagResourceCommand: () => UntagResourceCommand,
54
- UpdateBillingViewCommand: () => UpdateBillingViewCommand,
55
- UpdateBillingViewRequestFilterSensitiveLog: () => UpdateBillingViewRequestFilterSensitiveLog,
56
- ValidationException: () => ValidationException,
57
- ValidationExceptionReason: () => ValidationExceptionReason,
58
- __Client: () => import_smithy_client.Client,
59
- paginateListBillingViews: () => paginateListBillingViews,
60
- paginateListSourceViewsForBillingView: () => paginateListSourceViewsForBillingView
61
- });
62
- module.exports = __toCommonJS(index_exports);
63
-
64
- // src/BillingClient.ts
65
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
66
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
67
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
68
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
69
- var import_config_resolver = require("@smithy/config-resolver");
70
- var import_core = require("@smithy/core");
71
- var import_middleware_content_length = require("@smithy/middleware-content-length");
72
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
73
- var import_middleware_retry = require("@smithy/middleware-retry");
74
-
75
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
76
34
 
77
- // src/endpoint/EndpointParameters.ts
78
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
79
- return Object.assign(options, {
80
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
81
- useFipsEndpoint: options.useFipsEndpoint ?? false,
82
- defaultSigningName: "billing"
83
- });
84
- }, "resolveClientEndpointParameters");
85
- var commonParams = {
86
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
87
- Endpoint: { type: "builtInParams", name: "endpoint" },
88
- Region: { type: "builtInParams", name: "region" },
89
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
90
72
  };
91
73
 
92
- // src/BillingClient.ts
93
- var import_runtimeConfig = require("././runtimeConfig");
94
-
95
- // src/runtimeExtensions.ts
96
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
97
- var import_protocol_http = require("@smithy/protocol-http");
98
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
99
79
 
100
- // src/auth/httpAuthExtensionConfiguration.ts
101
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
102
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
103
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
104
- let _credentials = runtimeConfig.credentials;
105
- return {
106
- setHttpAuthScheme(httpAuthScheme) {
107
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
108
- if (index === -1) {
109
- _httpAuthSchemes.push(httpAuthScheme);
110
- } else {
111
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
112
- }
113
- },
114
- httpAuthSchemes() {
115
- return _httpAuthSchemes;
116
- },
117
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
118
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
119
- },
120
- httpAuthSchemeProvider() {
121
- return _httpAuthSchemeProvider;
122
- },
123
- setCredentials(credentials) {
124
- _credentials = credentials;
125
- },
126
- credentials() {
127
- return _credentials;
80
+ class BillingClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBillingHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
128
108
  }
129
- };
130
- }, "getHttpAuthExtensionConfiguration");
131
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
132
- return {
133
- httpAuthSchemes: config.httpAuthSchemes(),
134
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
135
- credentials: config.credentials()
136
- };
137
- }, "resolveHttpAuthRuntimeConfig");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
138
113
 
139
- // src/runtimeExtensions.ts
140
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
141
- const extensionConfiguration = Object.assign(
142
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
143
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
144
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
145
- getHttpAuthExtensionConfiguration(runtimeConfig)
146
- );
147
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
148
- return Object.assign(
149
- runtimeConfig,
150
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
151
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
152
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
153
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
154
- );
155
- }, "resolveRuntimeExtensions");
114
+ class BillingServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, BillingServiceException.prototype);
118
+ }
119
+ }
156
120
 
157
- // src/BillingClient.ts
158
- var BillingClient = class extends import_smithy_client.Client {
159
- static {
160
- __name(this, "BillingClient");
161
- }
162
- /**
163
- * The resolved configuration of BillingClient class. This is resolved and normalized from the {@link BillingClientConfig | constructor configuration interface}.
164
- */
165
- config;
166
- constructor(...[configuration]) {
167
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
168
- super(_config_0);
169
- this.initConfig = _config_0;
170
- const _config_1 = resolveClientEndpointParameters(_config_0);
171
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
172
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
173
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
174
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
175
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
176
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
177
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
178
- this.config = _config_8;
179
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
180
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
181
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
182
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
183
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
184
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
185
- this.middlewareStack.use(
186
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
187
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBillingHttpAuthSchemeParametersProvider,
188
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
189
- "aws.auth#sigv4": config.credentials
190
- }), "identityProviderConfigProvider")
191
- })
192
- );
193
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
194
- }
195
- /**
196
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
197
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
198
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
199
- */
200
- destroy() {
201
- super.destroy();
202
- }
121
+ class AccessDeniedException extends BillingServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ }
132
+ }
133
+ class BillingViewHealthStatusException extends BillingServiceException {
134
+ name = "BillingViewHealthStatusException";
135
+ $fault = "client";
136
+ constructor(opts) {
137
+ super({
138
+ name: "BillingViewHealthStatusException",
139
+ $fault: "client",
140
+ ...opts,
141
+ });
142
+ Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
143
+ }
144
+ }
145
+ class ConflictException extends BillingServiceException {
146
+ name = "ConflictException";
147
+ $fault = "client";
148
+ resourceId;
149
+ resourceType;
150
+ constructor(opts) {
151
+ super({
152
+ name: "ConflictException",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ Object.setPrototypeOf(this, ConflictException.prototype);
157
+ this.resourceId = opts.resourceId;
158
+ this.resourceType = opts.resourceType;
159
+ }
160
+ }
161
+ class InternalServerException extends BillingServiceException {
162
+ name = "InternalServerException";
163
+ $fault = "server";
164
+ constructor(opts) {
165
+ super({
166
+ name: "InternalServerException",
167
+ $fault: "server",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, InternalServerException.prototype);
171
+ }
172
+ }
173
+ class ResourceNotFoundException extends BillingServiceException {
174
+ name = "ResourceNotFoundException";
175
+ $fault = "client";
176
+ resourceId;
177
+ resourceType;
178
+ constructor(opts) {
179
+ super({
180
+ name: "ResourceNotFoundException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
185
+ this.resourceId = opts.resourceId;
186
+ this.resourceType = opts.resourceType;
187
+ }
188
+ }
189
+ class ServiceQuotaExceededException extends BillingServiceException {
190
+ name = "ServiceQuotaExceededException";
191
+ $fault = "client";
192
+ resourceId;
193
+ resourceType;
194
+ serviceCode;
195
+ quotaCode;
196
+ constructor(opts) {
197
+ super({
198
+ name: "ServiceQuotaExceededException",
199
+ $fault: "client",
200
+ ...opts,
201
+ });
202
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
203
+ this.resourceId = opts.resourceId;
204
+ this.resourceType = opts.resourceType;
205
+ this.serviceCode = opts.serviceCode;
206
+ this.quotaCode = opts.quotaCode;
207
+ }
208
+ }
209
+ class ThrottlingException extends BillingServiceException {
210
+ name = "ThrottlingException";
211
+ $fault = "client";
212
+ constructor(opts) {
213
+ super({
214
+ name: "ThrottlingException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
219
+ }
220
+ }
221
+ const ValidationExceptionReason = {
222
+ CANNOT_PARSE: "cannotParse",
223
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
224
+ OTHER: "other",
225
+ UNKNOWN_OPERATION: "unknownOperation",
203
226
  };
204
-
205
- // src/Billing.ts
206
-
207
-
208
- // src/commands/AssociateSourceViewsCommand.ts
209
-
210
- var import_middleware_serde = require("@smithy/middleware-serde");
211
-
212
-
213
- // src/protocols/Aws_json1_0.ts
214
- var import_core2 = require("@aws-sdk/core");
215
-
216
-
217
- var import_uuid = require("@smithy/uuid");
218
-
219
- // src/models/BillingServiceException.ts
220
-
221
- var BillingServiceException = class _BillingServiceException extends import_smithy_client.ServiceException {
222
- static {
223
- __name(this, "BillingServiceException");
224
- }
225
- /**
226
- * @internal
227
- */
228
- constructor(options) {
229
- super(options);
230
- Object.setPrototypeOf(this, _BillingServiceException.prototype);
231
- }
227
+ class ValidationException extends BillingServiceException {
228
+ name = "ValidationException";
229
+ $fault = "client";
230
+ reason;
231
+ fieldList;
232
+ constructor(opts) {
233
+ super({
234
+ name: "ValidationException",
235
+ $fault: "client",
236
+ ...opts,
237
+ });
238
+ Object.setPrototypeOf(this, ValidationException.prototype);
239
+ this.reason = opts.reason;
240
+ this.fieldList = opts.fieldList;
241
+ }
242
+ }
243
+ const Dimension = {
244
+ LINKED_ACCOUNT: "LINKED_ACCOUNT",
232
245
  };
246
+ const BillingViewType = {
247
+ BILLING_GROUP: "BILLING_GROUP",
248
+ CUSTOM: "CUSTOM",
249
+ PRIMARY: "PRIMARY",
250
+ };
251
+ const BillingViewStatus = {
252
+ CREATING: "CREATING",
253
+ HEALTHY: "HEALTHY",
254
+ UNHEALTHY: "UNHEALTHY",
255
+ UPDATING: "UPDATING",
256
+ };
257
+ const BillingViewStatusReason = {
258
+ AGGREGATE_SOURCE: "AGGREGATE_SOURCE",
259
+ CYCLIC_DEPENDENCY: "CYCLIC_DEPENDENCY",
260
+ SOURCE_VIEW_ACCESS_DENIED: "SOURCE_VIEW_ACCESS_DENIED",
261
+ SOURCE_VIEW_DEPTH_EXCEEDED: "SOURCE_VIEW_DEPTH_EXCEEDED",
262
+ SOURCE_VIEW_NOT_FOUND: "SOURCE_VIEW_NOT_FOUND",
263
+ SOURCE_VIEW_UNHEALTHY: "SOURCE_VIEW_UNHEALTHY",
264
+ SOURCE_VIEW_UPDATING: "SOURCE_VIEW_UPDATING",
265
+ VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT: "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT",
266
+ };
267
+ const CreateBillingViewRequestFilterSensitiveLog = (obj) => ({
268
+ ...obj,
269
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
270
+ ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
271
+ });
272
+ const BillingViewElementFilterSensitiveLog = (obj) => ({
273
+ ...obj,
274
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
275
+ ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
276
+ });
277
+ const GetBillingViewResponseFilterSensitiveLog = (obj) => ({
278
+ ...obj,
279
+ ...(obj.billingView && { billingView: BillingViewElementFilterSensitiveLog(obj.billingView) }),
280
+ });
281
+ const BillingViewListElementFilterSensitiveLog = (obj) => ({
282
+ ...obj,
283
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
284
+ ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
285
+ });
286
+ const ListBillingViewsResponseFilterSensitiveLog = (obj) => ({
287
+ ...obj,
288
+ ...(obj.billingViews && {
289
+ billingViews: obj.billingViews.map((item) => BillingViewListElementFilterSensitiveLog(item)),
290
+ }),
291
+ });
292
+ const UpdateBillingViewRequestFilterSensitiveLog = (obj) => ({
293
+ ...obj,
294
+ ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
295
+ ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
296
+ });
233
297
 
234
- // src/models/models_0.ts
235
-
236
- var AccessDeniedException = class _AccessDeniedException extends BillingServiceException {
237
- static {
238
- __name(this, "AccessDeniedException");
239
- }
240
- name = "AccessDeniedException";
241
- $fault = "client";
242
- /**
243
- * @internal
244
- */
245
- constructor(opts) {
246
- super({
247
- name: "AccessDeniedException",
248
- $fault: "client",
249
- ...opts
250
- });
251
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
252
- }
298
+ const se_AssociateSourceViewsCommand = async (input, context) => {
299
+ const headers = sharedHeaders("AssociateSourceViews");
300
+ let body;
301
+ body = JSON.stringify(smithyClient._json(input));
302
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
303
+ };
304
+ const se_CreateBillingViewCommand = async (input, context) => {
305
+ const headers = sharedHeaders("CreateBillingView");
306
+ let body;
307
+ body = JSON.stringify(se_CreateBillingViewRequest(input));
308
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
+ };
310
+ const se_DeleteBillingViewCommand = async (input, context) => {
311
+ const headers = sharedHeaders("DeleteBillingView");
312
+ let body;
313
+ body = JSON.stringify(smithyClient._json(input));
314
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
+ };
316
+ const se_DisassociateSourceViewsCommand = async (input, context) => {
317
+ const headers = sharedHeaders("DisassociateSourceViews");
318
+ let body;
319
+ body = JSON.stringify(smithyClient._json(input));
320
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
321
+ };
322
+ const se_GetBillingViewCommand = async (input, context) => {
323
+ const headers = sharedHeaders("GetBillingView");
324
+ let body;
325
+ body = JSON.stringify(smithyClient._json(input));
326
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
+ };
328
+ const se_GetResourcePolicyCommand = async (input, context) => {
329
+ const headers = sharedHeaders("GetResourcePolicy");
330
+ let body;
331
+ body = JSON.stringify(smithyClient._json(input));
332
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
333
+ };
334
+ const se_ListBillingViewsCommand = async (input, context) => {
335
+ const headers = sharedHeaders("ListBillingViews");
336
+ let body;
337
+ body = JSON.stringify(se_ListBillingViewsRequest(input));
338
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
339
+ };
340
+ const se_ListSourceViewsForBillingViewCommand = async (input, context) => {
341
+ const headers = sharedHeaders("ListSourceViewsForBillingView");
342
+ let body;
343
+ body = JSON.stringify(smithyClient._json(input));
344
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
345
+ };
346
+ const se_ListTagsForResourceCommand = async (input, context) => {
347
+ const headers = sharedHeaders("ListTagsForResource");
348
+ let body;
349
+ body = JSON.stringify(smithyClient._json(input));
350
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
+ };
352
+ const se_TagResourceCommand = async (input, context) => {
353
+ const headers = sharedHeaders("TagResource");
354
+ let body;
355
+ body = JSON.stringify(smithyClient._json(input));
356
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
+ };
358
+ const se_UntagResourceCommand = async (input, context) => {
359
+ const headers = sharedHeaders("UntagResource");
360
+ let body;
361
+ body = JSON.stringify(smithyClient._json(input));
362
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
363
+ };
364
+ const se_UpdateBillingViewCommand = async (input, context) => {
365
+ const headers = sharedHeaders("UpdateBillingView");
366
+ let body;
367
+ body = JSON.stringify(se_UpdateBillingViewRequest(input));
368
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
369
+ };
370
+ const de_AssociateSourceViewsCommand = async (output, context) => {
371
+ if (output.statusCode >= 300) {
372
+ return de_CommandError(output, context);
373
+ }
374
+ const data = await core$1.parseJsonBody(output.body, context);
375
+ let contents = {};
376
+ contents = smithyClient._json(data);
377
+ const response = {
378
+ $metadata: deserializeMetadata(output),
379
+ ...contents,
380
+ };
381
+ return response;
382
+ };
383
+ const de_CreateBillingViewCommand = async (output, context) => {
384
+ if (output.statusCode >= 300) {
385
+ return de_CommandError(output, context);
386
+ }
387
+ const data = await core$1.parseJsonBody(output.body, context);
388
+ let contents = {};
389
+ contents = de_CreateBillingViewResponse(data);
390
+ const response = {
391
+ $metadata: deserializeMetadata(output),
392
+ ...contents,
393
+ };
394
+ return response;
395
+ };
396
+ const de_DeleteBillingViewCommand = async (output, context) => {
397
+ if (output.statusCode >= 300) {
398
+ return de_CommandError(output, context);
399
+ }
400
+ const data = await core$1.parseJsonBody(output.body, context);
401
+ let contents = {};
402
+ contents = smithyClient._json(data);
403
+ const response = {
404
+ $metadata: deserializeMetadata(output),
405
+ ...contents,
406
+ };
407
+ return response;
408
+ };
409
+ const de_DisassociateSourceViewsCommand = async (output, context) => {
410
+ if (output.statusCode >= 300) {
411
+ return de_CommandError(output, context);
412
+ }
413
+ const data = await core$1.parseJsonBody(output.body, context);
414
+ let contents = {};
415
+ contents = smithyClient._json(data);
416
+ const response = {
417
+ $metadata: deserializeMetadata(output),
418
+ ...contents,
419
+ };
420
+ return response;
421
+ };
422
+ const de_GetBillingViewCommand = async (output, context) => {
423
+ if (output.statusCode >= 300) {
424
+ return de_CommandError(output, context);
425
+ }
426
+ const data = await core$1.parseJsonBody(output.body, context);
427
+ let contents = {};
428
+ contents = de_GetBillingViewResponse(data);
429
+ const response = {
430
+ $metadata: deserializeMetadata(output),
431
+ ...contents,
432
+ };
433
+ return response;
434
+ };
435
+ const de_GetResourcePolicyCommand = async (output, context) => {
436
+ if (output.statusCode >= 300) {
437
+ return de_CommandError(output, context);
438
+ }
439
+ const data = await core$1.parseJsonBody(output.body, context);
440
+ let contents = {};
441
+ contents = smithyClient._json(data);
442
+ const response = {
443
+ $metadata: deserializeMetadata(output),
444
+ ...contents,
445
+ };
446
+ return response;
447
+ };
448
+ const de_ListBillingViewsCommand = async (output, context) => {
449
+ if (output.statusCode >= 300) {
450
+ return de_CommandError(output, context);
451
+ }
452
+ const data = await core$1.parseJsonBody(output.body, context);
453
+ let contents = {};
454
+ contents = smithyClient._json(data);
455
+ const response = {
456
+ $metadata: deserializeMetadata(output),
457
+ ...contents,
458
+ };
459
+ return response;
460
+ };
461
+ const de_ListSourceViewsForBillingViewCommand = async (output, context) => {
462
+ if (output.statusCode >= 300) {
463
+ return de_CommandError(output, context);
464
+ }
465
+ const data = await core$1.parseJsonBody(output.body, context);
466
+ let contents = {};
467
+ contents = smithyClient._json(data);
468
+ const response = {
469
+ $metadata: deserializeMetadata(output),
470
+ ...contents,
471
+ };
472
+ return response;
473
+ };
474
+ const de_ListTagsForResourceCommand = async (output, context) => {
475
+ if (output.statusCode >= 300) {
476
+ return de_CommandError(output, context);
477
+ }
478
+ const data = await core$1.parseJsonBody(output.body, context);
479
+ let contents = {};
480
+ contents = smithyClient._json(data);
481
+ const response = {
482
+ $metadata: deserializeMetadata(output),
483
+ ...contents,
484
+ };
485
+ return response;
486
+ };
487
+ const de_TagResourceCommand = async (output, context) => {
488
+ if (output.statusCode >= 300) {
489
+ return de_CommandError(output, context);
490
+ }
491
+ const data = await core$1.parseJsonBody(output.body, context);
492
+ let contents = {};
493
+ contents = smithyClient._json(data);
494
+ const response = {
495
+ $metadata: deserializeMetadata(output),
496
+ ...contents,
497
+ };
498
+ return response;
253
499
  };
254
- var BillingViewHealthStatusException = class _BillingViewHealthStatusException extends BillingServiceException {
255
- static {
256
- __name(this, "BillingViewHealthStatusException");
257
- }
258
- name = "BillingViewHealthStatusException";
259
- $fault = "client";
260
- /**
261
- * @internal
262
- */
263
- constructor(opts) {
264
- super({
265
- name: "BillingViewHealthStatusException",
266
- $fault: "client",
267
- ...opts
500
+ const de_UntagResourceCommand = async (output, context) => {
501
+ if (output.statusCode >= 300) {
502
+ return de_CommandError(output, context);
503
+ }
504
+ const data = await core$1.parseJsonBody(output.body, context);
505
+ let contents = {};
506
+ contents = smithyClient._json(data);
507
+ const response = {
508
+ $metadata: deserializeMetadata(output),
509
+ ...contents,
510
+ };
511
+ return response;
512
+ };
513
+ const de_UpdateBillingViewCommand = async (output, context) => {
514
+ if (output.statusCode >= 300) {
515
+ return de_CommandError(output, context);
516
+ }
517
+ const data = await core$1.parseJsonBody(output.body, context);
518
+ let contents = {};
519
+ contents = de_UpdateBillingViewResponse(data);
520
+ const response = {
521
+ $metadata: deserializeMetadata(output),
522
+ ...contents,
523
+ };
524
+ return response;
525
+ };
526
+ const de_CommandError = async (output, context) => {
527
+ const parsedOutput = {
528
+ ...output,
529
+ body: await core$1.parseJsonErrorBody(output.body, context),
530
+ };
531
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
532
+ switch (errorCode) {
533
+ case "AccessDeniedException":
534
+ case "com.amazonaws.billing#AccessDeniedException":
535
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
536
+ case "BillingViewHealthStatusException":
537
+ case "com.amazonaws.billing#BillingViewHealthStatusException":
538
+ throw await de_BillingViewHealthStatusExceptionRes(parsedOutput);
539
+ case "ConflictException":
540
+ case "com.amazonaws.billing#ConflictException":
541
+ throw await de_ConflictExceptionRes(parsedOutput);
542
+ case "InternalServerException":
543
+ case "com.amazonaws.billing#InternalServerException":
544
+ throw await de_InternalServerExceptionRes(parsedOutput);
545
+ case "ResourceNotFoundException":
546
+ case "com.amazonaws.billing#ResourceNotFoundException":
547
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
548
+ case "ServiceQuotaExceededException":
549
+ case "com.amazonaws.billing#ServiceQuotaExceededException":
550
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
551
+ case "ThrottlingException":
552
+ case "com.amazonaws.billing#ThrottlingException":
553
+ throw await de_ThrottlingExceptionRes(parsedOutput);
554
+ case "ValidationException":
555
+ case "com.amazonaws.billing#ValidationException":
556
+ throw await de_ValidationExceptionRes(parsedOutput);
557
+ default:
558
+ const parsedBody = parsedOutput.body;
559
+ return throwDefaultError({
560
+ output,
561
+ parsedBody,
562
+ errorCode,
563
+ });
564
+ }
565
+ };
566
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
567
+ const body = parsedOutput.body;
568
+ const deserialized = smithyClient._json(body);
569
+ const exception = new AccessDeniedException({
570
+ $metadata: deserializeMetadata(parsedOutput),
571
+ ...deserialized,
268
572
  });
269
- Object.setPrototypeOf(this, _BillingViewHealthStatusException.prototype);
270
- }
573
+ return smithyClient.decorateServiceException(exception, body);
271
574
  };
272
- var ConflictException = class _ConflictException extends BillingServiceException {
273
- static {
274
- __name(this, "ConflictException");
275
- }
276
- name = "ConflictException";
277
- $fault = "client";
278
- /**
279
- * <p> The identifier for the service resource associated with the request. </p>
280
- * @public
281
- */
282
- resourceId;
283
- /**
284
- * <p> The type of resource associated with the request. </p>
285
- * @public
286
- */
287
- resourceType;
288
- /**
289
- * @internal
290
- */
291
- constructor(opts) {
292
- super({
293
- name: "ConflictException",
294
- $fault: "client",
295
- ...opts
575
+ const de_BillingViewHealthStatusExceptionRes = async (parsedOutput, context) => {
576
+ const body = parsedOutput.body;
577
+ const deserialized = smithyClient._json(body);
578
+ const exception = new BillingViewHealthStatusException({
579
+ $metadata: deserializeMetadata(parsedOutput),
580
+ ...deserialized,
296
581
  });
297
- Object.setPrototypeOf(this, _ConflictException.prototype);
298
- this.resourceId = opts.resourceId;
299
- this.resourceType = opts.resourceType;
300
- }
582
+ return smithyClient.decorateServiceException(exception, body);
301
583
  };
302
- var InternalServerException = class _InternalServerException extends BillingServiceException {
303
- static {
304
- __name(this, "InternalServerException");
305
- }
306
- name = "InternalServerException";
307
- $fault = "server";
308
- /**
309
- * @internal
310
- */
311
- constructor(opts) {
312
- super({
313
- name: "InternalServerException",
314
- $fault: "server",
315
- ...opts
584
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
585
+ const body = parsedOutput.body;
586
+ const deserialized = smithyClient._json(body);
587
+ const exception = new ConflictException({
588
+ $metadata: deserializeMetadata(parsedOutput),
589
+ ...deserialized,
316
590
  });
317
- Object.setPrototypeOf(this, _InternalServerException.prototype);
318
- }
591
+ return smithyClient.decorateServiceException(exception, body);
319
592
  };
320
- var ResourceNotFoundException = class _ResourceNotFoundException extends BillingServiceException {
321
- static {
322
- __name(this, "ResourceNotFoundException");
323
- }
324
- name = "ResourceNotFoundException";
325
- $fault = "client";
326
- /**
327
- * <p> Value is a list of resource IDs that were not found. </p>
328
- * @public
329
- */
330
- resourceId;
331
- /**
332
- * <p> Value is the type of resource that was not found. </p>
333
- * @public
334
- */
335
- resourceType;
336
- /**
337
- * @internal
338
- */
339
- constructor(opts) {
340
- super({
341
- name: "ResourceNotFoundException",
342
- $fault: "client",
343
- ...opts
593
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
594
+ const body = parsedOutput.body;
595
+ const deserialized = smithyClient._json(body);
596
+ const exception = new InternalServerException({
597
+ $metadata: deserializeMetadata(parsedOutput),
598
+ ...deserialized,
344
599
  });
345
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
346
- this.resourceId = opts.resourceId;
347
- this.resourceType = opts.resourceType;
348
- }
600
+ return smithyClient.decorateServiceException(exception, body);
349
601
  };
350
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BillingServiceException {
351
- static {
352
- __name(this, "ServiceQuotaExceededException");
353
- }
354
- name = "ServiceQuotaExceededException";
355
- $fault = "client";
356
- /**
357
- * <p> The ID of the resource. </p>
358
- * @public
359
- */
360
- resourceId;
361
- /**
362
- * <p> The type of Amazon Web Services resource. </p>
363
- * @public
364
- */
365
- resourceType;
366
- /**
367
- * <p> The container for the <code>serviceCode</code>. </p>
368
- * @public
369
- */
370
- serviceCode;
371
- /**
372
- * <p> The container for the <code>quotaCode</code>. </p>
373
- * @public
374
- */
375
- quotaCode;
376
- /**
377
- * @internal
378
- */
379
- constructor(opts) {
380
- super({
381
- name: "ServiceQuotaExceededException",
382
- $fault: "client",
383
- ...opts
602
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
603
+ const body = parsedOutput.body;
604
+ const deserialized = smithyClient._json(body);
605
+ const exception = new ResourceNotFoundException({
606
+ $metadata: deserializeMetadata(parsedOutput),
607
+ ...deserialized,
384
608
  });
385
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
386
- this.resourceId = opts.resourceId;
387
- this.resourceType = opts.resourceType;
388
- this.serviceCode = opts.serviceCode;
389
- this.quotaCode = opts.quotaCode;
390
- }
609
+ return smithyClient.decorateServiceException(exception, body);
391
610
  };
392
- var ThrottlingException = class _ThrottlingException extends BillingServiceException {
393
- static {
394
- __name(this, "ThrottlingException");
395
- }
396
- name = "ThrottlingException";
397
- $fault = "client";
398
- /**
399
- * @internal
400
- */
401
- constructor(opts) {
402
- super({
403
- name: "ThrottlingException",
404
- $fault: "client",
405
- ...opts
611
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
612
+ const body = parsedOutput.body;
613
+ const deserialized = smithyClient._json(body);
614
+ const exception = new ServiceQuotaExceededException({
615
+ $metadata: deserializeMetadata(parsedOutput),
616
+ ...deserialized,
406
617
  });
407
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
408
- }
618
+ return smithyClient.decorateServiceException(exception, body);
409
619
  };
410
- var ValidationExceptionReason = {
411
- CANNOT_PARSE: "cannotParse",
412
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
413
- OTHER: "other",
414
- UNKNOWN_OPERATION: "unknownOperation"
620
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
621
+ const body = parsedOutput.body;
622
+ const deserialized = smithyClient._json(body);
623
+ const exception = new ThrottlingException({
624
+ $metadata: deserializeMetadata(parsedOutput),
625
+ ...deserialized,
626
+ });
627
+ return smithyClient.decorateServiceException(exception, body);
415
628
  };
416
- var ValidationException = class _ValidationException extends BillingServiceException {
417
- static {
418
- __name(this, "ValidationException");
419
- }
420
- name = "ValidationException";
421
- $fault = "client";
422
- /**
423
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
424
- * @public
425
- */
426
- reason;
427
- /**
428
- * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
429
- * @public
430
- */
431
- fieldList;
432
- /**
433
- * @internal
434
- */
435
- constructor(opts) {
436
- super({
437
- name: "ValidationException",
438
- $fault: "client",
439
- ...opts
629
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
630
+ const body = parsedOutput.body;
631
+ const deserialized = smithyClient._json(body);
632
+ const exception = new ValidationException({
633
+ $metadata: deserializeMetadata(parsedOutput),
634
+ ...deserialized,
440
635
  });
441
- Object.setPrototypeOf(this, _ValidationException.prototype);
442
- this.reason = opts.reason;
443
- this.fieldList = opts.fieldList;
444
- }
636
+ return smithyClient.decorateServiceException(exception, body);
445
637
  };
446
- var Dimension = {
447
- LINKED_ACCOUNT: "LINKED_ACCOUNT"
638
+ const se_ActiveTimeRange = (input, context) => {
639
+ return smithyClient.take(input, {
640
+ activeAfterInclusive: (_) => _.getTime() / 1_000,
641
+ activeBeforeInclusive: (_) => _.getTime() / 1_000,
642
+ });
448
643
  };
449
- var BillingViewType = {
450
- BILLING_GROUP: "BILLING_GROUP",
451
- CUSTOM: "CUSTOM",
452
- PRIMARY: "PRIMARY"
644
+ const se_CreateBillingViewRequest = (input, context) => {
645
+ return smithyClient.take(input, {
646
+ clientToken: [true, (_) => _ ?? uuid.v4()],
647
+ dataFilterExpression: (_) => se_Expression(_),
648
+ description: [],
649
+ name: [],
650
+ resourceTags: smithyClient._json,
651
+ sourceViews: smithyClient._json,
652
+ });
453
653
  };
454
- var BillingViewStatus = {
455
- CREATING: "CREATING",
456
- HEALTHY: "HEALTHY",
457
- UNHEALTHY: "UNHEALTHY",
458
- UPDATING: "UPDATING"
654
+ const se_Expression = (input, context) => {
655
+ return smithyClient.take(input, {
656
+ dimensions: smithyClient._json,
657
+ tags: smithyClient._json,
658
+ timeRange: (_) => se_TimeRange(_),
659
+ });
459
660
  };
460
- var BillingViewStatusReason = {
461
- AGGREGATE_SOURCE: "AGGREGATE_SOURCE",
462
- CYCLIC_DEPENDENCY: "CYCLIC_DEPENDENCY",
463
- SOURCE_VIEW_ACCESS_DENIED: "SOURCE_VIEW_ACCESS_DENIED",
464
- SOURCE_VIEW_DEPTH_EXCEEDED: "SOURCE_VIEW_DEPTH_EXCEEDED",
465
- SOURCE_VIEW_NOT_FOUND: "SOURCE_VIEW_NOT_FOUND",
466
- SOURCE_VIEW_UNHEALTHY: "SOURCE_VIEW_UNHEALTHY",
467
- SOURCE_VIEW_UPDATING: "SOURCE_VIEW_UPDATING",
468
- VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT: "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT"
661
+ const se_ListBillingViewsRequest = (input, context) => {
662
+ return smithyClient.take(input, {
663
+ activeTimeRange: (_) => se_ActiveTimeRange(_),
664
+ arns: smithyClient._json,
665
+ billingViewTypes: smithyClient._json,
666
+ maxResults: [],
667
+ nextToken: [],
668
+ ownerAccountId: [],
669
+ sourceAccountId: [],
670
+ });
469
671
  };
470
- var CreateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
471
- ...obj,
472
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
473
- ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
474
- }), "CreateBillingViewRequestFilterSensitiveLog");
475
- var BillingViewElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
476
- ...obj,
477
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
478
- ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
479
- }), "BillingViewElementFilterSensitiveLog");
480
- var GetBillingViewResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
481
- ...obj,
482
- ...obj.billingView && { billingView: BillingViewElementFilterSensitiveLog(obj.billingView) }
483
- }), "GetBillingViewResponseFilterSensitiveLog");
484
- var BillingViewListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
485
- ...obj,
486
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
487
- ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
488
- }), "BillingViewListElementFilterSensitiveLog");
489
- var ListBillingViewsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
490
- ...obj,
491
- ...obj.billingViews && {
492
- billingViews: obj.billingViews.map((item) => BillingViewListElementFilterSensitiveLog(item))
493
- }
494
- }), "ListBillingViewsResponseFilterSensitiveLog");
495
- var UpdateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
496
- ...obj,
497
- ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
498
- ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
499
- }), "UpdateBillingViewRequestFilterSensitiveLog");
500
-
501
- // src/protocols/Aws_json1_0.ts
502
- var se_AssociateSourceViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
503
- const headers = sharedHeaders("AssociateSourceViews");
504
- let body;
505
- body = JSON.stringify((0, import_smithy_client._json)(input));
506
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
507
- }, "se_AssociateSourceViewsCommand");
508
- var se_CreateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
509
- const headers = sharedHeaders("CreateBillingView");
510
- let body;
511
- body = JSON.stringify(se_CreateBillingViewRequest(input, context));
512
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
513
- }, "se_CreateBillingViewCommand");
514
- var se_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
515
- const headers = sharedHeaders("DeleteBillingView");
516
- let body;
517
- body = JSON.stringify((0, import_smithy_client._json)(input));
518
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
519
- }, "se_DeleteBillingViewCommand");
520
- var se_DisassociateSourceViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
521
- const headers = sharedHeaders("DisassociateSourceViews");
522
- let body;
523
- body = JSON.stringify((0, import_smithy_client._json)(input));
524
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
525
- }, "se_DisassociateSourceViewsCommand");
526
- var se_GetBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
527
- const headers = sharedHeaders("GetBillingView");
528
- let body;
529
- body = JSON.stringify((0, import_smithy_client._json)(input));
530
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
531
- }, "se_GetBillingViewCommand");
532
- var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
533
- const headers = sharedHeaders("GetResourcePolicy");
534
- let body;
535
- body = JSON.stringify((0, import_smithy_client._json)(input));
536
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
537
- }, "se_GetResourcePolicyCommand");
538
- var se_ListBillingViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
539
- const headers = sharedHeaders("ListBillingViews");
540
- let body;
541
- body = JSON.stringify(se_ListBillingViewsRequest(input, context));
542
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
543
- }, "se_ListBillingViewsCommand");
544
- var se_ListSourceViewsForBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
545
- const headers = sharedHeaders("ListSourceViewsForBillingView");
546
- let body;
547
- body = JSON.stringify((0, import_smithy_client._json)(input));
548
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
549
- }, "se_ListSourceViewsForBillingViewCommand");
550
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
551
- const headers = sharedHeaders("ListTagsForResource");
552
- let body;
553
- body = JSON.stringify((0, import_smithy_client._json)(input));
554
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
555
- }, "se_ListTagsForResourceCommand");
556
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
557
- const headers = sharedHeaders("TagResource");
558
- let body;
559
- body = JSON.stringify((0, import_smithy_client._json)(input));
560
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
561
- }, "se_TagResourceCommand");
562
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
563
- const headers = sharedHeaders("UntagResource");
564
- let body;
565
- body = JSON.stringify((0, import_smithy_client._json)(input));
566
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
567
- }, "se_UntagResourceCommand");
568
- var se_UpdateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
569
- const headers = sharedHeaders("UpdateBillingView");
570
- let body;
571
- body = JSON.stringify(se_UpdateBillingViewRequest(input, context));
572
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
573
- }, "se_UpdateBillingViewCommand");
574
- var de_AssociateSourceViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
575
- if (output.statusCode >= 300) {
576
- return de_CommandError(output, context);
577
- }
578
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
579
- let contents = {};
580
- contents = (0, import_smithy_client._json)(data);
581
- const response = {
582
- $metadata: deserializeMetadata(output),
583
- ...contents
584
- };
585
- return response;
586
- }, "de_AssociateSourceViewsCommand");
587
- var de_CreateBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
588
- if (output.statusCode >= 300) {
589
- return de_CommandError(output, context);
590
- }
591
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
592
- let contents = {};
593
- contents = de_CreateBillingViewResponse(data, context);
594
- const response = {
595
- $metadata: deserializeMetadata(output),
596
- ...contents
597
- };
598
- return response;
599
- }, "de_CreateBillingViewCommand");
600
- var de_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
601
- if (output.statusCode >= 300) {
602
- return de_CommandError(output, context);
603
- }
604
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
605
- let contents = {};
606
- contents = (0, import_smithy_client._json)(data);
607
- const response = {
608
- $metadata: deserializeMetadata(output),
609
- ...contents
610
- };
611
- return response;
612
- }, "de_DeleteBillingViewCommand");
613
- var de_DisassociateSourceViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
614
- if (output.statusCode >= 300) {
615
- return de_CommandError(output, context);
616
- }
617
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
618
- let contents = {};
619
- contents = (0, import_smithy_client._json)(data);
620
- const response = {
621
- $metadata: deserializeMetadata(output),
622
- ...contents
623
- };
624
- return response;
625
- }, "de_DisassociateSourceViewsCommand");
626
- var de_GetBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
627
- if (output.statusCode >= 300) {
628
- return de_CommandError(output, context);
629
- }
630
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
631
- let contents = {};
632
- contents = de_GetBillingViewResponse(data, context);
633
- const response = {
634
- $metadata: deserializeMetadata(output),
635
- ...contents
636
- };
637
- return response;
638
- }, "de_GetBillingViewCommand");
639
- var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
640
- if (output.statusCode >= 300) {
641
- return de_CommandError(output, context);
642
- }
643
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
644
- let contents = {};
645
- contents = (0, import_smithy_client._json)(data);
646
- const response = {
647
- $metadata: deserializeMetadata(output),
648
- ...contents
649
- };
650
- return response;
651
- }, "de_GetResourcePolicyCommand");
652
- var de_ListBillingViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
653
- if (output.statusCode >= 300) {
654
- return de_CommandError(output, context);
655
- }
656
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
657
- let contents = {};
658
- contents = (0, import_smithy_client._json)(data);
659
- const response = {
660
- $metadata: deserializeMetadata(output),
661
- ...contents
662
- };
663
- return response;
664
- }, "de_ListBillingViewsCommand");
665
- var de_ListSourceViewsForBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
666
- if (output.statusCode >= 300) {
667
- return de_CommandError(output, context);
668
- }
669
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
670
- let contents = {};
671
- contents = (0, import_smithy_client._json)(data);
672
- const response = {
673
- $metadata: deserializeMetadata(output),
674
- ...contents
675
- };
676
- return response;
677
- }, "de_ListSourceViewsForBillingViewCommand");
678
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
679
- if (output.statusCode >= 300) {
680
- return de_CommandError(output, context);
681
- }
682
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
683
- let contents = {};
684
- contents = (0, import_smithy_client._json)(data);
685
- const response = {
686
- $metadata: deserializeMetadata(output),
687
- ...contents
688
- };
689
- return response;
690
- }, "de_ListTagsForResourceCommand");
691
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
692
- if (output.statusCode >= 300) {
693
- return de_CommandError(output, context);
694
- }
695
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
696
- let contents = {};
697
- contents = (0, import_smithy_client._json)(data);
698
- const response = {
699
- $metadata: deserializeMetadata(output),
700
- ...contents
701
- };
702
- return response;
703
- }, "de_TagResourceCommand");
704
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
705
- if (output.statusCode >= 300) {
706
- return de_CommandError(output, context);
707
- }
708
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
709
- let contents = {};
710
- contents = (0, import_smithy_client._json)(data);
711
- const response = {
712
- $metadata: deserializeMetadata(output),
713
- ...contents
714
- };
715
- return response;
716
- }, "de_UntagResourceCommand");
717
- var de_UpdateBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
718
- if (output.statusCode >= 300) {
719
- return de_CommandError(output, context);
720
- }
721
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
722
- let contents = {};
723
- contents = de_UpdateBillingViewResponse(data, context);
724
- const response = {
725
- $metadata: deserializeMetadata(output),
726
- ...contents
727
- };
728
- return response;
729
- }, "de_UpdateBillingViewCommand");
730
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
731
- const parsedOutput = {
732
- ...output,
733
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
734
- };
735
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
736
- switch (errorCode) {
737
- case "AccessDeniedException":
738
- case "com.amazonaws.billing#AccessDeniedException":
739
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
740
- case "BillingViewHealthStatusException":
741
- case "com.amazonaws.billing#BillingViewHealthStatusException":
742
- throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
743
- case "ConflictException":
744
- case "com.amazonaws.billing#ConflictException":
745
- throw await de_ConflictExceptionRes(parsedOutput, context);
746
- case "InternalServerException":
747
- case "com.amazonaws.billing#InternalServerException":
748
- throw await de_InternalServerExceptionRes(parsedOutput, context);
749
- case "ResourceNotFoundException":
750
- case "com.amazonaws.billing#ResourceNotFoundException":
751
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
752
- case "ServiceQuotaExceededException":
753
- case "com.amazonaws.billing#ServiceQuotaExceededException":
754
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
755
- case "ThrottlingException":
756
- case "com.amazonaws.billing#ThrottlingException":
757
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
758
- case "ValidationException":
759
- case "com.amazonaws.billing#ValidationException":
760
- throw await de_ValidationExceptionRes(parsedOutput, context);
761
- default:
762
- const parsedBody = parsedOutput.body;
763
- return throwDefaultError({
764
- output,
765
- parsedBody,
766
- errorCode
767
- });
768
- }
769
- }, "de_CommandError");
770
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
771
- const body = parsedOutput.body;
772
- const deserialized = (0, import_smithy_client._json)(body);
773
- const exception = new AccessDeniedException({
774
- $metadata: deserializeMetadata(parsedOutput),
775
- ...deserialized
776
- });
777
- return (0, import_smithy_client.decorateServiceException)(exception, body);
778
- }, "de_AccessDeniedExceptionRes");
779
- var de_BillingViewHealthStatusExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
780
- const body = parsedOutput.body;
781
- const deserialized = (0, import_smithy_client._json)(body);
782
- const exception = new BillingViewHealthStatusException({
783
- $metadata: deserializeMetadata(parsedOutput),
784
- ...deserialized
785
- });
786
- return (0, import_smithy_client.decorateServiceException)(exception, body);
787
- }, "de_BillingViewHealthStatusExceptionRes");
788
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
789
- const body = parsedOutput.body;
790
- const deserialized = (0, import_smithy_client._json)(body);
791
- const exception = new ConflictException({
792
- $metadata: deserializeMetadata(parsedOutput),
793
- ...deserialized
794
- });
795
- return (0, import_smithy_client.decorateServiceException)(exception, body);
796
- }, "de_ConflictExceptionRes");
797
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
798
- const body = parsedOutput.body;
799
- const deserialized = (0, import_smithy_client._json)(body);
800
- const exception = new InternalServerException({
801
- $metadata: deserializeMetadata(parsedOutput),
802
- ...deserialized
803
- });
804
- return (0, import_smithy_client.decorateServiceException)(exception, body);
805
- }, "de_InternalServerExceptionRes");
806
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
807
- const body = parsedOutput.body;
808
- const deserialized = (0, import_smithy_client._json)(body);
809
- const exception = new ResourceNotFoundException({
810
- $metadata: deserializeMetadata(parsedOutput),
811
- ...deserialized
812
- });
813
- return (0, import_smithy_client.decorateServiceException)(exception, body);
814
- }, "de_ResourceNotFoundExceptionRes");
815
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
816
- const body = parsedOutput.body;
817
- const deserialized = (0, import_smithy_client._json)(body);
818
- const exception = new ServiceQuotaExceededException({
819
- $metadata: deserializeMetadata(parsedOutput),
820
- ...deserialized
821
- });
822
- return (0, import_smithy_client.decorateServiceException)(exception, body);
823
- }, "de_ServiceQuotaExceededExceptionRes");
824
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
825
- const body = parsedOutput.body;
826
- const deserialized = (0, import_smithy_client._json)(body);
827
- const exception = new ThrottlingException({
828
- $metadata: deserializeMetadata(parsedOutput),
829
- ...deserialized
830
- });
831
- return (0, import_smithy_client.decorateServiceException)(exception, body);
832
- }, "de_ThrottlingExceptionRes");
833
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
834
- const body = parsedOutput.body;
835
- const deserialized = (0, import_smithy_client._json)(body);
836
- const exception = new ValidationException({
837
- $metadata: deserializeMetadata(parsedOutput),
838
- ...deserialized
839
- });
840
- return (0, import_smithy_client.decorateServiceException)(exception, body);
841
- }, "de_ValidationExceptionRes");
842
- var se_ActiveTimeRange = /* @__PURE__ */ __name((input, context) => {
843
- return (0, import_smithy_client.take)(input, {
844
- activeAfterInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "activeAfterInclusive"),
845
- activeBeforeInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "activeBeforeInclusive")
846
- });
847
- }, "se_ActiveTimeRange");
848
- var se_CreateBillingViewRequest = /* @__PURE__ */ __name((input, context) => {
849
- return (0, import_smithy_client.take)(input, {
850
- clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
851
- dataFilterExpression: /* @__PURE__ */ __name((_) => se_Expression(_, context), "dataFilterExpression"),
852
- description: [],
853
- name: [],
854
- resourceTags: import_smithy_client._json,
855
- sourceViews: import_smithy_client._json
856
- });
857
- }, "se_CreateBillingViewRequest");
858
- var se_Expression = /* @__PURE__ */ __name((input, context) => {
859
- return (0, import_smithy_client.take)(input, {
860
- dimensions: import_smithy_client._json,
861
- tags: import_smithy_client._json,
862
- timeRange: /* @__PURE__ */ __name((_) => se_TimeRange(_, context), "timeRange")
863
- });
864
- }, "se_Expression");
865
- var se_ListBillingViewsRequest = /* @__PURE__ */ __name((input, context) => {
866
- return (0, import_smithy_client.take)(input, {
867
- activeTimeRange: /* @__PURE__ */ __name((_) => se_ActiveTimeRange(_, context), "activeTimeRange"),
868
- arns: import_smithy_client._json,
869
- billingViewTypes: import_smithy_client._json,
870
- maxResults: [],
871
- nextToken: [],
872
- ownerAccountId: [],
873
- sourceAccountId: []
874
- });
875
- }, "se_ListBillingViewsRequest");
876
- var se_TimeRange = /* @__PURE__ */ __name((input, context) => {
877
- return (0, import_smithy_client.take)(input, {
878
- beginDateInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "beginDateInclusive"),
879
- endDateInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "endDateInclusive")
880
- });
881
- }, "se_TimeRange");
882
- var se_UpdateBillingViewRequest = /* @__PURE__ */ __name((input, context) => {
883
- return (0, import_smithy_client.take)(input, {
884
- arn: [],
885
- dataFilterExpression: /* @__PURE__ */ __name((_) => se_Expression(_, context), "dataFilterExpression"),
886
- description: [],
887
- name: []
888
- });
889
- }, "se_UpdateBillingViewRequest");
890
- var de_BillingViewElement = /* @__PURE__ */ __name((output, context) => {
891
- return (0, import_smithy_client.take)(output, {
892
- arn: import_smithy_client.expectString,
893
- billingViewType: import_smithy_client.expectString,
894
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
895
- dataFilterExpression: /* @__PURE__ */ __name((_) => de_Expression(_, context), "dataFilterExpression"),
896
- derivedViewCount: import_smithy_client.expectInt32,
897
- description: import_smithy_client.expectString,
898
- healthStatus: import_smithy_client._json,
899
- name: import_smithy_client.expectString,
900
- ownerAccountId: import_smithy_client.expectString,
901
- sourceAccountId: import_smithy_client.expectString,
902
- sourceViewCount: import_smithy_client.expectInt32,
903
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt"),
904
- viewDefinitionLastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "viewDefinitionLastUpdatedAt")
905
- });
906
- }, "de_BillingViewElement");
907
- var de_CreateBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
908
- return (0, import_smithy_client.take)(output, {
909
- arn: import_smithy_client.expectString,
910
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt")
911
- });
912
- }, "de_CreateBillingViewResponse");
913
- var de_Expression = /* @__PURE__ */ __name((output, context) => {
914
- return (0, import_smithy_client.take)(output, {
915
- dimensions: import_smithy_client._json,
916
- tags: import_smithy_client._json,
917
- timeRange: /* @__PURE__ */ __name((_) => de_TimeRange(_, context), "timeRange")
918
- });
919
- }, "de_Expression");
920
- var de_GetBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
921
- return (0, import_smithy_client.take)(output, {
922
- billingView: /* @__PURE__ */ __name((_) => de_BillingViewElement(_, context), "billingView")
923
- });
924
- }, "de_GetBillingViewResponse");
925
- var de_TimeRange = /* @__PURE__ */ __name((output, context) => {
926
- return (0, import_smithy_client.take)(output, {
927
- beginDateInclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "beginDateInclusive"),
928
- endDateInclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endDateInclusive")
929
- });
930
- }, "de_TimeRange");
931
- var de_UpdateBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
932
- return (0, import_smithy_client.take)(output, {
933
- arn: import_smithy_client.expectString,
934
- updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
935
- });
936
- }, "de_UpdateBillingViewResponse");
937
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
938
- httpStatusCode: output.statusCode,
939
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
940
- extendedRequestId: output.headers["x-amz-id-2"],
941
- cfId: output.headers["x-amz-cf-id"]
942
- }), "deserializeMetadata");
943
- var throwDefaultError = (0, import_smithy_client.withBaseException)(BillingServiceException);
944
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
945
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
946
- const contents = {
947
- protocol,
948
- hostname,
949
- port,
950
- method: "POST",
951
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
952
- headers
953
- };
954
- if (resolvedHostname !== void 0) {
955
- contents.hostname = resolvedHostname;
956
- }
957
- if (body !== void 0) {
958
- contents.body = body;
959
- }
960
- return new import_protocol_http.HttpRequest(contents);
961
- }, "buildHttpRpcRequest");
962
- function sharedHeaders(operation) {
963
- return {
964
- "content-type": "application/x-amz-json-1.0",
965
- "x-amz-target": `AWSBilling.${operation}`
966
- };
967
- }
968
- __name(sharedHeaders, "sharedHeaders");
969
-
970
- // src/commands/AssociateSourceViewsCommand.ts
971
- var AssociateSourceViewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
972
- return [
973
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
974
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
975
- ];
976
- }).s("AWSBilling", "AssociateSourceViews", {}).n("BillingClient", "AssociateSourceViewsCommand").f(void 0, void 0).ser(se_AssociateSourceViewsCommand).de(de_AssociateSourceViewsCommand).build() {
977
- static {
978
- __name(this, "AssociateSourceViewsCommand");
979
- }
672
+ const se_TimeRange = (input, context) => {
673
+ return smithyClient.take(input, {
674
+ beginDateInclusive: (_) => _.getTime() / 1_000,
675
+ endDateInclusive: (_) => _.getTime() / 1_000,
676
+ });
980
677
  };
981
-
982
- // src/commands/CreateBillingViewCommand.ts
983
-
984
-
985
-
986
- var CreateBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
987
- return [
988
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
989
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
990
- ];
991
- }).s("AWSBilling", "CreateBillingView", {}).n("BillingClient", "CreateBillingViewCommand").f(CreateBillingViewRequestFilterSensitiveLog, void 0).ser(se_CreateBillingViewCommand).de(de_CreateBillingViewCommand).build() {
992
- static {
993
- __name(this, "CreateBillingViewCommand");
994
- }
678
+ const se_UpdateBillingViewRequest = (input, context) => {
679
+ return smithyClient.take(input, {
680
+ arn: [],
681
+ dataFilterExpression: (_) => se_Expression(_),
682
+ description: [],
683
+ name: [],
684
+ });
995
685
  };
996
-
997
- // src/commands/DeleteBillingViewCommand.ts
998
-
999
-
1000
-
1001
- var DeleteBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1002
- return [
1003
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1004
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1005
- ];
1006
- }).s("AWSBilling", "DeleteBillingView", {}).n("BillingClient", "DeleteBillingViewCommand").f(void 0, void 0).ser(se_DeleteBillingViewCommand).de(de_DeleteBillingViewCommand).build() {
1007
- static {
1008
- __name(this, "DeleteBillingViewCommand");
1009
- }
686
+ const de_BillingViewElement = (output, context) => {
687
+ return smithyClient.take(output, {
688
+ arn: smithyClient.expectString,
689
+ billingViewType: smithyClient.expectString,
690
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
691
+ dataFilterExpression: (_) => de_Expression(_),
692
+ derivedViewCount: smithyClient.expectInt32,
693
+ description: smithyClient.expectString,
694
+ healthStatus: smithyClient._json,
695
+ name: smithyClient.expectString,
696
+ ownerAccountId: smithyClient.expectString,
697
+ sourceAccountId: smithyClient.expectString,
698
+ sourceViewCount: smithyClient.expectInt32,
699
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
700
+ viewDefinitionLastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
701
+ });
1010
702
  };
1011
-
1012
- // src/commands/DisassociateSourceViewsCommand.ts
1013
-
1014
-
1015
-
1016
- var DisassociateSourceViewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1017
- return [
1018
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1019
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1020
- ];
1021
- }).s("AWSBilling", "DisassociateSourceViews", {}).n("BillingClient", "DisassociateSourceViewsCommand").f(void 0, void 0).ser(se_DisassociateSourceViewsCommand).de(de_DisassociateSourceViewsCommand).build() {
1022
- static {
1023
- __name(this, "DisassociateSourceViewsCommand");
1024
- }
703
+ const de_CreateBillingViewResponse = (output, context) => {
704
+ return smithyClient.take(output, {
705
+ arn: smithyClient.expectString,
706
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
707
+ });
1025
708
  };
1026
-
1027
- // src/commands/GetBillingViewCommand.ts
1028
-
1029
-
1030
-
1031
- var GetBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1032
- return [
1033
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1034
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1035
- ];
1036
- }).s("AWSBilling", "GetBillingView", {}).n("BillingClient", "GetBillingViewCommand").f(void 0, GetBillingViewResponseFilterSensitiveLog).ser(se_GetBillingViewCommand).de(de_GetBillingViewCommand).build() {
1037
- static {
1038
- __name(this, "GetBillingViewCommand");
1039
- }
709
+ const de_Expression = (output, context) => {
710
+ return smithyClient.take(output, {
711
+ dimensions: smithyClient._json,
712
+ tags: smithyClient._json,
713
+ timeRange: (_) => de_TimeRange(_),
714
+ });
1040
715
  };
1041
-
1042
- // src/commands/GetResourcePolicyCommand.ts
1043
-
1044
-
1045
-
1046
- var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1047
- return [
1048
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1049
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1050
- ];
1051
- }).s("AWSBilling", "GetResourcePolicy", {}).n("BillingClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
1052
- static {
1053
- __name(this, "GetResourcePolicyCommand");
1054
- }
716
+ const de_GetBillingViewResponse = (output, context) => {
717
+ return smithyClient.take(output, {
718
+ billingView: (_) => de_BillingViewElement(_),
719
+ });
1055
720
  };
1056
-
1057
- // src/commands/ListBillingViewsCommand.ts
1058
-
1059
-
1060
-
1061
- var ListBillingViewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1062
- return [
1063
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1064
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1065
- ];
1066
- }).s("AWSBilling", "ListBillingViews", {}).n("BillingClient", "ListBillingViewsCommand").f(void 0, ListBillingViewsResponseFilterSensitiveLog).ser(se_ListBillingViewsCommand).de(de_ListBillingViewsCommand).build() {
1067
- static {
1068
- __name(this, "ListBillingViewsCommand");
1069
- }
721
+ const de_TimeRange = (output, context) => {
722
+ return smithyClient.take(output, {
723
+ beginDateInclusive: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
724
+ endDateInclusive: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
725
+ });
1070
726
  };
1071
-
1072
- // src/commands/ListSourceViewsForBillingViewCommand.ts
1073
-
1074
-
1075
-
1076
- var ListSourceViewsForBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1077
- return [
1078
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1079
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1080
- ];
1081
- }).s("AWSBilling", "ListSourceViewsForBillingView", {}).n("BillingClient", "ListSourceViewsForBillingViewCommand").f(void 0, void 0).ser(se_ListSourceViewsForBillingViewCommand).de(de_ListSourceViewsForBillingViewCommand).build() {
1082
- static {
1083
- __name(this, "ListSourceViewsForBillingViewCommand");
1084
- }
727
+ const de_UpdateBillingViewResponse = (output, context) => {
728
+ return smithyClient.take(output, {
729
+ arn: smithyClient.expectString,
730
+ updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
731
+ });
1085
732
  };
1086
-
1087
- // src/commands/ListTagsForResourceCommand.ts
1088
-
1089
-
1090
-
1091
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1092
- return [
1093
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1094
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1095
- ];
1096
- }).s("AWSBilling", "ListTagsForResource", {}).n("BillingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1097
- static {
1098
- __name(this, "ListTagsForResourceCommand");
1099
- }
733
+ const deserializeMetadata = (output) => ({
734
+ httpStatusCode: output.statusCode,
735
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
736
+ extendedRequestId: output.headers["x-amz-id-2"],
737
+ cfId: output.headers["x-amz-cf-id"],
738
+ });
739
+ const throwDefaultError = smithyClient.withBaseException(BillingServiceException);
740
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
741
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
742
+ const contents = {
743
+ protocol,
744
+ hostname,
745
+ port,
746
+ method: "POST",
747
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
748
+ headers,
749
+ };
750
+ if (body !== undefined) {
751
+ contents.body = body;
752
+ }
753
+ return new protocolHttp.HttpRequest(contents);
1100
754
  };
755
+ function sharedHeaders(operation) {
756
+ return {
757
+ "content-type": "application/x-amz-json-1.0",
758
+ "x-amz-target": `AWSBilling.${operation}`,
759
+ };
760
+ }
1101
761
 
1102
- // src/commands/TagResourceCommand.ts
762
+ class AssociateSourceViewsCommand extends smithyClient.Command
763
+ .classBuilder()
764
+ .ep(commonParams)
765
+ .m(function (Command, cs, config, o) {
766
+ return [
767
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
768
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
769
+ ];
770
+ })
771
+ .s("AWSBilling", "AssociateSourceViews", {})
772
+ .n("BillingClient", "AssociateSourceViewsCommand")
773
+ .f(void 0, void 0)
774
+ .ser(se_AssociateSourceViewsCommand)
775
+ .de(de_AssociateSourceViewsCommand)
776
+ .build() {
777
+ }
1103
778
 
779
+ class CreateBillingViewCommand extends smithyClient.Command
780
+ .classBuilder()
781
+ .ep(commonParams)
782
+ .m(function (Command, cs, config, o) {
783
+ return [
784
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
785
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
786
+ ];
787
+ })
788
+ .s("AWSBilling", "CreateBillingView", {})
789
+ .n("BillingClient", "CreateBillingViewCommand")
790
+ .f(CreateBillingViewRequestFilterSensitiveLog, void 0)
791
+ .ser(se_CreateBillingViewCommand)
792
+ .de(de_CreateBillingViewCommand)
793
+ .build() {
794
+ }
1104
795
 
796
+ class DeleteBillingViewCommand extends smithyClient.Command
797
+ .classBuilder()
798
+ .ep(commonParams)
799
+ .m(function (Command, cs, config, o) {
800
+ return [
801
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
802
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
803
+ ];
804
+ })
805
+ .s("AWSBilling", "DeleteBillingView", {})
806
+ .n("BillingClient", "DeleteBillingViewCommand")
807
+ .f(void 0, void 0)
808
+ .ser(se_DeleteBillingViewCommand)
809
+ .de(de_DeleteBillingViewCommand)
810
+ .build() {
811
+ }
1105
812
 
1106
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1107
- return [
1108
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1109
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1110
- ];
1111
- }).s("AWSBilling", "TagResource", {}).n("BillingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1112
- static {
1113
- __name(this, "TagResourceCommand");
1114
- }
1115
- };
813
+ class DisassociateSourceViewsCommand extends smithyClient.Command
814
+ .classBuilder()
815
+ .ep(commonParams)
816
+ .m(function (Command, cs, config, o) {
817
+ return [
818
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
819
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
820
+ ];
821
+ })
822
+ .s("AWSBilling", "DisassociateSourceViews", {})
823
+ .n("BillingClient", "DisassociateSourceViewsCommand")
824
+ .f(void 0, void 0)
825
+ .ser(se_DisassociateSourceViewsCommand)
826
+ .de(de_DisassociateSourceViewsCommand)
827
+ .build() {
828
+ }
1116
829
 
1117
- // src/commands/UntagResourceCommand.ts
830
+ class GetBillingViewCommand extends smithyClient.Command
831
+ .classBuilder()
832
+ .ep(commonParams)
833
+ .m(function (Command, cs, config, o) {
834
+ return [
835
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
836
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
837
+ ];
838
+ })
839
+ .s("AWSBilling", "GetBillingView", {})
840
+ .n("BillingClient", "GetBillingViewCommand")
841
+ .f(void 0, GetBillingViewResponseFilterSensitiveLog)
842
+ .ser(se_GetBillingViewCommand)
843
+ .de(de_GetBillingViewCommand)
844
+ .build() {
845
+ }
1118
846
 
847
+ class GetResourcePolicyCommand extends smithyClient.Command
848
+ .classBuilder()
849
+ .ep(commonParams)
850
+ .m(function (Command, cs, config, o) {
851
+ return [
852
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
853
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
854
+ ];
855
+ })
856
+ .s("AWSBilling", "GetResourcePolicy", {})
857
+ .n("BillingClient", "GetResourcePolicyCommand")
858
+ .f(void 0, void 0)
859
+ .ser(se_GetResourcePolicyCommand)
860
+ .de(de_GetResourcePolicyCommand)
861
+ .build() {
862
+ }
1119
863
 
864
+ class ListBillingViewsCommand extends smithyClient.Command
865
+ .classBuilder()
866
+ .ep(commonParams)
867
+ .m(function (Command, cs, config, o) {
868
+ return [
869
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
870
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
871
+ ];
872
+ })
873
+ .s("AWSBilling", "ListBillingViews", {})
874
+ .n("BillingClient", "ListBillingViewsCommand")
875
+ .f(void 0, ListBillingViewsResponseFilterSensitiveLog)
876
+ .ser(se_ListBillingViewsCommand)
877
+ .de(de_ListBillingViewsCommand)
878
+ .build() {
879
+ }
1120
880
 
1121
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1122
- return [
1123
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1124
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1125
- ];
1126
- }).s("AWSBilling", "UntagResource", {}).n("BillingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1127
- static {
1128
- __name(this, "UntagResourceCommand");
1129
- }
1130
- };
881
+ class ListSourceViewsForBillingViewCommand extends smithyClient.Command
882
+ .classBuilder()
883
+ .ep(commonParams)
884
+ .m(function (Command, cs, config, o) {
885
+ return [
886
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
887
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
888
+ ];
889
+ })
890
+ .s("AWSBilling", "ListSourceViewsForBillingView", {})
891
+ .n("BillingClient", "ListSourceViewsForBillingViewCommand")
892
+ .f(void 0, void 0)
893
+ .ser(se_ListSourceViewsForBillingViewCommand)
894
+ .de(de_ListSourceViewsForBillingViewCommand)
895
+ .build() {
896
+ }
1131
897
 
1132
- // src/commands/UpdateBillingViewCommand.ts
898
+ class ListTagsForResourceCommand extends smithyClient.Command
899
+ .classBuilder()
900
+ .ep(commonParams)
901
+ .m(function (Command, cs, config, o) {
902
+ return [
903
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
904
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
905
+ ];
906
+ })
907
+ .s("AWSBilling", "ListTagsForResource", {})
908
+ .n("BillingClient", "ListTagsForResourceCommand")
909
+ .f(void 0, void 0)
910
+ .ser(se_ListTagsForResourceCommand)
911
+ .de(de_ListTagsForResourceCommand)
912
+ .build() {
913
+ }
1133
914
 
915
+ class TagResourceCommand extends smithyClient.Command
916
+ .classBuilder()
917
+ .ep(commonParams)
918
+ .m(function (Command, cs, config, o) {
919
+ return [
920
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
921
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
922
+ ];
923
+ })
924
+ .s("AWSBilling", "TagResource", {})
925
+ .n("BillingClient", "TagResourceCommand")
926
+ .f(void 0, void 0)
927
+ .ser(se_TagResourceCommand)
928
+ .de(de_TagResourceCommand)
929
+ .build() {
930
+ }
1134
931
 
932
+ class UntagResourceCommand extends smithyClient.Command
933
+ .classBuilder()
934
+ .ep(commonParams)
935
+ .m(function (Command, cs, config, o) {
936
+ return [
937
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
938
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
939
+ ];
940
+ })
941
+ .s("AWSBilling", "UntagResource", {})
942
+ .n("BillingClient", "UntagResourceCommand")
943
+ .f(void 0, void 0)
944
+ .ser(se_UntagResourceCommand)
945
+ .de(de_UntagResourceCommand)
946
+ .build() {
947
+ }
1135
948
 
1136
- var UpdateBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1137
- return [
1138
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1139
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1140
- ];
1141
- }).s("AWSBilling", "UpdateBillingView", {}).n("BillingClient", "UpdateBillingViewCommand").f(UpdateBillingViewRequestFilterSensitiveLog, void 0).ser(se_UpdateBillingViewCommand).de(de_UpdateBillingViewCommand).build() {
1142
- static {
1143
- __name(this, "UpdateBillingViewCommand");
1144
- }
1145
- };
949
+ class UpdateBillingViewCommand extends smithyClient.Command
950
+ .classBuilder()
951
+ .ep(commonParams)
952
+ .m(function (Command, cs, config, o) {
953
+ return [
954
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
955
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
956
+ ];
957
+ })
958
+ .s("AWSBilling", "UpdateBillingView", {})
959
+ .n("BillingClient", "UpdateBillingViewCommand")
960
+ .f(UpdateBillingViewRequestFilterSensitiveLog, void 0)
961
+ .ser(se_UpdateBillingViewCommand)
962
+ .de(de_UpdateBillingViewCommand)
963
+ .build() {
964
+ }
1146
965
 
1147
- // src/Billing.ts
1148
- var commands = {
1149
- AssociateSourceViewsCommand,
1150
- CreateBillingViewCommand,
1151
- DeleteBillingViewCommand,
1152
- DisassociateSourceViewsCommand,
1153
- GetBillingViewCommand,
1154
- GetResourcePolicyCommand,
1155
- ListBillingViewsCommand,
1156
- ListSourceViewsForBillingViewCommand,
1157
- ListTagsForResourceCommand,
1158
- TagResourceCommand,
1159
- UntagResourceCommand,
1160
- UpdateBillingViewCommand
1161
- };
1162
- var Billing = class extends BillingClient {
1163
- static {
1164
- __name(this, "Billing");
1165
- }
966
+ const commands = {
967
+ AssociateSourceViewsCommand,
968
+ CreateBillingViewCommand,
969
+ DeleteBillingViewCommand,
970
+ DisassociateSourceViewsCommand,
971
+ GetBillingViewCommand,
972
+ GetResourcePolicyCommand,
973
+ ListBillingViewsCommand,
974
+ ListSourceViewsForBillingViewCommand,
975
+ ListTagsForResourceCommand,
976
+ TagResourceCommand,
977
+ UntagResourceCommand,
978
+ UpdateBillingViewCommand,
1166
979
  };
1167
- (0, import_smithy_client.createAggregatedClient)(commands, Billing);
1168
-
1169
- // src/pagination/ListBillingViewsPaginator.ts
1170
-
1171
- var paginateListBillingViews = (0, import_core.createPaginator)(BillingClient, ListBillingViewsCommand, "nextToken", "nextToken", "maxResults");
980
+ class Billing extends BillingClient {
981
+ }
982
+ smithyClient.createAggregatedClient(commands, Billing);
1172
983
 
1173
- // src/pagination/ListSourceViewsForBillingViewPaginator.ts
984
+ const paginateListBillingViews = core.createPaginator(BillingClient, ListBillingViewsCommand, "nextToken", "nextToken", "maxResults");
1174
985
 
1175
- var paginateListSourceViewsForBillingView = (0, import_core.createPaginator)(BillingClient, ListSourceViewsForBillingViewCommand, "nextToken", "nextToken", "maxResults");
1176
- // Annotate the CommonJS export names for ESM import in node:
986
+ const paginateListSourceViewsForBillingView = core.createPaginator(BillingClient, ListSourceViewsForBillingViewCommand, "nextToken", "nextToken", "maxResults");
1177
987
 
1178
- 0 && (module.exports = {
1179
- BillingServiceException,
1180
- __Client,
1181
- BillingClient,
1182
- Billing,
1183
- $Command,
1184
- AssociateSourceViewsCommand,
1185
- CreateBillingViewCommand,
1186
- DeleteBillingViewCommand,
1187
- DisassociateSourceViewsCommand,
1188
- GetBillingViewCommand,
1189
- GetResourcePolicyCommand,
1190
- ListBillingViewsCommand,
1191
- ListSourceViewsForBillingViewCommand,
1192
- ListTagsForResourceCommand,
1193
- TagResourceCommand,
1194
- UntagResourceCommand,
1195
- UpdateBillingViewCommand,
1196
- paginateListBillingViews,
1197
- paginateListSourceViewsForBillingView,
1198
- AccessDeniedException,
1199
- BillingViewHealthStatusException,
1200
- ConflictException,
1201
- InternalServerException,
1202
- ResourceNotFoundException,
1203
- ServiceQuotaExceededException,
1204
- ThrottlingException,
1205
- ValidationExceptionReason,
1206
- ValidationException,
1207
- Dimension,
1208
- BillingViewType,
1209
- BillingViewStatus,
1210
- BillingViewStatusReason,
1211
- CreateBillingViewRequestFilterSensitiveLog,
1212
- BillingViewElementFilterSensitiveLog,
1213
- GetBillingViewResponseFilterSensitiveLog,
1214
- BillingViewListElementFilterSensitiveLog,
1215
- ListBillingViewsResponseFilterSensitiveLog,
1216
- UpdateBillingViewRequestFilterSensitiveLog
988
+ Object.defineProperty(exports, "$Command", {
989
+ enumerable: true,
990
+ get: function () { return smithyClient.Command; }
1217
991
  });
1218
-
992
+ Object.defineProperty(exports, "__Client", {
993
+ enumerable: true,
994
+ get: function () { return smithyClient.Client; }
995
+ });
996
+ exports.AccessDeniedException = AccessDeniedException;
997
+ exports.AssociateSourceViewsCommand = AssociateSourceViewsCommand;
998
+ exports.Billing = Billing;
999
+ exports.BillingClient = BillingClient;
1000
+ exports.BillingServiceException = BillingServiceException;
1001
+ exports.BillingViewElementFilterSensitiveLog = BillingViewElementFilterSensitiveLog;
1002
+ exports.BillingViewHealthStatusException = BillingViewHealthStatusException;
1003
+ exports.BillingViewListElementFilterSensitiveLog = BillingViewListElementFilterSensitiveLog;
1004
+ exports.BillingViewStatus = BillingViewStatus;
1005
+ exports.BillingViewStatusReason = BillingViewStatusReason;
1006
+ exports.BillingViewType = BillingViewType;
1007
+ exports.ConflictException = ConflictException;
1008
+ exports.CreateBillingViewCommand = CreateBillingViewCommand;
1009
+ exports.CreateBillingViewRequestFilterSensitiveLog = CreateBillingViewRequestFilterSensitiveLog;
1010
+ exports.DeleteBillingViewCommand = DeleteBillingViewCommand;
1011
+ exports.Dimension = Dimension;
1012
+ exports.DisassociateSourceViewsCommand = DisassociateSourceViewsCommand;
1013
+ exports.GetBillingViewCommand = GetBillingViewCommand;
1014
+ exports.GetBillingViewResponseFilterSensitiveLog = GetBillingViewResponseFilterSensitiveLog;
1015
+ exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1016
+ exports.InternalServerException = InternalServerException;
1017
+ exports.ListBillingViewsCommand = ListBillingViewsCommand;
1018
+ exports.ListBillingViewsResponseFilterSensitiveLog = ListBillingViewsResponseFilterSensitiveLog;
1019
+ exports.ListSourceViewsForBillingViewCommand = ListSourceViewsForBillingViewCommand;
1020
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1021
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1022
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1023
+ exports.TagResourceCommand = TagResourceCommand;
1024
+ exports.ThrottlingException = ThrottlingException;
1025
+ exports.UntagResourceCommand = UntagResourceCommand;
1026
+ exports.UpdateBillingViewCommand = UpdateBillingViewCommand;
1027
+ exports.UpdateBillingViewRequestFilterSensitiveLog = UpdateBillingViewRequestFilterSensitiveLog;
1028
+ exports.ValidationException = ValidationException;
1029
+ exports.ValidationExceptionReason = ValidationExceptionReason;
1030
+ exports.paginateListBillingViews = paginateListBillingViews;
1031
+ exports.paginateListSourceViewsForBillingView = paginateListSourceViewsForBillingView;