aws-sdk-cloudwatchlogs 1.119.0 → 1.121.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.
@@ -65,6 +65,7 @@ module Aws::CloudWatchLogs
65
65
  CreateLogGroupRequest = Shapes::StructureShape.new(name: 'CreateLogGroupRequest')
66
66
  CreateLogStreamRequest = Shapes::StructureShape.new(name: 'CreateLogStreamRequest')
67
67
  DashboardViewerPrincipals = Shapes::ListShape.new(name: 'DashboardViewerPrincipals')
68
+ Data = Shapes::BlobShape.new(name: 'Data')
68
69
  DataAlreadyAcceptedException = Shapes::StructureShape.new(name: 'DataAlreadyAcceptedException')
69
70
  DataProtectionPolicyDocument = Shapes::StringShape.new(name: 'DataProtectionPolicyDocument')
70
71
  DataProtectionStatus = Shapes::StringShape.new(name: 'DataProtectionStatus')
@@ -178,6 +179,7 @@ module Aws::CloudWatchLogs
178
179
  EventNumber = Shapes::IntegerShape.new(name: 'EventNumber')
179
180
  EventSource = Shapes::StringShape.new(name: 'EventSource')
180
181
  EventsLimit = Shapes::IntegerShape.new(name: 'EventsLimit')
182
+ ExpectedRevisionId = Shapes::StringShape.new(name: 'ExpectedRevisionId')
181
183
  ExportDestinationBucket = Shapes::StringShape.new(name: 'ExportDestinationBucket')
182
184
  ExportDestinationPrefix = Shapes::StringShape.new(name: 'ExportDestinationPrefix')
183
185
  ExportTask = Shapes::StructureShape.new(name: 'ExportTask')
@@ -195,6 +197,7 @@ module Aws::CloudWatchLogs
195
197
  FieldIndex = Shapes::StructureShape.new(name: 'FieldIndex')
196
198
  FieldIndexName = Shapes::StringShape.new(name: 'FieldIndexName')
197
199
  FieldIndexes = Shapes::ListShape.new(name: 'FieldIndexes')
200
+ FieldsData = Shapes::StructureShape.new(name: 'FieldsData')
198
201
  FilterCount = Shapes::IntegerShape.new(name: 'FilterCount')
199
202
  FilterLogEventsRequest = Shapes::StructureShape.new(name: 'FilterLogEventsRequest')
200
203
  FilterLogEventsResponse = Shapes::StructureShape.new(name: 'FilterLogEventsResponse')
@@ -225,6 +228,9 @@ module Aws::CloudWatchLogs
225
228
  GetLogEventsResponse = Shapes::StructureShape.new(name: 'GetLogEventsResponse')
226
229
  GetLogGroupFieldsRequest = Shapes::StructureShape.new(name: 'GetLogGroupFieldsRequest')
227
230
  GetLogGroupFieldsResponse = Shapes::StructureShape.new(name: 'GetLogGroupFieldsResponse')
231
+ GetLogObjectRequest = Shapes::StructureShape.new(name: 'GetLogObjectRequest')
232
+ GetLogObjectResponse = Shapes::StructureShape.new(name: 'GetLogObjectResponse')
233
+ GetLogObjectResponseStream = Shapes::StructureShape.new(name: 'GetLogObjectResponseStream')
228
234
  GetLogRecordRequest = Shapes::StructureShape.new(name: 'GetLogRecordRequest')
229
235
  GetLogRecordResponse = Shapes::StructureShape.new(name: 'GetLogRecordResponse')
230
236
  GetQueryResultsRequest = Shapes::StructureShape.new(name: 'GetQueryResultsRequest')
@@ -254,6 +260,7 @@ module Aws::CloudWatchLogs
254
260
  IntegrationSummary = Shapes::StructureShape.new(name: 'IntegrationSummary')
255
261
  IntegrationType = Shapes::StringShape.new(name: 'IntegrationType')
256
262
  Interleaved = Shapes::BooleanShape.new(name: 'Interleaved')
