aws-sdk-ecr 1.31.1 → 1.36.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7349a7f8ff8c5b2d475bb85f266ad6254d8def2e675ae183276bc3c7e395b8eb
4
- data.tar.gz: 54976deec755a744bb975e8f083d242d6050014b30d314a397cf67b63ec4f4d4
3
+ metadata.gz: 7fd191b6a5d7a6207c135a374a87d2307fb803f6784a19bd13d4e2776537fd6f
4
+ data.tar.gz: 13371dc0a257382226b75ab6953b30bf6833ad21e2bc98160867c840fb14b3a4
5
5
  SHA512:
6
- metadata.gz: 54738777008e8257634560b7268fa2b777e5c8d4c790caad40dad65bd1e76ef7f3bb910f3c2632b8212f095562906475793924f773e79e5565684ac15d9e247e
7
- data.tar.gz: 07cdde64a6c6e92b2590385dc19441f32ad2233265ab7056467ff36e719b02931f11c3bf7d4822c6895f49b5bc999ddaa8a3ec03a6eb9b2841fd3e28d0d9766b
6
+ metadata.gz: 90cc767aeae5810ca57b8baf0fc29f5604c3b7cf261d4837baf0cf92f965372898c3160311d94a38bce91fb0b33edb01eff6fd42720bab6d982a4ffc658ec95f
7
+ data.tar.gz: 3395c466b92f86822f5308fbf248d9581b8b28b6f0b72abe7c2c16c1b71ff6fda7e42007fab94bc9920ee307132f0e37cf1c2a2e549365f2108786f47d6a5488
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -46,6 +48,6 @@ require_relative 'aws-sdk-ecr/customizations'
46
48
  # @service
47
49
  module Aws::ECR
48
50
 
49
- GEM_VERSION = '1.31.1'
51
+ GEM_VERSION = '1.36.0'
50
52
 
51
53
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -454,7 +456,7 @@ module Aws::ECR
454
456
  # resp.failures #=> Array
455
457
  # resp.failures[0].image_id.image_digest #=> String
456
458
  # resp.failures[0].image_id.image_tag #=> String
457
- # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList"
459
+ # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList", "KmsError"
458
460
  # resp.failures[0].failure_reason #=> String
459
461
  #
460
462
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImage AWS API Documentation
@@ -555,7 +557,7 @@ module Aws::ECR
555
557
  # resp.failures #=> Array
556
558
  # resp.failures[0].image_id.image_digest #=> String
557
559
  # resp.failures[0].image_id.image_tag #=> String
558
- # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList"
560
+ # resp.failures[0].failure_code #=> String, one of "InvalidImageDigest", "InvalidImageTag", "ImageTagDoesNotMatchDigest", "ImageNotFound", "MissingDigestAndTag", "ImageReferencedByManifestList", "KmsError"
559
561
  # resp.failures[0].failure_reason #=> String
560
562
  #
561
563
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImage AWS API Documentation
@@ -657,9 +659,13 @@ module Aws::ECR
657
659
  # them from being overwritten.
658
660
  #
659
661
  # @option params [Types::ImageScanningConfiguration] :image_scanning_configuration
660
- # The image scanning configuration for the repository. This setting
661
- # determines whether images are scanned for known vulnerabilities after
662
- # being pushed to the repository.
662
+ # The image scanning configuration for the repository. This determines
663
+ # whether images are scanned for known vulnerabilities after being
664
+ # pushed to the repository.
665
+ #
666
+ # @option params [Types::EncryptionConfiguration] :encryption_configuration
667
+ # The encryption configuration for the repository. This determines how
668
+ # the contents of your repository are encrypted at rest.
663
669
  #
664
670
  # @return [Types::CreateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
665
671
  #
@@ -698,6 +704,10 @@ module Aws::ECR
698
704
  # image_scanning_configuration: {
699
705
  # scan_on_push: false,
700
706
  # },
707
+ # encryption_configuration: {
708
+ # encryption_type: "AES256", # required, accepts AES256, KMS
709
+ # kms_key: "KmsKey",
710
+ # },
701
711
  # })
702
712
  #
703
713
  # @example Response structure
@@ -709,6 +719,8 @@ module Aws::ECR
709
719
  # resp.repository.created_at #=> Time
710
720
  # resp.repository.image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
711
721
  # resp.repository.image_scanning_configuration.scan_on_push #=> Boolean
722
+ # resp.repository.encryption_configuration.encryption_type #=> String, one of "AES256", "KMS"
723
+ # resp.repository.encryption_configuration.kms_key #=> String
712
724
  #
713
725
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepository AWS API Documentation
714
726
  #
@@ -815,6 +827,8 @@ module Aws::ECR
815
827
  # resp.repository.created_at #=> Time
816
828
  # resp.repository.image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
817
829
  # resp.repository.image_scanning_configuration.scan_on_push #=> Boolean
830
+ # resp.repository.encryption_configuration.encryption_type #=> String, one of "AES256", "KMS"
831
+ # resp.repository.encryption_configuration.kms_key #=> String
818
832
  #
819
833
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepository AWS API Documentation
820
834
  #
@@ -1057,6 +1071,8 @@ module Aws::ECR
1057
1071
  # resp.image_details[0].image_scan_findings_summary.vulnerability_source_updated_at #=> Time
1058
1072
  # resp.image_details[0].image_scan_findings_summary.finding_severity_counts #=> Hash
1059
1073
  # resp.image_details[0].image_scan_findings_summary.finding_severity_counts["FindingSeverity"] #=> Integer
1074
+ # resp.image_details[0].image_manifest_media_type #=> String
1075
+ # resp.image_details[0].artifact_media_type #=> String
1060
1076
  # resp.next_token #=> String
1061
1077
  #
1062
1078
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeImages AWS API Documentation
@@ -1157,6 +1173,8 @@ module Aws::ECR
1157
1173
  # resp.repositories[0].created_at #=> Time
1158
1174
  # resp.repositories[0].image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
1159
1175
  # resp.repositories[0].image_scanning_configuration.scan_on_push #=> Boolean
1176
+ # resp.repositories[0].encryption_configuration.encryption_type #=> String, one of "AES256", "KMS"
1177
+ # resp.repositories[0].encryption_configuration.kms_key #=> String
1160
1178
  # resp.next_token #=> String
1161
1179
  #
1162
1180
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositories AWS API Documentation
@@ -1688,7 +1706,11 @@ module Aws::ECR
1688
1706
  #
1689
1707
  # @option params [String] :image_tag
1690
1708
  # The tag to associate with the image. This parameter is required for
1691
- # images that use the Docker Image Manifest V2 Schema 2 or OCI formats.
1709
+ # images that use the Docker Image Manifest V2 Schema 2 or Open
1710
+ # Container Initiative (OCI) formats.
1711
+ #
1712
+ # @option params [String] :image_digest
1713
+ # The image digest of the image manifest corresponding to the image.
1692
1714
  #
1693
1715
  # @return [Types::PutImageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1694
1716
  #
@@ -1702,6 +1724,7 @@ module Aws::ECR
1702
1724
  # image_manifest: "ImageManifest", # required
1703
1725
  # image_manifest_media_type: "MediaType",
1704
1726
  # image_tag: "ImageTag",
1727
+ # image_digest: "ImageDigest",
1705
1728
  # })
1706
1729
  #
1707
1730
  # @example Response structure
@@ -2131,7 +2154,7 @@ module Aws::ECR
2131
2154
  # The position of the last byte of the layer part within the overall
2132
2155
  # image layer.
2133
2156
  #
