aws-sdk-ecr 1.30.0 → 1.35.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: 641b3987e6e0c251ad4d5067182f993ec30f98b59c04f3393c740af854deb6bb
4
- data.tar.gz: 17275740169a489493c2b53f6a34ef53b4cfc9b76eceea62e4cda3d5182c16ee
3
+ metadata.gz: 2b1a6d2d514c23e566ea671e6a13e63cfb75a410e6e0f48be3f731538fe6a901
4
+ data.tar.gz: 0fb93618f10c5680713f990102c88f9370daeaeb976f936a0b929c2b1e221d56
5
5
  SHA512:
6
- metadata.gz: 6615dd99578aff71ec5c25b2d56ac379dbba3608c2377c11bd5b909fe56e3b6998b80e2b24aaadcdb70f28678c31d8edd56419c73939f464b49fa3b052b49a38
7
- data.tar.gz: 9b584088d3e30d4c4fd89159f8b8669c3bc5ae407b53a5eb01ee2eaada1c50dbcc0ad4cbdd1a0ea33a82644e9b6da0bdd392171a2d704c4a66916c99dd592ec1
6
+ metadata.gz: 0dbc4e6f7862316dd57b011a87ddf8c6aff977192cf4de1d18e0f8be00091866a49a20c16fe23609ffc9e94e7dc9470a5ec646241ef004bac13131cb47d49252
7
+ data.tar.gz: 4dac2b35c18ecc5460b2e97333483096e6be64320befd3d3a6e9bf1bf30a0bcc05a7c8e32cfdfb267bc376c98a9b2dd08643313753291c73e884062912fb23f2
@@ -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.30.0'
51
+ GEM_VERSION = '1.35.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:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::ECR
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -161,7 +165,7 @@ module Aws::ECR
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -452,7 +456,7 @@ module Aws::ECR
452
456
  # resp.failures #=> Array
453
457
  # resp.failures[0].image_id.image_digest #=> String
454
458
  # resp.failures[0].image_id.image_tag #=> String
455
- # 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"
456
460
  # resp.failures[0].failure_reason #=> String
457
461
  #
458
462
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchDeleteImage AWS API Documentation
@@ -553,7 +557,7 @@ module Aws::ECR
553
557
  # resp.failures #=> Array
554
558
  # resp.failures[0].image_id.image_digest #=> String
555
559
  # resp.failures[0].image_id.image_tag #=> String
556
- # 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"
557
561
  # resp.failures[0].failure_reason #=> String
558
562
  #
559
563
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/BatchGetImage AWS API Documentation
@@ -655,9 +659,13 @@ module Aws::ECR
655
659
  # them from being overwritten.
656
660
  #
657
661
  # @option params [Types::ImageScanningConfiguration] :image_scanning_configuration
658
- # The image scanning configuration for the repository. This setting
659
- # determines whether images are scanned for known vulnerabilities after
660
- # 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.
661
669
  #
662
670
  # @return [Types::CreateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
663
671
  #
@@ -696,6 +704,10 @@ module Aws::ECR
696
704
  # image_scanning_configuration: {
697
705
  # scan_on_push: false,
698
706
  # },
707
+ # encryption_configuration: {
708
+ # encryption_type: "AES256", # required, accepts AES256, KMS
709
+ # kms_key: "KmsKey",
710
+ # },
699
711
  # })
700
712
  #
701
713
  # @example Response structure
@@ -707,6 +719,8 @@ module Aws::ECR
707
719
  # resp.repository.created_at #=> Time
708
720
  # resp.repository.image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
709
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
710
724
  #
711
725
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepository AWS API Documentation
712
726
  #
@@ -813,6 +827,8 @@ module Aws::ECR
813
827
  # resp.repository.created_at #=> Time
814
828
  # resp.repository.image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
815
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
816
832
  #
817
833
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepository AWS API Documentation
818
834
  #
@@ -1155,6 +1171,8 @@ module Aws::ECR
1155
1171
  # resp.repositories[0].created_at #=> Time
1156
1172
  # resp.repositories[0].image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
1157
1173
  # resp.repositories[0].image_scanning_configuration.scan_on_push #=> Boolean
1174
+ # resp.repositories[0].encryption_configuration.encryption_type #=> String, one of "AES256", "KMS"
1175
+ # resp.repositories[0].encryption_configuration.kms_key #=> String
1158
1176
  # resp.next_token #=> String
1159
1177
  #
