@aws-sdk/client-cloudwatch 3.658.1 → 3.664.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.
@@ -47,6 +47,7 @@ const getRuntimeConfig = (config) => {
47
47
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
48
48
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
49
49
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
50
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS),
50
51
  };
51
52
  };
52
53
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
4
+ import { NODE_APP_ID_CONFIG_OPTIONS, defaultUserAgent } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_DISABLE_REQUEST_COMPRESSION_CONFIG_OPTIONS, NODE_REQUEST_MIN_COMPRESSION_SIZE_BYTES_CONFIG_OPTIONS, } from "@smithy/middleware-compression";
@@ -43,5 +43,6 @@ export const getRuntimeConfig = (config) => {
43
43
  streamCollector: config?.streamCollector ?? streamCollector,
44
44
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
45
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS),
46
47
  };
47
48
  };
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
12
  disableRequestCompression: boolean | import("@smithy/types").Provider<boolean>;
13
13
  maxAttempts: number | import("@smithy/types").Provider<number>;
14
14
  region: string | import("@smithy/types").Provider<any>;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
31
31
  logger: import("@smithy/types").Logger;
32
32
  extensions: import("./runtimeExtensions").RuntimeExtension[];
33
33
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
34
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
35
36
  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;
36
37
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
11
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
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>;
14
14
  region: string | import("@smithy/types").Provider<string>;
@@ -19,6 +19,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
19
19
  streamCollector: import("@smithy/types").StreamCollector;
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
22
23
  apiVersion: string;
23
24
  cacheMiddleware?: boolean | undefined;
24
25
  urlParser: import("@smithy/types").UrlParser;
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
23
+ defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
24
24
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
25
  maxAttempts: number | import("@smithy/types").Provider<number>;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -28,6 +28,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
28
28
  extensions: import("./runtimeExtensions").RuntimeExtension[];
29
29
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
30
30
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
31
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
31
32
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
32
33
  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;
33
34
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -9,9 +9,9 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
9
9
  credentialDefaultProvider: (
10
10
  input: any
11
11
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
- defaultUserAgentProvider: import("@smithy/types").Provider<
13
- import("@smithy/types").UserAgent
14
- >;
12
+ defaultUserAgentProvider: (
13
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
14
+ ) => Promise<import("@smithy/types").UserAgent>;
15
15
  disableRequestCompression:
16
16
  | boolean
17
17
  | import("@smithy/types").Provider<boolean>;
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
40
40
  logger: import("@smithy/types").Logger;
41
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
42
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
43
+ userAgentAppId?:
44
+ | string
45
+ | import("@smithy/types").Provider<string | undefined>
46
+ | undefined;
43
47
  retryStrategy?:
44
48
  | import("@smithy/types").RetryStrategy
45
49
  | import("@smithy/types").RetryStrategyV2
@@ -13,9 +13,11 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
13
13
  ) => import("@smithy/types").MemoizedProvider<
14
14
  import("@smithy/types").AwsCredentialIdentity
15
15
  >;
16
- defaultUserAgentProvider: import("@smithy/types").Provider<
17
- import("@smithy/types").UserAgent
18
- >;
16
+ defaultUserAgentProvider: (
17
+ config?:
18
+ | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
19
+ | undefined
20
+ ) => Promise<import("@smithy/types").UserAgent>;
19
21
  disableRequestCompression:
20
22
  | boolean
21
23
  | import("@smithy/types").Provider<boolean>;
@@ -32,6 +34,7 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
32
34
  streamCollector: import("@smithy/types").StreamCollector;
33
35
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
34
36
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
37
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
35
38
  apiVersion: string;
36
39
  cacheMiddleware?: boolean | undefined;
37
40
  urlParser: import("@smithy/types").UrlParser;
@@ -22,9 +22,9 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
24
  region: string | import("@smithy/types").Provider<any>;
