@aws-sdk/client-cost-explorer 3.391.0 → 3.397.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.
@@ -14,6 +14,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
14
14
  Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
15
15
  const EndpointParameters_1 = require("./endpoint/EndpointParameters");
16
16
  const runtimeConfig_1 = require("./runtimeConfig");
17
+ const runtimeExtensions_1 = require("./runtimeExtensions");
17
18
  class CostExplorerClient extends smithy_client_1.Client {
18
19
  constructor(...[configuration]) {
19
20
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
@@ -24,8 +25,9 @@ class CostExplorerClient extends smithy_client_1.Client {
24
25
  const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
25
26
  const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
26
27
  const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
27
- super(_config_7);
28
- this.config = _config_7;
28
+ const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
29
+ super(_config_8);
30
+ this.config = _config_8;
29
31
  this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
30
32
  this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
31
33
  this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const v = "required", w = "fn", x = "argv", y = "ref";
5
5
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = { [v]: false, "type": "String" }, i = { [v]: true, "default": false, "type": "Boolean" }, j = { [y]: "Endpoint" }, k = { [w]: "booleanEquals", [x]: [{ [y]: "UseFIPS" }, true] }, l = { [w]: "booleanEquals", [x]: [{ [y]: "UseDualStack" }, true] }, m = {}, n = { [w]: "getAttr", [x]: [{ [y]: e }, "name"] }, o = { [w]: "booleanEquals", [x]: [{ [y]: "UseFIPS" }, false] }, p = { [w]: "booleanEquals", [x]: [{ [y]: "UseDualStack" }, false] }, q = { [w]: "booleanEquals", [x]: [true, { [w]: "getAttr", [x]: [{ [y]: e }, "supportsFIPS"] }] }, r = { [w]: "booleanEquals", [x]: [true, { [w]: "getAttr", [x]: [{ [y]: e }, "supportsDualStack"] }] }, s = [k], t = [l], u = [{ [y]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [w]: a, [x]: [j] }], type: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [w]: a, [x]: u }], type: b, rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: e }], type: b, rules: [{ conditions: [{ [w]: f, [x]: [n, "aws"] }, o, p], endpoint: { url: "https://ce.us-east-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "us-east-1" }] }, headers: m }, type: d }, { conditions: [{ [w]: f, [x]: [n, "aws-cn"] }, o, p], endpoint: { url: "https://ce.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "cn-northwest-1" }] }, headers: m }, type: d }, { conditions: [k, l], type: b, rules: [{ conditions: [q, r], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: t, type: b, rules: [{ conditions: [r], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://ce.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
6
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [w]: a, [x]: [j] }], type: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }, { conditions: [{ [w]: a, [x]: u }], type: b, rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: e }], type: b, rules: [{ conditions: [{ [w]: f, [x]: [n, "aws"] }, o, p], endpoint: { url: "https://ce.us-east-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "us-east-1" }] }, headers: m }, type: d }, { conditions: [{ [w]: f, [x]: [n, "aws-cn"] }, o, p], endpoint: { url: "https://ce.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "cn-northwest-1" }] }, headers: m }, type: d }, { conditions: [k, l], type: b, rules: [{ conditions: [q, r], type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: t, type: b, rules: [{ conditions: [r], type: b, rules: [{ endpoint: { url: "https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://ce.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -12,6 +12,7 @@ const getRuntimeConfig = (config) => ({
12
12
  base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
13
13
  disableHostPrefix: config?.disableHostPrefix ?? false,
14
14
  endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
15
+ extensions: config?.extensions ?? [],
15
16
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
16
17
  serviceId: config?.serviceId ?? "Cost Explorer",
17
18
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const types_1 = require("@smithy/types");
5
+ const asPartial = (t) => t;
6
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
+ const clientConfiguration = {
8
+ ...asPartial((0, types_1.getDefaultClientConfiguration)(runtimeConfig)),
9
+ };
10
+ extensions.forEach((extension) => extension.configureClient(clientConfiguration));
11
+ return {
12
+ ...runtimeConfig,
13
+ ...(0, types_1.resolveDefaultRuntimeConfig)(clientConfiguration),
14
+ };
15
+ };
16
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -10,6 +10,7 @@ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
10
10
  import { Client as __Client, } from "@smithy/smithy-client";
11
11
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
12
12
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
13
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
13
14
  export { __Client };
14
15
  export class CostExplorerClient extends __Client {
15
16
  constructor(...[configuration]) {
@@ -21,8 +22,9 @@ export class CostExplorerClient extends __Client {
21
22
  const _config_5 = resolveHostHeaderConfig(_config_4);
22
23
  const _config_6 = resolveAwsAuthConfig(_config_5);
23
24
  const _config_7 = resolveUserAgentConfig(_config_6);
24
- super(_config_7);
25
- this.config = _config_7;
25
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
26
+ super(_config_8);
27
+ this.config = _config_8;
26
28
  this.middlewareStack.use(getRetryPlugin(this.config));
27
29
  this.middlewareStack.use(getContentLengthPlugin(this.config));
28
30
  this.middlewareStack.use(getHostHeaderPlugin(this.config));
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
1
  const v = "required", w = "fn", x = "argv", y = "ref";
2
2
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "stringEquals", g = "sigv4", h = { [v]: false, "type": "String" }, i = { [v]: true, "default": false, "type": "Boolean" }, j = { [y]: "Endpoint" }, k = { [w]: "booleanEquals", [x]: [{ [y]: "UseFIPS" }, true] }, l = { [w]: "booleanEquals", [x]: [{ [y]: "UseDualStack" }, true] }, m = {}, n = { [w]: "getAttr", [x]: [{ [y]: e }, "name"] }, o = { [w]: "booleanEquals", [x]: [{ [y]: "UseFIPS" }, false] }, p = { [w]: "booleanEquals", [x]: [{ [y]: "UseDualStack" }, false] }, q = { [w]: "booleanEquals", [x]: [true, { [w]: "getAttr", [x]: [{ [y]: e }, "supportsFIPS"] }] }, r = { [w]: "booleanEquals", [x]: [true, { [w]: "getAttr", [x]: [{ [y]: e }, "supportsDualStack"] }] }, s = [k], t = [l], u = [{ [y]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [w]: a, [x]: [j] }], type: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [w]: a, [x]: u }], type: b, rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: e }], type: b, rules: [{ conditions: [{ [w]: f, [x]: [n, "aws"] }, o, p], endpoint: { url: "https://ce.us-east-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "us-east-1" }] }, headers: m }, type: d }, { conditions: [{ [w]: f, [x]: [n, "aws-cn"] }, o, p], endpoint: { url: "https://ce.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "cn-northwest-1" }] }, headers: m }, type: d }, { conditions: [k, l], type: b, rules: [{ conditions: [q, r], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: t, type: b, rules: [{ conditions: [r], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://ce.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [w]: a, [x]: [j] }], type: b, rules: [{ conditions: s, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: t, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }, { conditions: [{ [w]: a, [x]: u }], type: b, rules: [{ conditions: [{ [w]: "aws.partition", [x]: u, assign: e }], type: b, rules: [{ conditions: [{ [w]: f, [x]: [n, "aws"] }, o, p], endpoint: { url: "https://ce.us-east-1.amazonaws.com", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "us-east-1" }] }, headers: m }, type: d }, { conditions: [{ [w]: f, [x]: [n, "aws-cn"] }, o, p], endpoint: { url: "https://ce.cn-northwest-1.amazonaws.com.cn", properties: { authSchemes: [{ name: g, signingName: "ce", signingRegion: "cn-northwest-1" }] }, headers: m }, type: d }, { conditions: [k, l], type: b, rules: [{ conditions: [q, r], type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ endpoint: { url: "https://ce-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: t, type: b, rules: [{ conditions: [r], type: b, rules: [{ endpoint: { url: "https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://ce.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -9,6 +9,7 @@ export const getRuntimeConfig = (config) => ({
9
9
  base64Encoder: config?.base64Encoder ?? toBase64,
10
10
  disableHostPrefix: config?.disableHostPrefix ?? false,
11
11
  endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
12
+ extensions: config?.extensions ?? [],
12
13
  logger: config?.logger ?? new NoOpLogger(),
13
14
  serviceId: config?.serviceId ?? "Cost Explorer",
14
15
  urlParser: config?.urlParser ?? parseUrl,
@@ -0,0 +1,12 @@
1
+ import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types";
2
+ const asPartial = (t) => t;
3
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
4
+ const clientConfiguration = {
5
+ ...asPartial(getDefaultClientConfiguration(runtimeConfig)),
6
+ };
7
+ extensions.forEach((extension) => extension.configureClient(clientConfiguration));
8
+ return {
9
+ ...runtimeConfig,
10
+ ...resolveDefaultRuntimeConfig(clientConfiguration),
11
+ };
12
+ };
@@ -47,6 +47,7 @@ import { UpdateAnomalySubscriptionCommandInput, UpdateAnomalySubscriptionCommand
47
47
  import { UpdateCostAllocationTagsStatusCommandInput, UpdateCostAllocationTagsStatusCommandOutput } from "./commands/UpdateCostAllocationTagsStatusCommand";
48
48
  import { UpdateCostCategoryDefinitionCommandInput, UpdateCostCategoryDefinitionCommandOutput } from "./commands/UpdateCostCategoryDefinitionCommand";
49
49
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
50
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
50
51
  export { __Client };
51
52
  /**
52
53
  * @public
@@ -154,6 +155,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
154
155
  * Optional logger for logging debug/info/warn/error.
155
156
  */
156
157
  logger?: __Logger;
158
+ /**
159
+ * Optional extensions
160
+ */
161
+ extensions?: RuntimeExtension[];
157
162
  /**
158
163
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
159
164
  */
@@ -173,7 +178,7 @@ export interface CostExplorerClientConfig extends CostExplorerClientConfigType {
173
178
  /**
174
179
  * @public
175
180
  */
176
- export type CostExplorerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
181
+ export type CostExplorerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
177
182
  /**
178
183
  * @public
179
184
  *
@@ -0,0 +1,6 @@
1
+ import { DefaultClientConfiguration } from "@smithy/types";
2
+ /**
3
+ * @internal
4
+ */
5
+ export interface CostExplorerClientConfiguration extends DefaultClientConfiguration {
6
+ }
@@ -24,7 +24,7 @@ export interface GetSavingsPlanPurchaseRecommendationDetailsCommandOutput extend
24
24
  /**
25
25
  * @public
26
26
  * <p>Retrieves the details for a Savings Plan recommendation. These details include the hourly
27
- * data-points that construct the new cost, coverage, and utilization charts.</p>
27
+ * data-points that construct the cost, coverage, and utilization charts.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -48,6 +48,8 @@ export interface ListCostAllocationTagsCommandOutput extends ListCostAllocationT
48
48
  * // TagKey: "STRING_VALUE", // required
49
49
  * // Type: "AWSGenerated" || "UserDefined", // required
50
50
  * // Status: "Active" || "Inactive", // required
51
+ * // LastUpdatedDate: "STRING_VALUE",
52
+ * // LastUsedDate: "STRING_VALUE",
51
53
  * // },
52
54
  * // ],
53
55
  * // NextToken: "STRING_VALUE",
@@ -3856,6 +3856,16 @@ export interface CostAllocationTag {
3856
3856
  * <p>The status of a cost allocation tag. </p>
3857
3857
  */
3858
3858
  Status: CostAllocationTagStatus | string | undefined;
3859
+ /**
3860
+ * @public
3861
+ * <p>The last date that the tag was either activated or deactivated.</p>
3862
+ */
3863
+ LastUpdatedDate?: string;
3864
+ /**
3865
+ * @public
3866
+ * <p>The last month that the tag was used on an Amazon Web Services resource.</p>
3867
+ */
3868
+ LastUsedDate?: string;
3859
3869
  }
3860
3870
  /**
3861
3871
  * @public
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
29
30
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
30
31
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
32
  logger?: import("@smithy/types").Logger | undefined;
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
26
26
  disableHostPrefix: boolean;
27
27
  serviceId: string;
28
28
  logger: import("@smithy/types").Logger;
29
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
29
30
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
30
31
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
31
32
  logger?: import("@smithy/types").Logger | undefined;
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
24
24
  maxAttempts: number | import("@smithy/types").Provider<number>;
25
25
  retryMode: string | import("@smithy/types").Provider<string>;
26
26
  logger: import("@smithy/types").Logger;
27
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
27
28
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
28
29
  endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
29
30
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
10
10
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
11
  logger?: import("@smithy/types").Logger | undefined;
12
12
  }) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
13
14
  logger: import("@smithy/types").Logger;
14
15
  serviceId: string;
15
16
  urlParser: import("@smithy/types").UrlParser;
@@ -0,0 +1,17 @@
1
+ import { CostExplorerClientConfiguration } from "./clientConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configureClient(clientConfiguration: CostExplorerClientConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -202,6 +202,7 @@ import {
202
202
  ClientResolvedEndpointParameters,
203
203
  EndpointParameters,
204
204
  } from "./endpoint/EndpointParameters";
205
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
205
206
  export { __Client };
206
207
  export type ServiceInputTypes =
207
208
  | CreateAnomalyMonitorCommandInput
@@ -303,6 +304,7 @@ export interface ClientDefaults
303
304
  maxAttempts?: number | __Provider<number>;
304
305
  retryMode?: string | __Provider<string>;
305
306
  logger?: __Logger;
307
+ extensions?: RuntimeExtension[];
306
308
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
307
309
  }
308
310
  export type CostExplorerClientConfigType = Partial<
@@ -321,6 +323,7 @@ export interface CostExplorerClientConfig
321
323
  export type CostExplorerClientResolvedConfigType =
322
324
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
323
325
  Required<ClientDefaults> &
326
+ RuntimeExtensionsConfig &
324
327
  RegionResolvedConfig &
325
328
  EndpointResolvedConfig<EndpointParameters> &
326
329
  RetryResolvedConfig &
@@ -0,0 +1,3 @@
1
+ import { DefaultClientConfiguration } from "@smithy/types";
2
+ export interface CostExplorerClientConfiguration
3
+ extends DefaultClientConfiguration {}
@@ -997,6 +997,8 @@ export interface CostAllocationTag {
997
997
  TagKey: string | undefined;
998
998
  Type: CostAllocationTagType | string | undefined;
999
999
  Status: CostAllocationTagStatus | string | undefined;
1000
+ LastUpdatedDate?: string;
1001
+ LastUsedDate?: string;
1000
1002
  }
1001
1003
  export interface ListCostAllocationTagsResponse {
1002
1004
  CostAllocationTags?: CostAllocationTag[];
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
39
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
40
  endpoint?:
40
41
  | ((
41
42
  | string
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
36
36
  disableHostPrefix: boolean;
37
37
  serviceId: string;
38
38
  logger: import("@smithy/types").Logger;
39
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
39
40
  endpoint?:
40
41
  | ((
41
42
  | string
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
32
32
  maxAttempts: number | import("@smithy/types").Provider<number>;
33
33
  retryMode: string | import("@smithy/types").Provider<string>;
34
34
  logger: import("@smithy/types").Logger;
35
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
35
36
  defaultsMode:
36
37
  | import("@smithy/smithy-client").DefaultsMode
37
38
  | import("@smithy/types").Provider<
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: CostExplorerClientConfig) => {
10
10
  logger?: import("@smithy/types").Logger | undefined;
11
11
  }
12
12
  ) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
13
14
  logger: import("@smithy/types").Logger;
14
15
  serviceId: string;
15
16
  urlParser: import("@smithy/types").UrlParser;
@@ -0,0 +1,11 @@
1
+ import { CostExplorerClientConfiguration } from "./clientConfiguration";
2
+ export interface RuntimeExtension {
3
+ configureClient(clientConfiguration: CostExplorerClientConfiguration): void;
4
+ }
5
+ export interface RuntimeExtensionsConfig {
6
+ extensions: RuntimeExtension[];
7
+ }
8
+ export declare const resolveRuntimeExtensions: (
9
+ runtimeConfig: any,
10
+ extensions: RuntimeExtension[]
11
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.391.0",
4
+ "version": "3.397.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,8 +21,8 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.391.0",
25
- "@aws-sdk/credential-provider-node": "3.391.0",
24
+ "@aws-sdk/client-sts": "3.395.0",
25
+ "@aws-sdk/credential-provider-node": "3.395.0",
26
26
  "@aws-sdk/middleware-host-header": "3.391.0",
27
27
  "@aws-sdk/middleware-logger": "3.391.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.391.0",