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.
@@ -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')
@@ -176,7 +177,9 @@ module Aws::CloudWatchLogs
176
177
  EventId = Shapes::StringShape.new(name: 'EventId')
177
178
  EventMessage = Shapes::StringShape.new(name: 'EventMessage')
178
179
  EventNumber = Shapes::IntegerShape.new(name: 'EventNumber')
180
+ EventSource = Shapes::StringShape.new(name: 'EventSource')
179
181
  EventsLimit = Shapes::IntegerShape.new(name: 'EventsLimit')
182
+ ExpectedRevisionId = Shapes::StringShape.new(name: 'ExpectedRevisionId')
180
183
  ExportDestinationBucket = Shapes::StringShape.new(name: 'ExportDestinationBucket')
181
184
  ExportDestinationPrefix = Shapes::StringShape.new(name: 'ExportDestinationPrefix')
182
185
  ExportTask = Shapes::StructureShape.new(name: 'ExportTask')
@@ -194,6 +197,7 @@ module Aws::CloudWatchLogs
194
197
  FieldIndex = Shapes::StructureShape.new(name: 'FieldIndex')
195
198
  FieldIndexName = Shapes::StringShape.new(name: 'FieldIndexName')
196
199
  FieldIndexes = Shapes::ListShape.new(name: 'FieldIndexes')
200
+ FieldsData = Shapes::StructureShape.new(name: 'FieldsData')
197
201
  FilterCount = Shapes::IntegerShape.new(name: 'FilterCount')
198
202
  FilterLogEventsRequest = Shapes::StructureShape.new(name: 'FilterLogEventsRequest')
199
203
  FilterLogEventsResponse = Shapes::StructureShape.new(name: 'FilterLogEventsResponse')
@@ -224,6 +228,9 @@ module Aws::CloudWatchLogs
224
228
  GetLogEventsResponse = Shapes::StructureShape.new(name: 'GetLogEventsResponse')
225
229
  GetLogGroupFieldsRequest = Shapes::StructureShape.new(name: 'GetLogGroupFieldsRequest')
226
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')
227
234
  GetLogRecordRequest = Shapes::StructureShape.new(name: 'GetLogRecordRequest')
228
235
  GetLogRecordResponse = Shapes::StructureShape.new(name: 'GetLogRecordResponse')
229
236
  GetQueryResultsRequest = Shapes::StructureShape.new(name: 'GetQueryResultsRequest')
@@ -253,6 +260,7 @@ module Aws::CloudWatchLogs
253
260
  IntegrationSummary = Shapes::StructureShape.new(name: 'IntegrationSummary')
254
261
  IntegrationType = Shapes::StringShape.new(name: 'IntegrationType')
255
262
  Interleaved = Shapes::BooleanShape.new(name: 'Interleaved')
263
+ InternalStreamingException = Shapes::StructureShape.new(name: 'InternalStreamingException')
256
264
  InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
257
265
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
258
266
  InvalidSequenceTokenException = Shapes::StructureShape.new(name: 'InvalidSequenceTokenException')
@@ -304,6 +312,7 @@ module Aws::CloudWatchLogs
304
312
  LogGroupSummaries = Shapes::ListShape.new(name: 'LogGroupSummaries')
305
313
  LogGroupSummary = Shapes::StructureShape.new(name: 'LogGroupSummary')
306
314
  LogGroups = Shapes::ListShape.new(name: 'LogGroups')
315
+ LogObjectPointer = Shapes::StringShape.new(name: 'LogObjectPointer')
307
316
  LogRecord = Shapes::MapShape.new(name: 'LogRecord')
308
317
  LogRecordPointer = Shapes::StringShape.new(name: 'LogRecordPointer')
309
318
  LogSamples = Shapes::ListShape.new(name: 'LogSamples')
@@ -333,6 +342,7 @@ module Aws::CloudWatchLogs
333
342
  MoveKeys = Shapes::StructureShape.new(name: 'MoveKeys')
334
343
  NextToken = Shapes::StringShape.new(name: 'NextToken')
335
344
  NonMatchValue = Shapes::StringShape.new(name: 'NonMatchValue')
345
+ OCSFVersion = Shapes::StringShape.new(name: 'OCSFVersion')
336
346
  OpenSearchApplication = Shapes::StructureShape.new(name: 'OpenSearchApplication')
337
347
  OpenSearchApplicationEndpoint = Shapes::StringShape.new(name: 'OpenSearchApplicationEndpoint')
