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
@@ -1079,7 +1079,7 @@ module Aws::CloudWatchLogs
|
|
1079
1079
|
|
1080
1080
|
# @!attribute [rw] name
|
1081
1081
|
# The name of the delivery destination that you want to delete. You
|
1082
|
-
# can find a list of delivery
|
1082
|
+
# can find a list of delivery destination names by using the
|
1083
1083
|
# [DescribeDeliveryDestinations][1] operation.
|
1084
1084
|
#
|
1085
1085
|
#
|
@@ -1303,10 +1303,23 @@ module Aws::CloudWatchLogs
|
|
1303
1303
|
# The name of the policy to be revoked. This parameter is required.
|
1304
1304
|
# @return [String]
|
1305
1305
|
#
|
1306
|
+
# @!attribute [rw] resource_arn
|
1307
|
+
# The ARN of the CloudWatch Logs resource for which the resource
|
1308
|
+
# policy needs to be deleted
|
1309
|
+
# @return [String]
|
1310
|
+
#
|
1311
|
+
# @!attribute [rw] expected_revision_id
|
1312
|
+
# The expected revision ID of the resource policy. Required when
|
1313
|
+
# deleting a resource-scoped policy to prevent concurrent
|
1314
|
+
# modifications.
|
1315
|
+
# @return [String]
|
1316
|
+
#
|
1306
1317
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DeleteResourcePolicyRequest AWS API Documentation
|
1307
1318
|
#
|
1308
1319
|
class DeleteResourcePolicyRequest < Struct.new(
|
1309
|
-
:policy_name
|
1320
|
+
:policy_name,
|
1321
|
+
:resource_arn,
|
1322
|
+
:expected_revision_id)
|
1310
1323
|
SENSITIVE = []
|
1311
1324
|
include Aws::Structure
|
1312
1325
|
end
|
@@ -1391,7 +1404,7 @@ module Aws::CloudWatchLogs
|
|
1391
1404
|
#
|
1392
1405
|
# @!attribute [rw] delivery_destination_type
|
1393
1406
|
# Displays whether the delivery destination associated with this
|
1394
|
-
# delivery is CloudWatch Logs, Amazon S3, or
|
1407
|
+
# delivery is CloudWatch Logs, Amazon S3, Firehose, or X-Ray.
|
1395
1408
|
# @return [String]
|
1396
1409
|
#
|
1397
1410
|
# @!attribute [rw] record_fields
|
@@ -1432,8 +1445,8 @@ module Aws::CloudWatchLogs
|
|
1432
1445
|
# This structure contains information about one *delivery destination*
|
1433
1446
|
# in your account. A delivery destination is an Amazon Web Services
|
1434
1447
|
# resource that represents an Amazon Web Services service that logs can
|
1435
|
-
# be sent to. CloudWatch Logs, Amazon S3,
|
1436
|
-
# delivery destinations.
|
1448
|
+
# be sent to. CloudWatch Logs, Amazon S3, Firehose, and X-Ray are
|
1449
|
+
# supported as delivery destinations.
|
1437
1450
|
#
|
1438
1451
|
# To configure logs delivery between a supported Amazon Web Services
|
1439
1452
|
# service and a destination, you must do the following:
|
@@ -1475,7 +1488,7 @@ module Aws::CloudWatchLogs
|
|
1475
1488
|
#
|
1476
1489
|
# @!attribute [rw] delivery_destination_type
|
1477
1490
|
# Displays whether this delivery destination is CloudWatch Logs,
|
1478
|
-
# Amazon S3, or
|
1491
|
+
# Amazon S3, Firehose, or X-Ray.
|
1479
1492
|
# @return [String]
|
1480
1493
|
#
|
1481
1494
|
# @!attribute [rw] output_format
|
@@ -2025,9 +2038,10 @@ module Aws::CloudWatchLogs
|
|
2025
2038
|
# @!attribute [rw] log_group_name_pattern
|
2026
2039
|
# If you specify a string for this parameter, the operation returns
|
2027
2040
|
# only log groups that have names that match the string based on a
|
2028
|
-
# case-sensitive substring search. For example, if you specify
|
2029
|
-
# log groups named `
|
2030
|
-
# but `
|
2041
|
+
# case-sensitive substring search. For example, if you specify
|
2042
|
+
# `DataLogs`, log groups named `DataLogs`, `aws/DataLogs`, and
|
2043
|
+
# `GroupDataLogs` would match, but `datalogs`, `Data/log/s` and
|
2044
|
+
# `Groupdata` would not match.
|
2031
2045
|
#
|
2032
2046
|
# If you specify `logGroupNamePattern` in your request, then only
|
2033
2047
|
# `arn`, `creationTime`, and `logGroupName` are included in the
|
@@ -2407,11 +2421,23 @@ module Aws::CloudWatchLogs
|
|
2407
2421
|
# call of this API.
|
2408
2422
|
# @return [Integer]
|
2409
2423
|
#
|
2424
|
+
# @!attribute [rw] resource_arn
|
2425
|
+
# The ARN of the CloudWatch Logs resource for which to query the
|
2426
|
+
# resource policy.
|
2427
|
+
# @return [String]
|
2428
|
+
#
|
2429
|
+
# @!attribute [rw] policy_scope
|
2430
|
+
# Specifies the scope of the resource policy. Valid values are
|
2431
|
+
# `ACCOUNT` or `RESOURCE`. When not specified, defaults to `ACCOUNT`.
|
2432
|
+
# @return [String]
|
2433
|
+
#
|
2410
2434
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/DescribeResourcePoliciesRequest AWS API Documentation
|
2411
2435
|
#
|
2412
2436
|
class DescribeResourcePoliciesRequest < Struct.new(
|
2413
2437
|
:next_token,
|
2414
|
-
:limit
|
2438
|
+
:limit,
|
2439
|
+
:resource_arn,
|
2440
|
+
:policy_scope)
|
2415
2441
|
SENSITIVE = []
|
2416
2442
|
include Aws::Structure
|
2417
2443
|
end
|
@@ -2750,6 +2776,25 @@ module Aws::CloudWatchLogs
|
|
2750
2776
|
include Aws::Structure
|
2751
2777
|
end
|
2752
2778
|
|
2779
|
+
# A structure containing the extracted fields from a log event. These
|
2780
|
+
# fields are extracted based on the log format and can be used for
|
2781
|
+
# structured querying and analysis.
|
2782
|
+
#
|
2783
|
+
# @!attribute [rw] data
|
2784
|
+
# The actual log data content returned in the streaming response. This
|
2785
|
+
# contains the fields and values of the log event in a structured
|
2786
|
+
# format that can be parsed and processed by the client.
|
2787
|
+
# @return [String]
|
2788
|
+
#
|
2789
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/FieldsData AWS API Documentation
|
2790
|
+
#
|
2791
|
+
class FieldsData < Struct.new(
|
2792
|
+
:data,
|
2793
|
+
:event_type)
|
2794
|
+
SENSITIVE = []
|
2795
|
+
include Aws::Structure
|
2796
|
+
end
|
2797
|
+
|
2753
2798
|
# @!attribute [rw] log_group_name
|
2754
2799
|
# The name of the log group to search.
|
2755
2800
|
#
|
@@ -3354,6 +3399,46 @@ module Aws::CloudWatchLogs
|
|
3354
3399
|
include Aws::Structure
|
3355
3400
|
end
|
3356
3401
|
|
3402
|
+
# The parameters for the GetLogObject operation.
|
3403
|
+
#
|
3404
|
+
# @!attribute [rw] unmask
|
3405
|
+
# A boolean flag that indicates whether to unmask sensitive log data.
|
3406
|
+
# When set to true, any masked or redacted data in the log object will
|
3407
|
+
# be displayed in its original form. Default is false.
|
3408
|
+
# @return [Boolean]
|
3409
|
+
#
|
3410
|
+
# @!attribute [rw] log_object_pointer
|
3411
|
+
# A pointer to the specific log object to retrieve. This is a required
|
3412
|
+
# parameter that uniquely identifies the log object within CloudWatch
|
3413
|
+
# Logs. The pointer is typically obtained from a previous query or
|
3414
|
+
# filter operation.
|
3415
|
+
# @return [String]
|
3416
|
+
#
|
3417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogObjectRequest AWS API Documentation
|
3418
|
+
#
|
3419
|
+
class GetLogObjectRequest < Struct.new(
|
3420
|
+
:unmask,
|
3421
|
+
:log_object_pointer)
|
3422
|
+
SENSITIVE = []
|
3423
|
+
include Aws::Structure
|
3424
|
+
end
|
3425
|
+
|
3426
|
+
# The response from the GetLogObject operation.
|
3427
|
+
#
|
3428
|
+
# @!attribute [rw] field_stream
|
3429
|
+
# A stream of structured log data returned by the GetLogObject
|
3430
|
+
# operation. This stream contains log events with their associated
|
3431
|
+
# metadata and extracted fields.
|
3432
|
+
# @return [Types::GetLogObjectResponseStream]
|
3433
|
+
#
|
3434
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogObjectResponse AWS API Documentation
|
3435
|
+
#
|
3436
|
+
class GetLogObjectResponse < Struct.new(
|
3437
|
+
:field_stream)
|
3438
|
+
SENSITIVE = []
|
3439
|
+
include Aws::Structure
|
3440
|
+
end
|
3441
|
+
|
3357
3442
|
# @!attribute [rw] log_record_pointer
|
3358
3443
|
# The pointer corresponding to the log event record you want to
|
3359
3444
|
# retrieve. You get this from the response of a `GetQueryResults`
|
@@ -3663,6 +3748,22 @@ module Aws::CloudWatchLogs
|
|
3663
3748
|
include Aws::Structure
|
3664
3749
|
end
|
3665
3750
|
|
3751
|
+
# An internal error occurred during the streaming of log data. This
|
3752
|
+
# exception is thrown when there's an issue with the internal streaming
|
3753
|
+
# mechanism used by the GetLogObject operation.
|
3754
|
+
#
|
3755
|
+
# @!attribute [rw] message
|
3756
|
+
# @return [String]
|
3757
|
+
#
|
3758
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/InternalStreamingException AWS API Documentation
|
3759
|
+
#
|
3760
|
+
class InternalStreamingException < Struct.new(
|
3761
|
+
:message,
|
3762
|
+
:event_type)
|
3763
|
+
SENSITIVE = []
|
3764
|
+
include Aws::Structure
|
3765
|
+
end
|
3766
|
+
|
3666
3767
|
# The operation is not valid on the specified resource.
|
3667
3768
|
#
|
3668
3769
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/InvalidOperationException AWS API Documentation
|
@@ -5419,6 +5520,42 @@ module Aws::CloudWatchLogs
|
|
5419
5520
|
include Aws::Structure
|
5420
5521
|
end
|
5421
5522
|
|
5523
|
+
# This processor converts logs into [Open Cybersecurity Schema Framework
|
5524
|
+
# (OCSF)][1] events.
|
5525
|
+
#
|
5526
|
+
# For more information about this processor including examples, see [
|
5527
|
+
# parseToOSCF][2] in the *CloudWatch Logs User Guide*.
|
5528
|
+
#
|
5529
|
+
#
|
5530
|
+
#
|
5531
|
+
# [1]: https://ocsf.io
|
5532
|
+
# [2]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseToOCSF
|
5533
|
+
#
|
5534
|
+
# @!attribute [rw] source
|
5535
|
+
# The path to the field in the log event that you want to parse. If
|
5536
|
+
# you omit this value, the whole log message is parsed.
|
5537
|
+
# @return [String]
|
5538
|
+
#
|
5539
|
+
# @!attribute [rw] event_source
|
5540
|
+
# Specify the service or process that produces the log events that
|
5541
|
+
# will be converted with this processor.
|
5542
|
+
# @return [String]
|
5543
|
+
#
|
5544
|
+
# @!attribute [rw] ocsf_version
|
5545
|
+
# Specify which version of the OCSF schema to use for the transformed
|
5546
|
+
# log events.
|
5547
|
+
# @return [String]
|
5548
|
+
#
|
5549
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ParseToOCSF AWS API Documentation
|
5550
|
+
#
|
5551
|
+
class ParseToOCSF < Struct.new(
|
5552
|
+
:source,
|
5553
|
+
:event_source,
|
5554
|
+
:ocsf_version)
|
5555
|
+
SENSITIVE = []
|
5556
|
+
include Aws::Structure
|
5557
|
+
end
|
5558
|
+
|
5422
5559
|
# Use this processor to parse Amazon VPC vended logs, extract fields,
|
5423
5560
|
# and and convert them into a JSON format. This processor always
|
5424
5561
|
# processes the entire log event message.
|
@@ -5678,6 +5815,11 @@ module Aws::CloudWatchLogs
|
|
5678
5815
|
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-parseRoute53
|
5679
5816
|
# @return [Types::ParseRoute53]
|
5680
5817
|
#
|
5818
|
+
# @!attribute [rw] parse_to_ocsf
|
5819
|
+
# Use this parameter to convert logs into Open Cybersecurity Schema
|
5820
|
+
# (OCSF) format.
|
5821
|
+
# @return [Types::ParseToOCSF]
|
5822
|
+
#
|
5681
5823
|
# @!attribute [rw] parse_postgres
|
5682
5824
|
# Use this parameter to include the [ parsePostGres][1] processor in
|
5683
5825
|
# your transformer.
|
@@ -5784,6 +5926,7 @@ module Aws::CloudWatchLogs
|
|
5784
5926
|
:parse_json,
|
5785
5927
|
:parse_key_value,
|
5786
5928
|
:parse_route_53,
|
5929
|
+
:parse_to_ocsf,
|
5787
5930
|
:parse_postgres,
|
5788
5931
|
:parse_vpc,
|
5789
5932
|
:parse_waf,
|
@@ -5923,7 +6066,7 @@ module Aws::CloudWatchLogs
|
|
5923
6066
|
# Use this parameter to apply the new policy to a subset of log groups
|
5924
6067
|
# in the account.
|
5925
6068
|
#
|
5926
|
-
#
|
6069
|
+
# Specifying `selectionCriteria` is valid only when you specify
|
5927
6070
|
# `SUBSCRIPTION_FILTER_POLICY`, `FIELD_INDEX_POLICY` or
|
5928
6071
|
# `TRANSFORMER_POLICY`for `policyType`.
|
5929
6072
|
#
|
@@ -6090,8 +6233,34 @@ module Aws::CloudWatchLogs
|
|
6090
6233
|
# @!attribute [rw] delivery_destination_configuration
|
6091
6234
|
# A structure that contains the ARN of the Amazon Web Services
|
6092
6235
|
# resource that will receive the logs.
|
6236
|
+
#
|
6237
|
+
# <note markdown="1"> `deliveryDestinationConfiguration` is required for CloudWatch Logs,
|
6238
|
+
# Amazon S3, Firehose log delivery destinations and not required for
|
6239
|
+
# X-Ray trace delivery destinations. `deliveryDestinationType` is
|
6240
|
+
# needed for X-Ray trace delivery destinations but not required for
|
6241
|
+
# other logs delivery destinations.
|
6242
|
+
#
|
6243
|
+
# </note>
|
6093
6244
|
# @return [Types::DeliveryDestinationConfiguration]
|
6094
6245
|
#
|
6246
|
+
# @!attribute [rw] delivery_destination_type
|
6247
|
+
# The type of delivery destination. This parameter specifies the
|
6248
|
+
# target service where log data will be delivered. Valid values
|
6249
|
+
# include:
|
6250
|
+
#
|
6251
|
+
# * `S3` - Amazon S3 for long-term storage and analytics
|
6252
|
+
#
|
6253
|
+
# * `CWL` - CloudWatch Logs for centralized log management
|
6254
|
+
#
|
6255
|
+
# * `FH` - Amazon Kinesis Data Firehose for real-time data streaming
|
6256
|
+
#
|
6257
|
+
# * `XRAY` - Amazon Web Services X-Ray for distributed tracing and
|
6258
|
+
# application monitoring
|
6259
|
+
#
|
6260
|
+
# The delivery destination type determines the format and
|
6261
|
+
# configuration options available for log delivery.
|
6262
|
+
# @return [String]
|
6263
|
+
#
|
6095
6264
|
# @!attribute [rw] tags
|
6096
6265
|
# An optional list of key-value pairs to associate with the resource.
|
6097
6266
|
#
|
@@ -6109,6 +6278,7 @@ module Aws::CloudWatchLogs
|
|
6109
6278
|
:name,
|
6110
6279
|
:output_format,
|
6111
6280
|
:delivery_destination_configuration,
|
6281
|
+
:delivery_destination_type,
|
6112
6282
|
:tags)
|
6113
6283
|
SENSITIVE = []
|
6114
6284
|
include Aws::Structure
|
@@ -6141,7 +6311,8 @@ module Aws::CloudWatchLogs
|
|
6141
6311
|
# @!attribute [rw] log_type
|
6142
6312
|
# Defines the type of log that the source is sending.
|
6143
6313
|
#
|
6144
|
-
# * For Amazon Bedrock, the valid value is `APPLICATION_LOGS
|
6314
|
+
# * For Amazon Bedrock, the valid value is `APPLICATION_LOGS` and
|
6315
|
+
# `TRACES`.
|
6145
6316
|
#
|
6146
6317
|
# * For CloudFront, the valid value is `ACCESS_LOGS`.
|
6147
6318
|
#
|
@@ -6154,16 +6325,24 @@ module Aws::CloudWatchLogs
|
|
6154
6325
|
# `AD_DECISION_SERVER_LOGS`, `MANIFEST_SERVICE_LOGS`, and
|
6155
6326
|
# `TRANSCODE_LOGS`.
|
6156
6327
|
#
|
6328
|
+
# * For Entity Resolution, the valid value is `WORKFLOW_LOGS`.
|
6329
|
+
#
|
6157
6330
|
# * For IAM Identity Center, the valid value is `ERROR_LOGS`.
|
6158
6331
|
#
|
6332
|
+
# * For PCS, the valid values are `PCS_SCHEDULER_LOGS` and
|
6333
|
+
# `PCS_JOBCOMP_LOGS`.
|
6334
|
+
#
|
6159
6335
|
# * For Amazon Q, the valid value is `EVENT_LOGS`.
|
6160
6336
|
#
|
6161
|
-
# * For Amazon SES mail manager, the valid
|
6337
|
+
# * For Amazon SES mail manager, the valid values are
|
6338
|
+
# `APPLICATION_LOG` and `TRAFFIC_POLICY_DEBUG_LOGS`.
|
6162
6339
|
#
|
6163
6340
|
# * For Amazon WorkMail, the valid values are `ACCESS_CONTROL_LOGS`,
|
6164
6341
|
# `AUTHENTICATION_LOGS`, `WORKMAIL_AVAILABILITY_PROVIDER_LOGS`,
|
6165
6342
|
# `WORKMAIL_MAILBOX_ACCESS_LOGS`, and
|
6166
6343
|
# `WORKMAIL_PERSONAL_ACCESS_TOKEN_LOGS`.
|
6344
|
+
#
|
6345
|
+
# * For Amazon VPC Route Server, the valid value is `EVENT_LOGS`.
|
6167
6346
|
# @return [String]
|
6168
6347
|
#
|
6169
6348
|
# @!attribute [rw] tags
|
@@ -6624,11 +6803,24 @@ module Aws::CloudWatchLogs
|
|
6624
6803
|
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount
|
6625
6804
|
# @return [String]
|
6626
6805
|
#
|
6806
|
+
# @!attribute [rw] resource_arn
|
6807
|
+
# The ARN of the CloudWatch Logs resource to which the resource policy
|
6808
|
+
# needs to be added or attached. Currently only supports LogGroup ARN.
|
6809
|
+
# @return [String]
|
6810
|
+
#
|
6811
|
+
# @!attribute [rw] expected_revision_id
|
6812
|
+
# The expected revision ID of the resource policy. Required when
|
6813
|
+
# `resourceArn` is provided to prevent concurrent modifications. Use
|
6814
|
+
# `null` when creating a resource policy for the first time.
|
6815
|
+
# @return [String]
|
6816
|
+
#
|
6627
6817
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyRequest AWS API Documentation
|
6628
6818
|
#
|
6629
6819
|
class PutResourcePolicyRequest < Struct.new(
|
6630
6820
|
:policy_name,
|
6631
|
-
:policy_document
|
6821
|
+
:policy_document,
|
6822
|
+
:resource_arn,
|
6823
|
+
:expected_revision_id)
|
6632
6824
|
SENSITIVE = []
|
6633
6825
|
include Aws::Structure
|
6634
6826
|
end
|
@@ -6637,10 +6829,16 @@ module Aws::CloudWatchLogs
|
|
6637
6829
|
# The new policy.
|
6638
6830
|
# @return [Types::ResourcePolicy]
|
6639
6831
|
#
|
6832
|
+
# @!attribute [rw] revision_id
|
6833
|
+
# The revision ID of the created or updated resource policy. Only
|
6834
|
+
# returned for resource-scoped policies.
|
6835
|
+
# @return [String]
|
6836
|
+
#
|
6640
6837
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyResponse AWS API Documentation
|
6641
6838
|
#
|
6642
6839
|
class PutResourcePolicyResponse < Struct.new(
|
6643
|
-
:resource_policy
|
6840
|
+
:resource_policy,
|
6841
|
+
:revision_id)
|
6644
6842
|
SENSITIVE = []
|
6645
6843
|
include Aws::Structure
|
6646
6844
|
end
|
@@ -7165,12 +7363,30 @@ module Aws::CloudWatchLogs
|
|
7165
7363
|
# the number of milliseconds after `Jan 1, 1970 00:00:00 UTC`.
|
7166
7364
|
# @return [Integer]
|
7167
7365
|
#
|
7366
|
+
# @!attribute [rw] policy_scope
|
7367
|
+
# Specifies scope of the resource policy. Valid values are ACCOUNT or
|
7368
|
+
# RESOURCE.
|
7369
|
+
# @return [String]
|
7370
|
+
#
|
7371
|
+
# @!attribute [rw] resource_arn
|
7372
|
+
# The ARN of the CloudWatch Logs resource to which the resource policy
|
7373
|
+
# is attached. Only populated for resource-scoped policies.
|
7374
|
+
# @return [String]
|
7375
|
+
#
|
7376
|
+
# @!attribute [rw] revision_id
|
7377
|
+
# The revision ID of the resource policy. Only populated for
|
7378
|
+
# resource-scoped policies.
|
7379
|
+
# @return [String]
|
7380
|
+
#
|
7168
7381
|
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ResourcePolicy AWS API Documentation
|
7169
7382
|
#
|
7170
7383
|
class ResourcePolicy < Struct.new(
|
7171
7384
|
:policy_name,
|
7172
7385
|
:policy_document,
|
7173
|
-
:last_updated_time
|
7386
|
+
:last_updated_time,
|
7387
|
+
:policy_scope,
|
7388
|
+
:resource_arn,
|
7389
|
+
:revision_id)
|
7174
7390
|
SENSITIVE = []
|
7175
7391
|
include Aws::Structure
|
7176
7392
|
end
|
@@ -8156,6 +8372,26 @@ module Aws::CloudWatchLogs
|
|
8156
8372
|
#
|
8157
8373
|
class ValidationException < Aws::EmptyStructure; end
|
8158
8374
|
|
8375
|
+
# A stream of structured log data returned by the GetLogObject
|
8376
|
+
# operation. This stream contains log events with their associated
|
8377
|
+
# metadata and extracted fields.
|
8378
|
+
#
|
8379
|
+
# EventStream is an Enumerator of Events.
|
8380
|
+
# #event_types #=> Array, returns all modeled event types in the stream
|
8381
|
+
#
|
8382
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetLogObjectResponseStream AWS API Documentation
|
8383
|
+
#
|
8384
|
+
class GetLogObjectResponseStream < Enumerator
|
8385
|
+
|
8386
|
+
def event_types
|
8387
|
+
[
|
8388
|
+
:fields,
|
8389
|
+
:internal_streaming_exception
|
8390
|
+
]
|
8391
|
+
end
|
8392
|
+
|
8393
|
+
end
|
8394
|
+
|
8159
8395
|
# This object includes the stream returned by your [StartLiveTail][1]
|
8160
8396
|
# request.
|
8161
8397
|
#
|
data/sig/client.rbs
CHANGED
@@ -18,6 +18,7 @@ module Aws
|
|
18
18
|
?account_id: String,
|
19
19
|
?active_endpoint_cache: bool,
|
20
20
|
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?auth_scheme_preference: Array[String],
|
21
22
|
?client_side_monitoring: bool,
|
22
23
|
?client_side_monitoring_client_id: String,
|
23
24
|
?client_side_monitoring_host: String,
|
@@ -164,7 +165,7 @@ module Aws
|
|
164
165
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_account_policy-instance_method
|
165
166
|
def delete_account_policy: (
|
166
167
|
policy_name: ::String,
|
167
|
-
policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY")
|
168
|
+
policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY")
|
168
169
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
169
170
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
170
171
|
|
@@ -261,7 +262,9 @@ module Aws
|
|
261
262
|
|
262
263
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#delete_resource_policy-instance_method
|
263
264
|
def delete_resource_policy: (
|
264
|
-
?policy_name: ::String
|
265
|
+
?policy_name: ::String,
|
266
|
+
?resource_arn: ::String,
|
267
|
+
?expected_revision_id: ::String
|
265
268
|
) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
266
269
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
|
267
270
|
|
@@ -291,7 +294,7 @@ module Aws
|
|
291
294
|
end
|
292
295
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_account_policies-instance_method
|
293
296
|
def describe_account_policies: (
|
294
|
-
policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY"),
|
297
|
+
policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY"),
|
295
298
|
?policy_name: ::String,
|
296
299
|
?account_identifiers: Array[::String],
|
297
300
|
?next_token: ::String
|
@@ -308,7 +311,7 @@ module Aws
|
|
308
311
|
?service: ::String,
|
309
312
|
?log_types: Array[::String],
|
310
313
|
?resource_types: Array[::String],
|
311
|
-
?delivery_destination_types: Array[("S3" | "CWL" | "FH")],
|
314
|
+
?delivery_destination_types: Array[("S3" | "CWL" | "FH" | "XRAY")],
|
312
315
|
?next_token: ::String,
|
313
316
|
?limit: ::Integer
|
314
317
|
) -> _DescribeConfigurationTemplatesResponseSuccess
|
@@ -489,7 +492,9 @@ module Aws
|
|
489
492
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#describe_resource_policies-instance_method
|
490
493
|
def describe_resource_policies: (
|
491
494
|
?next_token: ::String,
|
492
|
-
?limit: ::Integer
|
495
|
+
?limit: ::Integer,
|
496
|
+
?resource_arn: ::String,
|
497
|
+
?policy_scope: ("ACCOUNT" | "RESOURCE")
|
493
498
|
) -> _DescribeResourcePoliciesResponseSuccess
|
494
499
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeResourcePoliciesResponseSuccess
|
495
500
|
|
@@ -651,6 +656,17 @@ module Aws
|
|
651
656
|
) -> _GetLogGroupFieldsResponseSuccess
|
652
657
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLogGroupFieldsResponseSuccess
|
653
658
|
|
659
|
+
interface _GetLogObjectResponseSuccess
|
660
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetLogObjectResponse]
|
661
|
+
def field_stream: () -> Types::GetLogObjectResponseStream
|
662
|
+
end
|
663
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#get_log_object-instance_method
|
664
|
+
def get_log_object: (
|
665
|
+
?unmask: bool,
|
666
|
+
log_object_pointer: ::String
|
667
|
+
) -> _GetLogObjectResponseSuccess
|
668
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetLogObjectResponseSuccess
|
669
|
+
|
654
670
|
interface _GetLogRecordResponseSuccess
|
655
671
|
include ::Seahorse::Client::_ResponseSuccess[Types::GetLogRecordResponse]
|
656
672
|
def log_record: () -> ::Hash[::String, ::String]
|
@@ -785,7 +801,7 @@ module Aws
|
|
785
801
|
def put_account_policy: (
|
786
802
|
policy_name: ::String,
|
787
803
|
policy_document: ::String,
|
788
|
-
policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY"),
|
804
|
+
policy_type: ("DATA_PROTECTION_POLICY" | "SUBSCRIPTION_FILTER_POLICY" | "FIELD_INDEX_POLICY" | "TRANSFORMER_POLICY" | "METRIC_EXTRACTION_POLICY"),
|
789
805
|
?scope: ("ALL"),
|
790
806
|
?selection_criteria: ::String
|
791
807
|
) -> _PutAccountPolicyResponseSuccess
|
@@ -812,9 +828,10 @@ module Aws
|
|
812
828
|
def put_delivery_destination: (
|
813
829
|
name: ::String,
|
814
830
|
?output_format: ("json" | "plain" | "w3c" | "raw" | "parquet"),
|
815
|
-
delivery_destination_configuration: {
|
831
|
+
?delivery_destination_configuration: {
|
816
832
|
destination_resource_arn: ::String
|
817
833
|
},
|
834
|
+
?delivery_destination_type: ("S3" | "CWL" | "FH" | "XRAY"),
|
818
835
|
?tags: Hash[::String, ::String]
|
819
836
|
) -> _PutDeliveryDestinationResponseSuccess
|
820
837
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutDeliveryDestinationResponseSuccess
|
@@ -957,11 +974,14 @@ module Aws
|
|
957
974
|
interface _PutResourcePolicyResponseSuccess
|
958
975
|
include ::Seahorse::Client::_ResponseSuccess[Types::PutResourcePolicyResponse]
|
959
976
|
def resource_policy: () -> Types::ResourcePolicy
|
977
|
+
def revision_id: () -> ::String
|
960
978
|
end
|
961
979
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatchLogs/Client.html#put_resource_policy-instance_method
|
962
980
|
def put_resource_policy: (
|
963
981
|
?policy_name: ::String,
|
964
|
-
?policy_document: ::String
|
982
|
+
?policy_document: ::String,
|
983
|
+
?resource_arn: ::String,
|
984
|
+
?expected_revision_id: ::String
|
965
985
|
) -> _PutResourcePolicyResponseSuccess
|
966
986
|
| (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutResourcePolicyResponseSuccess
|
967
987
|
|
@@ -1068,6 +1088,11 @@ module Aws
|
|
1068
1088
|
parse_route_53: {
|
1069
1089
|
source: ::String?
|
1070
1090
|
}?,
|
1091
|
+
parse_to_ocsf: {
|
1092
|
+
source: ::String?,
|
1093
|
+
event_source: ("CloudTrail" | "Route53Resolver" | "VPCFlow" | "EKSAudit" | "AWSWAF"),
|
1094
|
+
ocsf_version: ("V1.1")
|
1095
|
+
}?,
|
1071
1096
|
parse_postgres: {
|
1072
1097
|
source: ::String?
|
1073
1098
|
}?,
|
@@ -1274,6 +1299,11 @@ module Aws
|
|
1274
1299
|
parse_route_53: {
|
1275
1300
|
source: ::String?
|
1276
1301
|
}?,
|
1302
|
+
parse_to_ocsf: {
|
1303
|
+
source: ::String?,
|
1304
|
+
event_source: ("CloudTrail" | "Route53Resolver" | "VPCFlow" | "EKSAudit" | "AWSWAF"),
|
1305
|
+
ocsf_version: ("V1.1")
|
1306
|
+
}?,
|
1277
1307
|
parse_postgres: {
|
1278
1308
|
source: ::String?
|
1279
1309
|
}?,
|
data/sig/errors.rbs
CHANGED
@@ -18,6 +18,9 @@ module Aws
|
|
18
18
|
class DataAlreadyAcceptedException < ::Aws::Errors::ServiceError
|
19
19
|
def expected_sequence_token: () -> ::String
|
20
20
|
end
|
21
|
+
class InternalStreamingException < ::Aws::Errors::ServiceError
|
22
|
+
def message: () -> ::String
|
23
|
+
end
|
21
24
|
class InvalidOperationException < ::Aws::Errors::ServiceError
|
22
25
|
end
|
23
26
|
class InvalidParameterException < ::Aws::Errors::ServiceError
|
data/sig/resource.rbs
CHANGED
@@ -18,6 +18,7 @@ module Aws
|
|
18
18
|
?account_id: String,
|
19
19
|
?active_endpoint_cache: bool,
|
20
20
|
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?auth_scheme_preference: Array[String],
|
21
22
|
?client_side_monitoring: bool,
|
22
23
|
?client_side_monitoring_client_id: String,
|
23
24
|
?client_side_monitoring_host: String,
|