1160
1178
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositories AWS API Documentation
@@ -1686,7 +1704,11 @@ module Aws::ECR
1686
1704
  #
1687
1705
  # @option params [String] :image_tag
1688
1706
  # The tag to associate with the image. This parameter is required for
1689
- # images that use the Docker Image Manifest V2 Schema 2 or OCI formats.
1707
+ # images that use the Docker Image Manifest V2 Schema 2 or Open
1708
+ # Container Initiative (OCI) formats.
1709
+ #
1710
+ # @option params [String] :image_digest
1711
+ # The image digest of the image manifest corresponding to the image.
1690
1712
  #
1691
1713
  # @return [Types::PutImageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1692
1714
  #
@@ -1700,6 +1722,7 @@ module Aws::ECR
1700
1722
  # image_manifest: "ImageManifest", # required
1701
1723
  # image_manifest_media_type: "MediaType",
1702
1724
  # image_tag: "ImageTag",
1725
+ # image_digest: "ImageDigest",
1703
1726
  # })
1704
1727
  #
1705
1728
  # @example Response structure
@@ -2129,7 +2152,7 @@ module Aws::ECR
2129
2152
  # The position of the last byte of the layer part within the overall
2130
2153
  # image layer.
2131
2154
  #
2132
- # @option params [required, String, IO] :layer_part_blob
2155
+ # @option params [required, String, StringIO, File] :layer_part_blob
2133
2156
  # The base64-encoded layer part payload.
2134
2157
  #
2135
2158
  # @return [Types::UploadLayerPartResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2179,7 +2202,7 @@ module Aws::ECR
2179
2202
  params: params,
2180
2203
  config: config)
2181
2204
  context[:gem_name] = 'aws-sdk-ecr'
2182
- context[:gem_version] = '1.30.0'
2205
+ context[:gem_version] = '1.35.0'
2183
2206
  Seahorse::Client::Request.new(handlers, context)
2184
2207
  end
2185
2208
 
@@ -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
 
@@ -401,6 +414,9 @@ module Aws::ECR
401
414
 
402
415
  ImageDetailList.member = Shapes::ShapeRef.new(shape: ImageDetail)
403
416
 
417
+ ImageDigestDoesNotMatchException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
418
+ ImageDigestDoesNotMatchException.struct_class = Types::ImageDigestDoesNotMatchException
419
+
404
420
  ImageFailure.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageIdentifier, location_name: "imageId"))
405
421
  ImageFailure.add_member(:failure_code, Shapes::ShapeRef.new(shape: ImageFailureCode, location_name: "failureCode"))
406
422
  ImageFailure.add_member(:failure_reason, Shapes::ShapeRef.new(shape: ImageFailureReason, location_name: "failureReason"))
@@ -475,6 +491,10 @@ module Aws::ECR
475
491
  InvalidTagParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
476
492
  InvalidTagParameterException.struct_class = Types::InvalidTagParameterException
477
493
 
494
+ KmsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
495
+ KmsException.add_member(:kms_error, Shapes::ShapeRef.new(shape: KmsError, location_name: "kmsError"))
496
+ KmsException.struct_class = Types::KmsException
497
+
478
498
  Layer.add_member(:layer_digest, Shapes::ShapeRef.new(shape: LayerDigest, location_name: "layerDigest"))
479
499
  Layer.add_member(:layer_availability, Shapes::ShapeRef.new(shape: LayerAvailability, location_name: "layerAvailability"))
480
500
  Layer.add_member(:layer_size, Shapes::ShapeRef.new(shape: LayerSizeInBytes, location_name: "layerSize"))
@@ -561,6 +581,7 @@ module Aws::ECR
561
581
  PutImageRequest.add_member(:image_manifest, Shapes::ShapeRef.new(shape: ImageManifest, required: true, location_name: "imageManifest"))
562
582
  PutImageRequest.add_member(:image_manifest_media_type, Shapes::ShapeRef.new(shape: MediaType, location_name: "imageManifestMediaType"))
563
583
  PutImageRequest.add_member(:image_tag, Shapes::ShapeRef.new(shape: ImageTag, location_name: "imageTag"))
584
+ PutImageRequest.add_member(:image_digest, Shapes::ShapeRef.new(shape: ImageDigest, location_name: "imageDigest"))
564
585
  PutImageRequest.struct_class = Types::PutImageRequest
565
586
 
566
587
  PutImageResponse.add_member(:image, Shapes::ShapeRef.new(shape: Image, location_name: "image"))
