aws-sdk-ecrpublic 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb25784b2a0f31900bfeb268c37898252bcadc940a6ad5f6732644aa96e4017b
4
- data.tar.gz: 02bb0c54c8db7ba91fb00b42a8cde7de71bd4ca56eb956a1568ac91bbba5a0e3
3
+ metadata.gz: f3e02fe57bb4ac5ac2cdaf3ac23fe83ec047cdf1181128880145084b612736a1
4
+ data.tar.gz: 7a96138a4fc33ec1b6a695cfd8112dfab6fb41f73e91a809b741463395f455f8
5
5
  SHA512:
6
- metadata.gz: dc85dd0588487345ca670fc65df7798f3928d56aa3472426e9a1f9711499ce7733980aa4a2e1679cbf29ab8b297c1d1f794056ce926d903ddf6775f17a3debc3
7
- data.tar.gz: 28fffc08d7d203839f911d7464e36124f44a15c7301e48334a0752dd7a0935f401c0561b44b2617211e2d1d7e081c11563907b57c4afd69c098749931fcb0383
6
+ metadata.gz: 94c76f45645a3e9e6eb74c354ab036dc23d30cd09fcedf741958df2ce554569f58af86f16af928e20979d45a290fe6fb3699bcd01a24fa556b1c0f6cfb9c8d6e
7
+ data.tar.gz: 4e137fd2e109df3149f207e3d9ff0cbd8b1c5a516167eebd6ecdc2e1e99e7d31e6b0256277fd893bca3c793155a2c8a3a81c99aaf0a999cf2cc6e6a803495559
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-ecrpublic/customizations'
48
48
  # @!group service
49
49
  module Aws::ECRPublic
50
50
 
51
- GEM_VERSION = '1.1.0'
51
+ GEM_VERSION = '1.2.0'
52
52
 
53
53
  end
@@ -538,6 +538,13 @@ module Aws::ECRPublic
538
538
  # The details about the repository that are publicly visible in the
539
539
  # Amazon ECR Public Gallery.
540
540
  #
541
+ # @option params [Array<Types::Tag>] :tags
542
+ # The metadata that you apply to the repository to help you categorize
543
+ # and organize them. Each tag consists of a key and an optional value,
544
+ # both of which you define. Tag keys can have a maximum character length
545
+ # of 128 characters, and tag values can have a maximum length of 256
546
+ # characters.
547
+ #
541
548
  # @return [Types::CreateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
542
549
  #
543
550
  # * {Types::CreateRepositoryResponse#repository #repository} => Types::Repository
@@ -555,6 +562,12 @@ module Aws::ECRPublic
555
562
  # about_text: "AboutText",
556
563
  # usage_text: "UsageText",
557
564
  # },
565
+ # tags: [
566
+ # {
567
+ # key: "TagKey",
568
+ # value: "TagValue",
569
+ # },
570
+ # ],
558
571
  # })
559
572
  #
560
573
  # @example Response structure
@@ -1129,6 +1142,38 @@ module Aws::ECRPublic
1129
1142
  req.send_request(options)
1130
1143
  end
1131
1144
 
1145
+ # List the tags for an Amazon ECR Public resource.
1146
+ #
1147
+ # @option params [required, String] :resource_arn
1148
+ # The Amazon Resource Name (ARN) that identifies the resource for which
1149
+ # to list the tags. Currently, the supported resource is an Amazon ECR
1150
+ # Public repository.
1151
+ #
1152
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1153
+ #
1154
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
1155
+ #
1156
+ # @example Request syntax with placeholder values
1157
+ #
1158
+ # resp = client.list_tags_for_resource({
1159
+ # resource_arn: "Arn", # required
1160
+ # })
1161
+ #
1162
+ # @example Response structure
1163
+ #
1164
+ # resp.tags #=> Array
1165
+ # resp.tags[0].key #=> String
1166
+ # resp.tags[0].value #=> String
1167
+ #
1168
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/ListTagsForResource AWS API Documentation
1169
+ #
1170
+ # @overload list_tags_for_resource(params = {})
1171
+ # @param [Hash] params ({})
1172
+ def list_tags_for_resource(params = {}, options = {})
1173
+ req = build_request(:list_tags_for_resource, params)
1174
+ req.send_request(options)
1175
+ end
1176
+
1132
1177
  # Creates or updates the image manifest and tags associated with an
1133
1178
  # image.
