aws-sdk-devopsguru 1.27.0 → 1.29.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b36b88c48d359b4afb5f8c66785a74ca6861a17cb34d13e1581657b051f638b7
4
- data.tar.gz: 47706df23d05578836620697d61979d28293c2e67921ebc05fd96d37dd643e4d
3
+ metadata.gz: 26db4897826c1d930bd18be5f5763d68c27b51c2b3cc7bad11c38fa0dc286102
4
+ data.tar.gz: cf83147e42c7d7d5aa58192f3c0fd16159174383bf3bb0a66e422444adb52903
5
5
  SHA512:
6
- metadata.gz: 29e0ccbc6573c3054e7939863e79b628dbdc7c5bb0406c20016cd6a9e2db1461a34bd9bbb33c30b7006e093a688b52661118699d768387872f41bc19c1d6992e
7
- data.tar.gz: 685a6b819e4389dac474f57ab2dea74a8810081abb873ea4a3d11c1368e617ef578f2b02a8bf5f8b4f085f28571d795eceeac231145996035bce2dbe8f832bff
6
+ metadata.gz: c74c615248963be626c49c20ef681318bd12603ec474a6430c22d4392644144286291b1c95c35a43c3a8e4fff50860d22c249d78318d68016db7e233972a2df8
7
+ data.tar.gz: 880b1a1380fca2897a1a94ccc9c14a3778b4d3744076f9a5b157828d6685911a75187a38f08adf9a5e3d74ee15d40de4e61df10665015a44cccb09c0bc2b7909
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.29.0 (2023-02-01)
5
+ ------------------
6
+
7
+ * Feature - This release adds filter support ListAnomalyForInsight API.
8
+
9
+ 1.28.0 (2023-01-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
15
+
4
16
  1.27.0 (2022-10-25)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.27.0
1
+ 1.29.0
@@ -1199,6 +1199,9 @@ module Aws::DevOpsGuru
1199
1199
  # @option params [String] :account_id
1200
1200
  # The ID of the Amazon Web Services account.
1201
1201
  #
1202
+ # @option params [Types::ListAnomaliesForInsightFilters] :filters
1203
+ # Specifies one or more service names that are used to list anomalies.
1204
+ #
1202
1205
  # @return [Types::ListAnomaliesForInsightResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1203
1206
  #
1204
1207
  # * {Types::ListAnomaliesForInsightResponse#proactive_anomalies #proactive_anomalies} => Array<Types::ProactiveAnomalySummary>
@@ -1218,6 +1221,11 @@ module Aws::DevOpsGuru
1218
1221
  # max_results: 1,
1219
1222
  # next_token: "UuidNextToken",
1220
1223
  # account_id: "AwsAccountId",
1224
+ # filters: {
1225
+ # service_collection: {
1226
+ # service_names: ["API_GATEWAY"], # accepts API_GATEWAY, APPLICATION_ELB, AUTO_SCALING_GROUP, CLOUD_FRONT, DYNAMO_DB, EC2, ECS, EKS, ELASTIC_BEANSTALK, ELASTI_CACHE, ELB, ES, KINESIS, LAMBDA, NAT_GATEWAY, NETWORK_ELB, RDS, REDSHIFT, ROUTE_53, S3, SAGE_MAKER, SNS, SQS, STEP_FUNCTIONS, SWF
1227
+ # },
1228
+ # },
1221
1229
  # })
1222
1230
  #
1223
1231
  # @example Response structure
@@ -2324,7 +2332,7 @@ module Aws::DevOpsGuru
2324
2332
  params: params,
2325
2333
  config: config)
2326
2334
  context[:gem_name] = 'aws-sdk-devopsguru'
2327
- context[:gem_version] = '1.27.0'
2335
+ context[:gem_version] = '1.29.0'
2328
2336
  Seahorse::Client::Request.new(handlers, context)
2329
2337
  end
2330
2338
 
@@ -132,6 +132,7 @@ module Aws::DevOpsGuru
132
132
  InsightTimeRange = Shapes::StructureShape.new(name: 'InsightTimeRange')
133
133
  InsightType = Shapes::StringShape.new(name: 'InsightType')
134
134
  InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
135
+ ListAnomaliesForInsightFilters = Shapes::StructureShape.new(name: 'ListAnomaliesForInsightFilters')
135
136
  ListAnomaliesForInsightMaxResults = Shapes::IntegerShape.new(name: 'ListAnomaliesForInsightMaxResults')
136
137
  ListAnomaliesForInsightRequest = Shapes::StructureShape.new(name: 'ListAnomaliesForInsightRequest')
137
138
  ListAnomaliesForInsightResponse = Shapes::StructureShape.new(name: 'ListAnomaliesForInsightResponse')
@@ -627,11 +628,15 @@ module Aws::DevOpsGuru
627
628
  InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location: "header", location_name: "Retry-After"))
628
629
  InternalServerException.struct_class = Types::InternalServerException
629
630
 
631
+ ListAnomaliesForInsightFilters.add_member(:service_collection, Shapes::ShapeRef.new(shape: ServiceCollection, location_name: "ServiceCollection"))
632
+ ListAnomaliesForInsightFilters.struct_class = Types::ListAnomaliesForInsightFilters
633
+
630
634
  ListAnomaliesForInsightRequest.add_member(:insight_id, Shapes::ShapeRef.new(shape: InsightId, required: true, location: "uri", location_name: "InsightId"))
631
635
  ListAnomaliesForInsightRequest.add_member(:start_time_range, Shapes::ShapeRef.new(shape: StartTimeRange, location_name: "StartTimeRange"))
632
636
  ListAnomaliesForInsightRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAnomaliesForInsightMaxResults, location_name: "MaxResults"))
633
637
  ListAnomaliesForInsightRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: UuidNextToken, location_name: "NextToken"))
634
638
  ListAnomaliesForInsightRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AwsAccountId, location_name: "AccountId"))
639
+ ListAnomaliesForInsightRequest.add_member(:filters, Shapes::ShapeRef.new(shape: ListAnomaliesForInsightFilters, location_name: "Filters"))
635
640
  ListAnomaliesForInsightRequest.struct_class = Types::ListAnomaliesForInsightRequest
636
641
 
637
642
  ListAnomaliesForInsightResponse.add_member(:proactive_anomalies, Shapes::ShapeRef.new(shape: ProactiveAnomalies, location_name: "ProactiveAnomalies"))
@@ -50,6 +50,9 @@ module Aws::DevOpsGuru
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
53
56
  self[:use_dual_stack] = options[:use_dual_stack]
54
57
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
58
  if self[:use_dual_stack].nil?
@@ -9,104 +9,43 @@
9
9
 
10
10
  module Aws::DevOpsGuru
11
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
- )
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ 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"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://devops-guru-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ return Aws::Endpoints::Endpoint.new(url: "https://devops-guru-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ end
37
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
38
+ end
39
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
+ return Aws::Endpoints::Endpoint.new(url: "https://devops-guru.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
+ end
45
+ return Aws::Endpoints::Endpoint.new(url: "https://devops-guru.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
46
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
47
+ raise ArgumentError, 'No endpoint could be resolved'
24
48
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
49
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
- dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2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ludCJ9XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3Ii
103
- OiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9l
104
- cyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsi
105
- Y29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vZGV2
106
- b3BzLWd1cnUue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3VsdCNkbnNTdWZmaXh9
107
- IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwidHlwZSI6ImVuZHBv
108
- aW50In1dfV19
109
-
110
- JSON
111
50
  end
112
51
  end