@@ -606,6 +627,7 @@ module Aws::ECR
606
627
  Repository.add_member(:created_at, Shapes::ShapeRef.new(shape: CreationTimestamp, location_name: "createdAt"))
607
628
  Repository.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
608
629
  Repository.add_member(:image_scanning_configuration, Shapes::ShapeRef.new(shape: ImageScanningConfiguration, location_name: "imageScanningConfiguration"))
630
+ Repository.add_member(:encryption_configuration, Shapes::ShapeRef.new(shape: EncryptionConfiguration, location_name: "encryptionConfiguration"))
609
631
  Repository.struct_class = Types::Repository
610
632
 
611
633
  RepositoryAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
@@ -773,6 +795,7 @@ module Aws::ECR
773
795
  o.errors << Shapes::ShapeRef.new(shape: LayerPartTooSmallException)
774
796
  o.errors << Shapes::ShapeRef.new(shape: LayerAlreadyExistsException)
775
797
  o.errors << Shapes::ShapeRef.new(shape: EmptyUploadException)
798
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
776
799
  end)
777
800
 
778
801
  api.add_operation(:create_repository, Seahorse::Model::Operation.new.tap do |o|
@@ -787,6 +810,7 @@ module Aws::ECR
787
810
  o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
788
811
  o.errors << Shapes::ShapeRef.new(shape: RepositoryAlreadyExistsException)
789
812
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
813
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
790
814
  end)
791
815
 
792
816
  api.add_operation(:delete_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -811,6 +835,7 @@ module Aws::ECR
811
835
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
812
836
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
813
837
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotEmptyException)
838
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
814
839
  end)
815
840
 
816
841
  api.add_operation(:delete_repository_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -953,6 +978,7 @@ module Aws::ECR
953
978
  o.errors << Shapes::ShapeRef.new(shape: ServerException)
954
979
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
955
980
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
981
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
956
982
  end)
957
983
 
958
984
  api.add_operation(:list_images, Seahorse::Model::Operation.new.tap do |o|
@@ -997,6 +1023,8 @@ module Aws::ECR
997
1023
  o.errors << Shapes::ShapeRef.new(shape: ReferencedImagesNotFoundException)
998
1024
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
999
1025
  o.errors << Shapes::ShapeRef.new(shape: ImageTagAlreadyExistsException)
1026
+ o.errors << Shapes::ShapeRef.new(shape: ImageDigestDoesNotMatchException)
1027
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
1000
1028
  end)
1001
1029
 
1002
1030
  api.add_operation(:put_image_scanning_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -1108,6 +1136,7 @@ module Aws::ECR
1108
1136
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
1109
1137
  o.errors << Shapes::ShapeRef.new(shape: UploadNotFoundException)
1110
1138
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1139
+ o.errors << Shapes::ShapeRef.new(shape: KmsException)
1111
1140
  end)
1112
1141
  end
1113
1142
 
@@ -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
 
@@ -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
 
@@ -1219,6 +1338,21 @@ module Aws::ECR
1219
1338
  :image_pushed_at,
1220
1339
  :image_scan_status,
1221
1340
  :image_scan_findings_summary)
1341
+ SENSITIVE = []
1342
+ include Aws::Structure
1343
+ end
1344
+
1345
+ # The specified image digest does not match the digest that Amazon ECR
1346
+ # calculated for the image.
1347
+ #
1348
+ # @!attribute [rw] message
1349
+ # @return [String]
1350
+ #
1351
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageDigestDoesNotMatchException AWS API Documentation
1352
+ #
1353
+ class ImageDigestDoesNotMatchException < Struct.new(
1354
+ :message)
1355
+ SENSITIVE = []
1222
1356
  include Aws::Structure
1223
1357
  end
1224
1358
 
@@ -1242,6 +1376,7 @@ module Aws::ECR
1242
1376
  :image_id,
1243
1377
  :failure_code,
1244
1378
  :failure_reason)
1379
+ SENSITIVE = []
1245
1380
  include Aws::Structure
1246
1381
  end
1247
1382
 
@@ -1268,6 +1403,7 @@ module Aws::ECR
1268
1403
  class ImageIdentifier < Struct.new(
1269
1404
  :image_digest,
1270
1405
  :image_tag)
1406
+ SENSITIVE = []
1271
1407
  include Aws::Structure
1272
1408
  end
1273
1409
 
@@ -1280,6 +1416,7 @@ module Aws::ECR
1280
1416
  #
