aws-sdk-cloudwatchlogs 1.75.0 → 1.77.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +448 -40
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +80 -0
- data/lib/aws-sdk-cloudwatchlogs/endpoints.rb +14 -0
- data/lib/aws-sdk-cloudwatchlogs/errors.rb +32 -0
- data/lib/aws-sdk-cloudwatchlogs/event_streams.rb +64 -0
- data/lib/aws-sdk-cloudwatchlogs/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-cloudwatchlogs/types.rb +360 -14
- data/lib/aws-sdk-cloudwatchlogs.rb +2 -1
- metadata +3 -2
@@ -178,6 +178,7 @@ module Aws::CloudWatchLogs
|
|
178
178
|
InvalidOperationException = Shapes::StructureShape.new(name: 'InvalidOperationException')
|
179
179
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
180
180
|
InvalidSequenceTokenException = Shapes::StructureShape.new(name: 'InvalidSequenceTokenException')
|
181
|
+
IsSampled = Shapes::BooleanShape.new(name: 'IsSampled')
|
181
182
|
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
182
183
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
183
184
|
ListAnomaliesLimit = Shapes::IntegerShape.new(name: 'ListAnomaliesLimit')
|
@@ -190,6 +191,11 @@ module Aws::CloudWatchLogs
|
|
190
191
|
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
191
192
|
ListTagsLogGroupRequest = Shapes::StructureShape.new(name: 'ListTagsLogGroupRequest')
|
192
193
|
ListTagsLogGroupResponse = Shapes::StructureShape.new(name: 'ListTagsLogGroupResponse')
|
194
|
+
LiveTailSessionLogEvent = Shapes::StructureShape.new(name: 'LiveTailSessionLogEvent')
|
195
|
+
LiveTailSessionMetadata = Shapes::StructureShape.new(name: 'LiveTailSessionMetadata')
|
196
|
+
LiveTailSessionResults = Shapes::ListShape.new(name: 'LiveTailSessionResults')
|
197
|
+
LiveTailSessionStart = Shapes::StructureShape.new(name: 'LiveTailSessionStart')
|
198
|
+
LiveTailSessionUpdate = Shapes::StructureShape.new(name: 'LiveTailSessionUpdate')
|
193
199
|
LogEvent = Shapes::StringShape.new(name: 'LogEvent')
|
194
200
|
LogEventIndex = Shapes::IntegerShape.new(name: 'LogEventIndex')
|
195
201
|
LogGroup = Shapes::StructureShape.new(name: 'LogGroup')
|
@@ -278,6 +284,7 @@ module Aws::CloudWatchLogs
|
|
278
284
|
QueryStatus = Shapes::StringShape.new(name: 'QueryStatus')
|
279
285
|
QueryString = Shapes::StringShape.new(name: 'QueryString')
|
280
286
|
RejectedLogEventsInfo = Shapes::StructureShape.new(name: 'RejectedLogEventsInfo')
|
287
|
+
RequestId = Shapes::StringShape.new(name: 'RequestId')
|
281
288
|
ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
|
282
289
|
ResourceArns = Shapes::ListShape.new(name: 'ResourceArns')
|
283
290
|
ResourceIdentifier = Shapes::StringShape.new(name: 'ResourceIdentifier')
|
@@ -290,12 +297,20 @@ module Aws::CloudWatchLogs
|
|
290
297
|
Scope = Shapes::StringShape.new(name: 'Scope')
|
291
298
|
SearchedLogStream = Shapes::StructureShape.new(name: 'SearchedLogStream')
|
292
299
|
SearchedLogStreams = Shapes::ListShape.new(name: 'SearchedLogStreams')
|
300
|
+
SelectionCriteria = Shapes::StringShape.new(name: 'SelectionCriteria')
|
293
301
|
SequenceToken = Shapes::StringShape.new(name: 'SequenceToken')
|
294
302
|
Service = Shapes::StringShape.new(name: 'Service')
|
295
303
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
296
304
|
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
305
|
+
SessionId = Shapes::StringShape.new(name: 'SessionId')
|
306
|
+
SessionStreamingException = Shapes::StructureShape.new(name: 'SessionStreamingException')
|
307
|
+
SessionTimeoutException = Shapes::StructureShape.new(name: 'SessionTimeoutException')
|
297
308
|
StandardUnit = Shapes::StringShape.new(name: 'StandardUnit')
|
298
309
|
StartFromHead = Shapes::BooleanShape.new(name: 'StartFromHead')
|
310
|
+
StartLiveTailLogGroupIdentifiers = Shapes::ListShape.new(name: 'StartLiveTailLogGroupIdentifiers')
|
311
|
+
StartLiveTailRequest = Shapes::StructureShape.new(name: 'StartLiveTailRequest')
|
312
|
+
StartLiveTailResponse = Shapes::StructureShape.new(name: 'StartLiveTailResponse')
|
313
|
+
StartLiveTailResponseStream = Shapes::StructureShape.new(name: 'StartLiveTailResponseStream')
|
299
314
|
StartQueryRequest = Shapes::StructureShape.new(name: 'StartQueryRequest')
|
300
315
|
StartQueryResponse = Shapes::StructureShape.new(name: 'StartQueryResponse')
|
301
316
|
State = Shapes::StringShape.new(name: 'State')
|
@@ -348,6 +363,7 @@ module Aws::CloudWatchLogs
|
|
348
363
|
AccountPolicy.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedTime"))
|
349
364
|
AccountPolicy.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyType, location_name: "policyType"))
|
350
365
|
AccountPolicy.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
|
366
|
+
AccountPolicy.add_member(:selection_criteria, Shapes::ShapeRef.new(shape: SelectionCriteria, location_name: "selectionCriteria"))
|
351
367
|
AccountPolicy.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
|
352
368
|
AccountPolicy.struct_class = Types::AccountPolicy
|
353
369
|
|
@@ -864,6 +880,30 @@ module Aws::CloudWatchLogs
|
|
864
880
|
ListTagsLogGroupResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
865
881
|
ListTagsLogGroupResponse.struct_class = Types::ListTagsLogGroupResponse
|
866
882
|
|
883
|
+
LiveTailSessionLogEvent.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: LogStreamName, location_name: "logStreamName"))
|
884
|
+
LiveTailSessionLogEvent.add_member(:log_group_identifier, Shapes::ShapeRef.new(shape: LogGroupIdentifier, location_name: "logGroupIdentifier"))
|
885
|
+
LiveTailSessionLogEvent.add_member(:message, Shapes::ShapeRef.new(shape: EventMessage, location_name: "message"))
|
886
|
+
LiveTailSessionLogEvent.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "timestamp"))
|
887
|
+
LiveTailSessionLogEvent.add_member(:ingestion_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "ingestionTime"))
|
888
|
+
LiveTailSessionLogEvent.struct_class = Types::LiveTailSessionLogEvent
|
889
|
+
|
890
|
+
LiveTailSessionMetadata.add_member(:sampled, Shapes::ShapeRef.new(shape: IsSampled, location_name: "sampled"))
|
891
|
+
LiveTailSessionMetadata.struct_class = Types::LiveTailSessionMetadata
|
892
|
+
|
893
|
+
LiveTailSessionResults.member = Shapes::ShapeRef.new(shape: LiveTailSessionLogEvent)
|
894
|
+
|
895
|
+
LiveTailSessionStart.add_member(:request_id, Shapes::ShapeRef.new(shape: RequestId, location_name: "requestId"))
|
896
|
+
LiveTailSessionStart.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "sessionId"))
|
897
|
+
LiveTailSessionStart.add_member(:log_group_identifiers, Shapes::ShapeRef.new(shape: StartLiveTailLogGroupIdentifiers, location_name: "logGroupIdentifiers"))
|
898
|
+
LiveTailSessionStart.add_member(:log_stream_names, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNames"))
|
899
|
+
LiveTailSessionStart.add_member(:log_stream_name_prefixes, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNamePrefixes"))
|
900
|
+
LiveTailSessionStart.add_member(:log_event_filter_pattern, Shapes::ShapeRef.new(shape: FilterPattern, location_name: "logEventFilterPattern"))
|
901
|
+
LiveTailSessionStart.struct_class = Types::LiveTailSessionStart
|
902
|
+
|
903
|
+
LiveTailSessionUpdate.add_member(:session_metadata, Shapes::ShapeRef.new(shape: LiveTailSessionMetadata, location_name: "sessionMetadata"))
|
904
|
+
LiveTailSessionUpdate.add_member(:session_results, Shapes::ShapeRef.new(shape: LiveTailSessionResults, location_name: "sessionResults"))
|
905
|
+
LiveTailSessionUpdate.struct_class = Types::LiveTailSessionUpdate
|
906
|
+
|
867
907
|
LogGroup.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
868
908
|
LogGroup.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationTime"))
|
869
909
|
LogGroup.add_member(:retention_in_days, Shapes::ShapeRef.new(shape: Days, location_name: "retentionInDays"))
|
@@ -960,6 +1000,7 @@ module Aws::CloudWatchLogs
|
|
960
1000
|
PutAccountPolicyRequest.add_member(:policy_document, Shapes::ShapeRef.new(shape: AccountPolicyDocument, required: true, location_name: "policyDocument"))
|
961
1001
|
PutAccountPolicyRequest.add_member(:policy_type, Shapes::ShapeRef.new(shape: PolicyType, required: true, location_name: "policyType"))
|
962
1002
|
PutAccountPolicyRequest.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
|
1003
|
+
PutAccountPolicyRequest.add_member(:selection_criteria, Shapes::ShapeRef.new(shape: SelectionCriteria, location_name: "selectionCriteria"))
|
963
1004
|
PutAccountPolicyRequest.struct_class = Types::PutAccountPolicyRequest
|
964
1005
|
|
965
1006
|
PutAccountPolicyResponse.add_member(:account_policy, Shapes::ShapeRef.new(shape: AccountPolicy, location_name: "accountPolicy"))
|
@@ -1125,6 +1166,29 @@ module Aws::CloudWatchLogs
|
|
1125
1166
|
|
1126
1167
|
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
1127
1168
|
|
1169
|
+
SessionStreamingException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
|
1170
|
+
SessionStreamingException.struct_class = Types::SessionStreamingException
|
1171
|
+
|
1172
|
+
SessionTimeoutException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
|
1173
|
+
SessionTimeoutException.struct_class = Types::SessionTimeoutException
|
1174
|
+
|
1175
|
+
StartLiveTailLogGroupIdentifiers.member = Shapes::ShapeRef.new(shape: LogGroupIdentifier)
|
1176
|
+
|
1177
|
+
StartLiveTailRequest.add_member(:log_group_identifiers, Shapes::ShapeRef.new(shape: StartLiveTailLogGroupIdentifiers, required: true, location_name: "logGroupIdentifiers"))
|
1178
|
+
StartLiveTailRequest.add_member(:log_stream_names, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNames"))
|
1179
|
+
StartLiveTailRequest.add_member(:log_stream_name_prefixes, Shapes::ShapeRef.new(shape: InputLogStreamNames, location_name: "logStreamNamePrefixes"))
|
1180
|
+
StartLiveTailRequest.add_member(:log_event_filter_pattern, Shapes::ShapeRef.new(shape: FilterPattern, location_name: "logEventFilterPattern"))
|
1181
|
+
StartLiveTailRequest.struct_class = Types::StartLiveTailRequest
|
1182
|
+
|
1183
|
+
StartLiveTailResponse.add_member(:response_stream, Shapes::ShapeRef.new(shape: StartLiveTailResponseStream, eventstream: true, location_name: "responseStream"))
|
1184
|
+
StartLiveTailResponse.struct_class = Types::StartLiveTailResponse
|
1185
|
+
|
1186
|
+
StartLiveTailResponseStream.add_member(:session_start, Shapes::ShapeRef.new(shape: LiveTailSessionStart, event: true, location_name: "sessionStart"))
|
1187
|
+
StartLiveTailResponseStream.add_member(:session_update, Shapes::ShapeRef.new(shape: LiveTailSessionUpdate, event: true, location_name: "sessionUpdate"))
|
1188
|
+
StartLiveTailResponseStream.add_member(:session_timeout_exception, Shapes::ShapeRef.new(shape: SessionTimeoutException, location_name: "SessionTimeoutException"))
|
1189
|
+
StartLiveTailResponseStream.add_member(:session_streaming_exception, Shapes::ShapeRef.new(shape: SessionStreamingException, location_name: "SessionStreamingException"))
|
1190
|
+
StartLiveTailResponseStream.struct_class = Types::StartLiveTailResponseStream
|
1191
|
+
|
1128
1192
|
StartQueryRequest.add_member(:log_group_name, Shapes::ShapeRef.new(shape: LogGroupName, location_name: "logGroupName"))
|
1129
1193
|
StartQueryRequest.add_member(:log_group_names, Shapes::ShapeRef.new(shape: LogGroupNames, location_name: "logGroupNames"))
|
1130
1194
|
StartQueryRequest.add_member(:log_group_identifiers, Shapes::ShapeRef.new(shape: LogGroupIdentifiers, location_name: "logGroupIdentifiers"))
|
@@ -2072,6 +2136,22 @@ module Aws::CloudWatchLogs
|
|
2072
2136
|
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
2073
2137
|
end)
|
2074
2138
|
|
2139
|
+
api.add_operation(:start_live_tail, Seahorse::Model::Operation.new.tap do |o|
|
2140
|
+
o.name = "StartLiveTail"
|
2141
|
+
o.http_method = "POST"
|
2142
|
+
o.http_request_uri = "/"
|
2143
|
+
o.endpoint_pattern = {
|
2144
|
+
"hostPrefix" => "streaming-",
|
2145
|
+
}
|
2146
|
+
o.input = Shapes::ShapeRef.new(shape: StartLiveTailRequest)
|
2147
|
+
o.output = Shapes::ShapeRef.new(shape: StartLiveTailResponse)
|
2148
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
2149
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2150
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
2151
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
2152
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidOperationException)
|
2153
|
+
end)
|
2154
|
+
|
2075
2155
|
api.add_operation(:start_query, Seahorse::Model::Operation.new.tap do |o|
|
2076
2156
|
o.name = "StartQuery"
|
2077
2157
|
o.http_method = "POST"
|
@@ -908,6 +908,20 @@ module Aws::CloudWatchLogs
|
|
908
908
|
end
|
909
909
|
end
|
910
910
|
|
911
|
+
class StartLiveTail
|
912
|
+
def self.build(context)
|
913
|
+
unless context.config.regional_endpoint
|
914
|
+
endpoint = context.config.endpoint.to_s
|
915
|
+
end
|
916
|
+
Aws::CloudWatchLogs::EndpointParameters.new(
|
917
|
+
region: context.config.region,
|
918
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
919
|
+
use_fips: context.config.use_fips_endpoint,
|
920
|
+
endpoint: endpoint,
|
921
|
+
)
|
922
|
+
end
|
923
|
+
end
|
924
|
+
|
911
925
|
class StartQuery
|
912
926
|
def self.build(context)
|
913
927
|
unless context.config.regional_endpoint
|
@@ -40,6 +40,8 @@ module Aws::CloudWatchLogs
|
|
40
40
|
# * {ResourceNotFoundException}
|
41
41
|
# * {ServiceQuotaExceededException}
|
42
42
|
# * {ServiceUnavailableException}
|
43
|
+
# * {SessionStreamingException}
|
44
|
+
# * {SessionTimeoutException}
|
43
45
|
# * {ThrottlingException}
|
44
46
|
# * {TooManyTagsException}
|
45
47
|
# * {UnrecognizedClientException}
|
@@ -196,6 +198,36 @@ module Aws::CloudWatchLogs
|
|
196
198
|
end
|
197
199
|
end
|
198
200
|
|
201
|
+
class SessionStreamingException < ServiceError
|
202
|
+
|
203
|
+
# @param [Seahorse::Client::RequestContext] context
|
204
|
+
# @param [String] message
|
205
|
+
# @param [Aws::CloudWatchLogs::Types::SessionStreamingException] data
|
206
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
207
|
+
super(context, message, data)
|
208
|
+
end
|
209
|
+
|
210
|
+
# @return [String]
|
211
|
+
def message
|
212
|
+
@message || @data[:message]
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
class SessionTimeoutException < ServiceError
|
217
|
+
|
218
|
+
# @param [Seahorse::Client::RequestContext] context
|
219
|
+
# @param [String] message
|
220
|
+
# @param [Aws::CloudWatchLogs::Types::SessionTimeoutException] data
|
221
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
222
|
+
super(context, message, data)
|
223
|
+
end
|
224
|
+
|
225
|
+
# @return [String]
|
226
|
+
def message
|
227
|
+
@message || @data[:message]
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
199
231
|
class ThrottlingException < ServiceError
|
200
232
|
|
201
233
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -0,0 +1,64 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CloudWatchLogs
|
11
|
+
module EventStreams
|
12
|
+
class StartLiveTailResponseStream
|
13
|
+
|
14
|
+
def initialize
|
15
|
+
@event_emitter = Aws::EventEmitter.new
|
16
|
+
end
|
17
|
+
|
18
|
+
def on_session_start_event(&block)
|
19
|
+
@event_emitter.on(:session_start, block) if block_given?
|
20
|
+
end
|
21
|
+
|
22
|
+
def on_session_update_event(&block)
|
23
|
+
@event_emitter.on(:session_update, block) if block_given?
|
24
|
+
end
|
25
|
+
|
26
|
+
def on_session_timeout_exception_event(&block)
|
27
|
+
@event_emitter.on(:session_timeout_exception, block) if block_given?
|
28
|
+
end
|
29
|
+
|
30
|
+
def on_session_streaming_exception_event(&block)
|
31
|
+
@event_emitter.on(:session_streaming_exception, block) if block_given?
|
32
|
+
end
|
33
|
+
|
34
|
+
def on_error_event(&block)
|
35
|
+
@event_emitter.on(:error, block) if block_given?
|
36
|
+
end
|
37
|
+
|
38
|
+
def on_initial_response_event(&block)
|
39
|
+
@event_emitter.on(:initial_response, block) if block_given?
|
40
|
+
end
|
41
|
+
|
42
|
+
def on_unknown_event(&block)
|
43
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
44
|
+
end
|
45
|
+
|
46
|
+
def on_event(&block)
|
47
|
+
on_session_start_event(&block)
|
48
|
+
on_session_update_event(&block)
|
49
|
+
on_session_timeout_exception_event(&block)
|
50
|
+
on_session_streaming_exception_event(&block)
|
51
|
+
on_error_event(&block)
|
52
|
+
on_initial_response_event(&block)
|
53
|
+
on_unknown_event(&block)
|
54
|
+
end
|
55
|
+
|
56
|
+
# @api private
|
57
|
+
# @return Aws::EventEmitter
|
58
|
+
attr_reader :event_emitter
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
@@ -185,6 +185,8 @@ module Aws::CloudWatchLogs
|
|
185
185
|
Aws::CloudWatchLogs::Endpoints::PutRetentionPolicy.build(context)
|
186
186
|
when :put_subscription_filter
|
187
187
|
Aws::CloudWatchLogs::Endpoints::PutSubscriptionFilter.build(context)
|
188
|
+
when :start_live_tail
|
189
|
+
Aws::CloudWatchLogs::Endpoints::StartLiveTail.build(context)
|
188
190
|
when :start_query
|
189
191
|
Aws::CloudWatchLogs::Endpoints::StartQuery.build(context)
|
190
192
|
when :stop_query
|