2134
- # @option params [required, String, IO] :layer_part_blob
2157
+ # @option params [required, String, StringIO, File] :layer_part_blob
2135
2158
  # The base64-encoded layer part payload.
2136
2159
  #
2137
2160
  # @return [Types::UploadLayerPartResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2181,7 +2204,7 @@ module Aws::ECR
2181
2204
  params: params,
2182
2205
  config: config)
2183
2206
  context[:gem_name] = 'aws-sdk-ecr'
2184
- context[:gem_version] = '1.31.1'
2207
+ context[:gem_version] = '1.36.0'
2185
2208
  Seahorse::Client::Request.new(handlers, context)
2186
2209
  end
2187
2210
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -46,6 +48,8 @@ module Aws::ECR
46
48
  DescribeRepositoriesRequest = Shapes::StructureShape.new(name: 'DescribeRepositoriesRequest')
47
49
  DescribeRepositoriesResponse = Shapes::StructureShape.new(name: 'DescribeRepositoriesResponse')
48
50
  EmptyUploadException = Shapes::StructureShape.new(name: 'EmptyUploadException')
51
+ EncryptionConfiguration = Shapes::StructureShape.new(name: 'EncryptionConfiguration')
52
+ EncryptionType = Shapes::StringShape.new(name: 'EncryptionType')
49
53
  EvaluationTimestamp = Shapes::TimestampShape.new(name: 'EvaluationTimestamp')
50
54
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
51
55
  ExpirationTimestamp = Shapes::TimestampShape.new(name: 'ExpirationTimestamp')
@@ -72,6 +76,7 @@ module Aws::ECR
72
76
  ImageDetail = Shapes::StructureShape.new(name: 'ImageDetail')
73
77
  ImageDetailList = Shapes::ListShape.new(name: 'ImageDetailList')
74
78
  ImageDigest = Shapes::StringShape.new(name: 'ImageDigest')
79
+ ImageDigestDoesNotMatchException = Shapes::StructureShape.new(name: 'ImageDigestDoesNotMatchException')
75
80
  ImageFailure = Shapes::StructureShape.new(name: 'ImageFailure')
76
81
  ImageFailureCode = Shapes::StringShape.new(name: 'ImageFailureCode')
77
82
  ImageFailureList = Shapes::ListShape.new(name: 'ImageFailureList')
@@ -98,6 +103,9 @@ module Aws::ECR
98
103
  InvalidLayerPartException = Shapes::StructureShape.new(name: 'InvalidLayerPartException')
99
104
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
100
105
  InvalidTagParameterException = Shapes::StructureShape.new(name: 'InvalidTagParameterException')
106
+ KmsError = Shapes::StringShape.new(name: 'KmsError')
107
+ KmsException = Shapes::StructureShape.new(name: 'KmsException')
108
+ KmsKey = Shapes::StringShape.new(name: 'KmsKey')
101
109
  Layer = Shapes::StructureShape.new(name: 'Layer')
102
110
  LayerAlreadyExistsException = Shapes::StructureShape.new(name: 'LayerAlreadyExistsException')
103
111
  LayerAvailability = Shapes::StringShape.new(name: 'LayerAvailability')
@@ -248,6 +256,7 @@ module Aws::ECR
248
256
  CreateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
249
257
  CreateRepositoryRequest.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
250
258
  CreateRepositoryRequest.add_member(:image_scanning_configuration, Shapes::ShapeRef.new(shape: ImageScanningConfiguration, location_name: "imageScanningConfiguration"))
259
+ CreateRepositoryRequest.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "encryptionConfiguration"))
251
260
  CreateRepositoryRequest.struct_class = Types::CreateRepositoryRequest
252
261
 
253
262
  CreateRepositoryResponse.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, location_name: "repository"))
@@ -323,6 +332,10 @@ module Aws::ECR
323
332
  EmptyUploadException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
324
333
  EmptyUploadException.struct_class = Types::EmptyUploadException
325
334
 
335
+ EncryptionConfiguration.add_member(:encryption_type, Shapes::ShapeRef.new(shape: EncryptionType, required: true, location_name: "encryptionType"))
336
+ EncryptionConfiguration.add_member(:kms_key, Shapes::ShapeRef.new(shape: KmsKey, location_name: "kmsKey"))
337
+ EncryptionConfiguration.struct_class = Types::EncryptionConfiguration
338
+
326
339
  FindingSeverityCounts.key = Shapes::ShapeRef.new(shape: FindingSeverity)
327
340
  FindingSeverityCounts.value = Shapes::ShapeRef.new(shape: SeverityCount)
328
341
 
@@ -397,10 +410,15 @@ module Aws::ECR
397
410
  ImageDetail.add_member(:image_pushed_at, Shapes::ShapeRef.new(shape: PushTimestamp, location_name: "imagePushedAt"))
398
411
  ImageDetail.add_member(:image_scan_status, Shapes::ShapeRef.new(shape: ImageScanStatus, location_name: "imageScanStatus"))
399
412
  ImageDetail.add_member(:image_scan_findings_summary, Shapes::ShapeRef.new(shape: ImageScanFindingsSummary, location_name: "imageScanFindingsSummary"))
413
+ ImageDetail.add_member(:image_manifest_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "imageManifestMediaType"))
414
+ ImageDetail.add_member(:artifact_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "artifactMediaType"))
400
415
  ImageDetail.struct_class = Types::ImageDetail
401
416
 
402
417
  ImageDetailList.member = Shapes::ShapeRef.new(shape: ImageDetail)
403
418
 
419
+ ImageDigestDoesNotMatchException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
420
+ ImageDigestDoesNotMatchException.struct_class = Types::ImageDigestDoesNotMatchException
421
+
404
422
  ImageFailure.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageIdentifier, location_name: "imageId"))
405
423
  ImageFailure.add_member(:failure_code, Shapes::ShapeRef.new(shape: ImageFailureCode, location_name: "failureCode"))
406
424
  ImageFailure.add_member(:failure_reason, Shapes::ShapeRef.new(shape: ImageFailureReason, location_name: "failureReason"))
@@ -475,6 +493,10 @@ module Aws::ECR
475
493
  InvalidTagParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
476
494
  InvalidTagParameterException.struct_class = Types::InvalidTagParameterException
477
495
 
496
+ KmsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
497
+ KmsException.add_member(:kms_error, Shapes::ShapeRef.new(shape: KmsError, location_name: "kmsError"))
498
+ KmsException.struct_class = Types::KmsException
499
+
478
500
  Layer.add_member(:layer_digest, Shapes::ShapeRef.new(shape: LayerDigest, location_name: "layerDigest"))
479
501
  Layer.add_member(:layer_availability, Shapes::ShapeRef.new(shape: LayerAvailability, location_name: "layerAvailability"))
480
502
  Layer.add_member(:layer_size, Shapes::ShapeRef.new(shape: LayerSizeInBytes, location_name: "layerSize"))
@@ -561,6 +583,7 @@ module Aws::ECR
561
583
  PutImageRequest.add_member(:image_manifest, Shapes::ShapeRef.new(shape: ImageManifest, required: true, location_name: "imageManifest"))
562
584
  PutImageRequest.add_member(:image_manifest_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "imageManifestMediaType"))
563
585
  PutImageRequest.add_member(:image_tag, Shapes::ShapeRef.new(shape: ImageTag, location_name: "imageTag"))
586
+ PutImageRequest.add_member(:image_digest, Shapes::ShapeRef.new(shape: ImageDigest, location_name: "imageDigest"))
564
587
  PutImageRequest.struct_class = Types::PutImageRequest
