aws-sdk-codecommit 1.62.0 → 1.64.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-codecommit/client.rb +71 -1
- data/lib/aws-sdk-codecommit/client_api.rb +56 -0
- data/lib/aws-sdk-codecommit/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-codecommit/endpoints.rb +14 -0
- data/lib/aws-sdk-codecommit/errors.rb +33 -0
- data/lib/aws-sdk-codecommit/plugins/endpoints.rb +3 -0
- data/lib/aws-sdk-codecommit/types.rb +132 -3
- data/lib/aws-sdk-codecommit.rb +1 -1
- data/sig/client.rbs +1268 -0
- data/sig/errors.rbs +392 -0
- data/sig/resource.rbs +80 -0
- data/sig/types.rbs +2074 -0
- data/sig/waiters.rbs +13 -0
- metadata +13 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fe0dc0c2616158a6cf81eefd75742220ed1259af367d38d6b66dc913098275e
|
4
|
+
data.tar.gz: 585e917fe0518d35d39296ae047062f28ccb8ef7590e5d54c64fc1e85bbccd84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a19843535a41be8e72e28019fac14d093f6d24f8c7ed2dba9fdc7e2b37e362daec363ff74e28d0c7dc7d1a8e1631b5b0fca060b2656f3f4193ca2e8543ab6c2
|
7
|
+
data.tar.gz: 465342644fe37a29aa68794099419d099f8fe00c5e561f051db74f3c384fea45f9586996c00fca99791a484f13c5a4d97445e56884f999361f9179ce9a1d7ab7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.64.0 (2024-01-26)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.63.0 (2023-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - AWS CodeCommit now supports customer managed keys from AWS Key Management Service. UpdateRepositoryEncryptionKey is added for updating the key configuration. CreateRepository, GetRepository, BatchGetRepositories are updated with new input or output parameters.
|
13
|
+
|
4
14
|
1.62.0 (2023-11-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.64.0
|
@@ -722,6 +722,7 @@ module Aws::CodeCommit
|
|
722
722
|
#
|
723
723
|
# * {Types::BatchGetRepositoriesOutput#repositories #repositories} => Array<Types::RepositoryMetadata>
|
724
724
|
# * {Types::BatchGetRepositoriesOutput#repositories_not_found #repositories_not_found} => Array<String>
|
725
|
+
# * {Types::BatchGetRepositoriesOutput#errors #errors} => Array<Types::BatchGetRepositoriesError>
|
725
726
|
#
|
726
727
|
# @example Request syntax with placeholder values
|
727
728
|
#
|
@@ -742,8 +743,14 @@ module Aws::CodeCommit
|
|
742
743
|
# resp.repositories[0].clone_url_http #=> String
|
743
744
|
# resp.repositories[0].clone_url_ssh #=> String
|
744
745
|
# resp.repositories[0].arn #=> String
|
746
|
+
# resp.repositories[0].kms_key_id #=> String
|
745
747
|
# resp.repositories_not_found #=> Array
|
746
748
|
# resp.repositories_not_found[0] #=> String
|
749
|
+
# resp.errors #=> Array
|
750
|
+
# resp.errors[0].repository_id #=> String
|
751
|
+
# resp.errors[0].repository_name #=> String
|
752
|
+
# resp.errors[0].error_code #=> String, one of "EncryptionIntegrityChecksFailedException", "EncryptionKeyAccessDeniedException", "EncryptionKeyDisabledException", "EncryptionKeyNotFoundException", "EncryptionKeyUnavailableException", "RepositoryDoesNotExistException"
|
753
|
+
# resp.errors[0].error_message #=> String
|
747
754
|
#
|
748
755
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositories AWS API Documentation
|
749
756
|
#
|
@@ -1195,6 +1202,20 @@ module Aws::CodeCommit
|
|
1195
1202
|
# @option params [Hash<String,String>] :tags
|
1196
1203
|
# One or more tag key-value pairs to use when tagging this repository.
|
1197
1204
|
#
|
1205
|
+
# @option params [String] :kms_key_id
|
1206
|
+
# The ID of the encryption key. You can view the ID of an encryption key
|
1207
|
+
# in the KMS console, or use the KMS APIs to programmatically retrieve a
|
1208
|
+
# key ID. For more information about acceptable values for kmsKeyID, see
|
1209
|
+
# [KeyId][1] in the Decrypt API description in the *Key Management
|
1210
|
+
# Service API Reference*.
|
1211
|
+
#
|
1212
|
+
# If no key is specified, the default `aws/codecommit` Amazon Web
|
1213
|
+
# Services managed key is used.
|
1214
|
+
#
|
1215
|
+
#
|
1216
|
+
#
|
1217
|
+
# [1]: https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId
|
1218
|
+
#
|
1198
1219
|
# @return [Types::CreateRepositoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1199
1220
|
#
|
1200
1221
|
# * {Types::CreateRepositoryOutput#repository_metadata #repository_metadata} => Types::RepositoryMetadata
|
@@ -1207,6 +1228,7 @@ module Aws::CodeCommit
|
|
1207
1228
|
# tags: {
|
1208
1229
|
# "TagKey" => "TagValue",
|
1209
1230
|
# },
|
1231
|
+
# kms_key_id: "KmsKeyId",
|
1210
1232
|
# })
|
1211
1233
|
#
|
1212
1234
|
# @example Response structure
|
@@ -1221,6 +1243,7 @@ module Aws::CodeCommit
|
|
1221
1243
|
# resp.repository_metadata.clone_url_http #=> String
|
1222
1244
|
# resp.repository_metadata.clone_url_ssh #=> String
|
1223
1245
|
# resp.repository_metadata.arn #=> String
|
1246
|
+
# resp.repository_metadata.kms_key_id #=> String
|
1224
1247
|
#
|
1225
1248
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepository AWS API Documentation
|
1226
1249
|
#
|
@@ -2878,6 +2901,7 @@ module Aws::CodeCommit
|
|
2878
2901
|
# resp.repository_metadata.clone_url_http #=> String
|
2879
2902
|
# resp.repository_metadata.clone_url_ssh #=> String
|
2880
2903
|
# resp.repository_metadata.arn #=> String
|
2904
|
+
# resp.repository_metadata.kms_key_id #=> String
|
2881
2905
|
#
|
2882
2906
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/GetRepository AWS API Documentation
|
2883
2907
|
#
|
@@ -5004,6 +5028,52 @@ module Aws::CodeCommit
|
|
5004
5028
|
req.send_request(options)
|
5005
5029
|
end
|
5006
5030
|
|
5031
|
+
# Updates the Key Management Service encryption key used to encrypt and
|
5032
|
+
# decrypt a CodeCommit repository.
|
5033
|
+
#
|
5034
|
+
# @option params [required, String] :repository_name
|
5035
|
+
# The name of the repository for which you want to update the KMS
|
5036
|
+
# encryption key used to encrypt and decrypt the repository.
|
5037
|
+
#
|
5038
|
+
# @option params [required, String] :kms_key_id
|
5039
|
+
# The ID of the encryption key. You can view the ID of an encryption key
|
5040
|
+
# in the KMS console, or use the KMS APIs to programmatically retrieve a
|
5041
|
+
# key ID. For more information about acceptable values for keyID, see
|
5042
|
+
# [KeyId][1] in the Decrypt API description in the *Key Management
|
5043
|
+
# Service API Reference*.
|
5044
|
+
#
|
5045
|
+
#
|
5046
|
+
#
|
5047
|
+
# [1]: https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId
|
5048
|
+
#
|
5049
|
+
# @return [Types::UpdateRepositoryEncryptionKeyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5050
|
+
#
|
5051
|
+
# * {Types::UpdateRepositoryEncryptionKeyOutput#repository_id #repository_id} => String
|
5052
|
+
# * {Types::UpdateRepositoryEncryptionKeyOutput#kms_key_id #kms_key_id} => String
|
5053
|
+
# * {Types::UpdateRepositoryEncryptionKeyOutput#original_kms_key_id #original_kms_key_id} => String
|
5054
|
+
#
|
5055
|
+
# @example Request syntax with placeholder values
|
5056
|
+
#
|
5057
|
+
# resp = client.update_repository_encryption_key({
|
5058
|
+
# repository_name: "RepositoryName", # required
|
5059
|
+
# kms_key_id: "KmsKeyId", # required
|
5060
|
+
# })
|
5061
|
+
#
|
5062
|
+
# @example Response structure
|
5063
|
+
#
|
5064
|
+
# resp.repository_id #=> String
|
5065
|
+
# resp.kms_key_id #=> String
|
5066
|
+
# resp.original_kms_key_id #=> String
|
5067
|
+
#
|
5068
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryEncryptionKey AWS API Documentation
|
5069
|
+
#
|
5070
|
+
# @overload update_repository_encryption_key(params = {})
|
5071
|
+
# @param [Hash] params ({})
|
5072
|
+
def update_repository_encryption_key(params = {}, options = {})
|
5073
|
+
req = build_request(:update_repository_encryption_key, params)
|
5074
|
+
req.send_request(options)
|
5075
|
+
end
|
5076
|
+
|
5007
5077
|
# Renames a repository. The repository name must be unique across the
|
5008
5078
|
# calling Amazon Web Services account. Repository names are limited to
|
5009
5079
|
# 100 alphanumeric, dash, and underscore characters, and cannot include
|
@@ -5052,7 +5122,7 @@ module Aws::CodeCommit
|
|
5052
5122
|
params: params,
|
5053
5123
|
config: config)
|
5054
5124
|
context[:gem_name] = 'aws-sdk-codecommit'
|
5055
|
-
context[:gem_version] = '1.
|
5125
|
+
context[:gem_version] = '1.64.0'
|
5056
5126
|
Seahorse::Client::Request.new(handlers, context)
|
5057
5127
|
end
|
5058
5128
|
|
@@ -65,6 +65,9 @@ module Aws::CodeCommit
|
|
65
65
|
BatchGetCommitsErrorsList = Shapes::ListShape.new(name: 'BatchGetCommitsErrorsList')
|
66
66
|
BatchGetCommitsInput = Shapes::StructureShape.new(name: 'BatchGetCommitsInput')
|
67
67
|
BatchGetCommitsOutput = Shapes::StructureShape.new(name: 'BatchGetCommitsOutput')
|
68
|
+
BatchGetRepositoriesError = Shapes::StructureShape.new(name: 'BatchGetRepositoriesError')
|
69
|
+
BatchGetRepositoriesErrorCodeEnum = Shapes::StringShape.new(name: 'BatchGetRepositoriesErrorCodeEnum')
|
70
|
+
BatchGetRepositoriesErrorsList = Shapes::ListShape.new(name: 'BatchGetRepositoriesErrorsList')
|
68
71
|
BatchGetRepositoriesInput = Shapes::StructureShape.new(name: 'BatchGetRepositoriesInput')
|
69
72
|
BatchGetRepositoriesOutput = Shapes::StructureShape.new(name: 'BatchGetRepositoriesOutput')
|
70
73
|
BeforeCommitIdAndAfterCommitIdAreSameException = Shapes::StructureShape.new(name: 'BeforeCommitIdAndAfterCommitIdAreSameException')
|
@@ -165,7 +168,10 @@ module Aws::CodeCommit
|
|
165
168
|
EncryptionIntegrityChecksFailedException = Shapes::StructureShape.new(name: 'EncryptionIntegrityChecksFailedException')
|
166
169
|
EncryptionKeyAccessDeniedException = Shapes::StructureShape.new(name: 'EncryptionKeyAccessDeniedException')
|
167
170
|
EncryptionKeyDisabledException = Shapes::StructureShape.new(name: 'EncryptionKeyDisabledException')
|
171
|
+
EncryptionKeyInvalidIdException = Shapes::StructureShape.new(name: 'EncryptionKeyInvalidIdException')
|
172
|
+
EncryptionKeyInvalidUsageException = Shapes::StructureShape.new(name: 'EncryptionKeyInvalidUsageException')
|
168
173
|
EncryptionKeyNotFoundException = Shapes::StructureShape.new(name: 'EncryptionKeyNotFoundException')
|
174
|
+
EncryptionKeyRequiredException = Shapes::StructureShape.new(name: 'EncryptionKeyRequiredException')
|
169
175
|
EncryptionKeyUnavailableException = Shapes::StructureShape.new(name: 'EncryptionKeyUnavailableException')
|
170
176
|
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
171
177
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
@@ -311,6 +317,7 @@ module Aws::CodeCommit
|
|
311
317
|
IsMove = Shapes::BooleanShape.new(name: 'IsMove')
|
312
318
|
IsObjectTypeConflict = Shapes::BooleanShape.new(name: 'IsObjectTypeConflict')
|
313
319
|
KeepEmptyFolders = Shapes::BooleanShape.new(name: 'KeepEmptyFolders')
|
320
|
+
KmsKeyId = Shapes::StringShape.new(name: 'KmsKeyId')
|
314
321
|
LastModifiedDate = Shapes::TimestampShape.new(name: 'LastModifiedDate')
|
315
322
|
Limit = Shapes::IntegerShape.new(name: 'Limit')
|
316
323
|
LineNumber = Shapes::IntegerShape.new(name: 'LineNumber')
|
@@ -538,6 +545,8 @@ module Aws::CodeCommit
|
|
538
545
|
UpdatePullRequestTitleInput = Shapes::StructureShape.new(name: 'UpdatePullRequestTitleInput')
|
539
546
|
UpdatePullRequestTitleOutput = Shapes::StructureShape.new(name: 'UpdatePullRequestTitleOutput')
|
540
547
|
UpdateRepositoryDescriptionInput = Shapes::StructureShape.new(name: 'UpdateRepositoryDescriptionInput')
|
548
|
+
UpdateRepositoryEncryptionKeyInput = Shapes::StructureShape.new(name: 'UpdateRepositoryEncryptionKeyInput')
|
549
|
+
UpdateRepositoryEncryptionKeyOutput = Shapes::StructureShape.new(name: 'UpdateRepositoryEncryptionKeyOutput')
|
541
550
|
UpdateRepositoryNameInput = Shapes::StructureShape.new(name: 'UpdateRepositoryNameInput')
|
542
551
|
UserInfo = Shapes::StructureShape.new(name: 'UserInfo')
|
543
552
|
blob = Shapes::BlobShape.new(name: 'blob')
|
@@ -689,11 +698,20 @@ module Aws::CodeCommit
|
|
689
698
|
BatchGetCommitsOutput.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetCommitsErrorsList, location_name: "errors"))
|
690
699
|
BatchGetCommitsOutput.struct_class = Types::BatchGetCommitsOutput
|
691
700
|
|
701
|
+
BatchGetRepositoriesError.add_member(:repository_id, Shapes::ShapeRef.new(shape: RepositoryId, location_name: "repositoryId"))
|
702
|
+
BatchGetRepositoriesError.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, location_name: "repositoryName"))
|
703
|
+
BatchGetRepositoriesError.add_member(:error_code, Shapes::ShapeRef.new(shape: BatchGetRepositoriesErrorCodeEnum, location_name: "errorCode"))
|
704
|
+
BatchGetRepositoriesError.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
|
705
|
+
BatchGetRepositoriesError.struct_class = Types::BatchGetRepositoriesError
|
706
|
+
|
707
|
+
BatchGetRepositoriesErrorsList.member = Shapes::ShapeRef.new(shape: BatchGetRepositoriesError)
|
708
|
+
|
692
709
|
BatchGetRepositoriesInput.add_member(:repository_names, Shapes::ShapeRef.new(shape: RepositoryNameList, required: true, location_name: "repositoryNames"))
|
693
710
|
BatchGetRepositoriesInput.struct_class = Types::BatchGetRepositoriesInput
|
694
711
|
|
695
712
|
BatchGetRepositoriesOutput.add_member(:repositories, Shapes::ShapeRef.new(shape: RepositoryMetadataList, location_name: "repositories"))
|
696
713
|
BatchGetRepositoriesOutput.add_member(:repositories_not_found, Shapes::ShapeRef.new(shape: RepositoryNotFoundList, location_name: "repositoriesNotFound"))
|
714
|
+
BatchGetRepositoriesOutput.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetRepositoriesErrorsList, location_name: "errors"))
|
697
715
|
BatchGetRepositoriesOutput.struct_class = Types::BatchGetRepositoriesOutput
|
698
716
|
|
699
717
|
BeforeCommitIdAndAfterCommitIdAreSameException.struct_class = Types::BeforeCommitIdAndAfterCommitIdAreSameException
|
@@ -884,6 +902,7 @@ module Aws::CodeCommit
|
|
884
902
|
CreateRepositoryInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
885
903
|
CreateRepositoryInput.add_member(:repository_description, Shapes::ShapeRef.new(shape: RepositoryDescription, location_name: "repositoryDescription"))
|
886
904
|
CreateRepositoryInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagsMap, location_name: "tags"))
|
905
|
+
CreateRepositoryInput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
887
906
|
CreateRepositoryInput.struct_class = Types::CreateRepositoryInput
|
888
907
|
|
889
908
|
CreateRepositoryOutput.add_member(:repository_metadata, Shapes::ShapeRef.new(shape: RepositoryMetadata, location_name: "repositoryMetadata"))
|
@@ -1010,8 +1029,14 @@ module Aws::CodeCommit
|
|
1010
1029
|
|
1011
1030
|
EncryptionKeyDisabledException.struct_class = Types::EncryptionKeyDisabledException
|
1012
1031
|
|
1032
|
+
EncryptionKeyInvalidIdException.struct_class = Types::EncryptionKeyInvalidIdException
|
1033
|
+
|
1034
|
+
EncryptionKeyInvalidUsageException.struct_class = Types::EncryptionKeyInvalidUsageException
|
1035
|
+
|
1013
1036
|
EncryptionKeyNotFoundException.struct_class = Types::EncryptionKeyNotFoundException
|
1014
1037
|
|
1038
|
+
EncryptionKeyRequiredException.struct_class = Types::EncryptionKeyRequiredException
|
1039
|
+
|
1015
1040
|
EncryptionKeyUnavailableException.struct_class = Types::EncryptionKeyUnavailableException
|
1016
1041
|
|
1017
1042
|
EvaluatePullRequestApprovalRulesInput.add_member(:pull_request_id, Shapes::ShapeRef.new(shape: PullRequestId, required: true, location_name: "pullRequestId"))
|
@@ -1864,6 +1889,7 @@ module Aws::CodeCommit
|
|
1864
1889
|
RepositoryMetadata.add_member(:clone_url_http, Shapes::ShapeRef.new(shape: CloneUrlHttp, location_name: "cloneUrlHttp"))
|
1865
1890
|
RepositoryMetadata.add_member(:clone_url_ssh, Shapes::ShapeRef.new(shape: CloneUrlSsh, location_name: "cloneUrlSsh"))
|
1866
1891
|
RepositoryMetadata.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
|
1892
|
+
RepositoryMetadata.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
1867
1893
|
RepositoryMetadata.struct_class = Types::RepositoryMetadata
|
1868
1894
|
|
1869
1895
|
RepositoryMetadataList.member = Shapes::ShapeRef.new(shape: RepositoryMetadata)
|
@@ -2078,6 +2104,15 @@ module Aws::CodeCommit
|
|
2078
2104
|
UpdateRepositoryDescriptionInput.add_member(:repository_description, Shapes::ShapeRef.new(shape: RepositoryDescription, location_name: "repositoryDescription"))
|
2079
2105
|
UpdateRepositoryDescriptionInput.struct_class = Types::UpdateRepositoryDescriptionInput
|
2080
2106
|
|
2107
|
+
UpdateRepositoryEncryptionKeyInput.add_member(:repository_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "repositoryName"))
|
2108
|
+
UpdateRepositoryEncryptionKeyInput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, required: true, location_name: "kmsKeyId"))
|
2109
|
+
UpdateRepositoryEncryptionKeyInput.struct_class = Types::UpdateRepositoryEncryptionKeyInput
|
2110
|
+
|
2111
|
+
UpdateRepositoryEncryptionKeyOutput.add_member(:repository_id, Shapes::ShapeRef.new(shape: RepositoryId, location_name: "repositoryId"))
|
2112
|
+
UpdateRepositoryEncryptionKeyOutput.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "kmsKeyId"))
|
2113
|
+
UpdateRepositoryEncryptionKeyOutput.add_member(:original_kms_key_id, Shapes::ShapeRef.new(shape: KmsKeyId, location_name: "originalKmsKeyId"))
|
2114
|
+
UpdateRepositoryEncryptionKeyOutput.struct_class = Types::UpdateRepositoryEncryptionKeyOutput
|
2115
|
+
|
2081
2116
|
UpdateRepositoryNameInput.add_member(:old_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "oldName"))
|
2082
2117
|
UpdateRepositoryNameInput.add_member(:new_name, Shapes::ShapeRef.new(shape: RepositoryName, required: true, location_name: "newName"))
|
2083
2118
|
UpdateRepositoryNameInput.struct_class = Types::UpdateRepositoryNameInput
|
@@ -2380,6 +2415,8 @@ module Aws::CodeCommit
|
|
2380
2415
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
2381
2416
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
2382
2417
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
2418
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyInvalidIdException)
|
2419
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyInvalidUsageException)
|
2383
2420
|
o.errors << Shapes::ShapeRef.new(shape: InvalidTagsMapException)
|
2384
2421
|
o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
|
2385
2422
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSystemTagUsageException)
|
@@ -3886,6 +3923,25 @@ module Aws::CodeCommit
|
|
3886
3923
|
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
3887
3924
|
end)
|
3888
3925
|
|
3926
|
+
api.add_operation(:update_repository_encryption_key, Seahorse::Model::Operation.new.tap do |o|
|
3927
|
+
o.name = "UpdateRepositoryEncryptionKey"
|
3928
|
+
o.http_method = "POST"
|
3929
|
+
o.http_request_uri = "/"
|
3930
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateRepositoryEncryptionKeyInput)
|
3931
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateRepositoryEncryptionKeyOutput)
|
3932
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryNameRequiredException)
|
3933
|
+
o.errors << Shapes::ShapeRef.new(shape: RepositoryDoesNotExistException)
|
3934
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRepositoryNameException)
|
3935
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyRequiredException)
|
3936
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionIntegrityChecksFailedException)
|
3937
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyAccessDeniedException)
|
3938
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyInvalidIdException)
|
3939
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyInvalidUsageException)
|
3940
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyDisabledException)
|
3941
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyNotFoundException)
|
3942
|
+
o.errors << Shapes::ShapeRef.new(shape: EncryptionKeyUnavailableException)
|
3943
|
+
end)
|
3944
|
+
|
3889
3945
|
api.add_operation(:update_repository_name, Seahorse::Model::Operation.new.tap do |o|
|
3890
3946
|
o.name = "UpdateRepositoryName"
|
3891
3947
|
o.http_method = "POST"
|
@@ -32,7 +32,7 @@ module Aws::CodeCommit
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://codecommit-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -1090,6 +1090,20 @@ module Aws::CodeCommit
|
|
1090
1090
|
end
|
1091
1091
|
end
|
1092
1092
|
|
1093
|
+
class UpdateRepositoryEncryptionKey
|
1094
|
+
def self.build(context)
|
1095
|
+
unless context.config.regional_endpoint
|
1096
|
+
endpoint = context.config.endpoint.to_s
|
1097
|
+
end
|
1098
|
+
Aws::CodeCommit::EndpointParameters.new(
|
1099
|
+
region: context.config.region,
|
1100
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1101
|
+
use_fips: context.config.use_fips_endpoint,
|
1102
|
+
endpoint: endpoint,
|
1103
|
+
)
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
1093
1107
|
class UpdateRepositoryName
|
1094
1108
|
def self.build(context)
|
1095
1109
|
unless context.config.regional_endpoint
|
@@ -68,7 +68,10 @@ module Aws::CodeCommit
|
|
68
68
|
# * {EncryptionIntegrityChecksFailedException}
|
69
69
|
# * {EncryptionKeyAccessDeniedException}
|
70
70
|
# * {EncryptionKeyDisabledException}
|
71
|
+
# * {EncryptionKeyInvalidIdException}
|
72
|
+
# * {EncryptionKeyInvalidUsageException}
|
71
73
|
# * {EncryptionKeyNotFoundException}
|
74
|
+
# * {EncryptionKeyRequiredException}
|
72
75
|
# * {EncryptionKeyUnavailableException}
|
73
76
|
# * {FileContentAndSourceFileSpecifiedException}
|
74
77
|
# * {FileContentRequiredException}
|
@@ -629,6 +632,26 @@ module Aws::CodeCommit
|
|
629
632
|
end
|
630
633
|
end
|
631
634
|
|
635
|
+
class EncryptionKeyInvalidIdException < ServiceError
|
636
|
+
|
637
|
+
# @param [Seahorse::Client::RequestContext] context
|
638
|
+
# @param [String] message
|
639
|
+
# @param [Aws::CodeCommit::Types::EncryptionKeyInvalidIdException] data
|
640
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
641
|
+
super(context, message, data)
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
645
|
+
class EncryptionKeyInvalidUsageException < ServiceError
|
646
|
+
|
647
|
+
# @param [Seahorse::Client::RequestContext] context
|
648
|
+
# @param [String] message
|
649
|
+
# @param [Aws::CodeCommit::Types::EncryptionKeyInvalidUsageException] data
|
650
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
651
|
+
super(context, message, data)
|
652
|
+
end
|
653
|
+
end
|
654
|
+
|
632
655
|
class EncryptionKeyNotFoundException < ServiceError
|
633
656
|
|
634
657
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -639,6 +662,16 @@ module Aws::CodeCommit
|
|
639
662
|
end
|
640
663
|
end
|
641
664
|
|
665
|
+
class EncryptionKeyRequiredException < ServiceError
|
666
|
+
|
667
|
+
# @param [Seahorse::Client::RequestContext] context
|
668
|
+
# @param [String] message
|
669
|
+
# @param [Aws::CodeCommit::Types::EncryptionKeyRequiredException] data
|
670
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
671
|
+
super(context, message, data)
|
672
|
+
end
|
673
|
+
end
|
674
|
+
|
642
675
|
class EncryptionKeyUnavailableException < ServiceError
|
643
676
|
|
644
677
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -14,6 +14,7 @@ module Aws::CodeCommit
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::CodeCommit::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
@@ -211,6 +212,8 @@ module Aws::CodeCommit
|
|
211
212
|
Aws::CodeCommit::Endpoints::UpdatePullRequestTitle.build(context)
|
212
213
|
when :update_repository_description
|
213
214
|
Aws::CodeCommit::Endpoints::UpdateRepositoryDescription.build(context)
|
215
|
+
when :update_repository_encryption_key
|
216
|
+
Aws::CodeCommit::Endpoints::UpdateRepositoryEncryptionKey.build(context)
|
214
217
|
when :update_repository_name
|
215
218
|
Aws::CodeCommit::Endpoints::UpdateRepositoryName.build(context)
|
216
219
|
end
|
@@ -649,6 +649,38 @@ module Aws::CodeCommit
|
|
649
649
|
include Aws::Structure
|
650
650
|
end
|
651
651
|
|
652
|
+
# Returns information about errors in a BatchGetRepositories operation.
|
653
|
+
#
|
654
|
+
# @!attribute [rw] repository_id
|
655
|
+
# The ID of a repository that either could not be found or was not in
|
656
|
+
# a valid state.
|
657
|
+
# @return [String]
|
658
|
+
#
|
659
|
+
# @!attribute [rw] repository_name
|
660
|
+
# The name of a repository that either could not be found or was not
|
661
|
+
# in a valid state.
|
662
|
+
# @return [String]
|
663
|
+
#
|
664
|
+
# @!attribute [rw] error_code
|
665
|
+
# An error code that specifies the type of failure.
|
666
|
+
# @return [String]
|
667
|
+
#
|
668
|
+
# @!attribute [rw] error_message
|
669
|
+
# An error message that provides detail about why the repository
|
670
|
+
# either was not found or was not in a valid state.
|
671
|
+
# @return [String]
|
672
|
+
#
|
673
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositoriesError AWS API Documentation
|
674
|
+
#
|
675
|
+
class BatchGetRepositoriesError < Struct.new(
|
676
|
+
:repository_id,
|
677
|
+
:repository_name,
|
678
|
+
:error_code,
|
679
|
+
:error_message)
|
680
|
+
SENSITIVE = []
|
681
|
+
include Aws::Structure
|
682
|
+
end
|
683
|
+
|
652
684
|
# Represents the input of a batch get repositories operation.
|
653
685
|
#
|
654
686
|
# @!attribute [rw] repository_names
|
@@ -680,11 +712,17 @@ module Aws::CodeCommit
|
|
680
712
|
# be found.
|
681
713
|
# @return [Array<String>]
|
682
714
|
#
|
715
|
+
# @!attribute [rw] errors
|
716
|
+
# Returns information about any errors returned when attempting to
|
717
|
+
# retrieve information about the repositories.
|
718
|
+
# @return [Array<Types::BatchGetRepositoriesError>]
|
719
|
+
#
|
683
720
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/BatchGetRepositoriesOutput AWS API Documentation
|
684
721
|
#
|
685
722
|
class BatchGetRepositoriesOutput < Struct.new(
|
686
723
|
:repositories,
|
687
|
-
:repositories_not_found
|
724
|
+
:repositories_not_found,
|
725
|
+
:errors)
|
688
726
|
SENSITIVE = []
|
689
727
|
include Aws::Structure
|
690
728
|
end
|
@@ -1627,12 +1665,28 @@ module Aws::CodeCommit
|
|
1627
1665
|
# One or more tag key-value pairs to use when tagging this repository.
|
1628
1666
|
# @return [Hash<String,String>]
|
1629
1667
|
#
|
1668
|
+
# @!attribute [rw] kms_key_id
|
1669
|
+
# The ID of the encryption key. You can view the ID of an encryption
|
1670
|
+
# key in the KMS console, or use the KMS APIs to programmatically
|
1671
|
+
# retrieve a key ID. For more information about acceptable values for
|
1672
|
+
# kmsKeyID, see [KeyId][1] in the Decrypt API description in the *Key
|
1673
|
+
# Management Service API Reference*.
|
1674
|
+
#
|
1675
|
+
# If no key is specified, the default `aws/codecommit` Amazon Web
|
1676
|
+
# Services managed key is used.
|
1677
|
+
#
|
1678
|
+
#
|
1679
|
+
#
|
1680
|
+
# [1]: https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId
|
1681
|
+
# @return [String]
|
1682
|
+
#
|
1630
1683
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/CreateRepositoryInput AWS API Documentation
|
1631
1684
|
#
|
1632
1685
|
class CreateRepositoryInput < Struct.new(
|
1633
1686
|
:repository_name,
|
1634
1687
|
:repository_description,
|
1635
|
-
:tags
|
1688
|
+
:tags,
|
1689
|
+
:kms_key_id)
|
1636
1690
|
SENSITIVE = []
|
1637
1691
|
include Aws::Structure
|
1638
1692
|
end
|
@@ -2246,12 +2300,32 @@ module Aws::CodeCommit
|
|
2246
2300
|
#
|
2247
2301
|
class EncryptionKeyDisabledException < Aws::EmptyStructure; end
|
2248
2302
|
|
2303
|
+
# The Key Management Service encryption key is not valid.
|
2304
|
+
#
|
2305
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EncryptionKeyInvalidIdException AWS API Documentation
|
2306
|
+
#
|
2307
|
+
class EncryptionKeyInvalidIdException < Aws::EmptyStructure; end
|
2308
|
+
|
2309
|
+
# A KMS encryption key was used to try and encrypt or decrypt a
|
2310
|
+
# repository, but either the repository or the key was not in a valid
|
2311
|
+
# state to support the operation.
|
2312
|
+
#
|
2313
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EncryptionKeyInvalidUsageException AWS API Documentation
|
2314
|
+
#
|
2315
|
+
class EncryptionKeyInvalidUsageException < Aws::EmptyStructure; end
|
2316
|
+
|
2249
2317
|
# No encryption key was found.
|
2250
2318
|
#
|
2251
2319
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EncryptionKeyNotFoundException AWS API Documentation
|
2252
2320
|
#
|
2253
2321
|
class EncryptionKeyNotFoundException < Aws::EmptyStructure; end
|
2254
2322
|
|
2323
|
+
# A KMS encryption key ID is required but was not specified.
|
2324
|
+
#
|
2325
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EncryptionKeyRequiredException AWS API Documentation
|
2326
|
+
#
|
2327
|
+
class EncryptionKeyRequiredException < Aws::EmptyStructure; end
|
2328
|
+
|
2255
2329
|
# The encryption key is not available.
|
2256
2330
|
#
|
2257
2331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/EncryptionKeyUnavailableException AWS API Documentation
|
@@ -6193,6 +6267,11 @@ module Aws::CodeCommit
|
|
6193
6267
|
# The Amazon Resource Name (ARN) of the repository.
|
6194
6268
|
# @return [String]
|
6195
6269
|
#
|
6270
|
+
# @!attribute [rw] kms_key_id
|
6271
|
+
# The ID of the Key Management Service encryption key used to encrypt
|
6272
|
+
# and decrypt the repository.
|
6273
|
+
# @return [String]
|
6274
|
+
#
|
6196
6275
|
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/RepositoryMetadata AWS API Documentation
|
6197
6276
|
#
|
6198
6277
|
class RepositoryMetadata < Struct.new(
|
@@ -6205,7 +6284,8 @@ module Aws::CodeCommit
|
|
6205
6284
|
:creation_date,
|
6206
6285
|
:clone_url_http,
|
6207
6286
|
:clone_url_ssh,
|
6208
|
-
:arn
|
6287
|
+
:arn,
|
6288
|
+
:kms_key_id)
|
6209
6289
|
SENSITIVE = []
|
6210
6290
|
include Aws::Structure
|
6211
6291
|
end
|
@@ -7053,6 +7133,55 @@ module Aws::CodeCommit
|
|
7053
7133
|
include Aws::Structure
|
7054
7134
|
end
|
7055
7135
|
|
7136
|
+
# @!attribute [rw] repository_name
|
7137
|
+
# The name of the repository for which you want to update the KMS
|
7138
|
+
# encryption key used to encrypt and decrypt the repository.
|
7139
|
+
# @return [String]
|
7140
|
+
#
|
7141
|
+
# @!attribute [rw] kms_key_id
|
7142
|
+
# The ID of the encryption key. You can view the ID of an encryption
|
7143
|
+
# key in the KMS console, or use the KMS APIs to programmatically
|
7144
|
+
# retrieve a key ID. For more information about acceptable values for
|
7145
|
+
# keyID, see [KeyId][1] in the Decrypt API description in the *Key
|
7146
|
+
# Management Service API Reference*.
|
7147
|
+
#
|
7148
|
+
#
|
7149
|
+
#
|
7150
|
+
# [1]: https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId
|
7151
|
+
# @return [String]
|
7152
|
+
#
|
7153
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryEncryptionKeyInput AWS API Documentation
|
7154
|
+
#
|
7155
|
+
class UpdateRepositoryEncryptionKeyInput < Struct.new(
|
7156
|
+
:repository_name,
|
7157
|
+
:kms_key_id)
|
7158
|
+
SENSITIVE = []
|
7159
|
+
include Aws::Structure
|
7160
|
+
end
|
7161
|
+
|
7162
|
+
# @!attribute [rw] repository_id
|
7163
|
+
# The ID of the repository.
|
7164
|
+
# @return [String]
|
7165
|
+
#
|
7166
|
+
# @!attribute [rw] kms_key_id
|
7167
|
+
# The ID of the encryption key.
|
7168
|
+
# @return [String]
|
7169
|
+
#
|
7170
|
+
# @!attribute [rw] original_kms_key_id
|
7171
|
+
# The ID of the encryption key formerly used to encrypt and decrypt
|
7172
|
+
# the repository.
|
7173
|
+
# @return [String]
|
7174
|
+
#
|
7175
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/UpdateRepositoryEncryptionKeyOutput AWS API Documentation
|
7176
|
+
#
|
7177
|
+
class UpdateRepositoryEncryptionKeyOutput < Struct.new(
|
7178
|
+
:repository_id,
|
7179
|
+
:kms_key_id,
|
7180
|
+
:original_kms_key_id)
|
7181
|
+
SENSITIVE = []
|
7182
|
+
include Aws::Structure
|
7183
|
+
end
|
7184
|
+
|
7056
7185
|
# Represents the input of an update repository description operation.
|
7057
7186
|
#
|
7058
7187
|
# @!attribute [rw] old_name
|