aws-sdk-detective 1.64.0 → 1.65.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c220963afee337168a2e35805e2b2c66af590532b3ca10b0244d85785b595b
4
- data.tar.gz: ce4aab43b750df69f65831a92873897bcf4528ef8a431adf7123c533c1387982
3
+ metadata.gz: a1c5eccae8177b22c35f1342c8e00b2979c445d1bc4b76e9c5d539d94a61a3a3
4
+ data.tar.gz: bb2acae413ecf7934b7ab4aa516513ac91d465b6309960516eb225e26ae5922e
5
5
  SHA512:
6
- metadata.gz: 7139ac55a195c611e8870e56882bb73eb8e45923bf46a11eefe4589896aad52a31b7478930c04beda008a3126cb93c150827a7bac85648770eed289efa74b807
7
- data.tar.gz: a0c49a9148478fda5a0db6a84714881f7f110d2ac05af70cd96330040acffac6d5f85c4eb798911c5bbf5ddabad5321c70e344017d820c1eca4bf5072e14e92f
6
+ metadata.gz: 805c19e1543c286267ff4336f78af5ce74d88e25ffb1c8e433074b5bee4c5f2201bc44b6431f1b6c39c3c41391ef5d2eaec5c83272dcc85fce4f57e91254737d
7
+ data.tar.gz: e381e8931d46f3db4eb2d6f0b49eefa58321c17435a0c79eeb056c33b6fc6bd576ea2f1fbe55bdfecf1beed197f06ee65aae50c50f49b7b3a6dc8933aafcdc1b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.65.0 (2025-04-11)
5
+ ------------------
6
+
7
+ * Feature - Add support for Detective DualStack endpoints
8
+
4
9
  1.64.0 (2025-02-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.65.0
@@ -1825,7 +1825,7 @@ module Aws::Detective
1825
1825
  tracer: tracer
1826
1826
  )
1827
1827
  context[:gem_name] = 'aws-sdk-detective'
1828
- context[:gem_version] = '1.64.0'
1828
+ context[:gem_version] = '1.65.0'
1829
1829
  Seahorse::Client::Request.new(handlers, context)
1830
1830
  end
1831
1831
 
@@ -10,11 +10,6 @@
10
10
  module Aws::Detective
11
11
  # Endpoint parameters used to influence endpoints per request.
12
12
  #
13
- # @!attribute region
14
- # The AWS region used to dispatch the request.
15
- #
16
- # @return [String]
17
- #
18
13
  # @!attribute use_dual_stack
19
14
  # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
15
  #
@@ -30,39 +25,44 @@ module Aws::Detective
30
25
  #
31
26
  # @return [String]
32
27
  #
28
+ # @!attribute region
29
+ # The AWS region used to dispatch the request.
30
+ #
31
+ # @return [String]
32
+ #
33
33
  EndpointParameters = Struct.new(
34
- :region,
35
34
  :use_dual_stack,
36
35
  :use_fips,
37
36
  :endpoint,
37
+ :region,
38
38
  ) do
39
39
  include Aws::Structure
40
40
 
41
41
  # @api private
42
42
  class << self
43
43
  PARAM_MAP = {
44
- 'Region' => :region,
45
44
  'UseDualStack' => :use_dual_stack,
46
45
  'UseFIPS' => :use_fips,
47
46
  'Endpoint' => :endpoint,
47
+ 'Region' => :region,
48
48
  }.freeze
49
49
  end
50
50
 
51
51
  def initialize(options = {})
52
- self[:region] = options[:region]
53
52
  self[:use_dual_stack] = options[:use_dual_stack]
54
53
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
54
  self[:use_fips] = options[:use_fips]
56
55
  self[:use_fips] = false if self[:use_fips].nil?
57
56
  self[:endpoint] = options[:endpoint]
57
+ self[:region] = options[:region]
58
58
  end
59
59
 
60
60
  def self.create(config, options={})
61
61
  new({
62
- region: config.region,
63
62
  use_dual_stack: config.use_dualstack_endpoint,
64
63
  use_fips: config.use_fips_endpoint,
65
64
  endpoint: (config.endpoint.to_s unless config.regional_endpoint),
65
+ region: config.region,
66
66
  }.merge(options))
67
67
  end
68
68
  end
@@ -21,19 +21,31 @@ module Aws::Detective
21
21
  end
22
22
  if Aws::Endpoints::Matchers.set?(parameters.region)
23
23
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
+ return Aws::Endpoints::Endpoint.new(url: "https://detective.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
28
+ return Aws::Endpoints::Endpoint.new(url: "https://detective-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
29
+ end
30
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
31
+ return Aws::Endpoints::Endpoint.new(url: "https://detective.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
32
+ end
33
+ if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov") && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
34
+ return Aws::Endpoints::Endpoint.new(url: "https://detective-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
35
+ end
24
36
  if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
25
37
  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"))
26
38
  return Aws::Endpoints::Endpoint.new(url: "https://api.detective-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
27
39
  end
28
40
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
29
41
  end
30
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
42
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, false)
31
43
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
44
  return Aws::Endpoints::Endpoint.new(url: "https://api.detective-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
33
45
  end
34
46
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
35
47
  end
36
- if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
48
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
37
49
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
38
50
  return Aws::Endpoints::Endpoint.new(url: "https://api.detective.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
39
51
  end
@@ -54,7 +54,7 @@ module Aws::Detective
54
54
  autoload :EndpointProvider, 'aws-sdk-detective/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-detective/endpoints'
56
56
 
57
- GEM_VERSION = '1.64.0'
57
+ GEM_VERSION = '1.65.0'
58
58
 
59
59
  end
60
60
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-detective
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.64.0
4
+ version: 1.65.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-18 00:00:00.000000000 Z
11
+ date: 2025-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core