@aws-sdk/client-cloudwatch 3.252.0 → 3.254.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.
@@ -3402,6 +3402,9 @@ const serializeAws_queryPutMetricStreamInput = (input, context) => {
3402
3402
  entries[loc] = value;
3403
3403
  });
3404
3404
  }
3405
+ if (input.IncludeLinkedAccountsMetrics != null) {
3406
+ entries["IncludeLinkedAccountsMetrics"] = input.IncludeLinkedAccountsMetrics;
3407
+ }
3405
3408
  return entries;
3406
3409
  };
3407
3410
  const serializeAws_queryRange = (input, context) => {
@@ -4219,6 +4222,7 @@ const deserializeAws_queryGetMetricStreamOutput = (output, context) => {
4219
4222
  LastUpdateDate: undefined,
4220
4223
  OutputFormat: undefined,
4221
4224
  StatisticsConfigurations: undefined,
4225
+ IncludeLinkedAccountsMetrics: undefined,
4222
4226
  };
4223
4227
  if (output["Arn"] !== undefined) {
4224
4228
  contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
@@ -4263,6 +4267,9 @@ const deserializeAws_queryGetMetricStreamOutput = (output, context) => {
4263
4267
  output["StatisticsConfigurations"]["member"] !== undefined) {
4264
4268
  contents.StatisticsConfigurations = deserializeAws_queryMetricStreamStatisticsConfigurations((0, smithy_client_1.getArrayIfSingleItem)(output["StatisticsConfigurations"]["member"]), context);
4265
4269
  }
4270
+ if (output["IncludeLinkedAccountsMetrics"] !== undefined) {
4271
+ contents.IncludeLinkedAccountsMetrics = (0, smithy_client_1.parseBoolean)(output["IncludeLinkedAccountsMetrics"]);
4272
+ }
4266
4273
  return contents;
4267
4274
  };
4268
4275
  const deserializeAws_queryGetMetricWidgetImageOutput = (output, context) => {
@@ -3322,6 +3322,9 @@ const serializeAws_queryPutMetricStreamInput = (input, context) => {
3322
3322
  entries[loc] = value;
3323
3323
  });
3324
3324
  }
3325
+ if (input.IncludeLinkedAccountsMetrics != null) {
3326
+ entries["IncludeLinkedAccountsMetrics"] = input.IncludeLinkedAccountsMetrics;
3327
+ }
3325
3328
  return entries;
3326
3329
  };
