aws-sdk-cloudwatch 1.59.0 → 1.81.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +113 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/alarm.rb +66 -14
- data/lib/aws-sdk-cloudwatch/client.rb +556 -114
- data/lib/aws-sdk-cloudwatch/client_api.rb +129 -0
- data/lib/aws-sdk-cloudwatch/composite_alarm.rb +92 -12
- data/lib/aws-sdk-cloudwatch/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-cloudwatch/endpoint_provider.rb +57 -0
- data/lib/aws-sdk-cloudwatch/endpoints.rb +548 -0
- data/lib/aws-sdk-cloudwatch/metric.rb +188 -67
- data/lib/aws-sdk-cloudwatch/plugins/endpoints.rb +144 -0
- data/lib/aws-sdk-cloudwatch/resource.rb +39 -5
- data/lib/aws-sdk-cloudwatch/types.rb +690 -891
- data/lib/aws-sdk-cloudwatch.rb +5 -1
- metadata +8 -4
@@ -16,6 +16,8 @@ module Aws::CloudWatch
|
|
16
16
|
AccountId = Shapes::StringShape.new(name: 'AccountId')
|
17
17
|
ActionPrefix = Shapes::StringShape.new(name: 'ActionPrefix')
|
18
18
|
ActionsEnabled = Shapes::BooleanShape.new(name: 'ActionsEnabled')
|
19
|
+
ActionsSuppressedBy = Shapes::StringShape.new(name: 'ActionsSuppressedBy')
|
20
|
+
ActionsSuppressedReason = Shapes::StringShape.new(name: 'ActionsSuppressedReason')
|
19
21
|
AlarmArn = Shapes::StringShape.new(name: 'AlarmArn')
|
20
22
|
AlarmDescription = Shapes::StringShape.new(name: 'AlarmDescription')
|
21
23
|
AlarmHistoryItem = Shapes::StructureShape.new(name: 'AlarmHistoryItem')
|
@@ -96,6 +98,7 @@ module Aws::CloudWatch
|
|
96
98
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
97
99
|
EvaluateLowSampleCountPercentile = Shapes::StringShape.new(name: 'EvaluateLowSampleCountPercentile')
|
98
100
|
EvaluationPeriods = Shapes::IntegerShape.new(name: 'EvaluationPeriods')
|
101
|
+
EvaluationState = Shapes::StringShape.new(name: 'EvaluationState')
|
99
102
|
ExceptionType = Shapes::StringShape.new(name: 'ExceptionType')
|
100
103
|
ExtendedStatistic = Shapes::StringShape.new(name: 'ExtendedStatistic')
|
101
104
|
ExtendedStatistics = Shapes::ListShape.new(name: 'ExtendedStatistics')
|
@@ -120,6 +123,8 @@ module Aws::CloudWatch
|
|
120
123
|
HistoryData = Shapes::StringShape.new(name: 'HistoryData')
|
121
124
|
HistoryItemType = Shapes::StringShape.new(name: 'HistoryItemType')
|
122
125
|
HistorySummary = Shapes::StringShape.new(name: 'HistorySummary')
|
126
|
+
IncludeLinkedAccounts = Shapes::BooleanShape.new(name: 'IncludeLinkedAccounts')
|
127
|
+
IncludeLinkedAccountsMetrics = Shapes::BooleanShape.new(name: 'IncludeLinkedAccountsMetrics')
|
123
128
|
InsightRule = Shapes::StructureShape.new(name: 'InsightRule')
|
124
129
|
InsightRuleAggregationStatistic = Shapes::StringShape.new(name: 'InsightRuleAggregationStatistic')
|
125
130
|
InsightRuleContributor = Shapes::StructureShape.new(name: 'InsightRuleContributor')
|
@@ -131,6 +136,7 @@ module Aws::CloudWatch
|
|
131
136
|
InsightRuleContributorKeys = Shapes::ListShape.new(name: 'InsightRuleContributorKeys')
|
132
137
|
InsightRuleContributors = Shapes::ListShape.new(name: 'InsightRuleContributors')
|
133
138
|
InsightRuleDefinition = Shapes::StringShape.new(name: 'InsightRuleDefinition')
|
139
|
+
InsightRuleIsManaged = Shapes::BooleanShape.new(name: 'InsightRuleIsManaged')
|
134
140
|
InsightRuleMaxResults = Shapes::IntegerShape.new(name: 'InsightRuleMaxResults')
|
135
141
|
InsightRuleMetricDatapoint = Shapes::StructureShape.new(name: 'InsightRuleMetricDatapoint')
|
136
142
|
InsightRuleMetricDatapoints = Shapes::ListShape.new(name: 'InsightRuleMetricDatapoints')
|
@@ -156,6 +162,8 @@ module Aws::CloudWatch
|
|
156
162
|
LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
|
157
163
|
ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
|
158
164
|
ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
|
165
|
+
ListManagedInsightRulesInput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesInput')
|
166
|
+
ListManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesOutput')
|
159
167
|
ListMetricStreamsInput = Shapes::StructureShape.new(name: 'ListMetricStreamsInput')
|
160
168
|
ListMetricStreamsMaxResults = Shapes::IntegerShape.new(name: 'ListMetricStreamsMaxResults')
|
161
169
|
ListMetricStreamsOutput = Shapes::StructureShape.new(name: 'ListMetricStreamsOutput')
|
@@ -163,6 +171,11 @@ module Aws::CloudWatch
|
|
163
171
|
ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
|
164
172
|
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
165
173
|
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
174
|
+
ManagedRule = Shapes::StructureShape.new(name: 'ManagedRule')
|
175
|
+
ManagedRuleDescription = Shapes::StructureShape.new(name: 'ManagedRuleDescription')
|
176
|
+
ManagedRuleDescriptions = Shapes::ListShape.new(name: 'ManagedRuleDescriptions')
|
177
|
+
ManagedRuleState = Shapes::StructureShape.new(name: 'ManagedRuleState')
|
178
|
+
ManagedRules = Shapes::ListShape.new(name: 'ManagedRules')
|
166
179
|
MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
|
167
180
|
MaxReturnedResultsCount = Shapes::IntegerShape.new(name: 'MaxReturnedResultsCount')
|
168
181
|
Message = Shapes::StringShape.new(name: 'Message')
|
@@ -188,11 +201,18 @@ module Aws::CloudWatch
|
|
188
201
|
MetricStreamEntries = Shapes::ListShape.new(name: 'MetricStreamEntries')
|
189
202
|
MetricStreamEntry = Shapes::StructureShape.new(name: 'MetricStreamEntry')
|
190
203
|
MetricStreamFilter = Shapes::StructureShape.new(name: 'MetricStreamFilter')
|
204
|
+
MetricStreamFilterMetricNames = Shapes::ListShape.new(name: 'MetricStreamFilterMetricNames')
|
191
205
|
MetricStreamFilters = Shapes::ListShape.new(name: 'MetricStreamFilters')
|
192
206
|
MetricStreamName = Shapes::StringShape.new(name: 'MetricStreamName')
|
193
207
|
MetricStreamNames = Shapes::ListShape.new(name: 'MetricStreamNames')
|
194
208
|
MetricStreamOutputFormat = Shapes::StringShape.new(name: 'MetricStreamOutputFormat')
|
195
209
|
MetricStreamState = Shapes::StringShape.new(name: 'MetricStreamState')
|
210
|
+
MetricStreamStatistic = Shapes::StringShape.new(name: 'MetricStreamStatistic')
|
211
|
+
MetricStreamStatisticsAdditionalStatistics = Shapes::ListShape.new(name: 'MetricStreamStatisticsAdditionalStatistics')
|
212
|
+
MetricStreamStatisticsConfiguration = Shapes::StructureShape.new(name: 'MetricStreamStatisticsConfiguration')
|
213
|
+
MetricStreamStatisticsConfigurations = Shapes::ListShape.new(name: 'MetricStreamStatisticsConfigurations')
|
214
|
+
MetricStreamStatisticsIncludeMetrics = Shapes::ListShape.new(name: 'MetricStreamStatisticsIncludeMetrics')
|
215
|
+
MetricStreamStatisticsMetric = Shapes::StructureShape.new(name: 'MetricStreamStatisticsMetric')
|
196
216
|
MetricWidget = Shapes::StringShape.new(name: 'MetricWidget')
|
197
217
|
MetricWidgetImage = Shapes::BlobShape.new(name: 'MetricWidgetImage')
|
198
218
|
Metrics = Shapes::ListShape.new(name: 'Metrics')
|
@@ -200,6 +220,7 @@ module Aws::CloudWatch
|
|
200
220
|
Namespace = Shapes::StringShape.new(name: 'Namespace')
|
201
221
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
202
222
|
OutputFormat = Shapes::StringShape.new(name: 'OutputFormat')
|
223
|
+
OwningAccounts = Shapes::ListShape.new(name: 'OwningAccounts')
|
203
224
|
PartialFailure = Shapes::StructureShape.new(name: 'PartialFailure')
|
204
225
|
Period = Shapes::IntegerShape.new(name: 'Period')
|
205
226
|
PutAnomalyDetectorInput = Shapes::StructureShape.new(name: 'PutAnomalyDetectorInput')
|
@@ -209,6 +230,8 @@ module Aws::CloudWatch
|
|
209
230
|
PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
|
210
231
|
PutInsightRuleInput = Shapes::StructureShape.new(name: 'PutInsightRuleInput')
|
211
232
|
PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
|
233
|
+
PutManagedInsightRulesInput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesInput')
|
234
|
+
PutManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesOutput')
|
212
235
|
PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
|
213
236
|
PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
|
214
237
|
PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
|
@@ -240,6 +263,7 @@ module Aws::CloudWatch
|
|
240
263
|
StopMetricStreamsInput = Shapes::StructureShape.new(name: 'StopMetricStreamsInput')
|
241
264
|
StopMetricStreamsOutput = Shapes::StructureShape.new(name: 'StopMetricStreamsOutput')
|
242
265
|
StorageResolution = Shapes::IntegerShape.new(name: 'StorageResolution')
|
266
|
+
SuppressorPeriod = Shapes::IntegerShape.new(name: 'SuppressorPeriod')
|
243
267
|
Tag = Shapes::StructureShape.new(name: 'Tag')
|
244
268
|
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
245
269
|
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
@@ -247,6 +271,7 @@ module Aws::CloudWatch
|
|
247
271
|
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
248
272
|
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
249
273
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
274
|
+
TemplateName = Shapes::StringShape.new(name: 'TemplateName')
|
250
275
|
Threshold = Shapes::FloatShape.new(name: 'Threshold')
|
251
276
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
252
277
|
Timestamps = Shapes::ListShape.new(name: 'Timestamps')
|
@@ -304,6 +329,12 @@ module Aws::CloudWatch
|
|
304
329
|
CompositeAlarm.add_member(:state_reason_data, Shapes::ShapeRef.new(shape: StateReasonData, location_name: "StateReasonData"))
|
305
330
|
CompositeAlarm.add_member(:state_updated_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateUpdatedTimestamp"))
|
306
331
|
CompositeAlarm.add_member(:state_value, Shapes::ShapeRef.new(shape: StateValue, location_name: "StateValue"))
|
332
|
+
CompositeAlarm.add_member(:state_transitioned_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateTransitionedTimestamp"))
|
333
|
+
CompositeAlarm.add_member(:actions_suppressed_by, Shapes::ShapeRef.new(shape: ActionsSuppressedBy, location_name: "ActionsSuppressedBy"))
|
334
|
+
CompositeAlarm.add_member(:actions_suppressed_reason, Shapes::ShapeRef.new(shape: ActionsSuppressedReason, location_name: "ActionsSuppressedReason"))
|
335
|
+
CompositeAlarm.add_member(:actions_suppressor, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "ActionsSuppressor"))
|
336
|
+
CompositeAlarm.add_member(:actions_suppressor_wait_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorWaitPeriod"))
|
337
|
+
CompositeAlarm.add_member(:actions_suppressor_extension_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorExtensionPeriod"))
|
307
338
|
CompositeAlarm.struct_class = Types::CompositeAlarm
|
308
339
|
|
309
340
|
CompositeAlarms.member = Shapes::ShapeRef.new(shape: CompositeAlarm)
|
@@ -542,6 +573,8 @@ module Aws::CloudWatch
|
|
542
573
|
GetMetricStreamOutput.add_member(:creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationDate"))
|
543
574
|
GetMetricStreamOutput.add_member(:last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdateDate"))
|
544
575
|
GetMetricStreamOutput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, location_name: "OutputFormat"))
|
576
|
+
GetMetricStreamOutput.add_member(:statistics_configurations, Shapes::ShapeRef.new(shape: MetricStreamStatisticsConfigurations, location_name: "StatisticsConfigurations"))
|
577
|
+
GetMetricStreamOutput.add_member(:include_linked_accounts_metrics, Shapes::ShapeRef.new(shape: IncludeLinkedAccountsMetrics, location_name: "IncludeLinkedAccountsMetrics"))
|
545
578
|
GetMetricStreamOutput.struct_class = Types::GetMetricStreamOutput
|
546
579
|
|
547
580
|
GetMetricWidgetImageInput.add_member(:metric_widget, Shapes::ShapeRef.new(shape: MetricWidget, required: true, location_name: "MetricWidget"))
|
@@ -555,6 +588,7 @@ module Aws::CloudWatch
|
|
555
588
|
InsightRule.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
|
556
589
|
InsightRule.add_member(:schema, Shapes::ShapeRef.new(shape: InsightRuleSchema, required: true, location_name: "Schema"))
|
557
590
|
InsightRule.add_member(:definition, Shapes::ShapeRef.new(shape: InsightRuleDefinition, required: true, location_name: "Definition"))
|
591
|
+
InsightRule.add_member(:managed_rule, Shapes::ShapeRef.new(shape: InsightRuleIsManaged, location_name: "ManagedRule"))
|
558
592
|
InsightRule.struct_class = Types::InsightRule
|
559
593
|
|
560
594
|
InsightRuleContributor.add_member(:keys, Shapes::ShapeRef.new(shape: InsightRuleContributorKeys, required: true, location_name: "Keys"))
|
@@ -623,6 +657,15 @@ module Aws::CloudWatch
|
|
623
657
|
ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
624
658
|
ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
|
625
659
|
|
660
|
+
ListManagedInsightRulesInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
661
|
+
ListManagedInsightRulesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
662
|
+
ListManagedInsightRulesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: InsightRuleMaxResults, location_name: "MaxResults"))
|
663
|
+
ListManagedInsightRulesInput.struct_class = Types::ListManagedInsightRulesInput
|
664
|
+
|
665
|
+
ListManagedInsightRulesOutput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRuleDescriptions, location_name: "ManagedRules"))
|
666
|
+
ListManagedInsightRulesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
667
|
+
ListManagedInsightRulesOutput.struct_class = Types::ListManagedInsightRulesOutput
|
668
|
+
|
626
669
|
ListMetricStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
627
670
|
ListMetricStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMetricStreamsMaxResults, location_name: "MaxResults"))
|
628
671
|
ListMetricStreamsInput.struct_class = Types::ListMetricStreamsInput
|
@@ -636,10 +679,13 @@ module Aws::CloudWatch
|
|
636
679
|
ListMetricsInput.add_member(:dimensions, Shapes::ShapeRef.new(shape: DimensionFilters, location_name: "Dimensions"))
|
637
680
|
ListMetricsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
638
681
|
ListMetricsInput.add_member(:recently_active, Shapes::ShapeRef.new(shape: RecentlyActive, location_name: "RecentlyActive"))
|
682
|
+
ListMetricsInput.add_member(:include_linked_accounts, Shapes::ShapeRef.new(shape: IncludeLinkedAccounts, location_name: "IncludeLinkedAccounts"))
|
683
|
+
ListMetricsInput.add_member(:owning_account, Shapes::ShapeRef.new(shape: AccountId, location_name: "OwningAccount"))
|
639
684
|
ListMetricsInput.struct_class = Types::ListMetricsInput
|
640
685
|
|
641
686
|
ListMetricsOutput.add_member(:metrics, Shapes::ShapeRef.new(shape: Metrics, location_name: "Metrics"))
|
642
687
|
ListMetricsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
688
|
+
ListMetricsOutput.add_member(:owning_accounts, Shapes::ShapeRef.new(shape: OwningAccounts, location_name: "OwningAccounts"))
|
643
689
|
ListMetricsOutput.struct_class = Types::ListMetricsOutput
|
644
690
|
|
645
691
|
ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
@@ -648,6 +694,24 @@ module Aws::CloudWatch
|
|
648
694
|
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
649
695
|
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
650
696
|
|
697
|
+
ManagedRule.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "TemplateName"))
|
698
|
+
ManagedRule.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
699
|
+
ManagedRule.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
700
|
+
ManagedRule.struct_class = Types::ManagedRule
|
701
|
+
|
702
|
+
ManagedRuleDescription.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "TemplateName"))
|
703
|
+
ManagedRuleDescription.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceARN"))
|
704
|
+
ManagedRuleDescription.add_member(:rule_state, Shapes::ShapeRef.new(shape: ManagedRuleState, location_name: "RuleState"))
|
705
|
+
ManagedRuleDescription.struct_class = Types::ManagedRuleDescription
|
706
|
+
|
707
|
+
ManagedRuleDescriptions.member = Shapes::ShapeRef.new(shape: ManagedRuleDescription)
|
708
|
+
|
709
|
+
ManagedRuleState.add_member(:rule_name, Shapes::ShapeRef.new(shape: InsightRuleName, required: true, location_name: "RuleName"))
|
710
|
+
ManagedRuleState.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
|
711
|
+
ManagedRuleState.struct_class = Types::ManagedRuleState
|
712
|
+
|
713
|
+
ManagedRules.member = Shapes::ShapeRef.new(shape: ManagedRule)
|
714
|
+
|
651
715
|
MessageData.add_member(:code, Shapes::ShapeRef.new(shape: MessageDataCode, location_name: "Code"))
|
652
716
|
MessageData.add_member(:value, Shapes::ShapeRef.new(shape: MessageDataValue, location_name: "Value"))
|
653
717
|
MessageData.struct_class = Types::MessageData
|
@@ -684,6 +748,8 @@ module Aws::CloudWatch
|
|
684
748
|
MetricAlarm.add_member(:evaluate_low_sample_count_percentile, Shapes::ShapeRef.new(shape: EvaluateLowSampleCountPercentile, location_name: "EvaluateLowSampleCountPercentile"))
|
685
749
|
MetricAlarm.add_member(:metrics, Shapes::ShapeRef.new(shape: MetricDataQueries, location_name: "Metrics"))
|
686
750
|
MetricAlarm.add_member(:threshold_metric_id, Shapes::ShapeRef.new(shape: MetricId, location_name: "ThresholdMetricId"))
|
751
|
+
MetricAlarm.add_member(:evaluation_state, Shapes::ShapeRef.new(shape: EvaluationState, location_name: "EvaluationState"))
|
752
|
+
MetricAlarm.add_member(:state_transitioned_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "StateTransitionedTimestamp"))
|
687
753
|
MetricAlarm.struct_class = Types::MetricAlarm
|
688
754
|
|
689
755
|
MetricAlarms.member = Shapes::ShapeRef.new(shape: MetricAlarm)
|
@@ -745,17 +811,36 @@ module Aws::CloudWatch
|
|
745
811
|
MetricStreamEntry.struct_class = Types::MetricStreamEntry
|
746
812
|
|
747
813
|
MetricStreamFilter.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, location_name: "Namespace"))
|
814
|
+
MetricStreamFilter.add_member(:metric_names, Shapes::ShapeRef.new(shape: MetricStreamFilterMetricNames, location_name: "MetricNames"))
|
748
815
|
MetricStreamFilter.struct_class = Types::MetricStreamFilter
|
749
816
|
|
817
|
+
MetricStreamFilterMetricNames.member = Shapes::ShapeRef.new(shape: MetricName)
|
818
|
+
|
750
819
|
MetricStreamFilters.member = Shapes::ShapeRef.new(shape: MetricStreamFilter)
|
751
820
|
|
752
821
|
MetricStreamNames.member = Shapes::ShapeRef.new(shape: MetricStreamName)
|
753
822
|
|
823
|
+
MetricStreamStatisticsAdditionalStatistics.member = Shapes::ShapeRef.new(shape: MetricStreamStatistic)
|
824
|
+
|
825
|
+
MetricStreamStatisticsConfiguration.add_member(:include_metrics, Shapes::ShapeRef.new(shape: MetricStreamStatisticsIncludeMetrics, required: true, location_name: "IncludeMetrics"))
|
826
|
+
MetricStreamStatisticsConfiguration.add_member(:additional_statistics, Shapes::ShapeRef.new(shape: MetricStreamStatisticsAdditionalStatistics, required: true, location_name: "AdditionalStatistics"))
|
827
|
+
MetricStreamStatisticsConfiguration.struct_class = Types::MetricStreamStatisticsConfiguration
|
828
|
+
|
829
|
+
MetricStreamStatisticsConfigurations.member = Shapes::ShapeRef.new(shape: MetricStreamStatisticsConfiguration)
|
830
|
+
|
831
|
+
MetricStreamStatisticsIncludeMetrics.member = Shapes::ShapeRef.new(shape: MetricStreamStatisticsMetric)
|
832
|
+
|
833
|
+
MetricStreamStatisticsMetric.add_member(:namespace, Shapes::ShapeRef.new(shape: Namespace, required: true, location_name: "Namespace"))
|
834
|
+
MetricStreamStatisticsMetric.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
|
835
|
+
MetricStreamStatisticsMetric.struct_class = Types::MetricStreamStatisticsMetric
|
836
|
+
|
754
837
|
Metrics.member = Shapes::ShapeRef.new(shape: Metric)
|
755
838
|
|
756
839
|
MissingRequiredParameterException.add_member(:message, Shapes::ShapeRef.new(shape: AwsQueryErrorMessage, location_name: "message"))
|
757
840
|
MissingRequiredParameterException.struct_class = Types::MissingRequiredParameterException
|
758
841
|
|
842
|
+
OwningAccounts.member = Shapes::ShapeRef.new(shape: AccountId)
|
843
|
+
|
759
844
|
PartialFailure.add_member(:failure_resource, Shapes::ShapeRef.new(shape: FailureResource, location_name: "FailureResource"))
|
760
845
|
PartialFailure.add_member(:exception_type, Shapes::ShapeRef.new(shape: ExceptionType, location_name: "ExceptionType"))
|
761
846
|
PartialFailure.add_member(:failure_code, Shapes::ShapeRef.new(shape: FailureCode, location_name: "FailureCode"))
|
@@ -781,6 +866,9 @@ module Aws::CloudWatch
|
|
781
866
|
PutCompositeAlarmInput.add_member(:insufficient_data_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "InsufficientDataActions"))
|
782
867
|
PutCompositeAlarmInput.add_member(:ok_actions, Shapes::ShapeRef.new(shape: ResourceList, location_name: "OKActions"))
|
783
868
|
PutCompositeAlarmInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
869
|
+
PutCompositeAlarmInput.add_member(:actions_suppressor, Shapes::ShapeRef.new(shape: AlarmArn, location_name: "ActionsSuppressor"))
|
870
|
+
PutCompositeAlarmInput.add_member(:actions_suppressor_wait_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorWaitPeriod"))
|
871
|
+
PutCompositeAlarmInput.add_member(:actions_suppressor_extension_period, Shapes::ShapeRef.new(shape: SuppressorPeriod, location_name: "ActionsSuppressorExtensionPeriod"))
|
784
872
|
PutCompositeAlarmInput.struct_class = Types::PutCompositeAlarmInput
|
785
873
|
|
786
874
|
PutDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, required: true, location_name: "DashboardName"))
|
@@ -798,6 +886,12 @@ module Aws::CloudWatch
|
|
798
886
|
|
799
887
|
PutInsightRuleOutput.struct_class = Types::PutInsightRuleOutput
|
800
888
|
|
889
|
+
PutManagedInsightRulesInput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRules, required: true, location_name: "ManagedRules"))
|
890
|
+
PutManagedInsightRulesInput.struct_class = Types::PutManagedInsightRulesInput
|
891
|
+
|
892
|
+
PutManagedInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
|
893
|
+
PutManagedInsightRulesOutput.struct_class = Types::PutManagedInsightRulesOutput
|
894
|
+
|
801
895
|
PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
|
802
896
|
PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
|
803
897
|
PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
|
@@ -833,6 +927,8 @@ module Aws::CloudWatch
|
|
833
927
|
PutMetricStreamInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "RoleArn"))
|
834
928
|
PutMetricStreamInput.add_member(:output_format, Shapes::ShapeRef.new(shape: MetricStreamOutputFormat, required: true, location_name: "OutputFormat"))
|
835
929
|
PutMetricStreamInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
930
|
+
PutMetricStreamInput.add_member(:statistics_configurations, Shapes::ShapeRef.new(shape: MetricStreamStatisticsConfigurations, location_name: "StatisticsConfigurations"))
|
931
|
+
PutMetricStreamInput.add_member(:include_linked_accounts_metrics, Shapes::ShapeRef.new(shape: IncludeLinkedAccountsMetrics, location_name: "IncludeLinkedAccountsMetrics"))
|
836
932
|
PutMetricStreamInput.struct_class = Types::PutMetricStreamInput
|
837
933
|
|
838
934
|
PutMetricStreamOutput.add_member(:arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "Arn"))
|
@@ -1025,6 +1121,12 @@ module Aws::CloudWatch
|
|
1025
1121
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1026
1122
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1027
1123
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
1124
|
+
o[:pager] = Aws::Pager.new(
|
1125
|
+
limit_key: "max_results",
|
1126
|
+
tokens: {
|
1127
|
+
"next_token" => "next_token"
|
1128
|
+
}
|
1129
|
+
)
|
1028
1130
|
end)
|
1029
1131
|
|
1030
1132
|
api.add_operation(:describe_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1164,6 +1266,23 @@ module Aws::CloudWatch
|
|
1164
1266
|
)
|
1165
1267
|
end)
|
1166
1268
|
|
1269
|
+
api.add_operation(:list_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
1270
|
+
o.name = "ListManagedInsightRules"
|
1271
|
+
o.http_method = "POST"
|
1272
|
+
o.http_request_uri = "/"
|
1273
|
+
o.input = Shapes::ShapeRef.new(shape: ListManagedInsightRulesInput)
|
1274
|
+
o.output = Shapes::ShapeRef.new(shape: ListManagedInsightRulesOutput)
|
1275
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1276
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1277
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
1278
|
+
o[:pager] = Aws::Pager.new(
|
1279
|
+
limit_key: "max_results",
|
1280
|
+
tokens: {
|
1281
|
+
"next_token" => "next_token"
|
1282
|
+
}
|
1283
|
+
)
|
1284
|
+
end)
|
1285
|
+
|
1167
1286
|
api.add_operation(:list_metric_streams, Seahorse::Model::Operation.new.tap do |o|
|
1168
1287
|
o.name = "ListMetricStreams"
|
1169
1288
|
o.http_method = "POST"
|
@@ -1251,6 +1370,16 @@ module Aws::CloudWatch
|
|
1251
1370
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1252
1371
|
end)
|
1253
1372
|
|
1373
|
+
api.add_operation(:put_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
1374
|
+
o.name = "PutManagedInsightRules"
|
1375
|
+
o.http_method = "POST"
|
1376
|
+
o.http_request_uri = "/"
|
1377
|
+
o.input = Shapes::ShapeRef.new(shape: PutManagedInsightRulesInput)
|
1378
|
+
o.output = Shapes::ShapeRef.new(shape: PutManagedInsightRulesOutput)
|
1379
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1380
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1381
|
+
end)
|
1382
|
+
|
1254
1383
|
api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
|
1255
1384
|
o.name = "PutMetricAlarm"
|
1256
1385
|
o.http_method = "POST"
|
@@ -102,7 +102,8 @@ module Aws::CloudWatch
|
|
102
102
|
data[:state_reason_data]
|
103
103
|
end
|
104
104
|
|
105
|
-
#
|
105
|
+
# Tracks the timestamp of any state update, even if `StateValue`
|
106
|
+
# doesn't change.
|
106
107
|
# @return [Time]
|
107
108
|
def state_updated_timestamp
|
108
109
|
data[:state_updated_timestamp]
|
@@ -114,6 +115,63 @@ module Aws::CloudWatch
|
|
114
115
|
data[:state_value]
|
115
116
|
end
|
116
117
|
|
118
|
+
# The timestamp of the last change to the alarm's `StateValue`.
|
119
|
+
# @return [Time]
|
120
|
+
def state_transitioned_timestamp
|
121
|
+
data[:state_transitioned_timestamp]
|
122
|
+
end
|
123
|
+
|
124
|
+
# When the value is `ALARM`, it means that the actions are suppressed
|
125
|
+
# because the suppressor alarm is in `ALARM` When the value is
|
126
|
+
# `WaitPeriod`, it means that the actions are suppressed because the
|
127
|
+
# composite alarm is waiting for the suppressor alarm to go into into
|
128
|
+
# the `ALARM` state. The maximum waiting time is as specified in
|
129
|
+
# `ActionsSuppressorWaitPeriod`. After this time, the composite alarm
|
130
|
+
# performs its actions. When the value is `ExtensionPeriod`, it means
|
131
|
+
# that the actions are suppressed because the composite alarm is waiting
|
132
|
+
# after the suppressor alarm went out of the `ALARM` state. The maximum
|
133
|
+
# waiting time is as specified in `ActionsSuppressorExtensionPeriod`.
|
134
|
+
# After this time, the composite alarm performs its actions.
|
135
|
+
# @return [String]
|
136
|
+
def actions_suppressed_by
|
137
|
+
data[:actions_suppressed_by]
|
138
|
+
end
|
139
|
+
|
140
|
+
# Captures the reason for action suppression.
|
141
|
+
# @return [String]
|
142
|
+
def actions_suppressed_reason
|
143
|
+
data[:actions_suppressed_reason]
|
144
|
+
end
|
145
|
+
|
146
|
+
# Actions will be suppressed if the suppressor alarm is in the `ALARM`
|
147
|
+
# state. `ActionsSuppressor` can be an AlarmName or an Amazon Resource
|
148
|
+
# Name (ARN) from an existing alarm.
|
149
|
+
# @return [String]
|
150
|
+
def actions_suppressor
|
151
|
+
data[:actions_suppressor]
|
152
|
+
end
|
153
|
+
|
154
|
+
# The maximum time in seconds that the composite alarm waits for the
|
155
|
+
# suppressor alarm to go into the `ALARM` state. After this time, the
|
156
|
+
# composite alarm performs its actions.
|
157
|
+
#
|
158
|
+
# `WaitPeriod` is required only when `ActionsSuppressor` is specified.
|
159
|
+
# @return [Integer]
|
160
|
+
def actions_suppressor_wait_period
|
161
|
+
data[:actions_suppressor_wait_period]
|
162
|
+
end
|
163
|
+
|
164
|
+
# The maximum time in seconds that the composite alarm waits after
|
165
|
+
# suppressor alarm goes out of the `ALARM` state. After this time, the
|
166
|
+
# composite alarm performs its actions.
|
167
|
+
#
|
168
|
+
# `ExtensionPeriod` is required only when `ActionsSuppressor` is
|
169
|
+
# specified.
|
170
|
+
# @return [Integer]
|
171
|
+
def actions_suppressor_extension_period
|
172
|
+
data[:actions_suppressor_extension_period]
|
173
|
+
end
|
174
|
+
|
117
175
|
# @!endgroup
|
118
176
|
|
119
177
|
# @return [Client]
|
@@ -128,7 +186,9 @@ module Aws::CloudWatch
|
|
128
186
|
#
|
129
187
|
# @return [self]
|
130
188
|
def load
|
131
|
-
resp =
|
189
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
190
|
+
@client.describe_alarms(alarm_names: [@name])
|
191
|
+
end
|
132
192
|
@data = resp.composite_alarms[0]
|
133
193
|
self
|
134
194
|
end
|
@@ -173,7 +233,9 @@ module Aws::CloudWatch
|
|
173
233
|
options, params = separate_params_and_options(options)
|
174
234
|
waiter = Waiters::CompositeAlarmExists.new(options)
|
175
235
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
176
|
-
|
236
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
237
|
+
waiter.wait(params.merge(alarm_names: [@name]))
|
238
|
+
end
|
177
239
|
CompositeAlarm.new({
|
178
240
|
name: @name,
|
179
241
|
client: @client
|
@@ -274,7 +336,9 @@ module Aws::CloudWatch
|
|
274
336
|
:retry
|
275
337
|
end
|
276
338
|
end
|
277
|
-
Aws::
|
339
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
340
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
341
|
+
end
|
278
342
|
end
|
279
343
|
|
280
344
|
# @!group Actions
|
@@ -286,7 +350,9 @@ module Aws::CloudWatch
|
|
286
350
|
# @return [EmptyStructure]
|
287
351
|
def delete(options = {})
|
288
352
|
options = Aws::Util.deep_merge(options, alarm_names: [@name])
|
289
|
-
resp =
|
353
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
354
|
+
@client.delete_alarms(options)
|
355
|
+
end
|
290
356
|
resp.data
|
291
357
|
end
|
292
358
|
|
@@ -325,7 +391,9 @@ module Aws::CloudWatch
|
|
325
391
|
# @return [Types::DescribeAlarmHistoryOutput]
|
326
392
|
def describe_history(options = {})
|
327
393
|
options = options.merge(alarm_name: @name)
|
328
|
-
resp =
|
394
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
395
|
+
@client.describe_alarm_history(options)
|
396
|
+
end
|
329
397
|
resp.data
|
330
398
|
end
|
331
399
|
|
@@ -336,7 +404,9 @@ module Aws::CloudWatch
|
|
336
404
|
# @return [EmptyStructure]
|
337
405
|
def disable_actions(options = {})
|
338
406
|
options = Aws::Util.deep_merge(options, alarm_names: [@name])
|
339
|
-
resp =
|
407
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
408
|
+
@client.disable_alarm_actions(options)
|
409
|
+
end
|
340
410
|
resp.data
|
341
411
|
end
|
342
412
|
|
@@ -347,7 +417,9 @@ module Aws::CloudWatch
|
|
347
417
|
# @return [EmptyStructure]
|
348
418
|
def enable_actions(options = {})
|
349
419
|
options = Aws::Util.deep_merge(options, alarm_names: [@name])
|
350
|
-
resp =
|
420
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
421
|
+
@client.enable_alarm_actions(options)
|
422
|
+
end
|
351
423
|
resp.data
|
352
424
|
end
|
353
425
|
|
@@ -375,7 +447,9 @@ module Aws::CloudWatch
|
|
375
447
|
# @return [EmptyStructure]
|
376
448
|
def set_state(options = {})
|
377
449
|
options = options.merge(alarm_name: @name)
|
378
|
-
resp =
|
450
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
451
|
+
@client.set_alarm_state(options)
|
452
|
+
end
|
379
453
|
resp.data
|
380
454
|
end
|
381
455
|
|
@@ -439,7 +513,9 @@ module Aws::CloudWatch
|
|
439
513
|
batch.each do |item|
|
440
514
|
params[:alarm_names] << item.name
|
441
515
|
end
|
442
|
-
|
516
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
517
|
+
batch[0].client.delete_alarms(params)
|
518
|
+
end
|
443
519
|
end
|
444
520
|
nil
|
445
521
|
end
|
@@ -453,7 +529,9 @@ module Aws::CloudWatch
|
|
453
529
|
batch.each do |item|
|
454
530
|
params[:alarm_names] << item.name
|
455
531
|
end
|
456
|
-
|
532
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
533
|
+
batch[0].client.disable_alarm_actions(params)
|
534
|
+
end
|
457
535
|
end
|
458
536
|
nil
|
459
537
|
end
|
@@ -467,7 +545,9 @@ module Aws::CloudWatch
|
|
467
545
|
batch.each do |item|
|
468
546
|
params[:alarm_names] << item.name
|
469
547
|
end
|
470
|
-
|
548
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
549
|
+
batch[0].client.enable_alarm_actions(params)
|
550
|
+
end
|
471
551
|
end
|
472
552
|
nil
|
473
553
|
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CloudWatch
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::CloudWatch
|
11
|
+
class EndpointProvider
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
16
|
+
endpoint = parameters.endpoint
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
|
+
end
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
|
+
end
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
+
end
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
|
+
end
|
41
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
|
+
end
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
|
+
end
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://monitoring.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
50
|
+
end
|
51
|
+
end
|
52
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
53
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
54
|
+
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|