1281
1417
  class ImageNotFoundException < Struct.new(
1282
1418
  :message)
1419
+ SENSITIVE = []
1283
1420
  include Aws::Structure
1284
1421
  end
1285
1422
 
@@ -1315,6 +1452,7 @@ module Aws::ECR
1315
1452
  :uri,
1316
1453
  :severity,
1317
1454
  :attributes)
1455
+ SENSITIVE = []
1318
1456
  include Aws::Structure
1319
1457
  end
1320
1458
 
@@ -1343,6 +1481,7 @@ module Aws::ECR
1343
1481
  :vulnerability_source_updated_at,
1344
1482
  :findings,
1345
1483
  :finding_severity_counts)
1484
+ SENSITIVE = []
1346
1485
  include Aws::Structure
1347
1486
  end
1348
1487
 
@@ -1366,6 +1505,7 @@ module Aws::ECR
1366
1505
  :image_scan_completed_at,
1367
1506
  :vulnerability_source_updated_at,
1368
1507
  :finding_severity_counts)
1508
+ SENSITIVE = []
1369
1509
  include Aws::Structure
1370
1510
  end
1371
1511
 
@@ -1384,6 +1524,7 @@ module Aws::ECR
1384
1524
  class ImageScanStatus < Struct.new(
1385
1525
  :status,
1386
1526
  :description)
1527
+ SENSITIVE = []
1387
1528
  include Aws::Structure
1388
1529
  end
1389
1530
 
@@ -1408,6 +1549,7 @@ module Aws::ECR
1408
1549
  #
1409
1550
  class ImageScanningConfiguration < Struct.new(
1410
1551
  :scan_on_push)
1552
+ SENSITIVE = []
1411
1553
  include Aws::Structure
1412
1554
  end
1413
1555
 
@@ -1421,6 +1563,7 @@ module Aws::ECR
1421
1563
  #
1422
1564
  class ImageTagAlreadyExistsException < Struct.new(
1423
1565
  :message)
1566
+ SENSITIVE = []
1424
1567
  include Aws::Structure
1425
1568
  end
1426
1569
 
@@ -1447,6 +1590,7 @@ module Aws::ECR
1447
1590
  class InitiateLayerUploadRequest < Struct.new(
1448
1591
  :registry_id,
1449
1592
  :repository_name)
1593
+ SENSITIVE = []
1450
1594
  include Aws::Structure
1451
1595
  end
1452
1596
 
@@ -1465,6 +1609,7 @@ module Aws::ECR
1465
1609
  class InitiateLayerUploadResponse < Struct.new(
1466
1610
  :upload_id,
1467
1611
  :part_size)
1612
+ SENSITIVE = []
1468
1613
  include Aws::Structure
1469
1614
  end
1470
1615
 
@@ -1479,6 +1624,7 @@ module Aws::ECR
1479
1624
  #
1480
1625
  class InvalidLayerException < Struct.new(
1481
1626
  :message)
1627
+ SENSITIVE = []
1482
1628
  include Aws::Structure
1483
1629
  end
1484
1630
 
@@ -1514,6 +1660,7 @@ module Aws::ECR
1514
1660
  :upload_id,
1515
1661
  :last_valid_byte_received,
1516
1662
  :message)
1663
+ SENSITIVE = []
1517
1664
  include Aws::Structure
1518
1665
  end
1519
1666
 
@@ -1528,6 +1675,7 @@ module Aws::ECR
1528
1675
  #
1529
1676
  class InvalidParameterException < Struct.new(
1530
1677
  :message)
1678
+ SENSITIVE = []
1531
1679
  include Aws::Structure
1532
1680
  end
1533
1681
 
@@ -1542,6 +1690,25 @@ module Aws::ECR
1542
1690
  #
1543
1691
  class InvalidTagParameterException < Struct.new(
1544
1692
  :message)
1693
+ SENSITIVE = []
1694
+ include Aws::Structure
1695
+ end
1696
+
1697
+ # The operation failed due to a KMS exception.
1698
+ #
1699
+ # @!attribute [rw] message
1700
+ # @return [String]
1701
+ #
1702
+ # @!attribute [rw] kms_error
1703
+ # The error code returned by AWS KMS.
1704
+ # @return [String]
1705
+ #
1706
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/KmsException AWS API Documentation
1707
+ #
1708
+ class KmsException < Struct.new(
1709
+ :message,
1710
+ :kms_error)
1711
+ SENSITIVE = []
1545
1712
  include Aws::Structure
1546
1713
  end
