@aws-sdk/client-billingconductor 3.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +215 -0
- package/dist-cjs/Billingconductor.js +457 -0
- package/dist-cjs/BillingconductorClient.js +35 -0
- package/dist-cjs/commands/AssociateAccountsCommand.js +36 -0
- package/dist-cjs/commands/AssociatePricingRulesCommand.js +36 -0
- package/dist-cjs/commands/BatchAssociateResourcesToCustomLineItemCommand.js +36 -0
- package/dist-cjs/commands/BatchDisassociateResourcesFromCustomLineItemCommand.js +36 -0
- package/dist-cjs/commands/CreateBillingGroupCommand.js +36 -0
- package/dist-cjs/commands/CreateCustomLineItemCommand.js +36 -0
- package/dist-cjs/commands/CreatePricingPlanCommand.js +36 -0
- package/dist-cjs/commands/CreatePricingRuleCommand.js +36 -0
- package/dist-cjs/commands/DeleteBillingGroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteCustomLineItemCommand.js +36 -0
- package/dist-cjs/commands/DeletePricingPlanCommand.js +36 -0
- package/dist-cjs/commands/DeletePricingRuleCommand.js +36 -0
- package/dist-cjs/commands/DisassociateAccountsCommand.js +36 -0
- package/dist-cjs/commands/DisassociatePricingRulesCommand.js +36 -0
- package/dist-cjs/commands/ListAccountAssociationsCommand.js +36 -0
- package/dist-cjs/commands/ListBillingGroupCostReportsCommand.js +36 -0
- package/dist-cjs/commands/ListBillingGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListCustomLineItemsCommand.js +36 -0
- package/dist-cjs/commands/ListPricingPlansAssociatedWithPricingRuleCommand.js +36 -0
- package/dist-cjs/commands/ListPricingPlansCommand.js +36 -0
- package/dist-cjs/commands/ListPricingRulesAssociatedToPricingPlanCommand.js +36 -0
- package/dist-cjs/commands/ListPricingRulesCommand.js +36 -0
- package/dist-cjs/commands/ListResourcesAssociatedToCustomLineItemCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateBillingGroupCommand.js +36 -0
- package/dist-cjs/commands/UpdateCustomLineItemCommand.js +36 -0
- package/dist-cjs/commands/UpdatePricingPlanCommand.js +36 -0
- package/dist-cjs/commands/UpdatePricingRuleCommand.js +36 -0
- package/dist-cjs/commands/index.js +33 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/BillingconductorServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +792 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAccountAssociationsPaginator.js +34 -0
- package/dist-cjs/pagination/ListBillingGroupCostReportsPaginator.js +35 -0
- package/dist-cjs/pagination/ListBillingGroupsPaginator.js +35 -0
- package/dist-cjs/pagination/ListCustomLineItemsPaginator.js +35 -0
- package/dist-cjs/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +35 -0
- package/dist-cjs/pagination/ListPricingPlansPaginator.js +35 -0
- package/dist-cjs/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +35 -0
- package/dist-cjs/pagination/ListPricingRulesPaginator.js +35 -0
- package/dist-cjs/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +13 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3178 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/Billingconductor.js +460 -0
- package/dist-es/BillingconductorClient.js +37 -0
- package/dist-es/commands/AssociateAccountsCommand.js +39 -0
- package/dist-es/commands/AssociatePricingRulesCommand.js +39 -0
- package/dist-es/commands/BatchAssociateResourcesToCustomLineItemCommand.js +39 -0
- package/dist-es/commands/BatchDisassociateResourcesFromCustomLineItemCommand.js +39 -0
- package/dist-es/commands/CreateBillingGroupCommand.js +39 -0
- package/dist-es/commands/CreateCustomLineItemCommand.js +39 -0
- package/dist-es/commands/CreatePricingPlanCommand.js +39 -0
- package/dist-es/commands/CreatePricingRuleCommand.js +39 -0
- package/dist-es/commands/DeleteBillingGroupCommand.js +39 -0
- package/dist-es/commands/DeleteCustomLineItemCommand.js +39 -0
- package/dist-es/commands/DeletePricingPlanCommand.js +39 -0
- package/dist-es/commands/DeletePricingRuleCommand.js +39 -0
- package/dist-es/commands/DisassociateAccountsCommand.js +39 -0
- package/dist-es/commands/DisassociatePricingRulesCommand.js +39 -0
- package/dist-es/commands/ListAccountAssociationsCommand.js +39 -0
- package/dist-es/commands/ListBillingGroupCostReportsCommand.js +39 -0
- package/dist-es/commands/ListBillingGroupsCommand.js +39 -0
- package/dist-es/commands/ListCustomLineItemsCommand.js +39 -0
- package/dist-es/commands/ListPricingPlansAssociatedWithPricingRuleCommand.js +39 -0
- package/dist-es/commands/ListPricingPlansCommand.js +39 -0
- package/dist-es/commands/ListPricingRulesAssociatedToPricingPlanCommand.js +39 -0
- package/dist-es/commands/ListPricingRulesCommand.js +39 -0
- package/dist-es/commands/ListResourcesAssociatedToCustomLineItemCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateBillingGroupCommand.js +39 -0
- package/dist-es/commands/UpdateCustomLineItemCommand.js +39 -0
- package/dist-es/commands/UpdatePricingPlanCommand.js +39 -0
- package/dist-es/commands/UpdatePricingRuleCommand.js +39 -0
- package/dist-es/commands/index.js +30 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/BillingconductorServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +560 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccountAssociationsPaginator.js +73 -0
- package/dist-es/pagination/ListBillingGroupCostReportsPaginator.js +74 -0
- package/dist-es/pagination/ListBillingGroupsPaginator.js +74 -0
- package/dist-es/pagination/ListCustomLineItemsPaginator.js +74 -0
- package/dist-es/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +74 -0
- package/dist-es/pagination/ListPricingPlansPaginator.js +74 -0
- package/dist-es/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +74 -0
- package/dist-es/pagination/ListPricingRulesPaginator.js +74 -0
- package/dist-es/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +74 -0
- package/dist-es/pagination/index.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +3850 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/Billingconductor.d.ts +283 -0
- package/dist-types/BillingconductorClient.d.ts +186 -0
- package/dist-types/commands/AssociateAccountsCommand.d.ts +38 -0
- package/dist-types/commands/AssociatePricingRulesCommand.d.ts +36 -0
- package/dist-types/commands/BatchAssociateResourcesToCustomLineItemCommand.d.ts +37 -0
- package/dist-types/commands/BatchDisassociateResourcesFromCustomLineItemCommand.d.ts +37 -0
- package/dist-types/commands/CreateBillingGroupCommand.d.ts +37 -0
- package/dist-types/commands/CreateCustomLineItemCommand.d.ts +37 -0
- package/dist-types/commands/CreatePricingPlanCommand.d.ts +36 -0
- package/dist-types/commands/CreatePricingRuleCommand.d.ts +37 -0
- package/dist-types/commands/DeleteBillingGroupCommand.d.ts +37 -0
- package/dist-types/commands/DeleteCustomLineItemCommand.d.ts +37 -0
- package/dist-types/commands/DeletePricingPlanCommand.d.ts +36 -0
- package/dist-types/commands/DeletePricingRuleCommand.d.ts +35 -0
- package/dist-types/commands/DisassociateAccountsCommand.d.ts +35 -0
- package/dist-types/commands/DisassociatePricingRulesCommand.d.ts +37 -0
- package/dist-types/commands/ListAccountAssociationsCommand.d.ts +43 -0
- package/dist-types/commands/ListBillingGroupCostReportsCommand.d.ts +36 -0
- package/dist-types/commands/ListBillingGroupsCommand.d.ts +35 -0
- package/dist-types/commands/ListCustomLineItemsCommand.d.ts +37 -0
- package/dist-types/commands/ListPricingPlansAssociatedWithPricingRuleCommand.d.ts +37 -0
- package/dist-types/commands/ListPricingPlansCommand.d.ts +36 -0
- package/dist-types/commands/ListPricingRulesAssociatedToPricingPlanCommand.d.ts +37 -0
- package/dist-types/commands/ListPricingRulesCommand.d.ts +37 -0
- package/dist-types/commands/ListResourcesAssociatedToCustomLineItemCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateBillingGroupCommand.d.ts +36 -0
- package/dist-types/commands/UpdateCustomLineItemCommand.d.ts +37 -0
- package/dist-types/commands/UpdatePricingPlanCommand.d.ts +36 -0
- package/dist-types/commands/UpdatePricingRuleCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +30 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/BillingconductorServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2576 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAccountAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListBillingGroupCostReportsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListBillingGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCustomLineItemsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +4 -0
- package/dist-types/pagination/ListPricingPlansPaginator.d.ts +4 -0
- package/dist-types/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +4 -0
- package/dist-types/pagination/ListPricingRulesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/Billingconductor.d.ts +155 -0
- package/dist-types/ts3.4/BillingconductorClient.d.ts +103 -0
- package/dist-types/ts3.4/commands/AssociateAccountsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AssociatePricingRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchAssociateResourcesToCustomLineItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/BatchDisassociateResourcesFromCustomLineItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateBillingGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateCustomLineItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePricingPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreatePricingRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBillingGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteCustomLineItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePricingPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeletePricingRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateAccountsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociatePricingRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAccountAssociationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBillingGroupCostReportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBillingGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCustomLineItemsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPricingPlansAssociatedWithPricingRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPricingPlansCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPricingRulesAssociatedToPricingPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListPricingRulesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListResourcesAssociatedToCustomLineItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateBillingGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateCustomLineItemCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePricingPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdatePricingRuleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +30 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/BillingconductorServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1266 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAccountAssociationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBillingGroupCostReportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBillingGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCustomLineItemsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPricingPlansPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListPricingRulesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +95 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
9
|
+
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
|
|
12
|
+
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
13
|
+
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
|
+
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
|
+
const getRuntimeConfig = (config) => {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
|
+
return {
|
|
24
|
+
...clientSharedValues,
|
|
25
|
+
...config,
|
|
26
|
+
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
28
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
29
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_base64_node_1 = require("@aws-sdk/util-base64-node");
|
|
14
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const getRuntimeConfig = (config) => {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
|
+
return {
|
|
26
|
+
...clientSharedValues,
|
|
27
|
+
...config,
|
|
28
|
+
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
30
|
+
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
|
+
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
|
+
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
42
|
+
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
|
+
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
|
+
return {
|
|
10
|
+
...browserDefaults,
|
|
11
|
+
...config,
|
|
12
|
+
runtime: "react-native",
|
|
13
|
+
sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
var _a, _b, _c, _d, _e;
|
|
8
|
+
return ({
|
|
9
|
+
apiVersion: "2021-07-30",
|
|
10
|
+
disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
|
|
11
|
+
logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
|
|
12
|
+
regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
|
|
13
|
+
serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "billingconductor",
|
|
14
|
+
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { BillingconductorClient } from "./BillingconductorClient";
|
|
3
|
+
import { AssociateAccountsCommand, } from "./commands/AssociateAccountsCommand";
|
|
4
|
+
import { AssociatePricingRulesCommand, } from "./commands/AssociatePricingRulesCommand";
|
|
5
|
+
import { BatchAssociateResourcesToCustomLineItemCommand, } from "./commands/BatchAssociateResourcesToCustomLineItemCommand";
|
|
6
|
+
import { BatchDisassociateResourcesFromCustomLineItemCommand, } from "./commands/BatchDisassociateResourcesFromCustomLineItemCommand";
|
|
7
|
+
import { CreateBillingGroupCommand, } from "./commands/CreateBillingGroupCommand";
|
|
8
|
+
import { CreateCustomLineItemCommand, } from "./commands/CreateCustomLineItemCommand";
|
|
9
|
+
import { CreatePricingPlanCommand, } from "./commands/CreatePricingPlanCommand";
|
|
10
|
+
import { CreatePricingRuleCommand, } from "./commands/CreatePricingRuleCommand";
|
|
11
|
+
import { DeleteBillingGroupCommand, } from "./commands/DeleteBillingGroupCommand";
|
|
12
|
+
import { DeleteCustomLineItemCommand, } from "./commands/DeleteCustomLineItemCommand";
|
|
13
|
+
import { DeletePricingPlanCommand, } from "./commands/DeletePricingPlanCommand";
|
|
14
|
+
import { DeletePricingRuleCommand, } from "./commands/DeletePricingRuleCommand";
|
|
15
|
+
import { DisassociateAccountsCommand, } from "./commands/DisassociateAccountsCommand";
|
|
16
|
+
import { DisassociatePricingRulesCommand, } from "./commands/DisassociatePricingRulesCommand";
|
|
17
|
+
import { ListAccountAssociationsCommand, } from "./commands/ListAccountAssociationsCommand";
|
|
18
|
+
import { ListBillingGroupCostReportsCommand, } from "./commands/ListBillingGroupCostReportsCommand";
|
|
19
|
+
import { ListBillingGroupsCommand, } from "./commands/ListBillingGroupsCommand";
|
|
20
|
+
import { ListCustomLineItemsCommand, } from "./commands/ListCustomLineItemsCommand";
|
|
21
|
+
import { ListPricingPlansAssociatedWithPricingRuleCommand, } from "./commands/ListPricingPlansAssociatedWithPricingRuleCommand";
|
|
22
|
+
import { ListPricingPlansCommand, } from "./commands/ListPricingPlansCommand";
|
|
23
|
+
import { ListPricingRulesAssociatedToPricingPlanCommand, } from "./commands/ListPricingRulesAssociatedToPricingPlanCommand";
|
|
24
|
+
import { ListPricingRulesCommand, } from "./commands/ListPricingRulesCommand";
|
|
25
|
+
import { ListResourcesAssociatedToCustomLineItemCommand, } from "./commands/ListResourcesAssociatedToCustomLineItemCommand";
|
|
26
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
27
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
28
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
29
|
+
import { UpdateBillingGroupCommand, } from "./commands/UpdateBillingGroupCommand";
|
|
30
|
+
import { UpdateCustomLineItemCommand, } from "./commands/UpdateCustomLineItemCommand";
|
|
31
|
+
import { UpdatePricingPlanCommand, } from "./commands/UpdatePricingPlanCommand";
|
|
32
|
+
import { UpdatePricingRuleCommand, } from "./commands/UpdatePricingRuleCommand";
|
|
33
|
+
var Billingconductor = (function (_super) {
|
|
34
|
+
__extends(Billingconductor, _super);
|
|
35
|
+
function Billingconductor() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
Billingconductor.prototype.associateAccounts = function (args, optionsOrCb, cb) {
|
|
39
|
+
var command = new AssociateAccountsCommand(args);
|
|
40
|
+
if (typeof optionsOrCb === "function") {
|
|
41
|
+
this.send(command, optionsOrCb);
|
|
42
|
+
}
|
|
43
|
+
else if (typeof cb === "function") {
|
|
44
|
+
if (typeof optionsOrCb !== "object")
|
|
45
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
46
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return this.send(command, optionsOrCb);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
Billingconductor.prototype.associatePricingRules = function (args, optionsOrCb, cb) {
|
|
53
|
+
var command = new AssociatePricingRulesCommand(args);
|
|
54
|
+
if (typeof optionsOrCb === "function") {
|
|
55
|
+
this.send(command, optionsOrCb);
|
|
56
|
+
}
|
|
57
|
+
else if (typeof cb === "function") {
|
|
58
|
+
if (typeof optionsOrCb !== "object")
|
|
59
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
60
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return this.send(command, optionsOrCb);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Billingconductor.prototype.batchAssociateResourcesToCustomLineItem = function (args, optionsOrCb, cb) {
|
|
67
|
+
var command = new BatchAssociateResourcesToCustomLineItemCommand(args);
|
|
68
|
+
if (typeof optionsOrCb === "function") {
|
|
69
|
+
this.send(command, optionsOrCb);
|
|
70
|
+
}
|
|
71
|
+
else if (typeof cb === "function") {
|
|
72
|
+
if (typeof optionsOrCb !== "object")
|
|
73
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
74
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
return this.send(command, optionsOrCb);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
Billingconductor.prototype.batchDisassociateResourcesFromCustomLineItem = function (args, optionsOrCb, cb) {
|
|
81
|
+
var command = new BatchDisassociateResourcesFromCustomLineItemCommand(args);
|
|
82
|
+
if (typeof optionsOrCb === "function") {
|
|
83
|
+
this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
else if (typeof cb === "function") {
|
|
86
|
+
if (typeof optionsOrCb !== "object")
|
|
87
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
88
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return this.send(command, optionsOrCb);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
Billingconductor.prototype.createBillingGroup = function (args, optionsOrCb, cb) {
|
|
95
|
+
var command = new CreateBillingGroupCommand(args);
|
|
96
|
+
if (typeof optionsOrCb === "function") {
|
|
97
|
+
this.send(command, optionsOrCb);
|
|
98
|
+
}
|
|
99
|
+
else if (typeof cb === "function") {
|
|
100
|
+
if (typeof optionsOrCb !== "object")
|
|
101
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
102
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return this.send(command, optionsOrCb);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
Billingconductor.prototype.createCustomLineItem = function (args, optionsOrCb, cb) {
|
|
109
|
+
var command = new CreateCustomLineItemCommand(args);
|
|
110
|
+
if (typeof optionsOrCb === "function") {
|
|
111
|
+
this.send(command, optionsOrCb);
|
|
112
|
+
}
|
|
113
|
+
else if (typeof cb === "function") {
|
|
114
|
+
if (typeof optionsOrCb !== "object")
|
|
115
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
116
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
return this.send(command, optionsOrCb);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
Billingconductor.prototype.createPricingPlan = function (args, optionsOrCb, cb) {
|
|
123
|
+
var command = new CreatePricingPlanCommand(args);
|
|
124
|
+
if (typeof optionsOrCb === "function") {
|
|
125
|
+
this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
else if (typeof cb === "function") {
|
|
128
|
+
if (typeof optionsOrCb !== "object")
|
|
129
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
130
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return this.send(command, optionsOrCb);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
Billingconductor.prototype.createPricingRule = function (args, optionsOrCb, cb) {
|
|
137
|
+
var command = new CreatePricingRuleCommand(args);
|
|
138
|
+
if (typeof optionsOrCb === "function") {
|
|
139
|
+
this.send(command, optionsOrCb);
|
|
140
|
+
}
|
|
141
|
+
else if (typeof cb === "function") {
|
|
142
|
+
if (typeof optionsOrCb !== "object")
|
|
143
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
144
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
return this.send(command, optionsOrCb);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
Billingconductor.prototype.deleteBillingGroup = function (args, optionsOrCb, cb) {
|
|
151
|
+
var command = new DeleteBillingGroupCommand(args);
|
|
152
|
+
if (typeof optionsOrCb === "function") {
|
|
153
|
+
this.send(command, optionsOrCb);
|
|
154
|
+
}
|
|
155
|
+
else if (typeof cb === "function") {
|
|
156
|
+
if (typeof optionsOrCb !== "object")
|
|
157
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
158
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
return this.send(command, optionsOrCb);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
Billingconductor.prototype.deleteCustomLineItem = function (args, optionsOrCb, cb) {
|
|
165
|
+
var command = new DeleteCustomLineItemCommand(args);
|
|
166
|
+
if (typeof optionsOrCb === "function") {
|
|
167
|
+
this.send(command, optionsOrCb);
|
|
168
|
+
}
|
|
169
|
+
else if (typeof cb === "function") {
|
|
170
|
+
if (typeof optionsOrCb !== "object")
|
|
171
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
172
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return this.send(command, optionsOrCb);
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
Billingconductor.prototype.deletePricingPlan = function (args, optionsOrCb, cb) {
|
|
179
|
+
var command = new DeletePricingPlanCommand(args);
|
|
180
|
+
if (typeof optionsOrCb === "function") {
|
|
181
|
+
this.send(command, optionsOrCb);
|
|
182
|
+
}
|
|
183
|
+
else if (typeof cb === "function") {
|
|
184
|
+
if (typeof optionsOrCb !== "object")
|
|
185
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
186
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
return this.send(command, optionsOrCb);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
Billingconductor.prototype.deletePricingRule = function (args, optionsOrCb, cb) {
|
|
193
|
+
var command = new DeletePricingRuleCommand(args);
|
|
194
|
+
if (typeof optionsOrCb === "function") {
|
|
195
|
+
this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
else if (typeof cb === "function") {
|
|
198
|
+
if (typeof optionsOrCb !== "object")
|
|
199
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
200
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
return this.send(command, optionsOrCb);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
Billingconductor.prototype.disassociateAccounts = function (args, optionsOrCb, cb) {
|
|
207
|
+
var command = new DisassociateAccountsCommand(args);
|
|
208
|
+
if (typeof optionsOrCb === "function") {
|
|
209
|
+
this.send(command, optionsOrCb);
|
|
210
|
+
}
|
|
211
|
+
else if (typeof cb === "function") {
|
|
212
|
+
if (typeof optionsOrCb !== "object")
|
|
213
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
214
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
return this.send(command, optionsOrCb);
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
Billingconductor.prototype.disassociatePricingRules = function (args, optionsOrCb, cb) {
|
|
221
|
+
var command = new DisassociatePricingRulesCommand(args);
|
|
222
|
+
if (typeof optionsOrCb === "function") {
|
|
223
|
+
this.send(command, optionsOrCb);
|
|
224
|
+
}
|
|
225
|
+
else if (typeof cb === "function") {
|
|
226
|
+
if (typeof optionsOrCb !== "object")
|
|
227
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
228
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
return this.send(command, optionsOrCb);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
Billingconductor.prototype.listAccountAssociations = function (args, optionsOrCb, cb) {
|
|
235
|
+
var command = new ListAccountAssociationsCommand(args);
|
|
236
|
+
if (typeof optionsOrCb === "function") {
|
|
237
|
+
this.send(command, optionsOrCb);
|
|
238
|
+
}
|
|
239
|
+
else if (typeof cb === "function") {
|
|
240
|
+
if (typeof optionsOrCb !== "object")
|
|
241
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
242
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
return this.send(command, optionsOrCb);
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
Billingconductor.prototype.listBillingGroupCostReports = function (args, optionsOrCb, cb) {
|
|
249
|
+
var command = new ListBillingGroupCostReportsCommand(args);
|
|
250
|
+
if (typeof optionsOrCb === "function") {
|
|
251
|
+
this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
else if (typeof cb === "function") {
|
|
254
|
+
if (typeof optionsOrCb !== "object")
|
|
255
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
256
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return this.send(command, optionsOrCb);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
Billingconductor.prototype.listBillingGroups = function (args, optionsOrCb, cb) {
|
|
263
|
+
var command = new ListBillingGroupsCommand(args);
|
|
264
|
+
if (typeof optionsOrCb === "function") {
|
|
265
|
+
this.send(command, optionsOrCb);
|
|
266
|
+
}
|
|
267
|
+
else if (typeof cb === "function") {
|
|
268
|
+
if (typeof optionsOrCb !== "object")
|
|
269
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
270
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
return this.send(command, optionsOrCb);
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
Billingconductor.prototype.listCustomLineItems = function (args, optionsOrCb, cb) {
|
|
277
|
+
var command = new ListCustomLineItemsCommand(args);
|
|
278
|
+
if (typeof optionsOrCb === "function") {
|
|
279
|
+
this.send(command, optionsOrCb);
|
|
280
|
+
}
|
|
281
|
+
else if (typeof cb === "function") {
|
|
282
|
+
if (typeof optionsOrCb !== "object")
|
|
283
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
284
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
return this.send(command, optionsOrCb);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
Billingconductor.prototype.listPricingPlans = function (args, optionsOrCb, cb) {
|
|
291
|
+
var command = new ListPricingPlansCommand(args);
|
|
292
|
+
if (typeof optionsOrCb === "function") {
|
|
293
|
+
this.send(command, optionsOrCb);
|
|
294
|
+
}
|
|
295
|
+
else if (typeof cb === "function") {
|
|
296
|
+
if (typeof optionsOrCb !== "object")
|
|
297
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
298
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
return this.send(command, optionsOrCb);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
Billingconductor.prototype.listPricingPlansAssociatedWithPricingRule = function (args, optionsOrCb, cb) {
|
|
305
|
+
var command = new ListPricingPlansAssociatedWithPricingRuleCommand(args);
|
|
306
|
+
if (typeof optionsOrCb === "function") {
|
|
307
|
+
this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
else if (typeof cb === "function") {
|
|
310
|
+
if (typeof optionsOrCb !== "object")
|
|
311
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
312
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
return this.send(command, optionsOrCb);
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
Billingconductor.prototype.listPricingRules = function (args, optionsOrCb, cb) {
|
|
319
|
+
var command = new ListPricingRulesCommand(args);
|
|
320
|
+
if (typeof optionsOrCb === "function") {
|
|
321
|
+
this.send(command, optionsOrCb);
|
|
322
|
+
}
|
|
323
|
+
else if (typeof cb === "function") {
|
|
324
|
+
if (typeof optionsOrCb !== "object")
|
|
325
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
326
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
return this.send(command, optionsOrCb);
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
Billingconductor.prototype.listPricingRulesAssociatedToPricingPlan = function (args, optionsOrCb, cb) {
|
|
333
|
+
var command = new ListPricingRulesAssociatedToPricingPlanCommand(args);
|
|
334
|
+
if (typeof optionsOrCb === "function") {
|
|
335
|
+
this.send(command, optionsOrCb);
|
|
336
|
+
}
|
|
337
|
+
else if (typeof cb === "function") {
|
|
338
|
+
if (typeof optionsOrCb !== "object")
|
|
339
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
340
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
return this.send(command, optionsOrCb);
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
Billingconductor.prototype.listResourcesAssociatedToCustomLineItem = function (args, optionsOrCb, cb) {
|
|
347
|
+
var command = new ListResourcesAssociatedToCustomLineItemCommand(args);
|
|
348
|
+
if (typeof optionsOrCb === "function") {
|
|
349
|
+
this.send(command, optionsOrCb);
|
|
350
|
+
}
|
|
351
|
+
else if (typeof cb === "function") {
|
|
352
|
+
if (typeof optionsOrCb !== "object")
|
|
353
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
354
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
return this.send(command, optionsOrCb);
|
|
358
|
+
}
|
|
359
|
+
};
|
|
360
|
+
Billingconductor.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
361
|
+
var command = new ListTagsForResourceCommand(args);
|
|
362
|
+
if (typeof optionsOrCb === "function") {
|
|
363
|
+
this.send(command, optionsOrCb);
|
|
364
|
+
}
|
|
365
|
+
else if (typeof cb === "function") {
|
|
366
|
+
if (typeof optionsOrCb !== "object")
|
|
367
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
368
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
return this.send(command, optionsOrCb);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
Billingconductor.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
375
|
+
var command = new TagResourceCommand(args);
|
|
376
|
+
if (typeof optionsOrCb === "function") {
|
|
377
|
+
this.send(command, optionsOrCb);
|
|
378
|
+
}
|
|
379
|
+
else if (typeof cb === "function") {
|
|
380
|
+
if (typeof optionsOrCb !== "object")
|
|
381
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
382
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
return this.send(command, optionsOrCb);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
Billingconductor.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
389
|
+
var command = new UntagResourceCommand(args);
|
|
390
|
+
if (typeof optionsOrCb === "function") {
|
|
391
|
+
this.send(command, optionsOrCb);
|
|
392
|
+
}
|
|
393
|
+
else if (typeof cb === "function") {
|
|
394
|
+
if (typeof optionsOrCb !== "object")
|
|
395
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
396
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
return this.send(command, optionsOrCb);
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
Billingconductor.prototype.updateBillingGroup = function (args, optionsOrCb, cb) {
|
|
403
|
+
var command = new UpdateBillingGroupCommand(args);
|
|
404
|
+
if (typeof optionsOrCb === "function") {
|
|
405
|
+
this.send(command, optionsOrCb);
|
|
406
|
+
}
|
|
407
|
+
else if (typeof cb === "function") {
|
|
408
|
+
if (typeof optionsOrCb !== "object")
|
|
409
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
410
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
return this.send(command, optionsOrCb);
|
|
414
|
+
}
|
|
415
|
+
};
|
|
416
|
+
Billingconductor.prototype.updateCustomLineItem = function (args, optionsOrCb, cb) {
|
|
417
|
+
var command = new UpdateCustomLineItemCommand(args);
|
|
418
|
+
if (typeof optionsOrCb === "function") {
|
|
419
|
+
this.send(command, optionsOrCb);
|
|
420
|
+
}
|
|
421
|
+
else if (typeof cb === "function") {
|
|
422
|
+
if (typeof optionsOrCb !== "object")
|
|
423
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
424
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
return this.send(command, optionsOrCb);
|
|
428
|
+
}
|
|
429
|
+
};
|
|
430
|
+
Billingconductor.prototype.updatePricingPlan = function (args, optionsOrCb, cb) {
|
|
431
|
+
var command = new UpdatePricingPlanCommand(args);
|
|
432
|
+
if (typeof optionsOrCb === "function") {
|
|
433
|
+
this.send(command, optionsOrCb);
|
|
434
|
+
}
|
|
435
|
+
else if (typeof cb === "function") {
|
|
436
|
+
if (typeof optionsOrCb !== "object")
|
|
437
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
438
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
return this.send(command, optionsOrCb);
|
|
442
|
+
}
|
|
443
|
+
};
|
|
444
|
+
Billingconductor.prototype.updatePricingRule = function (args, optionsOrCb, cb) {
|
|
445
|
+
var command = new UpdatePricingRuleCommand(args);
|
|
446
|
+
if (typeof optionsOrCb === "function") {
|
|
447
|
+
this.send(command, optionsOrCb);
|
|
448
|
+
}
|
|
449
|
+
else if (typeof cb === "function") {
|
|
450
|
+
if (typeof optionsOrCb !== "object")
|
|
451
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
452
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
return this.send(command, optionsOrCb);
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
return Billingconductor;
|
|
459
|
+
}(BillingconductorClient));
|
|
460
|
+
export { Billingconductor };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
8
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var BillingconductorClient = (function (_super) {
|
|
12
|
+
__extends(BillingconductorClient, _super);
|
|
13
|
+
function BillingconductorClient(configuration) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
17
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
18
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
19
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
20
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
21
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
22
|
+
_this = _super.call(this, _config_6) || this;
|
|
23
|
+
_this.config = _config_6;
|
|
24
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
25
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
BillingconductorClient.prototype.destroy = function () {
|
|
33
|
+
_super.prototype.destroy.call(this);
|
|
34
|
+
};
|
|
35
|
+
return BillingconductorClient;
|
|
36
|
+
}(__Client));
|
|
37
|
+
export { BillingconductorClient };
|