263
+ InternalStreamingException = Shapes::StructureShape.new(name: 'InternalStreamingException')
257
264
  InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
258
265
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
259
266
  InvalidSequenceTokenException = Shapes::StructureShape.new(name: 'InvalidSequenceTokenException')
@@ -305,6 +312,7 @@ module Aws::CloudWatchLogs
305
312
  LogGroupSummaries = Shapes::ListShape.new(name: 'LogGroupSummaries')
306
313
  LogGroupSummary = Shapes::StructureShape.new(name: 'LogGroupSummary')
307
314
  LogGroups = Shapes::ListShape.new(name: 'LogGroups')
315
+ LogObjectPointer = Shapes::StringShape.new(name: 'LogObjectPointer')
308
316
  LogRecord = Shapes::MapShape.new(name: 'LogRecord')
309
317
  LogRecordPointer = Shapes::StringShape.new(name: 'LogRecordPointer')
310
318
  LogSamples = Shapes::ListShape.new(name: 'LogSamples')
@@ -378,6 +386,7 @@ module Aws::CloudWatchLogs
378
386
  Policy = Shapes::StructureShape.new(name: 'Policy')
379
387
  PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
380
388
  PolicyName = Shapes::StringShape.new(name: 'PolicyName')
389
+ PolicyScope = Shapes::StringShape.new(name: 'PolicyScope')
381
390
  PolicyType = Shapes::StringShape.new(name: 'PolicyType')
382
391
  Priority = Shapes::StringShape.new(name: 'Priority')
383
392
  Processor = Shapes::StructureShape.new(name: 'Processor')
@@ -765,6 +774,8 @@ module Aws::CloudWatchLogs
765
774
  DeleteQueryDefinitionResponse.struct_class = Types::DeleteQueryDefinitionResponse
766
775
 
767
776
  DeleteResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
777
+ DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceArn"))
778
+ DeleteResourcePolicyRequest.add_member(:expected_revision_id, Shapes::ShapeRef.new(shape: ExpectedRevisionId, location_name: "expectedRevisionId"))
768
779
  DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
769
780
 
770
781
  DeleteRetentionPolicyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
@@ -966,6 +977,8 @@ module Aws::CloudWatchLogs
966
977
 
967
978
  DescribeResourcePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
968
979
  DescribeResourcePoliciesRequest.add_member(:limit, Shapes::ShapeRef.new(shape: DescribeLimit, location_name: "limit"))
980
+ DescribeResourcePoliciesRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceArn"))
981
+ DescribeResourcePoliciesRequest.add_member(:policy_scope, Shapes::ShapeRef.new(shape: PolicyScope, location_name: "policyScope"))
969
982
  DescribeResourcePoliciesRequest.struct_class = Types::DescribeResourcePoliciesRequest
970
983
 
971
984
  DescribeResourcePoliciesResponse.add_member(:resource_policies, Shapes::ShapeRef.new(shape: ResourcePolicies, location_name: "resourcePolicies"))
@@ -1045,6 +1058,9 @@ module Aws::CloudWatchLogs
1045
1058
 
1046
1059
  FieldIndexes.member = Shapes::ShapeRef.new(shape: FieldIndex)
1047
1060
 
1061
+ FieldsData.add_member(:data, Shapes::ShapeRef.new(shape: Data, location_name: "data"))
1062
+ FieldsData.struct_class = Types::FieldsData
1063
+
1048
1064
  FilterLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
1049
1065
  FilterLogEventsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