1547
1714
 
@@ -1572,6 +1739,7 @@ module Aws::ECR
1572
1739
  :layer_availability,
1573
1740
  :layer_size,
1574
1741
  :media_type)
1742
+ SENSITIVE = []
1575
1743
  include Aws::Structure
1576
1744
  end
1577
1745
 
@@ -1585,6 +1753,7 @@ module Aws::ECR
1585
1753
  #
1586
1754
  class LayerAlreadyExistsException < Struct.new(
1587
1755
  :message)
1756
+ SENSITIVE = []
1588
1757
  include Aws::Structure
1589
1758
  end
1590
1759
 
@@ -1608,6 +1777,7 @@ module Aws::ECR
1608
1777
  :layer_digest,
1609
1778
  :failure_code,
1610
1779
  :failure_reason)
1780
+ SENSITIVE = []
1611
1781
  include Aws::Structure
1612
1782
  end
1613
1783
 
@@ -1622,6 +1792,7 @@ module Aws::ECR
1622
1792
  #
1623
1793
  class LayerInaccessibleException < Struct.new(
1624
1794
  :message)
1795
+ SENSITIVE = []
1625
1796
  include Aws::Structure
1626
1797
  end
1627
1798
 
@@ -1635,6 +1806,7 @@ module Aws::ECR
1635
1806
  #
1636
1807
  class LayerPartTooSmallException < Struct.new(
1637
1808
  :message)
1809
+ SENSITIVE = []
1638
1810
  include Aws::Structure
1639
1811
  end
1640
1812
 
@@ -1649,6 +1821,7 @@ module Aws::ECR
1649
1821
  #
1650
1822
  class LayersNotFoundException < Struct.new(
1651
1823
  :message)
1824
+ SENSITIVE = []
1652
1825
  include Aws::Structure
1653
1826
  end
1654
1827
 
@@ -1662,6 +1835,7 @@ module Aws::ECR
1662
1835
  #
1663
1836
  class LifecyclePolicyNotFoundException < Struct.new(
1664
1837
  :message)
1838
+ SENSITIVE = []
1665
1839
  include Aws::Structure
1666
1840
  end
1667
1841
 
@@ -1682,11 +1856,12 @@ module Aws::ECR
1682
1856
  #
1683
1857
  class LifecyclePolicyPreviewFilter < Struct.new(
1684
1858
  :tag_status)
1859
+ SENSITIVE = []
1685
1860
  include Aws::Structure
1686
1861
  end
1687
1862
 
1688
- # The previous lifecycle policy preview request has not completed.
1689
- # Please try again later.
1863
+ # The previous lifecycle policy preview request has not completed. Wait
1864
+ # and try again.
1690
1865
  #
1691
1866
  # @!attribute [rw] message
1692
1867
  # @return [String]
@@ -1695,6 +1870,7 @@ module Aws::ECR
1695
1870
  #
1696
1871
  class LifecyclePolicyPreviewInProgressException < Struct.new(
1697
1872
  :message)
1873
+ SENSITIVE = []
1698
1874
  include Aws::Structure
1699
1875
  end
1700
1876
 
@@ -1707,6 +1883,7 @@ module Aws::ECR
1707
1883
  #
1708
1884
  class LifecyclePolicyPreviewNotFoundException < Struct.new(
1709
1885
  :message)
1886
+ SENSITIVE = []
1710
1887
  include Aws::Structure
1711
1888
  end
1712
1889
 
@@ -1741,6 +1918,7 @@ module Aws::ECR
1741
1918
  :image_pushed_at,
1742
1919
  :action,
1743
1920
  :applied_rule_priority)
1921
+ SENSITIVE = []
1744
1922
  include Aws::Structure
1745
1923
  end
1746
1924
 
@@ -1754,6 +1932,7 @@ module Aws::ECR
1754
1932
  #
1755
1933
  class LifecyclePolicyPreviewSummary < Struct.new(
1756
1934
  :expiring_image_total_count)
1935
+ SENSITIVE = []
1757
1936
  include Aws::Structure
1758
1937
  end
1759
1938
 
@@ -1767,6 +1946,7 @@ module Aws::ECR
1767
1946
  #
1768
1947
  class LifecyclePolicyRuleAction < Struct.new(
1769
1948
  :type)
1949
+ SENSITIVE = []
1770
1950
  include Aws::Structure
1771
1951
  end
1772
1952
 
@@ -1786,6 +1966,7 @@ module Aws::ECR
1786
1966
  #
