aws-sdk-cloudwatch 1.66.0 → 1.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudwatch/client.rb +123 -3
- data/lib/aws-sdk-cloudwatch/client_api.rb +78 -0
- data/lib/aws-sdk-cloudwatch/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-cloudwatch/endpoint_provider.rb +117 -0
- data/lib/aws-sdk-cloudwatch/endpoints.rb +547 -0
- data/lib/aws-sdk-cloudwatch/plugins/endpoints.rb +144 -0
- data/lib/aws-sdk-cloudwatch/types.rb +204 -3
- data/lib/aws-sdk-cloudwatch.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b718501f10f05a67dc0bf8071280afd3167e681e12f1bb0729a4fc85d25d9b1
|
4
|
+
data.tar.gz: 1b3b3042a63873bdccd7600dae9d1aee9a484fba08bbb54b93ae4cc811f79c48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78f97ba774f9a70be7def6b906ce46ffe8bd896902230334fe89ce100faef406b1a7947648c55bf60bde2844cf555f65fc49185588ac417e90e94ebe5e712f4c
|
7
|
+
data.tar.gz: 2ced8d8861fb4fbe6d2fbc1ad2b88346786ba08a71315cdff96328adaf690c929ee5268e3fb92bb9f26cd985489779f30fcab79d7543c439c7788e3caa20388b
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.68.0 (2022-10-25)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.67.0 (2022-08-18)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Add support for managed Contributor Insights Rules
|
13
|
+
|
4
14
|
1.66.0 (2022-08-09)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.68.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:cloudwatch)
|
@@ -79,8 +79,9 @@ module Aws::CloudWatch
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::Query)
|
84
|
+
add_plugin(Aws::CloudWatch::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -287,6 +288,19 @@ module Aws::CloudWatch
|
|
287
288
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
288
289
|
# requests are made, and retries are disabled.
|
289
290
|
#
|
291
|
+
# @option options [Aws::TokenProvider] :token_provider
|
292
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
293
|
+
# following classes:
|
294
|
+
#
|
295
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
296
|
+
# tokens.
|
297
|
+
#
|
298
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
299
|
+
# access token generated from `aws login`.
|
300
|
+
#
|
301
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
302
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
303
|
+
#
|
290
304
|
# @option options [Boolean] :use_dualstack_endpoint
|
291
305
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
292
306
|
# will be used if available.
|
@@ -300,6 +314,9 @@ module Aws::CloudWatch
|
|
300
314
|
# When `true`, request parameters are validated before
|
301
315
|
# sending the request.
|
302
316
|
#
|
317
|
+
# @option options [Aws::CloudWatch::EndpointProvider] :endpoint_provider
|
318
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::CloudWatch::EndpointParameters`
|
319
|
+
#
|
303
320
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
304
321
|
# requests through. Formatted like 'http://proxy.com:123'.
|
305
322
|
#
|
@@ -1044,6 +1061,8 @@ module Aws::CloudWatch
|
|
1044
1061
|
# * {Types::DescribeAnomalyDetectorsOutput#anomaly_detectors #anomaly_detectors} => Array<Types::AnomalyDetector>
|
1045
1062
|
# * {Types::DescribeAnomalyDetectorsOutput#next_token #next_token} => String
|
1046
1063
|
#
|
1064
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1065
|
+
#
|
1047
1066
|
# @example Request syntax with placeholder values
|
1048
1067
|
#
|
1049
1068
|
# resp = client.describe_anomaly_detectors({
|
@@ -1145,6 +1164,7 @@ module Aws::CloudWatch
|
|
1145
1164
|
# resp.insight_rules[0].state #=> String
|
1146
1165
|
# resp.insight_rules[0].schema #=> String
|
1147
1166
|
# resp.insight_rules[0].definition #=> String
|
1167
|
+
# resp.insight_rules[0].managed_rule #=> Boolean
|
1148
1168
|
#
|
1149
1169
|
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DescribeInsightRules AWS API Documentation
|
1150
1170
|
#
|
@@ -2090,6 +2110,55 @@ module Aws::CloudWatch
|
|
2090
2110
|
req.send_request(options)
|
2091
2111
|
end
|
2092
2112
|
|
2113
|
+
# Returns a list that contains the number of managed Contributor
|
2114
|
+
# Insights rules in your account.
|
2115
|
+
#
|
2116
|
+
# @option params [required, String] :resource_arn
|
2117
|
+
# The ARN of an Amazon Web Services resource that has managed
|
2118
|
+
# Contributor Insights rules.
|
2119
|
+
#
|
2120
|
+
# @option params [String] :next_token
|
2121
|
+
# Include this value to get the next set of rules if the value was
|
2122
|
+
# returned by the previous operation.
|
2123
|
+
#
|
2124
|
+
# @option params [Integer] :max_results
|
2125
|
+
# The maximum number of results to return in one operation. If you omit
|
2126
|
+
# this parameter, the default number is used. The default number is
|
2127
|
+
# `100`.
|
2128
|
+
#
|
2129
|
+
# @return [Types::ListManagedInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2130
|
+
#
|
2131
|
+
# * {Types::ListManagedInsightRulesOutput#managed_rules #managed_rules} => Array<Types::ManagedRuleDescription>
|
2132
|
+
# * {Types::ListManagedInsightRulesOutput#next_token #next_token} => String
|
2133
|
+
#
|
2134
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2135
|
+
#
|
2136
|
+
# @example Request syntax with placeholder values
|
2137
|
+
#
|
2138
|
+
# resp = client.list_managed_insight_rules({
|
2139
|
+
# resource_arn: "AmazonResourceName", # required
|
2140
|
+
# next_token: "NextToken",
|
2141
|
+
# max_results: 1,
|
2142
|
+
# })
|
2143
|
+
#
|
2144
|
+
# @example Response structure
|
2145
|
+
#
|
2146
|
+
# resp.managed_rules #=> Array
|
2147
|
+
# resp.managed_rules[0].template_name #=> String
|
2148
|
+
# resp.managed_rules[0].resource_arn #=> String
|
2149
|
+
# resp.managed_rules[0].rule_state.rule_name #=> String
|
2150
|
+
# resp.managed_rules[0].rule_state.state #=> String
|
2151
|
+
# resp.next_token #=> String
|
2152
|
+
#
|
2153
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/ListManagedInsightRules AWS API Documentation
|
2154
|
+
#
|
2155
|
+
# @overload list_managed_insight_rules(params = {})
|
2156
|
+
# @param [Hash] params ({})
|
2157
|
+
def list_managed_insight_rules(params = {}, options = {})
|
2158
|
+
req = build_request(:list_managed_insight_rules, params)
|
2159
|
+
req.send_request(options)
|
2160
|
+
end
|
2161
|
+
|
2093
2162
|
# Returns a list of metric streams in this account.
|
2094
2163
|
#
|
2095
2164
|
# @option params [String] :next_token
|
@@ -2753,6 +2822,57 @@ module Aws::CloudWatch
|
|
2753
2822
|
req.send_request(options)
|
2754
2823
|
end
|
2755
2824
|
|
2825
|
+
# Creates a managed Contributor Insights rule for a specified Amazon Web
|
2826
|
+
# Services resource. When you enable a managed rule, you create a
|
2827
|
+
# Contributor Insights rule that collects data from Amazon Web Services
|
2828
|
+
# services. You cannot edit these rules with `PutInsightRule`. The rules
|
2829
|
+
# can be enabled, disabled, and deleted using `EnableInsightRules`,
|
2830
|
+
# `DisableInsightRules`, and `DeleteInsightRules`. If a previously
|
2831
|
+
# created managed rule is currently disabled, a subsequent call to this
|
2832
|
+
# API will re-enable it. Use `ListManagedInsightRules` to describe all
|
2833
|
+
# available rules.
|
2834
|
+
#
|
2835
|
+
# @option params [required, Array<Types::ManagedRule>] :managed_rules
|
2836
|
+
# A list of `ManagedRules` to enable.
|
2837
|
+
#
|
2838
|
+
# @return [Types::PutManagedInsightRulesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2839
|
+
#
|
2840
|
+
# * {Types::PutManagedInsightRulesOutput#failures #failures} => Array<Types::PartialFailure>
|
2841
|
+
#
|
2842
|
+
# @example Request syntax with placeholder values
|
2843
|
+
#
|
2844
|
+
# resp = client.put_managed_insight_rules({
|
2845
|
+
# managed_rules: [ # required
|
2846
|
+
# {
|
2847
|
+
# template_name: "TemplateName", # required
|
2848
|
+
# resource_arn: "AmazonResourceName", # required
|
2849
|
+
# tags: [
|
2850
|
+
# {
|
2851
|
+
# key: "TagKey", # required
|
2852
|
+
# value: "TagValue", # required
|
2853
|
+
# },
|
2854
|
+
# ],
|
2855
|
+
# },
|
2856
|
+
# ],
|
2857
|
+
# })
|
2858
|
+
#
|
2859
|
+
# @example Response structure
|
2860
|
+
#
|
2861
|
+
# resp.failures #=> Array
|
2862
|
+
# resp.failures[0].failure_resource #=> String
|
2863
|
+
# resp.failures[0].exception_type #=> String
|
2864
|
+
# resp.failures[0].failure_code #=> String
|
2865
|
+
# resp.failures[0].failure_description #=> String
|
2866
|
+
#
|
2867
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/PutManagedInsightRules AWS API Documentation
|
2868
|
+
#
|
2869
|
+
# @overload put_managed_insight_rules(params = {})
|
2870
|
+
# @param [Hash] params ({})
|
2871
|
+
def put_managed_insight_rules(params = {}, options = {})
|
2872
|
+
req = build_request(:put_managed_insight_rules, params)
|
2873
|
+
req.send_request(options)
|
2874
|
+
end
|
2875
|
+
|
2756
2876
|
# Creates or updates an alarm and associates it with the specified
|
2757
2877
|
# metric, metric math expression, or anomaly detection model.
|
2758
2878
|
#
|
@@ -3669,7 +3789,7 @@ module Aws::CloudWatch
|
|
3669
3789
|
params: params,
|
3670
3790
|
config: config)
|
3671
3791
|
context[:gem_name] = 'aws-sdk-cloudwatch'
|
3672
|
-
context[:gem_version] = '1.
|
3792
|
+
context[:gem_version] = '1.68.0'
|
3673
3793
|
Seahorse::Client::Request.new(handlers, context)
|
3674
3794
|
end
|
3675
3795
|
|
@@ -133,6 +133,7 @@ module Aws::CloudWatch
|
|
133
133
|
InsightRuleContributorKeys = Shapes::ListShape.new(name: 'InsightRuleContributorKeys')
|
134
134
|
InsightRuleContributors = Shapes::ListShape.new(name: 'InsightRuleContributors')
|
135
135
|
InsightRuleDefinition = Shapes::StringShape.new(name: 'InsightRuleDefinition')
|
136
|
+
InsightRuleIsManaged = Shapes::BooleanShape.new(name: 'InsightRuleIsManaged')
|
136
137
|
InsightRuleMaxResults = Shapes::IntegerShape.new(name: 'InsightRuleMaxResults')
|
137
138
|
InsightRuleMetricDatapoint = Shapes::StructureShape.new(name: 'InsightRuleMetricDatapoint')
|
138
139
|
InsightRuleMetricDatapoints = Shapes::ListShape.new(name: 'InsightRuleMetricDatapoints')
|
@@ -158,6 +159,8 @@ module Aws::CloudWatch
|
|
158
159
|
LimitExceededFault = Shapes::StructureShape.new(name: 'LimitExceededFault')
|
159
160
|
ListDashboardsInput = Shapes::StructureShape.new(name: 'ListDashboardsInput')
|
160
161
|
ListDashboardsOutput = Shapes::StructureShape.new(name: 'ListDashboardsOutput')
|
162
|
+
ListManagedInsightRulesInput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesInput')
|
163
|
+
ListManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'ListManagedInsightRulesOutput')
|
161
164
|
ListMetricStreamsInput = Shapes::StructureShape.new(name: 'ListMetricStreamsInput')
|
162
165
|
ListMetricStreamsMaxResults = Shapes::IntegerShape.new(name: 'ListMetricStreamsMaxResults')
|
163
166
|
ListMetricStreamsOutput = Shapes::StructureShape.new(name: 'ListMetricStreamsOutput')
|
@@ -165,6 +168,11 @@ module Aws::CloudWatch
|
|
165
168
|
ListMetricsOutput = Shapes::StructureShape.new(name: 'ListMetricsOutput')
|
166
169
|
ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
|
167
170
|
ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
|
171
|
+
ManagedRule = Shapes::StructureShape.new(name: 'ManagedRule')
|
172
|
+
ManagedRuleDescription = Shapes::StructureShape.new(name: 'ManagedRuleDescription')
|
173
|
+
ManagedRuleDescriptions = Shapes::ListShape.new(name: 'ManagedRuleDescriptions')
|
174
|
+
ManagedRuleState = Shapes::StructureShape.new(name: 'ManagedRuleState')
|
175
|
+
ManagedRules = Shapes::ListShape.new(name: 'ManagedRules')
|
168
176
|
MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
|
169
177
|
MaxReturnedResultsCount = Shapes::IntegerShape.new(name: 'MaxReturnedResultsCount')
|
170
178
|
Message = Shapes::StringShape.new(name: 'Message')
|
@@ -217,6 +225,8 @@ module Aws::CloudWatch
|
|
217
225
|
PutDashboardOutput = Shapes::StructureShape.new(name: 'PutDashboardOutput')
|
218
226
|
PutInsightRuleInput = Shapes::StructureShape.new(name: 'PutInsightRuleInput')
|
219
227
|
PutInsightRuleOutput = Shapes::StructureShape.new(name: 'PutInsightRuleOutput')
|
228
|
+
PutManagedInsightRulesInput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesInput')
|
229
|
+
PutManagedInsightRulesOutput = Shapes::StructureShape.new(name: 'PutManagedInsightRulesOutput')
|
220
230
|
PutMetricAlarmInput = Shapes::StructureShape.new(name: 'PutMetricAlarmInput')
|
221
231
|
PutMetricDataInput = Shapes::StructureShape.new(name: 'PutMetricDataInput')
|
222
232
|
PutMetricStreamInput = Shapes::StructureShape.new(name: 'PutMetricStreamInput')
|
@@ -256,6 +266,7 @@ module Aws::CloudWatch
|
|
256
266
|
TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
|
257
267
|
TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
|
258
268
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
269
|
+
TemplateName = Shapes::StringShape.new(name: 'TemplateName')
|
259
270
|
Threshold = Shapes::FloatShape.new(name: 'Threshold')
|
260
271
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
261
272
|
Timestamps = Shapes::ListShape.new(name: 'Timestamps')
|
@@ -571,6 +582,7 @@ module Aws::CloudWatch
|
|
571
582
|
InsightRule.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
|
572
583
|
InsightRule.add_member(:schema, Shapes::ShapeRef.new(shape: InsightRuleSchema, required: true, location_name: "Schema"))
|
573
584
|
InsightRule.add_member(:definition, Shapes::ShapeRef.new(shape: InsightRuleDefinition, required: true, location_name: "Definition"))
|
585
|
+
InsightRule.add_member(:managed_rule, Shapes::ShapeRef.new(shape: InsightRuleIsManaged, location_name: "ManagedRule"))
|
574
586
|
InsightRule.struct_class = Types::InsightRule
|
575
587
|
|
576
588
|
InsightRuleContributor.add_member(:keys, Shapes::ShapeRef.new(shape: InsightRuleContributorKeys, required: true, location_name: "Keys"))
|
@@ -639,6 +651,15 @@ module Aws::CloudWatch
|
|
639
651
|
ListDashboardsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
640
652
|
ListDashboardsOutput.struct_class = Types::ListDashboardsOutput
|
641
653
|
|
654
|
+
ListManagedInsightRulesInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
655
|
+
ListManagedInsightRulesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
656
|
+
ListManagedInsightRulesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: InsightRuleMaxResults, location_name: "MaxResults"))
|
657
|
+
ListManagedInsightRulesInput.struct_class = Types::ListManagedInsightRulesInput
|
658
|
+
|
659
|
+
ListManagedInsightRulesOutput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRuleDescriptions, location_name: "ManagedRules"))
|
660
|
+
ListManagedInsightRulesOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
661
|
+
ListManagedInsightRulesOutput.struct_class = Types::ListManagedInsightRulesOutput
|
662
|
+
|
642
663
|
ListMetricStreamsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
643
664
|
ListMetricStreamsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListMetricStreamsMaxResults, location_name: "MaxResults"))
|
644
665
|
ListMetricStreamsInput.struct_class = Types::ListMetricStreamsInput
|
@@ -664,6 +685,24 @@ module Aws::CloudWatch
|
|
664
685
|
ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
665
686
|
ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
|
666
687
|
|
688
|
+
ManagedRule.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, required: true, location_name: "TemplateName"))
|
689
|
+
ManagedRule.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
690
|
+
ManagedRule.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
691
|
+
ManagedRule.struct_class = Types::ManagedRule
|
692
|
+
|
693
|
+
ManagedRuleDescription.add_member(:template_name, Shapes::ShapeRef.new(shape: TemplateName, location_name: "TemplateName"))
|
694
|
+
ManagedRuleDescription.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "ResourceARN"))
|
695
|
+
ManagedRuleDescription.add_member(:rule_state, Shapes::ShapeRef.new(shape: ManagedRuleState, location_name: "RuleState"))
|
696
|
+
ManagedRuleDescription.struct_class = Types::ManagedRuleDescription
|
697
|
+
|
698
|
+
ManagedRuleDescriptions.member = Shapes::ShapeRef.new(shape: ManagedRuleDescription)
|
699
|
+
|
700
|
+
ManagedRuleState.add_member(:rule_name, Shapes::ShapeRef.new(shape: InsightRuleName, required: true, location_name: "RuleName"))
|
701
|
+
ManagedRuleState.add_member(:state, Shapes::ShapeRef.new(shape: InsightRuleState, required: true, location_name: "State"))
|
702
|
+
ManagedRuleState.struct_class = Types::ManagedRuleState
|
703
|
+
|
704
|
+
ManagedRules.member = Shapes::ShapeRef.new(shape: ManagedRule)
|
705
|
+
|
667
706
|
MessageData.add_member(:code, Shapes::ShapeRef.new(shape: MessageDataCode, location_name: "Code"))
|
668
707
|
MessageData.add_member(:value, Shapes::ShapeRef.new(shape: MessageDataValue, location_name: "Value"))
|
669
708
|
MessageData.struct_class = Types::MessageData
|
@@ -831,6 +870,12 @@ module Aws::CloudWatch
|
|
831
870
|
|
832
871
|
PutInsightRuleOutput.struct_class = Types::PutInsightRuleOutput
|
833
872
|
|
873
|
+
PutManagedInsightRulesInput.add_member(:managed_rules, Shapes::ShapeRef.new(shape: ManagedRules, required: true, location_name: "ManagedRules"))
|
874
|
+
PutManagedInsightRulesInput.struct_class = Types::PutManagedInsightRulesInput
|
875
|
+
|
876
|
+
PutManagedInsightRulesOutput.add_member(:failures, Shapes::ShapeRef.new(shape: BatchFailures, location_name: "Failures"))
|
877
|
+
PutManagedInsightRulesOutput.struct_class = Types::PutManagedInsightRulesOutput
|
878
|
+
|
834
879
|
PutMetricAlarmInput.add_member(:alarm_name, Shapes::ShapeRef.new(shape: AlarmName, required: true, location_name: "AlarmName"))
|
835
880
|
PutMetricAlarmInput.add_member(:alarm_description, Shapes::ShapeRef.new(shape: AlarmDescription, location_name: "AlarmDescription"))
|
836
881
|
PutMetricAlarmInput.add_member(:actions_enabled, Shapes::ShapeRef.new(shape: ActionsEnabled, location_name: "ActionsEnabled"))
|
@@ -1059,6 +1104,12 @@ module Aws::CloudWatch
|
|
1059
1104
|
o.errors << Shapes::ShapeRef.new(shape: InternalServiceFault)
|
1060
1105
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1061
1106
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
|
1107
|
+
o[:pager] = Aws::Pager.new(
|
1108
|
+
limit_key: "max_results",
|
1109
|
+
tokens: {
|
1110
|
+
"next_token" => "next_token"
|
1111
|
+
}
|
1112
|
+
)
|
1062
1113
|
end)
|
1063
1114
|
|
1064
1115
|
api.add_operation(:describe_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1198,6 +1249,23 @@ module Aws::CloudWatch
|
|
1198
1249
|
)
|
1199
1250
|
end)
|
1200
1251
|
|
1252
|
+
api.add_operation(:list_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
1253
|
+
o.name = "ListManagedInsightRules"
|
1254
|
+
o.http_method = "POST"
|
1255
|
+
o.http_request_uri = "/"
|
1256
|
+
o.input = Shapes::ShapeRef.new(shape: ListManagedInsightRulesInput)
|
1257
|
+
o.output = Shapes::ShapeRef.new(shape: ListManagedInsightRulesOutput)
|
1258
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1259
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1260
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidNextToken)
|
1261
|
+
o[:pager] = Aws::Pager.new(
|
1262
|
+
limit_key: "max_results",
|
1263
|
+
tokens: {
|
1264
|
+
"next_token" => "next_token"
|
1265
|
+
}
|
1266
|
+
)
|
1267
|
+
end)
|
1268
|
+
|
1201
1269
|
api.add_operation(:list_metric_streams, Seahorse::Model::Operation.new.tap do |o|
|
1202
1270
|
o.name = "ListMetricStreams"
|
1203
1271
|
o.http_method = "POST"
|
@@ -1285,6 +1353,16 @@ module Aws::CloudWatch
|
|
1285
1353
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1286
1354
|
end)
|
1287
1355
|
|
1356
|
+
api.add_operation(:put_managed_insight_rules, Seahorse::Model::Operation.new.tap do |o|
|
1357
|
+
o.name = "PutManagedInsightRules"
|
1358
|
+
o.http_method = "POST"
|
1359
|
+
o.http_request_uri = "/"
|
1360
|
+
o.input = Shapes::ShapeRef.new(shape: PutManagedInsightRulesInput)
|
1361
|
+
o.output = Shapes::ShapeRef.new(shape: PutManagedInsightRulesOutput)
|
1362
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1363
|
+
o.errors << Shapes::ShapeRef.new(shape: MissingRequiredParameterException)
|
1364
|
+
end)
|
1365
|
+
|
1288
1366
|
api.add_operation(:put_metric_alarm, Seahorse::Model::Operation.new.tap do |o|
|
1289
1367
|
o.name = "PutMetricAlarm"
|
1290
1368
|
o.http_method = "POST"
|
@@ -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,117 @@
|
|
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 initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb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