aws-sdk-ecr 1.78.0 → 1.79.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -361,9 +361,6 @@ module Aws::ECR
361
361
  #
362
362
  # * Microsoft Azure Container Registry (`azure-container-registry`) -
363
363
  # `<custom>.azurecr.io`
364
- #
365
- # * GitLab Container Registry (`gitlab-container-registry`) -
366
- # `registry.gitlab.com`
367
364
  # @return [String]
368
365
  #
369
366
  # @!attribute [rw] registry_id
@@ -436,6 +433,106 @@ module Aws::ECR
436
433
  include Aws::Structure
437
434
  end
438
435
 
436
+ # @!attribute [rw] prefix
437
+ # The repository namespace prefix to associate with the template. All
438
+ # repositories created using this namespace prefix will have the
439
+ # settings defined in this template applied. For example, a prefix of
440
+ # `prod` would apply to all repositories beginning with `prod/`.
441
+ # Similarly, a prefix of `prod/team` would apply to all repositories
442
+ # beginning with `prod/team/`.
443
+ #
444
+ # To apply a template to all repositories in your registry that don't
445
+ # have an associated creation template, you can use `ROOT` as the
446
+ # prefix.
447
+ #
448
+ # There is always an assumed `/` applied to the end of the prefix. If
449
+ # you specify `ecr-public` as the prefix, Amazon ECR treats that as
450
+ # `ecr-public/`. When using a pull through cache rule, the repository
451
+ # prefix you specify during rule creation is what you should specify
452
+ # as your repository creation template prefix as well.
453
+ # @return [String]
454
+ #
455
+ # @!attribute [rw] description
456
+ # A description for the repository creation template.
457
+ # @return [String]
458
+ #
459
+ # @!attribute [rw] encryption_configuration
460
+ # The encryption configuration to use for repositories created using
461
+ # the template.
462
+ # @return [Types::EncryptionConfigurationForRepositoryCreationTemplate]
463
+ #
464
+ # @!attribute [rw] resource_tags
465
+ # The metadata to apply to the repository to help you categorize and
466
+ # organize. Each tag consists of a key and an optional value, both of
467
+ # which you define. Tag keys can have a maximum character length of
468
+ # 128 characters, and tag values can have a maximum length of 256
469
+ # characters.
470
+ # @return [Array<Types::Tag>]
471
+ #
472
+ # @!attribute [rw] image_tag_mutability
473
+ # The tag mutability setting for the repository. If this parameter is
474
+ # omitted, the default setting of `MUTABLE` will be used which will
475
+ # allow image tags to be overwritten. If `IMMUTABLE` is specified, all
476
+ # image tags within the repository will be immutable which will
477
+ # prevent them from being overwritten.
478
+ # @return [String]
479
+ #
480
+ # @!attribute [rw] repository_policy
481
+ # The repository policy to apply to repositories created using the
482
+ # template. A repository policy is a permissions policy associated
483
+ # with a repository to control access permissions.
484
+ # @return [String]
485
+ #
486
+ # @!attribute [rw] lifecycle_policy
487
+ # The lifecycle policy to use for repositories created using the
488
+ # template.
489
+ # @return [String]
490
+ #
491
+ # @!attribute [rw] applied_for
492
+ # A list of enumerable strings representing the Amazon ECR repository
493
+ # creation scenarios that this template will apply towards. The two
494
+ # supported scenarios are `PULL_THROUGH_CACHE` and `REPLICATION`
495
+ # @return [Array<String>]
496
+ #
497
+ # @!attribute [rw] custom_role_arn
498
+ # The ARN of the role to be assumed by Amazon ECR. This role must be
499
+ # in the same account as the registry that you are configuring.
500
+ # @return [String]
501
+ #
502
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryCreationTemplateRequest AWS API Documentation
503
+ #
504
+ class CreateRepositoryCreationTemplateRequest < Struct.new(
505
+ :prefix,
506
+ :description,
507
+ :encryption_configuration,
508
+ :resource_tags,
509
+ :image_tag_mutability,
510
+ :repository_policy,
511
+ :lifecycle_policy,
512
+ :applied_for,
513
+ :custom_role_arn)
514
+ SENSITIVE = []
515
+ include Aws::Structure
516
+ end
517
+
518
+ # @!attribute [rw] registry_id
519
+ # The registry ID associated with the request.
520
+ # @return [String]
521
+ #
522
+ # @!attribute [rw] repository_creation_template
523
+ # The details of the repository creation template associated with the
524
+ # request.
525
+ # @return [Types::RepositoryCreationTemplate]
526
+ #
527
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryCreationTemplateResponse AWS API Documentation
528
+ #
529
+ class CreateRepositoryCreationTemplateResponse < Struct.new(
530
+ :registry_id,
531
+ :repository_creation_template)
532
+ SENSITIVE = []
533
+ include Aws::Structure
534
+ end
535
+
439
536
  # @!attribute [rw] registry_id