565
588
 
566
589
  PutImageResponse.add_member(:image, Shapes::ShapeRef.new(shape: Image, location_name: "image"))
@@ -606,6 +629,7 @@ module Aws::ECR
606
629
  Repository.add_member(:created_at, Shapes::ShapeRef.new(shape: CreationTimestamp, location_name: "createdAt"))
607
630
  Repository.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
608
631
  Repository.add_member(:image_scanning_configuration, Shapes::ShapeRef.new(shape: ImageScanningConfiguration, location_name: "imageScanningConfiguration"))
632
+ Repository.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "encryptionConfiguration"))
609
633
  Repository.struct_class = Types::Repository
610
634
 
611
635
  RepositoryAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
@@ -773,6 +797,7 @@ module Aws::ECR
773
797
  o.errors << Shapes::ShapeRef.new(shape: LayerPartTooSmallException)
774
798
  o.errors << Shapes::ShapeRef.new(shape: LayerAlreadyExistsException)
775
799
  o.errors << Shapes::ShapeRef.new(shape: EmptyUploadException)
800
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
776
801
  end)
777
802
 
778
803
  api.add_operation(:create_repository, Seahorse::Model::Operation.new.tap do |o|
@@ -787,6 +812,7 @@ module Aws::ECR
787
812
  o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
788
813
  o.errors << Shapes::ShapeRef.new(shape: RepositoryAlreadyExistsException)
789
814
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
815
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
790
816
  end)
791
817
 
792
818
  api.add_operation(:delete_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -811,6 +837,7 @@ module Aws::ECR
811
837
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
812
838
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
813
839
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotEmptyException)
840
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
814
841
  end)
815
842
 
816
843
  api.add_operation(:delete_repository_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -953,6 +980,7 @@ module Aws::ECR
953
980
  o.errors << Shapes::ShapeRef.new(shape: ServerException)
954
981
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
955
982
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
983
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
956
984
  end)
957
985
 
958
986
  api.add_operation(:list_images, Seahorse::Model::Operation.new.tap do |o|
@@ -997,6 +1025,8 @@ module Aws::ECR
997
1025
  o.errors << Shapes::ShapeRef.new(shape: ReferencedImagesNotFoundException)
998
1026
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
999
1027
  o.errors << Shapes::ShapeRef.new(shape: ImageTagAlreadyExistsException)
1028
+ o.errors << Shapes::ShapeRef.new(shape: ImageDigestDoesNotMatchException)
1029
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
1000
1030
  end)
1001
1031
 
1002
1032
  api.add_operation(:put_image_scanning_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -1108,6 +1138,7 @@ module Aws::ECR
1108
1138
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
1109
1139
  o.errors << Shapes::ShapeRef.new(shape: UploadNotFoundException)
1110
1140
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1141
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
1111
1142
  end)
1112
1143
  end
1113
1144
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # WARNING ABOUT GENERATED CODE
2
3
  #
3
4
  # This file is generated. See the contributing for info on making contributions:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -27,12 +29,14 @@ module Aws::ECR
27
29
  # ## Error Classes
28
30
  # * {EmptyUploadException}
29
31
  # * {ImageAlreadyExistsException}
32
+ # * {ImageDigestDoesNotMatchException}
30
33
  # * {ImageNotFoundException}
31
34
  # * {ImageTagAlreadyExistsException}
32
35
  # * {InvalidLayerException}
33
36
  # * {InvalidLayerPartException}
34
37
  # * {InvalidParameterException}
35
38
  # * {InvalidTagParameterException}
39
+ # * {KmsException}
36
40
  # * {LayerAlreadyExistsException}
37
41
  # * {LayerInaccessibleException}
38
42
  # * {LayerPartTooSmallException}
@@ -88,6 +92,21 @@ module Aws::ECR
88
92
  end
89
93
  end
90
94
 
95
+ class ImageDigestDoesNotMatchException < ServiceError
96
+
97
+ # @param [Seahorse::Client::RequestContext] context
98
+ # @param [String] message
99
+ # @param [Aws::ECR::Types::ImageDigestDoesNotMatchException] data
100
+ def initialize(context, message, data = Aws::EmptyStructure.new)
101
+ super(context, message, data)
102
+ end
103
+
104
+ # @return [String]
105
+ def message
106
+ @message || @data[:message]
107
+ end
108
+ end
109
+
91
110
  class ImageNotFoundException < ServiceError
92
111
 
93
112
  # @param [Seahorse::Client::RequestContext] context
@@ -198,6 +217,26 @@ module Aws::ECR
198
217
  end
199
218
  end
200
219
 
220
+ class KmsException < ServiceError
221
+
222
+ # @param [Seahorse::Client::RequestContext] context
223
+ # @param [String] message
224
+ # @param [Aws::ECR::Types::KmsException] data
225
+ def initialize(context, message, data = Aws::EmptyStructure.new)
226
+ super(context, message, data)
227
+ end
228
+
229
+ # @return [String]
230
+ def message
231
+ @message || @data[:message]
232
+ end
233
+
234
+ # @return [String]
235
+ def kms_error
236
+ @data[:kms_error]
237
+ end
238
+ end
239
+
201
240
  class LayerAlreadyExistsException < ServiceError
202
241
 
203
242
  # @param [Seahorse::Client::RequestContext] context
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -23,6 +25,7 @@ module Aws::ECR
23
25
  class Attribute < Struct.new(
24
26
  :key,
25
27
  :value)
28
+ SENSITIVE = []
26
29
  include Aws::Structure
27
30
  end
28
31
 
@@ -53,6 +56,7 @@ module Aws::ECR
53
56
  :authorization_token,
54
57
  :expires_at,
55
58
  :proxy_endpoint)
59
+ SENSITIVE = []
56
60
  include Aws::Structure
57
61
  end
58
62
 
@@ -86,6 +90,7 @@ module Aws::ECR
86
90
  :registry_id,
87
91
  :repository_name,
88
92
  :layer_digests)
93
+ SENSITIVE = []
89
94
  include Aws::Structure
90
95
  end
91
96
 
@@ -103,6 +108,7 @@ module Aws::ECR
103
108
  class BatchCheckLayerAvailabilityResponse < Struct.new(
104
109
  :layers,
105
110
  :failures)
111
+ SENSITIVE = []
106
112
  include Aws::Structure
107
113
  end
108
114
 
@@ -145,6 +151,7 @@ module Aws::ECR
145
151
  :registry_id,
146
152
  :repository_name,
147
153
  :image_ids)
154
+ SENSITIVE = []
148
155
  include Aws::Structure
149
156
  end
150
157
 
@@ -161,6 +168,7 @@ module Aws::ECR
161
168
  class BatchDeleteImageResponse < Struct.new(
162
169
  :image_ids,
163
170
  :failures)
171
+ SENSITIVE = []
164
172
  include Aws::Structure
165
173
  end
166
174
 
@@ -210,6 +218,7 @@ module Aws::ECR
210
218
  :repository_name,
211
219
  :image_ids,
212
220
  :accepted_media_types)
221
+ SENSITIVE = []
213
222
  include Aws::Structure
214
223
  end
215
224
 
@@ -227,6 +236,7 @@ module Aws::ECR
227
236
  class BatchGetImageResponse < Struct.new(
228
237
  :images,
229
238
  :failures)
239
+ SENSITIVE = []
230
240
  include Aws::Structure
231
241
  end
232
242
 
@@ -266,6 +276,7 @@ module Aws::ECR
266
276
  :repository_name,
267
277
  :upload_id,
