aws-sdk-ecr 1.97.0 → 1.99.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: 8e20cb0fa63f18a6b697c12482a0d62e8d31965d6208ddef8c7e4a01be09e67d
4
- data.tar.gz: 4bf6c2e968904d0d188aca5e56a3d3789d6dd600f46cd24868f818fbe57459b2
3
+ metadata.gz: 3bde772667d3c7be1b425142450d7a968ad5fea4f321168a7edfc829b67c0e69
4
+ data.tar.gz: 48f5b387cca4bbf2d1c93fbef0c3234a1d5e598257ce8989e2d538f160d93edf
5
5
  SHA512:
6
- metadata.gz: 90b667ed573adfdfde2a850491297d71911d11357ab6a3c9356e2274ba751027bfbdb47d0627dab75d86c1e4e8cd92e8cc3c4063675b578422879fdad9dce6b4
7
- data.tar.gz: 176e91eaef4ee3c3b86795338803f42dcd9031ac26c5d0d82c71b7adf26a1f20c022b2ccf39aa2549690688cb8aa8acc1ad81bf59647f6f9ed67ae54d3f20363
6
+ metadata.gz: 04eaa573abcfcf8a05644d8d0bf9e7c2bdfb65dd6d7117a3b5e55080e3fdf8912c1156653a064f130e4df226f8da805f282d7ff86c73fee12bb20ce3f3704c3c
7
+ data.tar.gz: 888b9a96077f5ca9e68143442722cfa7ee5803355a871c3e2894b9a2e7f975d3e2c03c1dca27e6d387c434662130caa06250f2661449209449d63f06aee33510
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.99.0 (2025-04-02)
5
+ ------------------
6
+
7
+ * Feature - Fix for customer issues related to AWS account ID and size limitation for token.
8
+
9
+ 1.98.0 (2025-03-11)
10
+ ------------------
11
+
12
+ * Feature - This release adds Amazon ECR to Amazon ECR pull through cache rules support.
13
+
4
14
  1.97.0 (2025-02-18)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.97.0
1
+ 1.99.0
@@ -838,24 +838,33 @@ module Aws::ECR
838
838
  # The repository name prefix to use when caching images from the source
839
839
  # registry.
840
840
  #
841
+ # There is always an assumed `/` applied to the end of the prefix. If
842
+ # you specify `ecr-public` as the prefix, Amazon ECR treats that as
843
+ # `ecr-public/`.
844
+ #
841
845
  # @option params [required, String] :upstream_registry_url
842
846
  # The registry URL of the upstream public registry to use as the source
843
847
  # for the pull through cache rule. The following is the syntax to use
844
848
  # for each supported upstream registry.
845
849
  #
846
- # * Amazon ECR Public (`ecr-public`) - `public.ecr.aws`
850
+ # * Amazon ECR (`ecr`) `<accountId>.dkr.ecr.<region>.amazonaws.com`
851
+ #
852
+ # * Amazon ECR Public (`ecr-public`) – `public.ecr.aws`
847
853
  #
848
- # * Docker Hub (`docker-hub`) - `registry-1.docker.io`
854
+ # * Docker Hub (`docker-hub`) `registry-1.docker.io`
849
855
  #
850
- # * Quay (`quay`) - `quay.io`
856
+ # * GitHub Container Registry (`github-container-registry`) `ghcr.io`
851
857
  #
852
- # * Kubernetes (`k8s`) - `registry.k8s.io`
858
+ # * GitLab Container Registry (`gitlab-container-registry`)
859
+ # `registry.gitlab.com`
853
860
  #
854
- # * GitHub Container Registry (`github-container-registry`) - `ghcr.io`
861
+ # * Kubernetes (`k8s`) `registry.k8s.io`
855
862
  #
856
- # * Microsoft Azure Container Registry (`azure-container-registry`) -
863
+ # * Microsoft Azure Container Registry (`azure-container-registry`)
857
864
  # `<custom>.azurecr.io`
858
865
  #
866
+ # * Quay (`quay`) – `quay.io`
867
+ #
859
868
  # @option params [String] :registry_id
860
869
  # The Amazon Web Services account ID associated with the registry to
861
870
  # create the pull through cache rule for. If you do not specify a
@@ -869,6 +878,16 @@ module Aws::ECR
869
878
  # Manager secret that identifies the credentials to authenticate to the
870
879
  # upstream registry.
871
880
  #
881
+ # @option params [String] :custom_role_arn
882
+ # Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon ECR
883
+ # to authenticate to the ECR upstream registry. This role must be in the
884
+ # same account as the registry that you are configuring.
885
+ #
886
+ # @option params [String] :upstream_repository_prefix
887
+ # The repository name prefix of the upstream registry to match with the
888
+ # upstream repository name. When this field isn't specified, Amazon ECR
889
+ # will use the `ROOT`.
890
+ #
872
891
  # @return [Types::CreatePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
873
892
  #
874
893
  # * {Types::CreatePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
