aws-sdk-networkflowmonitor 1.0.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.
@@ -0,0 +1,15 @@
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
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::NetworkFlowMonitor
13
+ module Waiters
14
+ end
15
+ end
@@ -0,0 +1,62 @@
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
+
11
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:networkflowmonitor)
15
+
16
+ # This module provides support for Network Flow Monitor. This module is available in the
17
+ # `aws-sdk-networkflowmonitor` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # network_flow_monitor = Aws::NetworkFlowMonitor::Client.new
26
+ # resp = network_flow_monitor.create_monitor(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from Network Flow Monitor are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::NetworkFlowMonitor::Errors::ServiceError
38
+ # # rescues all Network Flow Monitor API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::NetworkFlowMonitor
45
+ autoload :Types, 'aws-sdk-networkflowmonitor/types'
46
+ autoload :ClientApi, 'aws-sdk-networkflowmonitor/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-networkflowmonitor/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-networkflowmonitor/client'
51
+ autoload :Errors, 'aws-sdk-networkflowmonitor/errors'
52
+ autoload :Waiters, 'aws-sdk-networkflowmonitor/waiters'
53
+ autoload :Resource, 'aws-sdk-networkflowmonitor/resource'
54
+ autoload :EndpointParameters, 'aws-sdk-networkflowmonitor/endpoint_parameters'
55
+ autoload :EndpointProvider, 'aws-sdk-networkflowmonitor/endpoint_provider'
56
+ autoload :Endpoints, 'aws-sdk-networkflowmonitor/endpoints'
57
+
58
+ GEM_VERSION = '1.0.0'
59
+
60
+ end
61
+
62
+ require_relative 'aws-sdk-networkflowmonitor/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,469 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module NetworkFlowMonitor
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?client_side_monitoring: bool,
22
+ ?client_side_monitoring_client_id: String,
23
+ ?client_side_monitoring_host: String,
24
+ ?client_side_monitoring_port: Integer,
25
+ ?client_side_monitoring_publisher: untyped,
26
+ ?convert_params: bool,
27
+ ?correct_clock_skew: bool,
28
+ ?defaults_mode: String,
29
+ ?disable_host_prefix_injection: bool,
30
+ ?disable_request_compression: bool,
31
+ ?endpoint: String,
32
+ ?endpoint_cache_max_entries: Integer,
33
+ ?endpoint_cache_max_threads: Integer,
34
+ ?endpoint_cache_poll_interval: Integer,
35
+ ?endpoint_discovery: bool,
36
+ ?ignore_configured_endpoint_urls: bool,
37
+ ?log_formatter: untyped,
38
+ ?log_level: Symbol,
39
+ ?logger: untyped,
40
+ ?max_attempts: Integer,
41
+ ?profile: String,
42
+ ?request_min_compression_size_bytes: Integer,
43
+ ?retry_backoff: Proc,
44
+ ?retry_base_delay: Float,
45
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
46
+ ?retry_limit: Integer,
47
+ ?retry_max_delay: Integer,
48
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
49
+ ?sdk_ua_app_id: String,
50
+ ?secret_access_key: String,
51
+ ?session_token: String,
52
+ ?sigv4a_signing_region_set: Array[String],
53
+ ?stub_responses: untyped,
54
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
55
+ ?token_provider: untyped,
56
+ ?use_dualstack_endpoint: bool,
57
+ ?use_fips_endpoint: bool,
58
+ ?validate_params: bool,
59
+ ?endpoint_provider: untyped,
60
+ ?http_proxy: String,
61
+ ?http_open_timeout: (Float | Integer),
62
+ ?http_read_timeout: (Float | Integer),
63
+ ?http_idle_timeout: (Float | Integer),
64
+ ?http_continue_timeout: (Float | Integer),
65
+ ?ssl_timeout: (Float | Integer | nil),
66
+ ?http_wire_trace: bool,
67
+ ?ssl_verify_peer: bool,
68
+ ?ssl_ca_bundle: String,
69
+ ?ssl_ca_directory: String,
70
+ ?ssl_ca_store: String,
71
+ ?on_chunk_received: Proc,
72
+ ?on_chunk_sent: Proc,
73
+ ?raise_response_errors: bool
74
+ ) -> instance
75
+ | (?Hash[Symbol, untyped]) -> instance
76
+
77
+
78
+ interface _CreateMonitorResponseSuccess
79
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateMonitorOutput]
80
+ def monitor_arn: () -> ::String
81
+ def monitor_name: () -> ::String
82
+ def monitor_status: () -> ("PENDING" | "ACTIVE" | "INACTIVE" | "ERROR" | "DELETING")
83
+ def local_resources: () -> ::Array[Types::MonitorLocalResource]
84
+ def remote_resources: () -> ::Array[Types::MonitorRemoteResource]
85
+ def created_at: () -> ::Time
86
+ def modified_at: () -> ::Time
87
+ def tags: () -> ::Hash[::String, ::String]
88
+ end
89
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#create_monitor-instance_method
90
+ def create_monitor: (
91
+ monitor_name: ::String,
92
+ local_resources: Array[
93
+ {
94
+ type: ("AWS::EC2::VPC" | "AWS::AvailabilityZone" | "AWS::EC2::Subnet"),
95
+ identifier: ::String
96
+ },
97
+ ],
98
+ ?remote_resources: Array[
99
+ {
100
+ type: ("AWS::EC2::VPC" | "AWS::AvailabilityZone" | "AWS::EC2::Subnet" | "AWS::AWSService"),
101
+ identifier: ::String
102
+ },
103
+ ],
104
+ scope_arn: ::String,
105
+ ?client_token: ::String,
106
+ ?tags: Hash[::String, ::String]
107
+ ) -> _CreateMonitorResponseSuccess
108
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateMonitorResponseSuccess
109
+
110
+ interface _CreateScopeResponseSuccess
111
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateScopeOutput]
112
+ def scope_id: () -> ::String
113
+ def status: () -> ("SUCCEEDED" | "IN_PROGRESS" | "FAILED")
114
+ def scope_arn: () -> ::String
115
+ def tags: () -> ::Hash[::String, ::String]
116
+ end
117
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#create_scope-instance_method
118
+ def create_scope: (
119
+ targets: Array[
120
+ {
121
+ target_identifier: {
122
+ target_id: {
123
+ account_id: ::String?
124
+ },
125
+ target_type: ("ACCOUNT")
126
+ },
127
+ region: ::String
128
+ },
129
+ ],
130
+ ?client_token: ::String,
131
+ ?tags: Hash[::String, ::String]
132
+ ) -> _CreateScopeResponseSuccess
133
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateScopeResponseSuccess
134
+
135
+ interface _DeleteMonitorResponseSuccess
136
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMonitorOutput]
137
+ end
138
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#delete_monitor-instance_method
139
+ def delete_monitor: (
140
+ monitor_name: ::String
141
+ ) -> _DeleteMonitorResponseSuccess
142
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteMonitorResponseSuccess
143
+
144
+ interface _DeleteScopeResponseSuccess
145
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteScopeOutput]
146
+ end
147
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#delete_scope-instance_method
148
+ def delete_scope: (
149
+ scope_id: ::String
150
+ ) -> _DeleteScopeResponseSuccess
151
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteScopeResponseSuccess
152
+
153
+ interface _GetMonitorResponseSuccess
154
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetMonitorOutput]
155
+ def monitor_arn: () -> ::String
156
+ def monitor_name: () -> ::String
157
+ def monitor_status: () -> ("PENDING" | "ACTIVE" | "INACTIVE" | "ERROR" | "DELETING")
158
+ def local_resources: () -> ::Array[Types::MonitorLocalResource]
159
+ def remote_resources: () -> ::Array[Types::MonitorRemoteResource]
160
+ def created_at: () -> ::Time
161
+ def modified_at: () -> ::Time
162
+ def tags: () -> ::Hash[::String, ::String]
163
+ end
164
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_monitor-instance_method
165
+ def get_monitor: (
166
+ monitor_name: ::String
167
+ ) -> _GetMonitorResponseSuccess
168
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMonitorResponseSuccess
169
+
170
+ interface _GetQueryResultsMonitorTopContributorsResponseSuccess
171
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueryResultsMonitorTopContributorsOutput]
172
+ def unit: () -> ("Seconds" | "Microseconds" | "Milliseconds" | "Bytes" | "Kilobytes" | "Megabytes" | "Gigabytes" | "Terabytes" | "Bits" | "Kilobits" | "Megabits" | "Gigabits" | "Terabits" | "Percent" | "Count" | "Bytes/Second" | "Kilobytes/Second" | "Megabytes/Second" | "Gigabytes/Second" | "Terabytes/Second" | "Bits/Second" | "Kilobits/Second" | "Megabits/Second" | "Gigabits/Second" | "Terabits/Second" | "Count/Second" | "None")
173
+ def top_contributors: () -> ::Array[Types::MonitorTopContributorsRow]
174
+ def next_token: () -> ::String
175
+ end
176
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_query_results_monitor_top_contributors-instance_method
177
+ def get_query_results_monitor_top_contributors: (
178
+ monitor_name: ::String,
179
+ query_id: ::String,
180
+ ?next_token: ::String,
181
+ ?max_results: ::Integer
182
+ ) -> _GetQueryResultsMonitorTopContributorsResponseSuccess
183
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryResultsMonitorTopContributorsResponseSuccess
184
+
185
+ interface _GetQueryResultsWorkloadInsightsTopContributorsResponseSuccess
186
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueryResultsWorkloadInsightsTopContributorsOutput]
187
+ def top_contributors: () -> ::Array[Types::WorkloadInsightsTopContributorsRow]
188
+ def next_token: () -> ::String
189
+ end
190
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_query_results_workload_insights_top_contributors-instance_method
191
+ def get_query_results_workload_insights_top_contributors: (
192
+ scope_id: ::String,
193
+ query_id: ::String,
194
+ ?next_token: ::String,
195
+ ?max_results: ::Integer
196
+ ) -> _GetQueryResultsWorkloadInsightsTopContributorsResponseSuccess
197
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryResultsWorkloadInsightsTopContributorsResponseSuccess
198
+
199
+ interface _GetQueryResultsWorkloadInsightsTopContributorsDataResponseSuccess
200
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueryResultsWorkloadInsightsTopContributorsDataOutput]
201
+ def unit: () -> ("Seconds" | "Microseconds" | "Milliseconds" | "Bytes" | "Kilobytes" | "Megabytes" | "Gigabytes" | "Terabytes" | "Bits" | "Kilobits" | "Megabits" | "Gigabits" | "Terabits" | "Percent" | "Count" | "Bytes/Second" | "Kilobytes/Second" | "Megabytes/Second" | "Gigabytes/Second" | "Terabytes/Second" | "Bits/Second" | "Kilobits/Second" | "Megabits/Second" | "Gigabits/Second" | "Terabits/Second" | "Count/Second" | "None")
202
+ def datapoints: () -> ::Array[Types::WorkloadInsightsTopContributorsDataPoint]
203
+ def next_token: () -> ::String
204
+ end
205
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_query_results_workload_insights_top_contributors_data-instance_method
206
+ def get_query_results_workload_insights_top_contributors_data: (
207
+ scope_id: ::String,
208
+ query_id: ::String,
209
+ ?next_token: ::String,
210
+ ?max_results: ::Integer
211
+ ) -> _GetQueryResultsWorkloadInsightsTopContributorsDataResponseSuccess
212
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryResultsWorkloadInsightsTopContributorsDataResponseSuccess
213
+
214
+ interface _GetQueryStatusMonitorTopContributorsResponseSuccess
215
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueryStatusMonitorTopContributorsOutput]
216
+ def status: () -> ("QUEUED" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELED")
217
+ end
218
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_query_status_monitor_top_contributors-instance_method
219
+ def get_query_status_monitor_top_contributors: (
220
+ monitor_name: ::String,
221
+ query_id: ::String
222
+ ) -> _GetQueryStatusMonitorTopContributorsResponseSuccess
223
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryStatusMonitorTopContributorsResponseSuccess
224
+
225
+ interface _GetQueryStatusWorkloadInsightsTopContributorsResponseSuccess
226
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueryStatusWorkloadInsightsTopContributorsOutput]
227
+ def status: () -> ("QUEUED" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELED")
228
+ end
229
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_query_status_workload_insights_top_contributors-instance_method
230
+ def get_query_status_workload_insights_top_contributors: (
231
+ scope_id: ::String,
232
+ query_id: ::String
233
+ ) -> _GetQueryStatusWorkloadInsightsTopContributorsResponseSuccess
234
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryStatusWorkloadInsightsTopContributorsResponseSuccess
235
+
236
+ interface _GetQueryStatusWorkloadInsightsTopContributorsDataResponseSuccess
237
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetQueryStatusWorkloadInsightsTopContributorsDataOutput]
238
+ def status: () -> ("QUEUED" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELED")
239
+ end
240
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_query_status_workload_insights_top_contributors_data-instance_method
241
+ def get_query_status_workload_insights_top_contributors_data: (
242
+ scope_id: ::String,
243
+ query_id: ::String
244
+ ) -> _GetQueryStatusWorkloadInsightsTopContributorsDataResponseSuccess
245
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetQueryStatusWorkloadInsightsTopContributorsDataResponseSuccess
246
+
247
+ interface _GetScopeResponseSuccess
248
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetScopeOutput]
249
+ def scope_id: () -> ::String
250
+ def status: () -> ("SUCCEEDED" | "IN_PROGRESS" | "FAILED")
251
+ def scope_arn: () -> ::String
252
+ def targets: () -> ::Array[Types::TargetResource]
253
+ def tags: () -> ::Hash[::String, ::String]
254
+ end
255
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#get_scope-instance_method
256
+ def get_scope: (
257
+ scope_id: ::String
258
+ ) -> _GetScopeResponseSuccess
259
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetScopeResponseSuccess
260
+
261
+ interface _ListMonitorsResponseSuccess
262
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListMonitorsOutput]
263
+ def monitors: () -> ::Array[Types::MonitorSummary]
264
+ def next_token: () -> ::String
265
+ end
266
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#list_monitors-instance_method
267
+ def list_monitors: (
268
+ ?next_token: ::String,
269
+ ?max_results: ::Integer,
270
+ ?monitor_status: ("PENDING" | "ACTIVE" | "INACTIVE" | "ERROR" | "DELETING")
271
+ ) -> _ListMonitorsResponseSuccess
272
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMonitorsResponseSuccess
273
+
274
+ interface _ListScopesResponseSuccess
275
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListScopesOutput]
276
+ def scopes: () -> ::Array[Types::ScopeSummary]
277
+ def next_token: () -> ::String
278
+ end
279
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#list_scopes-instance_method
280
+ def list_scopes: (
281
+ ?next_token: ::String,
282
+ ?max_results: ::Integer
283
+ ) -> _ListScopesResponseSuccess
284
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListScopesResponseSuccess
285
+
286
+ interface _ListTagsForResourceResponseSuccess
287
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceOutput]
288
+ def tags: () -> ::Hash[::String, ::String]
289
+ end
290
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#list_tags_for_resource-instance_method
291
+ def list_tags_for_resource: (
292
+ resource_arn: ::String
293
+ ) -> _ListTagsForResourceResponseSuccess
294
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListTagsForResourceResponseSuccess
295
+
296
+ interface _StartQueryMonitorTopContributorsResponseSuccess
297
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartQueryMonitorTopContributorsOutput]
298
+ def query_id: () -> ::String
299
+ end
300
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#start_query_monitor_top_contributors-instance_method
301
+ def start_query_monitor_top_contributors: (
302
+ monitor_name: ::String,
303
+ start_time: ::Time,
304
+ end_time: ::Time,
305
+ metric_name: ("ROUND_TRIP_TIME" | "TIMEOUTS" | "RETRANSMISSIONS" | "DATA_TRANSFERRED"),
306
+ destination_category: ("INTRA_AZ" | "INTER_AZ" | "INTER_VPC" | "UNCLASSIFIED" | "AMAZON_S3" | "AMAZON_DYNAMODB"),
307
+ ?limit: ::Integer
308
+ ) -> _StartQueryMonitorTopContributorsResponseSuccess
309
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartQueryMonitorTopContributorsResponseSuccess
310
+
311
+ interface _StartQueryWorkloadInsightsTopContributorsResponseSuccess
312
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartQueryWorkloadInsightsTopContributorsOutput]
313
+ def query_id: () -> ::String
314
+ end
315
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#start_query_workload_insights_top_contributors-instance_method
316
+ def start_query_workload_insights_top_contributors: (
317
+ scope_id: ::String,
318
+ start_time: ::Time,
319
+ end_time: ::Time,
320
+ metric_name: ("TIMEOUTS" | "RETRANSMISSIONS" | "DATA_TRANSFERRED"),
321
+ destination_category: ("INTRA_AZ" | "INTER_AZ" | "INTER_VPC" | "UNCLASSIFIED" | "AMAZON_S3" | "AMAZON_DYNAMODB"),
322
+ ?limit: ::Integer
323
+ ) -> _StartQueryWorkloadInsightsTopContributorsResponseSuccess
324
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartQueryWorkloadInsightsTopContributorsResponseSuccess
325
+
326
+ interface _StartQueryWorkloadInsightsTopContributorsDataResponseSuccess
327
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartQueryWorkloadInsightsTopContributorsDataOutput]
328
+ def query_id: () -> ::String
329
+ end
330
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#start_query_workload_insights_top_contributors_data-instance_method
331
+ def start_query_workload_insights_top_contributors_data: (
332
+ scope_id: ::String,
333
+ start_time: ::Time,
334
+ end_time: ::Time,
335
+ metric_name: ("TIMEOUTS" | "RETRANSMISSIONS" | "DATA_TRANSFERRED"),
336
+ destination_category: ("INTRA_AZ" | "INTER_AZ" | "INTER_VPC" | "UNCLASSIFIED" | "AMAZON_S3" | "AMAZON_DYNAMODB")
337
+ ) -> _StartQueryWorkloadInsightsTopContributorsDataResponseSuccess
338
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartQueryWorkloadInsightsTopContributorsDataResponseSuccess
339
+
340
+ interface _StopQueryMonitorTopContributorsResponseSuccess
341
+ include ::Seahorse::Client::_ResponseSuccess[Types::StopQueryMonitorTopContributorsOutput]
342
+ end
343
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#stop_query_monitor_top_contributors-instance_method
344
+ def stop_query_monitor_top_contributors: (
345
+ monitor_name: ::String,
346
+ query_id: ::String
347
+ ) -> _StopQueryMonitorTopContributorsResponseSuccess
348
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopQueryMonitorTopContributorsResponseSuccess
349
+
350
+ interface _StopQueryWorkloadInsightsTopContributorsResponseSuccess
351
+ include ::Seahorse::Client::_ResponseSuccess[Types::StopQueryWorkloadInsightsTopContributorsOutput]
352
+ end
353
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#stop_query_workload_insights_top_contributors-instance_method
354
+ def stop_query_workload_insights_top_contributors: (
355
+ scope_id: ::String,
356
+ query_id: ::String
357
+ ) -> _StopQueryWorkloadInsightsTopContributorsResponseSuccess
358
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopQueryWorkloadInsightsTopContributorsResponseSuccess
359
+
360
+ interface _StopQueryWorkloadInsightsTopContributorsDataResponseSuccess
361
+ include ::Seahorse::Client::_ResponseSuccess[Types::StopQueryWorkloadInsightsTopContributorsDataOutput]
362
+ end
363
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#stop_query_workload_insights_top_contributors_data-instance_method
364
+ def stop_query_workload_insights_top_contributors_data: (
365
+ scope_id: ::String,
366
+ query_id: ::String
367
+ ) -> _StopQueryWorkloadInsightsTopContributorsDataResponseSuccess
368
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopQueryWorkloadInsightsTopContributorsDataResponseSuccess
369
+
370
+ interface _TagResourceResponseSuccess
371
+ include ::Seahorse::Client::_ResponseSuccess[Types::TagResourceOutput]
372
+ end
373
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#tag_resource-instance_method
374
+ def tag_resource: (
375
+ resource_arn: ::String,
376
+ tags: Hash[::String, ::String]
377
+ ) -> _TagResourceResponseSuccess
378
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TagResourceResponseSuccess
379
+
380
+ interface _UntagResourceResponseSuccess
381
+ include ::Seahorse::Client::_ResponseSuccess[Types::UntagResourceOutput]
382
+ end
383
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#untag_resource-instance_method
384
+ def untag_resource: (
385
+ resource_arn: ::String,
386
+ tag_keys: Array[::String]
387
+ ) -> _UntagResourceResponseSuccess
388
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UntagResourceResponseSuccess
389
+
390
+ interface _UpdateMonitorResponseSuccess
391
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateMonitorOutput]
392
+ def monitor_arn: () -> ::String
393
+ def monitor_name: () -> ::String
394
+ def monitor_status: () -> ("PENDING" | "ACTIVE" | "INACTIVE" | "ERROR" | "DELETING")
395
+ def local_resources: () -> ::Array[Types::MonitorLocalResource]
396
+ def remote_resources: () -> ::Array[Types::MonitorRemoteResource]
397
+ def created_at: () -> ::Time
398
+ def modified_at: () -> ::Time
399
+ def tags: () -> ::Hash[::String, ::String]
400
+ end
401
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#update_monitor-instance_method
402
+ def update_monitor: (
403
+ monitor_name: ::String,
404
+ ?local_resources_to_add: Array[
405
+ {
406
+ type: ("AWS::EC2::VPC" | "AWS::AvailabilityZone" | "AWS::EC2::Subnet"),
407
+ identifier: ::String
408
+ },
409
+ ],
410
+ ?local_resources_to_remove: Array[
411
+ {
412
+ type: ("AWS::EC2::VPC" | "AWS::AvailabilityZone" | "AWS::EC2::Subnet"),
413
+ identifier: ::String
414
+ },
415
+ ],
416
+ ?remote_resources_to_add: Array[
417
+ {
418
+ type: ("AWS::EC2::VPC" | "AWS::AvailabilityZone" | "AWS::EC2::Subnet" | "AWS::AWSService"),
419
+ identifier: ::String
420
+ },
421
+ ],
422
+ ?remote_resources_to_remove: Array[
423
+ {
424
+ type: ("AWS::EC2::VPC" | "AWS::AvailabilityZone" | "AWS::EC2::Subnet" | "AWS::AWSService"),
425
+ identifier: ::String
426
+ },
427
+ ],
428
+ ?client_token: ::String
429
+ ) -> _UpdateMonitorResponseSuccess
430
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateMonitorResponseSuccess
431
+
432
+ interface _UpdateScopeResponseSuccess
433
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateScopeOutput]
434
+ def scope_id: () -> ::String
435
+ def status: () -> ("SUCCEEDED" | "IN_PROGRESS" | "FAILED")
436
+ def scope_arn: () -> ::String
437
+ def tags: () -> ::Hash[::String, ::String]
438
+ end
439
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/NetworkFlowMonitor/Client.html#update_scope-instance_method
440
+ def update_scope: (
441
+ scope_id: ::String,
442
+ ?resources_to_add: Array[
443
+ {
444
+ target_identifier: {
445
+ target_id: {
446
+ account_id: ::String?
447
+ },
448
+ target_type: ("ACCOUNT")
449
+ },
450
+ region: ::String
451
+ },
452
+ ],
453
+ ?resources_to_delete: Array[
454
+ {
455
+ target_identifier: {
456
+ target_id: {
457
+ account_id: ::String?
458
+ },
459
+ target_type: ("ACCOUNT")
460
+ },
461
+ region: ::String
462
+ },
463
+ ]
464
+ ) -> _UpdateScopeResponseSuccess
465
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateScopeResponseSuccess
466
+ end
467
+ end
468
+ end
469
+
data/sig/errors.rbs ADDED
@@ -0,0 +1,37 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module NetworkFlowMonitor
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class AccessDeniedException < ::Aws::Errors::ServiceError
15
+ def message: () -> ::String
16
+ end
17
+ class ConflictException < ::Aws::Errors::ServiceError
18
+ def message: () -> ::String
19
+ end
20
+ class InternalServerException < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class ThrottlingException < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
32
+ class ValidationException < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
35
+ end
36
+ end
37
+ end