1787
1967
  class LimitExceededException < Struct.new(
1788
1968
  :message)
1969
+ SENSITIVE = []
1789
1970
  include Aws::Structure
1790
1971
  end
1791
1972
 
@@ -1807,6 +1988,7 @@ module Aws::ECR
1807
1988
  #
1808
1989
  class ListImagesFilter < Struct.new(
1809
1990
  :tag_status)
1991
+ SENSITIVE = []
1810
1992
  include Aws::Structure
1811
1993
  end
1812
1994
 
@@ -1871,6 +2053,7 @@ module Aws::ECR
1871
2053
  :next_token,
1872
2054
  :max_results,
1873
2055
  :filter)
2056
+ SENSITIVE = []
1874
2057
  include Aws::Structure
1875
2058
  end
1876
2059
 
@@ -1890,6 +2073,7 @@ module Aws::ECR
1890
2073
  class ListImagesResponse < Struct.new(
1891
2074
  :image_ids,
1892
2075
  :next_token)
2076
+ SENSITIVE = []
1893
2077
  include Aws::Structure
1894
2078
  end
1895
2079
 
@@ -1910,6 +2094,7 @@ module Aws::ECR
1910
2094
  #
1911
2095
  class ListTagsForResourceRequest < Struct.new(
1912
2096
  :resource_arn)
2097
+ SENSITIVE = []
1913
2098
  include Aws::Structure
1914
2099
  end
1915
2100
 
@@ -1921,6 +2106,7 @@ module Aws::ECR
1921
2106
  #
1922
2107
  class ListTagsForResourceResponse < Struct.new(
1923
2108
  :tags)
2109
+ SENSITIVE = []
1924
2110
  include Aws::Structure
1925
2111
  end
1926
2112
 
@@ -1933,6 +2119,7 @@ module Aws::ECR
1933
2119
  # image_manifest: "ImageManifest", # required
1934
2120
  # image_manifest_media_type: "MediaType",
1935
2121
  # image_tag: "ImageTag",
2122
+ # image_digest: "ImageDigest",
1936
2123
  # }
1937
2124
  #
1938
2125
  # @!attribute [rw] registry_id
@@ -1957,8 +2144,12 @@ module Aws::ECR
1957
2144
  #
1958
2145
  # @!attribute [rw] image_tag
1959
2146
  # 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.
2147
+ # images that use the Docker Image Manifest V2 Schema 2 or Open
2148
+ # Container Initiative (OCI) formats.
2149
+ # @return [String]
2150
+ #
2151
+ # @!attribute [rw] image_digest
2152
+ # The image digest of the image manifest corresponding to the image.
1962
2153
  # @return [String]
1963
2154
  #
1964
2155
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageRequest AWS API Documentation
@@ -1968,7 +2159,9 @@ module Aws::ECR
1968
2159
  :repository_name,
1969
2160
  :image_manifest,
1970
2161
  :image_manifest_media_type,
1971
- :image_tag)
2162
+ :image_tag,
2163
+ :image_digest)
2164
+ SENSITIVE = []
1972
2165
  include Aws::Structure
1973
2166
  end
1974
2167
 
@@ -1980,6 +2173,7 @@ module Aws::ECR
1980
2173
  #
1981
2174
  class PutImageResponse < Struct.new(
1982
2175
  :image)
2176
+ SENSITIVE = []
1983
2177
  include Aws::Structure
1984
2178
  end
1985
2179
 
@@ -2018,6 +2212,7 @@ module Aws::ECR
2018
2212
  :registry_id,
2019
2213
  :repository_name,
2020
2214
  :image_scanning_configuration)
2215
+ SENSITIVE = []
2021
2216
  include Aws::Structure
2022
2217
  end
2023
2218
 
@@ -2039,6 +2234,7 @@ module Aws::ECR
2039
2234
  :registry_id,
2040
2235
  :repository_name,
2041
2236
  :image_scanning_configuration)
2237
+ SENSITIVE = []
2042
2238
  include Aws::Structure
2043
2239
  end
2044
2240
 
@@ -2075,6 +2271,7 @@ module Aws::ECR
2075
2271
  :registry_id,
2076
2272
  :repository_name,
2077
2273
  :image_tag_mutability)
2274
+ SENSITIVE = []
2078
2275
  include Aws::Structure
2079
2276
  end
2080
2277
 
@@ -2096,6 +2293,7 @@ module Aws::ECR
2096
2293
  :registry_id,
2097
2294
  :repository_name,
