aws-sdk-cloudwatchlogs 1.126.0 → 1.127.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +75 -5
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +13 -0
- data/lib/aws-sdk-cloudwatchlogs/customizations.rb +0 -8
- data/lib/aws-sdk-cloudwatchlogs/types.rb +76 -8
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- data/sig/client.rbs +6 -2
- data/sig/types.rbs +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01c4cf0f288e7a0b9fbd373ffcee9b8af4c2610b775a896f3f1fff58820efbaa
|
4
|
+
data.tar.gz: '0886ec3be1759c9e2c5f1988c37d610d0e16ec9f73324237e2ba735a95a5ef5f'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f2e73fc5cc0d3f76e97e840c08a0b331a9dee31d351ac6f894f003fb561f2084ae2d716075ce19dab1153b9d2fc3993914c807df64becef5ea3bdf19eb63da3
|
7
|
+
data.tar.gz: a1a757e3778c3d26c8ef161b51d60dab4867ea9d71048eda5c7419ba1d5ee9bc56cf1853c4f1f36b5079eeac8f9d9e1f66fc91005150273c6f44ab5bc61ccdda
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.127.0 (2025-09-16)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Cloudwatch Logs added support for 2 new API parameters in metric and subscription filter APIs to filter log events based on system field values and emit system field values as dimensions and send them to customer destination as additional metadata.
|
8
|
+
|
4
9
|
1.126.0 (2025-08-26)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.127.0
|
@@ -2162,8 +2162,8 @@ module Aws::CloudWatchLogs
|
|
2162
2162
|
req.send_request(options)
|
2163
2163
|
end
|
2164
2164
|
|
2165
|
-
# Returns a list of
|
2166
|
-
#
|
2165
|
+
# Returns a list of custom and default field indexes which are
|
2166
|
+
# discovered in log data. For more information about field index
|
2167
2167
|
# policies, see [PutIndexPolicy][1].
|
2168
2168
|
#
|
2169
2169
|
#
|
@@ -2209,7 +2209,7 @@ module Aws::CloudWatchLogs
|
|
2209
2209
|
req.send_request(options)
|
2210
2210
|
end
|
2211
2211
|
|
2212
|
-
# Returns the field index policies of
|
2212
|
+
# Returns the field index policies of the specified log group. For more
|
2213
2213
|
# information about field index policies, see [PutIndexPolicy][1].
|
2214
2214
|
#
|
2215
2215
|
# If a specified log group has a log-group level index policy, that
|
@@ -2594,6 +2594,9 @@ module Aws::CloudWatchLogs
|
|
2594
2594
|
# resp.metric_filters[0].creation_time #=> Integer
|
2595
2595
|
# resp.metric_filters[0].log_group_name #=> String
|
2596
2596
|
# resp.metric_filters[0].apply_on_transformed_logs #=> Boolean
|
2597
|
+
# resp.metric_filters[0].field_selection_criteria #=> String
|
2598
|
+
# resp.metric_filters[0].emit_system_field_dimensions #=> Array
|
2599
|
+
# resp.metric_filters[0].emit_system_field_dimensions[0] #=> String
|
2597
2600
|
# resp.next_token #=> String
|
2598
2601
|
#
|
2599
2602
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeMetricFilters AWS API Documentation
|
@@ -2827,6 +2830,9 @@ module Aws::CloudWatchLogs
|
|
2827
2830
|
# resp.subscription_filters[0].distribution #=> String, one of "Random", "ByLogStream"
|
2828
2831
|
# resp.subscription_filters[0].apply_on_transformed_logs #=> Boolean
|
2829
2832
|
# resp.subscription_filters[0].creation_time #=> Integer
|
2833
|
+
# resp.subscription_filters[0].field_selection_criteria #=> String
|
2834
|
+
# resp.subscription_filters[0].emit_system_fields #=> Array
|
2835
|
+
# resp.subscription_filters[0].emit_system_fields[0] #=> String
|
2830
2836
|
# resp.next_token #=> String
|
2831
2837
|
#
|
2832
2838
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeSubscriptionFilters AWS API Documentation
|
@@ -2927,7 +2933,7 @@ module Aws::CloudWatchLogs
|
|
2927
2933
|
# * A time range
|
2928
2934
|
#
|
2929
2935
|
# * The log stream name, or a log stream name prefix that matches
|
2930
|
-
#
|
2936
|
+
# multiple log streams
|
2931
2937
|
#
|
2932
2938
|
# You must have the `logs:FilterLogEvents` permission to perform this
|
2933
2939
|
# operation.
|
@@ -4604,6 +4610,22 @@ module Aws::CloudWatchLogs
|
|
4604
4610
|
# that start with `my-log`, you can't have another field index policy
|
4605
4611
|
# filtered to `my-logpprod` or `my-logging`.
|
4606
4612
|
#
|
4613
|
+
# CloudWatch Logs provides default field indexes for all log groups in
|
4614
|
+
# the Standard log class. Default field indexes are automatically
|
4615
|
+
# available for the following fields:
|
4616
|
+
#
|
4617
|
+
# * `@aws.region`
|
4618
|
+
#
|
4619
|
+
# * `@aws.account`
|
4620
|
+
#
|
4621
|
+
# * `@source.log`
|
4622
|
+
#
|
4623
|
+
# * `traceId`
|
4624
|
+
#
|
4625
|
+
# Default field indexes are in addition to any custom field indexes you
|
4626
|
+
# define within your policy. Default field indexes are not counted
|
4627
|
+
# towards your field index quota.
|
4628
|
+
#
|
4607
4629
|
# You can also set up a transformer at the log-group level. For more
|
4608
4630
|
# information, see [PutTransformer][7]. If there is both a log-group
|
4609
4631
|
# level transformer created with `PutTransformer` and an account-level
|
@@ -5507,6 +5529,22 @@ module Aws::CloudWatchLogs
|
|
5507
5529
|
# will process fewer log events to reduce costs, and have improved
|
5508
5530
|
# performance.
|
5509
5531
|
#
|
5532
|
+
# CloudWatch Logs provides default field indexes for all log groups in
|
5533
|
+
# the Standard log class. Default field indexes are automatically
|
5534
|
+
# available for the following fields:
|
5535
|
+
#
|
5536
|
+
# * `@aws.region`
|
5537
|
+
#
|
5538
|
+
# * `@aws.account`
|
5539
|
+
#
|
5540
|
+
# * `@source.log`
|
5541
|
+
#
|
5542
|
+
# * `traceId`
|
5543
|
+
#
|
5544
|
+
# Default field indexes are in addition to any custom field indexes you
|
5545
|
+
# define within your policy. Default field indexes are not counted
|
5546
|
+
# towards your field index quota.
|
5547
|
+
#
|
5510
5548
|
# Each index policy has the following quotas and restrictions:
|
5511
5549
|
#
|
5512
5550
|
# * As many as 20 fields can be included in the policy.
|
@@ -5822,6 +5860,20 @@ module Aws::CloudWatchLogs
|
|
5822
5860
|
#
|
5823
5861
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html
|
5824
5862
|
#
|
5863
|
+
# @option params [String] :field_selection_criteria
|
5864
|
+
# A filter expression that specifies which log events should be
|
5865
|
+
# processed by this metric filter based on system fields such as source
|
5866
|
+
# account and source region. Uses selection criteria syntax with
|
5867
|
+
# operators like `=`, `!=`, `AND`, `OR`, `IN`, `NOT IN`. Example:
|
5868
|
+
# `@aws.region = "us-east-1"` or `@aws.account IN ["123456789012",
|
5869
|
+
# "987654321098"]`. Maximum length: 2000 characters.
|
5870
|
+
#
|
5871
|
+
# @option params [Array<String>] :emit_system_field_dimensions
|
5872
|
+
# A list of system fields to emit as additional dimensions in the
|
5873
|
+
# generated metrics. Valid values are `@aws.account` and `@aws.region`.
|
5874
|
+
# These dimensions help identify the source of centralized log data and
|
5875
|
+
# count toward the total dimension limit for metric filters.
|
5876
|
+
#
|
5825
5877
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
5826
5878
|
#
|
5827
5879
|
# @example Request syntax with placeholder values
|
@@ -5843,6 +5895,8 @@ module Aws::CloudWatchLogs
|
|
5843
5895
|
# },
|
5844
5896
|
# ],
|
5845
5897
|
# apply_on_transformed_logs: false,
|
5898
|
+
# field_selection_criteria: "FieldSelectionCriteria",
|
5899
|
+
# emit_system_field_dimensions: ["SystemField"],
|
5846
5900
|
# })
|
5847
5901
|
#
|
5848
5902
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilter AWS API Documentation
|
@@ -6215,6 +6269,20 @@ module Aws::CloudWatchLogs
|
|
6215
6269
|
#
|
6216
6270
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html
|
6217
6271
|
#
|
6272
|
+
# @option params [String] :field_selection_criteria
|
6273
|
+
# A filter expression that specifies which log events should be
|
6274
|
+
# processed by this subscription filter based on system fields such as
|
6275
|
+
# source account and source region. Uses selection criteria syntax with
|
6276
|
+
# operators like `=`, `!=`, `AND`, `OR`, `IN`, `NOT IN`. Example:
|
6277
|
+
# `@aws.region NOT IN ["cn-north-1"]` or `@aws.account = "123456789012"
|
6278
|
+
# AND @aws.region = "us-east-1"`. Maximum length: 2000 characters.
|
6279
|
+
#
|
6280
|
+
# @option params [Array<String>] :emit_system_fields
|
6281
|
+
# A list of system fields to include in the log events sent to the
|
6282
|
+
# subscription destination. Valid values are `@aws.account` and
|
6283
|
+
# `@aws.region`. These fields provide source information for centralized
|
6284
|
+
# log data in the forwarded payload.
|
6285
|
+
#
|
6218
6286
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
6219
6287
|
#
|
6220
6288
|
# @example Request syntax with placeholder values
|
@@ -6227,6 +6295,8 @@ module Aws::CloudWatchLogs
|
|
6227
6295
|
# role_arn: "RoleArn",
|
6228
6296
|
# distribution: "Random", # accepts Random, ByLogStream
|
6229
6297
|
# apply_on_transformed_logs: false,
|
6298
|
+
# field_selection_criteria: "FieldSelectionCriteria",
|
6299
|
+
# emit_system_fields: ["SystemField"],
|
6230
6300
|
# })
|
6231
6301
|
#
|
6232
6302
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilter AWS API Documentation
|
@@ -7539,7 +7609,7 @@ module Aws::CloudWatchLogs
|
|
7539
7609
|
tracer: tracer
|
7540
7610
|
)
|
7541
7611
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
7542
|
-
context[:gem_version] = '1.
|
7612
|
+
context[:gem_version] = '1.127.0'
|
7543
7613
|
Seahorse::Client::Request.new(handlers, context)
|
7544
7614
|
end
|
7545
7615
|
|
@@ -162,6 +162,7 @@ module Aws::CloudWatchLogs
|
|
162
162
|
DisassociateKmsKeyRequest = Shapes::StructureShape.new(name: 'DisassociateKmsKeyRequest')
|
163
163
|
Distribution = Shapes::StringShape.new(name: 'Distribution')
|
164
164
|
DynamicTokenPosition = Shapes::IntegerShape.new(name: 'DynamicTokenPosition')
|
165
|
+
EmitSystemFields = Shapes::ListShape.new(name: 'EmitSystemFields')
|
165
166
|
EncryptionKey = Shapes::StringShape.new(name: 'EncryptionKey')
|
166
167
|
Entity = Shapes::StructureShape.new(name: 'Entity')
|
167
168
|
EntityAttributes = Shapes::MapShape.new(name: 'EntityAttributes')
|
@@ -197,6 +198,7 @@ module Aws::CloudWatchLogs
|
|
197
198
|
FieldIndex = Shapes::StructureShape.new(name: 'FieldIndex')
|
198
199
|
FieldIndexName = Shapes::StringShape.new(name: 'FieldIndexName')
|
199
200
|
FieldIndexes = Shapes::ListShape.new(name: 'FieldIndexes')
|
201
|
+
FieldSelectionCriteria = Shapes::StringShape.new(name: 'FieldSelectionCriteria')
|
200
202
|
FieldsData = Shapes::StructureShape.new(name: 'FieldsData')
|
201
203
|
FilterCount = Shapes::IntegerShape.new(name: 'FilterCount')
|
202
204
|
FilterLogEventsRequest = Shapes::StructureShape.new(name: 'FilterLogEventsRequest')
|
@@ -497,6 +499,7 @@ module Aws::CloudWatchLogs
|
|
497
499
|
SuppressionState = Shapes::StringShape.new(name: 'SuppressionState')
|
498
500
|
SuppressionType = Shapes::StringShape.new(name: 'SuppressionType')
|
499
501
|
SuppressionUnit = Shapes::StringShape.new(name: 'SuppressionUnit')
|
502
|
+
SystemField = Shapes::StringShape.new(name: 'SystemField')
|
500
503
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
501
504
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
502
505
|
TagList = Shapes::ListShape.new(name: 'TagList')
|
@@ -1012,6 +1015,8 @@ module Aws::CloudWatchLogs
|
|
1012
1015
|
DisassociateKmsKeyRequest.add_member(:resource_identifier, Shapes::ShapeRef.new(shape: ResourceIdentifier, location_name: "resourceIdentifier"))
|
1013
1016
|
DisassociateKmsKeyRequest.struct_class = Types::DisassociateKmsKeyRequest
|
1014
1017
|
|
1018
|
+
EmitSystemFields.member = Shapes::ShapeRef.new(shape: SystemField)
|
1019
|
+
|
1015
1020
|
Entity.add_member(:key_attributes, Shapes::ShapeRef.new(shape: EntityKeyAttributes, location_name: "keyAttributes"))
|
1016
1021
|
Entity.add_member(:attributes, Shapes::ShapeRef.new(shape: EntityAttributes, location_name: "attributes"))
|
1017
1022
|
Entity.struct_class = Types::Entity
|
@@ -1420,6 +1425,8 @@ module Aws::CloudWatchLogs
|
|
1420
1425
|
MetricFilter.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationTime"))
|
1421
1426
|
MetricFilter.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
1422
1427
|
MetricFilter.add_member(:apply_on_transformed_logs, Shapes::ShapeRef.new(shape: ApplyOnTransformedLogs, location_name: "applyOnTransformedLogs"))
|
1428
|
+
MetricFilter.add_member(:field_selection_criteria, Shapes::ShapeRef.new(shape: FieldSelectionCriteria, location_name: "fieldSelectionCriteria"))
|
1429
|
+
MetricFilter.add_member(:emit_system_field_dimensions, Shapes::ShapeRef.new(shape: EmitSystemFields, location_name: "emitSystemFieldDimensions"))
|
1423
1430
|
MetricFilter.struct_class = Types::MetricFilter
|
1424
1431
|
|
1425
1432
|
MetricFilterMatchRecord.add_member(:event_number, Shapes::ShapeRef.new(shape: EventNumber, location_name: "eventNumber"))
|
@@ -1682,6 +1689,8 @@ module Aws::CloudWatchLogs
|
|
1682
1689
|
PutMetricFilterRequest.add_member(:filter_pattern, Shapes::ShapeRef.new(shape: FilterPattern, required: true, location_name: "filterPattern"))
|
1683
1690
|
PutMetricFilterRequest.add_member(:metric_transformations, Shapes::ShapeRef.new(shape: MetricTransformations, required: true, location_name: "metricTransformations"))
|
1684
1691
|
PutMetricFilterRequest.add_member(:apply_on_transformed_logs, Shapes::ShapeRef.new(shape: ApplyOnTransformedLogs, location_name: "applyOnTransformedLogs"))
|
1692
|
+
PutMetricFilterRequest.add_member(:field_selection_criteria, Shapes::ShapeRef.new(shape: FieldSelectionCriteria, location_name: "fieldSelectionCriteria"))
|
1693
|
+
PutMetricFilterRequest.add_member(:emit_system_field_dimensions, Shapes::ShapeRef.new(shape: EmitSystemFields, location_name: "emitSystemFieldDimensions"))
|
1685
1694
|
PutMetricFilterRequest.struct_class = Types::PutMetricFilterRequest
|
1686
1695
|
|
1687
1696
|
PutQueryDefinitionRequest.add_member(:query_language, Shapes::ShapeRef.new(shape: QueryLanguage, location_name: "queryLanguage"))
|
@@ -1716,6 +1725,8 @@ module Aws::CloudWatchLogs
|
|
1716
1725
|
PutSubscriptionFilterRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "roleArn"))
|
1717
1726
|
PutSubscriptionFilterRequest.add_member(:distribution, Shapes::ShapeRef.new(shape: Distribution, location_name: "distribution"))
|
1718
1727
|
PutSubscriptionFilterRequest.add_member(:apply_on_transformed_logs, Shapes::ShapeRef.new(shape: ApplyOnTransformedLogs, location_name: "applyOnTransformedLogs"))
|
1728
|
+
PutSubscriptionFilterRequest.add_member(:field_selection_criteria, Shapes::ShapeRef.new(shape: FieldSelectionCriteria, location_name: "fieldSelectionCriteria"))
|
1729
|
+
PutSubscriptionFilterRequest.add_member(:emit_system_fields, Shapes::ShapeRef.new(shape: EmitSystemFields, location_name: "emitSystemFields"))
|
1719
1730
|
PutSubscriptionFilterRequest.struct_class = Types::PutSubscriptionFilterRequest
|
1720
1731
|
|
1721
1732
|
PutTransformerRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, required: true, location_name: "logGroupIdentifier"))
|
@@ -1887,6 +1898,8 @@ module Aws::CloudWatchLogs
|
|
1887
1898
|
SubscriptionFilter.add_member(:distribution, Shapes::ShapeRef.new(shape: Distribution, location_name: "distribution"))
|
1888
1899
|
SubscriptionFilter.add_member(:apply_on_transformed_logs, Shapes::ShapeRef.new(shape: ApplyOnTransformedLogs, location_name: "applyOnTransformedLogs"))
|
1889
1900
|
SubscriptionFilter.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationTime"))
|
1901
|
+
SubscriptionFilter.add_member(:field_selection_criteria, Shapes::ShapeRef.new(shape: FieldSelectionCriteria, location_name: "fieldSelectionCriteria"))
|
1902
|
+
SubscriptionFilter.add_member(:emit_system_fields, Shapes::ShapeRef.new(shape: EmitSystemFields, location_name: "emitSystemFields"))
|
1890
1903
|
SubscriptionFilter.struct_class = Types::SubscriptionFilter
|
1891
1904
|
|
1892
1905
|
SubscriptionFilters.member = Shapes::ShapeRef.new(shape: SubscriptionFilter)
|
@@ -3597,12 +3597,12 @@ module Aws::CloudWatchLogs
|
|
3597
3597
|
# unstructured data. This processor can also extract fields from log
|
3598
3598
|
# messages.
|
3599
3599
|
#
|
3600
|
-
# For more information about this processor including examples, see
|
3601
|
-
# grok][1] in the *CloudWatch Logs User Guide*.
|
3600
|
+
# For more information about this processor including examples, see
|
3601
|
+
# [grok][1] in the *CloudWatch Logs User Guide*.
|
3602
3602
|
#
|
3603
3603
|
#
|
3604
3604
|
#
|
3605
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-Grok
|
3605
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#CloudWatch-Logs-Transformation-Grok
|
3606
3606
|
#
|
3607
3607
|
# @!attribute [rw] source
|
3608
3608
|
# The path to the field in the log event that you want to parse. If
|
@@ -3615,7 +3615,7 @@ module Aws::CloudWatchLogs
|
|
3615
3615
|
#
|
3616
3616
|
#
|
3617
3617
|
#
|
3618
|
-
# [1]: https://docs.aws.amazon.com/
|
3618
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#Grok-Patterns
|
3619
3619
|
# @return [String]
|
3620
3620
|
#
|
3621
3621
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/Grok AWS API Documentation
|
@@ -4693,6 +4693,19 @@ module Aws::CloudWatchLogs
|
|
4693
4693
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html
|
4694
4694
|
# @return [Boolean]
|
4695
4695
|
#
|
4696
|
+
# @!attribute [rw] field_selection_criteria
|
4697
|
+
# The filter expression that specifies which log events are processed
|
4698
|
+
# by this metric filter based on system fields. Returns the
|
4699
|
+
# `fieldSelectionCriteria` value if it was specified when the metric
|
4700
|
+
# filter was created.
|
4701
|
+
# @return [String]
|
4702
|
+
#
|
4703
|
+
# @!attribute [rw] emit_system_field_dimensions
|
4704
|
+
# The list of system fields that are emitted as additional dimensions
|
4705
|
+
# in the generated metrics. Returns the `emitSystemFieldDimensions`
|
4706
|
+
# value if it was specified when the metric filter was created.
|
4707
|
+
# @return [Array<String>]
|
4708
|
+
#
|
4696
4709
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/MetricFilter AWS API Documentation
|
4697
4710
|
#
|
4698
4711
|
class MetricFilter < Struct.new(
|
@@ -4701,7 +4714,9 @@ module Aws::CloudWatchLogs
|
|
4701
4714
|
:metric_transformations,
|
4702
4715
|
:creation_time,
|
4703
4716
|
:log_group_name,
|
4704
|
-
:apply_on_transformed_logs
|
4717
|
+
:apply_on_transformed_logs,
|
4718
|
+
:field_selection_criteria,
|
4719
|
+
:emit_system_field_dimensions)
|
4705
4720
|
SENSITIVE = []
|
4706
4721
|
include Aws::Structure
|
4707
4722
|
end
|
@@ -6663,6 +6678,23 @@ module Aws::CloudWatchLogs
|
|
6663
6678
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html
|
6664
6679
|
# @return [Boolean]
|
6665
6680
|
#
|
6681
|
+
# @!attribute [rw] field_selection_criteria
|
6682
|
+
# A filter expression that specifies which log events should be
|
6683
|
+
# processed by this metric filter based on system fields such as
|
6684
|
+
# source account and source region. Uses selection criteria syntax
|
6685
|
+
# with operators like `=`, `!=`, `AND`, `OR`, `IN`, `NOT IN`. Example:
|
6686
|
+
# `@aws.region = "us-east-1"` or `@aws.account IN ["123456789012",
|
6687
|
+
# "987654321098"]`. Maximum length: 2000 characters.
|
6688
|
+
# @return [String]
|
6689
|
+
#
|
6690
|
+
# @!attribute [rw] emit_system_field_dimensions
|
6691
|
+
# A list of system fields to emit as additional dimensions in the
|
6692
|
+
# generated metrics. Valid values are `@aws.account` and
|
6693
|
+
# `@aws.region`. These dimensions help identify the source of
|
6694
|
+
# centralized log data and count toward the total dimension limit for
|
6695
|
+
# metric filters.
|
6696
|
+
# @return [Array<String>]
|
6697
|
+
#
|
6666
6698
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutMetricFilterRequest AWS API Documentation
|
6667
6699
|
#
|
6668
6700
|
class PutMetricFilterRequest < Struct.new(
|
@@ -6670,7 +6702,9 @@ module Aws::CloudWatchLogs
|
|
6670
6702
|
:filter_name,
|
6671
6703
|
:filter_pattern,
|
6672
6704
|
:metric_transformations,
|
6673
|
-
:apply_on_transformed_logs
|
6705
|
+
:apply_on_transformed_logs,
|
6706
|
+
:field_selection_criteria,
|
6707
|
+
:emit_system_field_dimensions)
|
6674
6708
|
SENSITIVE = []
|
6675
6709
|
include Aws::Structure
|
6676
6710
|
end
|
@@ -6944,6 +6978,23 @@ module Aws::CloudWatchLogs
|
|
6944
6978
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutTransformer.html
|
6945
6979
|
# @return [Boolean]
|
6946
6980
|
#
|
6981
|
+
# @!attribute [rw] field_selection_criteria
|
6982
|
+
# A filter expression that specifies which log events should be
|
6983
|
+
# processed by this subscription filter based on system fields such as
|
6984
|
+
# source account and source region. Uses selection criteria syntax
|
6985
|
+
# with operators like `=`, `!=`, `AND`, `OR`, `IN`, `NOT IN`. Example:
|
6986
|
+
# `@aws.region NOT IN ["cn-north-1"]` or `@aws.account =
|
6987
|
+
# "123456789012" AND @aws.region = "us-east-1"`. Maximum length: 2000
|
6988
|
+
# characters.
|
6989
|
+
# @return [String]
|
6990
|
+
#
|
6991
|
+
# @!attribute [rw] emit_system_fields
|
6992
|
+
# A list of system fields to include in the log events sent to the
|
6993
|
+
# subscription destination. Valid values are `@aws.account` and
|
6994
|
+
# `@aws.region`. These fields provide source information for
|
6995
|
+
# centralized log data in the forwarded payload.
|
6996
|
+
# @return [Array<String>]
|
6997
|
+
#
|
6947
6998
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutSubscriptionFilterRequest AWS API Documentation
|
6948
6999
|
#
|
6949
7000
|
class PutSubscriptionFilterRequest < Struct.new(
|
@@ -6953,7 +7004,9 @@ module Aws::CloudWatchLogs
|
|
6953
7004
|
:destination_arn,
|
6954
7005
|
:role_arn,
|
6955
7006
|
:distribution,
|
6956
|
-
:apply_on_transformed_logs
|
7007
|
+
:apply_on_transformed_logs,
|
7008
|
+
:field_selection_criteria,
|
7009
|
+
:emit_system_fields)
|
6957
7010
|
SENSITIVE = []
|
6958
7011
|
include Aws::Structure
|
6959
7012
|
end
|
@@ -7820,6 +7873,19 @@ module Aws::CloudWatchLogs
|
|
7820
7873
|
# number of milliseconds after `Jan 1, 1970 00:00:00 UTC`.
|
7821
7874
|
# @return [Integer]
|
7822
7875
|
#
|
7876
|
+
# @!attribute [rw] field_selection_criteria
|
7877
|
+
# The filter expression that specifies which log events are processed
|
7878
|
+
# by this subscription filter based on system fields. Returns the
|
7879
|
+
# `fieldSelectionCriteria` value if it was specified when the
|
7880
|
+
# subscription filter was created.
|
7881
|
+
# @return [String]
|
7882
|
+
#
|
7883
|
+
# @!attribute [rw] emit_system_fields
|
7884
|
+
# The list of system fields that are included in the log events sent
|
7885
|
+
# to the subscription destination. Returns the `emitSystemFields`
|
7886
|
+
# value if it was specified when the subscription filter was created.
|
7887
|
+
# @return [Array<String>]
|
7888
|
+
#
|
7823
7889
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/SubscriptionFilter AWS API Documentation
|
7824
7890
|
#
|
7825
7891
|
class SubscriptionFilter < Struct.new(
|
@@ -7830,7 +7896,9 @@ module Aws::CloudWatchLogs
|
|
7830
7896
|
:role_arn,
|
7831
7897
|
:distribution,
|
7832
7898
|
:apply_on_transformed_logs,
|
7833
|
-
:creation_time
|
7899
|
+
:creation_time,
|
7900
|
+
:field_selection_criteria,
|
7901
|
+
:emit_system_fields)
|
7834
7902
|
SENSITIVE = []
|
7835
7903
|
include Aws::Structure
|
7836
7904
|
end
|
data/sig/client.rbs
CHANGED
@@ -952,7 +952,9 @@ module Aws
|
|
952
952
|
unit: ("Seconds" | "Microseconds" | "Milliseconds" | "Bytes" | "Kilobytes" | "Megabytes" | "Gigabytes" | "Terabytes" | "Bits" | "Kilobits" | "Megabits" | "Gigabits" | "Terabits" | "Percent" | "Count" | "Bytes/Second" | "Kilobytes/Second" | "Megabytes/Second" | "Gigabytes/Second" | "Terabytes/Second" | "Bits/Second" | "Kilobits/Second" | "Megabits/Second" | "Gigabits/Second" | "Terabits/Second" | "Count/Second" | "None")?
|
953
953
|
},
|
954
954
|
],
|
955
|
-
?apply_on_transformed_logs: bool
|
955
|
+
?apply_on_transformed_logs: bool,
|
956
|
+
?field_selection_criteria: ::String,
|
957
|
+
?emit_system_field_dimensions: Array[::String]
|
956
958
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
957
959
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
958
960
|
|
@@ -1000,7 +1002,9 @@ module Aws
|
|
1000
1002
|
destination_arn: ::String,
|
1001
1003
|
?role_arn: ::String,
|
1002
1004
|
?distribution: ("Random" | "ByLogStream"),
|
1003
|
-
?apply_on_transformed_logs: bool
|
1005
|
+
?apply_on_transformed_logs: bool,
|
1006
|
+
?field_selection_criteria: ::String,
|
1007
|
+
?emit_system_fields: Array[::String]
|
1004
1008
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
1005
1009
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
1006
1010
|
|
data/sig/types.rbs
CHANGED
@@ -1089,6 +1089,8 @@ module Aws::CloudWatchLogs
|
|
1089
1089
|
attr_accessor creation_time: ::Integer
|
1090
1090
|
attr_accessor log_group_name: ::String
|
1091
1091
|
attr_accessor apply_on_transformed_logs: bool
|
1092
|
+
attr_accessor field_selection_criteria: ::String
|
1093
|
+
attr_accessor emit_system_field_dimensions: ::Array[::String]
|
1092
1094
|
SENSITIVE: []
|
1093
1095
|
end
|
1094
1096
|
|
@@ -1430,6 +1432,8 @@ module Aws::CloudWatchLogs
|
|
1430
1432
|
attr_accessor filter_pattern: ::String
|
1431
1433
|
attr_accessor metric_transformations: ::Array[Types::MetricTransformation]
|
1432
1434
|
attr_accessor apply_on_transformed_logs: bool
|
1435
|
+
attr_accessor field_selection_criteria: ::String
|
1436
|
+
attr_accessor emit_system_field_dimensions: ::Array[::String]
|
1433
1437
|
SENSITIVE: []
|
1434
1438
|
end
|
1435
1439
|
|
@@ -1476,6 +1480,8 @@ module Aws::CloudWatchLogs
|
|
1476
1480
|
attr_accessor role_arn: ::String
|
1477
1481
|
attr_accessor distribution: ("Random" | "ByLogStream")
|
1478
1482
|
attr_accessor apply_on_transformed_logs: bool
|
1483
|
+
attr_accessor field_selection_criteria: ::String
|
1484
|
+
attr_accessor emit_system_fields: ::Array[::String]
|
1479
1485
|
SENSITIVE: []
|
1480
1486
|
end
|
1481
1487
|
|
@@ -1680,6 +1686,8 @@ module Aws::CloudWatchLogs
|
|
1680
1686
|
attr_accessor distribution: ("Random" | "ByLogStream")
|
1681
1687
|
attr_accessor apply_on_transformed_logs: bool
|
1682
1688
|
attr_accessor creation_time: ::Integer
|
1689
|
+
attr_accessor field_selection_criteria: ::String
|
1690
|
+
attr_accessor emit_system_fields: ::Array[::String]
|
1683
1691
|
SENSITIVE: []
|
1684
1692
|
end
|
1685
1693
|
|