1050
1066
  FilterLogEventsRequest.add_member(:log_stream_names, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNames"))
@@ -1151,6 +1167,17 @@ module Aws::CloudWatchLogs
1151
1167
  GetLogGroupFieldsResponse.add_member(:log_group_fields, Shapes::ShapeRef.new(shape: LogGroupFieldList, location_name: "logGroupFields"))
1152
1168
  GetLogGroupFieldsResponse.struct_class = Types::GetLogGroupFieldsResponse
1153
1169
 
1170
+ GetLogObjectRequest.add_member(:unmask, Shapes::ShapeRef.new(shape: Unmask, location_name: "unmask"))
1171
+ GetLogObjectRequest.add_member(:log_object_pointer, Shapes::ShapeRef.new(shape: LogObjectPointer, required: true, location_name: "logObjectPointer"))
1172
+ GetLogObjectRequest.struct_class = Types::GetLogObjectRequest
1173
+
1174
+ GetLogObjectResponse.add_member(:field_stream, Shapes::ShapeRef.new(shape: GetLogObjectResponseStream, eventstream: true, location_name: "fieldStream"))
1175
+ GetLogObjectResponse.struct_class = Types::GetLogObjectResponse
1176
+
1177
+ GetLogObjectResponseStream.add_member(:fields, Shapes::ShapeRef.new(shape: FieldsData, event: true, location_name: "fields"))
1178
+ GetLogObjectResponseStream.add_member(:internal_streaming_exception, Shapes::ShapeRef.new(shape: InternalStreamingException, location_name: "InternalStreamingException"))
1179
+ GetLogObjectResponseStream.struct_class = Types::GetLogObjectResponseStream
1180
+
1154
1181
  GetLogRecordRequest.add_member(:log_record_pointer, Shapes::ShapeRef.new(shape: LogRecordPointer, required: true, location_name: "logRecordPointer"))
1155
1182
  GetLogRecordRequest.add_member(:unmask, Shapes::ShapeRef.new(shape: Unmask, location_name: "unmask"))
1156
1183
  GetLogRecordRequest.struct_class = Types::GetLogRecordRequest
@@ -1216,6 +1243,9 @@ module Aws::CloudWatchLogs
1216
1243
  IntegrationSummary.add_member(:integration_status, Shapes::ShapeRef.new(shape: IntegrationStatus, location_name: "integrationStatus"))
1217
1244
  IntegrationSummary.struct_class = Types::IntegrationSummary
1218
1245
 
1246
+ InternalStreamingException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
1247
+ InternalStreamingException.struct_class = Types::InternalStreamingException
1248
+
1219
1249
  InvalidOperationException.struct_class = Types::InvalidOperationException
1220
1250
 
1221
1251
  InvalidParameterException.struct_class = Types::InvalidParameterException
@@ -1588,7 +1618,8 @@ module Aws::CloudWatchLogs
1588
1618
 
1589
1619
  PutDeliveryDestinationRequest.add_member(:name, Shapes::ShapeRef.new(shape: DeliveryDestinationName, required: true, location_name: "name"))
1590
1620
  PutDeliveryDestinationRequest.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "outputFormat"))
1591
- PutDeliveryDestinationRequest.add_member(:delivery_destination_configuration, Shapes::ShapeRef.new(shape: DeliveryDestinationConfiguration, required: true, location_name: "deliveryDestinationConfiguration"))
1621
+ PutDeliveryDestinationRequest.add_member(:delivery_destination_configuration, Shapes::ShapeRef.new(shape: DeliveryDestinationConfiguration, location_name: "deliveryDestinationConfiguration"))
1622
+ PutDeliveryDestinationRequest.add_member(:delivery_destination_type, Shapes::ShapeRef.new(shape: DeliveryDestinationType, location_name: "deliveryDestinationType"))
1592
1623
  PutDeliveryDestinationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1593
1624
  PutDeliveryDestinationRequest.struct_class = Types::PutDeliveryDestinationRequest
1594
1625
 
@@ -1666,9 +1697,12 @@ module Aws::CloudWatchLogs
1666
1697
 
1667
1698
  PutResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
1668
1699
  PutResourcePolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policyDocument"))
1700
+ PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceArn"))
1701
+ PutResourcePolicyRequest.add_member(:expected_revision_id, Shapes::ShapeRef.new(shape: ExpectedRevisionId, location_name: "expectedRevisionId"))
1669
1702
  PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
1670
1703
 
1671
1704
  PutResourcePolicyResponse.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "resourcePolicy"))
