aws-sdk-ecrpublic 1.40.0 → 1.41.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecrpublic/client.rb +1 -1
- data/lib/aws-sdk-ecrpublic/endpoint_parameters.rb +8 -17
- data/lib/aws-sdk-ecrpublic/endpoint_provider.rb +7 -29
- data/lib/aws-sdk-ecrpublic.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c087a6ad19be7133b6249a77384ece229d95ad1d502e1a68ae9283d80ca394e
|
4
|
+
data.tar.gz: 1842725553b480f3c8fdf6d1da357eebab25f6f4c149771bc7d522ff13a32cfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7109b289427758ba5b273dc328c021d1e9aa8a180c67d57ef0a9ee24bfbd4d262c349519241039817124c291dd2a1bfd0cf71ec0b54667af472d3c8943ec5856
|
7
|
+
data.tar.gz: bcab7f7010ea813c983a123f66c996b86e1103b384cebd432de40b12e379e333f82a836c2a1c92f7466b2abad969e4fecfcd41803537defdc3663fda1b5d04b4
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.41.0
|
@@ -15,26 +15,20 @@ module Aws::ECRPublic
|
|
15
15
|
#
|
16
16
|
# @return [String]
|
17
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
18
|
# @!attribute use_fips
|
24
19
|
# 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
20
|
#
|
26
21
|
# @return [Boolean]
|
27
22
|
#
|
28
|
-
# @!attribute
|
29
|
-
#
|
23
|
+
# @!attribute use_dual_stack
|
24
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
30
25
|
#
|
31
|
-
# @return [
|
26
|
+
# @return [Boolean]
|
32
27
|
#
|
33
28
|
EndpointParameters = Struct.new(
|
34
29
|
:region,
|
35
|
-
:use_dual_stack,
|
36
30
|
:use_fips,
|
37
|
-
:
|
31
|
+
:use_dual_stack,
|
38
32
|
) do
|
39
33
|
include Aws::Structure
|
40
34
|
|
@@ -42,27 +36,24 @@ module Aws::ECRPublic
|
|
42
36
|
class << self
|
43
37
|
PARAM_MAP = {
|
44
38
|
'Region' => :region,
|
45
|
-
'UseDualStack' => :use_dual_stack,
|
46
39
|
'UseFIPS' => :use_fips,
|
47
|
-
'
|
40
|
+
'UseDualStack' => :use_dual_stack,
|
48
41
|
}.freeze
|
49
42
|
end
|
50
43
|
|
51
44
|
def initialize(options = {})
|
52
45
|
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
46
|
self[:use_fips] = options[:use_fips]
|
56
47
|
self[:use_fips] = false if self[:use_fips].nil?
|
57
|
-
self[:
|
48
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
49
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
50
|
end
|
59
51
|
|
60
52
|
def self.create(config, options={})
|
61
53
|
new({
|
62
54
|
region: config.region,
|
63
|
-
use_dual_stack: config.use_dualstack_endpoint,
|
64
55
|
use_fips: config.use_fips_endpoint,
|
65
|
-
|
56
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
66
57
|
}.merge(options))
|
67
58
|
end
|
68
59
|
end
|
@@ -11,42 +11,20 @@ module Aws::ECRPublic
|
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
13
|
region = parameters.region
|
14
|
-
use_dual_stack = parameters.use_dual_stack
|
15
14
|
use_fips = parameters.use_fips
|
16
|
-
|
17
|
-
if Aws::Endpoints::Matchers.set?(
|
15
|
+
use_dual_stack = parameters.use_dual_stack
|
16
|
+
if Aws::Endpoints::Matchers.set?(region) && (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
17
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
-
raise ArgumentError, "
|
18
|
+
raise ArgumentError, "ECR Public does not support FIPS"
|
20
19
|
end
|
21
20
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
-
|
23
|
-
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
-
end
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
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://api.ecr-public-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
|
-
end
|
32
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
-
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
|
-
end
|
38
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
|
-
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
41
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
|
-
end
|
44
|
-
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
22
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecr-public.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
45
23
|
end
|
46
|
-
|
24
|
+
raise ArgumentError, "Dualstack is enabled but this partition does not support dualstack"
|
47
25
|
end
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-public.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
48
27
|
end
|
49
|
-
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
28
|
raise ArgumentError, 'No endpoint could be resolved'
|
51
29
|
|
52
30
|
end
|
data/lib/aws-sdk-ecrpublic.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ecrpublic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.41.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-
|
11
|
+
date: 2024-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|