@aws-sdk/client-cloudwatch 3.721.0 → 3.726.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.
@@ -15,6 +15,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
15
15
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
16
16
  export { __Client };
17
17
  export class CloudWatchClient extends __Client {
18
+ config;
18
19
  constructor(...[configuration]) {
19
20
  const _config_0 = __getRuntimeConfig(configuration || {});
20
21
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -66,113 +66,119 @@ export const StateValue = {
66
66
  OK: "OK",
67
67
  };
68
68
  export class ConcurrentModificationException extends __BaseException {
69
+ name = "ConcurrentModificationException";
70
+ $fault = "client";
71
+ Message;
69
72
  constructor(opts) {
70
73
  super({
71
74
  name: "ConcurrentModificationException",
72
75
  $fault: "client",
73
76
  ...opts,
74
77
  });
75
- this.name = "ConcurrentModificationException";
76
- this.$fault = "client";
77
78
  Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
78
79
  this.Message = opts.Message;
79
80
  }
80
81
  }
81
82
  export class DashboardInvalidInputError extends __BaseException {
83
+ name = "DashboardInvalidInputError";
84
+ $fault = "client";
85
+ dashboardValidationMessages;
82
86
  constructor(opts) {
83
87
  super({
84
88
  name: "DashboardInvalidInputError",
85
89
  $fault: "client",
86
90
  ...opts,
87
91
  });
88
- this.name = "DashboardInvalidInputError";
89
- this.$fault = "client";
90
92
  Object.setPrototypeOf(this, DashboardInvalidInputError.prototype);
91
93
  this.dashboardValidationMessages = opts.dashboardValidationMessages;
92
94
  }
93
95
  }
94
96
  export class DashboardNotFoundError extends __BaseException {
97
+ name = "DashboardNotFoundError";
98
+ $fault = "client";
95
99
  constructor(opts) {
96
100
  super({
97
101
  name: "DashboardNotFoundError",
98
102
  $fault: "client",
99
103
  ...opts,
100
104
  });
101
- this.name = "DashboardNotFoundError";
102
- this.$fault = "client";
103
105
  Object.setPrototypeOf(this, DashboardNotFoundError.prototype);
104
106
  }
105
107
  }
106
108
  export class ResourceNotFound extends __BaseException {
109
+ name = "ResourceNotFound";
110
+ $fault = "client";
107
111
  constructor(opts) {
108
112
  super({
109
113
  name: "ResourceNotFound",
110
114
  $fault: "client",
111
115
  ...opts,
112
116
  });
113
- this.name = "ResourceNotFound";
114
- this.$fault = "client";
115
117
  Object.setPrototypeOf(this, ResourceNotFound.prototype);
116
118
  }
117
119
  }
118
120
  export class InternalServiceFault extends __BaseException {
121
+ name = "InternalServiceFault";
122
+ $fault = "server";
123
+ Message;
119
124
  constructor(opts) {
120
125
  super({
121
126
  name: "InternalServiceFault",
122
127
  $fault: "server",
123
128
  ...opts,
124
129
  });
125
- this.name = "InternalServiceFault";
126
- this.$fault = "server";
127
130
  Object.setPrototypeOf(this, InternalServiceFault.prototype);
128
131
  this.Message = opts.Message;
129
132
  }
130
133
  }
131
134
  export class InvalidParameterCombinationException extends __BaseException {
135
+ name = "InvalidParameterCombinationException";
136
+ $fault = "client";
132
137
  constructor(opts) {
133
138
  super({
134
139
  name: "InvalidParameterCombinationException",
135
140
  $fault: "client",
136
141
  ...opts,
137
142
  });
138
- this.name = "InvalidParameterCombinationException";
139
- this.$fault = "client";
140
143
  Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
141
144
  }
142
145
  }
143
146
  export class InvalidParameterValueException extends __BaseException {
147
+ name = "InvalidParameterValueException";
148
+ $fault = "client";
144
149
  constructor(opts) {
145
150
  super({
146
151
  name: "InvalidParameterValueException",
147
152
  $fault: "client",
148
153
  ...opts,
149
154
  });
150
- this.name = "InvalidParameterValueException";
151
- this.$fault = "client";
152
155
  Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
153
156
  }
154
157
  }
155
158
  export class MissingRequiredParameterException extends __BaseException {
159
+ name = "MissingRequiredParameterException";
160
+ $fault = "client";
156
161
  constructor(opts) {
157
162
  super({
158
163
  name: "MissingRequiredParameterException",
159
164
  $fault: "client",
160
165
  ...opts,
161
166
  });
162
- this.name = "MissingRequiredParameterException";
163
- this.$fault = "client";
164
167
  Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
165
168
  }
166
169
  }
167
170
  export class ResourceNotFoundException extends __BaseException {
171
+ name = "ResourceNotFoundException";
172
+ $fault = "client";
173
+ ResourceType;
174
+ ResourceId;
175
+ Message;
168
176
  constructor(opts) {
169
177
  super({
170
178
  name: "ResourceNotFoundException",
171
179
  $fault: "client",
172
180
  ...opts,
173
181
  });
174
- this.name = "ResourceNotFoundException";
175
- this.$fault = "client";
176
182
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
177
183
  this.ResourceType = opts.ResourceType;
178
184
  this.ResourceId = opts.ResourceId;
@@ -184,14 +190,14 @@ export const ScanBy = {
184
190
  TIMESTAMP_DESCENDING: "TimestampDescending",
185
191
  };
186
192
  export class InvalidNextToken extends __BaseException {
193
+ name = "InvalidNextToken";
194
+ $fault = "client";
187
195
  constructor(opts) {
188
196
  super({
189
197
  name: "InvalidNextToken",
190
198
  $fault: "client",
191
199
  ...opts,
192
200
  });
193
- this.name = "InvalidNextToken";
194
- this.$fault = "client";
195
201
  Object.setPrototypeOf(this, InvalidNextToken.prototype);
196
202
  }
197
203
  }
@@ -206,14 +212,15 @@ export const Statistic = {
206
212
  Sum: "Sum",
207
213
  };
208
214
  export class LimitExceededException extends __BaseException {
215
+ name = "LimitExceededException";
216
+ $fault = "client";
217
+ Message;
209
218
  constructor(opts) {
210
219
  super({
211
220
  name: "LimitExceededException",
212
221
  $fault: "client",
213
222
  ...opts,
214
223
  });
215
- this.name = "LimitExceededException";
216
- this.$fault = "client";
217
224
  Object.setPrototypeOf(this, LimitExceededException.prototype);
218
225
  this.Message = opts.Message;
219
226
  }
@@ -233,26 +240,26 @@ export const RecentlyActive = {
233
240
  PT3H: "PT3H",
234
241
  };
235
242
  export class LimitExceededFault extends __BaseException {
243
+ name = "LimitExceededFault";
244
+ $fault = "client";
236
245
  constructor(opts) {
237
246
  super({
238
247
  name: "LimitExceededFault",
239
248
  $fault: "client",
240
249
  ...opts,
241
250
  });
242
- this.name = "LimitExceededFault";
243
- this.$fault = "client";
244
251
  Object.setPrototypeOf(this, LimitExceededFault.prototype);
245
252
  }
246
253
  }
247
254
  export class InvalidFormatFault extends __BaseException {
255
+ name = "InvalidFormatFault";
256
+ $fault = "client";
248
257
  constructor(opts) {
249
258
  super({
250
259
  name: "InvalidFormatFault",
251
260
  $fault: "client",
252
261
  ...opts,
253
262
  });
254
- this.name = "InvalidFormatFault";
255
- this.$fault = "client";
256
263
  Object.setPrototypeOf(this, InvalidFormatFault.prototype);
257
264
  }
258
265
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  disableRequestCompression: boolean | import("@smithy/types").Provider<boolean>;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  disableRequestCompression: boolean | import("@smithy/types").Provider<boolean>;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- 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;
34
+ 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;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.721.0",
4
+ "version": "3.726.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudwatch",
@@ -20,58 +20,58 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-compression": "^3.1.5",
42
- "@smithy/middleware-content-length": "^3.0.13",
43
- "@smithy/middleware-endpoint": "^3.2.6",
44
- "@smithy/middleware-retry": "^3.0.31",
45
- "@smithy/middleware-serde": "^3.0.11",
46
- "@smithy/middleware-stack": "^3.0.11",
47
- "@smithy/node-config-provider": "^3.1.12",
48
- "@smithy/node-http-handler": "^3.3.2",
49
- "@smithy/protocol-http": "^4.1.8",
50
- "@smithy/smithy-client": "^3.5.1",
51
- "@smithy/types": "^3.7.2",
52
- "@smithy/url-parser": "^3.0.11",
53
- "@smithy/util-base64": "^3.0.0",
54
- "@smithy/util-body-length-browser": "^3.0.0",
55
- "@smithy/util-body-length-node": "^3.0.0",
56
- "@smithy/util-defaults-mode-browser": "^3.0.31",
57
- "@smithy/util-defaults-mode-node": "^3.0.31",
58
- "@smithy/util-endpoints": "^2.1.7",
59
- "@smithy/util-middleware": "^3.0.11",
60
- "@smithy/util-retry": "^3.0.11",
61
- "@smithy/util-utf8": "^3.0.0",
62
- "@smithy/util-waiter": "^3.2.0",
23
+ "@aws-sdk/client-sso-oidc": "3.726.0",
24
+ "@aws-sdk/client-sts": "3.726.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.726.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.726.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.726.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.726.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-compression": "^4.0.0",
42
+ "@smithy/middleware-content-length": "^4.0.0",
43
+ "@smithy/middleware-endpoint": "^4.0.0",
44
+ "@smithy/middleware-retry": "^4.0.0",
45
+ "@smithy/middleware-serde": "^4.0.0",
46
+ "@smithy/middleware-stack": "^4.0.0",
47
+ "@smithy/node-config-provider": "^4.0.0",
48
+ "@smithy/node-http-handler": "^4.0.0",
49
+ "@smithy/protocol-http": "^5.0.0",
50
+ "@smithy/smithy-client": "^4.0.0",
51
+ "@smithy/types": "^4.0.0",
52
+ "@smithy/url-parser": "^4.0.0",
53
+ "@smithy/util-base64": "^4.0.0",
54
+ "@smithy/util-body-length-browser": "^4.0.0",
55
+ "@smithy/util-body-length-node": "^4.0.0",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
57
+ "@smithy/util-defaults-mode-node": "^4.0.0",
58
+ "@smithy/util-endpoints": "^3.0.0",
59
+ "@smithy/util-middleware": "^4.0.0",
60
+ "@smithy/util-retry": "^4.0.0",
61
+ "@smithy/util-utf8": "^4.0.0",
62
+ "@smithy/util-waiter": "^4.0.0",
63
63
  "tslib": "^2.6.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@tsconfig/node16": "16.1.3",
67
- "@types/node": "^16.18.96",
66
+ "@tsconfig/node18": "18.2.4",
67
+ "@types/node": "^18.19.69",
68
68
  "concurrently": "7.0.0",
69
69
  "downlevel-dts": "0.10.1",
70
70
  "rimraf": "3.0.2",
71
- "typescript": "~4.9.5"
71
+ "typescript": "~5.2.2"
72
72
  },
73
73
  "engines": {
74
- "node": ">=16.0.0"
74
+ "node": ">=18.0.0"
75
75
  },
76
76
  "typesVersions": {
77
77
  "<4.0": {