aws-sdk-cloudwatchlogs 1.116.0 → 1.123.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 +35 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +398 -54
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +66 -1
- data/lib/aws-sdk-cloudwatchlogs/errors.rb +16 -0
- data/lib/aws-sdk-cloudwatchlogs/event_streams.rb +39 -0
- data/lib/aws-sdk-cloudwatchlogs/types.rb +252 -16
- data/lib/aws-sdk-cloudwatchlogs.rb +1 -1
- data/sig/client.rbs +38 -8
- data/sig/errors.rbs +3 -0
- data/sig/resource.rbs +1 -0
- data/sig/types.rbs +54 -8
- metadata +4 -4
@@ -97,7 +97,7 @@ module Aws::CloudWatchLogs
|
|
97
97
|
# class name or an instance of a plugin class.
|
98
98
|
#
|
99
99
|
# @option options [required, Aws::CredentialProvider] :credentials
|
100
|
-
# Your AWS credentials. This can be an instance of any one of the
|
100
|
+
# Your AWS credentials used for authentication. This can be an instance of any one of the
|
101
101
|
# following classes:
|
102
102
|
#
|
103
103
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
@@ -130,18 +130,23 @@ module Aws::CloudWatchLogs
|
|
130
130
|
# locations will be searched for credentials:
|
131
131
|
#
|
132
132
|
# * `Aws.config[:credentials]`
|
133
|
+
#
|
133
134
|
# * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
|
134
135
|
# `:account_id` options.
|
135
|
-
#
|
136
|
-
#
|
136
|
+
#
|
137
|
+
# * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
|
138
|
+
# `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
|
139
|
+
#
|
137
140
|
# * `~/.aws/credentials`
|
141
|
+
#
|
138
142
|
# * `~/.aws/config`
|
143
|
+
#
|
139
144
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
140
145
|
# are very aggressive. Construct and pass an instance of
|
141
146
|
# `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
|
142
147
|
# enable retries and extended timeouts. Instance profile credential
|
143
|
-
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
144
|
-
# to true
|
148
|
+
# fetching can be disabled by setting `ENV['AWS_EC2_METADATA_DISABLED']`
|
149
|
+
# to `true`.
|
145
150
|
#
|
146
151
|
# @option options [required, String] :region
|
147
152
|
# The AWS region to connect to. The configured `:region` is
|
@@ -169,6 +174,11 @@ module Aws::CloudWatchLogs
|
|
169
174
|
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
170
175
|
# not retry instead of sleeping.
|
171
176
|
#
|
177
|
+
# @option options [Array<String>] :auth_scheme_preference
|
178
|
+
# A list of preferred authentication schemes to use when making a request. Supported values are:
|
179
|
+
# `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
|
180
|
+
# shared config as `auth_scheme_preference`, the value should be a comma-separated list.
|
181
|
+
#
|
172
182
|
# @option options [Boolean] :client_side_monitoring (false)
|
173
183
|
# When `true`, client-side metrics will be collected for all API requests from
|
174
184
|
# this client.
|
@@ -264,8 +274,8 @@ module Aws::CloudWatchLogs
|
|
264
274
|
# When an EventStream or Proc object is provided, it will be used as callback for each chunk of event stream response received along the way.
|
265
275
|
#
|
266
276
|
# @option options [String] :profile ("default")
|
267
|
-
# Used when loading credentials from the shared credentials file
|
268
|
-
#
|
277
|
+
# Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
|
278
|
+
# When not specified, 'default' is used.
|
269
279
|
#
|
270
280
|
# @option options [String] :request_checksum_calculation ("when_supported")
|
271
281
|
# Determines when a checksum will be calculated for request payloads. Values are:
|
@@ -385,7 +395,7 @@ module Aws::CloudWatchLogs
|
|
385
395
|
# `Aws::Telemetry::OTelProvider` for telemetry provider.
|
386
396
|
#
|
387
397
|
# @option options [Aws::TokenProvider] :token_provider
|
388
|
-
#
|
398
|
+
# Your Bearer token used for authentication. This can be an instance of any one of the
|
389
399
|
# following classes:
|
390
400
|
#
|
391
401
|
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
@@ -648,7 +658,7 @@ module Aws::CloudWatchLogs
|
|
648
658
|
# from Amazon Web Services services.][1]
|
649
659
|
#
|
650
660
|
# A delivery destination can represent a log group in CloudWatch Logs,
|
651
|
-
# an Amazon S3 bucket,
|
661
|
+
# an Amazon S3 bucket, a delivery stream in Firehose, or X-Ray.
|
652
662
|
#
|
653
663
|
# To configure logs delivery between a supported Amazon Web Services
|
654
664
|
# service and a destination, you must do the following:
|
@@ -740,7 +750,7 @@ module Aws::CloudWatchLogs
|
|
740
750
|
# resp.delivery.arn #=> String
|
741
751
|
# resp.delivery.delivery_source_name #=> String
|
742
752
|
# resp.delivery.delivery_destination_arn #=> String
|
743
|
-
# resp.delivery.delivery_destination_type #=> String, one of "S3", "CWL", "FH"
|
753
|
+
# resp.delivery.delivery_destination_type #=> String, one of "S3", "CWL", "FH", "XRAY"
|
744
754
|
# resp.delivery.record_fields #=> Array
|
745
755
|
# resp.delivery.record_fields[0] #=> String
|
746
756
|
# resp.delivery.field_delimiter #=> String
|
@@ -1186,7 +1196,7 @@ module Aws::CloudWatchLogs
|
|
1186
1196
|
#
|
1187
1197
|
# resp = client.delete_account_policy({
|
1188
1198
|
# policy_name: "PolicyName", # required
|
1189
|
-
# policy_type: "DATA_PROTECTION_POLICY", # required, accepts DATA_PROTECTION_POLICY, SUBSCRIPTION_FILTER_POLICY, FIELD_INDEX_POLICY, TRANSFORMER_POLICY
|
1199
|
+
# policy_type: "DATA_PROTECTION_POLICY", # required, accepts DATA_PROTECTION_POLICY, SUBSCRIPTION_FILTER_POLICY, FIELD_INDEX_POLICY, TRANSFORMER_POLICY, METRIC_EXTRACTION_POLICY
|
1190
1200
|
# })
|
1191
1201
|
#
|
1192
1202
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteAccountPolicy AWS API Documentation
|
@@ -1273,7 +1283,7 @@ module Aws::CloudWatchLogs
|
|
1273
1283
|
#
|
1274
1284
|
# @option params [required, String] :name
|
1275
1285
|
# The name of the delivery destination that you want to delete. You can
|
1276
|
-
# find a list of delivery
|
1286
|
+
# find a list of delivery destination names by using the
|
1277
1287
|
# [DescribeDeliveryDestinations][1] operation.
|
1278
1288
|
#
|
1279
1289
|
#
|
@@ -1610,12 +1620,22 @@ module Aws::CloudWatchLogs
|
|
1610
1620
|
# @option params [String] :policy_name
|
1611
1621
|
# The name of the policy to be revoked. This parameter is required.
|
1612
1622
|
#
|
1623
|
+
# @option params [String] :resource_arn
|
1624
|
+
# The ARN of the CloudWatch Logs resource for which the resource policy
|
1625
|
+
# needs to be deleted
|
1626
|
+
#
|
1627
|
+
# @option params [String] :expected_revision_id
|
1628
|
+
# The expected revision ID of the resource policy. Required when
|
1629
|
+
# deleting a resource-scoped policy to prevent concurrent modifications.
|
1630
|
+
#
|
1613
1631
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1614
1632
|
#
|
1615
1633
|
# @example Request syntax with placeholder values
|
1616
1634
|
#
|
1617
1635
|
# resp = client.delete_resource_policy({
|
1618
1636
|
# policy_name: "PolicyName",
|
1637
|
+
# resource_arn: "Arn",
|
1638
|
+
# expected_revision_id: "ExpectedRevisionId",
|
1619
1639
|
# })
|
1620
1640
|
#
|
1621
1641
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicy AWS API Documentation
|
@@ -1762,7 +1782,7 @@ module Aws::CloudWatchLogs
|
|
1762
1782
|
# @example Request syntax with placeholder values
|
1763
1783
|
#
|
1764
1784
|
# resp = client.describe_account_policies({
|
1765
|
-
# policy_type: "DATA_PROTECTION_POLICY", # required, accepts DATA_PROTECTION_POLICY, SUBSCRIPTION_FILTER_POLICY, FIELD_INDEX_POLICY, TRANSFORMER_POLICY
|
1785
|
+
# policy_type: "DATA_PROTECTION_POLICY", # required, accepts DATA_PROTECTION_POLICY, SUBSCRIPTION_FILTER_POLICY, FIELD_INDEX_POLICY, TRANSFORMER_POLICY, METRIC_EXTRACTION_POLICY
|
1766
1786
|
# policy_name: "PolicyName",
|
1767
1787
|
# account_identifiers: ["AccountId"],
|
1768
1788
|
# next_token: "NextToken",
|
@@ -1774,7 +1794,7 @@ module Aws::CloudWatchLogs
|
|
1774
1794
|
# resp.account_policies[0].policy_name #=> String
|
1775
1795
|
# resp.account_policies[0].policy_document #=> String
|
1776
1796
|
# resp.account_policies[0].last_updated_time #=> Integer
|
1777
|
-
# resp.account_policies[0].policy_type #=> String, one of "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY", "FIELD_INDEX_POLICY", "TRANSFORMER_POLICY"
|
1797
|
+
# resp.account_policies[0].policy_type #=> String, one of "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY", "FIELD_INDEX_POLICY", "TRANSFORMER_POLICY", "METRIC_EXTRACTION_POLICY"
|
1778
1798
|
# resp.account_policies[0].scope #=> String, one of "ALL"
|
1779
1799
|
# resp.account_policies[0].selection_criteria #=> String
|
1780
1800
|
# resp.account_policies[0].account_id #=> String
|
@@ -1839,7 +1859,7 @@ module Aws::CloudWatchLogs
|
|
1839
1859
|
# service: "Service",
|
1840
1860
|
# log_types: ["LogType"],
|
1841
1861
|
# resource_types: ["ResourceType"],
|
1842
|
-
# delivery_destination_types: ["S3"], # accepts S3, CWL, FH
|
1862
|
+
# delivery_destination_types: ["S3"], # accepts S3, CWL, FH, XRAY
|
1843
1863
|
# next_token: "NextToken",
|
1844
1864
|
# limit: 1,
|
1845
1865
|
# })
|
@@ -1850,7 +1870,7 @@ module Aws::CloudWatchLogs
|
|
1850
1870
|
# resp.configuration_templates[0].service #=> String
|
1851
1871
|
# resp.configuration_templates[0].log_type #=> String
|
1852
1872
|
# resp.configuration_templates[0].resource_type #=> String
|
1853
|
-
# resp.configuration_templates[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH"
|
1873
|
+
# resp.configuration_templates[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH", "XRAY"
|
1854
1874
|
# resp.configuration_templates[0].default_delivery_config_values.record_fields #=> Array
|
1855
1875
|
# resp.configuration_templates[0].default_delivery_config_values.record_fields[0] #=> String
|
1856
1876
|
# resp.configuration_templates[0].default_delivery_config_values.field_delimiter #=> String
|
@@ -1885,9 +1905,10 @@ module Aws::CloudWatchLogs
|
|
1885
1905
|
#
|
1886
1906
|
# A delivery source represents an Amazon Web Services resource that
|
1887
1907
|
# sends logs to an logs delivery destination. The destination can be
|
1888
|
-
# CloudWatch Logs, Amazon S3, or
|
1889
|
-
# services support being configured as a delivery source. These
|
1890
|
-
# are listed in [Enable logging from Amazon Web Services
|
1908
|
+
# CloudWatch Logs, Amazon S3, Firehose or X-Ray. Only some Amazon Web
|
1909
|
+
# Services services support being configured as a delivery source. These
|
1910
|
+
# services are listed in [Enable logging from Amazon Web Services
|
1911
|
+
# services.][3]
|
1891
1912
|
#
|
1892
1913
|
#
|
1893
1914
|
#
|
@@ -1924,7 +1945,7 @@ module Aws::CloudWatchLogs
|
|
1924
1945
|
# resp.deliveries[0].arn #=> String
|
1925
1946
|
# resp.deliveries[0].delivery_source_name #=> String
|
1926
1947
|
# resp.deliveries[0].delivery_destination_arn #=> String
|
1927
|
-
# resp.deliveries[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH"
|
1948
|
+
# resp.deliveries[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH", "XRAY"
|
1928
1949
|
# resp.deliveries[0].record_fields #=> Array
|
1929
1950
|
# resp.deliveries[0].record_fields[0] #=> String
|
1930
1951
|
# resp.deliveries[0].field_delimiter #=> String
|
@@ -1973,7 +1994,7 @@ module Aws::CloudWatchLogs
|
|
1973
1994
|
# resp.delivery_destinations #=> Array
|
1974
1995
|
# resp.delivery_destinations[0].name #=> String
|
1975
1996
|
# resp.delivery_destinations[0].arn #=> String
|
1976
|
-
# resp.delivery_destinations[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH"
|
1997
|
+
# resp.delivery_destinations[0].delivery_destination_type #=> String, one of "S3", "CWL", "FH", "XRAY"
|
1977
1998
|
# resp.delivery_destinations[0].output_format #=> String, one of "json", "plain", "w3c", "raw", "parquet"
|
1978
1999
|
# resp.delivery_destinations[0].delivery_destination_configuration.destination_resource_arn #=> String
|
1979
2000
|
# resp.delivery_destinations[0].tags #=> Hash
|
@@ -2285,9 +2306,10 @@ module Aws::CloudWatchLogs
|
|
2285
2306
|
# @option params [String] :log_group_name_pattern
|
2286
2307
|
# If you specify a string for this parameter, the operation returns only
|
2287
2308
|
# log groups that have names that match the string based on a
|
2288
|
-
# case-sensitive substring search. For example, if you specify
|
2289
|
-
# log groups named `
|
2290
|
-
# `
|
2309
|
+
# case-sensitive substring search. For example, if you specify
|
2310
|
+
# `DataLogs`, log groups named `DataLogs`, `aws/DataLogs`, and
|
2311
|
+
# `GroupDataLogs` would match, but `datalogs`, `Data/log/s` and
|
2312
|
+
# `Groupdata` would not match.
|
2291
2313
|
#
|
2292
2314
|
# If you specify `logGroupNamePattern` in your request, then only `arn`,
|
2293
2315
|
# `creationTime`, and `logGroupName` are included in the response.
|
@@ -2720,6 +2742,14 @@ module Aws::CloudWatchLogs
|
|
2720
2742
|
# The maximum number of resource policies to be displayed with one call
|
2721
2743
|
# of this API.
|
2722
2744
|
#
|
2745
|
+
# @option params [String] :resource_arn
|
2746
|
+
# The ARN of the CloudWatch Logs resource for which to query the
|
2747
|
+
# resource policy.
|
2748
|
+
#
|
2749
|
+
# @option params [String] :policy_scope
|
2750
|
+
# Specifies the scope of the resource policy. Valid values are `ACCOUNT`
|
2751
|
+
# or `RESOURCE`. When not specified, defaults to `ACCOUNT`.
|
2752
|
+
#
|
2723
2753
|
# @return [Types::DescribeResourcePoliciesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2724
2754
|
#
|
2725
2755
|
# * {Types::DescribeResourcePoliciesResponse#resource_policies #resource_policies} => Array<Types::ResourcePolicy>
|
@@ -2730,6 +2760,8 @@ module Aws::CloudWatchLogs
|
|
2730
2760
|
# resp = client.describe_resource_policies({
|
2731
2761
|
# next_token: "NextToken",
|
2732
2762
|
# limit: 1,
|
2763
|
+
# resource_arn: "Arn",
|
2764
|
+
# policy_scope: "ACCOUNT", # accepts ACCOUNT, RESOURCE
|
2733
2765
|
# })
|
2734
2766
|
#
|
2735
2767
|
# @example Response structure
|
@@ -2738,6 +2770,9 @@ module Aws::CloudWatchLogs
|
|
2738
2770
|
# resp.resource_policies[0].policy_name #=> String
|
2739
2771
|
# resp.resource_policies[0].policy_document #=> String
|
2740
2772
|
# resp.resource_policies[0].last_updated_time #=> Integer
|
2773
|
+
# resp.resource_policies[0].policy_scope #=> String, one of "ACCOUNT", "RESOURCE"
|
2774
|
+
# resp.resource_policies[0].resource_arn #=> String
|
2775
|
+
# resp.resource_policies[0].revision_id #=> String
|
2741
2776
|
# resp.next_token #=> String
|
2742
2777
|
#
|
2743
2778
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePolicies AWS API Documentation
|
@@ -3141,7 +3176,7 @@ module Aws::CloudWatchLogs
|
|
3141
3176
|
# resp.delivery.arn #=> String
|
3142
3177
|
# resp.delivery.delivery_source_name #=> String
|
3143
3178
|
# resp.delivery.delivery_destination_arn #=> String
|
3144
|
-
# resp.delivery.delivery_destination_type #=> String, one of "S3", "CWL", "FH"
|
3179
|
+
# resp.delivery.delivery_destination_type #=> String, one of "S3", "CWL", "FH", "XRAY"
|
3145
3180
|
# resp.delivery.record_fields #=> Array
|
3146
3181
|
# resp.delivery.record_fields[0] #=> String
|
3147
3182
|
# resp.delivery.field_delimiter #=> String
|
@@ -3178,7 +3213,7 @@ module Aws::CloudWatchLogs
|
|
3178
3213
|
#
|
3179
3214
|
# resp.delivery_destination.name #=> String
|
3180
3215
|
# resp.delivery_destination.arn #=> String
|
3181
|
-
# resp.delivery_destination.delivery_destination_type #=> String, one of "S3", "CWL", "FH"
|
3216
|
+
# resp.delivery_destination.delivery_destination_type #=> String, one of "S3", "CWL", "FH", "XRAY"
|
3182
3217
|
# resp.delivery_destination.output_format #=> String, one of "json", "plain", "w3c", "raw", "parquet"
|
3183
3218
|
# resp.delivery_destination.delivery_destination_configuration.destination_resource_arn #=> String
|
3184
3219
|
# resp.delivery_destination.tags #=> Hash
|
@@ -3609,6 +3644,180 @@ module Aws::CloudWatchLogs
|
|
3609
3644
|
req.send_request(options)
|
3610
3645
|
end
|
3611
3646
|
|
3647
|
+
# Retrieves a large logging object (LLO) and streams it back. This API
|
3648
|
+
# is used to fetch the content of large portions of log events that have
|
3649
|
+
# been ingested through the PutOpenTelemetryLogs API. When log events
|
3650
|
+
# contain fields that would cause the total event size to exceed 1MB,
|
3651
|
+
# CloudWatch Logs automatically processes up to 10 fields, starting with
|
3652
|
+
# the largest fields. Each field is truncated as needed to keep the
|
3653
|
+
# total event size as close to 1MB as possible. The excess portions are
|
3654
|
+
# stored as Large Log Objects (LLOs) and these fields are processed
|
3655
|
+
# separately and LLO reference system fields (in the format
|
3656
|
+
# `@ptr.$[path.to.field]`) are added. The path in the reference field
|
3657
|
+
# reflects the original JSON structure where the large field was
|
3658
|
+
# located. For example, this could be `@ptr.$['input']['message']`,
|
3659
|
+
# `@ptr.$['AAA']['BBB']['CCC']['DDD']`, `@ptr.$['AAA']`, or any other
|
3660
|
+
# path matching your log structure.
|
3661
|
+
#
|
3662
|
+
# @option params [Boolean] :unmask
|
3663
|
+
# A boolean flag that indicates whether to unmask sensitive log data.
|
3664
|
+
# When set to true, any masked or redacted data in the log object will
|
3665
|
+
# be displayed in its original form. Default is false.
|
3666
|
+
#
|
3667
|
+
# @option params [required, String] :log_object_pointer
|
3668
|
+
# A pointer to the specific log object to retrieve. This is a required
|
3669
|
+
# parameter that uniquely identifies the log object within CloudWatch
|
3670
|
+
# Logs. The pointer is typically obtained from a previous query or
|
3671
|
+
# filter operation.
|
3672
|
+
#
|
3673
|
+
# @return [Types::GetLogObjectResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3674
|
+
#
|
3675
|
+
# * {Types::GetLogObjectResponse#field_stream #field_stream} => Types::GetLogObjectResponseStream
|
3676
|
+
#
|
3677
|
+
# @example EventStream Operation Example
|
3678
|
+
#
|
3679
|
+
# # You can process the event once it arrives immediately, or wait until the
|
3680
|
+
# # full response is complete and iterate through the eventstream enumerator.
|
3681
|
+
#
|
3682
|
+
# # To interact with event immediately, you need to register get_log_object
|
3683
|
+
# # with callbacks. Callbacks can be registered for specific events or for all
|
3684
|
+
# # events, including error events.
|
3685
|
+
#
|
3686
|
+
# # Callbacks can be passed into the `:event_stream_handler` option or within a
|
3687
|
+
# # block statement attached to the #get_log_object call directly. Hybrid
|
3688
|
+
# # pattern of both is also supported.
|
3689
|
+
#
|
3690
|
+
# # `:event_stream_handler` option takes in either a Proc object or
|
3691
|
+
# # Aws::CloudWatchLogs::EventStreams::GetLogObjectResponseStream object.
|
3692
|
+
#
|
3693
|
+
# # Usage pattern a): Callbacks with a block attached to #get_log_object
|
3694
|
+
# # Example for registering callbacks for all event types and an error event
|
3695
|
+
# client.get_log_object(
|
3696
|
+
# # params input
|
3697
|
+
# ) do |stream|
|
3698
|
+
# stream.on_error_event do |event|
|
3699
|
+
# # catch unmodeled error event in the stream
|
3700
|
+
# raise event
|
3701
|
+
# # => Aws::Errors::EventError
|
3702
|
+
# # event.event_type => :error
|
3703
|
+
# # event.error_code => String
|
3704
|
+
# # event.error_message => String
|
3705
|
+
# end
|
3706
|
+
#
|
3707
|
+
# stream.on_event do |event|
|
3708
|
+
# # process all events arrive
|
3709
|
+
# puts event.event_type
|
3710
|
+
# # ...
|
3711
|
+
# end
|
3712
|
+
# end
|
3713
|
+
#
|
3714
|
+
# # Usage pattern b): Pass in `:event_stream_handler` for #get_log_object
|
3715
|
+
# # 1) Create a Aws::CloudWatchLogs::EventStreams::GetLogObjectResponseStream object
|
3716
|
+
# # Example for registering callbacks with specific events
|
3717
|
+
#
|
3718
|
+
# handler = Aws::CloudWatchLogs::EventStreams::GetLogObjectResponseStream.new
|
3719
|
+
# handler.on_fields_event do |event|
|
3720
|
+
# event # => Aws::CloudWatchLogs::Types::fields
|
3721
|
+
# end
|
3722
|
+
# handler.on_internal_streaming_exception_event do |event|
|
3723
|
+
# event # => Aws::CloudWatchLogs::Types::InternalStreamingException
|
3724
|
+
# end
|
3725
|
+
#
|
3726
|
+
# client.get_log_object(
|
3727
|
+
# # params inputs
|
3728
|
+
# event_stream_handler: handler
|
3729
|
+
# )
|
3730
|
+
#
|
3731
|
+
# # 2) Use a Ruby Proc object
|
3732
|
+
# # Example for registering callbacks with specific events
|
3733
|
+
# handler = Proc.new do |stream|
|
3734
|
+
# stream.on_fields_event do |event|
|
3735
|
+
# event # => Aws::CloudWatchLogs::Types::fields
|
3736
|
+
# end
|
3737
|
+
# stream.on_internal_streaming_exception_event do |event|
|
3738
|
+
# event # => Aws::CloudWatchLogs::Types::InternalStreamingException
|
3739
|
+
# end
|
3740
|
+
# end
|
3741
|
+
#
|
3742
|
+
# client.get_log_object(
|
3743
|
+
# # params inputs
|
3744
|
+
# event_stream_handler: handler
|
3745
|
+
# )
|
3746
|
+
#
|
3747
|
+
# # Usage pattern c): Hybrid pattern of a) and b)
|
3748
|
+
# handler = Aws::CloudWatchLogs::EventStreams::GetLogObjectResponseStream.new
|
3749
|
+
# handler.on_fields_event do |event|
|
3750
|
+
# event # => Aws::CloudWatchLogs::Types::fields
|
3751
|
+
# end
|
3752
|
+
# handler.on_internal_streaming_exception_event do |event|
|
3753
|
+
# event # => Aws::CloudWatchLogs::Types::InternalStreamingException
|
3754
|
+
# end
|
3755
|
+
#
|
3756
|
+
# client.get_log_object(
|
3757
|
+
# # params input
|
3758
|
+
# event_stream_handler: handler
|
3759
|
+
# ) do |stream|
|
3760
|
+
# stream.on_error_event do |event|
|
3761
|
+
# # catch unmodeled error event in the stream
|
3762
|
+
# raise event
|
3763
|
+
# # => Aws::Errors::EventError
|
3764
|
+
# # event.event_type => :error
|
3765
|
+
# # event.error_code => String
|
3766
|
+
# # event.error_message => String
|
3767
|
+
# end
|
3768
|
+
# end
|
3769
|
+
#
|
3770
|
+
# # You can also iterate through events after the response complete.
|
3771
|
+
# # Events are available at
|
3772
|
+
# resp.field_stream # => Enumerator
|
3773
|
+
# # For parameter input example, please refer to following request syntax.
|
3774
|
+
#
|
3775
|
+
# @example Request syntax with placeholder values
|
3776
|
+
#
|
3777
|
+
# resp = client.get_log_object({
|
3778
|
+
# unmask: false,
|
3779
|
+
# log_object_pointer: "LogObjectPointer", # required
|
3780
|
+
# })
|
3781
|
+
#
|
3782
|
+
# @example Response structure
|
3783
|
+
#
|
3784
|
+
# # All events are available at resp.field_stream:
|
3785
|
+
# resp.field_stream #=> Enumerator
|
3786
|
+
# resp.field_stream.event_types #=> [:fields, :internal_streaming_exception]
|
3787
|
+
#
|
3788
|
+
# # For :fields event available at #on_fields_event callback and response eventstream enumerator:
|
3789
|
+
# event.data #=> String
|
3790
|
+
#
|
3791
|
+
# # For :internal_streaming_exception event available at #on_internal_streaming_exception_event callback and response eventstream enumerator:
|
3792
|
+
# event.message #=> String
|
3793
|
+
#
|
3794
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogObject AWS API Documentation
|
3795
|
+
#
|
3796
|
+
# @overload get_log_object(params = {})
|
3797
|
+
# @param [Hash] params ({})
|
3798
|
+
def get_log_object(params = {}, options = {})
|
3799
|
+
params = params.dup
|
3800
|
+
event_stream_handler = case handler = params.delete(:event_stream_handler)
|
3801
|
+
when EventStreams::GetLogObjectResponseStream then handler
|
3802
|
+
when Proc then EventStreams::GetLogObjectResponseStream.new.tap(&handler)
|
3803
|
+
when nil then EventStreams::GetLogObjectResponseStream.new
|
3804
|
+
else
|
3805
|
+
msg = "expected :event_stream_handler to be a block or "\
|
3806
|
+
"instance of Aws::CloudWatchLogs::EventStreams::GetLogObjectResponseStream"\
|
3807
|
+
", got `#{handler.inspect}` instead"
|
3808
|
+
raise ArgumentError, msg
|
3809
|
+
end
|
3810
|
+
|
3811
|
+
yield(event_stream_handler) if block_given?
|
3812
|
+
|
3813
|
+
req = build_request(:get_log_object, params)
|
3814
|
+
|
3815
|
+
req.context[:event_stream_handler] = event_stream_handler
|
3816
|
+
req.handlers.add(Aws::Binary::DecodeHandler, priority: 95)
|
3817
|
+
|
3818
|
+
req.send_request(options)
|
3819
|
+
end
|
3820
|
+
|
3612
3821
|
# Retrieves all of the fields and values of a single log event. All
|
3613
3822
|
# fields are retrieved, even if the original query that produced the
|
3614
3823
|
# `logRecordPointer` retrieved only a subset of fields. Fields are
|
@@ -3808,6 +4017,9 @@ module Aws::CloudWatchLogs
|
|
3808
4017
|
# resp.transformer_config[0].parse_key_value.non_match_value #=> String
|
3809
4018
|
# resp.transformer_config[0].parse_key_value.overwrite_if_exists #=> Boolean
|
3810
4019
|
# resp.transformer_config[0].parse_route_53.source #=> String
|
4020
|
+
# resp.transformer_config[0].parse_to_ocsf.source #=> String
|
4021
|
+
# resp.transformer_config[0].parse_to_ocsf.event_source #=> String, one of "CloudTrail", "Route53Resolver", "VPCFlow", "EKSAudit", "AWSWAF"
|
4022
|
+
# resp.transformer_config[0].parse_to_ocsf.ocsf_version #=> String, one of "V1.1"
|
3811
4023
|
# resp.transformer_config[0].parse_postgres.source #=> String
|
3812
4024
|
# resp.transformer_config[0].parse_vpc.source #=> String
|
3813
4025
|
# resp.transformer_config[0].parse_waf.source #=> String
|
@@ -4256,8 +4468,9 @@ module Aws::CloudWatchLogs
|
|
4256
4468
|
end
|
4257
4469
|
|
4258
4470
|
# Creates an account-level data protection policy, subscription filter
|
4259
|
-
# policy,
|
4260
|
-
# subset of log groups in the
|
4471
|
+
# policy, field index policy, transformer policy, or metric extraction
|
4472
|
+
# policy that applies to all log groups or a subset of log groups in the
|
4473
|
+
# account.
|
4261
4474
|
#
|
4262
4475
|
# To use this operation, you must be signed on with the correct
|
4263
4476
|
# permissions depending on the type of policy that you are creating.
|
@@ -4267,7 +4480,8 @@ module Aws::CloudWatchLogs
|
|
4267
4480
|
# permissions.
|
4268
4481
|
#
|
4269
4482
|
# * To create a subscription filter policy, you must have the
|
4270
|
-
# `logs:PutSubscriptionFilter` and `logs:
|
4483
|
+
# `logs:PutSubscriptionFilter` and `logs:PutAccountPolicy`
|
4484
|
+
# permissions.
|
4271
4485
|
#
|
4272
4486
|
# * To create a transformer policy, you must have the
|
4273
4487
|
# `logs:PutTransformer` and `logs:PutAccountPolicy` permissions.
|
@@ -4275,6 +4489,10 @@ module Aws::CloudWatchLogs
|
|
4275
4489
|
# * To create a field index policy, you must have the
|
4276
4490
|
# `logs:PutIndexPolicy` and `logs:PutAccountPolicy` permissions.
|
4277
4491
|
#
|
4492
|
+
# * To create a metric extraction policy, you must have the
|
4493
|
+
# `logs:PutMetricExtractionPolicy` and `logs:PutAccountPolicy`
|
4494
|
+
# permissions.
|
4495
|
+
#
|
4278
4496
|
# **Data protection policy**
|
4279
4497
|
#
|
4280
4498
|
# A data protection policy can help safeguard sensitive data that's
|
@@ -4442,6 +4660,68 @@ module Aws::CloudWatchLogs
|
|
4442
4660
|
# ignore the account-level policy that you create with
|
4443
4661
|
# [PutAccountPolicy][11].
|
4444
4662
|
#
|
4663
|
+
# **Metric extraction policy**
|
4664
|
+
#
|
4665
|
+
# A metric extraction policy controls whether CloudWatch Metrics can be
|
4666
|
+
# created through the Embedded Metrics Format (EMF) for log groups in
|
4667
|
+
# your account. By default, EMF metric creation is enabled for all log
|
4668
|
+
# groups. You can use metric extraction policies to disable EMF metric
|
4669
|
+
# creation for your entire account or specific log groups.
|
4670
|
+
#
|
4671
|
+
# When a policy disables EMF metric creation for a log group, log events
|
4672
|
+
# in the EMF format are still ingested, but no CloudWatch Metrics are
|
4673
|
+
# created from them.
|
4674
|
+
#
|
4675
|
+
# Creating a policy disables metrics for AWS features that use EMF to
|
4676
|
+
# create metrics, such as CloudWatch Container Insights and CloudWatch
|
4677
|
+
# Application Signals. To prevent turning off those features by
|
4678
|
+
# accident, we recommend that you exclude the underlying log-groups
|
4679
|
+
# through a selection-criteria such as `LogGroupNamePrefix NOT IN
|
4680
|
+
# ["/aws/containerinsights", "/aws/ecs/containerinsights",
|
4681
|
+
# "/aws/application-signals/data"]`.
|
4682
|
+
#
|
4683
|
+
# Each account can have either one account-level metric extraction
|
4684
|
+
# policy that applies to all log groups, or up to 5 policies that are
|
4685
|
+
# each scoped to a subset of log groups with the `selectionCriteria`
|
4686
|
+
# parameter. The selection criteria supports filtering by `LogGroupName`
|
4687
|
+
# and `LogGroupNamePrefix` using the operators `IN` and `NOT IN`. You
|
4688
|
+
# can specify up to 50 values in each `IN` or `NOT IN` list.
|
4689
|
+
#
|
4690
|
+
# The selection criteria can be specified in these formats:
|
4691
|
+
#
|
4692
|
+
# `LogGroupName IN ["log-group-1", "log-group-2"]`
|
4693
|
+
#
|
4694
|
+
# `LogGroupNamePrefix NOT IN ["/aws/prefix1", "/aws/prefix2"]`
|
4695
|
+
#
|
4696
|
+
# If you have multiple account-level metric extraction policies with
|
4697
|
+
# selection criteria, no two of them can have overlapping criteria. For
|
4698
|
+
# example, if you have one policy with selection criteria
|
4699
|
+
# `LogGroupNamePrefix IN ["my-log"]`, you can't have another metric
|
4700
|
+
# extraction policy with selection criteria `LogGroupNamePrefix IN
|
4701
|
+
# ["/my-log-prod"]` or `LogGroupNamePrefix IN ["/my-logging"]`, as the
|
4702
|
+
# set of log groups matching these prefixes would be a subset of the log
|
4703
|
+
# groups matching the first policy's prefix, creating an overlap.
|
4704
|
+
#
|
4705
|
+
# When using `NOT IN`, only one policy with this operator is allowed per
|
4706
|
+
# account.
|
4707
|
+
#
|
4708
|
+
# When combining policies with `IN` and `NOT IN` operators, the overlap
|
4709
|
+
# check ensures that policies don't have conflicting effects. Two
|
4710
|
+
# policies with `IN` and `NOT IN` operators do not overlap if and only
|
4711
|
+
# if every value in the `IN `policy is completely contained within some
|
4712
|
+
# value in the `NOT IN` policy. For example:
|
4713
|
+
#
|
4714
|
+
# * If you have a `NOT IN` policy for prefix `"/aws/lambda"`, you can
|
4715
|
+
# create an `IN` policy for the exact log group name
|
4716
|
+
# `"/aws/lambda/function1"` because the set of log groups matching
|
4717
|
+
# `"/aws/lambda/function1"` is a subset of the log groups matching
|
4718
|
+
# `"/aws/lambda"`.
|
4719
|
+
#
|
4720
|
+
# * If you have a `NOT IN` policy for prefix `"/aws/lambda"`, you cannot
|
4721
|
+
# create an `IN` policy for prefix `"/aws"` because the set of log
|
4722
|
+
# groups matching `"/aws"` is not a subset of the log groups matching
|
4723
|
+
# `"/aws/lambda"`.
|
4724
|
+
#
|
4445
4725
|
#
|
4446
4726
|
#
|
4447
4727
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_GetLogEvents.html
|
@@ -4577,7 +4857,7 @@ module Aws::CloudWatchLogs
|
|
4577
4857
|
# Use this parameter to apply the new policy to a subset of log groups
|
4578
4858
|
# in the account.
|
4579
4859
|
#
|
4580
|
-
#
|
4860
|
+
# Specifying `selectionCriteria` is valid only when you specify
|
4581
4861
|
# `SUBSCRIPTION_FILTER_POLICY`, `FIELD_INDEX_POLICY` or
|
4582
4862
|
# `TRANSFORMER_POLICY`for `policyType`.
|
4583
4863
|
#
|
@@ -4607,7 +4887,7 @@ module Aws::CloudWatchLogs
|
|
4607
4887
|
# resp = client.put_account_policy({
|
4608
4888
|
# policy_name: "PolicyName", # required
|
4609
4889
|
# policy_document: "AccountPolicyDocument", # required
|
4610
|
-
# policy_type: "DATA_PROTECTION_POLICY", # required, accepts DATA_PROTECTION_POLICY, SUBSCRIPTION_FILTER_POLICY, FIELD_INDEX_POLICY, TRANSFORMER_POLICY
|
4890
|
+
# policy_type: "DATA_PROTECTION_POLICY", # required, accepts DATA_PROTECTION_POLICY, SUBSCRIPTION_FILTER_POLICY, FIELD_INDEX_POLICY, TRANSFORMER_POLICY, METRIC_EXTRACTION_POLICY
|
4611
4891
|
# scope: "ALL", # accepts ALL
|
4612
4892
|
# selection_criteria: "SelectionCriteria",
|
4613
4893
|
# })
|
@@ -4617,7 +4897,7 @@ module Aws::CloudWatchLogs
|
|
4617
4897
|
# resp.account_policy.policy_name #=> String
|
4618
4898
|
# resp.account_policy.policy_document #=> String
|
4619
4899
|
# resp.account_policy.last_updated_time #=> Integer
|
4620
|
-
# resp.account_policy.policy_type #=> String, one of "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY", "FIELD_INDEX_POLICY", "TRANSFORMER_POLICY"
|
4900
|
+
# resp.account_policy.policy_type #=> String, one of "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY", "FIELD_INDEX_POLICY", "TRANSFORMER_POLICY", "METRIC_EXTRACTION_POLICY"
|
4621
4901
|
# resp.account_policy.scope #=> String, one of "ALL"
|
4622
4902
|
# resp.account_policy.selection_criteria #=> String
|
4623
4903
|
# resp.account_policy.account_id #=> String
|
@@ -4743,7 +5023,8 @@ module Aws::CloudWatchLogs
|
|
4743
5023
|
# Creates or updates a logical *delivery destination*. A delivery
|
4744
5024
|
# destination is an Amazon Web Services resource that represents an
|
4745
5025
|
# Amazon Web Services service that logs can be sent to. CloudWatch Logs,
|
4746
|
-
# Amazon S3, and Firehose are supported as logs delivery destinations
|
5026
|
+
# Amazon S3, and Firehose are supported as logs delivery destinations
|
5027
|
+
# and X-Ray as the trace delivery destination.
|
4747
5028
|
#
|
4748
5029
|
# To configure logs delivery between a supported Amazon Web Services
|
4749
5030
|
# service and a destination, you must do the following:
|
@@ -4794,10 +5075,34 @@ module Aws::CloudWatchLogs
|
|
4794
5075
|
# @option params [String] :output_format
|
4795
5076
|
# The format for the logs that this delivery destination will receive.
|
4796
5077
|
#
|
4797
|
-
# @option params [
|
5078
|
+
# @option params [Types::DeliveryDestinationConfiguration] :delivery_destination_configuration
|
4798
5079
|
# A structure that contains the ARN of the Amazon Web Services resource
|
4799
5080
|
# that will receive the logs.
|
4800
5081
|
#
|
5082
|
+
# <note markdown="1"> `deliveryDestinationConfiguration` is required for CloudWatch Logs,
|
5083
|
+
# Amazon S3, Firehose log delivery destinations and not required for
|
5084
|
+
# X-Ray trace delivery destinations. `deliveryDestinationType` is needed
|
5085
|
+
# for X-Ray trace delivery destinations but not required for other logs
|
5086
|
+
# delivery destinations.
|
5087
|
+
#
|
5088
|
+
# </note>
|
5089
|
+
#
|
5090
|
+
# @option params [String] :delivery_destination_type
|
5091
|
+
# The type of delivery destination. This parameter specifies the target
|
5092
|
+
# service where log data will be delivered. Valid values include:
|
5093
|
+
#
|
5094
|
+
# * `S3` - Amazon S3 for long-term storage and analytics
|
5095
|
+
#
|
5096
|
+
# * `CWL` - CloudWatch Logs for centralized log management
|
5097
|
+
#
|
5098
|
+
# * `FH` - Amazon Kinesis Data Firehose for real-time data streaming
|
5099
|
+
#
|
5100
|
+
# * `XRAY` - Amazon Web Services X-Ray for distributed tracing and
|
5101
|
+
# application monitoring
|
5102
|
+
#
|
5103
|
+
# The delivery destination type determines the format and configuration
|
5104
|
+
# options available for log delivery.
|
5105
|
+
#
|
4801
5106
|
# @option params [Hash<String,String>] :tags
|
4802
5107
|
# An optional list of key-value pairs to associate with the resource.
|
4803
5108
|
#
|
@@ -4817,9 +5122,10 @@ module Aws::CloudWatchLogs
|
|
4817
5122
|
# resp = client.put_delivery_destination({
|
4818
5123
|
# name: "DeliveryDestinationName", # required
|
4819
5124
|
# output_format: "json", # accepts json, plain, w3c, raw, parquet
|
4820
|
-
# delivery_destination_configuration: {
|
5125
|
+
# delivery_destination_configuration: {
|
4821
5126
|
# destination_resource_arn: "Arn", # required
|
4822
5127
|
# },
|
5128
|
+
# delivery_destination_type: "S3", # accepts S3, CWL, FH, XRAY
|
4823
5129
|
# tags: {
|
4824
5130
|
# "TagKey" => "TagValue",
|
4825
5131
|
# },
|
@@ -4829,7 +5135,7 @@ module Aws::CloudWatchLogs
|
|
4829
5135
|
#
|
4830
5136
|
# resp.delivery_destination.name #=> String
|
4831
5137
|
# resp.delivery_destination.arn #=> String
|
4832
|
-
# resp.delivery_destination.delivery_destination_type #=> String, one of "S3", "CWL", "FH"
|
5138
|
+
# resp.delivery_destination.delivery_destination_type #=> String, one of "S3", "CWL", "FH", "XRAY"
|
4833
5139
|
# resp.delivery_destination.output_format #=> String, one of "json", "plain", "w3c", "raw", "parquet"
|
4834
5140
|
# resp.delivery_destination.delivery_destination_configuration.destination_resource_arn #=> String
|
4835
5141
|
# resp.delivery_destination.tags #=> Hash
|
@@ -4914,7 +5220,7 @@ module Aws::CloudWatchLogs
|
|
4914
5220
|
# Creates or updates a logical *delivery source*. A delivery source
|
4915
5221
|
# represents an Amazon Web Services resource that sends logs to an logs
|
4916
5222
|
# delivery destination. The destination can be CloudWatch Logs, Amazon
|
4917
|
-
# S3, or
|
5223
|
+
# S3, Firehose or X-Ray for sending traces.
|
4918
5224
|
#
|
4919
5225
|
# To configure logs delivery between a delivery destination and an
|
4920
5226
|
# Amazon Web Services service that is supported as a delivery source,
|
@@ -4970,7 +5276,8 @@ module Aws::CloudWatchLogs
|
|
4970
5276
|
# @option params [required, String] :log_type
|
4971
5277
|
# Defines the type of log that the source is sending.
|
4972
5278
|
#
|
4973
|
-
# * For Amazon Bedrock, the valid value is `APPLICATION_LOGS
|
5279
|
+
# * For Amazon Bedrock, the valid value is `APPLICATION_LOGS` and
|
5280
|
+
# `TRACES`.
|
4974
5281
|
#
|
4975
5282
|
# * For CloudFront, the valid value is `ACCESS_LOGS`.
|
4976
5283
|
#
|
@@ -4983,17 +5290,25 @@ module Aws::CloudWatchLogs
|
|
4983
5290
|
# `AD_DECISION_SERVER_LOGS`, `MANIFEST_SERVICE_LOGS`, and
|
4984
5291
|
# `TRANSCODE_LOGS`.
|
4985
5292
|
#
|
5293
|
+
# * For Entity Resolution, the valid value is `WORKFLOW_LOGS`.
|
5294
|
+
#
|
4986
5295
|
# * For IAM Identity Center, the valid value is `ERROR_LOGS`.
|
4987
5296
|
#
|
5297
|
+
# * For PCS, the valid values are `PCS_SCHEDULER_LOGS` and
|
5298
|
+
# `PCS_JOBCOMP_LOGS`.
|
5299
|
+
#
|
4988
5300
|
# * For Amazon Q, the valid value is `EVENT_LOGS`.
|
4989
5301
|
#
|
4990
|
-
# * For Amazon SES mail manager, the valid
|
5302
|
+
# * For Amazon SES mail manager, the valid values are `APPLICATION_LOG`
|
5303
|
+
# and `TRAFFIC_POLICY_DEBUG_LOGS`.
|
4991
5304
|
#
|
4992
5305
|
# * For Amazon WorkMail, the valid values are `ACCESS_CONTROL_LOGS`,
|
4993
5306
|
# `AUTHENTICATION_LOGS`, `WORKMAIL_AVAILABILITY_PROVIDER_LOGS`,
|
4994
5307
|
# `WORKMAIL_MAILBOX_ACCESS_LOGS`, and
|
4995
5308
|
# `WORKMAIL_PERSONAL_ACCESS_TOKEN_LOGS`.
|
4996
5309
|
#
|
5310
|
+
# * For Amazon VPC Route Server, the valid value is `EVENT_LOGS`.
|
5311
|
+
#
|
4997
5312
|
# @option params [Hash<String,String>] :tags
|
4998
5313
|
# An optional list of key-value pairs to associate with the resource.
|
4999
5314
|
#
|
@@ -5345,12 +5660,11 @@ module Aws::CloudWatchLogs
|
|
5345
5660
|
# as the sum of all event messages in UTF-8, plus 26 bytes for each
|
5346
5661
|
# log event.
|
5347
5662
|
#
|
5348
|
-
# *
|
5349
|
-
#
|
5663
|
+
# * Events more than 2 hours in the future are rejected while processing
|
5664
|
+
# remaining valid events.
|
5350
5665
|
#
|
5351
|
-
# *
|
5352
|
-
#
|
5353
|
-
# retention period of the log group.
|
5666
|
+
# * Events older than 14 days or preceding the log group's retention
|
5667
|
+
# period are rejected while processing remaining valid events.
|
5354
5668
|
#
|
5355
5669
|
# * The log events in the batch must be in chronological order by their
|
5356
5670
|
# timestamp. The timestamp is the time that the event occurred,
|
@@ -5359,17 +5673,21 @@ module Aws::CloudWatchLogs
|
|
5359
5673
|
# Web Services SDK for .NET, the timestamp is specified in .NET
|
5360
5674
|
# format: `yyyy-mm-ddThh:mm:ss`. For example, `2017-09-15T13:45:30`.)
|
5361
5675
|
#
|
5362
|
-
# * A batch of log events in a single request
|
5363
|
-
#
|
5676
|
+
# * A batch of log events in a single request must be in a chronological
|
5677
|
+
# order. Otherwise, the operation fails.
|
5364
5678
|
#
|
5365
5679
|
# * Each log event can be no larger than 1 MB.
|
5366
5680
|
#
|
5367
5681
|
# * The maximum number of log events in a batch is 10,000.
|
5368
5682
|
#
|
5369
|
-
# *
|
5370
|
-
#
|
5371
|
-
#
|
5372
|
-
#
|
5683
|
+
# * For valid events (within 14 days in the past to 2 hours in future),
|
5684
|
+
# the time span in a single batch cannot exceed 24 hours. Otherwise,
|
5685
|
+
# the operation fails.
|
5686
|
+
#
|
5687
|
+
# The quota of five requests per second per log stream has been removed.
|
5688
|
+
# Instead, `PutLogEvents` actions are throttled based on a per-second
|
5689
|
+
# per-account quota. You can request an increase to the per-second
|
5690
|
+
# throttling quota by using the Service Quotas service.
|
5373
5691
|
#
|
5374
5692
|
# If a call to `PutLogEvents` returns "UnrecognizedClientException"
|
5375
5693
|
# the most likely cause is a non-valid Amazon Web Services access key ID
|
@@ -5687,15 +6005,27 @@ module Aws::CloudWatchLogs
|
|
5687
6005
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourcearn
|
5688
6006
|
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount
|
5689
6007
|
#
|
6008
|
+
# @option params [String] :resource_arn
|
6009
|
+
# The ARN of the CloudWatch Logs resource to which the resource policy
|
6010
|
+
# needs to be added or attached. Currently only supports LogGroup ARN.
|
6011
|
+
#
|
6012
|
+
# @option params [String] :expected_revision_id
|
6013
|
+
# The expected revision ID of the resource policy. Required when
|
6014
|
+
# `resourceArn` is provided to prevent concurrent modifications. Use
|
6015
|
+
# `null` when creating a resource policy for the first time.
|
6016
|
+
#
|
5690
6017
|
# @return [Types::PutResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5691
6018
|
#
|
5692
6019
|
# * {Types::PutResourcePolicyResponse#resource_policy #resource_policy} => Types::ResourcePolicy
|
6020
|
+
# * {Types::PutResourcePolicyResponse#revision_id #revision_id} => String
|
5693
6021
|
#
|
5694
6022
|
# @example Request syntax with placeholder values
|
5695
6023
|
#
|
5696
6024
|
# resp = client.put_resource_policy({
|
5697
6025
|
# policy_name: "PolicyName",
|
5698
6026
|
# policy_document: "PolicyDocument",
|
6027
|
+
# resource_arn: "Arn",
|
6028
|
+
# expected_revision_id: "ExpectedRevisionId",
|
5699
6029
|
# })
|
5700
6030
|
#
|
5701
6031
|
# @example Response structure
|
@@ -5703,6 +6033,10 @@ module Aws::CloudWatchLogs
|
|
5703
6033
|
# resp.resource_policy.policy_name #=> String
|
5704
6034
|
# resp.resource_policy.policy_document #=> String
|
5705
6035
|
# resp.resource_policy.last_updated_time #=> Integer
|
6036
|
+
# resp.resource_policy.policy_scope #=> String, one of "ACCOUNT", "RESOURCE"
|
6037
|
+
# resp.resource_policy.resource_arn #=> String
|
6038
|
+
# resp.resource_policy.revision_id #=> String
|
6039
|
+
# resp.revision_id #=> String
|
5706
6040
|
#
|
5707
6041
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicy AWS API Documentation
|
5708
6042
|
#
|
@@ -6050,6 +6384,11 @@ module Aws::CloudWatchLogs
|
|
6050
6384
|
# parse_route_53: {
|
6051
6385
|
# source: "Source",
|
6052
6386
|
# },
|
6387
|
+
# parse_to_ocsf: {
|
6388
|
+
# source: "Source",
|
6389
|
+
# event_source: "CloudTrail", # required, accepts CloudTrail, Route53Resolver, VPCFlow, EKSAudit, AWSWAF
|
6390
|
+
# ocsf_version: "V1.1", # required, accepts V1.1
|
6391
|
+
# },
|
6053
6392
|
# parse_postgres: {
|
6054
6393
|
# source: "Source",
|
6055
6394
|
# },
|
@@ -6850,6 +7189,11 @@ module Aws::CloudWatchLogs
|
|
6850
7189
|
# parse_route_53: {
|
6851
7190
|
# source: "Source",
|
6852
7191
|
# },
|
7192
|
+
# parse_to_ocsf: {
|
7193
|
+
# source: "Source",
|
7194
|
+
# event_source: "CloudTrail", # required, accepts CloudTrail, Route53Resolver, VPCFlow, EKSAudit, AWSWAF
|
7195
|
+
# ocsf_version: "V1.1", # required, accepts V1.1
|
7196
|
+
# },
|
6853
7197
|
# parse_postgres: {
|
6854
7198
|
# source: "Source",
|
6855
7199
|
# },
|
@@ -6928,9 +7272,9 @@ module Aws::CloudWatchLogs
|
|
6928
7272
|
# To list the tags for a log group, use [ListTagsForResource][2]. To add
|
6929
7273
|
# tags, use [TagResource][3].
|
6930
7274
|
#
|
6931
|
-
#
|
6932
|
-
#
|
6933
|
-
# `aws:
|
7275
|
+
# When using IAM policies to control tag management for CloudWatch Logs
|
7276
|
+
# log groups, the condition keys `aws:Resource/key-name` and
|
7277
|
+
# `aws:TagKeys` cannot be used to restrict which tags users can assign.
|
6934
7278
|
#
|
6935
7279
|
#
|
6936
7280
|
#
|
@@ -7198,7 +7542,7 @@ module Aws::CloudWatchLogs
|
|
7198
7542
|
tracer: tracer
|
7199
7543
|
)
|
7200
7544
|
context[:gem_name] = 'aws-sdk-cloudwatchlogs'
|
7201
|
-
context[:gem_version] = '1.
|
7545
|
+
context[:gem_version] = '1.123.0'
|
7202
7546
|
Seahorse::Client::Request.new(handlers, context)
|
7203
7547
|
end
|
7204
7548
|
|