aws-sdk-ecr 1.63.0 → 1.64.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: 58d01cdbc3beaa7e4f12718c75c734fbcf95d183effee4dc2ff4374750509761
4
- data.tar.gz: 6ff73b88559b21da84385d40b1acfc41425a8ee2ec10f6d4add427cc9c288965
3
+ metadata.gz: b72f163b32a78729a0935e5b6c8ce4e5521aa4292c009591477c3ca112419caa
4
+ data.tar.gz: f24f1dc2a918ea6cf8dd00fcd33aa884f7087e4fa41ab2bffc28d71bf8776e5a
5
5
  SHA512:
6
- metadata.gz: c5bc24b04fa19ed4c962c602ea7eecb8f827eff9ba753a8a08f07a2ef7942a3aeda7fbd6af372de3106bac7235a15d2903de4ab4ab99dfa590c3bc2770805f49
7
- data.tar.gz: 527e9131cb52859fe19261d66b17faf78a778c24f8e2f544ebb67a992c0abbda6b3651a8ef94576a042eeb050702de4244bb61137c372cf49b163bcb64ae6c05
6
+ metadata.gz: 748e338e3da48c323eecbf6b29a19a0624b3b2329a635a73a0a6b17262ba9effd1f0adab20428bfee8f710b2f7aa25258ca9ee31dae4c0c06ffb055076e09d2c
7
+ data.tar.gz: f1042e577aac5020d07af0fe2aeccb207e4f05e7d05d1d17ae19ed10842cf7ac434ccf0835b56c9b32fa1f4fa94784a3d210acb23ab8c5a7394471cc7edbeec3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.63.0 (2023-07-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.63.0
1
+ 1.64.0
@@ -813,6 +813,9 @@ module Aws::ECR
813
813
  # with a namespace to group the repository into a category (such as
814
814
  # `project-a/nginx-web-app`).
815
815
  #
816
+ # The repository name must start with a letter and can only contain
817
+ # lowercase letters, numbers, hyphens, underscores, and forward slashes.
818
+ #
816
819
  # @option params [Array<Types::Tag>] :tags
817
820
  # The metadata that you apply to the repository to help you categorize
818
821
  # and organize them. Each tag consists of a key and an optional value,
@@ -866,8 +869,8 @@ module Aws::ECR
866
869
  # repository_name: "RepositoryName", # required
867
870
  # tags: [
868
871
  # {
869
- # key: "TagKey",
870
- # value: "TagValue",
872
+ # key: "TagKey", # required
873
+ # value: "TagValue", # required
871
874
  # },
872
875
  # ],
873
876
  # image_tag_mutability: "MUTABLE", # accepts MUTABLE, IMMUTABLE
@@ -1662,8 +1665,8 @@ module Aws::ECR
1662
1665
  # {
1663
1666
  # authorization_data: [
1664
1667
  # {
1665
- # authorization_token: "QVdTOkN...",
1666
- # expires_at: Time.parse("1470951892432"),
1668
+ # authorization_token: "QVdTOkNEXAMPLE",
1669
+ # expires_at: Time.parse("2022-05-17T06:56:13.652000+00:00"),
1667
1670
  # proxy_endpoint: "https://012345678901.dkr.ecr.us-west-2.amazonaws.com",
1668
1671
  # },
1669
1672
  # ],
@@ -2746,8 +2749,8 @@ module Aws::ECR
2746
2749
  # resource_arn: "Arn", # required
2747
2750
  # tags: [ # required
2748
2751
  # {
2749
- # key: "TagKey",
2750
- # value: "TagValue",
2752
+ # key: "TagKey", # required
2753
+ # value: "TagValue", # required
2751
2754
  # },
2752
2755
  # ],
2753
2756
  # })
@@ -2872,7 +2875,7 @@ module Aws::ECR
2872
2875
  params: params,
2873
2876
  config: config)
2874
2877
  context[:gem_name] = 'aws-sdk-ecr'
2875
- context[:gem_version] = '1.63.0'
2878
+ context[:gem_version] = '1.64.0'
2876
2879
  Seahorse::Client::Request.new(handlers, context)
2877
2880
  end
2878
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 (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(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: {})
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?(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://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
- 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?(region, "dkr-us-east-2")
36
- return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.us-east-2.amazonaws.com", headers: {}, properties: {})
37
- end
38
- if Aws::Endpoints::Matchers.string_equals?(region, "dkr-us-east-1")
39
- return Aws::Endpoints::Endpoint.new(url: "https://ecr-fips.us-east-1.amazonaws.com", headers: {}, properties: {})
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
- return Aws::Endpoints::Endpoint.new(url: "https://api.ecr-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
60
33
  end
61
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
62
- end
63
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
64
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
65
- return Aws::Endpoints::Endpoint.new(url: "https://api.ecr.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
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
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
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
@@ -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` and `MANUAL` scan
2990
- # frequencies are supported.
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/test`.
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 repository filter is specified, all images in the repository are
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
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-ecr/customizations'
53
53
  # @!group service
54
54
  module Aws::ECR
55
55
 
56
- GEM_VERSION = '1.63.0'
56
+ GEM_VERSION = '1.64.0'
57
57
 
58
58
  end
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.63.0
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-07-11 00:00:00.000000000 Z
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