@aws-sdk/client-cloudwatch 3.252.0 → 3.253.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;
@@ -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
  /**
@@ -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.253.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",