@aws-sdk/client-cloudwatch-logs 3.798.0 → 3.800.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 CHANGED
@@ -613,6 +613,7 @@ var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException exten
613
613
  }
614
614
  };
615
615
  var LogGroupClass = {
616
+ DELIVERY: "DELIVERY",
616
617
  INFREQUENT_ACCESS: "INFREQUENT_ACCESS",
617
618
  STANDARD: "STANDARD"
618
619
  };
@@ -30,6 +30,7 @@ const getRuntimeConfig = (config) => {
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
34
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
34
35
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
35
36
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -186,6 +186,7 @@ export class ResourceAlreadyExistsException extends __BaseException {
186
186
  }
187
187
  }
188
188
  export const LogGroupClass = {
189
+ DELIVERY: "DELIVERY",
189
190
  INFREQUENT_ACCESS: "INFREQUENT_ACCESS",
190
191
  STANDARD: "STANDARD",
191
192
  };
@@ -1,5 +1,5 @@
1
1
  import packageInfo from "../package.json";
2
- import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
4
  import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } 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";
@@ -26,6 +26,7 @@ export const getRuntimeConfig = (config) => {
26
26
  ...config,
27
27
  runtime: "node",
28
28
  defaultsMode,
29
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, profileConfig),
29
30
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
31
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
31
32
  defaultUserAgentProvider: config?.defaultUserAgentProvider ??
