aws-sdk-artifact 1.15.0 → 1.16.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: cdb922b3a13f3668a24b903c7e65072af1ff50290ea0f8d21924a8c7aa9e5ad5
4
- data.tar.gz: 4183ae43c6027ad0522490235c5160428ab9680bfa0d2ccc71f508619ae07b30
3
+ metadata.gz: 3c30c8cd19c81b4da0a74aa92af2442a05826d36177e375ff9f94ed1cf94f3dc
4
+ data.tar.gz: 35919ef4008b276035b0c8f32b2339f365dd8461236f4639cc293eea08606bc7
5
5
  SHA512:
6
- metadata.gz: 7283cea76afa7a9fe8ddd462487eaac1bd832584427e736923b6e3b6f06d6affee354bdcaace2b02c04341f91032b9bf5789ef489b45ac86605b0bcd60309677
7
- data.tar.gz: c8095f38f2920546966dcc6ccea32ca227cad131453baf3e0a2528fde7765f535f7e75870855d8c56f4beb0a7bf8f74a8a6c1d8b5b470c166bf53bb4dc1659ca
6
+ metadata.gz: 2dafe3ea2b0a1b78d17b43973907cfef8143a9cf511d6d2c44df44a1f524267423123d2a9d7c7eb1cb6515aeb61b20b9b1c9cdab620b88e0b07eff3f58792b47
7
+ data.tar.gz: 837153e280a78dcf0fa18412b3ae0a6f4e82e03c9a73b044c5abf0e165f14d05b1488d0d7ab6e344e0e42740329f6f96d1b06904a452da9b230ce1340fd1b31c
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2025-01-13)
5
+ ------------------
6
+
7
+ * Feature - Support resolving regional API calls to partition's leader region endpoint.
8
+
4
9
  1.15.0 (2024-12-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.16.0
@@ -892,7 +892,7 @@ module Aws::Artifact
892
892
  tracer: tracer
893
893
  )
894
894
  context[:gem_name] = 'aws-sdk-artifact'
895
- context[:gem_version] = '1.15.0'
895
+ context[:gem_version] = '1.16.0'
896
896
  Seahorse::Client::Request.new(handlers, context)
897
897
  end
898
898
 
@@ -10,11 +10,6 @@
10
10
  module Aws::Artifact
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::Artifact
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
@@ -10,10 +10,10 @@
10
10
  module Aws::Artifact
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
- region = parameters.region
14
13
  use_dual_stack = parameters.use_dual_stack
15
14
  use_fips = parameters.use_fips
16
15
  endpoint = parameters.endpoint
16
+ region = parameters.region
17
17
  if Aws::Endpoints::Matchers.set?(endpoint)
18
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
19
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
@@ -27,23 +27,23 @@ module Aws::Artifact
27
27
  if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
28
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
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://artifact-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
31
31
  end
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, false)
35
35
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
- return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
+ return Aws::Endpoints::Endpoint.new(url: "https://artifact-fips.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
37
37
  end
38
38
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
39
  end
40
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, false) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
41
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
- return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
42
+ return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{partition_result['implicitGlobalRegion']}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
43
43
  end
44
44
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
45
  end
46
- return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
+ return Aws::Endpoints::Endpoint.new(url: "https://artifact.#{partition_result['implicitGlobalRegion']}.#{partition_result['dnsSuffix']}", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"#{partition_result['implicitGlobalRegion']}"}]})
47
47
  end
48
48
  end
49
49
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -55,7 +55,7 @@ module Aws::Artifact
55
55
  autoload :EndpointProvider, 'aws-sdk-artifact/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-artifact/endpoints'
57
57
 
58
- GEM_VERSION = '1.15.0'
58
+ GEM_VERSION = '1.16.0'
59
59
 
60
60
  end
61
61
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-artifact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.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: 2024-12-11 00:00:00.000000000 Z
11
+ date: 2025-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core