@@ -877,6 +896,8 @@ module Aws::ECR
877
896
  # * {Types::CreatePullThroughCacheRuleResponse#registry_id #registry_id} => String
878
897
  # * {Types::CreatePullThroughCacheRuleResponse#upstream_registry #upstream_registry} => String
879
898
  # * {Types::CreatePullThroughCacheRuleResponse#credential_arn #credential_arn} => String
899
+ # * {Types::CreatePullThroughCacheRuleResponse#custom_role_arn #custom_role_arn} => String
900
+ # * {Types::CreatePullThroughCacheRuleResponse#upstream_repository_prefix #upstream_repository_prefix} => String
880
901
  #
881
902
  # @example Request syntax with placeholder values
882
903
  #
@@ -884,8 +905,10 @@ module Aws::ECR
884
905
  # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
885
906
  # upstream_registry_url: "Url", # required
886
907
  # registry_id: "RegistryId",
887
- # upstream_registry: "ecr-public", # accepts ecr-public, quay, k8s, docker-hub, github-container-registry, azure-container-registry, gitlab-container-registry
908
+ # upstream_registry: "ecr", # accepts ecr, ecr-public, quay, k8s, docker-hub, github-container-registry, azure-container-registry, gitlab-container-registry
888
909
  # credential_arn: "CredentialArn",
910
+ # custom_role_arn: "CustomRoleArn",
911
+ # upstream_repository_prefix: "PullThroughCacheRuleRepositoryPrefix",
889
912
  # })
890
913
  #
891
914
  # @example Response structure
@@ -894,8 +917,10 @@ module Aws::ECR
894
917
  # resp.upstream_registry_url #=> String
895
918
  # resp.created_at #=> Time
896
919
  # resp.registry_id #=> String
897
- # resp.upstream_registry #=> String, one of "ecr-public", "quay", "k8s", "docker-hub", "github-container-registry", "azure-container-registry", "gitlab-container-registry"
920
+ # resp.upstream_registry #=> String, one of "ecr", "ecr-public", "quay", "k8s", "docker-hub", "github-container-registry", "azure-container-registry", "gitlab-container-registry"
898
921
  # resp.credential_arn #=> String
922
+ # resp.custom_role_arn #=> String
923
+ # resp.upstream_repository_prefix #=> String
899
924
  #
900
925
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreatePullThroughCacheRule AWS API Documentation
901
926
  #
@@ -1252,6 +1277,8 @@ module Aws::ECR
1252
1277
  # * {Types::DeletePullThroughCacheRuleResponse#created_at #created_at} => Time
1253
1278
  # * {Types::DeletePullThroughCacheRuleResponse#registry_id #registry_id} => String
1254
1279
  # * {Types::DeletePullThroughCacheRuleResponse#credential_arn #credential_arn} => String
1280
+ # * {Types::DeletePullThroughCacheRuleResponse#custom_role_arn #custom_role_arn} => String
1281
+ # * {Types::DeletePullThroughCacheRuleResponse#upstream_repository_prefix #upstream_repository_prefix} => String
1255
1282
  #
1256
1283
  # @example Request syntax with placeholder values
1257
1284
  #
@@ -1267,6 +1294,8 @@ module Aws::ECR
1267
1294
  # resp.created_at #=> Time
1268
1295
  # resp.registry_id #=> String
1269
1296
  # resp.credential_arn #=> String
1297
+ # resp.custom_role_arn #=> String
1298
+ # resp.upstream_repository_prefix #=> String
1270
1299
  #
1271
1300
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeletePullThroughCacheRule AWS API Documentation
1272
1301
  #
@@ -1700,11 +1729,11 @@ module Aws::ECR
1700
1729
 
1701
1730
  # Returns metadata about the images in a repository.
1702
1731
  #
1703
- # <note markdown="1"> Beginning with Docker version 1.9, the Docker client compresses image
1732
+ # <note markdown="1"> Starting with Docker version 1.9, the Docker client compresses image
1704
1733
  # layers before pushing them to a V2 Docker registry. The output of the
1705
- # `docker images` command shows the uncompressed image size, so it may
1706
- # return a larger image size than the image sizes returned by
1707
- # DescribeImages.
1734
+ # `docker images` command shows the uncompressed image size. Therefore,
1735
+ # Docker might return a larger image than the image shown in the Amazon
1736
+ # Web Services Management Console.
1708
1737
  #
1709
1738
  # </note>
1710
1739
  #
@@ -1853,7 +1882,9 @@ module Aws::ECR
1853
1882
  # resp.pull_through_cache_rules[0].created_at #=> Time
1854
1883
  # resp.pull_through_cache_rules[0].registry_id #=> String
1855
1884
  # resp.pull_through_cache_rules[0].credential_arn #=> String
