@aws-sdk/client-cloudwatch 3.1036.0 → 3.1038.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.
- package/dist-cjs/index.js +1 -1
- package/dist-es/waiters/waitForAlarmExists.js +1 -1
- package/dist-es/waiters/waitForAlarmMuteRuleExists.js +2 -2
- package/dist-es/waiters/waitForCompositeAlarmExists.js +1 -1
- package/dist-types/CloudWatch.d.ts +3 -3
- package/dist-types/ts3.4/CloudWatch.d.ts +3 -3
- package/dist-types/ts3.4/waiters/waitForAlarmExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForAlarmMuteRuleExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForCompositeAlarmExists.d.ts +9 -3
- package/dist-types/waiters/waitForAlarmExists.d.ts +4 -3
- package/dist-types/waiters/waitForAlarmMuteRuleExists.d.ts +4 -3
- package/dist-types/waiters/waitForCompositeAlarmExists.d.ts +4 -3
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -733,7 +733,7 @@ const checkState$1 = async (client, input) => {
|
|
|
733
733
|
}
|
|
734
734
|
catch (exception) {
|
|
735
735
|
reason = exception;
|
|
736
|
-
if (exception.name
|
|
736
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
737
737
|
return { state: utilWaiter.WaiterState.RETRY, reason };
|
|
738
738
|
}
|
|
739
739
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeAlarmsCommand } from "../commands/DescribeAlarmsCommand";
|
|
2
|
+
import { DescribeAlarmsCommand, } from "../commands/DescribeAlarmsCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { GetAlarmMuteRuleCommand } from "../commands/GetAlarmMuteRuleCommand";
|
|
2
|
+
import { GetAlarmMuteRuleCommand, } from "../commands/GetAlarmMuteRuleCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -9,7 +9,7 @@ const checkState = async (client, input) => {
|
|
|
9
9
|
}
|
|
10
10
|
catch (exception) {
|
|
11
11
|
reason = exception;
|
|
12
|
-
if (exception.name
|
|
12
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
13
13
|
return { state: WaiterState.RETRY, reason };
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeAlarmsCommand } from "../commands/DescribeAlarmsCommand";
|
|
2
|
+
import { DescribeAlarmsCommand, } from "../commands/DescribeAlarmsCommand";
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
@@ -412,19 +412,19 @@ export interface CloudWatch {
|
|
|
412
412
|
* @param args - command input.
|
|
413
413
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
414
414
|
*/
|
|
415
|
-
waitUntilAlarmExists(args: DescribeAlarmsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult
|
|
415
|
+
waitUntilAlarmExists(args: DescribeAlarmsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
416
416
|
/**
|
|
417
417
|
* @see {@link DescribeAlarmsCommand}
|
|
418
418
|
* @param args - command input.
|
|
419
419
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
420
420
|
*/
|
|
421
|
-
waitUntilCompositeAlarmExists(args: DescribeAlarmsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult
|
|
421
|
+
waitUntilCompositeAlarmExists(args: DescribeAlarmsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
422
422
|
/**
|
|
423
423
|
* @see {@link GetAlarmMuteRuleCommand}
|
|
424
424
|
* @param args - command input.
|
|
425
425
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
426
426
|
*/
|
|
427
|
-
waitUntilAlarmMuteRuleExists(args: GetAlarmMuteRuleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult
|
|
427
|
+
waitUntilAlarmMuteRuleExists(args: GetAlarmMuteRuleCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudWatch>, "client">): Promise<WaiterResult<GetAlarmMuteRuleCommandOutput>>;
|
|
428
428
|
}
|
|
429
429
|
/**
|
|
430
430
|
* <p>Amazon CloudWatch monitors your Amazon Web Services (Amazon Web Services)
|
|
@@ -880,7 +880,7 @@ export interface CloudWatch {
|
|
|
880
880
|
WaiterConfiguration<CloudWatch>,
|
|
881
881
|
Exclude<keyof WaiterConfiguration<CloudWatch>, "client">
|
|
882
882
|
>
|
|
883
|
-
): Promise<WaiterResult
|
|
883
|
+
): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
884
884
|
waitUntilCompositeAlarmExists(
|
|
885
885
|
args: DescribeAlarmsCommandInput,
|
|
886
886
|
waiterConfig:
|
|
@@ -889,7 +889,7 @@ export interface CloudWatch {
|
|
|
889
889
|
WaiterConfiguration<CloudWatch>,
|
|
890
890
|
Exclude<keyof WaiterConfiguration<CloudWatch>, "client">
|
|
891
891
|
>
|
|
892
|
-
): Promise<WaiterResult
|
|
892
|
+
): Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
893
893
|
waitUntilAlarmMuteRuleExists(
|
|
894
894
|
args: GetAlarmMuteRuleCommandInput,
|
|
895
895
|
waiterConfig:
|
|
@@ -898,7 +898,7 @@ export interface CloudWatch {
|
|
|
898
898
|
WaiterConfiguration<CloudWatch>,
|
|
899
899
|
Exclude<keyof WaiterConfiguration<CloudWatch>, "client">
|
|
900
900
|
>
|
|
901
|
-
): Promise<WaiterResult
|
|
901
|
+
): Promise<WaiterResult<GetAlarmMuteRuleCommandOutput>>;
|
|
902
902
|
}
|
|
903
903
|
export declare class CloudWatch
|
|
904
904
|
extends CloudWatchClient
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
DescribeAlarmsCommandInput,
|
|
5
|
+
DescribeAlarmsCommandOutput,
|
|
6
|
+
} from "../commands/DescribeAlarmsCommand";
|
|
7
|
+
import { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
4
8
|
export declare const waitForAlarmExists: (
|
|
5
9
|
params: WaiterConfiguration<CloudWatchClient>,
|
|
6
10
|
input: DescribeAlarmsCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<DescribeAlarmsCommandOutput | CloudWatchServiceException>
|
|
13
|
+
>;
|
|
8
14
|
export declare const waitUntilAlarmExists: (
|
|
9
15
|
params: WaiterConfiguration<CloudWatchClient>,
|
|
10
16
|
input: DescribeAlarmsCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
17
|
+
) => Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
GetAlarmMuteRuleCommandInput,
|
|
5
|
+
GetAlarmMuteRuleCommandOutput,
|
|
6
|
+
} from "../commands/GetAlarmMuteRuleCommand";
|
|
7
|
+
import { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
4
8
|
export declare const waitForAlarmMuteRuleExists: (
|
|
5
9
|
params: WaiterConfiguration<CloudWatchClient>,
|
|
6
10
|
input: GetAlarmMuteRuleCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<GetAlarmMuteRuleCommandOutput | CloudWatchServiceException>
|
|
13
|
+
>;
|
|
8
14
|
export declare const waitUntilAlarmMuteRuleExists: (
|
|
9
15
|
params: WaiterConfiguration<CloudWatchClient>,
|
|
10
16
|
input: GetAlarmMuteRuleCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
17
|
+
) => Promise<WaiterResult<GetAlarmMuteRuleCommandOutput>>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import { CloudWatchClient } from "../CloudWatchClient";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
DescribeAlarmsCommandInput,
|
|
5
|
+
DescribeAlarmsCommandOutput,
|
|
6
|
+
} from "../commands/DescribeAlarmsCommand";
|
|
7
|
+
import { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
4
8
|
export declare const waitForCompositeAlarmExists: (
|
|
5
9
|
params: WaiterConfiguration<CloudWatchClient>,
|
|
6
10
|
input: DescribeAlarmsCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<DescribeAlarmsCommandOutput | CloudWatchServiceException>
|
|
13
|
+
>;
|
|
8
14
|
export declare const waitUntilCompositeAlarmExists: (
|
|
9
15
|
params: WaiterConfiguration<CloudWatchClient>,
|
|
10
16
|
input: DescribeAlarmsCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
17
|
+
) => Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import type { CloudWatchClient } from "../CloudWatchClient";
|
|
3
|
-
import { type DescribeAlarmsCommandInput } from "../commands/DescribeAlarmsCommand";
|
|
3
|
+
import { type DescribeAlarmsCommandInput, type DescribeAlarmsCommandOutput } from "../commands/DescribeAlarmsCommand";
|
|
4
|
+
import type { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @deprecated Use waitUntilAlarmExists instead. waitForAlarmExists does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult<DescribeAlarmsCommandOutput | CloudWatchServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to DescribeAlarmsCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import type { CloudWatchClient } from "../CloudWatchClient";
|
|
3
|
-
import { type GetAlarmMuteRuleCommandInput } from "../commands/GetAlarmMuteRuleCommand";
|
|
3
|
+
import { type GetAlarmMuteRuleCommandInput, type GetAlarmMuteRuleCommandOutput } from "../commands/GetAlarmMuteRuleCommand";
|
|
4
|
+
import type { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @deprecated Use waitUntilAlarmMuteRuleExists instead. waitForAlarmMuteRuleExists does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForAlarmMuteRuleExists: (params: WaiterConfiguration<CloudWatchClient>, input: GetAlarmMuteRuleCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForAlarmMuteRuleExists: (params: WaiterConfiguration<CloudWatchClient>, input: GetAlarmMuteRuleCommandInput) => Promise<WaiterResult<GetAlarmMuteRuleCommandOutput | CloudWatchServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to GetAlarmMuteRuleCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilAlarmMuteRuleExists: (params: WaiterConfiguration<CloudWatchClient>, input: GetAlarmMuteRuleCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilAlarmMuteRuleExists: (params: WaiterConfiguration<CloudWatchClient>, input: GetAlarmMuteRuleCommandInput) => Promise<WaiterResult<GetAlarmMuteRuleCommandOutput>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
2
|
import type { CloudWatchClient } from "../CloudWatchClient";
|
|
3
|
-
import { type DescribeAlarmsCommandInput } from "../commands/DescribeAlarmsCommand";
|
|
3
|
+
import { type DescribeAlarmsCommandInput, type DescribeAlarmsCommandOutput } from "../commands/DescribeAlarmsCommand";
|
|
4
|
+
import type { CloudWatchServiceException } from "../models/CloudWatchServiceException";
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @deprecated Use waitUntilCompositeAlarmExists instead. waitForCompositeAlarmExists does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForCompositeAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForCompositeAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult<DescribeAlarmsCommandOutput | CloudWatchServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to DescribeAlarmsCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilCompositeAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilCompositeAlarmExists: (params: WaiterConfiguration<CloudWatchClient>, input: DescribeAlarmsCommandInput) => Promise<WaiterResult<DescribeAlarmsCommandOutput>>;
|
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.
|
|
4
|
+
"version": "3.1038.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.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
30
|
+
"@aws-sdk/core": "^3.974.6",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.37",
|
|
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.
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "^3.972.36",
|
|
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.
|
|
40
|
+
"@aws-sdk/util-user-agent-node": "^3.973.22",
|
|
41
41
|
"@smithy/config-resolver": "^4.4.17",
|
|
42
42
|
"@smithy/core": "^3.23.17",
|
|
43
43
|
"@smithy/fetch-http-handler": "^5.3.17",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@smithy/middleware-compression": "^4.3.46",
|
|
47
47
|
"@smithy/middleware-content-length": "^4.2.14",
|
|
48
48
|
"@smithy/middleware-endpoint": "^4.4.32",
|
|
49
|
-
"@smithy/middleware-retry": "^4.5.
|
|
49
|
+
"@smithy/middleware-retry": "^4.5.6",
|
|
50
50
|
"@smithy/middleware-serde": "^4.2.20",
|
|
51
51
|
"@smithy/middleware-stack": "^4.2.14",
|
|
52
52
|
"@smithy/node-config-provider": "^4.3.14",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@smithy/util-defaults-mode-node": "^4.2.54",
|
|
63
63
|
"@smithy/util-endpoints": "^3.4.2",
|
|
64
64
|
"@smithy/util-middleware": "^4.2.14",
|
|
65
|
-
"@smithy/util-retry": "^4.3.
|
|
65
|
+
"@smithy/util-retry": "^4.3.5",
|
|
66
66
|
"@smithy/util-utf8": "^4.2.2",
|
|
67
|
-
"@smithy/util-waiter": "^4.
|
|
67
|
+
"@smithy/util-waiter": "^4.3.0",
|
|
68
68
|
"tslib": "^2.6.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|