aws-sdk-cloudwatchlogs 1.78.0 → 1.172.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 +470 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatchlogs/client.rb +4948 -482
- data/lib/aws-sdk-cloudwatchlogs/client_api.rb +2072 -13
- data/lib/aws-sdk-cloudwatchlogs/customizations.rb +0 -8
- data/lib/aws-sdk-cloudwatchlogs/endpoint_parameters.rb +13 -10
- data/lib/aws-sdk-cloudwatchlogs/endpoint_provider.rb +15 -19
- data/lib/aws-sdk-cloudwatchlogs/endpoints.rb +2 -1034
- data/lib/aws-sdk-cloudwatchlogs/errors.rb +27 -0
- data/lib/aws-sdk-cloudwatchlogs/event_streams.rb +39 -0
- data/lib/aws-sdk-cloudwatchlogs/plugins/endpoints.rb +19 -160
- data/lib/aws-sdk-cloudwatchlogs/types.rb +6986 -752
- data/lib/aws-sdk-cloudwatchlogs.rb +16 -12
- data/sig/client.rbs +716 -26
- data/sig/errors.rbs +24 -19
- data/sig/params.rbs +173 -0
- data/sig/resource.rbs +7 -0
- data/sig/types.rbs +1302 -19
- metadata +9 -11
|
@@ -30,6 +30,8 @@ module Aws::CloudWatchLogs
|
|
|
30
30
|
# * {AccessDeniedException}
|
|
31
31
|
# * {ConflictException}
|
|
32
32
|
# * {DataAlreadyAcceptedException}
|
|
33
|
+
# * {InternalServerException}
|
|
34
|
+
# * {InternalStreamingException}
|
|
33
35
|
# * {InvalidOperationException}
|
|
34
36
|
# * {InvalidParameterException}
|
|
35
37
|
# * {InvalidSequenceTokenException}
|
|
@@ -88,6 +90,31 @@ module Aws::CloudWatchLogs
|
|
|
88
90
|
end
|
|
89
91
|
end
|
|
90
92
|
|
|
93
|
+
class InternalServerException < ServiceError
|
|
94
|
+
|
|
95
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
96
|
+
# @param [String] message
|
|
97
|
+
# @param [Aws::CloudWatchLogs::Types::InternalServerException] data
|
|
98
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
99
|
+
super(context, message, data)
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
class InternalStreamingException < ServiceError
|
|
104
|
+
|
|
105
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
106
|
+
# @param [String] message
|
|
107
|
+
# @param [Aws::CloudWatchLogs::Types::InternalStreamingException] data
|
|
108
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
109
|
+
super(context, message, data)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# @return [String]
|
|
113
|
+
def message
|
|
114
|
+
@message || @data[:message]
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
91
118
|
class InvalidOperationException < ServiceError
|
|
92
119
|
|
|
93
120
|
# @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
|
|
@@ -15,11 +15,11 @@ module Aws::CloudWatchLogs
|
|
|
15
15
|
:endpoint_provider,
|
|
16
16
|
doc_type: 'Aws::CloudWatchLogs::EndpointProvider',
|
|
17
17
|
rbs_type: 'untyped',
|
|
18
|
-
docstring:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
docstring: <<~DOCS) do |_cfg|
|
|
19
|
+
The endpoint provider used to resolve endpoints. Any object that responds to
|
|
20
|
+
`#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
|
|
21
|
+
`Aws::CloudWatchLogs::EndpointParameters`.
|
|
22
|
+
DOCS
|
|
23
23
|
Aws::CloudWatchLogs::EndpointProvider.new
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ module Aws::CloudWatchLogs
|
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
|
28
28
|
def call(context)
|
|
29
29
|
unless context[:discovered_endpoint]
|
|
30
|
-
params = parameters_for_operation(context)
|
|
30
|
+
params = Aws::CloudWatchLogs::Endpoints.parameters_for_operation(context)
|
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
|
32
32
|
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
|
@@ -40,11 +40,23 @@ module Aws::CloudWatchLogs
|
|
|
40
40
|
context[:auth_scheme] =
|
|
41
41
|
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
|
42
42
|
|
|
43
|
-
@handler.call(context)
|
|
43
|
+
with_metrics(context) { @handler.call(context) }
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
private
|
|
47
47
|
|
|
48
|
+
def with_metrics(context, &block)
|
|
49
|
+
metrics = []
|
|
50
|
+
metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
|
|
51
|
+
if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
|
|
52
|
+
metrics << 'SIGV4A_SIGNING'
|
|
53
|
+
end
|
|
54
|
+
if context.config.credentials&.credentials&.account_id
|
|
55
|
+
metrics << 'RESOLVED_ACCOUNT_ID'
|
|
56
|
+
end
|
|
57
|
+
Aws::Plugins::UserAgent.metric(*metrics, &block)
|
|
58
|
+
end
|
|
59
|
+
|
|
48
60
|
def apply_endpoint_headers(context, headers)
|
|
49
61
|
headers.each do |key, values|
|
|
50
62
|
value = values
|
|
@@ -55,159 +67,6 @@ module Aws::CloudWatchLogs
|
|
|
55
67
|
context.http_request.headers[key] = value
|
|
56
68
|
end
|
|
57
69
|
end
|
|
58
|
-
|
|
59
|
-
def parameters_for_operation(context)
|
|
60
|
-
case context.operation_name
|
|
61
|
-
when :associate_kms_key
|
|
62
|
-
Aws::CloudWatchLogs::Endpoints::AssociateKmsKey.build(context)
|
|
63
|
-
when :cancel_export_task
|
|
64
|
-
Aws::CloudWatchLogs::Endpoints::CancelExportTask.build(context)
|
|
65
|
-
when :create_delivery
|
|
66
|
-
Aws::CloudWatchLogs::Endpoints::CreateDelivery.build(context)
|
|
67
|
-
when :create_export_task
|
|
68
|
-
Aws::CloudWatchLogs::Endpoints::CreateExportTask.build(context)
|
|
69
|
-
when :create_log_anomaly_detector
|
|
70
|
-
Aws::CloudWatchLogs::Endpoints::CreateLogAnomalyDetector.build(context)
|
|
71
|
-
when :create_log_group
|
|
72
|
-
Aws::CloudWatchLogs::Endpoints::CreateLogGroup.build(context)
|
|
73
|
-
when :create_log_stream
|
|
74
|
-
Aws::CloudWatchLogs::Endpoints::CreateLogStream.build(context)
|
|
75
|
-
when :delete_account_policy
|
|
76
|
-
Aws::CloudWatchLogs::Endpoints::DeleteAccountPolicy.build(context)
|
|
77
|
-
when :delete_data_protection_policy
|
|
78
|
-
Aws::CloudWatchLogs::Endpoints::DeleteDataProtectionPolicy.build(context)
|
|
79
|
-
when :delete_delivery
|
|
80
|
-
Aws::CloudWatchLogs::Endpoints::DeleteDelivery.build(context)
|
|
81
|
-
when :delete_delivery_destination
|
|
82
|
-
Aws::CloudWatchLogs::Endpoints::DeleteDeliveryDestination.build(context)
|
|
83
|
-
when :delete_delivery_destination_policy
|
|
84
|
-
Aws::CloudWatchLogs::Endpoints::DeleteDeliveryDestinationPolicy.build(context)
|
|
85
|
-
when :delete_delivery_source
|
|
86
|
-
Aws::CloudWatchLogs::Endpoints::DeleteDeliverySource.build(context)
|
|
87
|
-
when :delete_destination
|
|
88
|
-
Aws::CloudWatchLogs::Endpoints::DeleteDestination.build(context)
|
|
89
|
-
when :delete_log_anomaly_detector
|
|
90
|
-
Aws::CloudWatchLogs::Endpoints::DeleteLogAnomalyDetector.build(context)
|
|
91
|
-
when :delete_log_group
|
|
92
|
-
Aws::CloudWatchLogs::Endpoints::DeleteLogGroup.build(context)
|
|
93
|
-
when :delete_log_stream
|
|
94
|
-
Aws::CloudWatchLogs::Endpoints::DeleteLogStream.build(context)
|
|
95
|
-
when :delete_metric_filter
|
|
96
|
-
Aws::CloudWatchLogs::Endpoints::DeleteMetricFilter.build(context)
|
|
97
|
-
when :delete_query_definition
|
|
98
|
-
Aws::CloudWatchLogs::Endpoints::DeleteQueryDefinition.build(context)
|
|
99
|
-
when :delete_resource_policy
|
|
100
|
-
Aws::CloudWatchLogs::Endpoints::DeleteResourcePolicy.build(context)
|
|
101
|
-
when :delete_retention_policy
|
|
102
|
-
Aws::CloudWatchLogs::Endpoints::DeleteRetentionPolicy.build(context)
|
|
103
|
-
when :delete_subscription_filter
|
|
104
|
-
Aws::CloudWatchLogs::Endpoints::DeleteSubscriptionFilter.build(context)
|
|
105
|
-
when :describe_account_policies
|
|
106
|
-
Aws::CloudWatchLogs::Endpoints::DescribeAccountPolicies.build(context)
|
|
107
|
-
when :describe_deliveries
|
|
108
|
-
Aws::CloudWatchLogs::Endpoints::DescribeDeliveries.build(context)
|
|
109
|
-
when :describe_delivery_destinations
|
|
110
|
-
Aws::CloudWatchLogs::Endpoints::DescribeDeliveryDestinations.build(context)
|
|
111
|
-
when :describe_delivery_sources
|
|
112
|
-
Aws::CloudWatchLogs::Endpoints::DescribeDeliverySources.build(context)
|
|
113
|
-
when :describe_destinations
|
|
114
|
-
Aws::CloudWatchLogs::Endpoints::DescribeDestinations.build(context)
|
|
115
|
-
when :describe_export_tasks
|
|
116
|
-
Aws::CloudWatchLogs::Endpoints::DescribeExportTasks.build(context)
|
|
117
|
-
when :describe_log_groups
|
|
118
|
-
Aws::CloudWatchLogs::Endpoints::DescribeLogGroups.build(context)
|
|
119
|
-
when :describe_log_streams
|
|
120
|
-
Aws::CloudWatchLogs::Endpoints::DescribeLogStreams.build(context)
|
|
121
|
-
when :describe_metric_filters
|
|
122
|
-
Aws::CloudWatchLogs::Endpoints::DescribeMetricFilters.build(context)
|
|
123
|
-
when :describe_queries
|
|
124
|
-
Aws::CloudWatchLogs::Endpoints::DescribeQueries.build(context)
|
|
125
|
-
when :describe_query_definitions
|
|
126
|
-
Aws::CloudWatchLogs::Endpoints::DescribeQueryDefinitions.build(context)
|
|
127
|
-
when :describe_resource_policies
|
|
128
|
-
Aws::CloudWatchLogs::Endpoints::DescribeResourcePolicies.build(context)
|
|
129
|
-
when :describe_subscription_filters
|
|
130
|
-
Aws::CloudWatchLogs::Endpoints::DescribeSubscriptionFilters.build(context)
|
|
131
|
-
when :disassociate_kms_key
|
|
132
|
-
Aws::CloudWatchLogs::Endpoints::DisassociateKmsKey.build(context)
|
|
133
|
-
when :filter_log_events
|
|
134
|
-
Aws::CloudWatchLogs::Endpoints::FilterLogEvents.build(context)
|
|
135
|
-
when :get_data_protection_policy
|
|
136
|
-
Aws::CloudWatchLogs::Endpoints::GetDataProtectionPolicy.build(context)
|
|
137
|
-
when :get_delivery
|
|
138
|
-
Aws::CloudWatchLogs::Endpoints::GetDelivery.build(context)
|
|
139
|
-
when :get_delivery_destination
|
|
140
|
-
Aws::CloudWatchLogs::Endpoints::GetDeliveryDestination.build(context)
|
|
141
|
-
when :get_delivery_destination_policy
|
|
142
|
-
Aws::CloudWatchLogs::Endpoints::GetDeliveryDestinationPolicy.build(context)
|
|
143
|
-
when :get_delivery_source
|
|
144
|
-
Aws::CloudWatchLogs::Endpoints::GetDeliverySource.build(context)
|
|
145
|
-
when :get_log_anomaly_detector
|
|
146
|
-
Aws::CloudWatchLogs::Endpoints::GetLogAnomalyDetector.build(context)
|
|
147
|
-
when :get_log_events
|
|
148
|
-
Aws::CloudWatchLogs::Endpoints::GetLogEvents.build(context)
|
|
149
|
-
when :get_log_group_fields
|
|
150
|
-
Aws::CloudWatchLogs::Endpoints::GetLogGroupFields.build(context)
|
|
151
|
-
when :get_log_record
|
|
152
|
-
Aws::CloudWatchLogs::Endpoints::GetLogRecord.build(context)
|
|
153
|
-
when :get_query_results
|
|
154
|
-
Aws::CloudWatchLogs::Endpoints::GetQueryResults.build(context)
|
|
155
|
-
when :list_anomalies
|
|
156
|
-
Aws::CloudWatchLogs::Endpoints::ListAnomalies.build(context)
|
|
157
|
-
when :list_log_anomaly_detectors
|
|
158
|
-
Aws::CloudWatchLogs::Endpoints::ListLogAnomalyDetectors.build(context)
|
|
159
|
-
when :list_tags_for_resource
|
|
160
|
-
Aws::CloudWatchLogs::Endpoints::ListTagsForResource.build(context)
|
|
161
|
-
when :list_tags_log_group
|
|
162
|
-
Aws::CloudWatchLogs::Endpoints::ListTagsLogGroup.build(context)
|
|
163
|
-
when :put_account_policy
|
|
164
|
-
Aws::CloudWatchLogs::Endpoints::PutAccountPolicy.build(context)
|
|
165
|
-
when :put_data_protection_policy
|
|
166
|
-
Aws::CloudWatchLogs::Endpoints::PutDataProtectionPolicy.build(context)
|
|
167
|
-
when :put_delivery_destination
|
|
168
|
-
Aws::CloudWatchLogs::Endpoints::PutDeliveryDestination.build(context)
|
|
169
|
-
when :put_delivery_destination_policy
|
|
170
|
-
Aws::CloudWatchLogs::Endpoints::PutDeliveryDestinationPolicy.build(context)
|
|
171
|
-
when :put_delivery_source
|
|
172
|
-
Aws::CloudWatchLogs::Endpoints::PutDeliverySource.build(context)
|
|
173
|
-
when :put_destination
|
|
174
|
-
Aws::CloudWatchLogs::Endpoints::PutDestination.build(context)
|
|
175
|
-
when :put_destination_policy
|
|
176
|
-
Aws::CloudWatchLogs::Endpoints::PutDestinationPolicy.build(context)
|
|
177
|
-
when :put_log_events
|
|
178
|
-
Aws::CloudWatchLogs::Endpoints::PutLogEvents.build(context)
|
|
179
|
-
when :put_metric_filter
|
|
180
|
-
Aws::CloudWatchLogs::Endpoints::PutMetricFilter.build(context)
|
|
181
|
-
when :put_query_definition
|
|
182
|
-
Aws::CloudWatchLogs::Endpoints::PutQueryDefinition.build(context)
|
|
183
|
-
when :put_resource_policy
|
|
184
|
-
Aws::CloudWatchLogs::Endpoints::PutResourcePolicy.build(context)
|
|
185
|
-
when :put_retention_policy
|
|
186
|
-
Aws::CloudWatchLogs::Endpoints::PutRetentionPolicy.build(context)
|
|
187
|
-
when :put_subscription_filter
|
|
188
|
-
Aws::CloudWatchLogs::Endpoints::PutSubscriptionFilter.build(context)
|
|
189
|
-
when :start_live_tail
|
|
190
|
-
Aws::CloudWatchLogs::Endpoints::StartLiveTail.build(context)
|
|
191
|
-
when :start_query
|
|
192
|
-
Aws::CloudWatchLogs::Endpoints::StartQuery.build(context)
|
|
193
|
-
when :stop_query
|
|
194
|
-
Aws::CloudWatchLogs::Endpoints::StopQuery.build(context)
|
|
195
|
-
when :tag_log_group
|
|
196
|
-
Aws::CloudWatchLogs::Endpoints::TagLogGroup.build(context)
|
|
197
|
-
when :tag_resource
|
|
198
|
-
Aws::CloudWatchLogs::Endpoints::TagResource.build(context)
|
|
199
|
-
when :test_metric_filter
|
|
200
|
-
Aws::CloudWatchLogs::Endpoints::TestMetricFilter.build(context)
|
|
201
|
-
when :untag_log_group
|
|
202
|
-
Aws::CloudWatchLogs::Endpoints::UntagLogGroup.build(context)
|
|
203
|
-
when :untag_resource
|
|
204
|
-
Aws::CloudWatchLogs::Endpoints::UntagResource.build(context)
|
|
205
|
-
when :update_anomaly
|
|
206
|
-
Aws::CloudWatchLogs::Endpoints::UpdateAnomaly.build(context)
|
|
207
|
-
when :update_log_anomaly_detector
|
|
208
|
-
Aws::CloudWatchLogs::Endpoints::UpdateLogAnomalyDetector.build(context)
|
|
209
|
-
end
|
|
210
|
-
end
|
|
211
70
|
end
|
|
212
71
|
|
|
213
72
|
def add_handlers(handlers, _config)
|