aws-sdk-cloudwatch 1.84.0 → 1.86.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,146 @@
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 CloudWatch
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html
11
+ class CompositeAlarm
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#initialize-instance_method
13
+ def initialize: (String name, Hash[Symbol, untyped] options) -> void
14
+ | (name: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#name-instance_method
18
+ def name: () -> String
19
+ alias alarm_name name
20
+
21
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#actions_enabled-instance_method
22
+ def actions_enabled: () -> bool
23
+
24
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#alarm_actions-instance_method
25
+ def alarm_actions: () -> ::Array[::String]
26
+
27
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#alarm_arn-instance_method
28
+ def alarm_arn: () -> ::String
29
+
30
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#alarm_configuration_updated_timestamp-instance_method
31
+ def alarm_configuration_updated_timestamp: () -> ::Time
32
+
33
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#alarm_description-instance_method
34
+ def alarm_description: () -> ::String
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#alarm_rule-instance_method
37
+ def alarm_rule: () -> ::String
38
+
39
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#insufficient_data_actions-instance_method
40
+ def insufficient_data_actions: () -> ::Array[::String]
41
+
42
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#ok_actions-instance_method
43
+ def ok_actions: () -> ::Array[::String]
44
+
45
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#state_reason-instance_method
46
+ def state_reason: () -> ::String
47
+
48
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#state_reason_data-instance_method
49
+ def state_reason_data: () -> ::String
50
+
51
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#state_updated_timestamp-instance_method
52
+ def state_updated_timestamp: () -> ::Time
53
+
54
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#state_value-instance_method
55
+ def state_value: () -> ("OK" | "ALARM" | "INSUFFICIENT_DATA")
56
+
57
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#state_transitioned_timestamp-instance_method
58
+ def state_transitioned_timestamp: () -> ::Time
59
+
60
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#actions_suppressed_by-instance_method
61
+ def actions_suppressed_by: () -> ("WaitPeriod" | "ExtensionPeriod" | "Alarm")
62
+
63
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#actions_suppressed_reason-instance_method
64
+ def actions_suppressed_reason: () -> ::String
65
+
66
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#actions_suppressor-instance_method
67
+ def actions_suppressor: () -> ::String
68
+
69
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#actions_suppressor_wait_period-instance_method
70
+ def actions_suppressor_wait_period: () -> ::Integer
71
+
72
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#actions_suppressor_extension_period-instance_method
73
+ def actions_suppressor_extension_period: () -> ::Integer
74
+
75
+ def client: () -> Client
76
+
77
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#load-instance_method
78
+ def load: () -> self
79
+ alias reload load
80
+
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#data-instance_method
82
+ def data: () -> Types::CompositeAlarm
83
+
84
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#data_loaded?-instance_method
85
+ def data_loaded?: () -> bool
86
+
87
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#exists?-instance_method
88
+ def exists?: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) -> bool
89
+ | (?Hash[Symbol, untyped]) -> bool
90
+
91
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#wait_until_exists-instance_method
92
+ def wait_until_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> CompositeAlarm
93
+ | (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> CompositeAlarm
94
+
95
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#delete-instance_method
96
+ def delete: (
97
+ ) -> ::Aws::EmptyStructure
98
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
99
+
100
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#describe_history-instance_method
101
+ def describe_history: (
102
+ ?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
103
+ ?history_item_type: ("ConfigurationUpdate" | "StateUpdate" | "Action"),
104
+ ?start_date: ::Time,
105
+ ?end_date: ::Time,
106
+ ?max_records: ::Integer,
107
+ ?next_token: ::String,
108
+ ?scan_by: ("TimestampDescending" | "TimestampAscending")
109
+ ) -> Types::DescribeAlarmHistoryOutput
110
+ | (?Hash[Symbol, untyped]) -> Types::DescribeAlarmHistoryOutput
111
+
112
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#disable_actions-instance_method
113
+ def disable_actions: (
114
+ ) -> ::Aws::EmptyStructure
115
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
116
+
117
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#enable_actions-instance_method
118
+ def enable_actions: (
119
+ ) -> ::Aws::EmptyStructure
120
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
121
+
122
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/CompositeAlarm.html#set_state-instance_method
123
+ def set_state: (
124
+ state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
125
+ state_reason: ::String,
126
+ ?state_reason_data: ::String
127
+ ) -> ::Aws::EmptyStructure
128
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
129
+
130
+ class Collection < ::Aws::Resources::Collection[CompositeAlarm]
131
+
132
+ def batch_delete!: (
133
+ ) -> void
134
+ | (?Hash[Symbol, untyped]) -> void
135
+
136
+ def batch_disable_actions: (
137
+ ) -> void
138
+ | (?Hash[Symbol, untyped]) -> void
139
+
140
+ def batch_enable_actions: (
141
+ ) -> void
142
+ | (?Hash[Symbol, untyped]) -> void
143
+ end
144
+ end
145
+ end
146
+ end
data/sig/errors.rbs ADDED
@@ -0,0 +1,55 @@
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 CloudWatch
10
+ module Errors
11
+ class ServiceError < ::Aws::Errors::ServiceError
12
+ end
13
+
14
+ class ConcurrentModificationException < ::Aws::Errors::ServiceError
15
+ end
16
+ class DashboardInvalidInputError < ::Aws::Errors::ServiceError
17
+ def message: () -> ::String
18
+ def dashboard_validation_messages: () -> ::String
19
+ end
20
+ class DashboardNotFoundError < ::Aws::Errors::ServiceError
21
+ def message: () -> ::String
22
+ end
23
+ class InternalServiceFault < ::Aws::Errors::ServiceError
24
+ def message: () -> ::String
25
+ end
26
+ class InvalidFormatFault < ::Aws::Errors::ServiceError
27
+ def message: () -> ::String
28
+ end
29
+ class InvalidNextToken < ::Aws::Errors::ServiceError
30
+ def message: () -> ::String
31
+ end
32
+ class InvalidParameterCombinationException < ::Aws::Errors::ServiceError
33
+ def message: () -> ::String
34
+ end
35
+ class InvalidParameterValueException < ::Aws::Errors::ServiceError
36
+ def message: () -> ::String
37
+ end
38
+ class LimitExceededException < ::Aws::Errors::ServiceError
39
+ end
40
+ class LimitExceededFault < ::Aws::Errors::ServiceError
41
+ def message: () -> ::String
42
+ end
43
+ class MissingRequiredParameterException < ::Aws::Errors::ServiceError
44
+ def message: () -> ::String
45
+ end
46
+ class ResourceNotFound < ::Aws::Errors::ServiceError
47
+ def message: () -> ::String
48
+ end
49
+ class ResourceNotFoundException < ::Aws::Errors::ServiceError
50
+ def resource_type: () -> ::String
51
+ def resource_id: () -> ::String
52
+ end
53
+ end
54
+ end
55
+ end
data/sig/metric.rbs ADDED
@@ -0,0 +1,163 @@
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 CloudWatch
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html
11
+ class Metric
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#initialize-instance_method
13
+ def initialize: (String namespace, String name, Hash[Symbol, untyped] options) -> void
14
+ | (namespace: String, name: String, ?client: Client) -> void
15
+ | (Hash[Symbol, untyped] args) -> void
16
+
17
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#namespace-instance_method
18
+ def namespace: () -> String
19
+
20
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#name-instance_method
21
+ def name: () -> String
22
+ alias metric_name name
23
+
24
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#dimensions-instance_method
25
+ def dimensions: () -> ::Array[Types::Dimension]
26
+
27
+ def client: () -> Client
28
+
29
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#load-instance_method
30
+ def load: () -> self
31
+ alias reload load
32
+
33
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#data-instance_method
34
+ def data: () -> Types::Metric
35
+
36
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#data_loaded?-instance_method
37
+ def data_loaded?: () -> bool
38
+
39
+
40
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#get_statistics-instance_method
41
+ def get_statistics: (
42
+ ?dimensions: Array[
43
+ {
44
+ name: ::String,
45
+ value: ::String
46
+ },
47
+ ],
48
+ start_time: ::Time,
49
+ end_time: ::Time,
50
+ period: ::Integer,
51
+ ?statistics: Array[("SampleCount" | "Average" | "Sum" | "Minimum" | "Maximum")],
52
+ ?extended_statistics: Array[::String],
53
+ ?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")
54
+ ) -> Types::GetMetricStatisticsOutput
55
+ | (?Hash[Symbol, untyped]) -> Types::GetMetricStatisticsOutput
56
+
57
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#put_alarm-instance_method
58
+ def put_alarm: (
59
+ alarm_name: ::String,
60
+ ?alarm_description: ::String,
61
+ ?actions_enabled: bool,
62
+ ?ok_actions: Array[::String],
63
+ ?alarm_actions: Array[::String],
64
+ ?insufficient_data_actions: Array[::String],
65
+ ?statistic: ("SampleCount" | "Average" | "Sum" | "Minimum" | "Maximum"),
66
+ ?extended_statistic: ::String,
67
+ ?dimensions: Array[
68
+ {
69
+ name: ::String,
70
+ value: ::String
71
+ },
72
+ ],
73
+ ?period: ::Integer,
74
+ ?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"),
75
+ evaluation_periods: ::Integer,
76
+ ?datapoints_to_alarm: ::Integer,
77
+ ?threshold: ::Float,
78
+ comparison_operator: ("GreaterThanOrEqualToThreshold" | "GreaterThanThreshold" | "LessThanThreshold" | "LessThanOrEqualToThreshold" | "LessThanLowerOrGreaterThanUpperThreshold" | "LessThanLowerThreshold" | "GreaterThanUpperThreshold"),
79
+ ?treat_missing_data: ::String,
80
+ ?evaluate_low_sample_count_percentile: ::String,
81
+ ?metrics: Array[
82
+ {
83
+ id: ::String,
84
+ metric_stat: {
85
+ metric: {
86
+ namespace: ::String?,
87
+ metric_name: ::String?,
88
+ dimensions: Array[
89
+ {
90
+ name: ::String,
91
+ value: ::String
92
+ },
93
+ ]?
94
+ },
95
+ period: ::Integer,
96
+ stat: ::String,
97
+ 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")?
98
+ }?,
99
+ expression: ::String?,
100
+ label: ::String?,
101
+ return_data: bool?,
102
+ period: ::Integer?,
103
+ account_id: ::String?
104
+ },
105
+ ],
106
+ ?tags: Array[
107
+ {
108
+ key: ::String,
109
+ value: ::String
110
+ },
111
+ ],
112
+ ?threshold_metric_id: ::String
113
+ ) -> Alarm
114
+ | (?Hash[Symbol, untyped]) -> Alarm
115
+
116
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#put_data-instance_method
117
+ def put_data: (
118
+ metric_data: Array[
119
+ {
120
+ metric_name: ::String,
121
+ dimensions: Array[
122
+ {
123
+ name: ::String,
124
+ value: ::String
125
+ },
126
+ ]?,
127
+ timestamp: ::Time?,
128
+ value: ::Float?,
129
+ statistic_values: {
130
+ sample_count: ::Float,
131
+ sum: ::Float,
132
+ minimum: ::Float,
133
+ maximum: ::Float
134
+ }?,
135
+ values: Array[::Float]?,
136
+ counts: Array[::Float]?,
137
+ 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")?,
138
+ storage_resolution: ::Integer?
139
+ },
140
+ ]
141
+ ) -> ::Aws::EmptyStructure
142
+ | (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
143
+
144
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Metric.html#alarms-instance_method
145
+ def alarms: (
146
+ ?statistic: ("SampleCount" | "Average" | "Sum" | "Minimum" | "Maximum"),
147
+ ?extended_statistic: ::String,
148
+ ?dimensions: Array[
149
+ {
150
+ name: ::String,
151
+ value: ::String
152
+ },
153
+ ],
154
+ ?period: ::Integer,
155
+ ?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")
156
+ ) -> Alarm::Collection
157
+ | (?Hash[Symbol, untyped]) -> Alarm::Collection
158
+
159
+ class Collection < ::Aws::Resources::Collection[Metric]
160
+ end
161
+ end
162
+ end
163
+ end
data/sig/resource.rbs ADDED
@@ -0,0 +1,128 @@
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 CloudWatch
10
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html
11
+ class Resource
12
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html#initialize-instance_method
13
+ def initialize: (
14
+ ?client: Client,
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?active_endpoint_cache: bool,
19
+ ?adaptive_retry_wait_to_fill: bool,
20
+ ?client_side_monitoring: bool,
21
+ ?client_side_monitoring_client_id: String,
22
+ ?client_side_monitoring_host: String,
23
+ ?client_side_monitoring_port: Integer,
24
+ ?client_side_monitoring_publisher: untyped,
25
+ ?convert_params: bool,
26
+ ?correct_clock_skew: bool,
27
+ ?defaults_mode: String,
28
+ ?disable_host_prefix_injection: bool,
29
+ ?disable_request_compression: bool,
30
+ ?endpoint: String,
31
+ ?endpoint_cache_max_entries: Integer,
32
+ ?endpoint_cache_max_threads: Integer,
33
+ ?endpoint_cache_poll_interval: Integer,
34
+ ?endpoint_discovery: bool,
35
+ ?ignore_configured_endpoint_urls: bool,
36
+ ?log_formatter: untyped,
37
+ ?log_level: Symbol,
38
+ ?logger: untyped,
39
+ ?max_attempts: Integer,
40
+ ?profile: String,
41
+ ?request_min_compression_size_bytes: Integer,
42
+ ?retry_backoff: Proc,
43
+ ?retry_base_delay: Float,
44
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
45
+ ?retry_limit: Integer,
46
+ ?retry_max_delay: Integer,
47
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
48
+ ?sdk_ua_app_id: String,
49
+ ?secret_access_key: String,
50
+ ?session_token: String,
51
+ ?stub_responses: untyped,
52
+ ?token_provider: untyped,
53
+ ?use_dualstack_endpoint: bool,
54
+ ?use_fips_endpoint: bool,
55
+ ?validate_params: bool,
56
+ ?endpoint_provider: untyped,
57
+ ?http_proxy: String,
58
+ ?http_open_timeout: (Float | Integer),
59
+ ?http_read_timeout: (Float | Integer),
60
+ ?http_idle_timeout: (Float | Integer),
61
+ ?http_continue_timeout: (Float | Integer),
62
+ ?ssl_timeout: (Float | Integer | nil),
63
+ ?http_wire_trace: bool,
64
+ ?ssl_verify_peer: bool,
65
+ ?ssl_ca_bundle: String,
66
+ ?ssl_ca_directory: String,
67
+ ?ssl_ca_store: String,
68
+ ?on_chunk_received: Proc,
69
+ ?on_chunk_sent: Proc,
70
+ ?raise_response_errors: bool
71
+ ) -> void
72
+ | (?Hash[Symbol, untyped]) -> void
73
+
74
+ def client: () -> Client
75
+
76
+
77
+
78
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html#alarm-instance_method
79
+ def alarm: (String name) -> Alarm
80
+
81
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html#alarms-instance_method
82
+ def alarms: (
83
+ ?alarm_names: Array[::String],
84
+ ?alarm_name_prefix: ::String,
85
+ ?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
86
+ ?children_of_alarm_name: ::String,
87
+ ?parents_of_alarm_name: ::String,
88
+ ?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
89
+ ?action_prefix: ::String
90
+ ) -> Alarm::Collection
91
+ | (?Hash[Symbol, untyped]) -> Alarm::Collection
92
+
93
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html#composite_alarm-instance_method
94
+ def composite_alarm: (String name) -> CompositeAlarm
95
+
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html#composite_alarms-instance_method
97
+ def composite_alarms: (
98
+ ?alarm_names: Array[::String],
99
+ ?alarm_name_prefix: ::String,
100
+ ?alarm_types: Array[("CompositeAlarm" | "MetricAlarm")],
101
+ ?children_of_alarm_name: ::String,
102
+ ?parents_of_alarm_name: ::String,
103
+ ?state_value: ("OK" | "ALARM" | "INSUFFICIENT_DATA"),
104
+ ?action_prefix: ::String
105
+ ) -> CompositeAlarm::Collection
106
+ | (?Hash[Symbol, untyped]) -> CompositeAlarm::Collection
107
+
108
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html#metric-instance_method
109
+ def metric: (String namespace, String name) -> Metric
110
+
111
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CloudWatch/Resource.html#metrics-instance_method
112
+ def metrics: (
113
+ ?namespace: ::String,
114
+ ?metric_name: ::String,
115
+ ?dimensions: Array[
116
+ {
117
+ name: ::String,
118
+ value: ::String?
119
+ },
120
+ ],
121
+ ?recently_active: ("PT3H"),
122
+ ?include_linked_accounts: bool,
123
+ ?owning_account: ::String
124
+ ) -> Metric::Collection
125
+ | (?Hash[Symbol, untyped]) -> Metric::Collection
126
+ end
127
+ end
128
+ end