338
348
  OpenSearchApplicationId = Shapes::StringShape.new(name: 'OpenSearchApplicationId')
@@ -363,6 +373,7 @@ module Aws::CloudWatchLogs
363
373
  ParseKeyValue = Shapes::StructureShape.new(name: 'ParseKeyValue')
364
374
  ParsePostgres = Shapes::StructureShape.new(name: 'ParsePostgres')
365
375
  ParseRoute53 = Shapes::StructureShape.new(name: 'ParseRoute53')
376
+ ParseToOCSF = Shapes::StructureShape.new(name: 'ParseToOCSF')
366
377
  ParseVPC = Shapes::StructureShape.new(name: 'ParseVPC')
367
378
  ParseWAF = Shapes::StructureShape.new(name: 'ParseWAF')
368
379
  ParserFieldDelimiter = Shapes::StringShape.new(name: 'ParserFieldDelimiter')
@@ -375,6 +386,7 @@ module Aws::CloudWatchLogs
375
386
  Policy = Shapes::StructureShape.new(name: 'Policy')
376
387
  PolicyDocument = Shapes::StringShape.new(name: 'PolicyDocument')
377
388
  PolicyName = Shapes::StringShape.new(name: 'PolicyName')
389
+ PolicyScope = Shapes::StringShape.new(name: 'PolicyScope')
378
390
  PolicyType = Shapes::StringShape.new(name: 'PolicyType')
379
391
  Priority = Shapes::StringShape.new(name: 'Priority')
380
392
  Processor = Shapes::StructureShape.new(name: 'Processor')
@@ -762,6 +774,8 @@ module Aws::CloudWatchLogs
762
774
  DeleteQueryDefinitionResponse.struct_class = Types::DeleteQueryDefinitionResponse
763
775
 
764
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"))
765
779
  DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
766
780
 
767
781
  DeleteRetentionPolicyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
@@ -963,6 +977,8 @@ module Aws::CloudWatchLogs
963
977
 
964
978
  DescribeResourcePoliciesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
965
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"))
966
982
  DescribeResourcePoliciesRequest.struct_class = Types::DescribeResourcePoliciesRequest
967
983
 
968
984
  DescribeResourcePoliciesResponse.add_member(:resource_policies, Shapes::ShapeRef.new(shape: ResourcePolicies, location_name: "resourcePolicies"))
@@ -1042,6 +1058,9 @@ module Aws::CloudWatchLogs
1042
1058
 
1043
1059
  FieldIndexes.member = Shapes::ShapeRef.new(shape: FieldIndex)
1044
1060
 
1061
+ FieldsData.add_member(:data, Shapes::ShapeRef.new(shape: Data, location_name: "data"))
1062
+ FieldsData.struct_class = Types::FieldsData
1063
+
1045
1064
  FilterLogEventsRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
1046
1065
  FilterLogEventsRequest.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
1047
1066
  FilterLogEventsRequest.add_member(:log_stream_names, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNames"))
@@ -1148,6 +1167,17 @@ module Aws::CloudWatchLogs
1148
1167
  GetLogGroupFieldsResponse.add_member(:log_group_fields, Shapes::ShapeRef.new(shape: LogGroupFieldList, location_name: "logGroupFields"))
1149
1168
  GetLogGroupFieldsResponse.struct_class = Types::GetLogGroupFieldsResponse
1150
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
+
1151
1181
  GetLogRecordRequest.add_member(:log_record_pointer, Shapes::ShapeRef.new(shape: LogRecordPointer, required: true, location_name: "logRecordPointer"))
1152
1182
  GetLogRecordRequest.add_member(:unmask, Shapes::ShapeRef.new(shape: Unmask, location_name: "unmask"))
1153
1183
  GetLogRecordRequest.struct_class = Types::GetLogRecordRequest
@@ -1213,6 +1243,9 @@ module Aws::CloudWatchLogs
1213
1243
  IntegrationSummary.add_member(:integration_status, Shapes::ShapeRef.new(shape: IntegrationStatus, location_name: "integrationStatus"))
1214
1244
  IntegrationSummary.struct_class = Types::IntegrationSummary
1215
1245
 
1246
+ InternalStreamingException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
1247
+ InternalStreamingException.struct_class = Types::InternalStreamingException
1248
+
1216
1249
  InvalidOperationException.struct_class = Types::InvalidOperationException
1217
1250
 
1218
1251
  InvalidParameterException.struct_class = Types::InvalidParameterException
@@ -1507,6 +1540,11 @@ module Aws::CloudWatchLogs
1507
1540
  ParseRoute53.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "source"))