440
537
  # The Amazon Web Services account ID associated with the registry to
441
538
  # create the repository. If you do not specify a registry, the default
@@ -712,6 +809,36 @@ module Aws::ECR
712
809
  include Aws::Structure
713
810
  end
714
811
 
812
+ # @!attribute [rw] prefix
813
+ # The repository namespace prefix associated with the repository
814
+ # creation template.
815
+ # @return [String]
816
+ #
817
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryCreationTemplateRequest AWS API Documentation
818
+ #
819
+ class DeleteRepositoryCreationTemplateRequest < Struct.new(
820
+ :prefix)
821
+ SENSITIVE = []
822
+ include Aws::Structure
823
+ end
824
+
825
+ # @!attribute [rw] registry_id
826
+ # The registry ID associated with the request.
827
+ # @return [String]
828
+ #
829
+ # @!attribute [rw] repository_creation_template
830
+ # The details of the repository creation template that was deleted.
831
+ # @return [Types::RepositoryCreationTemplate]
832
+ #
833
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepositoryCreationTemplateResponse AWS API Documentation
834
+ #
835
+ class DeleteRepositoryCreationTemplateResponse < Struct.new(
836
+ :registry_id,
837
+ :repository_creation_template)
838
+ SENSITIVE = []
839
+ include Aws::Structure
840
+ end
841
+
715
842
  # @!attribute [rw] registry_id
716
843
  # The Amazon Web Services account ID associated with the registry that
717
844
  # contains the repository policy to delete. If you do not specify a
@@ -1096,7 +1223,7 @@ module Aws::ECR
1096
1223
  class DescribeRegistryRequest < Aws::EmptyStructure; end
1097
1224
 
1098
1225
  # @!attribute [rw] registry_id
1099
- # The ID of the registry.
1226
+ # The registry ID associated with the request.
1100
1227
  # @return [String]
1101
1228
  #
1102
1229
  # @!attribute [rw] replication_configuration
@@ -1184,6 +1311,78 @@ module Aws::ECR
1184
1311
  include Aws::Structure
1185
1312
  end
1186
1313
 
1314
+ # @!attribute [rw] prefixes
1315
+ # The repository namespace prefixes associated with the repository
1316
+ # creation templates to describe. If this value is not specified, all
1317
+ # repository creation templates are returned.
1318
+ # @return [Array<String>]
1319
+ #
1320
+ # @!attribute [rw] next_token
1321
+ # The `nextToken` value returned from a previous paginated
1322
+ # `DescribeRepositoryCreationTemplates` request where `maxResults` was
1323
+ # used and the results exceeded the value of that parameter.
1324
+ # Pagination continues from the end of the previous results that
1325
+ # returned the `nextToken` value. This value is `null` when there are
1326
+ # no more results to return.
1327
+ #
1328
+ # <note markdown="1"> This token should be treated as an opaque identifier that is only
1329
+ # used to retrieve the next items in a list and not for other
1330
+ # programmatic purposes.
1331
+ #
1332
+ # </note>
1333
+ # @return [String]
1334
+ #
1335
+ # @!attribute [rw] max_results
1336
+ # The maximum number of repository results returned by
1337
+ # `DescribeRepositoryCreationTemplatesRequest` in paginated output.
1338
+ # When this parameter is used,
1339
+ # `DescribeRepositoryCreationTemplatesRequest` only returns
1340
+ # `maxResults` results in a single page along with a `nextToken`
1341
+ # response element. The remaining results of the initial request can
1342
+ # be seen by sending another
1343
+ # `DescribeRepositoryCreationTemplatesRequest` request with the
1344
+ # returned `nextToken` value. This value can be between 1 and 1000. If
1345
+ # this parameter is not used, then
1346
+ # `DescribeRepositoryCreationTemplatesRequest` returns up to 100
1347
+ # results and a `nextToken` value, if applicable.
1348
+ # @return [Integer]
1349
+ #
1350
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositoryCreationTemplatesRequest AWS API Documentation
1351
+ #
1352
+ class DescribeRepositoryCreationTemplatesRequest < Struct.new(
1353
+ :prefixes,
1354
+ :next_token,
1355
+ :max_results)
1356
+ SENSITIVE = []
1357
+ include Aws::Structure
1358
+ end
1359
+
1360
+ # @!attribute [rw] registry_id
1361
+ # The registry ID associated with the request.
1362
+ # @return [String]
1363
+ #
1364
+ # @!attribute [rw] repository_creation_templates
1365
+ # The details of the repository creation templates.
1366
+ # @return [Array<Types::RepositoryCreationTemplate>]
1367
+ #
1368
+ # @!attribute [rw] next_token
1369
+ # The `nextToken` value to include in a future
1370
+ # `DescribeRepositoryCreationTemplates` request. When the results of a
1371
+ # `DescribeRepositoryCreationTemplates` request exceed `maxResults`,
1372
+ # this value can be used to retrieve the next page of results. This
1373
+ # value is `null` when there are no more results to return.
1374
+ # @return [String]
1375
+ #
1376
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositoryCreationTemplatesResponse AWS API Documentation
1377
+ #
1378
+ class DescribeRepositoryCreationTemplatesResponse < Struct.new(
1379
+ :registry_id,
1380
+ :repository_creation_templates,
1381
+ :next_token)
1382
+ SENSITIVE = []
1383
+ include Aws::Structure
1384
+ end
1385
+
1187
1386
  # The specified layer upload does not contain any layer parts.