1134
1179
  #
@@ -1350,6 +1395,71 @@ module Aws::ECRPublic
1350
1395
  req.send_request(options)
1351
1396
  end
1352
1397
 
1398
+ # Associates the specified tags to a resource with the specified
1399
+ # `resourceArn`. If existing tags on a resource are not specified in the
1400
+ # request parameters, they are not changed. When a resource is deleted,
1401
+ # the tags associated with that resource are deleted as well.
1402
+ #
1403
+ # @option params [required, String] :resource_arn
1404
+ # The Amazon Resource Name (ARN) of the resource to which to add tags.
1405
+ # Currently, the supported resource is an Amazon ECR Public repository.
1406
+ #
1407
+ # @option params [required, Array<Types::Tag>] :tags
1408
+ # The tags to add to the resource. A tag is an array of key-value pairs.
1409
+ # Tag keys can have a maximum character length of 128 characters, and
1410
+ # tag values can have a maximum length of 256 characters.
1411
+ #
1412
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1413
+ #
1414
+ # @example Request syntax with placeholder values
1415
+ #
1416
+ # resp = client.tag_resource({
1417
+ # resource_arn: "Arn", # required
1418
+ # tags: [ # required
1419
+ # {
1420
+ # key: "TagKey",
1421
+ # value: "TagValue",
1422
+ # },
1423
+ # ],
1424
+ # })
1425
+ #
1426
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/TagResource AWS API Documentation
1427
+ #
1428
+ # @overload tag_resource(params = {})
1429
+ # @param [Hash] params ({})
1430
+ def tag_resource(params = {}, options = {})
1431
+ req = build_request(:tag_resource, params)
1432
+ req.send_request(options)
1433
+ end
1434
+
1435
+ # Deletes specified tags from a resource.
1436
+ #
1437
+ # @option params [required, String] :resource_arn
1438
+ # The Amazon Resource Name (ARN) of the resource from which to delete
1439
+ # tags. Currently, the supported resource is an Amazon ECR Public
1440
+ # repository.
1441
+ #
1442
+ # @option params [required, Array<String>] :tag_keys
1443
+ # The keys of the tags to be removed.
1444
+ #
1445
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1446
+ #
1447
+ # @example Request syntax with placeholder values
1448
+ #
1449
+ # resp = client.untag_resource({
1450
+ # resource_arn: "Arn", # required
1451
+ # tag_keys: ["TagKey"], # required
1452
+ # })
1453
+ #
1454
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/UntagResource AWS API Documentation
1455
+ #
1456
+ # @overload untag_resource(params = {})
1457
+ # @param [Hash] params ({})
1458
+ def untag_resource(params = {}, options = {})
1459
+ req = build_request(:untag_resource, params)
1460
+ req.send_request(options)
1461
+ end
1462
+
1353
1463
  # Uploads an image layer part to Amazon ECR.
1354
1464
  #
1355
1465
  # When an image is pushed, each new image layer is uploaded in parts.
@@ -1433,7 +1543,7 @@ module Aws::ECRPublic
1433
1543
  params: params,
1434
1544
  config: config)
1435
1545
  context[:gem_name] = 'aws-sdk-ecrpublic'
1436
- context[:gem_version] = '1.1.0'
1546
+ context[:gem_version] = '1.2.0'
1437
1547
  Seahorse::Client::Request.new(handlers, context)
1438
1548
  end
1439
1549
 
@@ -80,6 +80,7 @@ module Aws::ECRPublic
80
80
  InvalidLayerException = Shapes::StructureShape.new(name: 'InvalidLayerException')
81
81
  InvalidLayerPartException = Shapes::StructureShape.new(name: 'InvalidLayerPartException')
82
82
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
83
+ InvalidTagParameterException = Shapes::StructureShape.new(name: 'InvalidTagParameterException')
83
84
  Layer = Shapes::StructureShape.new(name: 'Layer')
84
85
  LayerAlreadyExistsException = Shapes::StructureShape.new(name: 'LayerAlreadyExistsException')
85
86
  LayerAvailability = Shapes::StringShape.new(name: 'LayerAvailability')
@@ -95,6 +96,8 @@ module Aws::ECRPublic
95
96
  LayerSizeInBytes = Shapes::IntegerShape.new(name: 'LayerSizeInBytes')
96
97
  LayersNotFoundException = Shapes::StructureShape.new(name: 'LayersNotFoundException')