2098
2295
  :image_tag_mutability)
2296
+ SENSITIVE = []
2099
2297
  include Aws::Structure
2100
2298
  end
2101
2299
 
@@ -2128,6 +2326,7 @@ module Aws::ECR
2128
2326
  :registry_id,
2129
2327
  :repository_name,
2130
2328
  :lifecycle_policy_text)
2329
+ SENSITIVE = []
2131
2330
  include Aws::Structure
2132
2331
  end
2133
2332
 
@@ -2149,6 +2348,7 @@ module Aws::ECR
2149
2348
  :registry_id,
2150
2349
  :repository_name,
2151
2350
  :lifecycle_policy_text)
2351
+ SENSITIVE = []
2152
2352
  include Aws::Structure
2153
2353
  end
2154
2354
 
@@ -2161,6 +2361,7 @@ module Aws::ECR
2161
2361
  #
2162
2362
  class ReferencedImagesNotFoundException < Struct.new(
2163
2363
  :message)
2364
+ SENSITIVE = []
2164
2365
  include Aws::Structure
2165
2366
  end
2166
2367
 
@@ -2184,8 +2385,8 @@ module Aws::ECR
2184
2385
  # @return [String]
2185
2386
  #
2186
2387
  # @!attribute [rw] repository_uri
2187
- # The URI for the repository. You can use this URI for Docker `push`
2188
- # or `pull` operations.
2388
+ # The URI for the repository. You can use this URI for container image
2389
+ # `push` and `pull` operations.
2189
2390
  # @return [String]
2190
2391
  #
2191
2392
  # @!attribute [rw] created_at
@@ -2201,6 +2402,11 @@ module Aws::ECR
2201
2402
  # The image scanning configuration for a repository.
2202
2403
  # @return [Types::ImageScanningConfiguration]
2203
2404
  #
2405
+ # @!attribute [rw] encryption_configuration
2406
+ # The encryption configuration for the repository. This determines how
2407
+ # the contents of your repository are encrypted at rest.
2408
+ # @return [Types::EncryptionConfiguration]
2409
+ #
2204
2410
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Repository AWS API Documentation
2205
2411
  #
2206
2412
  class Repository < Struct.new(
@@ -2210,7 +2416,9 @@ module Aws::ECR
2210
2416
  :repository_uri,
2211
2417
  :created_at,
2212
2418
  :image_tag_mutability,
2213
- :image_scanning_configuration)
2419
+ :image_scanning_configuration,
2420
+ :encryption_configuration)
2421
+ SENSITIVE = []
2214
2422
  include Aws::Structure
2215
2423
  end
2216
2424
 
@@ -2224,6 +2432,7 @@ module Aws::ECR
2224
2432
  #
2225
2433
  class RepositoryAlreadyExistsException < Struct.new(
2226
2434
  :message)
2435
+ SENSITIVE = []
2227
2436
  include Aws::Structure
2228
2437
  end
2229
2438
 
@@ -2239,6 +2448,7 @@ module Aws::ECR
2239
2448
  #
2240
2449
  class RepositoryNotEmptyException < Struct.new(
2241
2450
  :message)
2451
+ SENSITIVE = []
2242
2452
  include Aws::Structure
2243
2453
  end
2244
2454
 
@@ -2254,6 +2464,7 @@ module Aws::ECR
2254
2464
  #
2255
2465
  class RepositoryNotFoundException < Struct.new(
2256
2466
  :message)
2467
+ SENSITIVE = []
2257
2468
  include Aws::Structure
2258
2469
  end
2259
2470
 
@@ -2268,6 +2479,7 @@ module Aws::ECR
2268
2479
  #
2269
2480
  class RepositoryPolicyNotFoundException < Struct.new(
2270
2481
  :message)
2482
+ SENSITIVE = []
2271
2483
  include Aws::Structure
2272
2484
  end
2273
2485
 
@@ -2281,6 +2493,7 @@ module Aws::ECR
2281
2493
  #
2282
2494
  class ScanNotFoundException < Struct.new(
2283
2495
  :message)
2496
+ SENSITIVE = []
2284
2497
  include Aws::Structure
2285
2498
  end
2286
2499
 
@@ -2294,6 +2507,7 @@ module Aws::ECR
2294
2507
  #
2295
2508
  class ServerException < Struct.new(
2296
2509
  :message)
2510
+ SENSITIVE = []
2297
2511
  include Aws::Structure
2298
2512
  end
2299
2513
 