1856
- # resp.pull_through_cache_rules[0].upstream_registry #=> String, one of "ecr-public", "quay", "k8s", "docker-hub", "github-container-registry", "azure-container-registry", "gitlab-container-registry"
1885
+ # resp.pull_through_cache_rules[0].custom_role_arn #=> String
1886
+ # resp.pull_through_cache_rules[0].upstream_repository_prefix #=> String
1887
+ # resp.pull_through_cache_rules[0].upstream_registry #=> String, one of "ecr", "ecr-public", "quay", "k8s", "docker-hub", "github-container-registry", "azure-container-registry", "gitlab-container-registry"
1857
1888
  # resp.pull_through_cache_rules[0].updated_at #=> Time
1858
1889
  # resp.next_token #=> String
1859
1890
  #
@@ -3377,24 +3408,32 @@ module Aws::ECR
3377
3408
  # The repository name prefix to use when caching images from the source
3378
3409
  # registry.
3379
3410
  #
3380
- # @option params [required, String] :credential_arn
3411
+ # @option params [String] :credential_arn
3381
3412
  # The Amazon Resource Name (ARN) of the Amazon Web Services Secrets
3382
3413
  # Manager secret that identifies the credentials to authenticate to the
3383
3414
  # upstream registry.
3384
3415
  #
3416
+ # @option params [String] :custom_role_arn
3417
+ # Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon ECR
3418
+ # to authenticate to the ECR upstream registry. This role must be in the
3419
+ # same account as the registry that you are configuring.
3420
+ #
3385
3421
  # @return [Types::UpdatePullThroughCacheRuleResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3386
3422
  #
3387
3423
  # * {Types::UpdatePullThroughCacheRuleResponse#ecr_repository_prefix #ecr_repository_prefix} => String
3388
3424
  # * {Types::UpdatePullThroughCacheRuleResponse#registry_id #registry_id} => String
3389
3425
  # * {Types::UpdatePullThroughCacheRuleResponse#updated_at #updated_at} => Time
3390
3426
  # * {Types::UpdatePullThroughCacheRuleResponse#credential_arn #credential_arn} => String
3427
+ # * {Types::UpdatePullThroughCacheRuleResponse#custom_role_arn #custom_role_arn} => String
3428
+ # * {Types::UpdatePullThroughCacheRuleResponse#upstream_repository_prefix #upstream_repository_prefix} => String
3391
3429
  #
3392
3430
  # @example Request syntax with placeholder values
3393
3431
  #
3394
3432
  # resp = client.update_pull_through_cache_rule({
3395
3433
  # registry_id: "RegistryId",
3396
3434
  # ecr_repository_prefix: "PullThroughCacheRuleRepositoryPrefix", # required
3397
- # credential_arn: "CredentialArn", # required
3435
+ # credential_arn: "CredentialArn",
3436
+ # custom_role_arn: "CustomRoleArn",
3398
3437
  # })
3399
3438
  #
3400
3439
  # @example Response structure
@@ -3403,6 +3442,8 @@ module Aws::ECR
3403
3442
  # resp.registry_id #=> String
3404
3443
  # resp.updated_at #=> Time
3405
3444
  # resp.credential_arn #=> String
3445
+ # resp.custom_role_arn #=> String
3446
+ # resp.upstream_repository_prefix #=> String
3406
3447
  #
3407
3448
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UpdatePullThroughCacheRule AWS API Documentation
3408
3449
  #
@@ -3658,6 +3699,8 @@ module Aws::ECR
3658
3699
  # * {Types::ValidatePullThroughCacheRuleResponse#registry_id #registry_id} => String
3659
3700
  # * {Types::ValidatePullThroughCacheRuleResponse#upstream_registry_url #upstream_registry_url} => String
3660
3701
  # * {Types::ValidatePullThroughCacheRuleResponse#credential_arn #credential_arn} => String
3702
+ # * {Types::ValidatePullThroughCacheRuleResponse#custom_role_arn #custom_role_arn} => String
3703
+ # * {Types::ValidatePullThroughCacheRuleResponse#upstream_repository_prefix #upstream_repository_prefix} => String
3661
3704
  # * {Types::ValidatePullThroughCacheRuleResponse#is_valid #is_valid} => Boolean
3662
3705
  # * {Types::ValidatePullThroughCacheRuleResponse#failure #failure} => String
3663
3706
  #
@@ -3674,6 +3717,8 @@ module Aws::ECR
3674
3717
  # resp.registry_id #=> String
3675
3718
  # resp.upstream_registry_url #=> String
3676
3719
  # resp.credential_arn #=> String
3720
+ # resp.custom_role_arn #=> String
3721
+ # resp.upstream_repository_prefix #=> String
3677
3722
  # resp.is_valid #=> Boolean
3678
3723
  # resp.failure #=> String
3679
3724
  #
@@ -3704,7 +3749,7 @@ module Aws::ECR
3704
3749
  tracer: tracer
3705
3750
  )
3706
3751
  context[:gem_name] = 'aws-sdk-ecr'
3707
- context[:gem_version] = '1.97.0'
3752
+ context[:gem_version] = '1.99.0'
3708
3753
  Seahorse::Client::Request.new(handlers, context)
3709
3754
  end
3710
3755
 
@@ -431,6 +431,8 @@ module Aws::ECR
431
431
  CreatePullThroughCacheRuleRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
