/var/runtime/node_modules/@aws-sdk/client-billing/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { AccessDeniedException: () => AccessDeniedException, Billing: () => Billing, BillingClient: () => BillingClient, BillingServiceException: () => BillingServiceException, BillingViewElementFilterSensitiveLog: () => BillingViewElementFilterSensitiveLog, BillingViewListElementFilterSensitiveLog: () => BillingViewListElementFilterSensitiveLog, BillingViewType: () => BillingViewType, ConflictException: () => ConflictException, CreateBillingViewCommand: () => CreateBillingViewCommand, CreateBillingViewRequestFilterSensitiveLog: () => CreateBillingViewRequestFilterSensitiveLog, DeleteBillingViewCommand: () => DeleteBillingViewCommand, Dimension: () => Dimension, GetBillingViewCommand: () => GetBillingViewCommand, GetBillingViewResponseFilterSensitiveLog: () => GetBillingViewResponseFilterSensitiveLog, GetResourcePolicyCommand: () => GetResourcePolicyCommand, InternalServerException: () => InternalServerException, ListBillingViewsCommand: () => ListBillingViewsCommand, ListBillingViewsResponseFilterSensitiveLog: () => ListBillingViewsResponseFilterSensitiveLog, ListSourceViewsForBillingViewCommand: () => ListSourceViewsForBillingViewCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, ResourceNotFoundException: () => ResourceNotFoundException, ServiceQuotaExceededException: () => ServiceQuotaExceededException, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, UntagResourceCommand: () => UntagResourceCommand, UpdateBillingViewCommand: () => UpdateBillingViewCommand, UpdateBillingViewRequestFilterSensitiveLog: () => UpdateBillingViewRequestFilterSensitiveLog, ValidationException: () => ValidationException, ValidationExceptionReason: () => ValidationExceptionReason, __Client: () => import_smithy_client.Client, paginateListBillingViews: () => paginateListBillingViews, paginateListSourceViewsForBillingView: () => paginateListSourceViewsForBillingView});module.exports = __toCommonJS(index_exports); // src/BillingClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "billing" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/BillingClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/BillingClient.tsvar BillingClient = class extends import_smithy_client.Client { static { __name(this, "BillingClient"); } /** * The resolved configuration of BillingClient class. This is resolved and normalized from the {@link BillingClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBillingHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/Billing.ts // src/commands/CreateBillingViewCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/models/models_0.ts // src/models/BillingServiceException.ts var BillingServiceException = class _BillingServiceException extends import_smithy_client.ServiceException { static { __name(this, "BillingServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _BillingServiceException.prototype); }}; // src/models/models_0.tsvar AccessDeniedException = class _AccessDeniedException extends BillingServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); }};var ConflictException = class _ConflictException extends BillingServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; /** * <p> The identifier for the service resource associated with the request. </p> * @public */ resourceId; /** * <p> The type of resource associated with the request. </p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }};var Dimension = { LINKED_ACCOUNT: "LINKED_ACCOUNT"};var InternalServerException = class _InternalServerException extends BillingServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); }};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BillingServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; /** * <p> The ID of the resource. </p> * @public */ resourceId; /** * <p> The type of Amazon Web Services resource. </p> * @public */ resourceType; /** * <p> The container for the <code>serviceCode</code>. </p> * @public */ serviceCode; /** * <p> The container for the <code>quotaCode</code>. </p> * @public */ quotaCode; /** * @internal */ constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; this.serviceCode = opts.serviceCode; this.quotaCode = opts.quotaCode; }};var ThrottlingException = class _ThrottlingException extends BillingServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); }};var ValidationExceptionReason = { CANNOT_PARSE: "cannotParse", FIELD_VALIDATION_FAILED: "fieldValidationFailed", OTHER: "other", UNKNOWN_OPERATION: "unknownOperation"};var ValidationException = class _ValidationException extends BillingServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; /** * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p> * @public */ reason; /** * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p> * @public */ fieldList; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.reason = opts.reason; this.fieldList = opts.fieldList; }};var BillingViewType = { BILLING_GROUP: "BILLING_GROUP", CUSTOM: "CUSTOM", PRIMARY: "PRIMARY"};var ResourceNotFoundException = class _ResourceNotFoundException extends BillingServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * <p> Value is a list of resource IDs that were not found. </p> * @public */ resourceId; /** * <p> Value is the type of resource that was not found. </p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }};var CreateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }, ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }}), "CreateBillingViewRequestFilterSensitiveLog");var BillingViewElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }, ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }}), "BillingViewElementFilterSensitiveLog");var GetBillingViewResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.billingView && { billingView: BillingViewElementFilterSensitiveLog(obj.billingView) }}), "GetBillingViewResponseFilterSensitiveLog");var BillingViewListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }, ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }}), "BillingViewListElementFilterSensitiveLog");var ListBillingViewsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.billingViews && { billingViews: obj.billingViews.map((item) => BillingViewListElementFilterSensitiveLog(item)) }}), "ListBillingViewsResponseFilterSensitiveLog");var UpdateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.name && { name: import_smithy_client.SENSITIVE_STRING }, ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }}), "UpdateBillingViewRequestFilterSensitiveLog"); // src/protocols/Aws_json1_0.tsvar import_core2 = require("@aws-sdk/core"); var import_uuid = require("uuid");var se_CreateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("CreateBillingView"); let body; body = JSON.stringify(se_CreateBillingViewRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_CreateBillingViewCommand");var se_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DeleteBillingView"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DeleteBillingViewCommand");var se_GetBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("GetBillingView"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_GetBillingViewCommand");var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("GetResourcePolicy"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_GetResourcePolicyCommand");var se_ListBillingViewsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListBillingViews"); let body; body = JSON.stringify(se_ListBillingViewsRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListBillingViewsCommand");var se_ListSourceViewsForBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListSourceViewsForBillingView"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListSourceViewsForBillingViewCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListTagsForResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListTagsForResourceCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("TagResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UntagResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UntagResourceCommand");var se_UpdateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UpdateBillingView"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UpdateBillingViewCommand");var de_CreateBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_CreateBillingViewResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_CreateBillingViewCommand");var de_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DeleteBillingViewCommand");var de_GetBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_GetBillingViewResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_GetBillingViewCommand");var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_GetResourcePolicyCommand");var de_ListBillingViewsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListBillingViewsCommand");var de_ListSourceViewsForBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListSourceViewsForBillingViewCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListTagsForResourceCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UntagResourceCommand");var de_UpdateBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_UpdateBillingViewResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UpdateBillingViewCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.billing#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.billing#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.billing#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.billing#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.billing#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.billing#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.billing#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_AccessDeniedExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ConflictException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ConflictExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_InternalServerExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ServiceQuotaExceededException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ServiceQuotaExceededExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ThrottlingExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ValidationException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ValidationExceptionRes");var se_ActiveTimeRange = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { activeAfterInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "activeAfterInclusive"), activeBeforeInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "activeBeforeInclusive") });}, "se_ActiveTimeRange");var se_CreateBillingViewRequest = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], dataFilterExpression: import_smithy_client._json, description: [], name: [], resourceTags: import_smithy_client._json, sourceViews: import_smithy_client._json });}, "se_CreateBillingViewRequest");var se_ListBillingViewsRequest = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { activeTimeRange: /* @__PURE__ */ __name((_) => se_ActiveTimeRange(_, context), "activeTimeRange"), arns: import_smithy_client._json, billingViewTypes: import_smithy_client._json, maxResults: [], nextToken: [], ownerAccountId: [] });}, "se_ListBillingViewsRequest");var de_BillingViewElement = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { arn: import_smithy_client.expectString, billingViewType: import_smithy_client.expectString, createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"), dataFilterExpression: import_smithy_client._json, description: import_smithy_client.expectString, name: import_smithy_client.expectString, ownerAccountId: import_smithy_client.expectString, updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt") });}, "de_BillingViewElement");var de_CreateBillingViewResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { arn: import_smithy_client.expectString, createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt") });}, "de_CreateBillingViewResponse");var de_GetBillingViewResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { billingView: /* @__PURE__ */ __name((_) => de_BillingViewElement(_, context), "billingView") });}, "de_GetBillingViewResponse");var de_UpdateBillingViewResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { arn: import_smithy_client.expectString, updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt") });}, "de_UpdateBillingViewResponse");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var throwDefaultError = (0, import_smithy_client.withBaseException)(BillingServiceException);var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const contents = { protocol, hostname, port, method: "POST", path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, headers }; if (resolvedHostname !== void 0) { contents.hostname = resolvedHostname; } if (body !== void 0) { contents.body = body; } return new import_protocol_http.HttpRequest(contents);}, "buildHttpRpcRequest");function sharedHeaders(operation) { return { "content-type": "application/x-amz-json-1.0", "x-amz-target": `AWSBilling.${operation}` };}__name(sharedHeaders, "sharedHeaders"); // src/commands/CreateBillingViewCommand.tsvar CreateBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "CreateBillingView", {}).n("BillingClient", "CreateBillingViewCommand").f(CreateBillingViewRequestFilterSensitiveLog, void 0).ser(se_CreateBillingViewCommand).de(de_CreateBillingViewCommand).build() { static { __name(this, "CreateBillingViewCommand"); }}; // src/commands/DeleteBillingViewCommand.ts var DeleteBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "DeleteBillingView", {}).n("BillingClient", "DeleteBillingViewCommand").f(void 0, void 0).ser(se_DeleteBillingViewCommand).de(de_DeleteBillingViewCommand).build() { static { __name(this, "DeleteBillingViewCommand"); }}; // src/commands/GetBillingViewCommand.ts var GetBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "GetBillingView", {}).n("BillingClient", "GetBillingViewCommand").f(void 0, GetBillingViewResponseFilterSensitiveLog).ser(se_GetBillingViewCommand).de(de_GetBillingViewCommand).build() { static { __name(this, "GetBillingViewCommand"); }}; // src/commands/GetResourcePolicyCommand.ts var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "GetResourcePolicy", {}).n("BillingClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() { static { __name(this, "GetResourcePolicyCommand"); }}; // src/commands/ListBillingViewsCommand.ts var ListBillingViewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "ListBillingViews", {}).n("BillingClient", "ListBillingViewsCommand").f(void 0, ListBillingViewsResponseFilterSensitiveLog).ser(se_ListBillingViewsCommand).de(de_ListBillingViewsCommand).build() { static { __name(this, "ListBillingViewsCommand"); }}; // src/commands/ListSourceViewsForBillingViewCommand.ts var ListSourceViewsForBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "ListSourceViewsForBillingView", {}).n("BillingClient", "ListSourceViewsForBillingViewCommand").f(void 0, void 0).ser(se_ListSourceViewsForBillingViewCommand).de(de_ListSourceViewsForBillingViewCommand).build() { static { __name(this, "ListSourceViewsForBillingViewCommand"); }}; // src/commands/ListTagsForResourceCommand.ts var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "ListTagsForResource", {}).n("BillingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/TagResourceCommand.ts var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "TagResource", {}).n("BillingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() { static { __name(this, "TagResourceCommand"); }}; // src/commands/UntagResourceCommand.ts var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "UntagResource", {}).n("BillingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateBillingViewCommand.ts var UpdateBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSBilling", "UpdateBillingView", {}).n("BillingClient", "UpdateBillingViewCommand").f(UpdateBillingViewRequestFilterSensitiveLog, void 0).ser(se_UpdateBillingViewCommand).de(de_UpdateBillingViewCommand).build() { static { __name(this, "UpdateBillingViewCommand"); }}; // src/Billing.tsvar commands = { CreateBillingViewCommand, DeleteBillingViewCommand, GetBillingViewCommand, GetResourcePolicyCommand, ListBillingViewsCommand, ListSourceViewsForBillingViewCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateBillingViewCommand};var Billing = class extends BillingClient { static { __name(this, "Billing"); }};(0, import_smithy_client.createAggregatedClient)(commands, Billing); // src/pagination/ListBillingViewsPaginator.ts var paginateListBillingViews = (0, import_core.createPaginator)(BillingClient, ListBillingViewsCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListSourceViewsForBillingViewPaginator.ts var paginateListSourceViewsForBillingView = (0, import_core.createPaginator)(BillingClient, ListSourceViewsForBillingViewCommand, "nextToken", "nextToken", "maxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { BillingServiceException, __Client, BillingClient, Billing, $Command, CreateBillingViewCommand, DeleteBillingViewCommand, GetBillingViewCommand, GetResourcePolicyCommand, ListBillingViewsCommand, ListSourceViewsForBillingViewCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateBillingViewCommand, paginateListBillingViews, paginateListSourceViewsForBillingView, AccessDeniedException, ConflictException, Dimension, InternalServerException, ServiceQuotaExceededException, ThrottlingException, ValidationExceptionReason, ValidationException, BillingViewType, ResourceNotFoundException, CreateBillingViewRequestFilterSensitiveLog, BillingViewElementFilterSensitiveLog, GetBillingViewResponseFilterSensitiveLog, BillingViewListElementFilterSensitiveLog, ListBillingViewsResponseFilterSensitiveLog, UpdateBillingViewRequestFilterSensitiveLog});