1188
1387
  #
1189
1388
  # @!attribute [rw] message
@@ -1204,8 +1403,8 @@ module Aws::ECR
1204
1403
  # By default, when no encryption configuration is set or the `AES256`
1205
1404
  # encryption type is used, Amazon ECR uses server-side encryption with
1206
1405
  # Amazon S3-managed encryption keys which encrypts your data at rest
1207
- # using an AES-256 encryption algorithm. This does not require any
1208
- # action on your part.
1406
+ # using an AES256 encryption algorithm. This does not require any action
1407
+ # on your part.
1209
1408
  #
1210
1409
  # For more control over the encryption of the contents of your
1211
1410
  # repository, you can use server-side encryption with Key Management
@@ -1232,7 +1431,7 @@ module Aws::ECR
1232
1431
  #
1233
1432
  # If you use the `AES256` encryption type, Amazon ECR uses server-side
1234
1433
  # encryption with Amazon S3-managed encryption keys which encrypts the
1235
- # images in the repository using an AES-256 encryption algorithm. For
1434
+ # images in the repository using an AES256 encryption algorithm. For
1236
1435
  # more information, see [Protecting data using server-side encryption
1237
1436
  # with Amazon S3-managed encryption keys (SSE-S3)][2] in the *Amazon
1238
1437
  # Simple Storage Service Console Developer Guide*.
@@ -1260,6 +1459,52 @@ module Aws::ECR
1260
1459
  include Aws::Structure
1261
1460
  end
1262
1461
 
1462
+ # The encryption configuration to associate with the repository creation
1463
+ # template.
1464
+ #
1465
+ # @!attribute [rw] encryption_type
1466
+ # The encryption type to use.
1467
+ #
1468
+ # If you use the `KMS` encryption type, the contents of the repository
1469
+ # will be encrypted using server-side encryption with Key Management
1470
+ # Service key stored in KMS. When you use KMS to encrypt your data,
1471
+ # you can either use the default Amazon Web Services managed KMS key
1472
+ # for Amazon ECR, or specify your own KMS key, which you already
1473
+ # created. For more information, see [Protecting data using
1474
+ # server-side encryption with an KMS key stored in Key Management
1475
+ # Service (SSE-KMS)][1] in the *Amazon Simple Storage Service Console
1476
+ # Developer Guide*.
1477
+ #
1478
+ # If you use the `AES256` encryption type, Amazon ECR uses server-side
1479
+ # encryption with Amazon S3-managed encryption keys which encrypts the
1480
+ # images in the repository using an AES256 encryption algorithm. For
1481
+ # more information, see [Protecting data using server-side encryption
1482
+ # with Amazon S3-managed encryption keys (SSE-S3)][2] in the *Amazon
1483
+ # Simple Storage Service Console Developer Guide*.
1484
+ #
1485
+ #
1486
+ #
1487
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html
1488
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
1489
+ # @return [String]
1490
+ #
1491
+ # @!attribute [rw] kms_key
1492
+ # If you use the `KMS` encryption type, specify the KMS key to use for
1493
+ # encryption. The full ARN of the KMS key must be specified. The key
1494
+ # must exist in the same Region as the repository. If no key is
1495
+ # specified, the default Amazon Web Services managed KMS key for
1496
+ # Amazon ECR will be used.
1497
+ # @return [String]
1498
+ #
1499
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/EncryptionConfigurationForRepositoryCreationTemplate AWS API Documentation
1500
+ #
1501
+ class EncryptionConfigurationForRepositoryCreationTemplate < Struct.new(
1502
+ :encryption_type,
1503
+ :kms_key)
1504
+ SENSITIVE = []
1505
+ include Aws::Structure
1506
+ end
1507
+
1263
1508
  # The details of an enhanced image scan. This is returned when enhanced