432
432
  CreatePullThroughCacheRuleRequest.add_member(:upstream_registry, Shapes::ShapeRef.new(shape: UpstreamRegistry, location_name: "upstreamRegistry"))
433
433
  CreatePullThroughCacheRuleRequest.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
434
+ CreatePullThroughCacheRuleRequest.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
435
+ CreatePullThroughCacheRuleRequest.add_member(:upstream_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "upstreamRepositoryPrefix"))
434
436
  CreatePullThroughCacheRuleRequest.struct_class = Types::CreatePullThroughCacheRuleRequest
435
437
 
436
438
  CreatePullThroughCacheRuleResponse.add_member(:ecr_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "ecrRepositoryPrefix"))
@@ -439,6 +441,8 @@ module Aws::ECR
439
441
  CreatePullThroughCacheRuleResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
440
442
  CreatePullThroughCacheRuleResponse.add_member(:upstream_registry, Shapes::ShapeRef.new(shape: UpstreamRegistry, location_name: "upstreamRegistry"))
441
443
  CreatePullThroughCacheRuleResponse.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
444
+ CreatePullThroughCacheRuleResponse.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
445
+ CreatePullThroughCacheRuleResponse.add_member(:upstream_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "upstreamRepositoryPrefix"))
442
446
  CreatePullThroughCacheRuleResponse.struct_class = Types::CreatePullThroughCacheRuleResponse
443
447
 
444
448
  CreateRepositoryCreationTemplateRequest.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, required: true, location_name: "prefix"))
@@ -507,6 +511,8 @@ module Aws::ECR
507
511
  DeletePullThroughCacheRuleResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: CreationTimestamp, location_name: "createdAt"))
508
512
  DeletePullThroughCacheRuleResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
509
513
  DeletePullThroughCacheRuleResponse.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
514
+ DeletePullThroughCacheRuleResponse.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
515
+ DeletePullThroughCacheRuleResponse.add_member(:upstream_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "upstreamRepositoryPrefix"))
510
516
  DeletePullThroughCacheRuleResponse.struct_class = Types::DeletePullThroughCacheRuleResponse
511
517
 
512
518
  DeleteRegistryPolicyRequest.struct_class = Types::DeleteRegistryPolicyRequest
@@ -939,6 +945,8 @@ module Aws::ECR
939
945
  PullThroughCacheRule.add_member(:created_at, Shapes::ShapeRef.new(shape: CreationTimestamp, location_name: "createdAt"))
940
946
  PullThroughCacheRule.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
941
947
  PullThroughCacheRule.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
948
+ PullThroughCacheRule.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
949
+ PullThroughCacheRule.add_member(:upstream_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "upstreamRepositoryPrefix"))
942
950
  PullThroughCacheRule.add_member(:upstream_registry, Shapes::ShapeRef.new(shape: UpstreamRegistry, location_name: "upstreamRegistry"))
943
951
  PullThroughCacheRule.add_member(:updated_at, Shapes::ShapeRef.new(shape: UpdatedTimestamp, location_name: "updatedAt"))
944
952
  PullThroughCacheRule.struct_class = Types::PullThroughCacheRule
@@ -1245,13 +1253,16 @@ module Aws::ECR
1245
1253
 
1246
1254
  UpdatePullThroughCacheRuleRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
1247
1255
  UpdatePullThroughCacheRuleRequest.add_member(:ecr_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, required: true, location_name: "ecrRepositoryPrefix"))
1248
- UpdatePullThroughCacheRuleRequest.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, required: true, location_name: "credentialArn"))
1256
+ UpdatePullThroughCacheRuleRequest.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
1257
+ UpdatePullThroughCacheRuleRequest.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
1249
1258
  UpdatePullThroughCacheRuleRequest.struct_class = Types::UpdatePullThroughCacheRuleRequest
1250
1259
 
1251
1260
  UpdatePullThroughCacheRuleResponse.add_member(:ecr_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "ecrRepositoryPrefix"))
1252
1261
  UpdatePullThroughCacheRuleResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
1253
1262
  UpdatePullThroughCacheRuleResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: UpdatedTimestamp, location_name: "updatedAt"))
1254
1263
  UpdatePullThroughCacheRuleResponse.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
1264
+ UpdatePullThroughCacheRuleResponse.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
1265
+ UpdatePullThroughCacheRuleResponse.add_member(:upstream_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "upstreamRepositoryPrefix"))
1255
1266
  UpdatePullThroughCacheRuleResponse.struct_class = Types::UpdatePullThroughCacheRuleResponse
1256
1267
 
1257
1268
  UpdateRepositoryCreationTemplateRequest.add_member(:prefix, Shapes::ShapeRef.new(shape: Prefix, required: true, location_name: "prefix"))
@@ -1294,6 +1305,8 @@ module Aws::ECR
1294
1305
  ValidatePullThroughCacheRuleResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
1295
1306
  ValidatePullThroughCacheRuleResponse.add_member(:upstream_registry_url, Shapes::ShapeRef.new(shape: Url, location_name: "upstreamRegistryUrl"))
