@aws-sdk/client-cloudwatch-logs 3.1103.0 → 3.1105.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
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1102.0";
73
+ var version = "3.1104.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -1078,6 +1078,8 @@ const _hE = "httpError";
1078
1078
  const _i = "identifier";
1079
1079
  const _iA = "integrationArn";
1080
1080
  const _iB = "importBatches";
1081
+ const _iC = "indexCategories";
1082
+ const _iCn = "indexCategory";
1081
1083
  const _iD = "integrationDetails";
1082
1084
  const _iDA = "importDestinationArn";
1083
1085
  const _iDs = "isDynamic";
@@ -1877,8 +1879,8 @@ var DescribeExportTasksResponse$ = [3, n0, _DETRe,
1877
1879
  ];
1878
1880
  var DescribeFieldIndexesRequest$ = [3, n0, _DFIR,
1879
1881
  0,
1880
- [_lGI, _nT],
1881
- [64 | 0, 0], 1
1882
+ [_lGI, _iC, _nT],
1883
+ [64 | 0, 64 | 0, 0], 1
1882
1884
  ];
1883
1885
  var DescribeFieldIndexesResponse$ = [3, n0, _DFIRe,
1884
1886
  0,
@@ -2042,8 +2044,8 @@ var ExportTaskStatus$ = [3, n0, _ETS,
2042
2044
  ];
2043
2045
  var FieldIndex$ = [3, n0, _FI,
2044
2046
  0,
2045
- [_lGIo, _fIN, _lST, _fET, _lET, _ty],
2046
- [0, 0, 1, 1, 1, 0]
2047
+ [_lGIo, _fIN, _lST, _fET, _lET, _ty, _iCn],
2048
+ [0, 0, 1, 1, 1, 0, 0]
2047
2049
  ];
2048
2050
  var FieldsData$ = [3, n0, _FD,
2049
2051
  0,
@@ -4387,6 +4389,12 @@ const ExportTaskStatusCode = {
4387
4389
  PENDING_CANCEL: "PENDING_CANCEL",
4388
4390
  RUNNING: "RUNNING",
4389
4391
  };
4392
+ const IndexCategory = {
4393
+ AUTO: "AUTO",
4394
+ CUSTOM: "CUSTOM",
4395
+ DEFAULT: "DEFAULT",
4396
+ INACTIVE: "INACTIVE",
4397
+ };
4390
4398
  const IndexType = {
4391
4399
  FACET: "FACET",
4392
4400
  FIELD_INDEX: "FIELD_INDEX",
@@ -4868,6 +4876,7 @@ exports.ImportBatch$ = ImportBatch$;
4868
4876
  exports.ImportFilter$ = ImportFilter$;
4869
4877
  exports.ImportStatistics$ = ImportStatistics$;
4870
4878
  exports.ImportStatus = ImportStatus;
4879
+ exports.IndexCategory = IndexCategory;
4871
4880
  exports.IndexPolicy$ = IndexPolicy$;
4872
4881
  exports.IndexSource = IndexSource;
4873
4882
  exports.IndexType = IndexType;
@@ -96,6 +96,12 @@ export const ExportTaskStatusCode = {
96
96
  PENDING_CANCEL: "PENDING_CANCEL",
97
97
  RUNNING: "RUNNING",
98
98
  };
99
+ export const IndexCategory = {
100
+ AUTO: "AUTO",
101
+ CUSTOM: "CUSTOM",
102
+ DEFAULT: "DEFAULT",
103
+ INACTIVE: "INACTIVE",
104
+ };
99
105
  export const IndexType = {
100
106
  FACET: "FACET",
101
107
  FIELD_INDEX: "FIELD_INDEX",
@@ -670,6 +670,8 @@ const _hE = "httpError";
670
670
  const _i = "identifier";
671
671
  const _iA = "integrationArn";
672
672
  const _iB = "importBatches";
673
+ const _iC = "indexCategories";
674
+ const _iCn = "indexCategory";
673
675
  const _iD = "integrationDetails";
674
676
  const _iDA = "importDestinationArn";
675
677
  const _iDs = "isDynamic";
@@ -1472,8 +1474,8 @@ export var DescribeExportTasksResponse$ = [3, n0, _DETRe,
1472
1474
  ];
1473
1475
  export var DescribeFieldIndexesRequest$ = [3, n0, _DFIR,
1474
1476
  0,
1475
- [_lGI, _nT],
1476
- [64 | 0, 0], 1
1477
+ [_lGI, _iC, _nT],
1478
+ [64 | 0, 64 | 0, 0], 1
1477
1479
  ];
1478
1480
  export var DescribeFieldIndexesResponse$ = [3, n0, _DFIRe,
1479
1481
  0,
@@ -1637,8 +1639,8 @@ export var ExportTaskStatus$ = [3, n0, _ETS,
1637
1639
  ];
1638
1640
  export var FieldIndex$ = [3, n0, _FI,
1639
1641
  0,
1640
- [_lGIo, _fIN, _lST, _fET, _lET, _ty],
1641
- [0, 0, 1, 1, 1, 0]
1642
+ [_lGIo, _fIN, _lST, _fET, _lET, _ty, _iCn],
1643
+ [0, 0, 1, 1, 1, 0, 0]
1642
1644
  ];
1643
1645
  export var FieldsData$ = [3, n0, _FD,
1644
1646
  0,
@@ -2725,6 +2727,7 @@ var ImportList = [1, n0, _IL,
2725
2727
  0, () => Import$
2726
2728
  ];
2727
2729
  var ImportStatusList = 64 | 0;
2730
+ var IndexCategories = 64 | 0;
2728
2731
  var IndexPolicies = [1, n0, _IPn,
2729
2732
  0, () => IndexPolicy$
2730
2733
  ];
@@ -24,8 +24,10 @@ declare const DescribeFieldIndexesCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Returns a list of custom and default field indexes which are discovered in log data. For
28
- * more information about field index policies, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html">PutIndexPolicy</a>.</p>
27
+ * <p>Returns a list of field indexes discovered in log data. By default, the response includes
28
+ * the <code>DEFAULT</code>, <code>CUSTOM</code>, and <code>INACTIVE</code> index categories. To
29
+ * return indexes from other categories, use the <code>indexCategories</code> parameter.</p>
30
+ * <p>For more information about field index policies, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html">PutIndexPolicy</a>.</p>
29
31
  * @example
30
32
  * Use a bare-bones client and the command you need to make an API call.
31
33
  * ```javascript
@@ -38,6 +40,9 @@ declare const DescribeFieldIndexesCommand_base: {
38
40
  * logGroupIdentifiers: [ // DescribeFieldIndexesLogGroupIdentifiers // required
39
41
  * "STRING_VALUE",
40
42
  * ],
43
+ * indexCategories: [ // IndexCategories
44
+ * "DEFAULT" || "CUSTOM" || "AUTO" || "INACTIVE",
45
+ * ],
41
46
  * nextToken: "STRING_VALUE",
42
47
  * };
43
48
  * const command = new DescribeFieldIndexesCommand(input);
@@ -51,6 +56,7 @@ declare const DescribeFieldIndexesCommand_base: {
51
56
  * // firstEventTime: Number("long"),
52
57
  * // lastEventTime: Number("long"),
53
58
  * // type: "FACET" || "FIELD_INDEX",
59
+ * // indexCategory: "DEFAULT" || "CUSTOM" || "AUTO" || "INACTIVE",
54
60
  * // },
55
61
  * // ],
56
62
  * // nextToken: "STRING_VALUE",
@@ -232,6 +232,20 @@ export declare const ExportTaskStatusCode: {
232
232
  * @public
233
233
  */
234
234
  export type ExportTaskStatusCode = (typeof ExportTaskStatusCode)[keyof typeof ExportTaskStatusCode];
235
+ /**
236
+ * @public
237
+ * @enum
238
+ */
239
+ export declare const IndexCategory: {
240
+ readonly AUTO: "AUTO";
241
+ readonly CUSTOM: "CUSTOM";
242
+ readonly DEFAULT: "DEFAULT";
243
+ readonly INACTIVE: "INACTIVE";
244
+ };
245
+ /**
246
+ * @public
247
+ */
248
+ export type IndexCategory = (typeof IndexCategory)[keyof typeof IndexCategory];
235
249
  /**
236
250
  * @public
237
251
  * @enum
@@ -1,4 +1,4 @@
1
- import type { ActionStatus, AnomalyDetectorStatus, DataProtectionStatus, DeliveryDestinationType, DeliverySourceConfigurationSchemaValueType, DeliverySourceStatus, DeliverySourceStatusReason, Distribution, EntityRejectionErrorType, EvaluationFrequency, EventSource, ExecutionStatus, ExportTaskStatusCode, FlattenedElement, ImportStatus, IndexSource, IndexType, InheritedProperty, IntegrationStatus, IntegrationType, ListAggregateLogGroupSummariesGroupBy, LogGroupClass, OCSFVersion, OpenSearchResourceStatusType, OrderBy, OutputFormat, PolicyScope, PolicyType, QueryLanguage, QueryStatus, S3TableIntegrationSourceStatus, ScheduledQueryDestinationType, ScheduledQueryState, ScheduleType, Scope, StandardUnit, State, StorageTier, SuppressionState, SyslogSourceType, Type } from "./enums";
1
+ import type { ActionStatus, AnomalyDetectorStatus, DataProtectionStatus, DeliveryDestinationType, DeliverySourceConfigurationSchemaValueType, DeliverySourceStatus, DeliverySourceStatusReason, Distribution, EntityRejectionErrorType, EvaluationFrequency, EventSource, ExecutionStatus, ExportTaskStatusCode, FlattenedElement, ImportStatus, IndexCategory, IndexSource, IndexType, InheritedProperty, IntegrationStatus, IntegrationType, ListAggregateLogGroupSummariesGroupBy, LogGroupClass, OCSFVersion, OpenSearchResourceStatusType, OrderBy, OutputFormat, PolicyScope, PolicyType, QueryLanguage, QueryStatus, S3TableIntegrationSourceStatus, ScheduledQueryDestinationType, ScheduledQueryState, ScheduleType, Scope, StandardUnit, State, StorageTier, SuppressionState, SyslogSourceType, Type } from "./enums";
2
2
  import type { InternalStreamingException, SessionStreamingException, SessionTimeoutException } from "./errors";
3
3
  /**
4
4
  * <p>A structure that contains information about one CloudWatch Logs account policy.</p>
@@ -1156,8 +1156,9 @@ export interface CreateLookupTableRequest {
1156
1156
  */
1157
1157
  tableBody?: string | undefined;
1158
1158
  /**
1159
- * <p>The ID of a completed CloudWatch Logs query whose results populate
1160
- * the lookup table.</p>
1159
+ * <p>The ID of a completed or cancelled CloudWatch Logs query whose results populate
1160
+ * the lookup table. A cancelled query populates the table with the partial results that were
1161
+ * available when the query was stopped.</p>
1161
1162
  * <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not
1162
1163
  * both.</p>
1163
1164
  * @public
@@ -2383,6 +2384,42 @@ export interface DescribeFieldIndexesRequest {
2383
2384
  * @public
2384
2385
  */
2385
2386
  logGroupIdentifiers: string[] | undefined;
2387
+ /**
2388
+ * <p>The index categories to return. The following values are supported:</p>
2389
+ * <ul>
2390
+ * <li>
2391
+ * <p>
2392
+ * <code>DEFAULT</code>: Fields that CloudWatch Logs indexes by default. Examples
2393
+ * include <code>@logStream</code> and <code>@data_format</code>.</p>
2394
+ * </li>
2395
+ * <li>
2396
+ * <p>
2397
+ * <code>CUSTOM</code>: Fields that you added manually to the field index policy.
2398
+ * CloudWatch Logs always indexes these fields. These fields count toward the quota of
2399
+ * 20 fields for each log group.</p>
2400
+ * </li>
2401
+ * <li>
2402
+ * <p>
2403
+ * <code>AUTO</code>: Fields that CloudWatch Logs indexes automatically based on your
2404
+ * query patterns and usage. These fields do not count toward the field index quota.
2405
+ * CloudWatch Logs might update these fields based on changes in your query patterns. To
2406
+ * keep a field indexed permanently, add it to an account-level or log-group level field
2407
+ * index policy.</p>
2408
+ * </li>
2409
+ * <li>
2410
+ * <p>
2411
+ * <code>INACTIVE</code>: Fields that CloudWatch Logs indexed before but does not
2412
+ * index now. This happens if you remove a field from the field index policy or if
2413
+ * CloudWatch Logs automatically selects a different field based on your queries.</p>
2414
+ * </li>
2415
+ * </ul>
2416
+ * <p>If you omit this parameter, the response includes the <code>DEFAULT</code>,
2417
+ * <code>CUSTOM</code>, and <code>INACTIVE</code> categories.</p>
2418
+ * <p>For more information about automatically indexed fields and using the <code>AUTO</code>
2419
+ * category, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing-Automatic.html">Automatically indexed fields</a>.</p>
2420
+ * @public
2421
+ */
2422
+ indexCategories?: IndexCategory[] | undefined;
2386
2423
  /**
2387
2424
  * <p>The token for the next set of items to return. The token expires after 24
2388
2425
  * hours.</p>
@@ -2432,6 +2469,39 @@ export interface FieldIndex {
2432
2469
  * @public
2433
2470
  */
2434
2471
  type?: IndexType | undefined;
2472
+ /**
2473
+ * <p>The category of the field index:</p>
2474
+ * <ul>
2475
+ * <li>
2476
+ * <p>
2477
+ * <code>DEFAULT</code>: Fields that CloudWatch Logs indexes by default. Examples
2478
+ * include <code>@logStream</code> and <code>@data_format</code>.</p>
2479
+ * </li>
2480
+ * <li>
2481
+ * <p>
2482
+ * <code>CUSTOM</code>: Fields that you added manually to the field index policy.
2483
+ * CloudWatch Logs always indexes these fields. These fields count toward the quota of
2484
+ * 20 fields for each log group.</p>
2485
+ * </li>
2486
+ * <li>
2487
+ * <p>
2488
+ * <code>AUTO</code>: Fields that CloudWatch Logs indexes automatically based on your
2489
+ * query patterns and usage. These fields do not count toward the field index quota.
2490
+ * CloudWatch Logs might update these fields based on changes in your query patterns. To
2491
+ * keep a field indexed permanently, add it to an account-level or log-group level field
2492
+ * index policy.</p>
2493
+ * </li>
2494
+ * <li>
2495
+ * <p>
2496
+ * <code>INACTIVE</code>: Fields that CloudWatch Logs indexed before but does not
2497
+ * index now. This happens if you remove a field from the field index policy or if
2498
+ * CloudWatch Logs automatically selects a different field based on your queries.</p>
2499
+ * </li>
2500
+ * </ul>
2501
+ * <p>For more information about automatically indexed fields, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogs-Field-Indexing-Automatic.html">Automatically indexed fields</a>.</p>
2502
+ * @public
2503
+ */
2504
+ indexCategory?: IndexCategory | undefined;
2435
2505
  }
2436
2506
  /**
2437
2507
  * @public
@@ -3925,6 +3995,10 @@ export interface FilterLogEventsRequest {
3925
3995
  * <p>The start of the time range, expressed as the number of milliseconds after <code>Jan 1,
3926
3996
  * 1970 00:00:00 UTC</code>. Events with a timestamp before this time are not
3927
3997
  * returned.</p>
3998
+ * <note>
3999
+ * <p>Set <code>startTime</code> explicitly to reduce the chances of empty pages in the
4000
+ * response.</p>
4001
+ * </note>
3928
4002
  * @public
3929
4003
  */
3930
4004
  startTime?: number | undefined;
@@ -4609,6 +4683,10 @@ export interface GetLogEventsRequest {
4609
4683
  * <p>The start of the time range, expressed as the number of milliseconds after <code>Jan 1,
4610
4684
  * 1970 00:00:00 UTC</code>. Events with a timestamp equal to this time or later than this time
4611
4685
  * are included. Events with a timestamp earlier than this time are not included.</p>
4686
+ * <note>
4687
+ * <p>Set <code>startTime</code> explicitly to reduce the chances of empty pages in the
4688
+ * response.</p>
4689
+ * </note>
4612
4690
  * @public
4613
4691
  */
4614
4692
  startTime?: number | undefined;
@@ -7276,6 +7354,10 @@ export interface PutDeliverySourceRequest {
7276
7354
  * <p>Defines the type of log that the source is sending.</p>
7277
7355
  * <ul>
7278
7356
  * <li>
7357
+ * <p>For Application Load Balancer, the valid values are <code>ALB_ACCESS_LOGS</code>,
7358
+ * <code>ALB_CONNECTION_LOGS</code>, and <code>ALB_HEALTH_CHECK_LOGS</code>.</p>
7359
+ * </li>
7360
+ * <li>
7279
7361
  * <p>For Amazon Bedrock Agents, the valid values are <code>APPLICATION_LOGS</code> and
7280
7362
  * <code>EVENT_LOGS</code>.</p>
7281
7363
  * </li>
@@ -281,8 +281,9 @@ export interface UpdateLookupTableRequest {
281
281
  */
282
282
  tableBody?: string | undefined;
283
283
  /**
284
- * <p>The ID of a completed CloudWatch Logs query whose results replace
285
- * the lookup table content.</p>
284
+ * <p>The ID of a completed or cancelled CloudWatch Logs query whose results replace
285
+ * the lookup table content. A cancelled query replaces the content with the partial results
286
+ * that were available when the query was stopped.</p>
286
287
  * <p>You must specify either <code>tableBody</code> or <code>queryId</code>, but not
287
288
  * both.</p>
288
289
  * @public
@@ -117,6 +117,13 @@ export declare const ExportTaskStatusCode: {
117
117
  readonly RUNNING: "RUNNING";
118
118
  };
119
119
  export type ExportTaskStatusCode = (typeof ExportTaskStatusCode)[keyof typeof ExportTaskStatusCode];
120
+ export declare const IndexCategory: {
121
+ readonly AUTO: "AUTO";
122
+ readonly CUSTOM: "CUSTOM";
123
+ readonly DEFAULT: "DEFAULT";
124
+ readonly INACTIVE: "INACTIVE";
125
+ };
126
+ export type IndexCategory = (typeof IndexCategory)[keyof typeof IndexCategory];
120
127
  export declare const IndexType: {
121
128
  readonly FACET: "FACET";
122
129
  readonly FIELD_INDEX: "FIELD_INDEX";
@@ -14,6 +14,7 @@ import {
14
14
  ExportTaskStatusCode,
15
15
  FlattenedElement,
16
16
  ImportStatus,
17
+ IndexCategory,
17
18
  IndexSource,
18
19
  IndexType,
19
20
  InheritedProperty,
@@ -531,6 +532,7 @@ export interface DescribeExportTasksResponse {
531
532
  }
532
533
  export interface DescribeFieldIndexesRequest {
533
534
  logGroupIdentifiers: string[] | undefined;
535
+ indexCategories?: IndexCategory[] | undefined;
534
536
  nextToken?: string | undefined;
535
537
  }
536
538
  export interface FieldIndex {
@@ -540,6 +542,7 @@ export interface FieldIndex {
540
542
  firstEventTime?: number | undefined;
541
543
  lastEventTime?: number | undefined;
542
544
  type?: IndexType | undefined;
545
+ indexCategory?: IndexCategory | undefined;
543
546
  }
544
547
  export interface DescribeFieldIndexesResponse {
545
548
  fieldIndexes?: FieldIndex[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudwatch-logs",
3
- "version": "3.1103.0",
3
+ "version": "3.1105.0",
4
4
  "description": "AWS SDK for JavaScript Cloudwatch Logs Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudwatch-logs",
6
6
  "license": "Apache-2.0",