1705
+ PutResourcePolicyResponse.add_member(:revision_id, Shapes::ShapeRef.new(shape: ExpectedRevisionId, location_name: "revisionId"))
1672
1706
  PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
1673
1707
 
1674
1708
  PutRetentionPolicyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
@@ -1767,6 +1801,9 @@ module Aws::CloudWatchLogs
1767
1801
  ResourcePolicy.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
1768
1802
  ResourcePolicy.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policyDocument"))
1769
1803
  ResourcePolicy.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTime"))
1804
+ ResourcePolicy.add_member(:policy_scope, Shapes::ShapeRef.new(shape: PolicyScope, location_name: "policyScope"))
1805
+ ResourcePolicy.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceArn"))
1806
+ ResourcePolicy.add_member(:revision_id, Shapes::ShapeRef.new(shape: ExpectedRevisionId, location_name: "revisionId"))
1770
1807
  ResourcePolicy.struct_class = Types::ResourcePolicy
1771
1808
 
1772
1809
  ResourceTypes.member = Shapes::ShapeRef.new(shape: ResourceType)
@@ -2259,6 +2296,7 @@ module Aws::CloudWatchLogs
2259
2296
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2260
2297
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2261
2298
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2299
+ o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
2262
2300
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2263
2301
  end)
2264
2302
 
@@ -2676,6 +2714,22 @@ module Aws::CloudWatchLogs
2676
2714
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2677
2715
  end)
2678
2716
 
2717
+ api.add_operation(:get_log_object, Seahorse::Model::Operation.new.tap do |o|
2718
+ o.name = "GetLogObject"
2719
+ o.http_method = "POST"
2720
+ o.http_request_uri = "/"
2721
+ o.endpoint_pattern = {
2722
+ "hostPrefix" => "streaming-",
2723
+ }
2724
+ o.input = Shapes::ShapeRef.new(shape: GetLogObjectRequest)
2725
+ o.output = Shapes::ShapeRef.new(shape: GetLogObjectResponse)
2726
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2727
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2728
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2729
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2730
+ o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
2731
+ end)
2732
+
2679
2733
  api.add_operation(:get_log_record, Seahorse::Model::Operation.new.tap do |o|
2680
2734
  o.name = "GetLogRecord"
2681
2735
  o.http_method = "POST"
@@ -2967,6 +3021,8 @@ module Aws::CloudWatchLogs
2967
3021
  o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
2968
3022
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2969
3023
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
3024
+ o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
3025
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2970
3026
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2971
3027
  end)
2972
3028
 
@@ -30,6 +30,7 @@ module Aws::CloudWatchLogs
30
30
  # * {AccessDeniedException}
31
31
  # * {ConflictException}
32
32
  # * {DataAlreadyAcceptedException}
33
+ # * {InternalStreamingException}
33
34
  # * {InvalidOperationException}
34
35
  # * {InvalidParameterException}
35
36
  # * {InvalidSequenceTokenException}
@@ -88,6 +89,21 @@ module Aws::CloudWatchLogs
88
89
  end
89
90
  end
90
91
 
92
+ class InternalStreamingException < ServiceError
93
+
94
+ # @param [Seahorse::Client::RequestContext] context
95
+ # @param [String] message
96
+ # @param [Aws::CloudWatchLogs::Types::InternalStreamingException] data
97
+ def initialize(context, message, data = Aws::EmptyStructure.new)
98
+ super(context, message, data)
99
+ end
100
+
101
+ # @return [String]
102
+ def message
103
+ @message || @data[:message]
104
+ end
105
+ end
106
+
91
107
  class InvalidOperationException < ServiceError
92
108
 
93
109
  # @param [Seahorse::Client::RequestContext] context
@@ -9,6 +9,45 @@
9
9
 
10
10
  module Aws::CloudWatchLogs
11
11
  module EventStreams