1264
1509
  # scanning is enabled for your private registry.
1265
1510
  #
@@ -1571,7 +1816,7 @@ module Aws::ECR
1571
1816
  class GetRegistryPolicyRequest < Aws::EmptyStructure; end
1572
1817
 
1573
1818
  # @!attribute [rw] registry_id
1574
- # The ID of the registry.
1819
+ # The registry ID associated with the request.
1575
1820
  # @return [String]
1576
1821
  #
1577
1822
  # @!attribute [rw] policy_text
@@ -1594,7 +1839,7 @@ module Aws::ECR
1594
1839
  class GetRegistryScanningConfigurationRequest < Aws::EmptyStructure; end
1595
1840
 
1596
1841
  # @!attribute [rw] registry_id
1597
- # The ID of the registry.
1842
+ # The registry ID associated with the request.
1598
1843
  # @return [String]
1599
1844
  #
1600
1845
  # @!attribute [rw] scanning_configuration
@@ -2904,7 +3149,7 @@ module Aws::ECR
2904
3149
  end
2905
3150
 
2906
3151
  # @!attribute [rw] registry_id
2907
- # The registry ID.
3152
+ # The registry ID associated with the request.
2908
3153
  # @return [String]
2909
3154
  #
2910
3155
  # @!attribute [rw] policy_text
@@ -3224,6 +3469,88 @@ module Aws::ECR
3224
3469
  include Aws::Structure
3225
3470
  end
3226
3471
 
3472
+ # The details of the repository creation template associated with the
3473
+ # request.
3474
+ #
3475
+ # @!attribute [rw] prefix
3476
+ # The repository namespace prefix associated with the repository
3477
+ # creation template.
3478
+ # @return [String]
3479
+ #
3480
+ # @!attribute [rw] description
3481
+ # The description associated with the repository creation template.
3482
+ # @return [String]
3483
+ #
3484
+ # @!attribute [rw] encryption_configuration
3485
+ # The encryption configuration associated with the repository creation
3486
+ # template.
3487
+ # @return [Types::EncryptionConfigurationForRepositoryCreationTemplate]
3488
+ #
3489
+ # @!attribute [rw] resource_tags
3490
+ # The metadata to apply to the repository to help you categorize and
3491
+ # organize. Each tag consists of a key and an optional value, both of
3492
+ # which you define. Tag keys can have a maximum character length of
3493
+ # 128 characters, and tag values can have a maximum length of 256
3494
+ # characters.
3495
+ # @return [Array<Types::Tag>]
3496
+ #
3497
+ # @!attribute [rw] image_tag_mutability
3498
+ # The tag mutability setting for the repository. If this parameter is
3499
+ # omitted, the default setting of MUTABLE will be used which will
3500
+ # allow image tags to be overwritten. If IMMUTABLE is specified, all
3501
+ # image tags within the repository will be immutable which will
3502
+ # prevent them from being overwritten.
3503
+ # @return [String]
3504
+ #
3505
+ # @!attribute [rw] repository_policy
3506
+ # he repository policy to apply to repositories created using the
3507
+ # template. A repository policy is a permissions policy associated
3508
+ # with a repository to control access permissions.
3509
+ # @return [String]
3510
+ #
3511
+ # @!attribute [rw] lifecycle_policy
3512
+ # The lifecycle policy to use for repositories created using the
3513
+ # template.
3514
+ # @return [String]
3515
+ #
3516
+ # @!attribute [rw] applied_for
3517
+ # A list of enumerable Strings representing the repository creation
3518
+ # scenarios that this template will apply towards. The two supported
3519
+ # scenarios are PULL\_THROUGH\_CACHE and REPLICATION
3520
+ # @return [Array<String>]
3521
+ #
3522
+ # @!attribute [rw] custom_role_arn
3523
+ # The ARN of the role to be assumed by Amazon ECR.
3524
+ # @return [String]
3525
+ #
3526
+ # @!attribute [rw] created_at
3527
+ # The date and time, in JavaScript date format, when the repository
3528
+ # creation template was created.
3529
+ # @return [Time]
3530
+ #
3531
+ # @!attribute [rw] updated_at
3532
+ # The date and time, in JavaScript date format, when the repository
3533
+ # creation template was last updated.
3534
+ # @return [Time]
3535
+ #
3536
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/RepositoryCreationTemplate AWS API Documentation
3537
+ #
3538
+ class RepositoryCreationTemplate < Struct.new(
3539
+ :prefix,
3540
+ :description,
3541
+ :encryption_configuration,
3542
+ :resource_tags,
3543
+ :image_tag_mutability,
3544
+ :repository_policy,
3545
+ :lifecycle_policy,
3546
+ :applied_for,
3547
+ :custom_role_arn,
3548
+ :created_at,
3549
+ :updated_at)
3550
+ SENSITIVE = []
3551
+ include Aws::Structure
3552
+ end
3553
+
3227
3554
  # The filter settings used with image replication. Specifying a