3327
3330
  const serializeAws_queryRange = (input, context) => {
@@ -4139,6 +4142,7 @@ const deserializeAws_queryGetMetricStreamOutput = (output, context) => {
4139
4142
  LastUpdateDate: undefined,
4140
4143
  OutputFormat: undefined,
4141
4144
  StatisticsConfigurations: undefined,
4145
+ IncludeLinkedAccountsMetrics: undefined,
4142
4146
  };
4143
4147
  if (output["Arn"] !== undefined) {
4144
4148
  contents.Arn = __expectString(output["Arn"]);
@@ -4183,6 +4187,9 @@ const deserializeAws_queryGetMetricStreamOutput = (output, context) => {
4183
4187
  output["StatisticsConfigurations"]["member"] !== undefined) {
4184
4188
  contents.StatisticsConfigurations = deserializeAws_queryMetricStreamStatisticsConfigurations(__getArrayIfSingleItem(output["StatisticsConfigurations"]["member"]), context);
4185
4189
  }
4190
+ if (output["IncludeLinkedAccountsMetrics"] !== undefined) {
4191
+ contents.IncludeLinkedAccountsMetrics = __parseBoolean(output["IncludeLinkedAccountsMetrics"]);
4192
+ }
4186
4193
  return contents;
4187
4194
  };
4188
4195
  const deserializeAws_queryGetMetricWidgetImageOutput = (output, context) => {
@@ -669,6 +669,9 @@ export declare class CloudWatch extends CloudWatchClient {
669
669
  * <p>When you use <code>PutMetricStream</code> to create a new metric stream, the stream
670
670
  * is created in the <code>running</code> state. If you use it to update an existing stream,
671
671
  * the state of the stream is not changed.</p>
672
+ * <p>If you are using CloudWatch cross-account observability and you create a metric stream in a monitoring account,
673
+ * you can choose whether to include metrics from source accounts in the stream. For more information, see
674
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>
672
675
  */
673
676
  putMetricStream(args: PutMetricStreamCommandInput, options?: __HttpHandlerOptions): Promise<PutMetricStreamCommandOutput>;
674
677
  putMetricStream(args: PutMetricStreamCommandInput, cb: (err: any, data?: PutMetricStreamCommandOutput) => void): void;
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { DeleteAlarmsCommandInput, DeleteAlarmsCommandOutput } from "./commands/DeleteAlarmsCommand";
11
11
  import { DeleteAnomalyDetectorCommandInput, DeleteAnomalyDetectorCommandOutput } from "./commands/DeleteAnomalyDetectorCommand";
12
12
  import { DeleteDashboardsCommandInput, DeleteDashboardsCommandOutput } from "./commands/DeleteDashboardsCommand";
@@ -54,11 +54,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
54
54
  */
55
55
  requestHandler?: __HttpHandler;
56
56
  /**
57
- * A constructor for a class implementing the {@link __Hash} interface
57
+ * A constructor for a class implementing the {@link __Checksum} interface
58
58
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
59
59
  * @internal
60
60
  */
61
- sha256?: __HashConstructor;
61
+ sha256?: __ChecksumConstructor | __HashConstructor;
62
62
  /**
63
63
  * The function that will be used to convert strings into HTTP endpoints.
64
64
  * @internal
@@ -39,6 +39,9 @@ export interface PutMetricStreamCommandOutput extends PutMetricStreamOutput, __M
39
39
  * <p>When you use <code>PutMetricStream</code> to create a new metric stream, the stream
40
40
  * is created in the <code>running</code> state. If you use it to update an existing stream,
41
41
  * the state of the stream is not changed.</p>
42
+ * <p>If you are using CloudWatch cross-account observability and you create a metric stream in a monitoring account,
43
+ * you can choose whether to include metrics from source accounts in the stream. For more information, see
44
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html">CloudWatch cross-account observability</a>.</p>
42
45
  * @example
43
46
  * Use a bare-bones client and the command you need to make an API call.
44
47
  * ```javascript
@@ -1992,6 +1992,11 @@ export interface GetMetricStreamOutput {
1992
1992
  * CloudWatch statistics definitions</a>. </p>
1993
1993
  */
1994
1994
  StatisticsConfigurations?: MetricStreamStatisticsConfiguration[];
1995
+ /**
1996
+ * <p>If this is <code>true</code> and this metric stream is in a monitoring account, then the stream includes
1997
+ * metrics from source accounts that the monitoring account is linked to.</p>
1998
+ */
1999
+ IncludeLinkedAccountsMetrics?: boolean;
1995
2000
  }
1996
2001
  export interface GetMetricWidgetImageInput {
1997
2002
  /**
@@ -3168,6 +3173,11 @@ export interface PutMetricStreamInput {
3168
3173
  * p99.9, and so on.</p>
3169
3174
  */
3170
3175
  StatisticsConfigurations?: MetricStreamStatisticsConfiguration[];
3176
+ /**
3177
+ * <p>If you are creating a metric stream in a monitoring account,
3178
+ * specify <code>true</code> to include metrics from source accounts in the metric stream.</p>
3179
+ */
3180
+ IncludeLinkedAccountsMetrics?: boolean;
3171
3181
  }
3172
3182
  export interface PutMetricStreamOutput {
3173
3183
  /**
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -281,7 +282,7 @@ export declare type ServiceOutputTypes =
281
282
  export interface ClientDefaults
282
283
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
283
284
  requestHandler?: __HttpHandler;
284
- sha256?: __HashConstructor;
285
+ sha256?: __ChecksumConstructor | __HashConstructor;
285
286
  urlParser?: __UrlParser;
286
287
  bodyLengthChecker?: __BodyLengthCalculator;
287
288
  streamCollector?: __StreamCollector;
@@ -547,6 +547,7 @@ export interface GetMetricStreamOutput {
547
547
  LastUpdateDate?: Date;
548
548
  OutputFormat?: MetricStreamOutputFormat | string;
549
549
  StatisticsConfigurations?: MetricStreamStatisticsConfiguration[];
550
+ IncludeLinkedAccountsMetrics?: boolean;
550
551
  }
551
552
  export interface GetMetricWidgetImageInput {
552
553
  MetricWidget: string | undefined;
@@ -732,6 +733,7 @@ export interface PutMetricStreamInput {
732
733
  OutputFormat: MetricStreamOutputFormat | string | undefined;
733
734
  Tags?: Tag[];
734
735
  StatisticsConfigurations?: MetricStreamStatisticsConfiguration[];
736
+ IncludeLinkedAccountsMetrics?: boolean;
735
737
  }
736
738
  export interface PutMetricStreamOutput {
737
739
  Arn?: string;
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.252.0",
4
+ "version": "3.254.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",
@@ -18,42 +18,42 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
53
+ "@aws-sdk/util-user-agent-node": "3.254.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.188.0",
55
55
  "@aws-sdk/util-utf8-node": "3.208.0",
56
- "@aws-sdk/util-waiter": "3.226.0",
56
+ "@aws-sdk/util-waiter": "3.254.0",
57
57
  "fast-xml-parser": "4.0.11",
58
58
  "tslib": "^2.3.1"
59
59
  },