268
278
  :layer_digests)
279
+ SENSITIVE = []
269
280
  include Aws::Structure
270
281
  end
271
282
 
@@ -292,6 +303,7 @@ module Aws::ECR
292
303
  :repository_name,
293
304
  :upload_id,
294
305
  :layer_digest)
306
+ SENSITIVE = []
295
307
  include Aws::Structure
296
308
  end
297
309
 
@@ -310,6 +322,10 @@ module Aws::ECR
310
322
  # image_scanning_configuration: {
311
323
  # scan_on_push: false,
312
324
  # },
325
+ # encryption_configuration: {
326
+ # encryption_type: "AES256", # required, accepts AES256, KMS
327
+ # kms_key: "KmsKey",
328
+ # },
313
329
  # }
314
330
  #
315
331
  # @!attribute [rw] repository_name
@@ -336,18 +352,25 @@ module Aws::ECR
336
352
  # @return [String]
337
353
  #
338
354
  # @!attribute [rw] image_scanning_configuration
339
- # The image scanning configuration for the repository. This setting
340
- # determines whether images are scanned for known vulnerabilities
341
- # after being pushed to the repository.
355
+ # The image scanning configuration for the repository. This determines
356
+ # whether images are scanned for known vulnerabilities after being
357
+ # pushed to the repository.
342
358
  # @return [Types::ImageScanningConfiguration]
343
359
  #
360
+ # @!attribute [rw] encryption_configuration
361
+ # The encryption configuration for the repository. This determines how
362
+ # the contents of your repository are encrypted at rest.
363
+ # @return [Types::EncryptionConfiguration]
364
+ #
344
365
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryRequest AWS API Documentation
345
366
  #
346
367
  class CreateRepositoryRequest < Struct.new(
347
368
  :repository_name,
348
369
  :tags,
349
370
  :image_tag_mutability,
350
- :image_scanning_configuration)
371
+ :image_scanning_configuration,
372
+ :encryption_configuration)
373
+ SENSITIVE = []
351
374
  include Aws::Structure
352
375
  end
353
376
 
@@ -359,6 +382,7 @@ module Aws::ECR
359
382
  #
360
383
  class CreateRepositoryResponse < Struct.new(
361
384
  :repository)
385
+ SENSITIVE = []
362
386
  include Aws::Structure
363
387
  end
364
388
 
@@ -385,6 +409,7 @@ module Aws::ECR
385
409
  class DeleteLifecyclePolicyRequest < Struct.new(
386
410
  :registry_id,
387
411
  :repository_name)
412
+ SENSITIVE = []
388
413
  include Aws::Structure
389
414
  end
390
415
 
@@ -411,6 +436,7 @@ module Aws::ECR
411
436
  :repository_name,
412
437
  :lifecycle_policy_text,
413
438
  :last_evaluated_at)
439
+ SENSITIVE = []
414
440
  include Aws::Structure
415
441
  end
416
442
 
@@ -438,6 +464,7 @@ module Aws::ECR
438
464
  class DeleteRepositoryPolicyRequest < Struct.new(
439
465
  :registry_id,
440
466
  :repository_name)
467
+ SENSITIVE = []
441
468
  include Aws::Structure
442
469
  end
443
470
 
@@ -459,6 +486,7 @@ module Aws::ECR
459
486
  :registry_id,
460
487
  :repository_name,
461
488
  :policy_text)
489
+ SENSITIVE = []
462
490
  include Aws::Structure
463
491
  end
464
492
 
@@ -491,6 +519,7 @@ module Aws::ECR
491
519
  :registry_id,
492
520
  :repository_name,
493
521
  :force)
522
+ SENSITIVE = []
494
523
  include Aws::Structure
495
524
  end
496
525
 
@@ -502,6 +531,7 @@ module Aws::ECR
502
531
  #
503
532
  class DeleteRepositoryResponse < Struct.new(
504
533
  :repository)
534
+ SENSITIVE = []
505
535
  include Aws::Structure
506
536
  end
507
537
 
@@ -563,6 +593,7 @@ module Aws::ECR
563
593
  :image_id,
564
594
  :next_token,
565
595
  :max_results)
596
+ SENSITIVE = []
566
597
  include Aws::Structure
567
598
  end
568
599
 
@@ -603,6 +634,7 @@ module Aws::ECR
603
634
  :image_scan_status,
604
635
  :image_scan_findings,
605
636
  :next_token)
637
+ SENSITIVE = []
606
638
  include Aws::Structure
607
639
  end
608
640
 
@@ -624,6 +656,7 @@ module Aws::ECR
624
656
  #
625
657
  class DescribeImagesFilter < Struct.new(
626
658
  :tag_status)
659
+ SENSITIVE = []
627
660
  include Aws::Structure
628
661
  end
629
662
 
@@ -696,6 +729,7 @@ module Aws::ECR
696
729
  :next_token,
697
730
  :max_results,
698
731
  :filter)
732
+ SENSITIVE = []
699
733
  include Aws::Structure
700
734
  end
701
735
 
@@ -716,6 +750,7 @@ module Aws::ECR
716
750
  class DescribeImagesResponse < Struct.new(
717
751
  :image_details,
718
752
  :next_token)
753
+ SENSITIVE = []
719
754
  include Aws::Structure
720
755
  end
721
756
 
@@ -776,6 +811,7 @@ module Aws::ECR
776
811
  :repository_names,
777
812
  :next_token,
778
813
  :max_results)
814
+ SENSITIVE = []
779
815
  include Aws::Structure
780
816
  end
781
817
 
@@ -796,6 +832,7 @@ module Aws::ECR
796
832
  class DescribeRepositoriesResponse < Struct.new(
797
833
  :repositories,
798
834
  :next_token)
835
+ SENSITIVE = []
799
836
  include Aws::Structure
800
837
  end
801
838
 
@@ -809,6 +846,76 @@ module Aws::ECR
809
846
  #
810
847
  class EmptyUploadException < Struct.new(
811
848
  :message)