97
98
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
99
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
100
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
98
101
  LogoImageBlob = Shapes::BlobShape.new(name: 'LogoImageBlob')
99
102
  MarketplaceCertified = Shapes::BooleanShape.new(name: 'MarketplaceCertified')
100
103
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
@@ -141,7 +144,17 @@ module Aws::ECRPublic
141
144
  ServerException = Shapes::StructureShape.new(name: 'ServerException')
142
145
  SetRepositoryPolicyRequest = Shapes::StructureShape.new(name: 'SetRepositoryPolicyRequest')
143
146
  SetRepositoryPolicyResponse = Shapes::StructureShape.new(name: 'SetRepositoryPolicyResponse')
147
+ Tag = Shapes::StructureShape.new(name: 'Tag')
148
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
149
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
150
+ TagList = Shapes::ListShape.new(name: 'TagList')
151
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
152
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
153
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
154
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
144
155
  UnsupportedCommandException = Shapes::StructureShape.new(name: 'UnsupportedCommandException')
156
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
157
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
145
158
  UploadId = Shapes::StringShape.new(name: 'UploadId')
146
159
  UploadLayerPartRequest = Shapes::StructureShape.new(name: 'UploadLayerPartRequest')
147
160
  UploadLayerPartResponse = Shapes::StructureShape.new(name: 'UploadLayerPartResponse')
@@ -189,6 +202,7 @@ module Aws::ECRPublic
189
202
 
190
203
  CreateRepositoryRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
191
204
  CreateRepositoryRequest.add_member(:catalog_data, Shapes::ShapeRef.new(shape: RepositoryCatalogDataInput, location_name: "catalogData"))
205
+ CreateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
192
206
  CreateRepositoryRequest.struct_class = Types::CreateRepositoryRequest
193
207
 
194
208
  CreateRepositoryResponse.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, location_name: "repository"))
@@ -354,6 +368,9 @@ module Aws::ECRPublic
354
368
  InvalidParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
355
369
  InvalidParameterException.struct_class = Types::InvalidParameterException
356
370
 
371
+ InvalidTagParameterException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
372
+ InvalidTagParameterException.struct_class = Types::InvalidTagParameterException
373
+
357
374
  Layer.add_member(:layer_digest, Shapes::ShapeRef.new(shape: LayerDigest, location_name: "layerDigest"))
358
375
  Layer.add_member(:layer_availability, Shapes::ShapeRef.new(shape: LayerAvailability, location_name: "layerAvailability"))
359
376
  Layer.add_member(:layer_size, Shapes::ShapeRef.new(shape: LayerSizeInBytes, location_name: "layerSize"))
@@ -383,6 +400,12 @@ module Aws::ECRPublic
383
400
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
384
401
  LimitExceededException.struct_class = Types::LimitExceededException
385
402
 
403
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
404
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
405
+
406
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
407
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
408
+
386
409
  OperatingSystemList.member = Shapes::ShapeRef.new(shape: OperatingSystem)
387
410
 
388
411
  PutImageRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryIdOrAlias, location_name: "registryId"))
@@ -497,9 +520,32 @@ module Aws::ECRPublic
497
520
  SetRepositoryPolicyResponse.add_member(:policy_text, Shapes::ShapeRef.new(shape: RepositoryPolicyText, location_name: "policyText"))
498
521
  SetRepositoryPolicyResponse.struct_class = Types::SetRepositoryPolicyResponse
499
522
 
523
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
524
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
525
+ Tag.struct_class = Types::Tag
526
+
527
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
528
+
529
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
530
+
531
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
532
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
533
+ TagResourceRequest.struct_class = Types::TagResourceRequest
534
+
535
+ TagResourceResponse.struct_class = Types::TagResourceResponse
536
+
537
+ TooManyTagsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
538
+ TooManyTagsException.struct_class = Types::TooManyTagsException
539
+
500
540
  UnsupportedCommandException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
501
541
  UnsupportedCommandException.struct_class = Types::UnsupportedCommandException
502
542
 
543
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
544
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "tagKeys"))
545
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
546
+
547
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
548
+
503
549
  UploadLayerPartRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryIdOrAlias, location_name: "registryId"))
504
550
  UploadLayerPartRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
505
551
  UploadLayerPartRequest.add_member(:upload_id, Shapes::ShapeRef.new(shape: UploadId, required: true, location_name: "uploadId"))
