@aws-sdk/client-cloudwatch-logs 3.887.0 → 3.890.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
@@ -2975,6 +2975,8 @@ var se_MetricTransformations = /* @__PURE__ */ __name((input, context) => {
2975
2975
  var se_PutMetricFilterRequest = /* @__PURE__ */ __name((input, context) => {
2976
2976
  return (0, import_smithy_client.take)(input, {
2977
2977
  applyOnTransformedLogs: [],
2978
+ emitSystemFieldDimensions: import_smithy_client._json,
2979
+ fieldSelectionCriteria: [],
2978
2980
  filterName: [],
2979
2981
  filterPattern: [],
2980
2982
  logGroupName: [],
@@ -3015,6 +3017,8 @@ var de_MetricFilter = /* @__PURE__ */ __name((output, context) => {
3015
3017
  return (0, import_smithy_client.take)(output, {
3016
3018
  applyOnTransformedLogs: import_smithy_client.expectBoolean,
3017
3019
  creationTime: import_smithy_client.expectLong,
3020
+ emitSystemFieldDimensions: import_smithy_client._json,
3021
+ fieldSelectionCriteria: import_smithy_client.expectString,
3018
3022
  filterName: import_smithy_client.expectString,
3019
3023
  filterPattern: import_smithy_client.expectString,
3020
3024
  logGroupName: import_smithy_client.expectString,
@@ -1996,6 +1996,8 @@ const se_MetricTransformations = (input, context) => {
1996
1996
  const se_PutMetricFilterRequest = (input, context) => {
1997
1997
  return take(input, {
1998
1998
  applyOnTransformedLogs: [],
1999
+ emitSystemFieldDimensions: _json,
2000
+ fieldSelectionCriteria: [],
1999
2001
  filterName: [],
2000
2002
  filterPattern: [],
2001
2003
  logGroupName: [],
@@ -2036,6 +2038,8 @@ const de_MetricFilter = (output, context) => {
2036
2038
  return take(output, {
2037
2039
  applyOnTransformedLogs: __expectBoolean,
2038
2040
  creationTime: __expectLong,
2041
+ emitSystemFieldDimensions: _json,
2042
+ fieldSelectionCriteria: __expectString,
2039
2043
  filterName: __expectString,
2040
2044
  filterPattern: __expectString,
2041
2045
  logGroupName: __expectString,
@@ -35,8 +35,8 @@ declare const DescribeDeliveriesCommand_base: {
35
35
  * <i>delivery destination</i>
36
36
  * </a>.</p>
37
37
  * <p>A delivery source represents an Amazon Web Services resource that sends logs to an logs
38
- * delivery destination. The destination can be CloudWatch Logs, Amazon S3, Firehose or X-Ray. Only some Amazon Web Services services support being configured as a delivery
39
- * source. These services are listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enable logging from
38
+ * delivery destination. The destination can be CloudWatch Logs, Amazon S3, Firehose or X-Ray. Only some Amazon Web Services services support being
39
+ * configured as a delivery source. These services are listed in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/AWS-logs-and-resource-policy.html">Enable logging from
40
40
  * Amazon Web Services services.</a>
41
41
  * </p>
42
42
  * @example
@@ -27,8 +27,8 @@ declare const DescribeFieldIndexesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns a list of field indexes listed in the field index policies of one or more log
31
- * groups. For more information about field index policies, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html">PutIndexPolicy</a>.</p>
30
+ * <p>Returns a list of custom and default field indexes which are discovered in log data. For
31
+ * more information about field index policies, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html">PutIndexPolicy</a>.</p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -27,7 +27,7 @@ declare const DescribeIndexPoliciesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Returns the field index policies of one or more log groups. For more information about
30
+ * <p>Returns the field index policies of the specified log group. For more information about
31
31
  * field index policies, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutIndexPolicy.html">PutIndexPolicy</a>.</p>
32
32
  * <p>If a specified log group has a log-group level index policy, that policy is returned by
33
33
  * this operation.</p>
@@ -66,6 +66,10 @@ declare const DescribeMetricFiltersCommand_base: {
66
66
  * // creationTime: Number("long"),
67
67
  * // logGroupName: "STRING_VALUE",
68
68
  * // applyOnTransformedLogs: true || false,
69
+ * // fieldSelectionCriteria: "STRING_VALUE",
70
+ * // emitSystemFieldDimensions: [ // EmitSystemFields
71
+ * // "STRING_VALUE",
72
+ * // ],
69
73
  * // },
70
74
  * // ],
71
75
  * // nextToken: "STRING_VALUE",
@@ -55,6 +55,10 @@ declare const DescribeSubscriptionFiltersCommand_base: {
55
55
  * // distribution: "Random" || "ByLogStream",
56
56
  * // applyOnTransformedLogs: true || false,
57
57
  * // creationTime: Number("long"),
58
+ * // fieldSelectionCriteria: "STRING_VALUE",
59
+ * // emitSystemFields: [ // EmitSystemFields
60
+ * // "STRING_VALUE",
61
+ * // ],
58
62
  * // },
59
63
  * // ],
60
64
  * // nextToken: "STRING_VALUE",
@@ -37,7 +37,7 @@ declare const FilterLogEventsCommand_base: {
37
37
  * <p>A time range</p>
38
38
  * </li>
39
39
  * <li>
40
- * <p>The log stream name, or a log stream name prefix that matches mutltiple log
40
+ * <p>The log stream name, or a log stream name prefix that matches multiple log
41
41
  * streams</p>
42
42
  * </li>
43
43
  * </ul>
@@ -27,10 +27,17 @@ declare const GetLogObjectCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Retrieves a large logging object (LLO) and streams it back. This API is used to fetch the content of large portions of log events that have been ingested through the PutOpenTelemetryLogs API.
31
- * When log events contain fields that would cause the total event size to exceed 1MB, CloudWatch Logs automatically processes up to 10 fields, starting with the largest fields. Each field is truncated as needed to keep
32
- * the total event size as close to 1MB as possible. The excess portions are stored as Large Log Objects (LLOs) and these fields are processed separately and LLO reference system fields (in the format <code>@ptr.$[path.to.field]</code>) are
33
- * added. The path in the reference field reflects the original JSON structure where the large field was located. For example, this could be <code>@ptr.$['input']['message']</code>, <code>@ptr.$['AAA']['BBB']['CCC']['DDD']</code>, <code>@ptr.$['AAA']</code>, or any other path matching your log structure.</p>
30
+ * <p>Retrieves a large logging object (LLO) and streams it back. This API is used to fetch the
31
+ * content of large portions of log events that have been ingested through the
32
+ * PutOpenTelemetryLogs API. When log events contain fields that would cause the total event size
33
+ * to exceed 1MB, CloudWatch Logs automatically processes up to 10 fields, starting with the
34
+ * largest fields. Each field is truncated as needed to keep the total event size as close to 1MB
35
+ * as possible. The excess portions are stored as Large Log Objects (LLOs) and these fields are
36
+ * processed separately and LLO reference system fields (in the format
37
+ * <code>@ptr.$[path.to.field]</code>) are added. The path in the reference field reflects the
38
+ * original JSON structure where the large field was located. For example, this could be
39
+ * <code>@ptr.$['input']['message']</code>, <code>@ptr.$['AAA']['BBB']['CCC']['DDD']</code>,
40
+ * <code>@ptr.$['AAA']</code>, or any other path matching your log structure.</p>
34
41
  * @example
35
42
  * Use a bare-bones client and the command you need to make an API call.
36
43
  * ```javascript
@@ -53,8 +53,8 @@ declare const PutAccountPolicyCommand_base: {
53
53
  * </li>
54
54
  * <li>
55
55
  * <p>To create a metric extraction policy, you must have the
56
- * <code>logs:PutMetricExtractionPolicy</code> and
57
- * <code>logs:PutAccountPolicy</code> permissions.</p>
56
+ * <code>logs:PutMetricExtractionPolicy</code> and <code>logs:PutAccountPolicy</code>
57
+ * permissions.</p>
58
58
  * </li>
59
59
  * </ul>
60
60
  * <p>
@@ -149,6 +149,32 @@ declare const PutAccountPolicyCommand_base: {
149
149
  * use the same or overlapping log group name prefixes. For example, if you have one policy
150
150
  * filtered to log groups that start with <code>my-log</code>, you can't have another field index
151
151
  * policy filtered to <code>my-logpprod</code> or <code>my-logging</code>.</p>
152
+ * <p>CloudWatch Logs provides default field indexes for all log groups in the Standard log
153
+ * class. Default field indexes are automatically available for the following fields: </p>
154
+ * <ul>
155
+ * <li>
156
+ * <p>
157
+ * <code>@aws.region</code>
158
+ * </p>
159
+ * </li>
160
+ * <li>
161
+ * <p>
162
+ * <code>@aws.account</code>
163
+ * </p>
164
+ * </li>
165
+ * <li>
166
+ * <p>
167
+ * <code>@source.log</code>
168
+ * </p>
169
+ * </li>
170
+ * <li>
171
+ * <p>
172
+ * <code>traceId</code>
173
+ * </p>
174
+ * </li>
175
+ * </ul>
176
+ * <p>Default field indexes are in addition to any custom field indexes you define within your
177
+ * policy. Default field indexes are not counted towards your field index quota. </p>
152
178
  * <p>You can also set up a transformer at the log-group level. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html">PutTransformer</a>. If there is both a log-group level transformer created with
153
179
  * <code>PutTransformer</code> and an account-level transformer that could apply to the same
154
180
  * log group, the log group uses only the log-group level transformer. It ignores the
@@ -200,15 +226,16 @@ declare const PutAccountPolicyCommand_base: {
200
226
  * <important>
201
227
  * <p>Creating a policy disables metrics for AWS features that use EMF to create metrics, such
202
228
  * as CloudWatch Container Insights and CloudWatch Application Signals. To prevent turning off
203
- * those features by accident, we recommend that you exclude the underlying log-groups through a
204
- * selection-criteria such as <code>LogGroupNamePrefix NOT IN ["/aws/containerinsights",
205
- * "/aws/ecs/containerinsights", "/aws/application-signals/data"]</code>.</p>
229
+ * those features by accident, we recommend that you exclude the underlying log-groups through
230
+ * a selection-criteria such as <code>LogGroupNamePrefix NOT IN ["/aws/containerinsights",
231
+ * "/aws/ecs/containerinsights", "/aws/application-signals/data"]</code>.</p>
206
232
  * </important>
207
233
  * <p>Each account can have either one account-level metric extraction policy that applies to
208
234
  * all log groups, or up to 5 policies that are each scoped to a subset of log groups with the
209
- * <code>selectionCriteria</code> parameter. The selection criteria supports filtering by <code>LogGroupName</code> and
210
- * <code>LogGroupNamePrefix</code> using the operators <code>IN</code> and <code>NOT IN</code>. You can specify up to 50 values in each
211
- * <code>IN</code> or <code>NOT IN</code> list.</p>
235
+ * <code>selectionCriteria</code> parameter. The selection criteria supports filtering by
236
+ * <code>LogGroupName</code> and <code>LogGroupNamePrefix</code> using the operators
237
+ * <code>IN</code> and <code>NOT IN</code>. You can specify up to 50 values in each
238
+ * <code>IN</code> or <code>NOT IN</code> list.</p>
212
239
  * <p>The selection criteria can be specified in these formats:</p>
213
240
  * <p>
214
241
  * <code>LogGroupName IN ["log-group-1", "log-group-2"]</code>
@@ -218,25 +245,31 @@ declare const PutAccountPolicyCommand_base: {
218
245
  * </p>
219
246
  * <p>If you have multiple account-level metric extraction policies with selection criteria, no
220
247
  * two of them can have overlapping criteria. For example, if you have one policy with selection
221
- * criteria <code>LogGroupNamePrefix IN ["my-log"]</code>, you can't have another metric extraction policy
222
- * with selection criteria <code>LogGroupNamePrefix IN ["/my-log-prod"]</code> or <code>LogGroupNamePrefix IN
223
- * ["/my-logging"]</code>, as the set of log groups matching these prefixes would be a subset of the log
224
- * groups matching the first policy's prefix, creating an overlap.</p>
225
- * <p>When using <code>NOT IN</code>, only one policy with this operator is allowed per account.</p>
226
- * <p>When combining policies with <code>IN</code> and <code>NOT IN</code> operators, the overlap check ensures that
227
- * policies don't have conflicting effects. Two policies with <code>IN</code> and <code>NOT IN</code> operators do not
228
- * overlap if and only if every value in the <code>IN </code>policy is completely contained within some value
229
- * in the <code>NOT IN</code> policy. For example:</p>
248
+ * criteria <code>LogGroupNamePrefix IN ["my-log"]</code>, you can't have another metric
249
+ * extraction policy with selection criteria <code>LogGroupNamePrefix IN ["/my-log-prod"]</code>
250
+ * or <code>LogGroupNamePrefix IN ["/my-logging"]</code>, as the set of log groups matching these
251
+ * prefixes would be a subset of the log groups matching the first policy's prefix, creating an
252
+ * overlap.</p>
253
+ * <p>When using <code>NOT IN</code>, only one policy with this operator is allowed per
254
+ * account.</p>
255
+ * <p>When combining policies with <code>IN</code> and <code>NOT IN</code> operators, the
256
+ * overlap check ensures that policies don't have conflicting effects. Two policies with
257
+ * <code>IN</code> and <code>NOT IN</code> operators do not overlap if and only if every value
258
+ * in the <code>IN </code>policy is completely contained within some value in the <code>NOT
259
+ * IN</code> policy. For example:</p>
230
260
  * <ul>
231
261
  * <li>
232
- * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you can create an <code>IN</code> policy for
233
- * the exact log group name <code>"/aws/lambda/function1"</code> because the set of log groups matching
234
- * <code>"/aws/lambda/function1"</code> is a subset of the log groups matching <code>"/aws/lambda"</code>.</p>
262
+ * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you
263
+ * can create an <code>IN</code> policy for the exact log group name
264
+ * <code>"/aws/lambda/function1"</code> because the set of log groups matching
265
+ * <code>"/aws/lambda/function1"</code> is a subset of the log groups matching
266
+ * <code>"/aws/lambda"</code>.</p>
235
267
  * </li>
236
268
  * <li>
237
- * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you cannot create an <code>IN</code> policy
238
- * for prefix <code>"/aws"</code> because the set of log groups matching <code>"/aws"</code> is not a subset of the log
239
- * groups matching <code>"/aws/lambda"</code>.</p>
269
+ * <p>If you have a <code>NOT IN</code> policy for prefix <code>"/aws/lambda"</code>, you
270
+ * cannot create an <code>IN</code> policy for prefix <code>"/aws"</code> because the set of
271
+ * log groups matching <code>"/aws"</code> is not a subset of the log groups matching
272
+ * <code>"/aws/lambda"</code>.</p>
240
273
  * </li>
241
274
  * </ul>
242
275
  * @example
@@ -30,7 +30,8 @@ declare const PutDeliveryDestinationCommand_base: {
30
30
  * <p>Creates or updates a logical <i>delivery destination</i>. A delivery
31
31
  * destination is an Amazon Web Services resource that represents an Amazon Web Services service
32
32
  * that logs can be sent to. CloudWatch Logs, Amazon S3, and Firehose are
33
- * supported as logs delivery destinations and X-Ray as the trace delivery destination.</p>
33
+ * supported as logs delivery destinations and X-Ray as the trace delivery
34
+ * destination.</p>
34
35
  * <p>To configure logs delivery between a supported Amazon Web Services service and a
35
36
  * destination, you must do the following:</p>
36
37
  * <ul>
@@ -45,6 +45,32 @@ declare const PutIndexPolicyCommand_base: {
45
45
  * </code> or <code>requestId IN [<i>value</i>,
46
46
  * <i>value</i>, ...]</code> will process fewer log events to reduce costs, and
47
47
  * have improved performance.</p>
48
+ * <p>CloudWatch Logs provides default field indexes for all log groups in the Standard log
49
+ * class. Default field indexes are automatically available for the following fields: </p>
50
+ * <ul>
51
+ * <li>
52
+ * <p>
53
+ * <code>@aws.region</code>
54
+ * </p>
55
+ * </li>
56
+ * <li>
57
+ * <p>
58
+ * <code>@aws.account</code>
59
+ * </p>
60
+ * </li>
61
+ * <li>
62
+ * <p>
63
+ * <code>@source.log</code>
64
+ * </p>
65
+ * </li>
66
+ * <li>
67
+ * <p>
68
+ * <code>traceId</code>
69
+ * </p>
70
+ * </li>
71
+ * </ul>
72
+ * <p>Default field indexes are in addition to any custom field indexes you define within your
73
+ * policy. Default field indexes are not counted towards your field index quota. </p>
48
74
  * <p>Each index policy has the following quotas and restrictions:</p>
49
75
  * <ul>
50
76
  * <li>
@@ -74,6 +74,10 @@ declare const PutMetricFilterCommand_base: {
74
74
  * },
75
75
  * ],
76
76
  * applyOnTransformedLogs: true || false,
77
+ * fieldSelectionCriteria: "STRING_VALUE",
78
+ * emitSystemFieldDimensions: [ // EmitSystemFields
79
+ * "STRING_VALUE",
80
+ * ],
77
81
  * };
78
82
  * const command = new PutMetricFilterCommand(input);
79
83
  * const response = await client.send(command);
@@ -76,6 +76,10 @@ declare const PutSubscriptionFilterCommand_base: {
76
76
  * roleArn: "STRING_VALUE",
77
77
  * distribution: "Random" || "ByLogStream",
78
78
  * applyOnTransformedLogs: true || false,
79
+ * fieldSelectionCriteria: "STRING_VALUE",
80
+ * emitSystemFields: [ // EmitSystemFields
81
+ * "STRING_VALUE",
82
+ * ],
79
83
  * };
80
84
  * const command = new PutSubscriptionFilterCommand(input);
81
85
  * const response = await client.send(command);
@@ -34,8 +34,8 @@ declare const UntagLogGroupCommand_base: {
34
34
  * <p>Removes the specified tags from the specified log group.</p>
35
35
  * <p>To list the tags for a log group, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_ListTagsForResource.html">ListTagsForResource</a>. To add tags, use <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_TagResource.html">TagResource</a>.</p>
36
36
  * <p>When using IAM policies to control tag management for CloudWatch Logs log groups, the
37
- * condition keys <code>aws:Resource/key-name</code> and <code>aws:TagKeys</code> cannot be used to restrict which tags
38
- * users can assign. </p>
37
+ * condition keys <code>aws:Resource/key-name</code> and <code>aws:TagKeys</code> cannot be used
38
+ * to restrict which tags users can assign. </p>
39
39
  *
40
40
  * @deprecated Please use the generic tagging API UntagResource
41
41
  * @example
@@ -805,7 +805,7 @@ export interface Delivery {
805
805
  */
806
806
  deliveryDestinationArn?: string | undefined;
807
807
  /**
808
- * <p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.</p>
808
+ * <p>Displays whether the delivery destination associated with this delivery is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.</p>
809
809
  * @public
810
810
  */
811
811
  deliveryDestinationType?: DeliveryDestinationType | undefined;
@@ -1441,12 +1441,14 @@ export interface DeleteResourcePolicyRequest {
1441
1441
  */
1442
1442
  policyName?: string | undefined;
1443
1443
  /**
1444
- * <p>The ARN of the CloudWatch Logs resource for which the resource policy needs to be deleted</p>
1444
+ * <p>The ARN of the CloudWatch Logs resource for which the resource policy needs to be
1445
+ * deleted</p>
1445
1446
  * @public
1446
1447
  */
1447
1448
  resourceArn?: string | undefined;
1448
1449
  /**
1449
- * <p>The expected revision ID of the resource policy. Required when deleting a resource-scoped policy to prevent concurrent modifications.</p>
1450
+ * <p>The expected revision ID of the resource policy. Required when deleting a resource-scoped
1451
+ * policy to prevent concurrent modifications.</p>
1450
1452
  * @public
1451
1453
  */
1452
1454
  expectedRevisionId?: string | undefined;
@@ -1503,8 +1505,8 @@ export interface DeliveryDestinationConfiguration {
1503
1505
  /**
1504
1506
  * <p>This structure contains information about one <i>delivery destination</i> in
1505
1507
  * your account. A delivery destination is an Amazon Web Services resource that represents an
1506
- * Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3, Firehose, and X-Ray
1507
- * are supported as delivery destinations.</p>
1508
+ * Amazon Web Services service that logs can be sent to. CloudWatch Logs, Amazon S3,
1509
+ * Firehose, and X-Ray are supported as delivery destinations.</p>
1508
1510
  * <p>To configure logs delivery between a supported Amazon Web Services service and a
1509
1511
  * destination, you must do the following:</p>
1510
1512
  * <ul>
@@ -1542,7 +1544,8 @@ export interface DeliveryDestination {
1542
1544
  */
1543
1545
  arn?: string | undefined;
1544
1546
  /**
1545
- * <p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.</p>
1547
+ * <p>Displays whether this delivery destination is CloudWatch Logs, Amazon S3,
1548
+ * Firehose, or X-Ray.</p>
1546
1549
  * @public
1547
1550
  */
1548
1551
  deliveryDestinationType?: DeliveryDestinationType | undefined;
@@ -2781,6 +2784,16 @@ export interface MetricFilter {
2781
2784
  * @public
2782
2785
  */
2783
2786
  applyOnTransformedLogs?: boolean | undefined;
2787
+ /**
2788
+ * <p>The filter expression that specifies which log events are processed by this metric filter based on system fields. Returns the <code>fieldSelectionCriteria</code> value if it was specified when the metric filter was created.</p>
2789
+ * @public
2790
+ */
2791
+ fieldSelectionCriteria?: string | undefined;
2792
+ /**
2793
+ * <p>The list of system fields that are emitted as additional dimensions in the generated metrics. Returns the <code>emitSystemFieldDimensions</code> value if it was specified when the metric filter was created.</p>
2794
+ * @public
2795
+ */
2796
+ emitSystemFieldDimensions?: string[] | undefined;
2784
2797
  }
2785
2798
  /**
2786
2799
  * @public
@@ -3039,7 +3052,8 @@ export interface DescribeResourcePoliciesRequest {
3039
3052
  */
3040
3053
  resourceArn?: string | undefined;
3041
3054
  /**
3042
- * <p>Specifies the scope of the resource policy. Valid values are <code>ACCOUNT</code> or <code>RESOURCE</code>. When not specified, defaults to <code>ACCOUNT</code>.</p>
3055
+ * <p>Specifies the scope of the resource policy. Valid values are <code>ACCOUNT</code> or
3056
+ * <code>RESOURCE</code>. When not specified, defaults to <code>ACCOUNT</code>.</p>
3043
3057
  * @public
3044
3058
  */
3045
3059
  policyScope?: PolicyScope | undefined;
@@ -3072,12 +3086,14 @@ export interface ResourcePolicy {
3072
3086
  */
3073
3087
  policyScope?: PolicyScope | undefined;
3074
3088
  /**
3075
- * <p>The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies.</p>
3089
+ * <p>The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only
3090
+ * populated for resource-scoped policies.</p>
3076
3091
  * @public
3077
3092
  */
3078
3093
  resourceArn?: string | undefined;
3079
3094
  /**
3080
- * <p>The revision ID of the resource policy. Only populated for resource-scoped policies.</p>
3095
+ * <p>The revision ID of the resource policy. Only populated for resource-scoped
3096
+ * policies.</p>
3081
3097
  * @public
3082
3098
  */
3083
3099
  revisionId?: string | undefined;
@@ -3190,6 +3206,16 @@ export interface SubscriptionFilter {
3190
3206
  * @public
3191
3207
  */
3192
3208
  creationTime?: number | undefined;
3209
+ /**
3210
+ * <p>The filter expression that specifies which log events are processed by this subscription filter based on system fields. Returns the <code>fieldSelectionCriteria</code> value if it was specified when the subscription filter was created.</p>
3211
+ * @public
3212
+ */
3213
+ fieldSelectionCriteria?: string | undefined;
3214
+ /**
3215
+ * <p>The list of system fields that are included in the log events sent to the subscription destination. Returns the <code>emitSystemFields</code> value if it was specified when the subscription filter was created.</p>
3216
+ * @public
3217
+ */
3218
+ emitSystemFields?: string[] | undefined;
3193
3219
  }
3194
3220
  /**
3195
3221
  * @public
@@ -3311,12 +3337,15 @@ export declare const EventSource: {
3311
3337
  */
3312
3338
  export type EventSource = (typeof EventSource)[keyof typeof EventSource];
3313
3339
  /**
3314
- * <p>A structure containing the extracted fields from a log event. These fields are extracted based on the log format and can be used for structured querying and analysis.</p>
3340
+ * <p>A structure containing the extracted fields from a log event. These fields are extracted
3341
+ * based on the log format and can be used for structured querying and analysis.</p>
3315
3342
  * @public
3316
3343
  */
3317
3344
  export interface FieldsData {
3318
3345
  /**
3319
- * <p>The actual log data content returned in the streaming response. This contains the fields and values of the log event in a structured format that can be parsed and processed by the client.</p>
3346
+ * <p>The actual log data content returned in the streaming response. This contains the fields
3347
+ * and values of the log event in a structured format that can be parsed and processed by the
3348
+ * client.</p>
3320
3349
  * @public
3321
3350
  */
3322
3351
  data?: Uint8Array | undefined;
@@ -4266,18 +4295,24 @@ export interface GetLogGroupFieldsResponse {
4266
4295
  */
4267
4296
  export interface GetLogObjectRequest {
4268
4297
  /**
4269
- * <p>A boolean flag that indicates whether to unmask sensitive log data. When set to true, any masked or redacted data in the log object will be displayed in its original form. Default is false.</p>
4298
+ * <p>A boolean flag that indicates whether to unmask sensitive log data. When set to true, any
4299
+ * masked or redacted data in the log object will be displayed in its original form. Default is
4300
+ * false.</p>
4270
4301
  * @public
4271
4302
  */
4272
4303
  unmask?: boolean | undefined;
4273
4304
  /**
4274
- * <p>A pointer to the specific log object to retrieve. This is a required parameter that uniquely identifies the log object within CloudWatch Logs. The pointer is typically obtained from a previous query or filter operation.</p>
4305
+ * <p>A pointer to the specific log object to retrieve. This is a required parameter that
4306
+ * uniquely identifies the log object within CloudWatch Logs. The pointer is typically obtained
4307
+ * from a previous query or filter operation.</p>
4275
4308
  * @public
4276
4309
  */
4277
4310
  logObjectPointer: string | undefined;
4278
4311
  }
4279
4312
  /**
4280
- * <p>An internal error occurred during the streaming of log data. This exception is thrown when there's an issue with the internal streaming mechanism used by the GetLogObject operation.</p>
4313
+ * <p>An internal error occurred during the streaming of log data. This exception is thrown when
4314
+ * there's an issue with the internal streaming mechanism used by the GetLogObject
4315
+ * operation.</p>
4281
4316
  * @public
4282
4317
  */
4283
4318
  export declare class InternalStreamingException extends __BaseException {
@@ -4289,7 +4324,8 @@ export declare class InternalStreamingException extends __BaseException {
4289
4324
  constructor(opts: __ExceptionOptionType<InternalStreamingException, __BaseException>);
4290
4325
  }
4291
4326
  /**
4292
- * <p>A stream of structured log data returned by the GetLogObject operation. This stream contains log events with their associated metadata and extracted fields.</p>
4327
+ * <p>A stream of structured log data returned by the GetLogObject operation. This stream
4328
+ * contains log events with their associated metadata and extracted fields.</p>
4293
4329
  * @public
4294
4330
  */
4295
4331
  export type GetLogObjectResponseStream = GetLogObjectResponseStream.InternalStreamingExceptionMember | GetLogObjectResponseStream.FieldsMember | GetLogObjectResponseStream.$UnknownMember;
@@ -4298,7 +4334,8 @@ export type GetLogObjectResponseStream = GetLogObjectResponseStream.InternalStre
4298
4334
  */
4299
4335
  export declare namespace GetLogObjectResponseStream {
4300
4336
  /**
4301
- * <p>A structure containing the extracted fields from a log event. These fields are extracted based on the log format and can be used for structured querying and analysis.</p>
4337
+ * <p>A structure containing the extracted fields from a log event. These fields are extracted
4338
+ * based on the log format and can be used for structured querying and analysis.</p>
4302
4339
  * @public
4303
4340
  */
4304
4341
  interface FieldsMember {
@@ -4307,7 +4344,9 @@ export declare namespace GetLogObjectResponseStream {
4307
4344
  $unknown?: never;
4308
4345
  }
4309
4346
  /**
4310
- * <p>An internal error occurred during the streaming of log data. This exception is thrown when there's an issue with the internal streaming mechanism used by the GetLogObject operation.</p>
4347
+ * <p>An internal error occurred during the streaming of log data. This exception is thrown when
4348
+ * there's an issue with the internal streaming mechanism used by the GetLogObject
4349
+ * operation.</p>
4311
4350
  * @public
4312
4351
  */
4313
4352
  interface InternalStreamingExceptionMember {
@@ -4336,7 +4375,8 @@ export declare namespace GetLogObjectResponseStream {
4336
4375
  */
4337
4376
  export interface GetLogObjectResponse {
4338
4377
  /**
4339
- * <p>A stream of structured log data returned by the GetLogObject operation. This stream contains log events with their associated metadata and extracted fields.</p>
4378
+ * <p>A stream of structured log data returned by the GetLogObject operation. This stream
4379
+ * contains log events with their associated metadata and extracted fields.</p>
4340
4380
  * @public
4341
4381
  */
4342
4382
  fieldStream?: AsyncIterable<GetLogObjectResponseStream> | undefined;
@@ -4508,7 +4548,7 @@ export interface GetTransformerRequest {
4508
4548
  /**
4509
4549
  * <p>This processor uses pattern matching to parse and structure unstructured data. This
4510
4550
  * processor can also extract fields from log messages.</p>
4511
- * <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-Grok"> grok</a> in the <i>CloudWatch Logs User Guide</i>.</p>
4551
+ * <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-Grok">grok</a> in the <i>CloudWatch Logs User Guide</i>.</p>
4512
4552
  * @public
4513
4553
  */
4514
4554
  export interface Grok {
@@ -4520,7 +4560,7 @@ export interface Grok {
4520
4560
  source?: string | undefined;
4521
4561
  /**
4522
4562
  * <p>The grok pattern to match against the log event. For a list of supported grok patterns,
4523
- * see <a href="https://docs.aws.amazon.com/mazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#Grok-Patterns">Supported grok patterns</a>.</p>
4563
+ * see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#Grok-Patterns">Supported grok patterns</a>.</p>
4524
4564
  * @public
4525
4565
  */
4526
4566
  match: string | undefined;
@@ -5907,13 +5947,18 @@ export interface PutDeliveryDestinationRequest {
5907
5947
  * logs.</p>
5908
5948
  * <note>
5909
5949
  * <p>
5910
- * <code>deliveryDestinationConfiguration</code> is required for CloudWatch Logs, Amazon S3, Firehose log delivery destinations and not required for X-Ray trace delivery destinations. <code>deliveryDestinationType</code> is needed for X-Ray trace delivery destinations but not required for other logs delivery destinations.</p>
5950
+ * <code>deliveryDestinationConfiguration</code> is required for CloudWatch Logs,
5951
+ * Amazon S3, Firehose log delivery destinations and not required for
5952
+ * X-Ray trace delivery destinations. <code>deliveryDestinationType</code> is
5953
+ * needed for X-Ray trace delivery destinations but not required for other logs
5954
+ * delivery destinations.</p>
5911
5955
  * </note>
5912
5956
  * @public
5913
5957
  */
5914
5958
  deliveryDestinationConfiguration?: DeliveryDestinationConfiguration | undefined;
5915
5959
  /**
5916
- * <p>The type of delivery destination. This parameter specifies the target service where log data will be delivered. Valid values include:</p>
5960
+ * <p>The type of delivery destination. This parameter specifies the target service where log
5961
+ * data will be delivered. Valid values include:</p>
5917
5962
  * <ul>
5918
5963
  * <li>
5919
5964
  * <p>
@@ -5929,10 +5974,12 @@ export interface PutDeliveryDestinationRequest {
5929
5974
  * </li>
5930
5975
  * <li>
5931
5976
  * <p>
5932
- * <code>XRAY</code> - Amazon Web Services X-Ray for distributed tracing and application monitoring</p>
5977
+ * <code>XRAY</code> - Amazon Web Services
5978
+ * X-Ray for distributed tracing and application monitoring</p>
5933
5979
  * </li>
5934
5980
  * </ul>
5935
- * <p>The delivery destination type determines the format and configuration options available for log delivery.</p>
5981
+ * <p>The delivery destination type determines the format and configuration options available
5982
+ * for log delivery.</p>
5936
5983
  * @public
5937
5984
  */
5938
5985
  deliveryDestinationType?: DeliveryDestinationType | undefined;
@@ -6002,7 +6049,8 @@ export interface PutDeliverySourceRequest {
6002
6049
  * <p>Defines the type of log that the source is sending.</p>
6003
6050
  * <ul>
6004
6051
  * <li>
6005
- * <p>For Amazon Bedrock, the valid value is <code>APPLICATION_LOGS</code> and <code>TRACES</code>.</p>
6052
+ * <p>For Amazon Bedrock, the valid value is <code>APPLICATION_LOGS</code> and
6053
+ * <code>TRACES</code>.</p>
6006
6054
  * </li>
6007
6055
  * <li>
6008
6056
  * <p>For CloudFront, the valid value is <code>ACCESS_LOGS</code>.</p>
@@ -6437,6 +6485,16 @@ export interface PutMetricFilterRequest {
6437
6485
  * @public
6438
6486
  */
6439
6487
  applyOnTransformedLogs?: boolean | undefined;
6488
+ /**
6489
+ * <p>A filter expression that specifies which log events should be processed by this metric filter based on system fields such as source account and source region. Uses selection criteria syntax with operators like <code>=</code>, <code>!=</code>, <code>AND</code>, <code>OR</code>, <code>IN</code>, <code>NOT IN</code>. Example: <code>@aws.region = "us-east-1"</code> or <code>@aws.account IN ["123456789012", "987654321098"]</code>. Maximum length: 2000 characters.</p>
6490
+ * @public
6491
+ */
6492
+ fieldSelectionCriteria?: string | undefined;
6493
+ /**
6494
+ * <p>A list of system fields to emit as additional dimensions in the generated metrics. Valid values are <code>@aws.account</code> and <code>@aws.region</code>. These dimensions help identify the source of centralized log data and count toward the total dimension limit for metric filters.</p>
6495
+ * @public
6496
+ */
6497
+ emitSystemFieldDimensions?: string[] | undefined;
6440
6498
  }
6441
6499
  /**
6442
6500
  * @public
@@ -6532,12 +6590,15 @@ export interface PutResourcePolicyRequest {
6532
6590
  */
6533
6591
  policyDocument?: string | undefined;
6534
6592
  /**
6535
- * <p>The ARN of the CloudWatch Logs resource to which the resource policy needs to be added or attached. Currently only supports LogGroup ARN.</p>
6593
+ * <p>The ARN of the CloudWatch Logs resource to which the resource policy needs to be added
6594
+ * or attached. Currently only supports LogGroup ARN.</p>
6536
6595
  * @public
6537
6596
  */
6538
6597
  resourceArn?: string | undefined;
6539
6598
  /**
6540
- * <p>The expected revision ID of the resource policy. Required when <code>resourceArn</code> is provided to prevent concurrent modifications. Use <code>null</code> when creating a resource policy for the first time.</p>
6599
+ * <p>The expected revision ID of the resource policy. Required when <code>resourceArn</code> is
6600
+ * provided to prevent concurrent modifications. Use <code>null</code> when creating a resource
6601
+ * policy for the first time.</p>
6541
6602
  * @public
6542
6603
  */
6543
6604
  expectedRevisionId?: string | undefined;
@@ -6552,7 +6613,8 @@ export interface PutResourcePolicyResponse {
6552
6613
  */
6553
6614
  resourcePolicy?: ResourcePolicy | undefined;
6554
6615
  /**
6555
- * <p>The revision ID of the created or updated resource policy. Only returned for resource-scoped policies.</p>
6616
+ * <p>The revision ID of the created or updated resource policy. Only returned for
6617
+ * resource-scoped policies.</p>
6556
6618
  * @public
6557
6619
  */
6558
6620
  revisionId?: string | undefined;
@@ -6647,6 +6709,16 @@ export interface PutSubscriptionFilterRequest {
6647
6709
  * @public
6648
6710
  */
6649
6711
  applyOnTransformedLogs?: boolean | undefined;
6712
+ /**
6713
+ * <p>A filter expression that specifies which log events should be processed by this subscription filter based on system fields such as source account and source region. Uses selection criteria syntax with operators like <code>=</code>, <code>!=</code>, <code>AND</code>, <code>OR</code>, <code>IN</code>, <code>NOT IN</code>. Example: <code>@aws.region NOT IN ["cn-north-1"]</code> or <code>@aws.account = "123456789012" AND @aws.region = "us-east-1"</code>. Maximum length: 2000 characters.</p>
6714
+ * @public
6715
+ */
6716
+ fieldSelectionCriteria?: string | undefined;
6717
+ /**
6718
+ * <p>A list of system fields to include in the log events sent to the subscription destination. Valid values are <code>@aws.account</code> and <code>@aws.region</code>. These fields provide source information for centralized log data in the forwarded payload.</p>
6719
+ * @public
6720
+ */
6721
+ emitSystemFields?: string[] | undefined;
6650
6722
  }
6651
6723
  /**
6652
6724
  * @public
@@ -673,6 +673,8 @@ export interface MetricFilter {
673
673
  creationTime?: number | undefined;
674
674
  logGroupName?: string | undefined;
675
675
  applyOnTransformedLogs?: boolean | undefined;
676
+ fieldSelectionCriteria?: string | undefined;
677
+ emitSystemFieldDimensions?: string[] | undefined;
676
678
  }
677
679
  export interface DescribeMetricFiltersResponse {
678
680
  metricFilters?: MetricFilter[] | undefined;
@@ -774,6 +776,8 @@ export interface SubscriptionFilter {
774
776
  distribution?: Distribution | undefined;
775
777
  applyOnTransformedLogs?: boolean | undefined;
776
778
  creationTime?: number | undefined;
779
+ fieldSelectionCriteria?: string | undefined;
780
+ emitSystemFields?: string[] | undefined;
777
781
  }
778
782
  export interface DescribeSubscriptionFiltersResponse {
779
783
  subscriptionFilters?: SubscriptionFilter[] | undefined;
@@ -1473,6 +1477,8 @@ export interface PutMetricFilterRequest {
1473
1477
  filterPattern: string | undefined;
1474
1478
  metricTransformations: MetricTransformation[] | undefined;
1475
1479
  applyOnTransformedLogs?: boolean | undefined;
1480
+ fieldSelectionCriteria?: string | undefined;
1481
+ emitSystemFieldDimensions?: string[] | undefined;
1476
1482
  }
1477
1483
  export interface PutQueryDefinitionRequest {
1478
1484
  queryLanguage?: QueryLanguage | undefined;
@@ -1507,6 +1513,8 @@ export interface PutSubscriptionFilterRequest {
1507
1513
  roleArn?: string | undefined;
1508
1514
  distribution?: Distribution | undefined;
1509
1515
  applyOnTransformedLogs?: boolean | undefined;
1516
+ fieldSelectionCriteria?: string | undefined;
1517
+ emitSystemFields?: string[] | undefined;
1510
1518
  }
1511
1519
  export interface PutTransformerRequest {
1512
1520
  logGroupIdentifier: string | 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.887.0",
4
+ "version": "3.890.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.887.0",
24
- "@aws-sdk/credential-provider-node": "3.887.0",
23
+ "@aws-sdk/core": "3.890.0",
24
+ "@aws-sdk/credential-provider-node": "3.890.0",
25
25
  "@aws-sdk/middleware-host-header": "3.887.0",
26
26
  "@aws-sdk/middleware-logger": "3.887.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.887.0",
28
- "@aws-sdk/middleware-user-agent": "3.887.0",
29
- "@aws-sdk/region-config-resolver": "3.887.0",
28
+ "@aws-sdk/middleware-user-agent": "3.890.0",
29
+ "@aws-sdk/region-config-resolver": "3.890.0",
30
30
  "@aws-sdk/types": "3.887.0",
31
- "@aws-sdk/util-endpoints": "3.887.0",
31
+ "@aws-sdk/util-endpoints": "3.890.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.887.0",
33
- "@aws-sdk/util-user-agent-node": "3.887.0",
34
- "@smithy/config-resolver": "^4.2.1",
33
+ "@aws-sdk/util-user-agent-node": "3.890.0",
34
+ "@smithy/config-resolver": "^4.2.2",
35
35
  "@smithy/core": "^3.11.0",
36
36
  "@smithy/eventstream-serde-browser": "^4.1.1",
37
37
  "@smithy/eventstream-serde-config-resolver": "^4.2.1",
@@ -40,22 +40,22 @@
40
40
  "@smithy/hash-node": "^4.1.1",
41
41
  "@smithy/invalid-dependency": "^4.1.1",
42
42
  "@smithy/middleware-content-length": "^4.1.1",
43
- "@smithy/middleware-endpoint": "^4.2.1",
44
- "@smithy/middleware-retry": "^4.2.1",
43
+ "@smithy/middleware-endpoint": "^4.2.2",
44
+ "@smithy/middleware-retry": "^4.2.2",
45
45
  "@smithy/middleware-serde": "^4.1.1",
46
46
  "@smithy/middleware-stack": "^4.1.1",
47
- "@smithy/node-config-provider": "^4.2.1",
47
+ "@smithy/node-config-provider": "^4.2.2",
48
48
  "@smithy/node-http-handler": "^4.2.1",
49
49
  "@smithy/protocol-http": "^5.2.1",
50
- "@smithy/smithy-client": "^4.6.1",
50
+ "@smithy/smithy-client": "^4.6.2",
51
51
  "@smithy/types": "^4.5.0",
52
52
  "@smithy/url-parser": "^4.1.1",
53
53
  "@smithy/util-base64": "^4.1.0",
54
54
  "@smithy/util-body-length-browser": "^4.1.0",
55
55
  "@smithy/util-body-length-node": "^4.1.0",
56
- "@smithy/util-defaults-mode-browser": "^4.1.1",
57
- "@smithy/util-defaults-mode-node": "^4.1.1",
58
- "@smithy/util-endpoints": "^3.1.1",
56
+ "@smithy/util-defaults-mode-browser": "^4.1.2",
57
+ "@smithy/util-defaults-mode-node": "^4.1.2",
58
+ "@smithy/util-endpoints": "^3.1.2",
59
59
  "@smithy/util-middleware": "^4.1.1",
60
60
  "@smithy/util-retry": "^4.1.1",
61
61
  "@smithy/util-utf8": "^4.1.0",