849
+ SENSITIVE = []
850
+ include Aws::Structure
851
+ end
852
+
853
+ # The encryption configuration for the repository. This determines how
854
+ # the contents of your repository are encrypted at rest.
855
+ #
856
+ # By default, when no encryption configuration is set or the `AES256`
857
+ # encryption type is used, Amazon ECR uses server-side encryption with
858
+ # Amazon S3-managed encryption keys which encrypts your data at rest
859
+ # using an AES-256 encryption algorithm. This does not require any
860
+ # action on your part.
861
+ #
862
+ # For more control over the encryption of the contents of your
863
+ # repository, you can use server-side encryption with customer master
864
+ # keys (CMKs) stored in AWS Key Management Service (AWS KMS) to encrypt
865
+ # your images. For more information, see [Amazon ECR encryption at
866
+ # rest][1] in the *Amazon Elastic Container Registry User Guide*.
867
+ #
868
+ #
869
+ #
870
+ # [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/encryption-at-rest.html
871
+ #
872
+ # @note When making an API call, you may pass EncryptionConfiguration
873
+ # data as a hash:
874
+ #
875
+ # {
876
+ # encryption_type: "AES256", # required, accepts AES256, KMS
877
+ # kms_key: "KmsKey",
878
+ # }
879
+ #
880
+ # @!attribute [rw] encryption_type
881
+ # The encryption type to use.
882
+ #
883
+ # If you use the `KMS` encryption type, the contents of the repository
884
+ # will be encrypted using server-side encryption with customer master
885
+ # keys (CMKs) stored in AWS KMS. When you use AWS KMS to encrypt your
886
+ # data, you can either use the default AWS managed CMK for Amazon ECR,
887
+ # or specify your own CMK, which you already created. For more
888
+ # information, see [Protecting Data Using Server-Side Encryption with
889
+ # CMKs Stored in AWS Key Management Service (SSE-KMS)][1] in the
890
+ # *Amazon Simple Storage Service Console Developer Guide.*.
891
+ #
892
+ # If you use the `AES256` encryption type, Amazon ECR uses server-side
893
+ # encryption with Amazon S3-managed encryption keys which encrypts the
894
+ # images in the repository using an AES-256 encryption algorithm. For
895
+ # more information, see [Protecting Data Using Server-Side Encryption
896
+ # with Amazon S3-Managed Encryption Keys (SSE-S3)][2] in the *Amazon
897
+ # Simple Storage Service Console Developer Guide.*.
898
+ #
899
+ #
900
+ #
901
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html
902
+ # [2]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
903
+ # @return [String]
904
+ #
905
+ # @!attribute [rw] kms_key
906
+ # If you use the `KMS` encryption type, specify the CMK to use for
907
+ # encryption. The alias, key ID, or full ARN of the CMK can be
908
+ # specified. The key must exist in the same Region as the repository.
909
+ # If no key is specified, the default AWS managed CMK for Amazon ECR
910
+ # will be used.
911
+ # @return [String]
912
+ #
913
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/EncryptionConfiguration AWS API Documentation
914
+ #
915
+ class EncryptionConfiguration < Struct.new(
916
+ :encryption_type,
917
+ :kms_key)
918
+ SENSITIVE = []
812
919
  include Aws::Structure
813
920
  end
814
921
 
@@ -829,6 +936,7 @@ module Aws::ECR
829
936
  #
830
937
  class GetAuthorizationTokenRequest < Struct.new(
831
938
  :registry_ids)
939
+ SENSITIVE = []
832
940
  include Aws::Structure
833
941
  end
834
942
 
@@ -841,6 +949,7 @@ module Aws::ECR
841
949
  #
842
950
  class GetAuthorizationTokenResponse < Struct.new(
843
951
  :authorization_data)
952
+ SENSITIVE = []
844
953
  include Aws::Structure
845
954
  end
846
955
 
@@ -874,6 +983,7 @@ module Aws::ECR
874
983
  :registry_id,
875
984
  :repository_name,
876
985
  :layer_digest)
986
+ SENSITIVE = []
877
987
  include Aws::Structure
878
988
  end
879
989
 
@@ -890,6 +1000,7 @@ module Aws::ECR
890
1000
  class GetDownloadUrlForLayerResponse < Struct.new(
891
1001
  :download_url,
892
1002
  :layer_digest)
1003
+ SENSITIVE = []
893
1004
  include Aws::Structure
894
1005
  end
895
1006
 
@@ -964,6 +1075,7 @@ module Aws::ECR
964
1075
  :next_token,
965
1076
  :max_results,
966
1077
  :filter)
1078
+ SENSITIVE = []
967
1079
  include Aws::Structure
968
1080
  end
969
1081
 
@@ -1009,6 +1121,7 @@ module Aws::ECR
1009
1121
  :next_token,
1010
1122
  :preview_results,
1011
1123
  :summary)
1124
+ SENSITIVE = []
1012
1125
  include Aws::Structure
1013
1126
  end
1014
1127
 
@@ -1035,6 +1148,7 @@ module Aws::ECR
1035
1148
  class GetLifecyclePolicyRequest < Struct.new(
1036
1149
  :registry_id,
1037
1150
  :repository_name)
1151
+ SENSITIVE = []
1038
1152
  include Aws::Structure
1039
1153
  end
1040
1154
 
@@ -1061,6 +1175,7 @@ module Aws::ECR
1061
1175
  :repository_name,
1062
1176
  :lifecycle_policy_text,
1063
1177
  :last_evaluated_at)
1178
+ SENSITIVE = []
1064
1179
  include Aws::Structure
1065
1180
  end
1066
1181
 
@@ -1087,6 +1202,7 @@ module Aws::ECR
1087
1202
  class GetRepositoryPolicyRequest < Struct.new(
1088
1203
  :registry_id,
1089
1204
  :repository_name)
1205
+ SENSITIVE = []
1090
1206
  include Aws::Structure
1091
1207
  end
1092
1208
 
@@ -1108,6 +1224,7 @@ module Aws::ECR
1108
1224
  :registry_id,
1109
1225
  :repository_name,
1110
1226
  :policy_text)
1227
+ SENSITIVE = []
1111
1228
  include Aws::Structure
1112
1229
  end
1113
1230
 
@@ -1132,7 +1249,7 @@ module Aws::ECR
1132
1249
  # @return [String]
1133
1250
  #
1134
1251
  # @!attribute [rw] image_manifest_media_type
1135
- # The media type associated with the image manifest.
1252
+ # The manifest media type of the image.
1136
1253
  # @return [String]
1137
1254
  #
1138
1255
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Image AWS API Documentation
@@ -1143,6 +1260,7 @@ module Aws::ECR
1143
1260
  :image_id,
1144
1261
  :image_manifest,
1145
1262
  :image_manifest_media_type)
1263
+ SENSITIVE = []
1146
1264
  include Aws::Structure
1147
1265
  end
1148
1266
 
@@ -1157,6 +1275,7 @@ module Aws::ECR
1157
1275
  #
1158
1276
  class ImageAlreadyExistsException < Struct.new(
1159
1277
  :message)
1278
+ SENSITIVE = []
1160
1279
  include Aws::Structure
1161
1280
  end
1162
1281
 
@@ -1208,6 +1327,14 @@ module Aws::ECR
1208
1327
  # A summary of the last completed image scan.
1209
1328
  # @return [Types::ImageScanFindingsSummary]
1210
1329
  #
1330
+ # @!attribute [rw] image_manifest_media_type
1331
+ # The media type of the image manifest.
1332
+ # @return [String]
1333
+ #
1334
+ # @!attribute [rw] artifact_media_type
1335
+ # The artifact media type of the image.
1336
+ # @return [String]
1337
+ #
1211
1338
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageDetail AWS API Documentation
1212
1339
  #
1213
1340
  class ImageDetail < Struct.new(
@@ -1218,7 +1345,24 @@ module Aws::ECR
1218
1345
  :image_size_in_bytes,
1219
1346
  :image_pushed_at,
1220
1347
  :image_scan_status,
1221
- :image_scan_findings_summary)
1348
+ :image_scan_findings_summary,
1349
+ :image_manifest_media_type,
1350
+ :artifact_media_type)
1351
+ SENSITIVE = []
1352
+ include Aws::Structure
1353
+ end
1354
+
1355
+ # The specified image digest does not match the digest that Amazon ECR
1356
+ # calculated for the image.
1357
+ #
1358
+ # @!attribute [rw] message
1359
+ # @return [String]
1360
+ #
1361
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageDigestDoesNotMatchException AWS API Documentation
1362
+ #
1363
+ class ImageDigestDoesNotMatchException < Struct.new(
1364
+ :message)
1365
+ SENSITIVE = []
1222
1366
  include Aws::Structure
1223
1367
  end
1224
1368
 
@@ -1242,6 +1386,7 @@ module Aws::ECR
1242
1386
  :image_id,
1243
1387
  :failure_code,
1244
1388
  :failure_reason)
1389
+ SENSITIVE = []
1245
1390
  include Aws::Structure
1246
1391
  end
1247
1392
 
