aws-sdk-ecr 1.19.0 → 1.20.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 +4 -4
- data/lib/aws-sdk-ecr.rb +1 -1
- data/lib/aws-sdk-ecr/client.rb +78 -5
- data/lib/aws-sdk-ecr/client_api.rb +31 -0
- data/lib/aws-sdk-ecr/errors.rb +16 -0
- data/lib/aws-sdk-ecr/types.rb +101 -5
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30dd8d05a59c1b04585970dd1ebce37935c1aca4
|
4
|
+
data.tar.gz: 7f1062d5f38f1bab4d3973fbdd9ec89f800c0f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0a98d5dc9f86f664f206e4f7554287ae9a6a81a58c2128c36038552cc7dc0e62ccc3a9801282f408ba064eb4085108f1ea3d3cc675a77f462fcdd4851552aee
|
7
|
+
data.tar.gz: f917bcc2c96334f0c9ccf60f902e12937afafceaafebbe8195e451f05df8704001ffed07ecabb4942a12b61b03fdb7e6b277a1d17b1f5c966683e0e6adf10674
|
data/lib/aws-sdk-ecr.rb
CHANGED
data/lib/aws-sdk-ecr/client.rb
CHANGED
@@ -572,6 +572,18 @@ module Aws::ECR
|
|
572
572
|
# `project-a/nginx-web-app`).
|
573
573
|
#
|
574
574
|
# @option params [Array<Types::Tag>] :tags
|
575
|
+
# The metadata that you apply to the repository to help you categorize
|
576
|
+
# and organize them. Each tag consists of a key and an optional value,
|
577
|
+
# both of which you define. Tag keys can have a maximum character length
|
578
|
+
# of 128 characters, and tag values can have a maximum length of 256
|
579
|
+
# characters.
|
580
|
+
#
|
581
|
+
# @option params [String] :image_tag_mutability
|
582
|
+
# The tag mutability setting for the repository. If this parameter is
|
583
|
+
# omitted, the default setting of `MUTABLE` will be used which will
|
584
|
+
# allow image tags to be overwritten. If `IMMUTABLE` is specified, all
|
585
|
+
# image tags within the repository will be immutable which will prevent
|
586
|
+
# them from being overwritten.
|
575
587
|
#
|
576
588
|
# @return [Types::CreateRepositoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
577
589
|
#
|
@@ -606,6 +618,7 @@ module Aws::ECR
|
|
606
618
|
# value: "TagValue",
|
607
619
|
# },
|
608
620
|
# ],
|
621
|
+
# image_tag_mutability: "MUTABLE", # accepts MUTABLE, IMMUTABLE
|
609
622
|
# })
|
610
623
|
#
|
611
624
|
# @example Response structure
|
@@ -615,6 +628,7 @@ module Aws::ECR
|
|
615
628
|
# resp.repository.repository_name #=> String
|
616
629
|
# resp.repository.repository_uri #=> String
|
617
630
|
# resp.repository.created_at #=> Time
|
631
|
+
# resp.repository.image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
|
618
632
|
#
|
619
633
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepository AWS API Documentation
|
620
634
|
#
|
@@ -718,6 +732,7 @@ module Aws::ECR
|
|
718
732
|
# resp.repository.repository_name #=> String
|
719
733
|
# resp.repository.repository_uri #=> String
|
720
734
|
# resp.repository.created_at #=> Time
|
735
|
+
# resp.repository.image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
|
721
736
|
#
|
722
737
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DeleteRepository AWS API Documentation
|
723
738
|
#
|
@@ -800,7 +815,7 @@ module Aws::ECR
|
|
800
815
|
# registry, the default registry is assumed.
|
801
816
|
#
|
802
817
|
# @option params [required, String] :repository_name
|
803
|
-
#
|
818
|
+
# The repository that contains the images to describe.
|
804
819
|
#
|
805
820
|
# @option params [Array<Types::ImageIdentifier>] :image_ids
|
806
821
|
# The list of image IDs for the requested repository.
|
@@ -957,6 +972,7 @@ module Aws::ECR
|
|
957
972
|
# resp.repositories[0].repository_name #=> String
|
958
973
|
# resp.repositories[0].repository_uri #=> String
|
959
974
|
# resp.repositories[0].created_at #=> Time
|
975
|
+
# resp.repositories[0].image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
|
960
976
|
# resp.next_token #=> String
|
961
977
|
#
|
962
978
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/DescribeRepositories AWS API Documentation
|
@@ -1488,12 +1504,58 @@ module Aws::ECR
|
|
1488
1504
|
req.send_request(options)
|
1489
1505
|
end
|
1490
1506
|
|
1507
|
+
# Updates the image tag mutability settings for a repository.
|
1508
|
+
#
|
1509
|
+
# @option params [String] :registry_id
|
1510
|
+
# The AWS account ID associated with the registry that contains the
|
1511
|
+
# repository in which to update the image tag mutability settings. If
|
1512
|
+
# you do not specify a registry, the default registry is assumed.
|
1513
|
+
#
|
1514
|
+
# @option params [required, String] :repository_name
|
1515
|
+
# The name of the repository in which to update the image tag mutability
|
1516
|
+
# settings.
|
1517
|
+
#
|
1518
|
+
# @option params [required, String] :image_tag_mutability
|
1519
|
+
# The tag mutability setting for the repository. If `MUTABLE` is
|
1520
|
+
# specified, image tags can be overwritten. If `IMMUTABLE` is specified,
|
1521
|
+
# all image tags within the repository will be immutable which will
|
1522
|
+
# prevent them from being overwritten.
|
1523
|
+
#
|
1524
|
+
# @return [Types::PutImageTagMutabilityResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1525
|
+
#
|
1526
|
+
# * {Types::PutImageTagMutabilityResponse#registry_id #registry_id} => String
|
1527
|
+
# * {Types::PutImageTagMutabilityResponse#repository_name #repository_name} => String
|
1528
|
+
# * {Types::PutImageTagMutabilityResponse#image_tag_mutability #image_tag_mutability} => String
|
1529
|
+
#
|
1530
|
+
# @example Request syntax with placeholder values
|
1531
|
+
#
|
1532
|
+
# resp = client.put_image_tag_mutability({
|
1533
|
+
# registry_id: "RegistryId",
|
1534
|
+
# repository_name: "RepositoryName", # required
|
1535
|
+
# image_tag_mutability: "MUTABLE", # required, accepts MUTABLE, IMMUTABLE
|
1536
|
+
# })
|
1537
|
+
#
|
1538
|
+
# @example Response structure
|
1539
|
+
#
|
1540
|
+
# resp.registry_id #=> String
|
1541
|
+
# resp.repository_name #=> String
|
1542
|
+
# resp.image_tag_mutability #=> String, one of "MUTABLE", "IMMUTABLE"
|
1543
|
+
#
|
1544
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageTagMutability AWS API Documentation
|
1545
|
+
#
|
1546
|
+
# @overload put_image_tag_mutability(params = {})
|
1547
|
+
# @param [Hash] params ({})
|
1548
|
+
def put_image_tag_mutability(params = {}, options = {})
|
1549
|
+
req = build_request(:put_image_tag_mutability, params)
|
1550
|
+
req.send_request(options)
|
1551
|
+
end
|
1552
|
+
|
1491
1553
|
# Creates or updates a lifecycle policy. For information about lifecycle
|
1492
1554
|
# policy syntax, see [Lifecycle Policy Template][1].
|
1493
1555
|
#
|
1494
1556
|
#
|
1495
1557
|
#
|
1496
|
-
# [1]:
|
1558
|
+
# [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/LifecyclePolicies.html
|
1497
1559
|
#
|
1498
1560
|
# @option params [String] :registry_id
|
1499
1561
|
# The AWS account ID associated with the registry that contains the
|
@@ -1536,7 +1598,12 @@ module Aws::ECR
|
|
1536
1598
|
end
|
1537
1599
|
|
1538
1600
|
# Applies a repository policy on a specified repository to control
|
1539
|
-
# access permissions.
|
1601
|
+
# access permissions. For more information, see [Amazon ECR Repository
|
1602
|
+
# Policies][1] in the *Amazon Elastic Container Registry User Guide*.
|
1603
|
+
#
|
1604
|
+
#
|
1605
|
+
#
|
1606
|
+
# [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicies.html
|
1540
1607
|
#
|
1541
1608
|
# @option params [String] :registry_id
|
1542
1609
|
# The AWS account ID associated with the registry that contains the
|
@@ -1547,7 +1614,13 @@ module Aws::ECR
|
|
1547
1614
|
# The name of the repository to receive the policy.
|
1548
1615
|
#
|
1549
1616
|
# @option params [required, String] :policy_text
|
1550
|
-
# The JSON repository policy text to apply to the repository.
|
1617
|
+
# The JSON repository policy text to apply to the repository. For more
|
1618
|
+
# information, see [Amazon ECR Repository Policy Examples][1] in the
|
1619
|
+
# *Amazon Elastic Container Registry User Guide*.
|
1620
|
+
#
|
1621
|
+
#
|
1622
|
+
#
|
1623
|
+
# [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html
|
1551
1624
|
#
|
1552
1625
|
# @option params [Boolean] :force
|
1553
1626
|
# If the policy you are attempting to set on a repository policy would
|
@@ -1772,7 +1845,7 @@ module Aws::ECR
|
|
1772
1845
|
params: params,
|
1773
1846
|
config: config)
|
1774
1847
|
context[:gem_name] = 'aws-sdk-ecr'
|
1775
|
-
context[:gem_version] = '1.
|
1848
|
+
context[:gem_version] = '1.20.0'
|
1776
1849
|
Seahorse::Client::Request.new(handlers, context)
|
1777
1850
|
end
|
1778
1851
|
|
@@ -73,7 +73,9 @@ module Aws::ECR
|
|
73
73
|
ImageNotFoundException = Shapes::StructureShape.new(name: 'ImageNotFoundException')
|
74
74
|
ImageSizeInBytes = Shapes::IntegerShape.new(name: 'ImageSizeInBytes')
|
75
75
|
ImageTag = Shapes::StringShape.new(name: 'ImageTag')
|
76
|
+
ImageTagAlreadyExistsException = Shapes::StructureShape.new(name: 'ImageTagAlreadyExistsException')
|
76
77
|
ImageTagList = Shapes::ListShape.new(name: 'ImageTagList')
|
78
|
+
ImageTagMutability = Shapes::StringShape.new(name: 'ImageTagMutability')
|
77
79
|
InitiateLayerUploadRequest = Shapes::StructureShape.new(name: 'InitiateLayerUploadRequest')
|
78
80
|
InitiateLayerUploadResponse = Shapes::StructureShape.new(name: 'InitiateLayerUploadResponse')
|
79
81
|
InvalidLayerException = Shapes::StructureShape.new(name: 'InvalidLayerException')
|
@@ -122,6 +124,8 @@ module Aws::ECR
|
|
122
124
|
PushTimestamp = Shapes::TimestampShape.new(name: 'PushTimestamp')
|
123
125
|
PutImageRequest = Shapes::StructureShape.new(name: 'PutImageRequest')
|
124
126
|
PutImageResponse = Shapes::StructureShape.new(name: 'PutImageResponse')
|
127
|
+
PutImageTagMutabilityRequest = Shapes::StructureShape.new(name: 'PutImageTagMutabilityRequest')
|
128
|
+
PutImageTagMutabilityResponse = Shapes::StructureShape.new(name: 'PutImageTagMutabilityResponse')
|
125
129
|
PutLifecyclePolicyRequest = Shapes::StructureShape.new(name: 'PutLifecyclePolicyRequest')
|
126
130
|
PutLifecyclePolicyResponse = Shapes::StructureShape.new(name: 'PutLifecyclePolicyResponse')
|
127
131
|
RegistryId = Shapes::StringShape.new(name: 'RegistryId')
|
@@ -207,6 +211,7 @@ module Aws::ECR
|
|
207
211
|
|
208
212
|
CreateRepositoryRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
209
213
|
CreateRepositoryRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
|
214
|
+
CreateRepositoryRequest.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
|
210
215
|
CreateRepositoryRequest.struct_class = Types::CreateRepositoryRequest
|
211
216
|
|
212
217
|
CreateRepositoryResponse.add_member(:repository, Shapes::ShapeRef.new(shape: Repository, location_name: "repository"))
|
@@ -357,6 +362,9 @@ module Aws::ECR
|
|
357
362
|
ImageNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
358
363
|
ImageNotFoundException.struct_class = Types::ImageNotFoundException
|
359
364
|
|
365
|
+
ImageTagAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
366
|
+
ImageTagAlreadyExistsException.struct_class = Types::ImageTagAlreadyExistsException
|
367
|
+
|
360
368
|
ImageTagList.member = Shapes::ShapeRef.new(shape: ImageTag)
|
361
369
|
|
362
370
|
InitiateLayerUploadRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
@@ -473,6 +481,16 @@ module Aws::ECR
|
|
473
481
|
PutImageResponse.add_member(:image, Shapes::ShapeRef.new(shape: Image, location_name: "image"))
|
474
482
|
PutImageResponse.struct_class = Types::PutImageResponse
|
475
483
|
|
484
|
+
PutImageTagMutabilityRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
485
|
+
PutImageTagMutabilityRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
486
|
+
PutImageTagMutabilityRequest.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, required: true, location_name: "imageTagMutability"))
|
487
|
+
PutImageTagMutabilityRequest.struct_class = Types::PutImageTagMutabilityRequest
|
488
|
+
|
489
|
+
PutImageTagMutabilityResponse.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
490
|
+
PutImageTagMutabilityResponse.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
|
491
|
+
PutImageTagMutabilityResponse.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
|
492
|
+
PutImageTagMutabilityResponse.struct_class = Types::PutImageTagMutabilityResponse
|
493
|
+
|
476
494
|
PutLifecyclePolicyRequest.add_member(:registry_id, Shapes::ShapeRef.new(shape: RegistryId, location_name: "registryId"))
|
477
495
|
PutLifecyclePolicyRequest.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
478
496
|
PutLifecyclePolicyRequest.add_member(:lifecycle_policy_text, Shapes::ShapeRef.new(shape: LifecyclePolicyText, required: true, location_name: "lifecyclePolicyText"))
|
@@ -488,6 +506,7 @@ module Aws::ECR
|
|
488
506
|
Repository.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
|
489
507
|
Repository.add_member(:repository_uri, Shapes::ShapeRef.new(shape: Url, location_name: "repositoryUri"))
|
490
508
|
Repository.add_member(:created_at, Shapes::ShapeRef.new(shape: CreationTimestamp, location_name: "createdAt"))
|
509
|
+
Repository.add_member(:image_tag_mutability, Shapes::ShapeRef.new(shape: ImageTagMutability, location_name: "imageTagMutability"))
|
491
510
|
Repository.struct_class = Types::Repository
|
492
511
|
|
493
512
|
RepositoryAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
|
@@ -835,6 +854,18 @@ module Aws::ECR
|
|
835
854
|
o.errors << Shapes::ShapeRef.new(shape: ImageAlreadyExistsException)
|
836
855
|
o.errors << Shapes::ShapeRef.new(shape: LayersNotFoundException)
|
837
856
|
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
857
|
+
o.errors << Shapes::ShapeRef.new(shape: ImageTagAlreadyExistsException)
|
858
|
+
end)
|
859
|
+
|
860
|
+
api.add_operation(:put_image_tag_mutability, Seahorse::Model::Operation.new.tap do |o|
|
861
|
+
o.name = "PutImageTagMutability"
|
862
|
+
o.http_method = "POST"
|
863
|
+
o.http_request_uri = "/"
|
864
|
+
o.input = Shapes::ShapeRef.new(shape: PutImageTagMutabilityRequest)
|
865
|
+
o.output = Shapes::ShapeRef.new(shape: PutImageTagMutabilityResponse)
|
866
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
867
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
868
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNotFoundException)
|
838
869
|
end)
|
839
870
|
|
840
871
|
api.add_operation(:put_lifecycle_policy, Seahorse::Model::Operation.new.tap do |o|
|
data/lib/aws-sdk-ecr/errors.rb
CHANGED
@@ -58,6 +58,22 @@ module Aws::ECR
|
|
58
58
|
|
59
59
|
end
|
60
60
|
|
61
|
+
class ImageTagAlreadyExistsException < ServiceError
|
62
|
+
|
63
|
+
# @param [Seahorse::Client::RequestContext] context
|
64
|
+
# @param [String] message
|
65
|
+
# @param [Aws::ECR::Types::ImageTagAlreadyExistsException] data
|
66
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
67
|
+
super(context, message, data)
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [String]
|
71
|
+
def message
|
72
|
+
@message || @data[:message]
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
61
77
|
class InvalidLayerException < ServiceError
|
62
78
|
|
63
79
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-ecr/types.rb
CHANGED
@@ -288,6 +288,7 @@ module Aws::ECR
|
|
288
288
|
# value: "TagValue",
|
289
289
|
# },
|
290
290
|
# ],
|
291
|
+
# image_tag_mutability: "MUTABLE", # accepts MUTABLE, IMMUTABLE
|
291
292
|
# }
|
292
293
|
#
|
293
294
|
# @!attribute [rw] repository_name
|
@@ -298,13 +299,27 @@ module Aws::ECR
|
|
298
299
|
# @return [String]
|
299
300
|
#
|
300
301
|
# @!attribute [rw] tags
|
302
|
+
# The metadata that you apply to the repository to help you categorize
|
303
|
+
# and organize them. Each tag consists of a key and an optional value,
|
304
|
+
# both of which you define. Tag keys can have a maximum character
|
305
|
+
# length of 128 characters, and tag values can have a maximum length
|
306
|
+
# of 256 characters.
|
301
307
|
# @return [Array<Types::Tag>]
|
302
308
|
#
|
309
|
+
# @!attribute [rw] image_tag_mutability
|
310
|
+
# The tag mutability setting for the repository. If this parameter is
|
311
|
+
# omitted, the default setting of `MUTABLE` will be used which will
|
312
|
+
# allow image tags to be overwritten. If `IMMUTABLE` is specified, all
|
313
|
+
# image tags within the repository will be immutable which will
|
314
|
+
# prevent them from being overwritten.
|
315
|
+
# @return [String]
|
316
|
+
#
|
303
317
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/CreateRepositoryRequest AWS API Documentation
|
304
318
|
#
|
305
319
|
class CreateRepositoryRequest < Struct.new(
|
306
320
|
:repository_name,
|
307
|
-
:tags
|
321
|
+
:tags,
|
322
|
+
:image_tag_mutability)
|
308
323
|
include Aws::Structure
|
309
324
|
end
|
310
325
|
|
@@ -509,7 +524,7 @@ module Aws::ECR
|
|
509
524
|
# @return [String]
|
510
525
|
#
|
511
526
|
# @!attribute [rw] repository_name
|
512
|
-
#
|
527
|
+
# The repository that contains the images to describe.
|
513
528
|
# @return [String]
|
514
529
|
#
|
515
530
|
# @!attribute [rw] image_ids
|
@@ -1121,6 +1136,19 @@ module Aws::ECR
|
|
1121
1136
|
include Aws::Structure
|
1122
1137
|
end
|
1123
1138
|
|
1139
|
+
# The specified image is tagged with a tag that already exists. The
|
1140
|
+
# repository is configured for tag immutability.
|
1141
|
+
#
|
1142
|
+
# @!attribute [rw] message
|
1143
|
+
# @return [String]
|
1144
|
+
#
|
1145
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/ImageTagAlreadyExistsException AWS API Documentation
|
1146
|
+
#
|
1147
|
+
class ImageTagAlreadyExistsException < Struct.new(
|
1148
|
+
:message)
|
1149
|
+
include Aws::Structure
|
1150
|
+
end
|
1151
|
+
|
1124
1152
|
# @note When making an API call, you may pass InitiateLayerUploadRequest
|
1125
1153
|
# data as a hash:
|
1126
1154
|
#
|
@@ -1474,7 +1502,7 @@ module Aws::ECR
|
|
1474
1502
|
#
|
1475
1503
|
#
|
1476
1504
|
#
|
1477
|
-
# [1]:
|
1505
|
+
# [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/service_limits.html
|
1478
1506
|
#
|
1479
1507
|
# @!attribute [rw] message
|
1480
1508
|
# The error message associated with the exception.
|
@@ -1673,6 +1701,63 @@ module Aws::ECR
|
|
1673
1701
|
include Aws::Structure
|
1674
1702
|
end
|
1675
1703
|
|
1704
|
+
# @note When making an API call, you may pass PutImageTagMutabilityRequest
|
1705
|
+
# data as a hash:
|
1706
|
+
#
|
1707
|
+
# {
|
1708
|
+
# registry_id: "RegistryId",
|
1709
|
+
# repository_name: "RepositoryName", # required
|
1710
|
+
# image_tag_mutability: "MUTABLE", # required, accepts MUTABLE, IMMUTABLE
|
1711
|
+
# }
|
1712
|
+
#
|
1713
|
+
# @!attribute [rw] registry_id
|
1714
|
+
# The AWS account ID associated with the registry that contains the
|
1715
|
+
# repository in which to update the image tag mutability settings. If
|
1716
|
+
# you do not specify a registry, the default registry is assumed.
|
1717
|
+
# @return [String]
|
1718
|
+
#
|
1719
|
+
# @!attribute [rw] repository_name
|
1720
|
+
# The name of the repository in which to update the image tag
|
1721
|
+
# mutability settings.
|
1722
|
+
# @return [String]
|
1723
|
+
#
|
1724
|
+
# @!attribute [rw] image_tag_mutability
|
1725
|
+
# The tag mutability setting for the repository. If `MUTABLE` is
|
1726
|
+
# specified, image tags can be overwritten. If `IMMUTABLE` is
|
1727
|
+
# specified, all image tags within the repository will be immutable
|
1728
|
+
# which will prevent them from being overwritten.
|
1729
|
+
# @return [String]
|
1730
|
+
#
|
1731
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageTagMutabilityRequest AWS API Documentation
|
1732
|
+
#
|
1733
|
+
class PutImageTagMutabilityRequest < Struct.new(
|
1734
|
+
:registry_id,
|
1735
|
+
:repository_name,
|
1736
|
+
:image_tag_mutability)
|
1737
|
+
include Aws::Structure
|
1738
|
+
end
|
1739
|
+
|
1740
|
+
# @!attribute [rw] registry_id
|
1741
|
+
# The registry ID associated with the request.
|
1742
|
+
# @return [String]
|
1743
|
+
#
|
1744
|
+
# @!attribute [rw] repository_name
|
1745
|
+
# The repository name associated with the request.
|
1746
|
+
# @return [String]
|
1747
|
+
#
|
1748
|
+
# @!attribute [rw] image_tag_mutability
|
1749
|
+
# The image tag mutability setting for the repository.
|
1750
|
+
# @return [String]
|
1751
|
+
#
|
1752
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/PutImageTagMutabilityResponse AWS API Documentation
|
1753
|
+
#
|
1754
|
+
class PutImageTagMutabilityResponse < Struct.new(
|
1755
|
+
:registry_id,
|
1756
|
+
:repository_name,
|
1757
|
+
:image_tag_mutability)
|
1758
|
+
include Aws::Structure
|
1759
|
+
end
|
1760
|
+
|
1676
1761
|
# @note When making an API call, you may pass PutLifecyclePolicyRequest
|
1677
1762
|
# data as a hash:
|
1678
1763
|
#
|
@@ -1755,6 +1840,10 @@ module Aws::ECR
|
|
1755
1840
|
# was created.
|
1756
1841
|
# @return [Time]
|
1757
1842
|
#
|
1843
|
+
# @!attribute [rw] image_tag_mutability
|
1844
|
+
# The tag mutability setting for the repository.
|
1845
|
+
# @return [String]
|
1846
|
+
#
|
1758
1847
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecr-2015-09-21/Repository AWS API Documentation
|
1759
1848
|
#
|
1760
1849
|
class Repository < Struct.new(
|
@@ -1762,7 +1851,8 @@ module Aws::ECR
|
|
1762
1851
|
:registry_id,
|
1763
1852
|
:repository_name,
|
1764
1853
|
:repository_uri,
|
1765
|
-
:created_at
|
1854
|
+
:created_at,
|
1855
|
+
:image_tag_mutability)
|
1766
1856
|
include Aws::Structure
|
1767
1857
|
end
|
1768
1858
|
|
@@ -1857,7 +1947,13 @@ module Aws::ECR
|
|
1857
1947
|
# @return [String]
|
1858
1948
|
#
|
1859
1949
|
# @!attribute [rw] policy_text
|
1860
|
-
# The JSON repository policy text to apply to the repository.
|
1950
|
+
# The JSON repository policy text to apply to the repository. For more
|
1951
|
+
# information, see [Amazon ECR Repository Policy Examples][1] in the
|
1952
|
+
# *Amazon Elastic Container Registry User Guide*.
|
1953
|
+
#
|
1954
|
+
#
|
1955
|
+
#
|
1956
|
+
# [1]: https://docs.aws.amazon.com/AmazonECR/latest/userguide/RepositoryPolicyExamples.html
|
1861
1957
|
# @return [String]
|
1862
1958
|
#
|
1863
1959
|
# @!attribute [rw] force
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ecr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.20.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: 2019-07-
|
11
|
+
date: 2019-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.61.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.61.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|