aws-sdk-ecr 1.97.0 → 1.98.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: 73e9b95a954a912ed8e2ec0a3b068eacbc3bb738bf2cb9cf563e78d4105a8e44
4
+ data.tar.gz: b2b0b79205e4f15dcaa7a3676a7fd5744debdabb50a0bbaf4c5cfba04e59789c
5
5
  SHA512:
6
- metadata.gz: 90b667ed573adfdfde2a850491297d71911d11357ab6a3c9356e2274ba751027bfbdb47d0627dab75d86c1e4e8cd92e8cc3c4063675b578422879fdad9dce6b4
7
- data.tar.gz: 176e91eaef4ee3c3b86795338803f42dcd9031ac26c5d0d82c71b7adf26a1f20c022b2ccf39aa2549690688cb8aa8acc1ad81bf59647f6f9ed67ae54d3f20363
6
+ metadata.gz: 26cdf11391e23fc036d28a18efd270f97a7aad6fc41525a4713ca6e1e6bffa3d64a0cc54fc442486299b1a219af31b33c4a095c91e87d9efdc045813d90d0fd1
7
+ data.tar.gz: c48dffd005aea2289f2f709e4810284663d5bf51b3ff3ce062f6e131addd6b807e193d98cfa03841bba2c910142d2052babf4722e6b1155746031659139caa9f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.98.0 (2025-03-11)
5
+ ------------------
6
+
7
+ * Feature - This release adds Amazon ECR to Amazon ECR pull through cache rules support.
8
+
4
9
  1.97.0 (2025-02-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.97.0
1
+ 1.98.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`) `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
  #
@@ -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.98.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`) `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
@@ -2026,11 +2071,11 @@ module Aws::ECR
2026
2071
  # If the image is a manifest list, this will be the max size of all
2027
2072
  # manifests in the list.
2028
2073
  #
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.
2074
+ # <note markdown="1"> Starting with Docker version 1.9, the Docker client compresses image
2075
+ # layers before pushing them to a V2 Docker registry. The output of
2076
+ # the `docker images` command shows the uncompressed image size.
2077
+ # Therefore, Docker might return a larger image than the image sizes
2078
+ # returned by DescribeImages.
2034
2079
  #
2035
2080
  # </note>
2036
2081
  # @return [Integer]
@@ -2928,6 +2973,15 @@ module Aws::ECR
2928
2973
  # through cache rule.
2929
2974
  # @return [String]
2930
2975
  #
2976
+ # @!attribute [rw] custom_role_arn
2977
+ # The ARN of the IAM role associated with the pull through cache rule.
2978
+ # @return [String]
2979
+ #
2980
+ # @!attribute [rw] upstream_repository_prefix
2981
+ # The upstream repository prefix associated with the pull through
2982
+ # cache rule.
2983
+ # @return [String]
2984
+ #
2931
2985
  # @!attribute [rw] upstream_registry
2932
2986
  # The name of the upstream source registry associated with the pull
2933
2987
  # through cache rule.
@@ -2946,6 +3000,8 @@ module Aws::ECR
2946
3000
  :created_at,
2947
3001
  :registry_id,
2948
3002
  :credential_arn,
3003
+ :custom_role_arn,
3004
+ :upstream_repository_prefix,
2949
3005
  :upstream_registry,
2950
3006
  :updated_at)
2951
3007
  SENSITIVE = []
@@ -3594,7 +3650,7 @@ module Aws::ECR
3594
3650
  # @return [String]
3595
3651
  #
3596
3652
  # @!attribute [rw] repository_policy
3597
- # he repository policy to apply to repositories created using the
3653
+ # The repository policy to apply to repositories created using the
3598
3654
  # template. A repository policy is a permissions policy associated
3599
3655
  # with a repository to control access permissions.
3600
3656
  # @return [String]
@@ -4288,12 +4344,19 @@ module Aws::ECR
4288
4344
  # the upstream registry.
4289
4345
  # @return [String]
4290
4346
  #
4347
+ # @!attribute [rw] custom_role_arn
4348
+ # Amazon Resource Name (ARN) of the IAM role to be assumed by Amazon
4349
+ # ECR to authenticate to the ECR upstream registry. This role must be
4350
+ # in the same account as the registry that you are configuring.
4351
+ # @return [String]
4352
+ #
4291
4353
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UpdatePullThroughCacheRuleRequest AWS API Documentation
4292
4354
  #
4293
4355
  class UpdatePullThroughCacheRuleRequest < Struct.new(
4294
4356
  :registry_id,
4295
4357
  :ecr_repository_prefix,
4296
- :credential_arn)
4358
+ :credential_arn,
4359
+ :custom_role_arn)
4297
4360
  SENSITIVE = []
4298
4361
  include Aws::Structure
4299
4362
  end
@@ -4317,13 +4380,24 @@ module Aws::ECR
4317
4380
  # Manager secret associated with the pull through cache rule.
4318
4381
  # @return [String]
4319
4382
  #
4383
+ # @!attribute [rw] custom_role_arn
4384
+ # The ARN of the IAM role associated with the pull through cache rule.
4385
+ # @return [String]
4386
+ #
4387
+ # @!attribute [rw] upstream_repository_prefix
4388
+ # The upstream repository prefix associated with the pull through
4389
+ # cache rule.
4390
+ # @return [String]
4391
+ #
4320
4392
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UpdatePullThroughCacheRuleResponse AWS API Documentation
4321
4393
  #
4322
4394
  class UpdatePullThroughCacheRuleResponse < Struct.new(
4323
4395
  :ecr_repository_prefix,
4324
4396
  :registry_id,
4325
4397
  :updated_at,
4326
- :credential_arn)
4398
+ :credential_arn,
4399
+ :custom_role_arn,
4400
+ :upstream_repository_prefix)
4327
4401
  SENSITIVE = []
4328
4402
  include Aws::Structure
4329
4403
  end
@@ -4548,6 +4622,15 @@ module Aws::ECR
4548
4622
  # Manager secret associated with the pull through cache rule.
4549
4623
  # @return [String]
4550
4624
  #
4625
+ # @!attribute [rw] custom_role_arn
4626
+ # The ARN of the IAM role associated with the pull through cache rule.
4627
+ # @return [String]
4628
+ #
4629
+ # @!attribute [rw] upstream_repository_prefix
4630
+ # The upstream repository prefix associated with the pull through
4631
+ # cache rule.
4632
+ # @return [String]
4633
+ #
4551
4634
  # @!attribute [rw] is_valid
4552
4635
  # Whether or not the pull through cache rule was validated. If `true`,
4553
4636
  # Amazon ECR was able to reach the upstream registry and
@@ -4572,6 +4655,8 @@ module Aws::ECR
4572
4655
  :registry_id,
4573
4656
  :upstream_registry_url,
4574
4657
  :credential_arn,
4658
+ :custom_role_arn,
4659
+ :upstream_repository_prefix,
4575
4660
  :is_valid,
4576
4661
  :failure)
4577
4662
  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.98.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.98.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-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core