@aws-sdk/client-cloudwatch 3.1040.0 → 3.1041.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.
@@ -978,8 +978,8 @@ exports.PutCompositeAlarmInput$ = [3, n0, _PCAI,
978
978
  ];
979
979
  exports.PutDashboardInput$ = [3, n0, _PDI,
980
980
  0,
981
- [_DN, _DB],
982
- [0, 0], 2
981
+ [_DN, _DB, _Ta],
982
+ [0, 0, () => TagList], 2
983
983
  ];
984
984
  exports.PutDashboardOutput$ = [3, n0, _PDO,
985
985
  0,
@@ -972,8 +972,8 @@ export var PutCompositeAlarmInput$ = [3, n0, _PCAI,
972
972
  ];
973
973
  export var PutDashboardInput$ = [3, n0, _PDI,
974
974
  0,
975
- [_DN, _DB],
976
- [0, 0], 2
975
+ [_DN, _DB, _Ta],
976
+ [0, 0, () => TagList], 2
977
977
  ];
978
978
  export var PutDashboardOutput$ = [3, n0, _PDO,
979
979
  0,
@@ -28,7 +28,8 @@ declare const DeleteDashboardsCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Deletes all dashboards that you specify. You can specify up to 100 dashboards to
31
- * delete. If there is an error during this call, no dashboards are deleted.</p>
31
+ * delete. If there is an error during this call, the operation attempts to delete as many
32
+ * dashboards as possible.</p>
32
33
  * @example
33
34
  * Use a bare-bones client and the command you need to make an API call.
34
35
  * ```javascript
@@ -57,9 +58,6 @@ declare const DeleteDashboardsCommand_base: {
57
58
  * @throws {@link ConflictException} (client fault)
58
59
  * <p>This operation attempted to create a resource that already exists.</p>
59
60
  *
60
- * @throws {@link DashboardNotFoundError} (client fault)
61
- * <p>The specified dashboard does not exist.</p>
62
- *
63
61
  * @throws {@link InternalServiceFault} (server fault)
64
62
  * <p>Request processing has failed due to some unknown error, exception, or
65
63
  * failure.</p>
@@ -30,7 +30,7 @@ declare const GetOTelEnrichmentCommand_base: {
30
30
  * <p>Returns the current status of vended metric enrichment for the account, including
31
31
  * whether CloudWatch vended metrics are enriched with resource ARN and resource tag
32
32
  * labels and queryable using PromQL. For the list of supported resources, see
33
- * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">Supported AWS infrastructure metrics</a>.</p>
33
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">Supported Amazon Web Services infrastructure metrics</a>.</p>
34
34
  * @example
35
35
  * Use a bare-bones client and the command you need to make an API call.
36
36
  * ```javascript
@@ -27,8 +27,8 @@ declare const ListTagsForResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Displays the tags associated with a CloudWatch resource. Currently, alarms and
31
- * Contributor Insights rules support tagging.</p>
30
+ * <p>Displays the tags associated with a CloudWatch resource. Currently, alarms,
31
+ * dashboards, metric streams and Contributor Insights rules support tagging.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -54,6 +54,12 @@ declare const PutDashboardCommand_base: {
54
54
  * const input = { // PutDashboardInput
55
55
  * DashboardName: "STRING_VALUE", // required
56
56
  * DashboardBody: "STRING_VALUE", // required
57
+ * Tags: [ // TagList
58
+ * { // Tag
59
+ * Key: "STRING_VALUE", // required
60
+ * Value: "STRING_VALUE", // required
61
+ * },
62
+ * ],
57
63
  * };
58
64
  * const command = new PutDashboardCommand(input);
59
65
  * const response = await client.send(command);
@@ -28,7 +28,7 @@ declare const StartOTelEnrichmentCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Enables enrichment and PromQL access for CloudWatch vended metrics for
31
- * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported AWS resources</a> in the account. Once enabled, metrics that
31
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported Amazon Web Services resources</a> in the account. Once enabled, metrics that
32
32
  * contain a resource identifier dimension (for example, EC2
33
33
  * <code>CPUUtilization</code> with an <code>InstanceId</code> dimension) are enriched
34
34
  * with resource ARN and resource tag labels and become queryable using
@@ -28,7 +28,7 @@ declare const StopOTelEnrichmentCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Disables enrichment and PromQL access for CloudWatch vended metrics for
31
- * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported AWS resources</a> in the account. After disabling, these metrics
31
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/UsingResourceTagsForTelemetry.html">supported Amazon Web Services resources</a> in the account. After disabling, these metrics
32
32
  * are no longer enriched with resource ARN and resource tag labels, and cannot be
33
33
  * queried using PromQL.</p>
34
34
  * @example
@@ -28,8 +28,8 @@ declare const TagResourceCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Assigns one or more tags (key-value pairs) to the specified CloudWatch resource.
31
- * Currently, the only CloudWatch resources that can be tagged are alarms and Contributor
32
- * Insights rules.</p>
31
+ * Currently, the only CloudWatch resources that can be tagged are alarms, dashboards,
32
+ * metric streams and Contributor Insights rules.</p>
33
33
  * <p>Tags can help you organize and categorize your resources. You can also use them to
34
34
  * scope user permissions by granting a user permission to access or change only resources
35
35
  * with certain tag values.</p>
@@ -27,7 +27,8 @@ declare const UntagResourceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Removes one or more tags from the specified resource.</p>
30
+ * <p>Removes one or more tags from the specified resource. Currently, alarms, dashboards,
31
+ * metric streams and Contributor Insights rules support tagging.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -3229,6 +3229,14 @@ export interface ListTagsForResourceInput {
3229
3229
  * <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule/<i>insight-rule-name</i>
3230
3230
  * </code>
3231
3231
  * </p>
3232
+ * <p>The ARN format of a dashboard is
3233
+ * <code>arn:aws:cloudwatch::<i>account-id</i>:dashboard/<i>dashboard-name</i>
3234
+ * </code>
3235
+ * </p>
3236
+ * <p>The ARN format of a metric stream is
3237
+ * <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:metric-stream/<i>metric-stream-name</i>
3238
+ * </code>
3239
+ * </p>
3232
3240
  * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies"> Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web
3233
3241
  * Services General Reference</i>.</p>
3234
3242
  * @public
@@ -3711,6 +3719,19 @@ export interface PutDashboardInput {
3711
3719
  * @public
3712
3720
  */
3713
3721
  DashboardBody: string | undefined;
3722
+ /**
3723
+ * <p>A list of key-value pairs to associate with the dashboard. You can associate as many
3724
+ * as 50 tags with a dashboard.</p>
3725
+ * <p>Tags can help you organize and categorize your dashboards. You can also use them to
3726
+ * scope user permissions by granting a user permission to access or change only dashboards
3727
+ * with certain tag values.</p>
3728
+ * <p>You can use this parameter only when creating a new dashboard. If you specify
3729
+ * <code>Tags</code> when updating an existing dashboard, the tag updates are ignored. To
3730
+ * add or update tags on an existing dashboard, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html">TagResource</a>. To
3731
+ * remove tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html">UntagResource</a>.</p>
3732
+ * @public
3733
+ */
3734
+ Tags?: Tag[] | undefined;
3714
3735
  }
3715
3736
  /**
3716
3737
  * @public
@@ -4776,6 +4797,14 @@ export interface TagResourceInput {
4776
4797
  * <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule/<i>insight-rule-name</i>
4777
4798
  * </code>
4778
4799
  * </p>
4800
+ * <p>The ARN format of a dashboard is
4801
+ * <code>arn:aws:cloudwatch::<i>account-id</i>:dashboard/<i>dashboard-name</i>
4802
+ * </code>
4803
+ * </p>
4804
+ * <p>The ARN format of a metric stream is
4805
+ * <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:metric-stream/<i>metric-stream-name</i>
4806
+ * </code>
4807
+ * </p>
4779
4808
  * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies"> Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web
4780
4809
  * Services General Reference</i>.</p>
4781
4810
  * @public
@@ -4806,6 +4835,14 @@ export interface UntagResourceInput {
4806
4835
  * <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:insight-rule/<i>insight-rule-name</i>
4807
4836
  * </code>
4808
4837
  * </p>
4838
+ * <p>The ARN format of a dashboard is
4839
+ * <code>arn:aws:cloudwatch::<i>account-id</i>:dashboard/<i>dashboard-name</i>
4840
+ * </code>
4841
+ * </p>
4842
+ * <p>The ARN format of a metric stream is
4843
+ * <code>arn:aws:cloudwatch:<i>Region</i>:<i>account-id</i>:metric-stream/<i>metric-stream-name</i>
4844
+ * </code>
4845
+ * </p>
4809
4846
  * <p>For more information about ARN format, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatch.html#amazoncloudwatch-resources-for-iam-policies"> Resource Types Defined by Amazon CloudWatch</a> in the <i>Amazon Web
4810
4847
  * Services General Reference</i>.</p>
4811
4848
  * @public
@@ -619,6 +619,7 @@ export interface PutCompositeAlarmInput {
619
619
  export interface PutDashboardInput {
620
620
  DashboardName: string | undefined;
621
621
  DashboardBody: string | undefined;
622
+ Tags?: Tag[] | undefined;
622
623
  }
623
624
  export interface PutDashboardOutput {
624
625
  DashboardValidationMessages?: DashboardValidationMessage[] | undefined;
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.1040.0",
4
+ "version": "3.1041.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch",
@@ -27,17 +27,17 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "5.2.0",
29
29
  "@aws-crypto/sha256-js": "5.2.0",
30
- "@aws-sdk/core": "^3.974.7",
31
- "@aws-sdk/credential-provider-node": "^3.972.38",
30
+ "@aws-sdk/core": "^3.974.8",
31
+ "@aws-sdk/credential-provider-node": "^3.972.39",
32
32
  "@aws-sdk/middleware-host-header": "^3.972.10",
33
33
  "@aws-sdk/middleware-logger": "^3.972.10",
34
34
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
35
- "@aws-sdk/middleware-user-agent": "^3.972.37",
35
+ "@aws-sdk/middleware-user-agent": "^3.972.38",
36
36
  "@aws-sdk/region-config-resolver": "^3.972.13",
37
37
  "@aws-sdk/types": "^3.973.8",
38
38
  "@aws-sdk/util-endpoints": "^3.996.8",
39
39
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
40
- "@aws-sdk/util-user-agent-node": "^3.973.23",
40
+ "@aws-sdk/util-user-agent-node": "^3.973.24",
41
41
  "@smithy/config-resolver": "^4.4.17",
42
42
  "@smithy/core": "^3.23.17",
43
43
  "@smithy/fetch-http-handler": "^5.3.17",