@@ -1268,6 +1413,7 @@ module Aws::ECR
1268
1413
  class ImageIdentifier < Struct.new(
1269
1414
  :image_digest,
1270
1415
  :image_tag)
1416
+ SENSITIVE = []
1271
1417
  include Aws::Structure
1272
1418
  end
1273
1419
 
@@ -1280,6 +1426,7 @@ module Aws::ECR
1280
1426
  #
1281
1427
  class ImageNotFoundException < Struct.new(
1282
1428
  :message)
1429
+ SENSITIVE = []
1283
1430
  include Aws::Structure
1284
1431
  end
1285
1432
 
@@ -1315,6 +1462,7 @@ module Aws::ECR
1315
1462
  :uri,
1316
1463
  :severity,
1317
1464
  :attributes)
1465
+ SENSITIVE = []
1318
1466
  include Aws::Structure
1319
1467
  end
1320
1468
 
@@ -1343,6 +1491,7 @@ module Aws::ECR
1343
1491
  :vulnerability_source_updated_at,
1344
1492
  :findings,
1345
1493
  :finding_severity_counts)
1494
+ SENSITIVE = []
1346
1495
  include Aws::Structure
1347
1496
  end
1348
1497
 
@@ -1366,6 +1515,7 @@ module Aws::ECR
1366
1515
  :image_scan_completed_at,
1367
1516
  :vulnerability_source_updated_at,
1368
1517
  :finding_severity_counts)
1518
+ SENSITIVE = []
1369
1519
  include Aws::Structure
1370
1520
  end
1371
1521
 
@@ -1384,6 +1534,7 @@ module Aws::ECR
1384
1534
  class ImageScanStatus < Struct.new(
1385
1535
  :status,
1386
1536
  :description)
1537
+ SENSITIVE = []
1387
1538
  include Aws::Structure
1388
1539
  end
1389
1540
 
@@ -1408,6 +1559,7 @@ module Aws::ECR
1408
1559
  #
1409
1560
  class ImageScanningConfiguration < Struct.new(
1410
1561
  :scan_on_push)
1562
+ SENSITIVE = []
1411
1563
  include Aws::Structure
1412
1564
  end
1413
1565
 
@@ -1421,6 +1573,7 @@ module Aws::ECR
1421
1573
  #
1422
1574
  class ImageTagAlreadyExistsException < Struct.new(
1423
1575
  :message)
1576
+ SENSITIVE = []
1424
1577
  include Aws::Structure
1425
1578
  end
1426
1579
 
@@ -1447,6 +1600,7 @@ module Aws::ECR
1447
1600
  class InitiateLayerUploadRequest < Struct.new(
1448
1601
  :registry_id,
1449
1602
  :repository_name)
1603
+ SENSITIVE = []
1450
1604
  include Aws::Structure
1451
1605
  end
1452
1606
 
@@ -1465,6 +1619,7 @@ module Aws::ECR
1465
1619
  class InitiateLayerUploadResponse < Struct.new(
1466
1620
  :upload_id,
1467
1621
  :part_size)
1622
+ SENSITIVE = []
1468
1623
  include Aws::Structure
1469
1624
  end
1470
1625
 
@@ -1479,6 +1634,7 @@ module Aws::ECR
1479
1634
  #
1480
1635
  class InvalidLayerException < Struct.new(
1481
1636
  :message)
1637
+ SENSITIVE = []
1482
1638
  include Aws::Structure
1483
1639
  end
1484
1640
 
@@ -1514,6 +1670,7 @@ module Aws::ECR
1514
1670
  :upload_id,
1515
1671
  :last_valid_byte_received,
1516
1672
  :message)
1673
+ SENSITIVE = []
1517
1674
  include Aws::Structure
1518
1675
  end
1519
1676
 
@@ -1528,6 +1685,7 @@ module Aws::ECR
1528
1685
  #
1529
1686
  class InvalidParameterException < Struct.new(
1530
1687
  :message)
1688
+ SENSITIVE = []
1531
1689
  include Aws::Structure
1532
1690
  end
1533
1691
 
@@ -1542,6 +1700,25 @@ module Aws::ECR
1542
1700
  #
1543
1701
  class InvalidTagParameterException < Struct.new(
1544
1702
  :message)
1703
+ SENSITIVE = []
1704
+ include Aws::Structure
1705
+ end
1706
+
1707
+ # The operation failed due to a KMS exception.
1708
+ #
1709
+ # @!attribute [rw] message
1710
+ # @return [String]
1711
+ #
1712
+ # @!attribute [rw] kms_error
1713
+ # The error code returned by AWS KMS.
1714
+ # @return [String]
1715
+ #
1716
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/KmsException AWS API Documentation
1717
+ #
1718
+ class KmsException < Struct.new(
1719
+ :message,
1720
+ :kms_error)
1721
+ SENSITIVE = []
1545
1722
  include Aws::Structure
1546
1723
  end
1547
1724
 
@@ -1572,6 +1749,7 @@ module Aws::ECR
1572
1749
  :layer_availability,
1573
1750
  :layer_size,
1574
1751
  :media_type)
1752
+ SENSITIVE = []
1575
1753
  include Aws::Structure
1576
1754
  end
1577
1755
 
@@ -1585,6 +1763,7 @@ module Aws::ECR
1585
1763
  #
1586
1764
  class LayerAlreadyExistsException < Struct.new(
1587
1765
  :message)
1766
+ SENSITIVE = []
1588
1767
  include Aws::Structure
1589
1768
  end
1590
1769
 
@@ -1608,6 +1787,7 @@ module Aws::ECR
1608
1787
  :layer_digest,
1609
1788
  :failure_code,
1610
1789
  :failure_reason)
1790
+ SENSITIVE = []
1611
1791
  include Aws::Structure
1612
1792
  end
1613
1793
 
@@ -1622,6 +1802,7 @@ module Aws::ECR
1622
1802
  #
1623
1803
  class LayerInaccessibleException < Struct.new(
1624
1804
  :message)
1805
+ SENSITIVE = []
1625
1806
  include Aws::Structure
1626
1807
  end
1627
1808
 
@@ -1635,6 +1816,7 @@ module Aws::ECR
1635
1816
  #
1636
1817
  class LayerPartTooSmallException < Struct.new(
1637
1818
  :message)
1819
+ SENSITIVE = []
1638
1820
  include Aws::Structure
1639
1821
  end
1640
1822
 
@@ -1649,6 +1831,7 @@ module Aws::ECR
1649
1831
  #
1650
1832
  class LayersNotFoundException < Struct.new(
1651
1833
  :message)
1834
+ SENSITIVE = []
1652
1835
  include Aws::Structure
1653
1836
  end
1654
1837
 
@@ -1662,6 +1845,7 @@ module Aws::ECR
1662
1845
  #
1663
1846
  class LifecyclePolicyNotFoundException < Struct.new(
1664
1847
  :message)
1848
+ SENSITIVE = []
1665
1849
  include Aws::Structure
1666
1850
  end
1667
1851
 
@@ -1682,11 +1866,12 @@ module Aws::ECR
1682
1866
  #
1683
1867
  class LifecyclePolicyPreviewFilter < Struct.new(
1684
1868
  :tag_status)
1869
+ SENSITIVE = []
1685
1870
  include Aws::Structure
1686
1871
  end
1687
1872
 
1688
- # The previous lifecycle policy preview request has not completed.
1689
- # Please try again later.
1873
+ # The previous lifecycle policy preview request has not completed. Wait
1874
+ # and try again.
1690
1875
  #
1691
1876
  # @!attribute [rw] message
