@aws-sdk/client-cloudwatch-logs 3.830.0 → 3.832.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
@@ -75,6 +75,7 @@ __export(index_exports, {
75
75
  Distribution: () => Distribution,
76
76
  EntityRejectionErrorType: () => EntityRejectionErrorType,
77
77
  EvaluationFrequency: () => EvaluationFrequency,
78
+ EventSource: () => EventSource,
78
79
  ExportTaskStatusCode: () => ExportTaskStatusCode,
79
80
  FilterLogEventsCommand: () => FilterLogEventsCommand,
80
81
  FlattenedElement: () => FlattenedElement,
@@ -108,6 +109,7 @@ __export(index_exports, {
108
109
  ListTagsLogGroupCommand: () => ListTagsLogGroupCommand,
109
110
  LogGroupClass: () => LogGroupClass,
110
111
  MalformedQueryException: () => MalformedQueryException,
112
+ OCSFVersion: () => OCSFVersion,
111
113
  OpenSearchResourceStatusType: () => OpenSearchResourceStatusType,
112
114
  OperationAbortedException: () => OperationAbortedException,
113
115
  OrderBy: () => OrderBy,
@@ -719,6 +721,13 @@ var EntityRejectionErrorType = {
719
721
  MISSING_REQUIRED_FIELDS: "MissingRequiredFields",
720
722
  UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType"
721
723
  };
724
+ var EventSource = {
725
+ AWSWAF: "AWSWAF",
726
+ CLOUD_TRAIL: "CloudTrail",
727
+ EKS_AUDIT: "EKSAudit",
728
+ ROUTE53_RESOLVER: "Route53Resolver",
729
+ VPC_FLOW: "VPCFlow"
730
+ };
722
731
  var FlattenedElement = {
723
732
  FIRST: "first",
724
733
  LAST: "last"
@@ -744,6 +753,9 @@ var IntegrationStatus = {
744
753
  var IntegrationType = {
745
754
  OPENSEARCH: "OPENSEARCH"
746
755
  };
756
+ var OCSFVersion = {
757
+ V1_1: "V1.1"
758
+ };
747
759
  var Type = {
748
760
  BOOLEAN: "boolean",
749
761
  DOUBLE: "double",
@@ -4608,11 +4620,13 @@ var paginateListLogGroupsForQuery = (0, import_core.createPaginator)(CloudWatchL
4608
4620
  QueryStatus,
4609
4621
  Distribution,
4610
4622
  EntityRejectionErrorType,
4623
+ EventSource,
4611
4624
  FlattenedElement,
4612
4625
  OpenSearchResourceStatusType,
4613
4626
  IntegrationDetails,
4614
4627
  IntegrationStatus,
4615
4628
  IntegrationType,
4629
+ OCSFVersion,
4616
4630
  Type,
4617
4631
  InvalidSequenceTokenException,
4618
4632
  SuppressionState,
@@ -285,6 +285,13 @@ export const EntityRejectionErrorType = {
285
285
  MISSING_REQUIRED_FIELDS: "MissingRequiredFields",
286
286
  UNSUPPORTED_LOG_GROUP_TYPE: "UnsupportedLogGroupType",
287
287
  };
288
+ export const EventSource = {
289
+ AWSWAF: "AWSWAF",
290
+ CLOUD_TRAIL: "CloudTrail",
291
+ EKS_AUDIT: "EKSAudit",
292
+ ROUTE53_RESOLVER: "Route53Resolver",
293
+ VPC_FLOW: "VPCFlow",
294
+ };
288
295
  export const FlattenedElement = {
289
296
  FIRST: "first",
290
297
  LAST: "last",
@@ -310,6 +317,9 @@ export const IntegrationStatus = {
310
317
  export const IntegrationType = {
311
318
  OPENSEARCH: "OPENSEARCH",
312
319
  };
320
+ export const OCSFVersion = {
321
+ V1_1: "V1.1",
322
+ };
313
323
  export const Type = {
314
324
  BOOLEAN: "boolean",
315
325
  DOUBLE: "double",
@@ -134,6 +134,11 @@ declare const GetTransformerCommand_base: {
134
134
  * // parseRoute53: { // ParseRoute53
135
135
  * // source: "STRING_VALUE",
136
136
  * // },
137
+ * // parseToOCSF: { // ParseToOCSF
138
+ * // source: "STRING_VALUE",
139
+ * // eventSource: "CloudTrail" || "Route53Resolver" || "VPCFlow" || "EKSAudit" || "AWSWAF", // required
140
+ * // ocsfVersion: "V1.1", // required
141
+ * // },
137
142
  * // parsePostgres: { // ParsePostgres
138
143
  * // source: "STRING_VALUE",
139
144
  * // },
@@ -42,12 +42,10 @@ declare const PutLogEventsCommand_base: {
42
42
  * all event messages in UTF-8, plus 26 bytes for each log event.</p>
43
43
  * </li>
44
44
  * <li>
45
- * <p>None of the log events in the batch can be more than 2 hours in the future.</p>
45
+ * <p>Events more than 2 hours in the future are rejected while processing remaining valid events.</p>
46
46
  * </li>
47
47
  * <li>
48
- * <p>None of the log events in the batch can be more than 14 days in the past. Also,
49
- * none of the log events can be from earlier than the retention period of the log
50
- * group.</p>
48
+ * <p>Events older than 14 days or preceding the log group's retention period are rejected while processing remaining valid events.</p>
51
49
  * </li>
52
50
  * <li>
53
51
  * <p>The log events in the batch must be in chronological order by their timestamp. The
@@ -57,7 +55,7 @@ declare const PutLogEventsCommand_base: {
57
55
  * <code>yyyy-mm-ddThh:mm:ss</code>. For example, <code>2017-09-15T13:45:30</code>.) </p>
58
56
  * </li>
59
57
  * <li>
60
- * <p>A batch of log events in a single request cannot span more than 24 hours. Otherwise, the operation fails.</p>
58
+ * <p> A batch of log events in a single request must be in a chronological order. Otherwise, the operation fails.</p>
61
59
  * </li>
62
60
  * <li>
63
61
  * <p>Each log event can be no larger than 1 MB.</p>
@@ -66,14 +64,15 @@ declare const PutLogEventsCommand_base: {
66
64
  * <p>The maximum number of log events in a batch is 10,000.</p>
67
65
  * </li>
68
66
  * <li>
69
- * <important>
70
- * <p>The quota of five requests per second per log stream
71
- * has been removed. Instead, <code>PutLogEvents</code> actions are throttled based on a
72
- * per-second per-account quota. You can request an increase to the per-second throttling
73
- * quota by using the Service Quotas service.</p>
74
- * </important>
67
+ * <p>For valid events (within 14 days in the past to 2 hours in future), the time span in a single batch cannot exceed 24 hours. Otherwise, the operation fails.</p>
75
68
  * </li>
76
69
  * </ul>
70
+ * <important>
71
+ * <p>The quota of five requests per second per log stream
72
+ * has been removed. Instead, <code>PutLogEvents</code> actions are throttled based on a
73
+ * per-second per-account quota. You can request an increase to the per-second throttling
74
+ * quota by using the Service Quotas service.</p>
75
+ * </important>
77
76
  * <p>If a call to <code>PutLogEvents</code> returns "UnrecognizedClientException" the most
78
77
  * likely cause is a non-valid Amazon Web Services access key ID or secret key. </p>
79
78
  * @example
@@ -144,6 +144,11 @@ declare const PutTransformerCommand_base: {
144
144
  * parseRoute53: { // ParseRoute53
145
145
  * source: "STRING_VALUE",
146
146
  * },
147
+ * parseToOCSF: { // ParseToOCSF
148
+ * source: "STRING_VALUE",
149
+ * eventSource: "CloudTrail" || "Route53Resolver" || "VPCFlow" || "EKSAudit" || "AWSWAF", // required
150
+ * ocsfVersion: "V1.1", // required
151
+ * },
147
152
  * parsePostgres: { // ParsePostgres
148
153
  * source: "STRING_VALUE",
149
154
  * },
@@ -125,6 +125,11 @@ declare const TestTransformerCommand_base: {
125
125
  * parseRoute53: { // ParseRoute53
126
126
  * source: "STRING_VALUE",
127
127
  * },
128
+ * parseToOCSF: { // ParseToOCSF
129
+ * source: "STRING_VALUE",
130
+ * eventSource: "CloudTrail" || "Route53Resolver" || "VPCFlow" || "EKSAudit" || "AWSWAF", // required
131
+ * ocsfVersion: "V1.1", // required
132
+ * },
128
133
  * parsePostgres: { // ParsePostgres
129
134
  * source: "STRING_VALUE",
130
135
  * },
@@ -3164,6 +3164,21 @@ export declare const EntityRejectionErrorType: {
3164
3164
  * @public
3165
3165
  */
3166
3166
  export type EntityRejectionErrorType = (typeof EntityRejectionErrorType)[keyof typeof EntityRejectionErrorType];
3167
+ /**
3168
+ * @public
3169
+ * @enum
3170
+ */
3171
+ export declare const EventSource: {
3172
+ readonly AWSWAF: "AWSWAF";
3173
+ readonly CLOUD_TRAIL: "CloudTrail";
3174
+ readonly EKS_AUDIT: "EKSAudit";
3175
+ readonly ROUTE53_RESOLVER: "Route53Resolver";
3176
+ readonly VPC_FLOW: "VPCFlow";
3177
+ };
3178
+ /**
3179
+ * @public
3180
+ */
3181
+ export type EventSource = (typeof EventSource)[keyof typeof EventSource];
3167
3182
  /**
3168
3183
  * <p>Represents a matched event.</p>
3169
3184
  * @public
@@ -4476,6 +4491,40 @@ export interface ParseRoute53 {
4476
4491
  */
4477
4492
  source?: string | undefined;
4478
4493
  }
4494
+ /**
4495
+ * @public
4496
+ * @enum
4497
+ */
4498
+ export declare const OCSFVersion: {
4499
+ readonly V1_1: "V1.1";
4500
+ };
4501
+ /**
4502
+ * @public
4503
+ */
4504
+ export type OCSFVersion = (typeof OCSFVersion)[keyof typeof OCSFVersion];
4505
+ /**
4506
+ * <p>This processor converts logs into <a href="https://ocsf.io">Open Cybersecurity Schema Framework (OCSF)</a> events.</p>
4507
+ * <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-parseToOCSF">
4508
+ * parseToOSCF</a> in the <i>CloudWatch Logs User Guide</i>.</p>
4509
+ * @public
4510
+ */
4511
+ export interface ParseToOCSF {
4512
+ /**
4513
+ * <p>The path to the field in the log event that you want to parse. If you omit this value, the whole log message is parsed.</p>
4514
+ * @public
4515
+ */
4516
+ source?: string | undefined;
4517
+ /**
4518
+ * <p>Specify the service or process that produces the log events that will be converted with this processor.</p>
4519
+ * @public
4520
+ */
4521
+ eventSource: EventSource | undefined;
4522
+ /**
4523
+ * <p>Specify which version of the OCSF schema to use for the transformed log events.</p>
4524
+ * @public
4525
+ */
4526
+ ocsfVersion: OCSFVersion | undefined;
4527
+ }
4479
4528
  /**
4480
4529
  * <p>Use this processor to parse Amazon VPC vended logs, extract fields, and and convert them into a JSON format. This processor always
4481
4530
  * processes the entire log event message.</p>
@@ -4779,6 +4828,11 @@ export interface Processor {
4779
4828
  * @public
4780
4829
  */
4781
4830
  parseRoute53?: ParseRoute53 | undefined;
4831
+ /**
4832
+ * <p>Use this processor to convert logs into Open Cybersecurity Schema Framework (OCSF) format</p>
4833
+ * @public
4834
+ */
4835
+ parseToOCSF?: ParseToOCSF | undefined;
4782
4836
  /**
4783
4837
  * <p>Use this parameter to include the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parsePostGres">
4784
4838
  * parsePostGres</a> processor in your transformer.</p>
@@ -5668,6 +5722,10 @@ export interface PutDeliverySourceRequest {
5668
5722
  * <code>AD_DECISION_SERVER_LOGS</code>, <code>MANIFEST_SERVICE_LOGS</code>, and <code>TRANSCODE_LOGS</code>.</p>
5669
5723
  * </li>
5670
5724
  * <li>
5725
+ * <p>For Entity Resolution, the valid value is
5726
+ * <code>WORKFLOW_LOGS</code>.</p>
5727
+ * </li>
5728
+ * <li>
5671
5729
  * <p>For IAM Identity Center, the valid value is
5672
5730
  * <code>ERROR_LOGS</code>.</p>
5673
5731
  * </li>
@@ -5676,8 +5734,8 @@ export interface PutDeliverySourceRequest {
5676
5734
  * <code>EVENT_LOGS</code>.</p>
5677
5735
  * </li>
5678
5736
  * <li>
5679
- * <p>For Amazon SES mail manager, the valid value is
5680
- * <code>APPLICATION_LOG</code>.</p>
5737
+ * <p>For Amazon SES mail manager, the valid values are
5738
+ * <code>APPLICATION_LOG</code> and <code>TRAFFIC_POLICY_DEBUG_LOGS</code>.</p>
5681
5739
  * </li>
5682
5740
  * <li>
5683
5741
  * <p>For Amazon WorkMail, the valid values are
@@ -784,6 +784,14 @@ export declare const EntityRejectionErrorType: {
784
784
  };
785
785
  export type EntityRejectionErrorType =
786
786
  (typeof EntityRejectionErrorType)[keyof typeof EntityRejectionErrorType];
787
+ export declare const EventSource: {
788
+ readonly AWSWAF: "AWSWAF";
789
+ readonly CLOUD_TRAIL: "CloudTrail";
790
+ readonly EKS_AUDIT: "EKSAudit";
791
+ readonly ROUTE53_RESOLVER: "Route53Resolver";
792
+ readonly VPC_FLOW: "VPCFlow";
793
+ };
794
+ export type EventSource = (typeof EventSource)[keyof typeof EventSource];
787
795
  export interface FilteredLogEvent {
788
796
  logStreamName?: string | undefined;
789
797
  timestamp?: number | undefined;
@@ -1073,6 +1081,15 @@ export interface ParsePostgres {
1073
1081
  export interface ParseRoute53 {
1074
1082
  source?: string | undefined;
1075
1083
  }
1084
+ export declare const OCSFVersion: {
1085
+ readonly V1_1: "V1.1";
1086
+ };
1087
+ export type OCSFVersion = (typeof OCSFVersion)[keyof typeof OCSFVersion];
1088
+ export interface ParseToOCSF {
1089
+ source?: string | undefined;
1090
+ eventSource: EventSource | undefined;
1091
+ ocsfVersion: OCSFVersion | undefined;
1092
+ }
1076
1093
  export interface ParseVPC {
1077
1094
  source?: string | undefined;
1078
1095
  }
@@ -1136,6 +1153,7 @@ export interface Processor {
1136
1153
  parseJSON?: ParseJSON | undefined;
1137
1154
  parseKeyValue?: ParseKeyValue | undefined;
1138
1155
  parseRoute53?: ParseRoute53 | undefined;
1156
+ parseToOCSF?: ParseToOCSF | undefined;
1139
1157
  parsePostgres?: ParsePostgres | undefined;
1140
1158
  parseVPC?: ParseVPC | undefined;
1141
1159
  parseWAF?: ParseWAF | undefined;
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.830.0",
4
+ "version": "3.832.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",