25
- defaultUserAgentProvider: import("@smithy/types").Provider<
26
- import("@smithy/types").UserAgent
27
- >;
25
+ defaultUserAgentProvider: (
26
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
27
+ ) => Promise<import("@smithy/types").UserAgent>;
28
28
  credentialDefaultProvider: (
29
29
  input: any
30
30
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: CloudWatchClientConfig) => {
38
38
  import("@smithy/smithy-client").DefaultsMode
39
39
  >;
40
40
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
41
+ userAgentAppId?:
42
+ | string
43
+ | import("@smithy/types").Provider<string | undefined>
44
+ | undefined;
41
45
  retryStrategy?:
42
46
  | import("@smithy/types").RetryStrategy
43
47
  | import("@smithy/types").RetryStrategyV2
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.658.1",
4
+ "version": "3.664.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,46 +20,46 @@
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.658.1",
24
- "@aws-sdk/client-sts": "3.658.1",
25
- "@aws-sdk/core": "3.658.1",
26
- "@aws-sdk/credential-provider-node": "3.658.1",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.6",
38
- "@smithy/fetch-http-handler": "^3.2.8",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-compression": "^3.0.10",
42
- "@smithy/middleware-content-length": "^3.0.8",
43
- "@smithy/middleware-endpoint": "^3.1.3",
44
- "@smithy/middleware-retry": "^3.0.21",
45
- "@smithy/middleware-serde": "^3.0.6",
46
- "@smithy/middleware-stack": "^3.0.6",
47
- "@smithy/node-config-provider": "^3.1.7",
48
- "@smithy/node-http-handler": "^3.2.3",
49
- "@smithy/protocol-http": "^4.1.3",
50
- "@smithy/smithy-client": "^3.3.5",
51
- "@smithy/types": "^3.4.2",
52
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.664.0",
24
+ "@aws-sdk/client-sts": "3.664.0",
25
+ "@aws-sdk/core": "3.664.0",
26
+ "@aws-sdk/credential-provider-node": "3.664.0",
27
+ "@aws-sdk/middleware-host-header": "3.664.0",
28
+ "@aws-sdk/middleware-logger": "3.664.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.664.0",
30
+ "@aws-sdk/middleware-user-agent": "3.664.0",
31
+ "@aws-sdk/region-config-resolver": "3.664.0",
32
+ "@aws-sdk/types": "3.664.0",
33
+ "@aws-sdk/util-endpoints": "3.664.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.664.0",
35
+ "@aws-sdk/util-user-agent-node": "3.664.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-compression": "^3.0.11",
42
+ "@smithy/middleware-content-length": "^3.0.9",
43
+ "@smithy/middleware-endpoint": "^3.1.4",
44
+ "@smithy/middleware-retry": "^3.0.22",
45
+ "@smithy/middleware-serde": "^3.0.7",
46
+ "@smithy/middleware-stack": "^3.0.7",
47
+ "@smithy/node-config-provider": "^3.1.8",
48
+ "@smithy/node-http-handler": "^3.2.4",
49
+ "@smithy/protocol-http": "^4.1.4",
50
+ "@smithy/smithy-client": "^3.3.6",
51
+ "@smithy/types": "^3.5.0",
52
+ "@smithy/url-parser": "^3.0.7",
53
53
  "@smithy/util-base64": "^3.0.0",
54
54
  "@smithy/util-body-length-browser": "^3.0.0",
55
55
  "@smithy/util-body-length-node": "^3.0.0",
56
- "@smithy/util-defaults-mode-browser": "^3.0.21",
57
- "@smithy/util-defaults-mode-node": "^3.0.21",
58
- "@smithy/util-endpoints": "^2.1.2",
59
- "@smithy/util-middleware": "^3.0.6",
60
- "@smithy/util-retry": "^3.0.6",
56
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
57
+ "@smithy/util-defaults-mode-node": "^3.0.22",
58
+ "@smithy/util-endpoints": "^2.1.3",
59
+ "@smithy/util-middleware": "^3.0.7",
60
+ "@smithy/util-retry": "^3.0.7",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
- "@smithy/util-waiter": "^3.1.5",
62
+ "@smithy/util-waiter": "^3.1.6",
63
63
  "tslib": "^2.6.2"
64
64
  },
65
65
  "devDependencies": {