@aws-sdk/client-cost-explorer 3.45.0 → 3.47.2
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 +44 -0
- package/dist-cjs/models/models_0.js +4 -64
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/models/models_0.js +0 -40
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/CostExplorerClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +0 -60
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/CostExplorerClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +0 -40
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +39 -46
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-cost-explorer
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-cost-explorer
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
44
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
7
51
|
|
|
8
52
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.DescribeCostCategoryDefinitionResponse = exports.UpdateCostCategoryDefinitionRequest = exports.GetAnomalyMonitorsResponse = exports.CreateCostCategoryDefinitionRequest = exports.CostCategory = exports.CreateAnomalyMonitorRequest = exports.GetUsageForecastRequest = exports.GetTagsRequest = exports.GetSavingsPlansUtilizationRequest = exports.GetSavingsPlansUtilizationDetailsRequest = exports.GetSavingsPlansPurchaseRecommendationRequest = exports.GetSavingsPlansCoverageRequest = exports.GetRightsizingRecommendationRequest = exports.GetReservationUtilizationRequest = exports.GetReservationPurchaseRecommendationRequest = exports.GetReservationCoverageRequest = exports.GetDimensionValuesRequest = exports.GetCostForecastRequest = exports.GetCostCategoriesRequest =
|
|
3
|
+
exports.GroupDefinitionType = exports.Granularity = exports.GetAnomalySubscriptionsResponse = exports.GetAnomalySubscriptionsRequest = exports.GetAnomalyMonitorsRequest = exports.GetAnomaliesResponse = exports.GetAnomaliesRequest = exports.TotalImpactFilter = exports.NumericOperator = exports.CostCategoryProcessingStatus = exports.CostCategoryStatus = exports.CostCategoryStatusComponent = exports.DescribeCostCategoryDefinitionRequest = exports.DeleteCostCategoryDefinitionResponse = exports.DeleteCostCategoryDefinitionRequest = exports.DeleteAnomalySubscriptionResponse = exports.DeleteAnomalySubscriptionRequest = exports.DeleteAnomalyMonitorResponse = exports.DeleteAnomalyMonitorRequest = exports.CreateCostCategoryDefinitionResponse = exports.CostCategorySplitChargeRule = exports.CostCategorySplitChargeRuleParameter = exports.CostCategorySplitChargeRuleParameterType = exports.CostCategorySplitChargeMethod = exports.CostCategoryRuleVersion = exports.CostCategoryRuleType = exports.CostCategoryInheritedValueDimension = exports.CostCategoryInheritedValueDimensionName = exports.CreateAnomalySubscriptionResponse = exports.CreateAnomalySubscriptionRequest = exports.CreateAnomalyMonitorResponse = exports.AnomalySubscription = exports.Subscriber = exports.SubscriberType = exports.SubscriberStatus = exports.AnomalySubscriptionFrequency = exports.MonitorType = exports.TagValues = exports.DimensionValues = exports.Dimension = exports.CostCategoryValues = exports.MatchOption = exports.MonitorDimension = exports.AnomalyDateInterval = exports.Anomaly = exports.RootCause = exports.Impact = exports.AnomalyFeedbackType = exports.AnomalyScore = exports.AccountScope = void 0;
|
|
4
|
+
exports.DiskResourceUtilization = exports.ResourceDetails = exports.EC2ResourceDetails = exports.RightsizingRecommendationMetadata = exports.RightsizingRecommendationConfiguration = exports.RecommendationTarget = exports.GetReservationUtilizationResponse = exports.UtilizationByTime = exports.ReservationUtilizationGroup = exports.ReservationAggregates = exports.GetReservationPurchaseRecommendationResponse = exports.ReservationPurchaseRecommendation = exports.ReservationPurchaseRecommendationSummary = exports.ReservationPurchaseRecommendationDetail = exports.InstanceDetails = exports.RedshiftInstanceDetails = exports.RDSInstanceDetails = exports.ESInstanceDetails = exports.ElastiCacheInstanceDetails = exports.EC2InstanceDetails = exports.ReservationPurchaseRecommendationMetadata = exports.TermInYears = exports.ServiceSpecification = exports.EC2Specification = exports.OfferingClass = exports.PaymentOption = exports.LookbackPeriodInDays = exports.GetReservationCoverageResponse = exports.CoverageByTime = exports.ReservationCoverageGroup = exports.Coverage = exports.CoverageNormalizedUnits = exports.CoverageHours = exports.CoverageCost = exports.GetDimensionValuesResponse = exports.Context = exports.GetCostForecastResponse = exports.ForecastResult = exports.Metric = exports.GetCostCategoriesResponse = exports.SortDefinition = exports.SortOrder = exports.GetCostAndUsageWithResourcesResponse = exports.GetCostAndUsageResponse = exports.ResultByTime = exports.Group = exports.MetricValue = exports.DimensionValuesWithAttributes = exports.DateInterval = exports.GroupDefinition = void 0;
|
|
5
|
+
exports.GetCostAndUsageWithResourcesRequest = exports.GetCostAndUsageRequest = exports.CostCategoryRule = exports.AnomalyMonitor = exports.Expression = exports.UpdateCostCategoryDefinitionResponse = exports.UpdateAnomalySubscriptionResponse = exports.UpdateAnomalySubscriptionRequest = exports.UpdateAnomalyMonitorResponse = exports.UpdateAnomalyMonitorRequest = exports.ProvideAnomalyFeedbackResponse = exports.ProvideAnomalyFeedbackRequest = exports.ListCostCategoryDefinitionsResponse = exports.CostCategoryReference = exports.ListCostCategoryDefinitionsRequest = exports.GetUsageForecastResponse = exports.GetTagsResponse = exports.GetSavingsPlansUtilizationDetailsResponse = exports.SavingsPlansUtilizationDetail = exports.SavingsPlansDataType = exports.GetSavingsPlansUtilizationResponse = exports.SavingsPlansUtilizationAggregates = exports.SavingsPlansUtilizationByTime = exports.SavingsPlansUtilization = exports.SavingsPlansSavings = exports.SavingsPlansAmortizedCommitment = exports.GetSavingsPlansPurchaseRecommendationResponse = exports.SavingsPlansPurchaseRecommendation = exports.SavingsPlansPurchaseRecommendationSummary = exports.SavingsPlansPurchaseRecommendationDetail = exports.SavingsPlansDetails = exports.SavingsPlansPurchaseRecommendationMetadata = exports.SupportedSavingsPlansType = exports.GetSavingsPlansCoverageResponse = exports.SavingsPlansCoverage = exports.SavingsPlansCoverageData = exports.GetRightsizingRecommendationResponse = exports.RightsizingRecommendationSummary = exports.RightsizingRecommendation = exports.TerminateRecommendationDetail = exports.RightsizingType = exports.ModifyRecommendationDetail = exports.TargetInstance = exports.PlatformDifference = exports.FindingReasonCode = exports.CurrentInstance = exports.ResourceUtilization = exports.EC2ResourceUtilization = exports.NetworkResourceUtilization = exports.EBSResourceUtilization = void 0;
|
|
6
|
+
exports.DescribeCostCategoryDefinitionResponse = exports.UpdateCostCategoryDefinitionRequest = exports.GetAnomalyMonitorsResponse = exports.CreateCostCategoryDefinitionRequest = exports.CostCategory = exports.CreateAnomalyMonitorRequest = exports.GetUsageForecastRequest = exports.GetTagsRequest = exports.GetSavingsPlansUtilizationRequest = exports.GetSavingsPlansUtilizationDetailsRequest = exports.GetSavingsPlansPurchaseRecommendationRequest = exports.GetSavingsPlansCoverageRequest = exports.GetRightsizingRecommendationRequest = exports.GetReservationUtilizationRequest = exports.GetReservationPurchaseRecommendationRequest = exports.GetReservationCoverageRequest = exports.GetDimensionValuesRequest = exports.GetCostForecastRequest = exports.GetCostCategoriesRequest = void 0;
|
|
7
7
|
var AccountScope;
|
|
8
8
|
(function (AccountScope) {
|
|
9
9
|
AccountScope["LINKED"] = "LINKED";
|
|
@@ -150,12 +150,6 @@ var CreateAnomalyMonitorResponse;
|
|
|
150
150
|
...obj,
|
|
151
151
|
});
|
|
152
152
|
})(CreateAnomalyMonitorResponse = exports.CreateAnomalyMonitorResponse || (exports.CreateAnomalyMonitorResponse = {}));
|
|
153
|
-
var LimitExceededException;
|
|
154
|
-
(function (LimitExceededException) {
|
|
155
|
-
LimitExceededException.filterSensitiveLog = (obj) => ({
|
|
156
|
-
...obj,
|
|
157
|
-
});
|
|
158
|
-
})(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
|
|
159
153
|
var CreateAnomalySubscriptionRequest;
|
|
160
154
|
(function (CreateAnomalySubscriptionRequest) {
|
|
161
155
|
CreateAnomalySubscriptionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -168,12 +162,6 @@ var CreateAnomalySubscriptionResponse;
|
|
|
168
162
|
...obj,
|
|
169
163
|
});
|
|
170
164
|
})(CreateAnomalySubscriptionResponse = exports.CreateAnomalySubscriptionResponse || (exports.CreateAnomalySubscriptionResponse = {}));
|
|
171
|
-
var UnknownMonitorException;
|
|
172
|
-
(function (UnknownMonitorException) {
|
|
173
|
-
UnknownMonitorException.filterSensitiveLog = (obj) => ({
|
|
174
|
-
...obj,
|
|
175
|
-
});
|
|
176
|
-
})(UnknownMonitorException = exports.UnknownMonitorException || (exports.UnknownMonitorException = {}));
|
|
177
165
|
var CostCategoryInheritedValueDimensionName;
|
|
178
166
|
(function (CostCategoryInheritedValueDimensionName) {
|
|
179
167
|
CostCategoryInheritedValueDimensionName["LINKED_ACCOUNT_NAME"] = "LINKED_ACCOUNT_NAME";
|
|
@@ -222,12 +210,6 @@ var CreateCostCategoryDefinitionResponse;
|
|
|
222
210
|
...obj,
|
|
223
211
|
});
|
|
224
212
|
})(CreateCostCategoryDefinitionResponse = exports.CreateCostCategoryDefinitionResponse || (exports.CreateCostCategoryDefinitionResponse = {}));
|
|
225
|
-
var ServiceQuotaExceededException;
|
|
226
|
-
(function (ServiceQuotaExceededException) {
|
|
227
|
-
ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
|
|
228
|
-
...obj,
|
|
229
|
-
});
|
|
230
|
-
})(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
|
|
231
213
|
var DeleteAnomalyMonitorRequest;
|
|
232
214
|
(function (DeleteAnomalyMonitorRequest) {
|
|
233
215
|
DeleteAnomalyMonitorRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -252,12 +234,6 @@ var DeleteAnomalySubscriptionResponse;
|
|
|
252
234
|
...obj,
|
|
253
235
|
});
|
|
254
236
|
})(DeleteAnomalySubscriptionResponse = exports.DeleteAnomalySubscriptionResponse || (exports.DeleteAnomalySubscriptionResponse = {}));
|
|
255
|
-
var UnknownSubscriptionException;
|
|
256
|
-
(function (UnknownSubscriptionException) {
|
|
257
|
-
UnknownSubscriptionException.filterSensitiveLog = (obj) => ({
|
|
258
|
-
...obj,
|
|
259
|
-
});
|
|
260
|
-
})(UnknownSubscriptionException = exports.UnknownSubscriptionException || (exports.UnknownSubscriptionException = {}));
|
|
261
237
|
var DeleteCostCategoryDefinitionRequest;
|
|
262
238
|
(function (DeleteCostCategoryDefinitionRequest) {
|
|
263
239
|
DeleteCostCategoryDefinitionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -270,12 +246,6 @@ var DeleteCostCategoryDefinitionResponse;
|
|
|
270
246
|
...obj,
|
|
271
247
|
});
|
|
272
248
|
})(DeleteCostCategoryDefinitionResponse = exports.DeleteCostCategoryDefinitionResponse || (exports.DeleteCostCategoryDefinitionResponse = {}));
|
|
273
|
-
var ResourceNotFoundException;
|
|
274
|
-
(function (ResourceNotFoundException) {
|
|
275
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
276
|
-
...obj,
|
|
277
|
-
});
|
|
278
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
279
249
|
var DescribeCostCategoryDefinitionRequest;
|
|
280
250
|
(function (DescribeCostCategoryDefinitionRequest) {
|
|
281
251
|
DescribeCostCategoryDefinitionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -324,12 +294,6 @@ var GetAnomaliesResponse;
|
|
|
324
294
|
...obj,
|
|
325
295
|
});
|
|
326
296
|
})(GetAnomaliesResponse = exports.GetAnomaliesResponse || (exports.GetAnomaliesResponse = {}));
|
|
327
|
-
var InvalidNextTokenException;
|
|
328
|
-
(function (InvalidNextTokenException) {
|
|
329
|
-
InvalidNextTokenException.filterSensitiveLog = (obj) => ({
|
|
330
|
-
...obj,
|
|
331
|
-
});
|
|
332
|
-
})(InvalidNextTokenException = exports.InvalidNextTokenException || (exports.InvalidNextTokenException = {}));
|
|
333
297
|
var GetAnomalyMonitorsRequest;
|
|
334
298
|
(function (GetAnomalyMonitorsRequest) {
|
|
335
299
|
GetAnomalyMonitorsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -348,18 +312,6 @@ var GetAnomalySubscriptionsResponse;
|
|
|
348
312
|
...obj,
|
|
349
313
|
});
|
|
350
314
|
})(GetAnomalySubscriptionsResponse = exports.GetAnomalySubscriptionsResponse || (exports.GetAnomalySubscriptionsResponse = {}));
|
|
351
|
-
var BillExpirationException;
|
|
352
|
-
(function (BillExpirationException) {
|
|
353
|
-
BillExpirationException.filterSensitiveLog = (obj) => ({
|
|
354
|
-
...obj,
|
|
355
|
-
});
|
|
356
|
-
})(BillExpirationException = exports.BillExpirationException || (exports.BillExpirationException = {}));
|
|
357
|
-
var DataUnavailableException;
|
|
358
|
-
(function (DataUnavailableException) {
|
|
359
|
-
DataUnavailableException.filterSensitiveLog = (obj) => ({
|
|
360
|
-
...obj,
|
|
361
|
-
});
|
|
362
|
-
})(DataUnavailableException = exports.DataUnavailableException || (exports.DataUnavailableException = {}));
|
|
363
315
|
var Granularity;
|
|
364
316
|
(function (Granularity) {
|
|
365
317
|
Granularity["DAILY"] = "DAILY";
|
|
@@ -414,12 +366,6 @@ var GetCostAndUsageResponse;
|
|
|
414
366
|
...obj,
|
|
415
367
|
});
|
|
416
368
|
})(GetCostAndUsageResponse = exports.GetCostAndUsageResponse || (exports.GetCostAndUsageResponse = {}));
|
|
417
|
-
var RequestChangedException;
|
|
418
|
-
(function (RequestChangedException) {
|
|
419
|
-
RequestChangedException.filterSensitiveLog = (obj) => ({
|
|
420
|
-
...obj,
|
|
421
|
-
});
|
|
422
|
-
})(RequestChangedException = exports.RequestChangedException || (exports.RequestChangedException = {}));
|
|
423
369
|
var GetCostAndUsageWithResourcesResponse;
|
|
424
370
|
(function (GetCostAndUsageWithResourcesResponse) {
|
|
425
371
|
GetCostAndUsageWithResourcesResponse.filterSensitiveLog = (obj) => ({
|
|
@@ -906,12 +852,6 @@ var GetUsageForecastResponse;
|
|
|
906
852
|
...obj,
|
|
907
853
|
});
|
|
908
854
|
})(GetUsageForecastResponse = exports.GetUsageForecastResponse || (exports.GetUsageForecastResponse = {}));
|
|
909
|
-
var UnresolvableUsageUnitException;
|
|
910
|
-
(function (UnresolvableUsageUnitException) {
|
|
911
|
-
UnresolvableUsageUnitException.filterSensitiveLog = (obj) => ({
|
|
912
|
-
...obj,
|
|
913
|
-
});
|
|
914
|
-
})(UnresolvableUsageUnitException = exports.UnresolvableUsageUnitException || (exports.UnresolvableUsageUnitException = {}));
|
|
915
855
|
var ListCostCategoryDefinitionsRequest;
|
|
916
856
|
(function (ListCostCategoryDefinitionsRequest) {
|
|
917
857
|
ListCostCategoryDefinitionsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
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");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
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),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
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)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
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 : 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
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
@@ -123,10 +123,6 @@ export var CreateAnomalyMonitorResponse;
|
|
|
123
123
|
(function (CreateAnomalyMonitorResponse) {
|
|
124
124
|
CreateAnomalyMonitorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
125
125
|
})(CreateAnomalyMonitorResponse || (CreateAnomalyMonitorResponse = {}));
|
|
126
|
-
export var LimitExceededException;
|
|
127
|
-
(function (LimitExceededException) {
|
|
128
|
-
LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
129
|
-
})(LimitExceededException || (LimitExceededException = {}));
|
|
130
126
|
export var CreateAnomalySubscriptionRequest;
|
|
131
127
|
(function (CreateAnomalySubscriptionRequest) {
|
|
132
128
|
CreateAnomalySubscriptionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -135,10 +131,6 @@ export var CreateAnomalySubscriptionResponse;
|
|
|
135
131
|
(function (CreateAnomalySubscriptionResponse) {
|
|
136
132
|
CreateAnomalySubscriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
137
133
|
})(CreateAnomalySubscriptionResponse || (CreateAnomalySubscriptionResponse = {}));
|
|
138
|
-
export var UnknownMonitorException;
|
|
139
|
-
(function (UnknownMonitorException) {
|
|
140
|
-
UnknownMonitorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
141
|
-
})(UnknownMonitorException || (UnknownMonitorException = {}));
|
|
142
134
|
export var CostCategoryInheritedValueDimensionName;
|
|
143
135
|
(function (CostCategoryInheritedValueDimensionName) {
|
|
144
136
|
CostCategoryInheritedValueDimensionName["LINKED_ACCOUNT_NAME"] = "LINKED_ACCOUNT_NAME";
|
|
@@ -179,10 +171,6 @@ export var CreateCostCategoryDefinitionResponse;
|
|
|
179
171
|
(function (CreateCostCategoryDefinitionResponse) {
|
|
180
172
|
CreateCostCategoryDefinitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
181
173
|
})(CreateCostCategoryDefinitionResponse || (CreateCostCategoryDefinitionResponse = {}));
|
|
182
|
-
export var ServiceQuotaExceededException;
|
|
183
|
-
(function (ServiceQuotaExceededException) {
|
|
184
|
-
ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
|
-
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
|
|
186
174
|
export var DeleteAnomalyMonitorRequest;
|
|
187
175
|
(function (DeleteAnomalyMonitorRequest) {
|
|
188
176
|
DeleteAnomalyMonitorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -199,10 +187,6 @@ export var DeleteAnomalySubscriptionResponse;
|
|
|
199
187
|
(function (DeleteAnomalySubscriptionResponse) {
|
|
200
188
|
DeleteAnomalySubscriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
189
|
})(DeleteAnomalySubscriptionResponse || (DeleteAnomalySubscriptionResponse = {}));
|
|
202
|
-
export var UnknownSubscriptionException;
|
|
203
|
-
(function (UnknownSubscriptionException) {
|
|
204
|
-
UnknownSubscriptionException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
205
|
-
})(UnknownSubscriptionException || (UnknownSubscriptionException = {}));
|
|
206
190
|
export var DeleteCostCategoryDefinitionRequest;
|
|
207
191
|
(function (DeleteCostCategoryDefinitionRequest) {
|
|
208
192
|
DeleteCostCategoryDefinitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -211,10 +195,6 @@ export var DeleteCostCategoryDefinitionResponse;
|
|
|
211
195
|
(function (DeleteCostCategoryDefinitionResponse) {
|
|
212
196
|
DeleteCostCategoryDefinitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
213
197
|
})(DeleteCostCategoryDefinitionResponse || (DeleteCostCategoryDefinitionResponse = {}));
|
|
214
|
-
export var ResourceNotFoundException;
|
|
215
|
-
(function (ResourceNotFoundException) {
|
|
216
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
217
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
218
198
|
export var DescribeCostCategoryDefinitionRequest;
|
|
219
199
|
(function (DescribeCostCategoryDefinitionRequest) {
|
|
220
200
|
DescribeCostCategoryDefinitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -253,10 +233,6 @@ export var GetAnomaliesResponse;
|
|
|
253
233
|
(function (GetAnomaliesResponse) {
|
|
254
234
|
GetAnomaliesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
255
235
|
})(GetAnomaliesResponse || (GetAnomaliesResponse = {}));
|
|
256
|
-
export var InvalidNextTokenException;
|
|
257
|
-
(function (InvalidNextTokenException) {
|
|
258
|
-
InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
259
|
-
})(InvalidNextTokenException || (InvalidNextTokenException = {}));
|
|
260
236
|
export var GetAnomalyMonitorsRequest;
|
|
261
237
|
(function (GetAnomalyMonitorsRequest) {
|
|
262
238
|
GetAnomalyMonitorsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -269,14 +245,6 @@ export var GetAnomalySubscriptionsResponse;
|
|
|
269
245
|
(function (GetAnomalySubscriptionsResponse) {
|
|
270
246
|
GetAnomalySubscriptionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
271
247
|
})(GetAnomalySubscriptionsResponse || (GetAnomalySubscriptionsResponse = {}));
|
|
272
|
-
export var BillExpirationException;
|
|
273
|
-
(function (BillExpirationException) {
|
|
274
|
-
BillExpirationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
275
|
-
})(BillExpirationException || (BillExpirationException = {}));
|
|
276
|
-
export var DataUnavailableException;
|
|
277
|
-
(function (DataUnavailableException) {
|
|
278
|
-
DataUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
279
|
-
})(DataUnavailableException || (DataUnavailableException = {}));
|
|
280
248
|
export var Granularity;
|
|
281
249
|
(function (Granularity) {
|
|
282
250
|
Granularity["DAILY"] = "DAILY";
|
|
@@ -317,10 +285,6 @@ export var GetCostAndUsageResponse;
|
|
|
317
285
|
(function (GetCostAndUsageResponse) {
|
|
318
286
|
GetCostAndUsageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
319
287
|
})(GetCostAndUsageResponse || (GetCostAndUsageResponse = {}));
|
|
320
|
-
export var RequestChangedException;
|
|
321
|
-
(function (RequestChangedException) {
|
|
322
|
-
RequestChangedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
323
|
-
})(RequestChangedException || (RequestChangedException = {}));
|
|
324
288
|
export var GetCostAndUsageWithResourcesResponse;
|
|
325
289
|
(function (GetCostAndUsageWithResourcesResponse) {
|
|
326
290
|
GetCostAndUsageWithResourcesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -677,10 +641,6 @@ export var GetUsageForecastResponse;
|
|
|
677
641
|
(function (GetUsageForecastResponse) {
|
|
678
642
|
GetUsageForecastResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
679
643
|
})(GetUsageForecastResponse || (GetUsageForecastResponse = {}));
|
|
680
|
-
export var UnresolvableUsageUnitException;
|
|
681
|
-
(function (UnresolvableUsageUnitException) {
|
|
682
|
-
UnresolvableUsageUnitException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
683
|
-
})(UnresolvableUsageUnitException || (UnresolvableUsageUnitException = {}));
|
|
684
644
|
export var ListCostCategoryDefinitionsRequest;
|
|
685
645
|
(function (ListCostCategoryDefinitionsRequest) {
|
|
686
646
|
ListCostCategoryDefinitionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateAnomalyMonitorCommandInput, CreateAnomalyMonitorCommandOutput } from "./commands/CreateAnomalyMonitorCommand";
|
|
10
10
|
import { CreateAnomalySubscriptionCommandInput, CreateAnomalySubscriptionCommandOutput } from "./commands/CreateAnomalySubscriptionCommand";
|
|
@@ -138,6 +138,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
138
138
|
* @internal
|
|
139
139
|
*/
|
|
140
140
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
141
|
+
/**
|
|
142
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
143
|
+
*/
|
|
144
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
141
145
|
}
|
|
142
146
|
declare type CostExplorerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
143
147
|
/**
|
|
@@ -386,12 +386,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
386
386
|
$fault: "client";
|
|
387
387
|
Message?: string;
|
|
388
388
|
}
|
|
389
|
-
export declare namespace LimitExceededException {
|
|
390
|
-
/**
|
|
391
|
-
* @internal
|
|
392
|
-
*/
|
|
393
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
394
|
-
}
|
|
395
389
|
export interface CreateAnomalySubscriptionRequest {
|
|
396
390
|
/**
|
|
397
391
|
* <p>The cost anomaly subscription object that you want to create. </p>
|
|
@@ -425,12 +419,6 @@ export interface UnknownMonitorException extends __SmithyException, $MetadataBea
|
|
|
425
419
|
$fault: "client";
|
|
426
420
|
Message?: string;
|
|
427
421
|
}
|
|
428
|
-
export declare namespace UnknownMonitorException {
|
|
429
|
-
/**
|
|
430
|
-
* @internal
|
|
431
|
-
*/
|
|
432
|
-
const filterSensitiveLog: (obj: UnknownMonitorException) => any;
|
|
433
|
-
}
|
|
434
422
|
export declare enum CostCategoryInheritedValueDimensionName {
|
|
435
423
|
LINKED_ACCOUNT_NAME = "LINKED_ACCOUNT_NAME",
|
|
436
424
|
TAG = "TAG"
|
|
@@ -565,12 +553,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
|
|
|
565
553
|
$fault: "client";
|
|
566
554
|
Message?: string;
|
|
567
555
|
}
|
|
568
|
-
export declare namespace ServiceQuotaExceededException {
|
|
569
|
-
/**
|
|
570
|
-
* @internal
|
|
571
|
-
*/
|
|
572
|
-
const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
|
|
573
|
-
}
|
|
574
556
|
export interface DeleteAnomalyMonitorRequest {
|
|
575
557
|
/**
|
|
576
558
|
* <p>The unique identifier of the cost anomaly monitor that you want to delete. </p>
|
|
@@ -620,12 +602,6 @@ export interface UnknownSubscriptionException extends __SmithyException, $Metada
|
|
|
620
602
|
$fault: "client";
|
|
621
603
|
Message?: string;
|
|
622
604
|
}
|
|
623
|
-
export declare namespace UnknownSubscriptionException {
|
|
624
|
-
/**
|
|
625
|
-
* @internal
|
|
626
|
-
*/
|
|
627
|
-
const filterSensitiveLog: (obj: UnknownSubscriptionException) => any;
|
|
628
|
-
}
|
|
629
605
|
export interface DeleteCostCategoryDefinitionRequest {
|
|
630
606
|
/**
|
|
631
607
|
* <p>
|
|
@@ -670,12 +646,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
670
646
|
$fault: "client";
|
|
671
647
|
Message?: string;
|
|
672
648
|
}
|
|
673
|
-
export declare namespace ResourceNotFoundException {
|
|
674
|
-
/**
|
|
675
|
-
* @internal
|
|
676
|
-
*/
|
|
677
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
678
|
-
}
|
|
679
649
|
export interface DescribeCostCategoryDefinitionRequest {
|
|
680
650
|
/**
|
|
681
651
|
* <p>
|
|
@@ -816,12 +786,6 @@ export interface InvalidNextTokenException extends __SmithyException, $MetadataB
|
|
|
816
786
|
$fault: "client";
|
|
817
787
|
Message?: string;
|
|
818
788
|
}
|
|
819
|
-
export declare namespace InvalidNextTokenException {
|
|
820
|
-
/**
|
|
821
|
-
* @internal
|
|
822
|
-
*/
|
|
823
|
-
const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
|
|
824
|
-
}
|
|
825
789
|
export interface GetAnomalyMonitorsRequest {
|
|
826
790
|
/**
|
|
827
791
|
* <p>A list of cost anomaly monitor ARNs. </p>
|
|
@@ -893,12 +857,6 @@ export interface BillExpirationException extends __SmithyException, $MetadataBea
|
|
|
893
857
|
$fault: "client";
|
|
894
858
|
Message?: string;
|
|
895
859
|
}
|
|
896
|
-
export declare namespace BillExpirationException {
|
|
897
|
-
/**
|
|
898
|
-
* @internal
|
|
899
|
-
*/
|
|
900
|
-
const filterSensitiveLog: (obj: BillExpirationException) => any;
|
|
901
|
-
}
|
|
902
860
|
/**
|
|
903
861
|
* <p>The requested data is unavailable.</p>
|
|
904
862
|
*/
|
|
@@ -907,12 +865,6 @@ export interface DataUnavailableException extends __SmithyException, $MetadataBe
|
|
|
907
865
|
$fault: "client";
|
|
908
866
|
Message?: string;
|
|
909
867
|
}
|
|
910
|
-
export declare namespace DataUnavailableException {
|
|
911
|
-
/**
|
|
912
|
-
* @internal
|
|
913
|
-
*/
|
|
914
|
-
const filterSensitiveLog: (obj: DataUnavailableException) => any;
|
|
915
|
-
}
|
|
916
868
|
export declare enum Granularity {
|
|
917
869
|
DAILY = "DAILY",
|
|
918
870
|
HOURLY = "HOURLY",
|
|
@@ -1091,12 +1043,6 @@ export interface RequestChangedException extends __SmithyException, $MetadataBea
|
|
|
1091
1043
|
$fault: "client";
|
|
1092
1044
|
Message?: string;
|
|
1093
1045
|
}
|
|
1094
|
-
export declare namespace RequestChangedException {
|
|
1095
|
-
/**
|
|
1096
|
-
* @internal
|
|
1097
|
-
*/
|
|
1098
|
-
const filterSensitiveLog: (obj: RequestChangedException) => any;
|
|
1099
|
-
}
|
|
1100
1046
|
export interface GetCostAndUsageWithResourcesResponse {
|
|
1101
1047
|
/**
|
|
1102
1048
|
* <p>The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.</p>
|
|
@@ -3328,12 +3274,6 @@ export interface UnresolvableUsageUnitException extends __SmithyException, $Meta
|
|
|
3328
3274
|
$fault: "client";
|
|
3329
3275
|
Message?: string;
|
|
3330
3276
|
}
|
|
3331
|
-
export declare namespace UnresolvableUsageUnitException {
|
|
3332
|
-
/**
|
|
3333
|
-
* @internal
|
|
3334
|
-
*/
|
|
3335
|
-
const filterSensitiveLog: (obj: UnresolvableUsageUnitException) => any;
|
|
3336
|
-
}
|
|
3337
3277
|
export interface ListCostCategoryDefinitionsRequest {
|
|
3338
3278
|
/**
|
|
3339
3279
|
* <p>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { CostExplorerClientConfig } from "./CostExplorerClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { CostExplorerClientConfig } from "./CostExplorerClient";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
7
7
|
runtime: string;
|
|
8
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
8
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
9
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
10
11
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
11
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
12
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
12
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
13
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
14
15
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
15
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
16
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
16
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
17
18
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
18
19
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
29
30
|
tls?: boolean | undefined;
|
|
30
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateAnomalyMonitorCommandInput, CreateAnomalyMonitorCommandOutput } from "./commands/CreateAnomalyMonitorCommand";
|
|
10
10
|
import { CreateAnomalySubscriptionCommandInput, CreateAnomalySubscriptionCommandOutput } from "./commands/CreateAnomalySubscriptionCommand";
|
|
@@ -81,6 +81,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
81
81
|
regionInfoProvider?: RegionInfoProvider;
|
|
82
82
|
|
|
83
83
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
84
|
+
|
|
85
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
84
86
|
}
|
|
85
87
|
declare type CostExplorerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
86
88
|
|
|
@@ -230,10 +230,6 @@ export interface LimitExceededException extends __SmithyException, $MetadataBear
|
|
|
230
230
|
$fault: "client";
|
|
231
231
|
Message?: string;
|
|
232
232
|
}
|
|
233
|
-
export declare namespace LimitExceededException {
|
|
234
|
-
|
|
235
|
-
const filterSensitiveLog: (obj: LimitExceededException) => any;
|
|
236
|
-
}
|
|
237
233
|
export interface CreateAnomalySubscriptionRequest {
|
|
238
234
|
|
|
239
235
|
AnomalySubscription: AnomalySubscription | undefined;
|
|
@@ -256,10 +252,6 @@ export interface UnknownMonitorException extends __SmithyException, $MetadataBea
|
|
|
256
252
|
$fault: "client";
|
|
257
253
|
Message?: string;
|
|
258
254
|
}
|
|
259
|
-
export declare namespace UnknownMonitorException {
|
|
260
|
-
|
|
261
|
-
const filterSensitiveLog: (obj: UnknownMonitorException) => any;
|
|
262
|
-
}
|
|
263
255
|
export declare enum CostCategoryInheritedValueDimensionName {
|
|
264
256
|
LINKED_ACCOUNT_NAME = "LINKED_ACCOUNT_NAME",
|
|
265
257
|
TAG = "TAG"
|
|
@@ -332,10 +324,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
|
|
|
332
324
|
$fault: "client";
|
|
333
325
|
Message?: string;
|
|
334
326
|
}
|
|
335
|
-
export declare namespace ServiceQuotaExceededException {
|
|
336
|
-
|
|
337
|
-
const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
|
|
338
|
-
}
|
|
339
327
|
export interface DeleteAnomalyMonitorRequest {
|
|
340
328
|
|
|
341
329
|
MonitorArn: string | undefined;
|
|
@@ -370,10 +358,6 @@ export interface UnknownSubscriptionException extends __SmithyException, $Metada
|
|
|
370
358
|
$fault: "client";
|
|
371
359
|
Message?: string;
|
|
372
360
|
}
|
|
373
|
-
export declare namespace UnknownSubscriptionException {
|
|
374
|
-
|
|
375
|
-
const filterSensitiveLog: (obj: UnknownSubscriptionException) => any;
|
|
376
|
-
}
|
|
377
361
|
export interface DeleteCostCategoryDefinitionRequest {
|
|
378
362
|
|
|
379
363
|
CostCategoryArn: string | undefined;
|
|
@@ -398,10 +382,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
|
|
|
398
382
|
$fault: "client";
|
|
399
383
|
Message?: string;
|
|
400
384
|
}
|
|
401
|
-
export declare namespace ResourceNotFoundException {
|
|
402
|
-
|
|
403
|
-
const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
|
|
404
|
-
}
|
|
405
385
|
export interface DescribeCostCategoryDefinitionRequest {
|
|
406
386
|
|
|
407
387
|
CostCategoryArn: string | undefined;
|
|
@@ -485,10 +465,6 @@ export interface InvalidNextTokenException extends __SmithyException, $MetadataB
|
|
|
485
465
|
$fault: "client";
|
|
486
466
|
Message?: string;
|
|
487
467
|
}
|
|
488
|
-
export declare namespace InvalidNextTokenException {
|
|
489
|
-
|
|
490
|
-
const filterSensitiveLog: (obj: InvalidNextTokenException) => any;
|
|
491
|
-
}
|
|
492
468
|
export interface GetAnomalyMonitorsRequest {
|
|
493
469
|
|
|
494
470
|
MonitorArnList?: string[];
|
|
@@ -531,20 +507,12 @@ export interface BillExpirationException extends __SmithyException, $MetadataBea
|
|
|
531
507
|
$fault: "client";
|
|
532
508
|
Message?: string;
|
|
533
509
|
}
|
|
534
|
-
export declare namespace BillExpirationException {
|
|
535
|
-
|
|
536
|
-
const filterSensitiveLog: (obj: BillExpirationException) => any;
|
|
537
|
-
}
|
|
538
510
|
|
|
539
511
|
export interface DataUnavailableException extends __SmithyException, $MetadataBearer {
|
|
540
512
|
name: "DataUnavailableException";
|
|
541
513
|
$fault: "client";
|
|
542
514
|
Message?: string;
|
|
543
515
|
}
|
|
544
|
-
export declare namespace DataUnavailableException {
|
|
545
|
-
|
|
546
|
-
const filterSensitiveLog: (obj: DataUnavailableException) => any;
|
|
547
|
-
}
|
|
548
516
|
export declare enum Granularity {
|
|
549
517
|
DAILY = "DAILY",
|
|
550
518
|
HOURLY = "HOURLY",
|
|
@@ -651,10 +619,6 @@ export interface RequestChangedException extends __SmithyException, $MetadataBea
|
|
|
651
619
|
$fault: "client";
|
|
652
620
|
Message?: string;
|
|
653
621
|
}
|
|
654
|
-
export declare namespace RequestChangedException {
|
|
655
|
-
|
|
656
|
-
const filterSensitiveLog: (obj: RequestChangedException) => any;
|
|
657
|
-
}
|
|
658
622
|
export interface GetCostAndUsageWithResourcesResponse {
|
|
659
623
|
|
|
660
624
|
NextPageToken?: string;
|
|
@@ -1789,10 +1753,6 @@ export interface UnresolvableUsageUnitException extends __SmithyException, $Meta
|
|
|
1789
1753
|
$fault: "client";
|
|
1790
1754
|
Message?: string;
|
|
1791
1755
|
}
|
|
1792
|
-
export declare namespace UnresolvableUsageUnitException {
|
|
1793
|
-
|
|
1794
|
-
const filterSensitiveLog: (obj: UnresolvableUsageUnitException) => any;
|
|
1795
|
-
}
|
|
1796
1756
|
export interface ListCostCategoryDefinitionsRequest {
|
|
1797
1757
|
|
|
1798
1758
|
EffectiveOn?: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
|
|
1
|
+
import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
|
|
2
2
|
import { CostExplorerClientConfig } from "./CostExplorerClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
|
|
1
|
+
import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
|
|
2
2
|
import { CostExplorerClientConfig } from "./CostExplorerClient";
|
|
3
3
|
|
|
4
4
|
export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
5
5
|
runtime: string;
|
|
6
|
+
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
6
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
7
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
8
9
|
bodyLengthChecker: (body: any) => number | undefined;
|
|
9
|
-
credentialDefaultProvider: import("@aws-sdk/
|
|
10
|
+
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
10
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
11
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
12
13
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
13
|
-
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) |
|
|
14
|
+
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
|
|
14
15
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
16
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
17
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
|
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
26
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
27
28
|
tls?: boolean | undefined;
|
|
28
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-explorer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost Explorer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.47.2",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "yarn
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "
|
|
6
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
8
|
+
"build:docs": "typedoc",
|
|
9
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
-
"
|
|
12
|
-
"clean
|
|
13
|
-
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist-types dist-types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
11
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
+
"clean": "rimraf ./dist-*"
|
|
16
13
|
},
|
|
17
14
|
"main": "./dist-cjs/index.js",
|
|
18
15
|
"types": "./dist-types/index.d.ts",
|
|
@@ -21,48 +18,44 @@
|
|
|
21
18
|
"dependencies": {
|
|
22
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-
|
|
49
|
-
"@aws-sdk/util-
|
|
50
|
-
"@aws-sdk/util-
|
|
51
|
-
"@aws-sdk/util-
|
|
21
|
+
"@aws-sdk/client-sts": "3.47.2",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.47.2",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.47.2",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.47.2",
|
|
25
|
+
"@aws-sdk/hash-node": "3.47.2",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.47.2",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.47.2",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.47.2",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.47.2",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.47.2",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.47.2",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.47.2",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.47.2",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.47.2",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.47.2",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.47.2",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.47.2",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.47.2",
|
|
39
|
+
"@aws-sdk/types": "3.47.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.47.2",
|
|
41
|
+
"@aws-sdk/util-base64-browser": "3.47.1",
|
|
42
|
+
"@aws-sdk/util-base64-node": "3.47.2",
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.47.1",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.47.1",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.47.2",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.47.2",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.47.2",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.47.2",
|
|
49
|
+
"@aws-sdk/util-utf8-browser": "3.47.1",
|
|
50
|
+
"@aws-sdk/util-utf8-node": "3.47.2",
|
|
52
51
|
"tslib": "^2.3.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
-
"@types/node": "^12.7.5"
|
|
57
|
-
"downlevel-dts": "0.7.0",
|
|
58
|
-
"jest": "^26.1.0",
|
|
59
|
-
"rimraf": "^3.0.0",
|
|
60
|
-
"ts-jest": "^26.4.1",
|
|
61
|
-
"typedoc": "^0.19.2",
|
|
62
|
-
"typescript": "~4.3.5"
|
|
54
|
+
"@aws-sdk/service-client-documentation-generator": "3.47.1",
|
|
55
|
+
"@types/node": "^12.7.5"
|
|
63
56
|
},
|
|
64
57
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
58
|
+
"node": ">=12.0.0"
|
|
66
59
|
},
|
|
67
60
|
"typesVersions": {
|
|
68
61
|
"<4.0": {
|