1296
1307
  ValidatePullThroughCacheRuleResponse.add_member(:credential_arn, Shapes::ShapeRef.new(shape: CredentialArn, location_name: "credentialArn"))
1308
+ ValidatePullThroughCacheRuleResponse.add_member(:custom_role_arn, Shapes::ShapeRef.new(shape: CustomRoleArn, location_name: "customRoleArn"))
1309
+ ValidatePullThroughCacheRuleResponse.add_member(:upstream_repository_prefix, Shapes::ShapeRef.new(shape: PullThroughCacheRuleRepositoryPrefix, location_name: "upstreamRepositoryPrefix"))
1297
1310
  ValidatePullThroughCacheRuleResponse.add_member(:is_valid, Shapes::ShapeRef.new(shape: IsPTCRuleValid, location_name: "isValid"))
1298
1311
  ValidatePullThroughCacheRuleResponse.add_member(:failure, Shapes::ShapeRef.new(shape: PTCValidateFailure, location_name: "failure"))
1299
1312
  ValidatePullThroughCacheRuleResponse.struct_class = Types::ValidatePullThroughCacheRuleResponse
@@ -341,6 +341,10 @@ module Aws::ECR
341
341
  # @!attribute [rw] ecr_repository_prefix
342
342
  # The repository name prefix to use when caching images from the
343
343
  # source registry.
344
+ #
345
+ # There is always an assumed `/` applied to the end of the prefix. If
346
+ # you specify `ecr-public` as the prefix, Amazon ECR treats that as
347
+ # `ecr-public/`.
344
348
  # @return [String]
345
349
  #
346
350
  # @!attribute [rw] upstream_registry_url
@@ -348,19 +352,24 @@ module Aws::ECR
348
352
  # source for the pull through cache rule. The following is the syntax
349
353
  # to use for each supported upstream registry.
350
354
  #
351
- # * Amazon ECR Public (`ecr-public`) - `public.ecr.aws`
352
- #
353
- # * Docker Hub (`docker-hub`) - `registry-1.docker.io`
355
+ # * Amazon ECR (`ecr`) `<accountId>.dkr.ecr.<region>.amazonaws.com`
354
356
  #
355
- # * Quay (`quay`) - `quay.io`
357
+ # * Amazon ECR Public (`ecr-public`) `public.ecr.aws`
356
358
  #
357
- # * Kubernetes (`k8s`) - `registry.k8s.io`
359
+ # * Docker Hub (`docker-hub`) `registry-1.docker.io`
358
360
  #
359
- # * GitHub Container Registry (`github-container-registry`) -
361
+ # * GitHub Container Registry (`github-container-registry`)
360
362
  # `ghcr.io`
361
363
  #
362
- # * Microsoft Azure Container Registry (`azure-container-registry`) -
364
+ # * GitLab Container Registry (`gitlab-container-registry`)
365
+ # `registry.gitlab.com`
366
+ #
367
+ # * Kubernetes (`k8s`) – `registry.k8s.io`
368
+ #
369
+ # * Microsoft Azure Container Registry (`azure-container-registry`) –
363
370
  # `<custom>.azurecr.io`
371
+ #
372
+ # * Quay (`quay`) – `quay.io`
364
373
  # @return [String]
365
374
  #
366
375
  # @!attribute [rw] registry_id
@@ -379,6 +388,18 @@ module Aws::ECR
379
388
  # the upstream registry.
380
389
  # @return [String]
381
390
  #
391
+ # @!attribute [rw] custom_role_arn
392
+ # Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon
393
+ # ECR to authenticate to the ECR upstream registry. This role must be
394
+ # in the same account as the registry that you are configuring.
395
+ # @return [String]
396
+ #
397
+ # @!attribute [rw] upstream_repository_prefix
398
+ # The repository name prefix of the upstream registry to match with
399
+ # the upstream repository name. When this field isn't specified,
400
+ # Amazon ECR will use the `ROOT`.
401
+ # @return [String]
402
+ #
382
403
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreatePullThroughCacheRuleRequest AWS API Documentation
383
404
  #
384
405
  class CreatePullThroughCacheRuleRequest < Struct.new(
@@ -386,7 +407,9 @@ module Aws::ECR
386
407
  :upstream_registry_url,
387
408
  :registry_id,
388
409
  :upstream_registry,
389
- :credential_arn)
410
+ :credential_arn,
411
+ :custom_role_arn,
412
+ :upstream_repository_prefix)
390
413
  SENSITIVE = []
391
414
  include Aws::Structure
392
415
  end
@@ -420,6 +443,15 @@ module Aws::ECR
420
443
  # Manager secret associated with the pull through cache rule.
421
444
  # @return [String]
422
445
  #
446
+ # @!attribute [rw] custom_role_arn
447
+ # The ARN of the IAM role associated with the pull through cache rule.
448
+ # @return [String]
449
+ #
450
+ # @!attribute [rw] upstream_repository_prefix
451
+ # The upstream repository prefix associated with the pull through
452
+ # cache rule.
453
+ # @return [String]
454
+ #
423
455
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreatePullThroughCacheRuleResponse AWS API Documentation
424
456
  #