12
+ class GetLogObjectResponseStream
13
+
14
+ def initialize
15
+ @event_emitter = Aws::EventEmitter.new
16
+ end
17
+
18
+ def on_fields_event(&block)
19
+ @event_emitter.on(:fields, block) if block_given?
20
+ end
21
+
22
+ def on_internal_streaming_exception_event(&block)
23
+ @event_emitter.on(:internal_streaming_exception, block) if block_given?
24
+ end
25
+
26
+ def on_error_event(&block)
27
+ @event_emitter.on(:error, block) if block_given?
28
+ end
29
+
30
+ def on_initial_response_event(&block)
31
+ @event_emitter.on(:initial_response, block) if block_given?
32
+ end
33
+
34
+ def on_unknown_event(&block)
35
+ @event_emitter.on(:unknown_event, block) if block_given?
36
+ end
37
+
38
+ def on_event(&block)
39
+ on_fields_event(&block)
40
+ on_internal_streaming_exception_event(&block)
41
+ on_error_event(&block)
42
+ on_initial_response_event(&block)
43
+ on_unknown_event(&block)
44
+ end
45
+
46
+ # @api private
47
+ # @return Aws::EventEmitter
48
+ attr_reader :event_emitter
49
+
50
+ end
12
51
  class StartLiveTailResponseStream
13
52
 
14
53
  def initialize
@@ -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 destionation names by using the
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 Firehose.
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, are supported as Firehose
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 Firehose.
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 `Foo`,
2029
- # log groups named `FooBar`, `aws/Foo`, and `GroupFoo` would match,
2030
- # but `foo`, `F/o/o` and `Froo` would not match.
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
@@ -5715,8 +5816,8 @@ module Aws::CloudWatchLogs
5715
5816
  # @return [Types::ParseRoute53]
5716
5817
  #
5717
5818
  # @!attribute [rw] parse_to_ocsf
5718
- # Use this processor to convert logs into Open Cybersecurity Schema
5719
- # Framework (OCSF) format
5819
+ # Use this parameter to convert logs into Open Cybersecurity Schema
5820
+ # (OCSF) format.
5720
5821
  # @return [Types::ParseToOCSF]
5721
5822
  #
5722
5823
  # @!attribute [rw] parse_postgres
@@ -5965,7 +6066,7 @@ module Aws::CloudWatchLogs
5965
6066
  # Use this parameter to apply the new policy to a subset of log groups
5966
6067
  # in the account.
5967
6068
  #
5968
- # Specifing `selectionCriteria` is valid only when you specify
6069
+ # Specifying `selectionCriteria` is valid only when you specify
5969
6070
  # `SUBSCRIPTION_FILTER_POLICY`, `FIELD_INDEX_POLICY` or
5970
6071
  # `TRANSFORMER_POLICY`for `policyType`.
5971
6072
  #
@@ -6132,8 +6233,34 @@ module Aws::CloudWatchLogs
6132
6233
  # @!attribute [rw] delivery_destination_configuration
6133
6234
  # A structure that contains the ARN of the Amazon Web Services
6134
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>
6135
6244
  # @return [Types::DeliveryDestinationConfiguration]
6136
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
+ #
6137
6264
  # @!attribute [rw] tags
6138
6265
  # An optional list of key-value pairs to associate with the resource.
6139
6266
  #
@@ -6151,6 +6278,7 @@ module Aws::CloudWatchLogs
6151
6278
  :name,
6152
6279
  :output_format,
6153
6280
  :delivery_destination_configuration,
6281
+ :delivery_destination_type,
6154
6282
  :tags)
6155
6283
  SENSITIVE = []
6156
6284
  include Aws::Structure
@@ -6183,7 +6311,8 @@ module Aws::CloudWatchLogs
6183
6311
  # @!attribute [rw] log_type
6184
6312
  # Defines the type of log that the source is sending.
6185
6313
  #
6186
- # * For Amazon Bedrock, the valid value is `APPLICATION_LOGS`.
6314
+ # * For Amazon Bedrock, the valid value is `APPLICATION_LOGS` and
6315
+ # `TRACES`.
6187
6316
  #