3228
3555
  # repository filter to a replication rule provides a method for
3229
3556
  # controlling which repositories in a private registry are replicated.
@@ -3701,6 +4028,34 @@ module Aws::ECR
3701
4028
  #
3702
4029
  class TagResourceResponse < Aws::EmptyStructure; end
3703
4030
 
4031
+ # The repository creation template already exists. Specify a unique
4032
+ # prefix and try again.
4033
+ #
4034
+ # @!attribute [rw] message
4035
+ # @return [String]
4036
+ #
4037
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/TemplateAlreadyExistsException AWS API Documentation
4038
+ #
4039
+ class TemplateAlreadyExistsException < Struct.new(
4040
+ :message)
4041
+ SENSITIVE = []
4042
+ include Aws::Structure
4043
+ end
4044
+
4045
+ # The specified repository creation template can't be found. Verify the
4046
+ # registry ID and prefix and try again.
4047
+ #
4048
+ # @!attribute [rw] message
4049
+ # @return [String]
4050
+ #
4051
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/TemplateNotFoundException AWS API Documentation
4052
+ #
4053
+ class TemplateNotFoundException < Struct.new(
4054
+ :message)
4055
+ SENSITIVE = []
4056
+ include Aws::Structure
4057
+ end
4058
+
3704
4059
  # The list of tags on the repository is over the limit. The maximum
3705
4060
  # number of tags that can be applied to a repository is 50.
3706
4061
  #
@@ -3879,6 +4234,101 @@ module Aws::ECR
3879
4234
  include Aws::Structure
3880
4235
  end
3881
4236
 