425
457
  class CreatePullThroughCacheRuleResponse < Struct.new(
@@ -428,7 +460,9 @@ module Aws::ECR
428
460
  :created_at,
429
461
  :registry_id,
430
462
  :upstream_registry,
431
- :credential_arn)
463
+ :credential_arn,
464
+ :custom_role_arn,
465
+ :upstream_repository_prefix)
432
466
  SENSITIVE = []
433
467
  include Aws::Structure
434
468
  end
@@ -777,6 +811,15 @@ module Aws::ECR
777
811
  # Manager secret associated with the pull through cache rule.
778
812
  # @return [String]
779
813
  #
814
+ # @!attribute [rw] custom_role_arn
815
+ # The ARN of the IAM role associated with the pull through cache rule.
816
+ # @return [String]
817
+ #
818
+ # @!attribute [rw] upstream_repository_prefix
819
+ # The upstream repository prefix associated with the pull through
820
+ # cache rule.
821
+ # @return [String]
822
+ #
780
823
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeletePullThroughCacheRuleResponse AWS API Documentation
781
824
  #
782
825
  class DeletePullThroughCacheRuleResponse < Struct.new(
@@ -784,7 +827,9 @@ module Aws::ECR
784
827
  :upstream_registry_url,
785
828
  :created_at,
786
829
  :registry_id,
787
- :credential_arn)
830
+ :credential_arn,
831
+ :custom_role_arn,
832
+ :upstream_repository_prefix)
788
833
  SENSITIVE = []
789
834
  include Aws::Structure
790
835
  end
@@ -1662,6 +1707,12 @@ module Aws::ECR
1662
1707
  # @!attribute [rw] authorization_data
1663
1708
  # A list of authorization token data objects that correspond to the
1664
1709
  # `registryIds` values in the request.
1710
+ #
1711
+ # <note markdown="1"> The size of the authorization token returned by Amazon ECR is not
1712
+ # fixed. We recommend that you don't make assumptions about the
1713
+ # maximum size.
1714
+ #
1715
+ # </note>
1665
1716
  # @return [Array<Types::AuthorizationData>]
1666
1717
  #
1667
1718
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/GetAuthorizationTokenResponse AWS API Documentation
@@ -2026,11 +2077,11 @@ module Aws::ECR
2026
2077
  # If the image is a manifest list, this will be the max size of all
2027
2078
  # manifests in the list.
2028
2079
  #
2029
- # <note markdown="1"> Beginning with Docker version 1.9, the Docker client compresses
2030
- # image layers before pushing them to a V2 Docker registry. The output
2031
- # of the `docker images` command shows the uncompressed image size, so
2032
- # it may return a larger image size than the image sizes returned by
2033
- # DescribeImages.
2080
+ # <note markdown="1"> Starting with Docker version 1.9, the Docker client compresses image
2081
+ # layers before pushing them to a V2 Docker registry. The output of
2082
+ # the `docker images` command shows the uncompressed image size.
2083
+ # Therefore, Docker might return a larger image than the image shown
2084
+ # in the Amazon Web Services Management Console.
2034
2085
  #
2035
2086
  # </note>
2036
2087
  # @return [Integer]
@@ -2928,6 +2979,15 @@ module Aws::ECR
2928
2979
  # through cache rule.
2929
2980
  # @return [String]
2930
2981
  #
2982
+ # @!attribute [rw] custom_role_arn
2983
+ # The ARN of the IAM role associated with the pull through cache rule.
2984
+ # @return [String]
2985
+ #
2986
+ # @!attribute [rw] upstream_repository_prefix
2987
+ # The upstream repository prefix associated with the pull through
2988
+ # cache rule.
2989
+ # @return [String]
2990
+ #
2931
2991
  # @!attribute [rw] upstream_registry
2932
2992
  # The name of the upstream source registry associated with the pull
2933
2993
  # through cache rule.
@@ -2946,6 +3006,8 @@ module Aws::ECR
2946
3006
  :created_at,
2947
3007
  :registry_id,
2948
3008
  :credential_arn,
3009
+ :custom_role_arn,
3010
+ :upstream_repository_prefix,
2949
3011
  :upstream_registry,
2950
3012
  :updated_at)
2951
3013
  SENSITIVE = []
@@ -3594,7 +3656,7 @@ module Aws::ECR
3594
3656
  # @return [String]
3595
3657
  #
3596
3658
  # @!attribute [rw] repository_policy
3597
- # he repository policy to apply to repositories created using the
3659
+ # The repository policy to apply to repositories created using the
3598
3660
  # template. A repository policy is a permissions policy associated
3599
3661
  # with a repository to control access permissions.
3600
3662
  # @return [String]
@@ -4288,12 +4350,19 @@ module Aws::ECR
4288
4350
  # the upstream registry.
4289
4351
  # @return [String]