1692
1877
  # @return [String]
@@ -1695,6 +1880,7 @@ module Aws::ECR
1695
1880
  #
1696
1881
  class LifecyclePolicyPreviewInProgressException < Struct.new(
1697
1882
  :message)
1883
+ SENSITIVE = []
1698
1884
  include Aws::Structure
1699
1885
  end
1700
1886
 
@@ -1707,6 +1893,7 @@ module Aws::ECR
1707
1893
  #
1708
1894
  class LifecyclePolicyPreviewNotFoundException < Struct.new(
1709
1895
  :message)
1896
+ SENSITIVE = []
1710
1897
  include Aws::Structure
1711
1898
  end
1712
1899
 
@@ -1741,6 +1928,7 @@ module Aws::ECR
1741
1928
  :image_pushed_at,
1742
1929
  :action,
1743
1930
  :applied_rule_priority)
1931
+ SENSITIVE = []
1744
1932
  include Aws::Structure
1745
1933
  end
1746
1934
 
@@ -1754,6 +1942,7 @@ module Aws::ECR
1754
1942
  #
1755
1943
  class LifecyclePolicyPreviewSummary < Struct.new(
1756
1944
  :expiring_image_total_count)
1945
+ SENSITIVE = []
1757
1946
  include Aws::Structure
1758
1947
  end
1759
1948
 
@@ -1767,6 +1956,7 @@ module Aws::ECR
1767
1956
  #
1768
1957
  class LifecyclePolicyRuleAction < Struct.new(
1769
1958
  :type)
1959
+ SENSITIVE = []
1770
1960
  include Aws::Structure
1771
1961
  end
1772
1962
 
@@ -1786,6 +1976,7 @@ module Aws::ECR
1786
1976
  #
1787
1977
  class LimitExceededException < Struct.new(
1788
1978
  :message)
1979
+ SENSITIVE = []
1789
1980
  include Aws::Structure
1790
1981
  end
1791
1982
 
@@ -1807,6 +1998,7 @@ module Aws::ECR
1807
1998
  #
1808
1999
  class ListImagesFilter < Struct.new(
1809
2000
  :tag_status)
2001
+ SENSITIVE = []
1810
2002
  include Aws::Structure
1811
2003
  end
1812
2004
 
@@ -1871,6 +2063,7 @@ module Aws::ECR
1871
2063
  :next_token,
1872
2064
  :max_results,
1873
2065
  :filter)
2066
+ SENSITIVE = []
1874
2067
  include Aws::Structure
1875
2068
  end
1876
2069
 
@@ -1890,6 +2083,7 @@ module Aws::ECR
1890
2083
  class ListImagesResponse < Struct.new(
1891
2084
  :image_ids,
1892
2085
  :next_token)
2086
+ SENSITIVE = []
1893
2087
  include Aws::Structure
1894
2088
  end
1895
2089
 
@@ -1910,6 +2104,7 @@ module Aws::ECR
1910
2104
  #
1911
2105
  class ListTagsForResourceRequest < Struct.new(
1912
2106
  :resource_arn)
2107
+ SENSITIVE = []
1913
2108
  include Aws::Structure
1914
2109
  end
1915
2110
 
@@ -1921,6 +2116,7 @@ module Aws::ECR
1921
2116
  #
1922
2117
  class ListTagsForResourceResponse < Struct.new(
1923
2118
  :tags)
2119
+ SENSITIVE = []
1924
2120
  include Aws::Structure
1925
2121
  end
1926
2122
 
@@ -1933,6 +2129,7 @@ module Aws::ECR
1933
2129
  # image_manifest: "ImageManifest", # required
1934
2130
  # image_manifest_media_type: "MediaType",
1935
2131
  # image_tag: "ImageTag",
2132
+ # image_digest: "ImageDigest",
1936
2133
  # }
1937
2134
  #
1938
2135
  # @!attribute [rw] registry_id
@@ -1957,8 +2154,12 @@ module Aws::ECR
1957
2154
  #
1958
2155
  # @!attribute [rw] image_tag
1959
2156
  # The tag to associate with the image. This parameter is required for
1960
- # images that use the Docker Image Manifest V2 Schema 2 or OCI
1961
- # formats.
2157
+ # images that use the Docker Image Manifest V2 Schema 2 or Open
2158
+ # Container Initiative (OCI) formats.
2159
+ # @return [String]
2160
+ #
2161
+ # @!attribute [rw] image_digest
2162
+ # The image digest of the image manifest corresponding to the image.
1962
2163
  # @return [String]
1963
2164
  #
1964
2165
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageRequest AWS API Documentation
@@ -1968,7 +2169,9 @@ module Aws::ECR
1968
2169
  :repository_name,
1969
2170
  :image_manifest,
1970
2171
  :image_manifest_media_type,
1971
- :image_tag)
2172
+ :image_tag,
2173
+ :image_digest)
2174
+ SENSITIVE = []
1972
2175
  include Aws::Structure
1973
2176
  end
1974
2177
 
@@ -1980,6 +2183,7 @@ module Aws::ECR
1980
2183
  #
1981
2184
  class PutImageResponse < Struct.new(
1982
2185
  :image)
2186
+ SENSITIVE = []
1983
2187
  include Aws::Structure
1984
2188
  end
1985
2189
 
@@ -2018,6 +2222,7 @@ module Aws::ECR
2018
2222
  :registry_id,
2019
2223
  :repository_name,
2020
2224
  :image_scanning_configuration)
2225
+ SENSITIVE = []
2021
2226
  include Aws::Structure
2022
2227
  end
2023
2228
 
@@ -2039,6 +2244,7 @@ module Aws::ECR
2039
2244
  :registry_id,
2040
2245
  :repository_name,
2041
2246
  :image_scanning_configuration)
2247
+ SENSITIVE = []
2042
2248
  include Aws::Structure
2043
2249
  end
2044
2250
 
@@ -2075,6 +2281,7 @@ module Aws::ECR
2075
2281
  :registry_id,
2076
2282
  :repository_name,
2077
2283
  :image_tag_mutability)
2284
+ SENSITIVE = []
2078
2285
  include Aws::Structure
2079
2286
  end
2080
2287
 
@@ -2096,6 +2303,7 @@ module Aws::ECR
2096
2303
  :registry_id,
2097
2304
  :repository_name,
2098
2305
  :image_tag_mutability)
2306
+ SENSITIVE = []
2099
2307
  include Aws::Structure
2100
2308
  end
2101
2309
 
@@ -2128,6 +2336,7 @@ module Aws::ECR
2128
2336
  :registry_id,
2129
2337
  :repository_name,
2130
2338
  :lifecycle_policy_text)
2339
+ SENSITIVE = []
2131
2340
  include Aws::Structure
2132
2341
  end
2133
2342
 
@@ -2149,6 +2358,7 @@ module Aws::ECR
2149
2358
  :registry_id,
2150
2359
  :repository_name,
2151
2360
  :lifecycle_policy_text)
2361
+ SENSITIVE = []
2152
2362
  include Aws::Structure
2153
2363
  end
2154
2364
 
@@ -2161,6 +2371,7 @@ module Aws::ECR
2161
2371
  #
2162
2372
  class ReferencedImagesNotFoundException < Struct.new(
2163
2373
  :message)
2374
+ SENSITIVE = []
2164
2375
  include Aws::Structure
2165
2376
  end
2166
2377
 
@@ -2184,8 +2395,8 @@ module Aws::ECR
2184
2395
  # @return [String]
2185
2396
  #
2186
2397
  # @!attribute [rw] repository_uri
