aws-sdk-ecr 1.62.0 → 1.64.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecr/client.rb +14 -7
- data/lib/aws-sdk-ecr/client_api.rb +7 -2
- data/lib/aws-sdk-ecr/endpoint_provider.rb +32 -47
- data/lib/aws-sdk-ecr/types.rb +9 -4
- data/lib/aws-sdk-ecr.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: b72f163b32a78729a0935e5b6c8ce4e5521aa4292c009591477c3ca112419caa
|
4
|
+
data.tar.gz: f24f1dc2a918ea6cf8dd00fcd33aa884f7087e4fa41ab2bffc28d71bf8776e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 748e338e3da48c323eecbf6b29a19a0624b3b2329a635a73a0a6b17262ba9effd1f0adab20428bfee8f710b2f7aa25258ca9ee31dae4c0c06ffb055076e09d2c
|
7
|
+
data.tar.gz: f1042e577aac5020d07af0fe2aeccb207e4f05e7d05d1d17ae19ed10842cf7ac434ccf0835b56c9b32fa1f4fa94784a3d210acb23ab8c5a7394471cc7edbeec3
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.64.0 (2023-09-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release will have ValidationException be thrown from ECR LifecyclePolicy APIs in regions LifecyclePolicy is not supported, this includes existing Amazon Dedicated Cloud (ADC) regions. This release will also change Tag: TagValue and Tag: TagKey to required.
|
8
|
+
|
9
|
+
1.63.0 (2023-07-11)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.62.0 (2023-07-06)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.64.0
|
data/lib/aws-sdk-ecr/client.rb
CHANGED
@@ -216,6 +216,10 @@ module Aws::ECR
|
|
216
216
|
# @option options [Boolean] :endpoint_discovery (false)
|
217
217
|
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
218
218
|
#
|
219
|
+
# @option options [Boolean] :ignore_configured_endpoint_urls
|
220
|
+
# Setting to true disables use of endpoint URLs provided via environment
|
221
|
+
# variables and the shared configuration file.
|
222
|
+
#
|
219
223
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
220
224
|
# The log formatter.
|
221
225
|
#
|
@@ -809,6 +813,9 @@ module Aws::ECR
|
|
809
813
|
# with a namespace to group the repository into a category (such as
|
810
814
|
# `project-a/nginx-web-app`).
|
811
815
|
#
|
816
|
+
# The repository name must start with a letter and can only contain
|
817
|
+
# lowercase letters, numbers, hyphens, underscores, and forward slashes.
|
818
|
+
#
|
812
819
|
# @option params [Array<Types::Tag>] :tags
|
813
820
|
# The metadata that you apply to the repository to help you categorize
|
814
821
|
# and organize them. Each tag consists of a key and an optional value,
|
@@ -862,8 +869,8 @@ module Aws::ECR
|
|
862
869
|
# repository_name: "RepositoryName", # required
|
863
870
|
# tags: [
|
864
871
|
# {
|
865
|
-
# key: "TagKey",
|
866
|
-
# value: "TagValue",
|
872
|
+
# key: "TagKey", # required
|
873
|
+
# value: "TagValue", # required
|
867
874
|
# },
|
868
875
|
# ],
|
869
876
|
# image_tag_mutability: "MUTABLE", # accepts MUTABLE, IMMUTABLE
|
@@ -1658,8 +1665,8 @@ module Aws::ECR
|
|
1658
1665
|
# {
|
1659
1666
|
# authorization_data: [
|
1660
1667
|
# {
|
1661
|
-
# authorization_token: "
|
1662
|
-
# expires_at: Time.parse("
|
1668
|
+
# authorization_token: "QVdTOkNEXAMPLE",
|
1669
|
+
# expires_at: Time.parse("2022-05-17T06:56:13.652000+00:00"),
|
1663
1670
|
# proxy_endpoint: "https://012345678901.dkr.ecr.us-west-2.amazonaws.com",
|
1664
1671
|
# },
|
1665
1672
|
# ],
|
@@ -2742,8 +2749,8 @@ module Aws::ECR
|
|
2742
2749
|
# resource_arn: "Arn", # required
|
2743
2750
|
# tags: [ # required
|
2744
2751
|
# {
|
2745
|
-
# key: "TagKey",
|
2746
|
-
# value: "TagValue",
|
2752
|
+
# key: "TagKey", # required
|
2753
|
+
# value: "TagValue", # required
|
2747
2754
|
# },
|
2748
2755
|
# ],
|
2749
2756
|
# })
|
@@ -2868,7 +2875,7 @@ module Aws::ECR
|
|
2868
2875
|
params: params,
|
2869
2876
|
config: config)
|
2870
2877
|
context[:gem_name] = 'aws-sdk-ecr'
|
2871
|
-
context[:gem_version] = '1.
|
2878
|
+
context[:gem_version] = '1.64.0'
|
2872
2879
|
Seahorse::Client::Request.new(handlers, context)
|
2873
2880
|
end
|
2874
2881
|
|
@@ -1065,8 +1065,8 @@ module Aws::ECR
|
|
1065
1065
|
StartLifecyclePolicyPreviewResponse.add_member(:status, Shapes::ShapeRef.new(shape: LifecyclePolicyPreviewStatus, location_name: "status"))
|
1066
1066
|
StartLifecyclePolicyPreviewResponse.struct_class = Types::StartLifecyclePolicyPreviewResponse
|
1067
1067
|
|
1068
|
-
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
|
1069
|
-
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
|
1068
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
1069
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
1070
1070
|
Tag.struct_class = Types::Tag
|
1071
1071
|
|
1072
1072
|
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
@@ -1250,6 +1250,7 @@ module Aws::ECR
|
|
1250
1250
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1251
1251
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
1252
1252
|
o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyNotFoundException)
|
1253
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1253
1254
|
end)
|
1254
1255
|
|
1255
1256
|
api.add_operation(:delete_pull_through_cache_rule, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1431,6 +1432,7 @@ module Aws::ECR
|
|
1431
1432
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1432
1433
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
1433
1434
|
o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyNotFoundException)
|
1435
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1434
1436
|
end)
|
1435
1437
|
|
1436
1438
|
api.add_operation(:get_lifecycle_policy_preview, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1443,6 +1445,7 @@ module Aws::ECR
|
|
1443
1445
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1444
1446
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
1445
1447
|
o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyPreviewNotFoundException)
|
1448
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1446
1449
|
o[:pager] = Aws::Pager.new(
|
1447
1450
|
limit_key: "max_results",
|
1448
1451
|
tokens: {
|
@@ -1576,6 +1579,7 @@ module Aws::ECR
|
|
1576
1579
|
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
1577
1580
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1578
1581
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
1582
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1579
1583
|
end)
|
1580
1584
|
|
1581
1585
|
api.add_operation(:put_registry_policy, Seahorse::Model::Operation.new.tap do |o|
|
@@ -1648,6 +1652,7 @@ module Aws::ECR
|
|
1648
1652
|
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
1649
1653
|
o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyNotFoundException)
|
1650
1654
|
o.errors << Shapes::ShapeRef.new(shape: LifecyclePolicyPreviewInProgressException)
|
1655
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1651
1656
|
end)
|
1652
1657
|
|
1653
1658
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
@@ -14,60 +14,45 @@ module Aws::ECR
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
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: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-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"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
if Aws::Endpoints::Matchers.
|
39
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips
|
40
|
-
end
|
41
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "dkr-us-west-2")
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.us-west-2.amazonaws.com", headers: {}, properties: {})
|
43
|
-
end
|
44
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "dkr-us-west-1")
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.us-west-1.amazonaws.com", headers: {}, properties: {})
|
46
|
-
end
|
47
|
-
if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
48
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
49
|
-
end
|
50
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "dkr-us-gov-east-1")
|
51
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
52
|
-
end
|
53
|
-
if Aws::Endpoints::Matchers.string_equals?(region, "dkr-us-gov-west-1")
|
54
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
55
|
-
end
|
56
|
-
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
57
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
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-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
58
31
|
end
|
59
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
60
33
|
end
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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
|
+
if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.#{region}.amazonaws.com", headers: {}, properties: {})
|
41
|
+
end
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
43
|
+
end
|
44
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
45
|
+
end
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
47
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
66
51
|
end
|
67
|
-
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
68
53
|
end
|
69
|
-
return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
70
54
|
end
|
55
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
71
56
|
raise ArgumentError, 'No endpoint could be resolved'
|
72
57
|
|
73
58
|
end
|
data/lib/aws-sdk-ecr/types.rb
CHANGED
@@ -405,6 +405,10 @@ module Aws::ECR
|
|
405
405
|
# specified on its own (such as `nginx-web-app`) or it can be
|
406
406
|
# prepended with a namespace to group the repository into a category
|
407
407
|
# (such as `project-a/nginx-web-app`).
|
408
|
+
#
|
409
|
+
# The repository name must start with a letter and can only contain
|
410
|
+
# lowercase letters, numbers, hyphens, underscores, and forward
|
411
|
+
# slashes.
|
408
412
|
# @return [String]
|
409
413
|
#
|
410
414
|
# @!attribute [rw] tags
|
@@ -2986,8 +2990,9 @@ module Aws::ECR
|
|
2986
2990
|
# The frequency that scans are performed at for a private registry.
|
2987
2991
|
# When the `ENHANCED` scan type is specified, the supported scan
|
2988
2992
|
# frequencies are `CONTINUOUS_SCAN` and `SCAN_ON_PUSH`. When the
|
2989
|
-
# `BASIC` scan type is specified, the `SCAN_ON_PUSH`
|
2990
|
-
#
|
2993
|
+
# `BASIC` scan type is specified, the `SCAN_ON_PUSH` scan frequency is
|
2994
|
+
# supported. If scan on push is not specified, then the `MANUAL` scan
|
2995
|
+
# frequency is set by default.
|
2991
2996
|
# @return [String]
|
2992
2997
|
#
|
2993
2998
|
# @!attribute [rw] repository_filters
|
@@ -3087,7 +3092,7 @@ module Aws::ECR
|
|
3087
3092
|
# ARN contains the `arn:aws:ecr` namespace, followed by the region of
|
3088
3093
|
# the repository, Amazon Web Services account ID of the repository
|
3089
3094
|
# owner, repository namespace, and repository name. For example,
|
3090
|
-
# `arn:aws:ecr:region:012345678910:repository/
|
3095
|
+
# `arn:aws:ecr:region:012345678910:repository-namespace/repository-name`.
|
3091
3096
|
# @return [String]
|
3092
3097
|
#
|
3093
3098
|
# @!attribute [rw] registry_id
|
@@ -3154,7 +3159,7 @@ module Aws::ECR
|
|
3154
3159
|
# The filter settings used with image replication. Specifying a
|
3155
3160
|
# repository filter to a replication rule provides a method for
|
3156
3161
|
# controlling which repositories in a private registry are replicated.
|
3157
|
-
# If no
|
3162
|
+
# If no filters are added, the contents of all repositories are
|
3158
3163
|
# replicated.
|
3159
3164
|
#
|
3160
3165
|
# @!attribute [rw] filter
|
data/lib/aws-sdk-ecr.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ecr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.64.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: 2023-
|
11
|
+
date: 2023-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|