1508
1541
  ParseRoute53.struct_class = Types::ParseRoute53
1509
1542
 
1543
+ ParseToOCSF.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "source"))
1544
+ ParseToOCSF.add_member(:event_source, Shapes::ShapeRef.new(shape: EventSource, required: true, location_name: "eventSource"))
1545
+ ParseToOCSF.add_member(:ocsf_version, Shapes::ShapeRef.new(shape: OCSFVersion, required: true, location_name: "ocsfVersion"))
1546
+ ParseToOCSF.struct_class = Types::ParseToOCSF
1547
+
1510
1548
  ParseVPC.add_member(:source, Shapes::ShapeRef.new(shape: Source, location_name: "source"))
1511
1549
  ParseVPC.struct_class = Types::ParseVPC
1512
1550
 
@@ -1538,6 +1576,7 @@ module Aws::CloudWatchLogs
1538
1576
  Processor.add_member(:parse_json, Shapes::ShapeRef.new(shape: ParseJSON, location_name: "parseJSON"))
1539
1577
  Processor.add_member(:parse_key_value, Shapes::ShapeRef.new(shape: ParseKeyValue, location_name: "parseKeyValue"))
1540
1578
  Processor.add_member(:parse_route_53, Shapes::ShapeRef.new(shape: ParseRoute53, location_name: "parseRoute53"))
1579
+ Processor.add_member(:parse_to_ocsf, Shapes::ShapeRef.new(shape: ParseToOCSF, location_name: "parseToOCSF"))
1541
1580
  Processor.add_member(:parse_postgres, Shapes::ShapeRef.new(shape: ParsePostgres, location_name: "parsePostgres"))
1542
1581
  Processor.add_member(:parse_vpc, Shapes::ShapeRef.new(shape: ParseVPC, location_name: "parseVPC"))
1543
1582
  Processor.add_member(:parse_waf, Shapes::ShapeRef.new(shape: ParseWAF, location_name: "parseWAF"))
@@ -1579,7 +1618,8 @@ module Aws::CloudWatchLogs
1579
1618
 
1580
1619
  PutDeliveryDestinationRequest.add_member(:name, Shapes::ShapeRef.new(shape: DeliveryDestinationName, required: true, location_name: "name"))
1581
1620
  PutDeliveryDestinationRequest.add_member(:output_format, Shapes::ShapeRef.new(shape: OutputFormat, location_name: "outputFormat"))
1582
- 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"))
1583
1623
  PutDeliveryDestinationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1584
1624
  PutDeliveryDestinationRequest.struct_class = Types::PutDeliveryDestinationRequest
1585
1625
 
@@ -1657,9 +1697,12 @@ module Aws::CloudWatchLogs
1657
1697
 
1658
1698
  PutResourcePolicyRequest.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
1659
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"))
1660
1702
  PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
1661
1703
 
1662
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"))
1663
1706
  PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
1664
1707
 
1665
1708
  PutRetentionPolicyRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, required: true, location_name: "logGroupName"))
@@ -1758,6 +1801,9 @@ module Aws::CloudWatchLogs
1758
1801
  ResourcePolicy.add_member(:policy_name, Shapes::ShapeRef.new(shape: PolicyName, location_name: "policyName"))
1759
1802
  ResourcePolicy.add_member(:policy_document, Shapes::ShapeRef.new(shape: PolicyDocument, location_name: "policyDocument"))
1760
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"))
1761
1807
  ResourcePolicy.struct_class = Types::ResourcePolicy
1762
1808
 
1763
1809
  ResourceTypes.member = Shapes::ShapeRef.new(shape: ResourceType)
@@ -2250,6 +2296,7 @@ module Aws::CloudWatchLogs
2250
2296
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
2251
2297
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2252
2298
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2299
+ o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
2253
2300
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2254
2301
  end)
2255
2302
 
@@ -2667,6 +2714,22 @@ module Aws::CloudWatchLogs
2667
2714
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2668
2715
  end)
2669
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
+
2670
2733
  api.add_operation(:get_log_record, Seahorse::Model::Operation.new.tap do |o|
2671
2734
  o.name = "GetLogRecord"
2672
2735
  o.http_method = "POST"
@@ -2958,6 +3021,8 @@ module Aws::CloudWatchLogs
2958
3021
  o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
2959
3022
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2960
3023
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
3024
+ o.errors << Shapes::ShapeRef.new(shape: OperationAbortedException)
3025
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2961
3026
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
2962
3027
  end)
2963
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