2187
- # The URI for the repository. You can use this URI for Docker `push`
2188
- # or `pull` operations.
2398
+ # The URI for the repository. You can use this URI for container image
2399
+ # `push` and `pull` operations.
2189
2400
  # @return [String]
2190
2401
  #
2191
2402
  # @!attribute [rw] created_at
@@ -2201,6 +2412,11 @@ module Aws::ECR
2201
2412
  # The image scanning configuration for a repository.
2202
2413
  # @return [Types::ImageScanningConfiguration]
2203
2414
  #
2415
+ # @!attribute [rw] encryption_configuration
2416
+ # The encryption configuration for the repository. This determines how
2417
+ # the contents of your repository are encrypted at rest.
2418
+ # @return [Types::EncryptionConfiguration]
2419
+ #
2204
2420
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Repository AWS API Documentation
2205
2421
  #
2206
2422
  class Repository < Struct.new(
@@ -2210,7 +2426,9 @@ module Aws::ECR
2210
2426
  :repository_uri,
2211
2427
  :created_at,
2212
2428
  :image_tag_mutability,
2213
- :image_scanning_configuration)
2429
+ :image_scanning_configuration,
2430
+ :encryption_configuration)
2431
+ SENSITIVE = []
2214
2432
  include Aws::Structure
2215
2433
  end
2216
2434
 
@@ -2224,6 +2442,7 @@ module Aws::ECR
2224
2442
  #
2225
2443
  class RepositoryAlreadyExistsException < Struct.new(
2226
2444
  :message)
2445
+ SENSITIVE = []
2227
2446
  include Aws::Structure
2228
2447
  end
2229
2448
 
@@ -2239,6 +2458,7 @@ module Aws::ECR
2239
2458
  #
2240
2459
  class RepositoryNotEmptyException < Struct.new(
2241
2460
  :message)
2461
+ SENSITIVE = []
2242
2462
  include Aws::Structure
2243
2463
  end
2244
2464
 
@@ -2254,6 +2474,7 @@ module Aws::ECR
2254
2474
  #
2255
2475
  class RepositoryNotFoundException < Struct.new(
2256
2476
  :message)
2477
+ SENSITIVE = []
2257
2478
  include Aws::Structure
2258
2479
  end
2259
2480
 
@@ -2268,6 +2489,7 @@ module Aws::ECR
2268
2489
  #
2269
2490
  class RepositoryPolicyNotFoundException < Struct.new(
2270
2491
  :message)
2492
+ SENSITIVE = []
2271
2493
  include Aws::Structure
2272
2494
  end
2273
2495
 
@@ -2281,6 +2503,7 @@ module Aws::ECR
2281
2503
  #
2282
2504
  class ScanNotFoundException < Struct.new(
2283
2505
  :message)
2506
+ SENSITIVE = []
2284
2507
  include Aws::Structure
2285
2508
  end
2286
2509
 
@@ -2294,6 +2517,7 @@ module Aws::ECR
2294
2517
  #
2295
2518
  class ServerException < Struct.new(
2296
2519
  :message)
2520
+ SENSITIVE = []
2297
2521
  include Aws::Structure
2298
2522
  end
2299
2523
 
@@ -2341,6 +2565,7 @@ module Aws::ECR
2341
2565
  :repository_name,
2342
2566
  :policy_text,
2343
2567
  :force)
2568
+ SENSITIVE = []
2344
2569
  include Aws::Structure
2345
2570
  end
2346
2571
 
@@ -2362,6 +2587,7 @@ module Aws::ECR
2362
2587
  :registry_id,
2363
2588
  :repository_name,
2364
2589
  :policy_text)
2590
+ SENSITIVE = []
2365
2591
  include Aws::Structure
2366
2592
  end
2367
2593
 
@@ -2397,6 +2623,7 @@ module Aws::ECR
2397
2623
  :registry_id,
2398
2624
  :repository_name,
2399
2625
  :image_id)
2626
+ SENSITIVE = []
2400
2627
  include Aws::Structure
2401
2628
  end
2402
2629
 
@@ -2423,6 +2650,7 @@ module Aws::ECR
2423
2650
  :repository_name,
2424
2651
  :image_id,
2425
2652
  :image_scan_status)
2653
+ SENSITIVE = []
2426
2654
  include Aws::Structure
2427
2655
  end
2428
2656
 
@@ -2456,6 +2684,7 @@ module Aws::ECR
2456
2684
  :registry_id,
2457
2685
  :repository_name,
2458
2686
  :lifecycle_policy_text)
2687
+ SENSITIVE = []
2459
2688
  include Aws::Structure
2460
2689
  end
2461
2690
 
@@ -2482,6 +2711,7 @@ module Aws::ECR
2482
2711
  :repository_name,
2483
2712
  :lifecycle_policy_text,
2484
2713
  :status)
2714
+ SENSITIVE = []
2485
2715
  include Aws::Structure
2486
2716
  end
2487
2717
 
@@ -2515,6 +2745,7 @@ module Aws::ECR
2515
2745
  class Tag < Struct.new(
2516
2746
  :key,
2517
2747
  :value)
2748
+ SENSITIVE = []
2518
2749
  include Aws::Structure
2519
2750
  end
2520
2751
 
@@ -2549,6 +2780,7 @@ module Aws::ECR
2549
2780
  class TagResourceRequest < Struct.new(
2550
2781
  :resource_arn,
2551
2782
  :tags)
2783
+ SENSITIVE = []
2552
2784
  include Aws::Structure
2553
2785
  end
2554
2786
 
@@ -2566,6 +2798,7 @@ module Aws::ECR
2566
2798
  #
2567
2799
  class TooManyTagsException < Struct.new(
2568
2800
  :message)
2801
+ SENSITIVE = []
2569
2802
  include Aws::Structure
2570
2803
  end
2571
2804
 
@@ -2578,6 +2811,7 @@ module Aws::ECR
2578
2811
  #
2579
2812
  class UnsupportedImageTypeException < Struct.new(
2580
2813
  :message)
2814
+ SENSITIVE = []
2581
2815
  include Aws::Structure
2582
2816
  end
2583
2817
 
@@ -2604,6 +2838,7 @@ module Aws::ECR
2604
2838
  class UntagResourceRequest < Struct.new(
2605
2839
  :resource_arn,
2606
2840
  :tag_keys)
2841
+ SENSITIVE = []
2607
2842
  include Aws::Structure
2608
2843
  end
2609
2844
 
@@ -2661,6 +2896,7 @@ module Aws::ECR
2661
2896
  :part_first_byte,
2662
2897
  :part_last_byte,
2663
2898
  :layer_part_blob)
2899
+ SENSITIVE = []
2664
2900
  include Aws::Structure
2665
2901
  end
2666
2902
 
@@ -2687,10 +2923,11 @@ module Aws::ECR
2687
2923
  :repository_name,
2688
2924
  :upload_id,
2689
2925
  :last_byte_received)
2926
+ SENSITIVE = []
2690
2927
  include Aws::Structure
2691
2928
  end
2692
2929
 
2693
- # The upload could not be found, or the specified upload id is not valid
2930
+ # The upload could not be found, or the specified upload ID is not valid
2694
2931
  # for this repository.
2695
2932
  #
2696
2933
  # @!attribute [rw] message
@@ -2701,6 +2938,7 @@ module Aws::ECR
2701
2938
  #
2702
2939
  class UploadNotFoundException < Struct.new(
2703
2940
  :message)
2941
+ SENSITIVE = []
2704
2942
  include Aws::Structure
2705
2943
  end
2706
2944