4237
+ # @!attribute [rw] prefix
4238
+ # The repository namespace prefix that matches an existing repository
4239
+ # creation template in the registry. All repositories created using
4240
+ # this namespace prefix will have the settings defined in this
4241
+ # template applied. For example, a prefix of `prod` would apply to all
4242
+ # repositories beginning with `prod/`. This includes a repository
4243
+ # named `prod/team1` as well as a repository named `prod/repository1`.
4244
+ #
4245
+ # To apply a template to all repositories in your registry that don't
4246
+ # have an associated creation template, you can use `ROOT` as the
4247
+ # prefix.
4248
+ # @return [String]
4249
+ #
4250
+ # @!attribute [rw] description
4251
+ # A description for the repository creation template.
4252
+ # @return [String]
4253
+ #
4254
+ # @!attribute [rw] encryption_configuration
4255
+ # The encryption configuration to associate with the repository
4256
+ # creation template.
4257
+ # @return [Types::EncryptionConfigurationForRepositoryCreationTemplate]
4258
+ #
4259
+ # @!attribute [rw] resource_tags
4260
+ # The metadata to apply to the repository to help you categorize and
4261
+ # organize. Each tag consists of a key and an optional value, both of
4262
+ # which you define. Tag keys can have a maximum character length of
4263
+ # 128 characters, and tag values can have a maximum length of 256
4264
+ # characters.
4265
+ # @return [Array<Types::Tag>]
4266
+ #
4267
+ # @!attribute [rw] image_tag_mutability
4268
+ # Updates the tag mutability setting for the repository. If this
4269
+ # parameter is omitted, the default setting of `MUTABLE` will be used
4270
+ # which will allow image tags to be overwritten. If `IMMUTABLE` is
4271
+ # specified, all image tags within the repository will be immutable
4272
+ # which will prevent them from being overwritten.
4273
+ # @return [String]
4274
+ #
4275
+ # @!attribute [rw] repository_policy
4276
+ # Updates the repository policy created using the template. A
4277
+ # repository policy is a permissions policy associated with a
4278
+ # repository to control access permissions.
4279
+ # @return [String]
4280
+ #
4281
+ # @!attribute [rw] lifecycle_policy
4282
+ # Updates the lifecycle policy associated with the specified
4283
+ # repository creation template.
4284
+ # @return [String]
4285
+ #
4286
+ # @!attribute [rw] applied_for
4287
+ # Updates the list of enumerable strings representing the Amazon ECR
4288
+ # repository creation scenarios that this template will apply towards.
4289
+ # The two supported scenarios are `PULL_THROUGH_CACHE` and
4290
+ # `REPLICATION`
4291
+ # @return [Array<String>]
4292
+ #
4293
+ # @!attribute [rw] custom_role_arn
4294
+ # The ARN of the role to be assumed by Amazon ECR. This role must be
4295
+ # in the same account as the registry that you are configuring.
4296
+ # @return [String]
4297
+ #
4298
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UpdateRepositoryCreationTemplateRequest AWS API Documentation
4299
+ #
4300
+ class UpdateRepositoryCreationTemplateRequest < Struct.new(
4301
+ :prefix,
4302
+ :description,
4303
+ :encryption_configuration,
4304
+ :resource_tags,
4305
+ :image_tag_mutability,
4306
+ :repository_policy,
4307
+ :lifecycle_policy,
4308
+ :applied_for,
4309
+ :custom_role_arn)
4310
+ SENSITIVE = []
4311
+ include Aws::Structure
4312
+ end
4313
+
4314
+ # @!attribute [rw] registry_id
4315
+ # The registry ID associated with the request.
4316
+ # @return [String]
4317
+ #
4318
+ # @!attribute [rw] repository_creation_template
4319
+ # The details of the repository creation template associated with the
4320
+ # request.
4321
+ # @return [Types::RepositoryCreationTemplate]
4322
+ #
4323
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/UpdateRepositoryCreationTemplateResponse AWS API Documentation
4324
+ #
4325
+ class UpdateRepositoryCreationTemplateResponse < Struct.new(
4326
+ :registry_id,
4327
+ :repository_creation_template)
4328
+ SENSITIVE = []
4329
+ include Aws::Structure
4330
+ end
4331
+
3882
4332
  # @!attribute [rw] registry_id
3883
4333
  # The Amazon Web Services account ID associated with the registry to
3884
4334
  # which you are uploading layer parts. If you do not specify a
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.78.0'
56
+ GEM_VERSION = '1.79.0'
57
57
 
58
58
  end
data/sig/client.rbs CHANGED
@@ -195,6 +195,33 @@ module Aws
195
195
  ) -> _CreateRepositoryResponseSuccess
196
196
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateRepositoryResponseSuccess
197
197
 
198
+ interface _CreateRepositoryCreationTemplateResponseSuccess
199
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateRepositoryCreationTemplateResponse]
200
+ def registry_id: () -> ::String
201
+ def repository_creation_template: () -> Types::RepositoryCreationTemplate
202
+ end
203
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECR/Client.html#create_repository_creation_template-instance_method
204
+ def create_repository_creation_template: (
205
+ prefix: ::String,
206
+ ?description: ::String,
207
+ ?encryption_configuration: {
208
+ encryption_type: ("AES256" | "KMS"),
209
+ kms_key: ::String?
210
+ },
211
+ ?resource_tags: Array[
212
+ {
213
+ key: ::String,
214
+ value: ::String
215
+ },
216
+ ],
217
+ ?image_tag_mutability: ("MUTABLE" | "IMMUTABLE"),
218
+ ?repository_policy: ::String,
219
+ ?lifecycle_policy: ::String,
220
+ applied_for: Array[("REPLICATION" | "PULL_THROUGH_CACHE")],
221
+ ?custom_role_arn: ::String
222
+ ) -> _CreateRepositoryCreationTemplateResponseSuccess
223
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateRepositoryCreationTemplateResponseSuccess
224
+
198
225
  interface _DeleteLifecyclePolicyResponseSuccess