@@ -64,7 +64,7 @@ declare const AssociateKmsKeyCommand_base: {
64
64
  * will be unencryptable and unusable.</p>
65
65
  * </important>
66
66
  * <note>
67
- * <p>CloudWatch Logs supports only symmetric KMS keys. Do not use an associate
67
+ * <p>CloudWatch Logs supports only symmetric KMS keys. Do not associate
68
68
  * an asymmetric KMS key with your log group or query results. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/symmetric-asymmetric.html">Using
69
69
  * Symmetric and Asymmetric Keys</a>.</p>
70
70
  * </note>
@@ -44,7 +44,7 @@ declare const CreateExportTaskCommand_base: {
44
44
  * bucket. To separate log data for each export task, specify a prefix to be used as the Amazon
45
45
  * S3 key prefix for all exported objects.</p>
46
46
  * <note>
47
- * <p>We recommend that you don't regularly export to Amazon S3 as a way to continuously archive your logs. For that use case, we instaed recommend that
47
+ * <p>We recommend that you don't regularly export to Amazon S3 as a way to continuously archive your logs. For that use case, we instead recommend that
48
48
  * you use subscriptions. For more information about subscriptions, see
49
49
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/Subscriptions.html">Real-time processing of log data with subscriptions</a>.</p>
50
50
  * </note>
@@ -72,7 +72,7 @@ declare const CreateLogGroupCommand_base: {
72
72
  * tags: { // Tags
73
73
  * "<keys>": "STRING_VALUE",
74
74
  * },
75
- * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS",
75
+ * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
76
76
  * };
77
77
  * const command = new CreateLogGroupCommand(input);
78
78
  * const response = await client.send(command);
@@ -35,7 +35,7 @@ declare const DescribeAccountPoliciesCommand_base: {
35
35
  * <code>logs:DescribeAccountPolicies</code> permissions.</p>
36
36
  * </li>
37
37
  * <li>
38
- * <p>To see subscription filter policies, you must have the <code>logs:DescrubeSubscriptionFilters</code> and
38
+ * <p>To see subscription filter policies, you must have the <code>logs:DescribeSubscriptionFilters</code> and
39
39
  * <code>logs:DescribeAccountPolicies</code> permissions.</p>
40
40
  * </li>
41
41
  * <li>
@@ -54,7 +54,7 @@ declare const DescribeLogGroupsCommand_base: {
54
54
  * nextToken: "STRING_VALUE",
55
55
  * limit: Number("int"),
56
56
  * includeLinkedAccounts: true || false,
57
- * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS",
57
+ * logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
58
58
  * };
59
59
  * const command = new DescribeLogGroupsCommand(input);
60
60
  * const response = await client.send(command);
@@ -72,7 +72,7 @@ declare const DescribeLogGroupsCommand_base: {
72
72
  * // inheritedProperties: [ // InheritedProperties
73
73
  * // "ACCOUNT_DATA_PROTECTION",
74
74
  * // ],
75
- * // logGroupClass: "STANDARD" || "INFREQUENT_ACCESS",
75
+ * // logGroupClass: "STANDARD" || "INFREQUENT_ACCESS" || "DELIVERY",
76
76
  * // logGroupArn: "STRING_VALUE",
77
77
  * // },
78
78
  * // ],
@@ -60,7 +60,7 @@ declare const PutLogEventsCommand_base: {
60
60
  * <p>A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.</p>
61
61
  * </li>
62
62
  * <li>
63
- * <p>Each log event can be no larger than 256 KB.</p>
63
+ * <p>Each log event can be no larger than 1 MB.</p>
64
64
  * </li>
65
65
  * <li>
66
66
  * <p>The maximum number of log events in a batch is 10,000.</p>
@@ -61,6 +61,10 @@ declare const StartLiveTailCommand_base: {
61
61
  * object is returned when the session times out, after it has been kept open for three hours.</p>
62
62
  * </li>
63
63
  * </ul>
64
+ * <note>
65
+ * <p>The <code>StartLiveTail</code> API routes requests to <code>streaming-logs.<i>Region</i>.amazonaws.com</code> using SDK host prefix injection.
66
+ * VPC endpoint support is not available for this API.</p>
67
+ * </note>
64
68
  * <important>
65
69
  * <p>You can end a session before it times out by closing the session stream or by closing the client that is receiving the
66
70
  * stream. The session also ends if the established connection between the client and the server breaks.</p>
@@ -1021,6 +1021,7 @@ export interface CreateLogAnomalyDetectorResponse {
1021
1021
  * @enum
1022
1022
  */
1023
1023
  export declare const LogGroupClass: {
1024
+ readonly DELIVERY: "DELIVERY";
1024
1025
  readonly INFREQUENT_ACCESS: "INFREQUENT_ACCESS";
1025
1026
  readonly STANDARD: "STANDARD";
1026
1027
  };
@@ -1057,7 +1058,7 @@ export interface CreateLogGroupRequest {
1057
1058
  */
1058
1059
  tags?: Record<string, string> | undefined;
1059
1060
  /**
1060
- * <p>Use this parameter to specify the log group class for this log group. There are two classes:</p>
1061
+ * <p>Use this parameter to specify the log group class for this log group. There are three classes:</p>
1061
1062
  * <ul>
1062
1063
  * <li>
1063
1064
  * <p>The <code>Standard</code> log class supports all CloudWatch Logs features.</p>
@@ -1066,6 +1067,11 @@ export interface CreateLogGroupRequest {
1066
1067
  * <p>The <code>Infrequent Access</code> log class supports a subset of CloudWatch Logs features
1067
1068
  * and incurs lower costs.</p>
1068
1069
  * </li>
1070
+ * <li>
1071
+ * <p>Use the <code>Delivery</code> log class only for delivering Lambda logs to store in Amazon S3 or
1072
+ * Amazon Data Firehose. Log events in log groups in the Delivery class are kept in CloudWatch Logs for only one day. This log class doesn't offer rich CloudWatch Logs capabilities such as
1073
+ * CloudWatch Logs Insights queries.</p>
1074
+ * </li>
1069
1075
  * </ul>
1070
1076
  * <p>If you omit this parameter, the default of <code>STANDARD</code> is used.</p>
1071
1077
  * <important>
@@ -2212,7 +2218,7 @@ export interface DescribeLogGroupsRequest {
2212
2218
  */
2213
2219
  includeLinkedAccounts?: boolean | undefined;
2214
2220
  /**
2215
- * <p>Specifies the log group class for this log group. There are two classes:</p>
2221
+ * <p>Specifies the log group class for this log group. There are three classes:</p>
2216
2222
  * <ul>
2217
2223
  * <li>
2218
2224
  * <p>The <code>Standard</code> log class supports all CloudWatch Logs features.</p>
@@ -2221,6 +2227,11 @@ export interface DescribeLogGroupsRequest {
2221
2227
  * <p>The <code>Infrequent Access</code> log class supports a subset of CloudWatch Logs features
2222
2228
  * and incurs lower costs.</p>
2223
2229
  * </li>
2230
+ * <li>
2231
+ * <p>Use the <code>Delivery</code> log class only for delivering Lambda logs to store in Amazon S3 or
2232
+ * Amazon Data Firehose. Log events in log groups in the Delivery class are kept in CloudWatch Logs for only one day. This log class doesn't offer rich CloudWatch Logs capabilities such as
2233
+ * CloudWatch Logs Insights queries.</p>
2234
+ * </li>
2224
2235
  * </ul>
2225
2236
  * <p>For details about the features supported by each class, see
2226
2237
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html">Log classes</a>
@@ -2300,7 +2311,7 @@ export interface LogGroup {
2300
2311
  */
2301
2312
  inheritedProperties?: InheritedProperty[] | undefined;
2302
2313
  /**
2303
- * <p>This specifies the log group class for this log group. There are two classes:</p>
2314
+ * <p>This specifies the log group class for this log group. There are three classes:</p>
2304
2315
  * <ul>
2305
2316
  * <li>
2306
2317
  * <p>The <code>Standard</code> log class supports all CloudWatch Logs features.</p>
@@ -2309,8 +2320,13 @@ export interface LogGroup {
2309
2320
  * <p>The <code>Infrequent Access</code> log class supports a subset of CloudWatch Logs features
2310
2321
  * and incurs lower costs.</p>
2311
2322
  * </li>
2323
+ * <li>
2324
+ * <p>Use the <code>Delivery</code> log class only for delivering Lambda logs to store in Amazon S3 or
2325
+ * Amazon Data Firehose. Log events in log groups in the Delivery class are kept in CloudWatch Logs for only one day. This log class doesn't offer rich CloudWatch Logs capabilities such as
2326
+ * CloudWatch Logs Insights queries.</p>
2327
+ * </li>
2312
2328
  * </ul>
2313
- * <p>For details about the features supported by each class, see
2329
+ * <p>For details about the features supported by the Standard and Infrequent Access classes, see
2314
2330
  * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch_Logs_Log_Classes.html">Log classes</a>
2315
2331
  * </p>
2316
2332
  * @public
@@ -4852,7 +4868,7 @@ export interface InputLogEvent {
4852
4868
  */
4853
4869
  timestamp: number | undefined;
4854
4870
  /**
4855
- * <p>The raw event message. Each log event can be no larger than 256 KB.</p>
4871
+ * <p>The raw event message. Each log event can be no larger than 1 MB.</p>
4856
4872
  * @public
4857
4873
  */
4858
4874
  message: string | undefined;
@@ -6,6 +6,7 @@ import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient";
6
6
  export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
9
10
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
11
  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
12
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
@@ -39,7 +40,6 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
39
40
  }) => import("@smithy/types").EndpointV2;
40
41
  tls?: boolean | undefined;
41
42
  serviceConfiguredEndpoint?: undefined;
42
- authSchemePreference?: string[] | import("@smithy/types").Provider<string[]> | undefined;
43
43
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
44
44
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudWatchLogsHttpAuthSchemeProvider;
45
45
  credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
@@ -285,6 +285,7 @@ export interface CreateLogAnomalyDetectorResponse {
285
285
  anomalyDetectorArn?: string | undefined;
286
286
  }
287
287
  export declare const LogGroupClass: {
288
+ readonly DELIVERY: "DELIVERY";
288
289
  readonly INFREQUENT_ACCESS: "INFREQUENT_ACCESS";
289
290
  readonly STANDARD: "STANDARD";
290
291
  };
@@ -5,6 +5,7 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
5
5
  defaultsMode: import("@smithy/types").Provider<
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
+ authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
8
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
10
  credentialDefaultProvider:
10
11
  | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
@@ -74,10 +75,6 @@ export declare const getRuntimeConfig: (config: CloudWatchLogsClientConfig) => {
74
75
  ) => import("@smithy/types").EndpointV2;
75
76
  tls?: boolean | undefined;
76
77
  serviceConfiguredEndpoint?: undefined;
77
- authSchemePreference?:
78
- | string[]
79
- | import("@smithy/types").Provider<string[]>
80
- | undefined;
81
78
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
82
79
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").CloudWatchLogsHttpAuthSchemeProvider;
83
80
  credentials?:
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.798.0",
4
+ "version": "3.800.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,17 +20,17 @@
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.798.0",
24
- "@aws-sdk/credential-provider-node": "3.798.0",
23
+ "@aws-sdk/core": "3.799.0",
24
+ "@aws-sdk/credential-provider-node": "3.799.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.798.0",
28
+ "@aws-sdk/middleware-user-agent": "3.799.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
31
  "@aws-sdk/util-endpoints": "3.787.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.798.0",
33
+ "@aws-sdk/util-user-agent-node": "3.799.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.3.0",
36
36
  "@smithy/eventstream-serde-browser": "^4.0.2",