@@ -2341,6 +2555,7 @@ module Aws::ECR
2341
2555
  :repository_name,
2342
2556
  :policy_text,
2343
2557
  :force)
2558
+ SENSITIVE = []
2344
2559
  include Aws::Structure
2345
2560
  end
2346
2561
 
@@ -2362,6 +2577,7 @@ module Aws::ECR
2362
2577
  :registry_id,
2363
2578
  :repository_name,
2364
2579
  :policy_text)
2580
+ SENSITIVE = []
2365
2581
  include Aws::Structure
2366
2582
  end
2367
2583
 
@@ -2397,6 +2613,7 @@ module Aws::ECR
2397
2613
  :registry_id,
2398
2614
  :repository_name,
2399
2615
  :image_id)
2616
+ SENSITIVE = []
2400
2617
  include Aws::Structure
2401
2618
  end
2402
2619
 
@@ -2423,6 +2640,7 @@ module Aws::ECR
2423
2640
  :repository_name,
2424
2641
  :image_id,
2425
2642
  :image_scan_status)
2643
+ SENSITIVE = []
2426
2644
  include Aws::Structure
2427
2645
  end
2428
2646
 
@@ -2456,6 +2674,7 @@ module Aws::ECR
2456
2674
  :registry_id,
2457
2675
  :repository_name,
2458
2676
  :lifecycle_policy_text)
2677
+ SENSITIVE = []
2459
2678
  include Aws::Structure
2460
2679
  end
2461
2680
 
@@ -2482,6 +2701,7 @@ module Aws::ECR
2482
2701
  :repository_name,
2483
2702
  :lifecycle_policy_text,
2484
2703
  :status)
2704
+ SENSITIVE = []
2485
2705
  include Aws::Structure
2486
2706
  end
2487
2707
 
@@ -2515,6 +2735,7 @@ module Aws::ECR
2515
2735
  class Tag < Struct.new(
2516
2736
  :key,
2517
2737
  :value)
2738
+ SENSITIVE = []
2518
2739
  include Aws::Structure
2519
2740
  end
2520
2741
 
@@ -2549,6 +2770,7 @@ module Aws::ECR
2549
2770
  class TagResourceRequest < Struct.new(
2550
2771
  :resource_arn,
2551
2772
  :tags)
2773
+ SENSITIVE = []
2552
2774
  include Aws::Structure
2553
2775
  end
2554
2776
 
@@ -2566,6 +2788,7 @@ module Aws::ECR
2566
2788
  #
2567
2789
  class TooManyTagsException < Struct.new(
2568
2790
  :message)
2791
+ SENSITIVE = []
2569
2792
  include Aws::Structure
2570
2793
  end
2571
2794
 
@@ -2578,6 +2801,7 @@ module Aws::ECR
2578
2801
  #
2579
2802
  class UnsupportedImageTypeException < Struct.new(
2580
2803
  :message)
2804
+ SENSITIVE = []
2581
2805
  include Aws::Structure
2582
2806
  end
2583
2807
 
@@ -2604,6 +2828,7 @@ module Aws::ECR
2604
2828
  class UntagResourceRequest < Struct.new(
2605
2829
  :resource_arn,
2606
2830
  :tag_keys)
2831
+ SENSITIVE = []
2607
2832
  include Aws::Structure
2608
2833
  end
2609
2834
 
@@ -2661,6 +2886,7 @@ module Aws::ECR
2661
2886
  :part_first_byte,
2662
2887
  :part_last_byte,
2663
2888
  :layer_part_blob)
2889
+ SENSITIVE = []
2664
2890
  include Aws::Structure
2665
2891
  end
2666
2892
 
@@ -2687,10 +2913,11 @@ module Aws::ECR
2687
2913
  :repository_name,
2688
2914
  :upload_id,
2689
2915
  :last_byte_received)
2916
+ SENSITIVE = []
2690
2917
  include Aws::Structure
2691
2918
  end
2692
2919
 
2693
- # The upload could not be found, or the specified upload id is not valid
2920
+ # The upload could not be found, or the specified upload ID is not valid
2694
2921
  # for this repository.
2695
2922
  #
2696
2923
  # @!attribute [rw] message
@@ -2701,6 +2928,7 @@ module Aws::ECR
2701
2928
  #
2702
2929
  class UploadNotFoundException < Struct.new(
2703
2930
  :message)
2931
+ SENSITIVE = []
2704
2932
  include Aws::Structure
2705
2933
  end
2706
2934