@@ -586,6 +632,8 @@ module Aws::ECRPublic
586
632
  o.output = Shapes::ShapeRef.new(shape: CreateRepositoryResponse)
587
633
  o.errors << Shapes::ShapeRef.new(shape: ServerException)
588
634
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
635
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
636
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
589
637
  o.errors << Shapes::ShapeRef.new(shape: RepositoryAlreadyExistsException)
590
638
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
591
639
  end)
@@ -739,6 +787,17 @@ module Aws::ECRPublic
739
787
  o.errors << Shapes::ShapeRef.new(shape: UnsupportedCommandException)
740
788
  end)
741
789
 
790
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
791
+ o.name = "ListTagsForResource"
792
+ o.http_method = "POST"
793
+ o.http_request_uri = "/"
794
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
795
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
796
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
797
+ o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
798
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
799
+ end)
800
+
742
801
  api.add_operation(:put_image, Seahorse::Model::Operation.new.tap do |o|
743
802
  o.name = "PutImage"
744
803
  o.http_method = "POST"
@@ -791,6 +850,32 @@ module Aws::ECRPublic
791
850
  o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
792
851
  end)
793
852
 
853
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
854
+ o.name = "TagResource"
855
+ o.http_method = "POST"
856
+ o.http_request_uri = "/"
857
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
858
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
859
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
860
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
861
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
862
+ o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
863
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
864
+ end)
865
+
866
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
867
+ o.name = "UntagResource"
868
+ o.http_method = "POST"
869
+ o.http_request_uri = "/"
870
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
871
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
872
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
873
+ o.errors << Shapes::ShapeRef.new(shape: InvalidTagParameterException)
874
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
875
+ o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
876
+ o.errors << Shapes::ShapeRef.new(shape: ServerException)
877
+ end)
878
+
794
879
  api.add_operation(:upload_layer_part, Seahorse::Model::Operation.new.tap do |o|
795
880
  o.name = "UploadLayerPart"
796
881
  o.http_method = "POST"
@@ -35,6 +35,7 @@ module Aws::ECRPublic
35
35
  # * {InvalidLayerException}
36
36
  # * {InvalidLayerPartException}
37
37
  # * {InvalidParameterException}
38
+ # * {InvalidTagParameterException}
38
39
  # * {LayerAlreadyExistsException}
39
40
  # * {LayerPartTooSmallException}
40
41
  # * {LayersNotFoundException}
@@ -46,6 +47,7 @@ module Aws::ECRPublic
46
47
  # * {RepositoryNotFoundException}
47
48
  # * {RepositoryPolicyNotFoundException}
48
49
  # * {ServerException}
50
+ # * {TooManyTagsException}
49
51
  # * {UnsupportedCommandException}
50
52
  # * {UploadNotFoundException}
51
53
  #
@@ -195,6 +197,21 @@ module Aws::ECRPublic
195
197
  end
196
198
  end
197
199
 
200
+ class InvalidTagParameterException < ServiceError
201
+
202
+ # @param [Seahorse::Client::RequestContext] context
203
+ # @param [String] message
204
+ # @param [Aws::ECRPublic::Types::InvalidTagParameterException] data
205
+ def initialize(context, message, data = Aws::EmptyStructure.new)
206
+ super(context, message, data)
207
+ end
208
+
209
+ # @return [String]
210
+ def message
211
+ @message || @data[:message]
212
+ end
213
+ end
214
+
198
215
  class LayerAlreadyExistsException < ServiceError
199
216
 
200
217
  # @param [Seahorse::Client::RequestContext] context
@@ -360,6 +377,21 @@ module Aws::ECRPublic
360
377
  end
361
378
  end
362
379
 
380
+ class TooManyTagsException < ServiceError
381
+
382
+ # @param [Seahorse::Client::RequestContext] context
383
+ # @param [String] message
384
+ # @param [Aws::ECRPublic::Types::TooManyTagsException] data
385
+ def initialize(context, message, data = Aws::EmptyStructure.new)
386
+ super(context, message, data)
387
+ end
388
+
389
+ # @return [String]
390
+ def message
391
+ @message || @data[:message]
392
+ end
393
+ end
394
+
363
395
  class UnsupportedCommandException < ServiceError
364
396
 
365
397
  # @param [Seahorse::Client::RequestContext] context
@@ -225,6 +225,12 @@ module Aws::ECRPublic
225
225
  # about_text: "AboutText",
226
226
  # usage_text: "UsageText",
227
227
  # },
228
+ # tags: [
229
+ # {
230
+ # key: "TagKey",
231
+ # value: "TagValue",
232
+ # },
233
+ # ],
228
234
  # }
229
235
  #
230
236
  # @!attribute [rw] repository_name
@@ -240,11 +246,20 @@ module Aws::ECRPublic
240
246
  # Amazon ECR Public Gallery.
241
247
  # @return [Types::RepositoryCatalogDataInput]
242
248
  #
249
+ # @!attribute [rw] tags
250
+ # The metadata that you apply to the repository to help you categorize
251
+ # and organize them. Each tag consists of a key and an optional value,
252
+ # both of which you define. Tag keys can have a maximum character
253
+ # length of 128 characters, and tag values can have a maximum length
254
+ # of 256 characters.
255
+ # @return [Array<Types::Tag>]
256
+ #
243
257
  # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/CreateRepositoryRequest AWS API Documentation
244
258
  #
245
259
  class CreateRepositoryRequest < Struct.new(
246
260
  :repository_name,
247
- :catalog_data)
261
+ :catalog_data,
262
+ :tags)
248
263
  SENSITIVE = []