4290
4352
  #
4353
+ # @!attribute [rw] custom_role_arn
4354
+ # Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon
4355
+ # ECR to authenticate to the ECR upstream registry. This role must be
4356
+ # in the same account as the registry that you are configuring.
4357
+ # @return [String]
4358
+ #
4291
4359
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UpdatePullThroughCacheRuleRequest AWS API Documentation
4292
4360
  #
4293
4361
  class UpdatePullThroughCacheRuleRequest < Struct.new(
4294
4362
  :registry_id,
4295
4363
  :ecr_repository_prefix,
4296
- :credential_arn)
4364
+ :credential_arn,
4365
+ :custom_role_arn)
4297
4366
  SENSITIVE = []
4298
4367
  include Aws::Structure
4299
4368
  end
@@ -4317,13 +4386,24 @@ module Aws::ECR
4317
4386
  # Manager secret associated with the pull through cache rule.
4318
4387
  # @return [String]
4319
4388
  #
4389
+ # @!attribute [rw] custom_role_arn
4390
+ # The ARN of the IAM role associated with the pull through cache rule.
4391
+ # @return [String]
4392
+ #
4393
+ # @!attribute [rw] upstream_repository_prefix
4394
+ # The upstream repository prefix associated with the pull through
4395
+ # cache rule.
4396
+ # @return [String]
4397
+ #
4320
4398
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UpdatePullThroughCacheRuleResponse AWS API Documentation
4321
4399
  #
4322
4400
  class UpdatePullThroughCacheRuleResponse < Struct.new(
4323
4401
  :ecr_repository_prefix,
4324
4402
  :registry_id,
4325
4403
  :updated_at,
4326
- :credential_arn)
4404
+ :credential_arn,
4405
+ :custom_role_arn,
4406
+ :upstream_repository_prefix)
4327
4407
  SENSITIVE = []
4328
4408
  include Aws::Structure
4329
4409
  end
@@ -4548,6 +4628,15 @@ module Aws::ECR
4548
4628
  # Manager secret associated with the pull through cache rule.
4549
4629
  # @return [String]
4550
4630
  #
4631
+ # @!attribute [rw] custom_role_arn
4632
+ # The ARN of the IAM role associated with the pull through cache rule.
4633
+ # @return [String]
4634
+ #
4635
+ # @!attribute [rw] upstream_repository_prefix
4636
+ # The upstream repository prefix associated with the pull through
4637
+ # cache rule.
4638
+ # @return [String]
4639
+ #
4551
4640
  # @!attribute [rw] is_valid
4552
4641
  # Whether or not the pull through cache rule was validated. If `true`,
4553
4642
  # Amazon ECR was able to reach the upstream registry and
@@ -4572,6 +4661,8 @@ module Aws::ECR
4572
4661
  :registry_id,
4573
4662
  :upstream_registry_url,
4574
4663
  :credential_arn,
4664
+ :custom_role_arn,
4665
+ :upstream_repository_prefix,
4575
4666
  :is_valid,
4576
4667
  :failure)
4577
4668
  SENSITIVE = []
data/lib/aws-sdk-ecr.rb CHANGED
@@ -55,7 +55,7 @@ module Aws::ECR
55
55
  autoload :EndpointProvider, 'aws-sdk-ecr/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-ecr/endpoints'
57
57
 
58
- GEM_VERSION = '1.97.0'
58
+ GEM_VERSION = '1.99.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -161,16 +161,20 @@ module Aws
161
161
  def upstream_registry_url: () -> ::String
162
162
  def created_at: () -> ::Time
163
163
  def registry_id: () -> ::String