199
226
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteLifecyclePolicyResponse]
200
227
  def registry_id: () -> ::String
@@ -246,6 +273,17 @@ module Aws
246
273
  ) -> _DeleteRepositoryResponseSuccess
247
274
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteRepositoryResponseSuccess
248
275
 
276
+ interface _DeleteRepositoryCreationTemplateResponseSuccess
277
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteRepositoryCreationTemplateResponse]
278
+ def registry_id: () -> ::String
279
+ def repository_creation_template: () -> Types::RepositoryCreationTemplate
280
+ end
281
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECR/Client.html#delete_repository_creation_template-instance_method
282
+ def delete_repository_creation_template: (
283
+ prefix: ::String
284
+ ) -> _DeleteRepositoryCreationTemplateResponseSuccess
285
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteRepositoryCreationTemplateResponseSuccess
286
+
249
287
  interface _DeleteRepositoryPolicyResponseSuccess
250
288
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteRepositoryPolicyResponse]
251
289
  def registry_id: () -> ::String
@@ -359,6 +397,20 @@ module Aws
359
397
  ) -> _DescribeRepositoriesResponseSuccess
360
398
  | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeRepositoriesResponseSuccess
361
399
 
400
+ interface _DescribeRepositoryCreationTemplatesResponseSuccess
401
+ include ::Seahorse::Client::_ResponseSuccess[Types::DescribeRepositoryCreationTemplatesResponse]
402
+ def registry_id: () -> ::String
403
+ def repository_creation_templates: () -> ::Array[Types::RepositoryCreationTemplate]
404
+ def next_token: () -> ::String
405
+ end
406
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECR/Client.html#describe_repository_creation_templates-instance_method
407
+ def describe_repository_creation_templates: (
408
+ ?prefixes: Array[::String],
409
+ ?next_token: ::String,
410
+ ?max_results: ::Integer
411
+ ) -> _DescribeRepositoryCreationTemplatesResponseSuccess
412
+ | (?Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeRepositoryCreationTemplatesResponseSuccess
413
+
362
414
  interface _GetAuthorizationTokenResponseSuccess
363
415
  include ::Seahorse::Client::_ResponseSuccess[Types::GetAuthorizationTokenResponse]
364
416
  def authorization_data: () -> ::Array[Types::AuthorizationData]
@@ -702,6 +754,33 @@ module Aws
702
754
  ) -> _UpdatePullThroughCacheRuleResponseSuccess
703
755
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdatePullThroughCacheRuleResponseSuccess
704
756
 
757
+ interface _UpdateRepositoryCreationTemplateResponseSuccess
758
+ include ::Seahorse::Client::_ResponseSuccess[Types::UpdateRepositoryCreationTemplateResponse]
759
+ def registry_id: () -> ::String
760
+ def repository_creation_template: () -> Types::RepositoryCreationTemplate
761
+ end
762
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ECR/Client.html#update_repository_creation_template-instance_method
763
+ def update_repository_creation_template: (
764
+ prefix: ::String,
765
+ ?description: ::String,
766
+ ?encryption_configuration: {
767
+ encryption_type: ("AES256" | "KMS"),
768
+ kms_key: ::String?
769
+ },
770
+ ?resource_tags: Array[
771
+ {
772
+ key: ::String,
773
+ value: ::String
774
+ },
775
+ ],
776
+ ?image_tag_mutability: ("MUTABLE" | "IMMUTABLE"),
777
+ ?repository_policy: ::String,
778
+ ?lifecycle_policy: ::String,
779
+ ?applied_for: Array[("REPLICATION" | "PULL_THROUGH_CACHE")],
780
+ ?custom_role_arn: ::String
781
+ ) -> _UpdateRepositoryCreationTemplateResponseSuccess
782
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateRepositoryCreationTemplateResponseSuccess
783
+
705
784
  interface _UploadLayerPartResponseSuccess
706
785
  include ::Seahorse::Client::_ResponseSuccess[Types::UploadLayerPartResponse]
707
786
  def registry_id: () -> ::String