249
264
  include Aws::Structure
250
265
  end
@@ -1146,6 +1161,21 @@ module Aws::ECRPublic
1146
1161
  include Aws::Structure
1147
1162
  end
1148
1163
 
1164
+ # An invalid parameter has been specified. Tag keys can have a maximum
1165
+ # character length of 128 characters, and tag values can have a maximum
1166
+ # length of 256 characters.
1167
+ #
1168
+ # @!attribute [rw] message
1169
+ # @return [String]
1170
+ #
1171
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/InvalidTagParameterException AWS API Documentation
1172
+ #
1173
+ class InvalidTagParameterException < Struct.new(
1174
+ :message)
1175
+ SENSITIVE = []
1176
+ include Aws::Structure
1177
+ end
1178
+
1149
1179
  # An object representing an Amazon ECR image layer.
1150
1180
  #
1151
1181
  # @!attribute [rw] layer_digest
@@ -1260,6 +1290,39 @@ module Aws::ECRPublic
1260
1290
  include Aws::Structure
1261
1291
  end
1262
1292
 
1293
+ # @note When making an API call, you may pass ListTagsForResourceRequest
1294
+ # data as a hash:
1295
+ #
1296
+ # {
1297
+ # resource_arn: "Arn", # required
1298
+ # }
1299
+ #
1300
+ # @!attribute [rw] resource_arn
1301
+ # The Amazon Resource Name (ARN) that identifies the resource for
1302
+ # which to list the tags. Currently, the supported resource is an
1303
+ # Amazon ECR Public repository.
1304
+ # @return [String]
1305
+ #
1306
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/ListTagsForResourceRequest AWS API Documentation
1307
+ #
1308
+ class ListTagsForResourceRequest < Struct.new(
1309
+ :resource_arn)
1310
+ SENSITIVE = []
1311
+ include Aws::Structure
1312
+ end
1313
+
1314
+ # @!attribute [rw] tags
1315
+ # The tags for the resource.
1316
+ # @return [Array<Types::Tag>]
1317
+ #
1318
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/ListTagsForResourceResponse AWS API Documentation
1319
+ #
1320
+ class ListTagsForResourceResponse < Struct.new(
1321
+ :tags)
1322
+ SENSITIVE = []
1323
+ include Aws::Structure
1324
+ end
1325
+
1263
1326
  # @note When making an API call, you may pass PutImageRequest
1264
1327
  # data as a hash:
1265
1328
  #
@@ -1931,6 +1994,93 @@ module Aws::ECRPublic
1931
1994
  include Aws::Structure
1932
1995
  end
1933
1996
 