164
- def upstream_registry: () -> ("ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
164
+ def upstream_registry: () -> ("ecr" | "ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
165
165
  def credential_arn: () -> ::String
166
+ def custom_role_arn: () -> ::String
167
+ def upstream_repository_prefix: () -> ::String
166
168
  end
167
169
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECR/Client.html#create_pull_through_cache_rule-instance_method
168
170
  def create_pull_through_cache_rule: (
169
171
  ecr_repository_prefix: ::String,
170
172
  upstream_registry_url: ::String,
171
173
  ?registry_id: ::String,
172
- ?upstream_registry: ("ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry"),
173
- ?credential_arn: ::String
174
+ ?upstream_registry: ("ecr" | "ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry"),
175
+ ?credential_arn: ::String,
176
+ ?custom_role_arn: ::String,
177
+ ?upstream_repository_prefix: ::String
174
178
  ) -> _CreatePullThroughCacheRuleResponseSuccess
175
179
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreatePullThroughCacheRuleResponseSuccess
176
180
 
@@ -247,6 +251,8 @@ module Aws
247
251
  def created_at: () -> ::Time
248
252
  def registry_id: () -> ::String
249
253
  def credential_arn: () -> ::String
254
+ def custom_role_arn: () -> ::String
255
+ def upstream_repository_prefix: () -> ::String
250
256
  end
251
257
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECR/Client.html#delete_pull_through_cache_rule-instance_method
252
258
  def delete_pull_through_cache_rule: (
@@ -772,12 +778,15 @@ module Aws
772
778
  def registry_id: () -> ::String
773
779
  def updated_at: () -> ::Time
774
780
  def credential_arn: () -> ::String
781
+ def custom_role_arn: () -> ::String
782
+ def upstream_repository_prefix: () -> ::String
775
783
  end
776
784
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECR/Client.html#update_pull_through_cache_rule-instance_method
777
785
  def update_pull_through_cache_rule: (
778
786
  ?registry_id: ::String,
779
787
  ecr_repository_prefix: ::String,
780
- credential_arn: ::String
788
+ ?credential_arn: ::String,
789
+ ?custom_role_arn: ::String
781
790
  ) -> _UpdatePullThroughCacheRuleResponseSuccess
782
791
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePullThroughCacheRuleResponseSuccess
783
792
 
@@ -832,6 +841,8 @@ module Aws
832
841
  def registry_id: () -> ::String
833
842
  def upstream_registry_url: () -> ::String
834
843
  def credential_arn: () -> ::String
844
+ def custom_role_arn: () -> ::String
845
+ def upstream_repository_prefix: () -> ::String
835
846
  def is_valid: () -> bool
836
847
  def failure: () -> ::String
837
848
  end
data/sig/types.rbs CHANGED
@@ -104,8 +104,10 @@ module Aws::ECR
104
104
  attr_accessor ecr_repository_prefix: ::String
105
105
  attr_accessor upstream_registry_url: ::String
106
106
  attr_accessor registry_id: ::String
107
- attr_accessor upstream_registry: ("ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
107
+ attr_accessor upstream_registry: ("ecr" | "ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
108
108
  attr_accessor credential_arn: ::String
109
+ attr_accessor custom_role_arn: ::String
110
+ attr_accessor upstream_repository_prefix: ::String
109
111
  SENSITIVE: []
110
112
  end
111
113
 
@@ -114,8 +116,10 @@ module Aws::ECR
114
116
  attr_accessor upstream_registry_url: ::String
115
117
  attr_accessor created_at: ::Time
116
118
  attr_accessor registry_id: ::String
117
- attr_accessor upstream_registry: ("ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
119
+ attr_accessor upstream_registry: ("ecr" | "ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
118
120
  attr_accessor credential_arn: ::String
121
+ attr_accessor custom_role_arn: ::String
122
+ attr_accessor upstream_repository_prefix: ::String
119
123
  SENSITIVE: []
120
124
  end
121
125
 
@@ -202,6 +206,8 @@ module Aws::ECR
202
206
  attr_accessor created_at: ::Time
203
207
  attr_accessor registry_id: ::String
204
208
  attr_accessor credential_arn: ::String
209
+ attr_accessor custom_role_arn: ::String
210
+ attr_accessor upstream_repository_prefix: ::String
205
211
  SENSITIVE: []
206
212
  end
207
213
 
@@ -765,7 +771,9 @@ module Aws::ECR
765
771
  attr_accessor created_at: ::Time
766
772
  attr_accessor registry_id: ::String
767
773
  attr_accessor credential_arn: ::String
768
- attr_accessor upstream_registry: ("ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
774
+ attr_accessor custom_role_arn: ::String
775
+ attr_accessor upstream_repository_prefix: ::String
776
+ attr_accessor upstream_registry: ("ecr" | "ecr-public" | "quay" | "k8s" | "docker-hub" | "github-container-registry" | "azure-container-registry" | "gitlab-container-registry")
769
777
  attr_accessor updated_at: ::Time
770
778
  SENSITIVE: []
771
779
  end
@@ -1157,6 +1165,7 @@ module Aws::ECR
1157
1165
  attr_accessor registry_id: ::String
1158
1166
  attr_accessor ecr_repository_prefix: ::String
1159
1167
  attr_accessor credential_arn: ::String
1168
+ attr_accessor custom_role_arn: ::String
1160
1169
  SENSITIVE: []
1161
1170
  end
1162
1171
 
@@ -1165,6 +1174,8 @@ module Aws::ECR
1165
1174
  attr_accessor registry_id: ::String
1166
1175
  attr_accessor updated_at: ::Time
1167
1176
  attr_accessor credential_arn: ::String
1177
+ attr_accessor custom_role_arn: ::String
1178
+ attr_accessor upstream_repository_prefix: ::String
1168
1179
  SENSITIVE: []
1169
1180
  end
1170
1181
 
@@ -1221,6 +1232,8 @@ module Aws::ECR
1221
1232
  attr_accessor registry_id: ::String
1222
1233
  attr_accessor upstream_registry_url: ::String
1223
1234
  attr_accessor credential_arn: ::String
1235
+ attr_accessor custom_role_arn: ::String
1236
+ attr_accessor upstream_repository_prefix: ::String
1224
1237
  attr_accessor is_valid: bool
1225
1238
  attr_accessor failure: ::String
1226
1239
  SENSITIVE: []
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.97.0
4
+ version: 1.99.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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core