@aws-sdk/client-cloudwatch-logs 3.804.0 → 3.807.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.
@@ -24,13 +24,13 @@ const getRuntimeConfig = (config) => {
24
24
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
25
25
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
26
26
  (0, core_1.emitWarningIfUnsupportedVersion)(process.version);
27
- const profileConfig = { profile: config?.profile };
27
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
28
28
  return {
29
29
  ...clientSharedValues,
30
30
  ...config,
31
31
  runtime: "node",
32
32
  defaultsMode,
33
- authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
33
+ authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
34
34
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
35
35
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
36
36
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -38,7 +38,7 @@ const getRuntimeConfig = (config) => {
38
38
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventstream_serde_node_1.eventStreamSerdeProvider,
39
39
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
40
  region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
41
+ (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
42
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
43
  retryMode: config?.retryMode ??
44
44
  (0, node_config_provider_1.loadConfig)({
@@ -47,9 +47,9 @@ const getRuntimeConfig = (config) => {
47
47
  }, config),
48
48
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
49
49
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
50
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
51
- useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
52
- userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
50
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
51
+ useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
52
+ userAgentAppId: config?.userAgentAppId ?? (0, node_config_provider_1.loadConfig)(util_user_agent_node_1.NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
53
53
  };
54
54
  };
55
55
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -20,13 +20,13 @@ export const getRuntimeConfig = (config) => {
20
20
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
21
  const clientSharedValues = getSharedRuntimeConfig(config);
22
22
  awsCheckVersion(process.version);
23
- const profileConfig = { profile: config?.profile };
23
+ const loaderConfig = { profile: config?.profile, logger: clientSharedValues.logger };
24
24
  return {
25
25
  ...clientSharedValues,
26
26
  ...config,
27
27
  runtime: "node",
28
28
  defaultsMode,
29
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
29
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
30
30
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
31
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
32
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -34,7 +34,7 @@ export const getRuntimeConfig = (config) => {
34
34
  eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
35
35
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
36
  region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...profileConfig }),
37
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
38
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
39
  retryMode: config?.retryMode ??
40
40
  loadNodeConfig({
@@ -43,8 +43,8 @@ export const getRuntimeConfig = (config) => {
43
43
  }, config),
44
44
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
45
45
  streamCollector: config?.streamCollector ?? streamCollector,
46
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, profileConfig),
47
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, profileConfig),
48
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, profileConfig),
46
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
47
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
48
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
49
49
  };
50
50
  };
@@ -50,11 +50,7 @@ declare const FilterLogEventsCommand_base: {
50
50
  * <p>Partially full or empty pages
51
51
  * don't necessarily mean that pagination is finished. If the results include a <code>nextToken</code>, there might be more log events available. You can return these additional log events by providing the nextToken in a subsequent
52
52
  * <code>FilterLogEvents</code> operation. If the results don't include a <code>nextToken</code>, then pagination is finished. </p>
53
- * <note>
54
- * <p>If you set <code>startFromHead</code> to <code>true</code> and you don’t include <code>endTime</code> in your request, you can end up in a situation where the pagination doesn't terminate.
55
- * This can happen when the new log events are being added to the target log streams
56
- * faster than they are being read. This situation is a good use case for the CloudWatch Logs <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs_LiveTail.html">Live Tail</a> feature.</p>
57
- * </note>
53
+ * <p>Specifying the <code>limit</code> parameter only guarantees that a single page doesn't return more log events than the specified limit, but it might return fewer events than the limit. This is the expected API behavior.</p>
58
54
  * <p>The returned log events are sorted by event timestamp, the timestamp when the event was ingested
59
55
  * by CloudWatch Logs, and the ID of the <code>PutLogEvents</code> request.</p>
60
56
  * <p>If you are using CloudWatch cross-account observability, you can use this operation in a monitoring account and
@@ -4245,14 +4245,14 @@ export interface Grok {
4245
4245
  source?: string | undefined;
4246
4246
  /**
4247
4247
  * <p>The grok pattern to match against the log event. For a list of
4248
- * supported grok patterns, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#Grok-Patterns">Supported grok patterns</a>.</p>
4248
+ * supported grok patterns, see <a href="https://docs.aws.amazon.com/mazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#Grok-Patterns">Supported grok patterns</a>.</p>
4249
4249
  * @public
4250
4250
  */
4251
4251
  match: string | undefined;
4252
4252
  }
4253
4253
  /**
4254
4254
  * <p>This processor takes a list of objects that contain key fields, and converts them into a map of target keys.</p>
4255
- * <p>For more information about this processor including examples, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-listToMap">
4255
+ * <p>For more information about this processor including examples, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#CloudWatch-Logs-Transformation-listToMap">
4256
4256
  * listToMap</a> in the <i>CloudWatch Logs User Guide</i>.</p>
4257
4257
  * @public
4258
4258
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
3
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
4
- "version": "3.804.0",
4
+ "version": "3.807.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-logs",
@@ -20,18 +20,18 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.804.0",
24
- "@aws-sdk/credential-provider-node": "3.804.0",
23
+ "@aws-sdk/core": "3.806.0",
24
+ "@aws-sdk/credential-provider-node": "3.806.0",
25
25
  "@aws-sdk/middleware-host-header": "3.804.0",
26
26
  "@aws-sdk/middleware-logger": "3.804.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
28
- "@aws-sdk/middleware-user-agent": "3.804.0",
29
- "@aws-sdk/region-config-resolver": "3.804.0",
28
+ "@aws-sdk/middleware-user-agent": "3.806.0",
29
+ "@aws-sdk/region-config-resolver": "3.806.0",
30
30
  "@aws-sdk/types": "3.804.0",
31
- "@aws-sdk/util-endpoints": "3.804.0",
31
+ "@aws-sdk/util-endpoints": "3.806.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.804.0",
33
- "@aws-sdk/util-user-agent-node": "3.804.0",
34
- "@smithy/config-resolver": "^4.1.0",
33
+ "@aws-sdk/util-user-agent-node": "3.806.0",
34
+ "@smithy/config-resolver": "^4.1.1",
35
35
  "@smithy/core": "^3.3.1",
36
36
  "@smithy/eventstream-serde-browser": "^4.0.2",
37
37
  "@smithy/eventstream-serde-config-resolver": "^4.1.0",
@@ -40,22 +40,22 @@
40
40
  "@smithy/hash-node": "^4.0.2",
41
41
  "@smithy/invalid-dependency": "^4.0.2",
42
42
  "@smithy/middleware-content-length": "^4.0.2",
43
- "@smithy/middleware-endpoint": "^4.1.2",
44
- "@smithy/middleware-retry": "^4.1.3",
43
+ "@smithy/middleware-endpoint": "^4.1.3",
44
+ "@smithy/middleware-retry": "^4.1.4",
45
45
  "@smithy/middleware-serde": "^4.0.3",
46
46
  "@smithy/middleware-stack": "^4.0.2",
47
- "@smithy/node-config-provider": "^4.0.2",
47
+ "@smithy/node-config-provider": "^4.1.0",
48
48
  "@smithy/node-http-handler": "^4.0.4",
49
49
  "@smithy/protocol-http": "^5.1.0",
50
- "@smithy/smithy-client": "^4.2.2",
50
+ "@smithy/smithy-client": "^4.2.3",
51
51
  "@smithy/types": "^4.2.0",
52
52
  "@smithy/url-parser": "^4.0.2",
53
53
  "@smithy/util-base64": "^4.0.0",
54
54
  "@smithy/util-body-length-browser": "^4.0.0",
55
55
  "@smithy/util-body-length-node": "^4.0.0",
56
- "@smithy/util-defaults-mode-browser": "^4.0.10",
57
- "@smithy/util-defaults-mode-node": "^4.0.10",
58
- "@smithy/util-endpoints": "^3.0.2",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.11",
57
+ "@smithy/util-defaults-mode-node": "^4.0.11",
58
+ "@smithy/util-endpoints": "^3.0.3",
59
59
  "@smithy/util-middleware": "^4.0.2",
60
60
  "@smithy/util-retry": "^4.0.3",
61
61
  "@smithy/util-utf8": "^4.0.0",