6188
6317
  # * For CloudFront, the valid value is `ACCESS_LOGS`.
6189
6318
  #
@@ -6200,6 +6329,9 @@ module Aws::CloudWatchLogs
6200
6329
  #
6201
6330
  # * For IAM Identity Center, the valid value is `ERROR_LOGS`.
6202
6331
  #
6332
+ # * For PCS, the valid values are `PCS_SCHEDULER_LOGS` and
6333
+ # `PCS_JOBCOMP_LOGS`.
6334
+ #
6203
6335
  # * For Amazon Q, the valid value is `EVENT_LOGS`.
6204
6336
  #
6205
6337
  # * For Amazon SES mail manager, the valid values are
@@ -6209,6 +6341,8 @@ module Aws::CloudWatchLogs
6209
6341
  # `AUTHENTICATION_LOGS`, `WORKMAIL_AVAILABILITY_PROVIDER_LOGS`,
6210
6342
  # `WORKMAIL_MAILBOX_ACCESS_LOGS`, and
6211
6343
  # `WORKMAIL_PERSONAL_ACCESS_TOKEN_LOGS`.
6344
+ #
6345
+ # * For Amazon VPC Route Server, the valid value is `EVENT_LOGS`.
6212
6346
  # @return [String]
6213
6347
  #
6214
6348
  # @!attribute [rw] tags
@@ -6669,11 +6803,24 @@ module Aws::CloudWatchLogs
6669
6803
  # [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-sourceaccount
6670
6804
  # @return [String]
6671
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
+ #
6672
6817
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyRequest AWS API Documentation
6673
6818
  #
6674
6819
  class PutResourcePolicyRequest < Struct.new(
6675
6820
  :policy_name,
6676
- :policy_document)
6821
+ :policy_document,
6822
+ :resource_arn,
6823
+ :expected_revision_id)
6677
6824
  SENSITIVE = []
6678
6825
  include Aws::Structure
6679
6826
  end
@@ -6682,10 +6829,16 @@ module Aws::CloudWatchLogs
6682
6829
  # The new policy.
6683
6830
  # @return [Types::ResourcePolicy]
6684
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
+ #
6685
6837
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/PutResourcePolicyResponse AWS API Documentation
6686
6838
  #
6687
6839
  class PutResourcePolicyResponse < Struct.new(
6688
- :resource_policy)
6840
+ :resource_policy,
6841
+ :revision_id)
6689
6842
  SENSITIVE = []
6690
6843
  include Aws::Structure
6691
6844
  end
@@ -7210,12 +7363,30 @@ module Aws::CloudWatchLogs
7210
7363
  # the number of milliseconds after `Jan 1, 1970 00:00:00 UTC`.
7211
7364
  # @return [Integer]
7212
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
+ #
7213
7381
  # @see http://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/ResourcePolicy AWS API Documentation
7214
7382
  #
7215
7383
  class ResourcePolicy < Struct.new(
7216
7384
  :policy_name,
7217
7385
  :policy_document,
7218
- :last_updated_time)
7386
+ :last_updated_time,
7387
+ :policy_scope,
7388
+ :resource_arn,
7389
+ :revision_id)
7219
7390
  SENSITIVE = []
7220
7391
  include Aws::Structure
7221
7392
  end
@@ -8201,6 +8372,26 @@ module Aws::CloudWatchLogs
8201
8372
  #
8202
8373
  class ValidationException < Aws::EmptyStructure; end
8203
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
+
8204
8395
  # This object includes the stream returned by your [StartLiveTail][1]
8205
8396
  # request.
8206
8397
  #
@@ -55,7 +55,7 @@ module Aws::CloudWatchLogs
55
55
  autoload :Endpoints, 'aws-sdk-cloudwatchlogs/endpoints'
56
56
  autoload :EventStreams, 'aws-sdk-cloudwatchlogs/event_streams'
57
57
 
58
- GEM_VERSION = '1.119.0'
58
+ GEM_VERSION = '1.121.0'
59
59
 
60
60
  end
61
61