aws-sdk-devopsguru 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 389e644f2322cc011d485151fad7ba734897d1f476ac698c2254f5ccc920a3f6
4
+ data.tar.gz: da086971b763995672f932045e8d7e7b4495300d8d16289d8e3b91e436d64d61
5
+ SHA512:
6
+ metadata.gz: 9b51737b39559b33a687e8062d021b4940c22319ab1fc2bddb71949c6ec307bfb1157adf45233bb13d24597efe78771ff595aa93b37ce0ed503652a8dda0e86f
7
+ data.tar.gz: afd0cb901a8ae13b85075b783582074390c250bdb2ef34a4427997671a2e91eed7b6052f8dc0c29ac5a76e4e5d20324d8814bfec1cc6c5ea48adbd2462135c39
@@ -0,0 +1,53 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ require_relative 'aws-sdk-devopsguru/types'
15
+ require_relative 'aws-sdk-devopsguru/client_api'
16
+ require_relative 'aws-sdk-devopsguru/client'
17
+ require_relative 'aws-sdk-devopsguru/errors'
18
+ require_relative 'aws-sdk-devopsguru/resource'
19
+ require_relative 'aws-sdk-devopsguru/customizations'
20
+
21
+ # This module provides support for Amazon DevOps Guru. This module is available in the
22
+ # `aws-sdk-devopsguru` gem.
23
+ #
24
+ # # Client
25
+ #
26
+ # The {Client} class provides one method for each API operation. Operation
27
+ # methods each accept a hash of request parameters and return a response
28
+ # structure.
29
+ #
30
+ # dev_ops_guru = Aws::DevOpsGuru::Client.new
31
+ # resp = dev_ops_guru.add_notification_channel(params)
32
+ #
33
+ # See {Client} for more information.
34
+ #
35
+ # # Errors
36
+ #
37
+ # Errors returned from Amazon DevOps Guru are defined in the
38
+ # {Errors} module and all extend {Errors::ServiceError}.
39
+ #
40
+ # begin
41
+ # # do stuff
42
+ # rescue Aws::DevOpsGuru::Errors::ServiceError
43
+ # # rescues all Amazon DevOps Guru API errors
44
+ # end
45
+ #
46
+ # See {Errors} for more information.
47
+ #
48
+ # @!group service
49
+ module Aws::DevOpsGuru
50
+
51
+ GEM_VERSION = '1.0.0'
52
+
53
+ end
@@ -0,0 +1,1098 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ require 'seahorse/client/plugins/content_length.rb'
11
+ require 'aws-sdk-core/plugins/credentials_configuration.rb'
12
+ require 'aws-sdk-core/plugins/logging.rb'
13
+ require 'aws-sdk-core/plugins/param_converter.rb'
14
+ require 'aws-sdk-core/plugins/param_validator.rb'
15
+ require 'aws-sdk-core/plugins/user_agent.rb'
16
+ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
17
+ require 'aws-sdk-core/plugins/retry_errors.rb'
18
+ require 'aws-sdk-core/plugins/global_configuration.rb'
19
+ require 'aws-sdk-core/plugins/regional_endpoint.rb'
20
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
21
+ require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
+ require 'aws-sdk-core/plugins/response_paging.rb'
23
+ require 'aws-sdk-core/plugins/stub_responses.rb'
24
+ require 'aws-sdk-core/plugins/idempotency_token.rb'
25
+ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
26
+ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
+ require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/signature_v4.rb'
31
+ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
+
33
+ Aws::Plugins::GlobalConfiguration.add_identifier(:devopsguru)
34
+
35
+ module Aws::DevOpsGuru
36
+ # An API client for DevOpsGuru. To construct a client, you need to configure a `:region` and `:credentials`.
37
+ #
38
+ # client = Aws::DevOpsGuru::Client.new(
39
+ # region: region_name,
40
+ # credentials: credentials,
41
+ # # ...
42
+ # )
43
+ #
44
+ # For details on configuring region and credentials see
45
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
46
+ #
47
+ # See {#initialize} for a full list of supported configuration options.
48
+ class Client < Seahorse::Client::Base
49
+
50
+ include Aws::ClientStubs
51
+
52
+ @identifier = :devopsguru
53
+
54
+ set_api(ClientApi::API)
55
+
56
+ add_plugin(Seahorse::Client::Plugins::ContentLength)
57
+ add_plugin(Aws::Plugins::CredentialsConfiguration)
58
+ add_plugin(Aws::Plugins::Logging)
59
+ add_plugin(Aws::Plugins::ParamConverter)
60
+ add_plugin(Aws::Plugins::ParamValidator)
61
+ add_plugin(Aws::Plugins::UserAgent)
62
+ add_plugin(Aws::Plugins::HelpfulSocketErrors)
63
+ add_plugin(Aws::Plugins::RetryErrors)
64
+ add_plugin(Aws::Plugins::GlobalConfiguration)
65
+ add_plugin(Aws::Plugins::RegionalEndpoint)
66
+ add_plugin(Aws::Plugins::EndpointDiscovery)
67
+ add_plugin(Aws::Plugins::EndpointPattern)
68
+ add_plugin(Aws::Plugins::ResponsePaging)
69
+ add_plugin(Aws::Plugins::StubResponses)
70
+ add_plugin(Aws::Plugins::IdempotencyToken)
71
+ add_plugin(Aws::Plugins::JsonvalueConverter)
72
+ add_plugin(Aws::Plugins::ClientMetricsPlugin)
73
+ add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
+ add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
76
+ add_plugin(Aws::Plugins::SignatureV4)
77
+ add_plugin(Aws::Plugins::Protocols::RestJson)
78
+
79
+ # @overload initialize(options)
80
+ # @param [Hash] options
81
+ # @option options [required, Aws::CredentialProvider] :credentials
82
+ # Your AWS credentials. This can be an instance of any one of the
83
+ # following classes:
84
+ #
85
+ # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
+ # credentials.
87
+ #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
102
+ # * `Aws::InstanceProfileCredentials` - Used for loading credentials
103
+ # from an EC2 IMDS on an EC2 instance.
104
+ #
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
107
+ #
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
110
+ #
111
+ # When `:credentials` are not configured directly, the following
112
+ # locations will be searched for credentials:
113
+ #
114
+ # * `Aws.config[:credentials]`
115
+ # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
116
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
117
+ # * `~/.aws/credentials`
118
+ # * `~/.aws/config`
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
123
+ #
124
+ # @option options [required, String] :region
125
+ # The AWS region to connect to. The configured `:region` is
126
+ # used to determine the service `:endpoint`. When not passed,
127
+ # a default `:region` is searched for in the following locations:
128
+ #
129
+ # * `Aws.config[:region]`
130
+ # * `ENV['AWS_REGION']`
131
+ # * `ENV['AMAZON_REGION']`
132
+ # * `ENV['AWS_DEFAULT_REGION']`
133
+ # * `~/.aws/credentials`
134
+ # * `~/.aws/config`
135
+ #
136
+ # @option options [String] :access_key_id
137
+ #
138
+ # @option options [Boolean] :active_endpoint_cache (false)
139
+ # When set to `true`, a thread polling for endpoints will be running in
140
+ # the background every 60 secs (default). Defaults to `false`.
141
+ #
142
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
143
+ # Used only in `adaptive` retry mode. When true, the request will sleep
144
+ # until there is sufficent client side capacity to retry the request.
145
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
146
+ # not retry instead of sleeping.
147
+ #
148
+ # @option options [Boolean] :client_side_monitoring (false)
149
+ # When `true`, client-side metrics will be collected for all API requests from
150
+ # this client.
151
+ #
152
+ # @option options [String] :client_side_monitoring_client_id ("")
153
+ # Allows you to provide an identifier for this client which will be attached to
154
+ # all generated client side metrics. Defaults to an empty string.
155
+ #
156
+ # @option options [String] :client_side_monitoring_host ("127.0.0.1")
157
+ # Allows you to specify the DNS hostname or IPv4 or IPv6 address that the client
158
+ # side monitoring agent is running on, where client metrics will be published via UDP.
159
+ #
160
+ # @option options [Integer] :client_side_monitoring_port (31000)
161
+ # Required for publishing client metrics. The port that the client side monitoring
162
+ # agent is running on, where client metrics will be published via UDP.
163
+ #
164
+ # @option options [Aws::ClientSideMonitoring::Publisher] :client_side_monitoring_publisher (Aws::ClientSideMonitoring::Publisher)
165
+ # Allows you to provide a custom client-side monitoring publisher class. By default,
166
+ # will use the Client Side Monitoring Agent Publisher.
167
+ #
168
+ # @option options [Boolean] :convert_params (true)
169
+ # When `true`, an attempt is made to coerce request parameters into
170
+ # the required types.
171
+ #
172
+ # @option options [Boolean] :correct_clock_skew (true)
173
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
174
+ # a clock skew correction and retry requests with skewed client clocks.
175
+ #
176
+ # @option options [Boolean] :disable_host_prefix_injection (false)
177
+ # Set to true to disable SDK automatically adding host prefix
178
+ # to default service endpoint when available.
179
+ #
180
+ # @option options [String] :endpoint
181
+ # The client endpoint is normally constructed from the `:region`
182
+ # option. You should only configure an `:endpoint` when connecting
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
184
+ #
185
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
186
+ # Used for the maximum size limit of the LRU cache storing endpoints data
187
+ # for endpoint discovery enabled operations. Defaults to 1000.
188
+ #
189
+ # @option options [Integer] :endpoint_cache_max_threads (10)
190
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
191
+ #
192
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
193
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
194
+ # Use this option to config the time interval in seconds for making
195
+ # requests fetching endpoints information. Defaults to 60 sec.
196
+ #
197
+ # @option options [Boolean] :endpoint_discovery (false)
198
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
199
+ #
200
+ # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
201
+ # The log formatter.
202
+ #
203
+ # @option options [Symbol] :log_level (:info)
204
+ # The log level to send messages to the `:logger` at.
205
+ #
206
+ # @option options [Logger] :logger
207
+ # The Logger instance to send log messages to. If this option
208
+ # is not set, logging will be disabled.
209
+ #
210
+ # @option options [Integer] :max_attempts (3)
211
+ # An integer representing the maximum number attempts that will be made for
212
+ # a single request, including the initial attempt. For example,
213
+ # setting this value to 5 will result in a request being retried up to
214
+ # 4 times. Used in `standard` and `adaptive` retry modes.
215
+ #
216
+ # @option options [String] :profile ("default")
217
+ # Used when loading credentials from the shared credentials file
218
+ # at HOME/.aws/credentials. When not specified, 'default' is used.
219
+ #
220
+ # @option options [Proc] :retry_backoff
221
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
222
+ # This option is only used in the `legacy` retry mode.
223
+ #
224
+ # @option options [Float] :retry_base_delay (0.3)
225
+ # The base delay in seconds used by the default backoff function. This option
226
+ # is only used in the `legacy` retry mode.
227
+ #
228
+ # @option options [Symbol] :retry_jitter (:none)
229
+ # A delay randomiser function used by the default backoff function.
230
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
231
+ # otherwise a Proc that takes and returns a number. This option is only used
232
+ # in the `legacy` retry mode.
233
+ #
234
+ # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
235
+ #
236
+ # @option options [Integer] :retry_limit (3)
237
+ # The maximum number of times to retry failed requests. Only
238
+ # ~ 500 level server errors and certain ~ 400 level client errors
239
+ # are retried. Generally, these are throttling errors, data
240
+ # checksum errors, networking errors, timeout errors, auth errors,
241
+ # endpoint discovery, and errors from expired credentials.
242
+ # This option is only used in the `legacy` retry mode.
243
+ #
244
+ # @option options [Integer] :retry_max_delay (0)
245
+ # The maximum number of seconds to delay between retries (0 for no limit)
246
+ # used by the default backoff function. This option is only used in the
247
+ # `legacy` retry mode.
248
+ #
249
+ # @option options [String] :retry_mode ("legacy")
250
+ # Specifies which retry algorithm to use. Values are:
251
+ #
252
+ # * `legacy` - The pre-existing retry behavior. This is default value if
253
+ # no retry mode is provided.
254
+ #
255
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
256
+ # This includes support for retry quotas, which limit the number of
257
+ # unsuccessful retries a client can make.
258
+ #
259
+ # * `adaptive` - An experimental retry mode that includes all the
260
+ # functionality of `standard` mode along with automatic client side
261
+ # throttling. This is a provisional mode that may change behavior
262
+ # in the future.
263
+ #
264
+ #
265
+ # @option options [String] :secret_access_key
266
+ #
267
+ # @option options [String] :session_token
268
+ #
269
+ # @option options [Boolean] :stub_responses (false)
270
+ # Causes the client to return stubbed responses. By default
271
+ # fake responses are generated and returned. You can specify
272
+ # the response data to return or errors to raise by calling
273
+ # {ClientStubs#stub_responses}. See {ClientStubs} for more information.
274
+ #
275
+ # ** Please note ** When response stubbing is enabled, no HTTP
276
+ # requests are made, and retries are disabled.
277
+ #
278
+ # @option options [Boolean] :validate_params (true)
279
+ # When `true`, request parameters are validated before
280
+ # sending the request.
281
+ #
282
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
283
+ # requests through. Formatted like 'http://proxy.com:123'.
284
+ #
285
+ # @option options [Float] :http_open_timeout (15) The number of
286
+ # seconds to wait when opening a HTTP session before raising a
287
+ # `Timeout::Error`.
288
+ #
289
+ # @option options [Integer] :http_read_timeout (60) The default
290
+ # number of seconds to wait for response data. This value can
291
+ # safely be set per-request on the session.
292
+ #
293
+ # @option options [Float] :http_idle_timeout (5) The number of
294
+ # seconds a connection is allowed to sit idle before it is
295
+ # considered stale. Stale connections are closed and removed
296
+ # from the pool before making a request.
297
+ #
298
+ # @option options [Float] :http_continue_timeout (1) The number of
299
+ # seconds to wait for a 100-continue response before sending the
300
+ # request body. This option has no effect unless the request has
301
+ # "Expect" header set to "100-continue". Defaults to `nil` which
302
+ # disables this behaviour. This value can safely be set per
303
+ # request on the session.
304
+ #
305
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
306
+ # HTTP debug output will be sent to the `:logger`.
307
+ #
308
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
309
+ # SSL peer certificates are verified when establishing a
310
+ # connection.
311
+ #
312
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
313
+ # certificate authority bundle file that should be used when
314
+ # verifying peer certificates. If you do not pass
315
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
316
+ # will be used if available.
317
+ #
318
+ # @option options [String] :ssl_ca_directory Full path of the
319
+ # directory that contains the unbundled SSL certificate
320
+ # authority files for verifying peer certificates. If you do
321
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
322
+ # system default will be used if available.
323
+ #
324
+ def initialize(*args)
325
+ super
326
+ end
327
+
328
+ # @!group API Operations
329
+
330
+ # @option params [required, Types::NotificationChannelConfig] :config
331
+ #
332
+ # @return [Types::AddNotificationChannelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
333
+ #
334
+ # * {Types::AddNotificationChannelResponse#id #id} => String
335
+ #
336
+ # @example Request syntax with placeholder values
337
+ #
338
+ # resp = client.add_notification_channel({
339
+ # config: { # required
340
+ # sns: { # required
341
+ # topic_arn: "__stringMin36Max1024PatternArnAwsAZ09SnsAZ09D12",
342
+ # },
343
+ # },
344
+ # })
345
+ #
346
+ # @example Response structure
347
+ #
348
+ # resp.id #=> String
349
+ #
350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/AddNotificationChannel AWS API Documentation
351
+ #
352
+ # @overload add_notification_channel(params = {})
353
+ # @param [Hash] params ({})
354
+ def add_notification_channel(params = {}, options = {})
355
+ req = build_request(:add_notification_channel, params)
356
+ req.send_request(options)
357
+ end
358
+
359
+ # @return [Types::DescribeAccountHealthResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
360
+ #
361
+ # * {Types::DescribeAccountHealthResponse#metrics_analyzed #metrics_analyzed} => Integer
362
+ # * {Types::DescribeAccountHealthResponse#open_proactive_insights #open_proactive_insights} => Integer
363
+ # * {Types::DescribeAccountHealthResponse#open_reactive_insights #open_reactive_insights} => Integer
364
+ #
365
+ # @example Response structure
366
+ #
367
+ # resp.metrics_analyzed #=> Integer
368
+ # resp.open_proactive_insights #=> Integer
369
+ # resp.open_reactive_insights #=> Integer
370
+ #
371
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/DescribeAccountHealth AWS API Documentation
372
+ #
373
+ # @overload describe_account_health(params = {})
374
+ # @param [Hash] params ({})
375
+ def describe_account_health(params = {}, options = {})
376
+ req = build_request(:describe_account_health, params)
377
+ req.send_request(options)
378
+ end
379
+
380
+ # @option params [required, Time,DateTime,Date,Integer,String] :from_time
381
+ #
382
+ # @option params [Time,DateTime,Date,Integer,String] :to_time
383
+ #
384
+ # @return [Types::DescribeAccountOverviewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
385
+ #
386
+ # * {Types::DescribeAccountOverviewResponse#mean_time_to_recover_in_milliseconds #mean_time_to_recover_in_milliseconds} => Integer
387
+ # * {Types::DescribeAccountOverviewResponse#proactive_insights #proactive_insights} => Integer
388
+ # * {Types::DescribeAccountOverviewResponse#reactive_insights #reactive_insights} => Integer
389
+ #
390
+ # @example Request syntax with placeholder values
391
+ #
392
+ # resp = client.describe_account_overview({
393
+ # from_time: Time.now, # required
394
+ # to_time: Time.now,
395
+ # })
396
+ #
397
+ # @example Response structure
398
+ #
399
+ # resp.mean_time_to_recover_in_milliseconds #=> Integer
400
+ # resp.proactive_insights #=> Integer
401
+ # resp.reactive_insights #=> Integer
402
+ #
403
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/DescribeAccountOverview AWS API Documentation
404
+ #
405
+ # @overload describe_account_overview(params = {})
406
+ # @param [Hash] params ({})
407
+ def describe_account_overview(params = {}, options = {})
408
+ req = build_request(:describe_account_overview, params)
409
+ req.send_request(options)
410
+ end
411
+
412
+ # @option params [required, String] :id
413
+ #
414
+ # @return [Types::DescribeAnomalyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
415
+ #
416
+ # * {Types::DescribeAnomalyResponse#proactive_anomaly #proactive_anomaly} => Types::ProactiveAnomaly
417
+ # * {Types::DescribeAnomalyResponse#reactive_anomaly #reactive_anomaly} => Types::ReactiveAnomaly
418
+ #
419
+ # @example Request syntax with placeholder values
420
+ #
421
+ # resp = client.describe_anomaly({
422
+ # id: "__string", # required
423
+ # })
424
+ #
425
+ # @example Response structure
426
+ #
427
+ # resp.proactive_anomaly.anomaly_time_range.end_time #=> Time
428
+ # resp.proactive_anomaly.anomaly_time_range.start_time #=> Time
429
+ # resp.proactive_anomaly.associated_insight_id #=> String
430
+ # resp.proactive_anomaly.id #=> String
431
+ # resp.proactive_anomaly.limit #=> Float
432
+ # resp.proactive_anomaly.prediction_time_range.end_time #=> Time
433
+ # resp.proactive_anomaly.prediction_time_range.start_time #=> Time
434
+ # resp.proactive_anomaly.resource_collection.cloud_formation.stack_names #=> Array
435
+ # resp.proactive_anomaly.resource_collection.cloud_formation.stack_names[0] #=> String
436
+ # resp.proactive_anomaly.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
437
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics #=> Array
438
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].dimensions #=> Array
439
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
440
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
441
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].metric_name #=> String
442
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].namespace #=> String
443
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].period #=> Integer
444
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
445
+ # resp.proactive_anomaly.source_details.cloud_watch_metrics[0].unit #=> String
446
+ # resp.proactive_anomaly.status #=> String, one of "ONGOING", "CLOSED"
447
+ # resp.proactive_anomaly.update_time #=> Time
448
+ # resp.reactive_anomaly.anomaly_time_range.end_time #=> Time
449
+ # resp.reactive_anomaly.anomaly_time_range.start_time #=> Time
450
+ # resp.reactive_anomaly.associated_insight_id #=> String
451
+ # resp.reactive_anomaly.id #=> String
452
+ # resp.reactive_anomaly.resource_collection.cloud_formation.stack_names #=> Array
453
+ # resp.reactive_anomaly.resource_collection.cloud_formation.stack_names[0] #=> String
454
+ # resp.reactive_anomaly.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
455
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics #=> Array
456
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].dimensions #=> Array
457
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
458
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
459
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].metric_name #=> String
460
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].namespace #=> String
461
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].period #=> Integer
462
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
463
+ # resp.reactive_anomaly.source_details.cloud_watch_metrics[0].unit #=> String
464
+ # resp.reactive_anomaly.status #=> String, one of "ONGOING", "CLOSED"
465
+ #
466
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/DescribeAnomaly AWS API Documentation
467
+ #
468
+ # @overload describe_anomaly(params = {})
469
+ # @param [Hash] params ({})
470
+ def describe_anomaly(params = {}, options = {})
471
+ req = build_request(:describe_anomaly, params)
472
+ req.send_request(options)
473
+ end
474
+
475
+ # @option params [required, String] :id
476
+ #
477
+ # @return [Types::DescribeInsightResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
478
+ #
479
+ # * {Types::DescribeInsightResponse#proactive_insight #proactive_insight} => Types::ProactiveInsight
480
+ # * {Types::DescribeInsightResponse#reactive_insight #reactive_insight} => Types::ReactiveInsight
481
+ #
482
+ # @example Request syntax with placeholder values
483
+ #
484
+ # resp = client.describe_insight({
485
+ # id: "__string", # required
486
+ # })
487
+ #
488
+ # @example Response structure
489
+ #
490
+ # resp.proactive_insight.id #=> String
491
+ # resp.proactive_insight.insight_time_range.end_time #=> Time
492
+ # resp.proactive_insight.insight_time_range.start_time #=> Time
493
+ # resp.proactive_insight.name #=> String
494
+ # resp.proactive_insight.prediction_time_range.end_time #=> Time
495
+ # resp.proactive_insight.prediction_time_range.start_time #=> Time
496
+ # resp.proactive_insight.resource_collection.cloud_formation.stack_names #=> Array
497
+ # resp.proactive_insight.resource_collection.cloud_formation.stack_names[0] #=> String
498
+ # resp.proactive_insight.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
499
+ # resp.proactive_insight.ssm_ops_item_id #=> String
500
+ # resp.proactive_insight.status #=> String, one of "ONGOING", "CLOSED"
501
+ # resp.reactive_insight.id #=> String
502
+ # resp.reactive_insight.insight_time_range.end_time #=> Time
503
+ # resp.reactive_insight.insight_time_range.start_time #=> Time
504
+ # resp.reactive_insight.name #=> String
505
+ # resp.reactive_insight.resource_collection.cloud_formation.stack_names #=> Array
506
+ # resp.reactive_insight.resource_collection.cloud_formation.stack_names[0] #=> String
507
+ # resp.reactive_insight.severity #=> String, one of "LOW", "MEDIUM", "HIGH"
508
+ # resp.reactive_insight.ssm_ops_item_id #=> String
509
+ # resp.reactive_insight.status #=> String, one of "ONGOING", "CLOSED"
510
+ #
511
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/DescribeInsight AWS API Documentation
512
+ #
513
+ # @overload describe_insight(params = {})
514
+ # @param [Hash] params ({})
515
+ def describe_insight(params = {}, options = {})
516
+ req = build_request(:describe_insight, params)
517
+ req.send_request(options)
518
+ end
519
+
520
+ # @option params [String] :next_token
521
+ #
522
+ # @option params [required, String] :resource_collection_type
523
+ #
524
+ # @return [Types::DescribeResourceCollectionHealthResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
525
+ #
526
+ # * {Types::DescribeResourceCollectionHealthResponse#cloud_formation #cloud_formation} => Array&lt;Types::CloudFormationHealth&gt;
527
+ # * {Types::DescribeResourceCollectionHealthResponse#next_token #next_token} => String
528
+ #
529
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
530
+ #
531
+ # @example Request syntax with placeholder values
532
+ #
533
+ # resp = client.describe_resource_collection_health({
534
+ # next_token: "__string",
535
+ # resource_collection_type: "__string", # required
536
+ # })
537
+ #
538
+ # @example Response structure
539
+ #
540
+ # resp.cloud_formation #=> Array
541
+ # resp.cloud_formation[0].insight.mean_time_to_recover_in_milliseconds #=> Integer
542
+ # resp.cloud_formation[0].insight.open_proactive_insights #=> Integer
543
+ # resp.cloud_formation[0].insight.open_reactive_insights #=> Integer
544
+ # resp.cloud_formation[0].stack_name #=> String
545
+ # resp.next_token #=> String
546
+ #
547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/DescribeResourceCollectionHealth AWS API Documentation
548
+ #
549
+ # @overload describe_resource_collection_health(params = {})
550
+ # @param [Hash] params ({})
551
+ def describe_resource_collection_health(params = {}, options = {})
552
+ req = build_request(:describe_resource_collection_health, params)
553
+ req.send_request(options)
554
+ end
555
+
556
+ # @return [Types::DescribeServiceIntegrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
557
+ #
558
+ # * {Types::DescribeServiceIntegrationResponse#service_integration #service_integration} => Types::ServiceIntegrationConfig
559
+ #
560
+ # @example Response structure
561
+ #
562
+ # resp.service_integration.ops_center.opt_in_status #=> String, one of "ENABLED", "DISABLED"
563
+ #
564
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/DescribeServiceIntegration AWS API Documentation
565
+ #
566
+ # @overload describe_service_integration(params = {})
567
+ # @param [Hash] params ({})
568
+ def describe_service_integration(params = {}, options = {})
569
+ req = build_request(:describe_service_integration, params)
570
+ req.send_request(options)
571
+ end
572
+
573
+ # @option params [String] :next_token
574
+ #
575
+ # @option params [required, String] :resource_collection_type
576
+ #
577
+ # @return [Types::GetResourceCollectionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
578
+ #
579
+ # * {Types::GetResourceCollectionResponse#next_token #next_token} => String
580
+ # * {Types::GetResourceCollectionResponse#resource_collection #resource_collection} => Types::ResourceCollectionFilter
581
+ #
582
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
583
+ #
584
+ # @example Request syntax with placeholder values
585
+ #
586
+ # resp = client.get_resource_collection({
587
+ # next_token: "__string",
588
+ # resource_collection_type: "__string", # required
589
+ # })
590
+ #
591
+ # @example Response structure
592
+ #
593
+ # resp.next_token #=> String
594
+ # resp.resource_collection.cloud_formation.stack_names #=> Array
595
+ # resp.resource_collection.cloud_formation.stack_names[0] #=> String
596
+ #
597
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/GetResourceCollection AWS API Documentation
598
+ #
599
+ # @overload get_resource_collection(params = {})
600
+ # @param [Hash] params ({})
601
+ def get_resource_collection(params = {}, options = {})
602
+ req = build_request(:get_resource_collection, params)
603
+ req.send_request(options)
604
+ end
605
+
606
+ # @option params [required, String] :insight_id
607
+ #
608
+ # @option params [Integer] :max_results
609
+ #
610
+ # @option params [String] :next_token
611
+ #
612
+ # @option params [Types::StartTimeRange] :start_time_range
613
+ #
614
+ # @return [Types::ListAnomaliesForInsightResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
615
+ #
616
+ # * {Types::ListAnomaliesForInsightResponse#next_token #next_token} => String
617
+ # * {Types::ListAnomaliesForInsightResponse#proactive_anomalies #proactive_anomalies} => Array&lt;Types::ProactiveAnomalySummary&gt;
618
+ # * {Types::ListAnomaliesForInsightResponse#reactive_anomalies #reactive_anomalies} => Array&lt;Types::ReactiveAnomalySummary&gt;
619
+ #
620
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
621
+ #
622
+ # @example Request syntax with placeholder values
623
+ #
624
+ # resp = client.list_anomalies_for_insight({
625
+ # insight_id: "__string", # required
626
+ # max_results: 1,
627
+ # next_token: "__stringMin36Max36PatternAF098AF094AF094AF094AF0912",
628
+ # start_time_range: {
629
+ # from_time: Time.now,
630
+ # to_time: Time.now,
631
+ # },
632
+ # })
633
+ #
634
+ # @example Response structure
635
+ #
636
+ # resp.next_token #=> String
637
+ # resp.proactive_anomalies #=> Array
638
+ # resp.proactive_anomalies[0].anomaly_time_range.end_time #=> Time
639
+ # resp.proactive_anomalies[0].anomaly_time_range.start_time #=> Time
640
+ # resp.proactive_anomalies[0].associated_insight_id #=> String
641
+ # resp.proactive_anomalies[0].id #=> String
642
+ # resp.proactive_anomalies[0].limit #=> Float
643
+ # resp.proactive_anomalies[0].prediction_time_range.end_time #=> Time
644
+ # resp.proactive_anomalies[0].prediction_time_range.start_time #=> Time
645
+ # resp.proactive_anomalies[0].resource_collection.cloud_formation.stack_names #=> Array
646
+ # resp.proactive_anomalies[0].resource_collection.cloud_formation.stack_names[0] #=> String
647
+ # resp.proactive_anomalies[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
648
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics #=> Array
649
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions #=> Array
650
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
651
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
652
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_name #=> String
653
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].namespace #=> String
654
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].period #=> Integer
655
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
656
+ # resp.proactive_anomalies[0].source_details.cloud_watch_metrics[0].unit #=> String
657
+ # resp.proactive_anomalies[0].status #=> String, one of "ONGOING", "CLOSED"
658
+ # resp.proactive_anomalies[0].update_time #=> Time
659
+ # resp.reactive_anomalies #=> Array
660
+ # resp.reactive_anomalies[0].anomaly_time_range.end_time #=> Time
661
+ # resp.reactive_anomalies[0].anomaly_time_range.start_time #=> Time
662
+ # resp.reactive_anomalies[0].associated_insight_id #=> String
663
+ # resp.reactive_anomalies[0].id #=> String
664
+ # resp.reactive_anomalies[0].resource_collection.cloud_formation.stack_names #=> Array
665
+ # resp.reactive_anomalies[0].resource_collection.cloud_formation.stack_names[0] #=> String
666
+ # resp.reactive_anomalies[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
667
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics #=> Array
668
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions #=> Array
669
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].name #=> String
670
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].dimensions[0].value #=> String
671
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].metric_name #=> String
672
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].namespace #=> String
673
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].period #=> Integer
674
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].stat #=> String, one of "Sum", "Average", "SampleCount", "Minimum", "Maximum", "p99", "p90", "p50"
675
+ # resp.reactive_anomalies[0].source_details.cloud_watch_metrics[0].unit #=> String
676
+ # resp.reactive_anomalies[0].status #=> String, one of "ONGOING", "CLOSED"
677
+ #
678
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListAnomaliesForInsight AWS API Documentation
679
+ #
680
+ # @overload list_anomalies_for_insight(params = {})
681
+ # @param [Hash] params ({})
682
+ def list_anomalies_for_insight(params = {}, options = {})
683
+ req = build_request(:list_anomalies_for_insight, params)
684
+ req.send_request(options)
685
+ end
686
+
687
+ # @option params [required, Types::ListEventsFilters] :filters
688
+ #
689
+ # @option params [Integer] :max_results
690
+ #
691
+ # @option params [String] :next_token
692
+ #
693
+ # @return [Types::ListEventsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
694
+ #
695
+ # * {Types::ListEventsResponse#events #events} => Array&lt;Types::Event&gt;
696
+ # * {Types::ListEventsResponse#next_token #next_token} => String
697
+ #
698
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
699
+ #
700
+ # @example Request syntax with placeholder values
701
+ #
702
+ # resp = client.list_events({
703
+ # filters: { # required
704
+ # data_source: "AWS_CLOUD_TRAIL", # accepts AWS_CLOUD_TRAIL, AWS_CODE_DEPLOY
705
+ # event_class: "INFRASTRUCTURE", # accepts INFRASTRUCTURE, DEPLOYMENT, SECURITY_CHANGE, CONFIG_CHANGE, SCHEMA_CHANGE
706
+ # event_source: "__stringMin10Max50PatternAZAZ09AmazonawsComAwsEvents",
707
+ # event_time_range: {
708
+ # from_time: Time.now, # required
709
+ # to_time: Time.now, # required
710
+ # },
711
+ # insight_id: "__stringMin1Max100PatternW",
712
+ # resource_collection: {
713
+ # cloud_formation: {
714
+ # stack_names: ["__stringMin1Max128PatternAZAZAZAZ09"],
715
+ # },
716
+ # },
717
+ # },
718
+ # max_results: 1,
719
+ # next_token: "__stringMin36Max36PatternAF098AF094AF094AF094AF0912",
720
+ # })
721
+ #
722
+ # @example Response structure
723
+ #
724
+ # resp.events #=> Array
725
+ # resp.events[0].data_source #=> String, one of "AWS_CLOUD_TRAIL", "AWS_CODE_DEPLOY"
726
+ # resp.events[0].event_class #=> String, one of "INFRASTRUCTURE", "DEPLOYMENT", "SECURITY_CHANGE", "CONFIG_CHANGE", "SCHEMA_CHANGE"
727
+ # resp.events[0].event_source #=> String
728
+ # resp.events[0].id #=> String
729
+ # resp.events[0].name #=> String
730
+ # resp.events[0].resource_collection.cloud_formation.stack_names #=> Array
731
+ # resp.events[0].resource_collection.cloud_formation.stack_names[0] #=> String
732
+ # resp.events[0].resources #=> Array
733
+ # resp.events[0].resources[0].arn #=> String
734
+ # resp.events[0].resources[0].name #=> String
735
+ # resp.events[0].resources[0].type #=> String
736
+ # resp.events[0].time #=> Time
737
+ # resp.next_token #=> String
738
+ #
739
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListEvents AWS API Documentation
740
+ #
741
+ # @overload list_events(params = {})
742
+ # @param [Hash] params ({})
743
+ def list_events(params = {}, options = {})
744
+ req = build_request(:list_events, params)
745
+ req.send_request(options)
746
+ end
747
+
748
+ # @option params [Integer] :max_results
749
+ #
750
+ # @option params [String] :next_token
751
+ #
752
+ # @option params [required, Types::ListInsightsStatusFilter] :status_filter
753
+ #
754
+ # @return [Types::ListInsightsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
755
+ #
756
+ # * {Types::ListInsightsResponse#next_token #next_token} => String
757
+ # * {Types::ListInsightsResponse#proactive_insights #proactive_insights} => Array&lt;Types::ProactiveInsightSummary&gt;
758
+ # * {Types::ListInsightsResponse#reactive_insights #reactive_insights} => Array&lt;Types::ReactiveInsightSummary&gt;
759
+ #
760
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
761
+ #
762
+ # @example Request syntax with placeholder values
763
+ #
764
+ # resp = client.list_insights({
765
+ # max_results: 1,
766
+ # next_token: "__stringMin36Max36PatternAF098AF094AF094AF094AF0912",
767
+ # status_filter: { # required
768
+ # any: {
769
+ # start_time_range: { # required
770
+ # from_time: Time.now,
771
+ # to_time: Time.now,
772
+ # },
773
+ # type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
774
+ # },
775
+ # closed: {
776
+ # end_time_range: { # required
777
+ # from_time: Time.now,
778
+ # to_time: Time.now,
779
+ # },
780
+ # type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
781
+ # },
782
+ # ongoing: {
783
+ # type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
784
+ # },
785
+ # },
786
+ # })
787
+ #
788
+ # @example Response structure
789
+ #
790
+ # resp.next_token #=> String
791
+ # resp.proactive_insights #=> Array
792
+ # resp.proactive_insights[0].id #=> String
793
+ # resp.proactive_insights[0].insight_time_range.end_time #=> Time
794
+ # resp.proactive_insights[0].insight_time_range.start_time #=> Time
795
+ # resp.proactive_insights[0].name #=> String
796
+ # resp.proactive_insights[0].prediction_time_range.end_time #=> Time
797
+ # resp.proactive_insights[0].prediction_time_range.start_time #=> Time
798
+ # resp.proactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
799
+ # resp.proactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
800
+ # resp.proactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
801
+ # resp.proactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
802
+ # resp.reactive_insights #=> Array
803
+ # resp.reactive_insights[0].id #=> String
804
+ # resp.reactive_insights[0].insight_time_range.end_time #=> Time
805
+ # resp.reactive_insights[0].insight_time_range.start_time #=> Time
806
+ # resp.reactive_insights[0].name #=> String
807
+ # resp.reactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
808
+ # resp.reactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
809
+ # resp.reactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
810
+ # resp.reactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
811
+ #
812
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListInsights AWS API Documentation
813
+ #
814
+ # @overload list_insights(params = {})
815
+ # @param [Hash] params ({})
816
+ def list_insights(params = {}, options = {})
817
+ req = build_request(:list_insights, params)
818
+ req.send_request(options)
819
+ end
820
+
821
+ # @option params [String] :next_token
822
+ #
823
+ # @return [Types::ListNotificationChannelsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
824
+ #
825
+ # * {Types::ListNotificationChannelsResponse#channels #channels} => Array&lt;Types::NotificationChannel&gt;
826
+ # * {Types::ListNotificationChannelsResponse#next_token #next_token} => String
827
+ #
828
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
829
+ #
830
+ # @example Request syntax with placeholder values
831
+ #
832
+ # resp = client.list_notification_channels({
833
+ # next_token: "__stringMin36Max36PatternAF098AF094AF094AF094AF0912",
834
+ # })
835
+ #
836
+ # @example Response structure
837
+ #
838
+ # resp.channels #=> Array
839
+ # resp.channels[0].config.sns.topic_arn #=> String
840
+ # resp.channels[0].id #=> String
841
+ # resp.next_token #=> String
842
+ #
843
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListNotificationChannels AWS API Documentation
844
+ #
845
+ # @overload list_notification_channels(params = {})
846
+ # @param [Hash] params ({})
847
+ def list_notification_channels(params = {}, options = {})
848
+ req = build_request(:list_notification_channels, params)
849
+ req.send_request(options)
850
+ end
851
+
852
+ # @option params [required, String] :insight_id
853
+ #
854
+ # @option params [String] :next_token
855
+ #
856
+ # @return [Types::ListRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
857
+ #
858
+ # * {Types::ListRecommendationsResponse#next_token #next_token} => String
859
+ # * {Types::ListRecommendationsResponse#recommendations #recommendations} => Array&lt;Types::Recommendation&gt;
860
+ #
861
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
862
+ #
863
+ # @example Request syntax with placeholder values
864
+ #
865
+ # resp = client.list_recommendations({
866
+ # insight_id: "__stringMin1Max100PatternW", # required
867
+ # next_token: "__stringMin36Max36PatternAF098AF094AF094AF094AF0912",
868
+ # })
869
+ #
870
+ # @example Response structure
871
+ #
872
+ # resp.next_token #=> String
873
+ # resp.recommendations #=> Array
874
+ # resp.recommendations[0].description #=> String
875
+ # resp.recommendations[0].link #=> String
876
+ # resp.recommendations[0].name #=> String
877
+ # resp.recommendations[0].reason #=> String
878
+ # resp.recommendations[0].related_anomalies #=> Array
879
+ # resp.recommendations[0].related_anomalies[0].resources #=> Array
880
+ # resp.recommendations[0].related_anomalies[0].resources[0].name #=> String
881
+ # resp.recommendations[0].related_anomalies[0].resources[0].type #=> String
882
+ # resp.recommendations[0].related_anomalies[0].source_details #=> Array
883
+ # resp.recommendations[0].related_anomalies[0].source_details[0].cloud_watch_metrics #=> Array
884
+ # resp.recommendations[0].related_anomalies[0].source_details[0].cloud_watch_metrics[0].metric_name #=> String
885
+ # resp.recommendations[0].related_anomalies[0].source_details[0].cloud_watch_metrics[0].namespace #=> String
886
+ # resp.recommendations[0].related_events #=> Array
887
+ # resp.recommendations[0].related_events[0].name #=> String
888
+ # resp.recommendations[0].related_events[0].resources #=> Array
889
+ # resp.recommendations[0].related_events[0].resources[0].name #=> String
890
+ # resp.recommendations[0].related_events[0].resources[0].type #=> String
891
+ #
892
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/ListRecommendations AWS API Documentation
893
+ #
894
+ # @overload list_recommendations(params = {})
895
+ # @param [Hash] params ({})
896
+ def list_recommendations(params = {}, options = {})
897
+ req = build_request(:list_recommendations, params)
898
+ req.send_request(options)
899
+ end
900
+
901
+ # @option params [Types::InsightFeedback] :insight_feedback
902
+ #
903
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
904
+ #
905
+ # @example Request syntax with placeholder values
906
+ #
907
+ # resp = client.put_feedback({
908
+ # insight_feedback: {
909
+ # feedback: "VALID_COLLECTION", # accepts VALID_COLLECTION, RECOMMENDATION_USEFUL, ALERT_TOO_SENSITIVE, DATA_NOISY_ANOMALY, DATA_INCORRECT
910
+ # id: "__stringMin1Max100PatternW",
911
+ # },
912
+ # })
913
+ #
914
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/PutFeedback AWS API Documentation
915
+ #
916
+ # @overload put_feedback(params = {})
917
+ # @param [Hash] params ({})
918
+ def put_feedback(params = {}, options = {})
919
+ req = build_request(:put_feedback, params)
920
+ req.send_request(options)
921
+ end
922
+
923
+ # @option params [required, String] :id
924
+ #
925
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
926
+ #
927
+ # @example Request syntax with placeholder values
928
+ #
929
+ # resp = client.remove_notification_channel({
930
+ # id: "__string", # required
931
+ # })
932
+ #
933
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/RemoveNotificationChannel AWS API Documentation
934
+ #
935
+ # @overload remove_notification_channel(params = {})
936
+ # @param [Hash] params ({})
937
+ def remove_notification_channel(params = {}, options = {})
938
+ req = build_request(:remove_notification_channel, params)
939
+ req.send_request(options)
940
+ end
941
+
942
+ # @option params [Types::SearchInsightsFilters] :filters
943
+ #
944
+ # @option params [Integer] :max_results
945
+ #
946
+ # @option params [String] :next_token
947
+ #
948
+ # @option params [required, Types::StartTimeRange] :start_time_range
949
+ #
950
+ # @option params [required, String] :type
951
+ #
952
+ # @return [Types::SearchInsightsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
953
+ #
954
+ # * {Types::SearchInsightsResponse#next_token #next_token} => String
955
+ # * {Types::SearchInsightsResponse#proactive_insights #proactive_insights} => Array&lt;Types::ProactiveInsightSummary&gt;
956
+ # * {Types::SearchInsightsResponse#reactive_insights #reactive_insights} => Array&lt;Types::ReactiveInsightSummary&gt;
957
+ #
958
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
959
+ #
960
+ # @example Request syntax with placeholder values
961
+ #
962
+ # resp = client.search_insights({
963
+ # filters: {
964
+ # resource_collection: {
965
+ # cloud_formation: {
966
+ # stack_names: ["__stringMin1Max128PatternAZAZAZAZ09"],
967
+ # },
968
+ # },
969
+ # severities: ["LOW"], # accepts LOW, MEDIUM, HIGH
970
+ # statuses: ["ONGOING"], # accepts ONGOING, CLOSED
971
+ # },
972
+ # max_results: 1,
973
+ # next_token: "__stringMin36Max36PatternAF098AF094AF094AF094AF0912",
974
+ # start_time_range: { # required
975
+ # from_time: Time.now,
976
+ # to_time: Time.now,
977
+ # },
978
+ # type: "REACTIVE", # required, accepts REACTIVE, PROACTIVE
979
+ # })
980
+ #
981
+ # @example Response structure
982
+ #
983
+ # resp.next_token #=> String
984
+ # resp.proactive_insights #=> Array
985
+ # resp.proactive_insights[0].id #=> String
986
+ # resp.proactive_insights[0].insight_time_range.end_time #=> Time
987
+ # resp.proactive_insights[0].insight_time_range.start_time #=> Time
988
+ # resp.proactive_insights[0].name #=> String
989
+ # resp.proactive_insights[0].prediction_time_range.end_time #=> Time
990
+ # resp.proactive_insights[0].prediction_time_range.start_time #=> Time
991
+ # resp.proactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
992
+ # resp.proactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
993
+ # resp.proactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
994
+ # resp.proactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
995
+ # resp.reactive_insights #=> Array
996
+ # resp.reactive_insights[0].id #=> String
997
+ # resp.reactive_insights[0].insight_time_range.end_time #=> Time
998
+ # resp.reactive_insights[0].insight_time_range.start_time #=> Time
999
+ # resp.reactive_insights[0].name #=> String
1000
+ # resp.reactive_insights[0].resource_collection.cloud_formation.stack_names #=> Array
1001
+ # resp.reactive_insights[0].resource_collection.cloud_formation.stack_names[0] #=> String
1002
+ # resp.reactive_insights[0].severity #=> String, one of "LOW", "MEDIUM", "HIGH"
1003
+ # resp.reactive_insights[0].status #=> String, one of "ONGOING", "CLOSED"
1004
+ #
1005
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/SearchInsights AWS API Documentation
1006
+ #
1007
+ # @overload search_insights(params = {})
1008
+ # @param [Hash] params ({})
1009
+ def search_insights(params = {}, options = {})
1010
+ req = build_request(:search_insights, params)
1011
+ req.send_request(options)
1012
+ end
1013
+
1014
+ # @option params [required, String] :action
1015
+ #
1016
+ # @option params [required, Types::UpdateResourceCollectionFilter] :resource_collection
1017
+ #
1018
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1019
+ #
1020
+ # @example Request syntax with placeholder values
1021
+ #
1022
+ # resp = client.update_resource_collection({
1023
+ # action: "ADD", # required, accepts ADD, REMOVE
1024
+ # resource_collection: { # required
1025
+ # cloud_formation: {
1026
+ # stack_names: ["__stringMin1Max128PatternAZAZAZAZ09"],
1027
+ # },
1028
+ # },
1029
+ # })
1030
+ #
1031
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/UpdateResourceCollection AWS API Documentation
1032
+ #
1033
+ # @overload update_resource_collection(params = {})
1034
+ # @param [Hash] params ({})
1035
+ def update_resource_collection(params = {}, options = {})
1036
+ req = build_request(:update_resource_collection, params)
1037
+ req.send_request(options)
1038
+ end
1039
+
1040
+ # @option params [required, Types::UpdateServiceIntegrationConfig] :service_integration
1041
+ #
1042
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1043
+ #
1044
+ # @example Request syntax with placeholder values
1045
+ #
1046
+ # resp = client.update_service_integration({
1047
+ # service_integration: { # required
1048
+ # ops_center: {
1049
+ # opt_in_status: "ENABLED", # accepts ENABLED, DISABLED
1050
+ # },
1051
+ # },
1052
+ # })
1053
+ #
1054
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devops-guru-2020-12-01/UpdateServiceIntegration AWS API Documentation
1055
+ #
1056
+ # @overload update_service_integration(params = {})
1057
+ # @param [Hash] params ({})
1058
+ def update_service_integration(params = {}, options = {})
1059
+ req = build_request(:update_service_integration, params)
1060
+ req.send_request(options)
1061
+ end
1062
+
1063
+ # @!endgroup
1064
+
1065
+ # @param params ({})
1066
+ # @api private
1067
+ def build_request(operation_name, params = {})
1068
+ handlers = @handlers.for(operation_name)
1069
+ context = Seahorse::Client::RequestContext.new(
1070
+ operation_name: operation_name,
1071
+ operation: config.api.operation(operation_name),
1072
+ client: self,
1073
+ params: params,
1074
+ config: config)
1075
+ context[:gem_name] = 'aws-sdk-devopsguru'
1076
+ context[:gem_version] = '1.0.0'
1077
+ Seahorse::Client::Request.new(handlers, context)
1078
+ end
1079
+
1080
+ # @api private
1081
+ # @deprecated
1082
+ def waiter_names
1083
+ []
1084
+ end
1085
+
1086
+ class << self
1087
+
1088
+ # @api private
1089
+ attr_reader :identifier
1090
+
1091
+ # @api private
1092
+ def errors_module
1093
+ Errors
1094
+ end
1095
+
1096
+ end
1097
+ end
1098
+ end