aws-sdk-guardduty 1.61.0 → 1.63.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: 2df1ae31bc9a1f13d2d647b6b8c3a10e16c8da4ea0ea16e607ca7877a7d17777
4
- data.tar.gz: 8c7c4ad387785604b3d61dac52f813a10b1e4fa4fa5ffe25c05f86405736d664
3
+ metadata.gz: e63259ffa20175ae1ea1d5059ab2ff4f5596f7224ed6136b4682d2bc7b7d14ed
4
+ data.tar.gz: b78fc1777ef25696a18eece688161e67d66d382b1fd8b2464029e30323dc575d
5
5
  SHA512:
6
- metadata.gz: 876ef5c5f13a6f50f4bdd043b67c10c6e36351fa12e5b0bcaf239f7118f669531b7623f29f7e3e7df35d9bc769a78e813924c943468260d9f7634969a9b9fdc2
7
- data.tar.gz: a65754b5516a39116dc94cf24e27a573490d50a9ace9176f568adaf378418cdd486c310abcadbfaf081fdd67da3fe5d64ebed9c0c8ba2ba409bb3794edcdb395
6
+ metadata.gz: 83cacd208e3f23e570ce94e7bff1e65a159d73889a081577cc8c3a4aee13c5bd5207f179e57d627f709d85ef6e84d278cb16145a48960d0afcdf816a5b3a705c
7
+ data.tar.gz: 666a6e40cb440763e6fb729902c139920ebdb6c17a86c559ddff0c4ccb5c2b9817b1eea331f57df8a9f68472103d4e0db8f92830ffe63092881c9dba5e0d6432
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.63.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.62.0 (2022-12-16)
12
+ ------------------
13
+
14
+ * Feature - This release provides the valid characters for the Description and Name field.
15
+
4
16
  1.61.0 (2022-10-25)
5
17
  ------------------
6
18
 
@@ -315,4 +327,4 @@ Unreleased Changes
315
327
  1.0.0 (2017-11-29)
316
328
  ------------------
317
329
 
318
- * Feature - Initial release of `aws-sdk-guardduty`.
330
+ * Feature - Initial release of `aws-sdk-guardduty`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.61.0
1
+ 1.63.0
@@ -545,12 +545,14 @@ module Aws::GuardDuty
545
545
  # want to create a filter for.
546
546
  #
547
547
  # @option params [required, String] :name
548
- # The name of the filter. Minimum length of 3. Maximum length of 64.
549
- # Valid characters include alphanumeric characters, dot (.), underscore
550
- # (\_), and dash (-). Spaces are not allowed.
548
+ # The name of the filter. Valid characters include period (.),
549
+ # underscore (\_), dash (-), and alphanumeric characters. A whitespace
550
+ # is considered to be an invalid character.
551
551
  #
552
552
  # @option params [String] :description
553
- # The description of the filter.
553
+ # The description of the filter. Valid special characters include period
554
+ # (.), underscore (\_), dash (-), and whitespace. The new line character
555
+ # is considered to be an invalid input for description.
554
556
  #
555
557
  # @option params [String] :action
556
558
  # Specifies the action that is to be applied to the findings that match
@@ -3333,7 +3335,9 @@ module Aws::GuardDuty
3333
3335
  # The name of the filter.
3334
3336
  #
3335
3337
  # @option params [String] :description
3336
- # The description of the filter.
3338
+ # The description of the filter. Valid special characters include period
3339
+ # (.), underscore (\_), dash (-), and whitespace. The new line character
3340
+ # is considered to be an invalid input for description.
3337
3341
  #
3338
3342
  # @option params [String] :action
3339
3343
  # Specifies the action that is to be applied to the findings that match
@@ -3711,7 +3715,7 @@ module Aws::GuardDuty
3711
3715
  params: params,
3712
3716
  config: config)
3713
3717
  context[:gem_name] = 'aws-sdk-guardduty'
3714
- context[:gem_version] = '1.61.0'
3718
+ context[:gem_version] = '1.63.0'
3715
3719
  Seahorse::Client::Request.new(handlers, context)
3716
3720
  end
3717
3721
 
@@ -50,6 +50,9 @@ module Aws::GuardDuty
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,109 +9,46 @@
9
9
 
10
10
  module Aws::GuardDuty
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://guardduty-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
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
39
+ end
40
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
+ end
42
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
45
+ end
46
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
47
+ end
48
+ return Aws::Endpoints::Endpoint.new(url: "https://guardduty.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
21
49
  end
22
- @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
- end
50
+ raise ArgumentError, 'No endpoint could be resolved'
24
51
 
25
- def resolve_endpoint(parameters)
26
- @provider.resolve_endpoint(parameters)
27
52
  end
28
-
29
- # @api private
30
- RULES = <<-JSON
31
- eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
- bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
- dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
- cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
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Rpb25zIjpbeyJmbiI6ImJvb2xlYW5FcXVhbHMiLCJhcmd2
102
- IjpbdHJ1ZSx7ImZuIjoiZ2V0QXR0ciIsImFyZ3YiOlt7InJlZiI6IlBhcnRp
103
- dGlvblJlc3VsdCJ9LCJzdXBwb3J0c0R1YWxTdGFjayJdfV19XSwidHlwZSI6
104
- InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7
105
- InVybCI6Imh0dHBzOi8vZ3VhcmRkdXR5LntSZWdpb259LntQYXJ0aXRpb25S
106
- ZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJo
107
- ZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25z
108
- IjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBw
109
- YXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoi
110
- ZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6
111
- Imh0dHBzOi8vZ3VhcmRkdXR5LntSZWdpb259LntQYXJ0aXRpb25SZXN1bHQj
112
- ZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5
113
- cGUiOiJlbmRwb2ludCJ9XX1dfQ==
114
-
115
- JSON
116
53
  end
117
54
  end