1997
+ # The metadata that you apply to a resource to help you categorize and
1998
+ # organize them. Each tag consists of a key and an optional value, both
1999
+ # of which you define. Tag keys can have a maximum character length of
2000
+ # 128 characters, and tag values can have a maximum length of 256
2001
+ # characters.
2002
+ #
2003
+ # @note When making an API call, you may pass Tag
2004
+ # data as a hash:
2005
+ #
2006
+ # {
2007
+ # key: "TagKey",
2008
+ # value: "TagValue",
2009
+ # }
2010
+ #
2011
+ # @!attribute [rw] key
2012
+ # One part of a key-value pair that make up a tag. A `key` is a
2013
+ # general label that acts like a category for more specific tag
2014
+ # values.
2015
+ # @return [String]
2016
+ #
2017
+ # @!attribute [rw] value
2018
+ # The optional part of a key-value pair that make up a tag. A `value`
2019
+ # acts as a descriptor within a tag category (key).
2020
+ # @return [String]
2021
+ #
2022
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/Tag AWS API Documentation
2023
+ #
2024
+ class Tag < Struct.new(
2025
+ :key,
2026
+ :value)
2027
+ SENSITIVE = []
2028
+ include Aws::Structure
2029
+ end
2030
+
2031
+ # @note When making an API call, you may pass TagResourceRequest
2032
+ # data as a hash:
2033
+ #
2034
+ # {
2035
+ # resource_arn: "Arn", # required
2036
+ # tags: [ # required
2037
+ # {
2038
+ # key: "TagKey",
2039
+ # value: "TagValue",
2040
+ # },
2041
+ # ],
2042
+ # }
2043
+ #
2044
+ # @!attribute [rw] resource_arn
2045
+ # The Amazon Resource Name (ARN) of the resource to which to add tags.
2046
+ # Currently, the supported resource is an Amazon ECR Public
2047
+ # repository.
2048
+ # @return [String]
2049
+ #
2050
+ # @!attribute [rw] tags
2051
+ # The tags to add to the resource. A tag is an array of key-value
2052
+ # pairs. Tag keys can have a maximum character length of 128
2053
+ # characters, and tag values can have a maximum length of 256
2054
+ # characters.
2055
+ # @return [Array<Types::Tag>]
2056
+ #
2057
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/TagResourceRequest AWS API Documentation
2058
+ #
2059
+ class TagResourceRequest < Struct.new(
2060
+ :resource_arn,
2061
+ :tags)
2062
+ SENSITIVE = []
2063
+ include Aws::Structure
2064
+ end
2065
+
2066
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/TagResourceResponse AWS API Documentation
2067
+ #
2068
+ class TagResourceResponse < Aws::EmptyStructure; end
2069
+
2070
+ # The list of tags on the repository is over the limit. The maximum
2071
+ # number of tags that can be applied to a repository is 50.
2072
+ #
2073
+ # @!attribute [rw] message
2074
+ # @return [String]
2075
+ #
2076
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/TooManyTagsException AWS API Documentation
2077
+ #
2078
+ class TooManyTagsException < Struct.new(
2079
+ :message)
2080
+ SENSITIVE = []
2081
+ include Aws::Structure
2082
+ end
2083
+
1934
2084
  # The action is not supported in this Region.
1935
2085
  #
1936
2086
  # @!attribute [rw] message
@@ -1944,6 +2094,37 @@ module Aws::ECRPublic
1944
2094
  include Aws::Structure
1945
2095
  end
1946
2096
 
2097
+ # @note When making an API call, you may pass UntagResourceRequest
2098
+ # data as a hash:
2099
+ #
2100
+ # {
2101
+ # resource_arn: "Arn", # required
2102
+ # tag_keys: ["TagKey"], # required
2103
+ # }
2104
+ #
2105
+ # @!attribute [rw] resource_arn
2106
+ # The Amazon Resource Name (ARN) of the resource from which to delete
2107
+ # tags. Currently, the supported resource is an Amazon ECR Public
2108
+ # repository.
2109
+ # @return [String]
2110
+ #
2111
+ # @!attribute [rw] tag_keys
2112
+ # The keys of the tags to be removed.
2113
+ # @return [Array<String>]
2114
+ #
2115
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/UntagResourceRequest AWS API Documentation
2116
+ #
2117
+ class UntagResourceRequest < Struct.new(
2118
+ :resource_arn,
2119
+ :tag_keys)
2120
+ SENSITIVE = []
2121
+ include Aws::Structure
2122
+ end
2123
+
2124
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecr-public-2020-10-30/UntagResourceResponse AWS API Documentation
2125
+ #
2126
+ class UntagResourceResponse < Aws::EmptyStructure; end
2127
+
1947
2128
  # @note When making an API call, you may pass UploadLayerPartRequest
1948
2129
  # data as a hash:
1949
2130
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ecrpublic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core