@aws-sdk/client-cloudwatch 3.391.0 → 3.395.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 CloudWatchClient extends smithy_client_1.Client {
18
19
  constructor(...[configuration]) {
19
20
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
@@ -24,8 +25,9 @@ class CloudWatchClient 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 s = "required", t = "fn", u = "argv", v = "ref";
5
5
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://monitoring.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
6
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://monitoring.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, 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 ?? "CloudWatch",
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 CloudWatchClient extends __Client {
15
16
  constructor(...[configuration]) {
@@ -21,8 +22,9 @@ export class CloudWatchClient 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 s = "required", t = "fn", u = "argv", v = "ref";
2
2
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://monitoring.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
3
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }, { conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://monitoring.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://monitoring-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://monitoring.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, 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 ?? "CloudWatch",
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 { StopMetricStreamsCommandInput, StopMetricStreamsCommandOutput } from ".
47
47
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
48
48
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
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 CloudWatchClientConfig extends CloudWatchClientConfigType {
173
178
  /**
174
179
  * @public
175
180
  */
176
- export type CloudWatchClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
181
+ export type CloudWatchClientResolvedConfigType = __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 CloudWatchClientConfiguration extends DefaultClientConfiguration {
6
+ }
@@ -1188,8 +1188,13 @@ export interface DescribeAlarmsInput {
1188
1188
  AlarmNamePrefix?: string;
1189
1189
  /**
1190
1190
  * @public
1191
- * <p>Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter,
1192
- * only metric alarms are returned.</p>
1191
+ * <p>Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you
1192
+ * omit this parameter,
1193
+ * only metric alarms are returned, even if composite alarms exist in the account.</p>
1194
+ * <p>For example, if you omit this parameter or specify <code>MetricAlarms</code>, the operation returns only a list of metric
1195
+ * alarms. It does not return any composite alarms, even if composite alarms exist in the account.</p>
1196
+ * <p>If you specify <code>CompositeAlarms</code>, the operation returns only a list of composite
1197
+ * alarms, and does not return any metric alarms.</p>
1193
1198
  */
1194
1199
  AlarmTypes?: (AlarmType | string)[];
1195
1200
  /**
@@ -1863,7 +1868,7 @@ export interface GetInsightRuleReportInput {
1863
1868
  Metrics?: string[];
1864
1869
  /**
1865
1870
  * @public
1866
- * <p>Determines what statistic to use to rank the contributors. Valid values are SUM and MAXIMUM.</p>
1871
+ * <p>Determines what statistic to use to rank the contributors. Valid values are <code>Sum</code> and <code>Maximum</code>.</p>
1867
1872
  */
1868
1873
  OrderBy?: string;
1869
1874
  }
@@ -3751,10 +3756,70 @@ export interface PutMetricAlarmInput {
3751
3756
  Statistic?: Statistic | string;
3752
3757
  /**
3753
3758
  * @public
3754
- * <p>The percentile statistic for the metric specified in <code>MetricName</code>. Specify a value
3755
- * between p0.0 and p100. When you call <code>PutMetricAlarm</code> and specify
3759
+ * <p>The extended statistic for the metric specified in <code>MetricName</code>. When you
3760
+ * call <code>PutMetricAlarm</code> and specify
3756
3761
  * a <code>MetricName</code>, you must
3757
- * specify either <code>Statistic</code> or <code>ExtendedStatistic,</code> but not both.</p>
3762
+ * specify either <code>Statistic</code> or <code>ExtendedStatistic</code> but not both.</p>
3763
+ * <p>If you specify <code>ExtendedStatistic</code>, the following are valid values:</p>
3764
+ * <ul>
3765
+ * <li>
3766
+ * <p>
3767
+ * <code>p90</code>
3768
+ * </p>
3769
+ * </li>
3770
+ * <li>
3771
+ * <p>
3772
+ * <code>tm90</code>
3773
+ * </p>
3774
+ * </li>
3775
+ * <li>
3776
+ * <p>
3777
+ * <code>tc90</code>
3778
+ * </p>
3779
+ * </li>
3780
+ * <li>
3781
+ * <p>
3782
+ * <code>ts90</code>
3783
+ * </p>
3784
+ * </li>
3785
+ * <li>
3786
+ * <p>
3787
+ * <code>wm90</code>
3788
+ * </p>
3789
+ * </li>
3790
+ * <li>
3791
+ * <p>
3792
+ * <code>IQM</code>
3793
+ * </p>
3794
+ * </li>
3795
+ * <li>
3796
+ * <p>
3797
+ * <code>PR(<i>n</i>:<i>m</i>)</code> where n and m are values
3798
+ * of the metric</p>
3799
+ * </li>
3800
+ * <li>
3801
+ * <p>
3802
+ * <code>TC(<i>X</i>%:<i>X</i>%)</code> where X is between
3803
+ * 10 and 90 inclusive.</p>
3804
+ * </li>
3805
+ * <li>
3806
+ * <p>
3807
+ * <code>TM(<i>X</i>%:<i>X</i>%)</code> where X is between
3808
+ * 10 and 90 inclusive.</p>
3809
+ * </li>
3810
+ * <li>
3811
+ * <p>
3812
+ * <code>TS(<i>X</i>%:<i>X</i>%)</code> where X is between
3813
+ * 10 and 90 inclusive.</p>
3814
+ * </li>
3815
+ * <li>
3816
+ * <p>
3817
+ * <code>WM(<i>X</i>%:<i>X</i>%)</code> where X is between
3818
+ * 10 and 90 inclusive.</p>
3819
+ * </li>
3820
+ * </ul>
3821
+ * <p>For more information about these extended statistics, see
3822
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Statistics-definitions.html">CloudWatch statistics definitions</a>.</p>
3758
3823
  */
3759
3824
  ExtendedStatistic?: string;
3760
3825
  /**
@@ -3873,7 +3938,9 @@ export interface PutMetricAlarmInput {
3873
3938
  Metrics?: MetricDataQuery[];
3874
3939
  /**
3875
3940
  * @public
3876
- * <p>A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm.</p>
3941
+ * <p>A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm.
3942
+ * To be able to associate tags with the alarm when you create the alarm, you must
3943
+ * have the <code>cloudwatch:TagResource</code> permission.</p>
3877
3944
  * <p>Tags can help you organize and categorize your resources. You can also use them to scope user
3878
3945
  * permissions by granting a user
3879
3946
  * permission to access or change only resources with certain tag values.</p>
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
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: CloudWatchClientConfig) => {
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: CloudWatchClientConfig) => {
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: CloudWatchClientConfig) => {
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 { CloudWatchClientConfiguration } from "./clientConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configureClient(clientConfiguration: CloudWatchClientConfiguration): 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
  | DeleteAlarmsCommandInput
@@ -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 CloudWatchClientConfigType = Partial<
@@ -320,6 +322,7 @@ export interface CloudWatchClientConfig extends CloudWatchClientConfigType {}
320
322
  export type CloudWatchClientResolvedConfigType =
321
323
  __SmithyResolvedConfiguration<__HttpHandlerOptions> &
322
324
  Required<ClientDefaults> &
325
+ RuntimeExtensionsConfig &
323
326
  RegionResolvedConfig &
324
327
  EndpointResolvedConfig<EndpointParameters> &
325
328
  RetryResolvedConfig &
@@ -0,0 +1,3 @@
1
+ import { DefaultClientConfiguration } from "@smithy/types";
2
+ export interface CloudWatchClientConfiguration
3
+ extends DefaultClientConfiguration {}
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
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: CloudWatchClientConfig) => {
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: CloudWatchClientConfig) => {
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: CloudWatchClientConfig) => {
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 { CloudWatchClientConfiguration } from "./clientConfiguration";
2
+ export interface RuntimeExtension {
3
+ configureClient(clientConfiguration: CloudWatchClientConfiguration): 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-cloudwatch",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
4
- "version": "3.391.0",
4
+ "version": "3.395.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",