Skip to content

Commit b2dd2e7

Browse files
author
AWS
committed
AWS CodeCommit Update: CreateRepository API now throws OperationNotAllowedException when the account has been restricted from creating a repository.
1 parent 0f634f5 commit b2dd2e7

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS CodeCommit",
4+
"contributor": "",
5+
"description": "CreateRepository API now throws OperationNotAllowedException when the account has been restricted from creating a repository."
6+
}

services/codecommit/src/main/resources/codegen-resources/service-2.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"endpointPrefix":"codecommit",
66
"jsonVersion":"1.1",
77
"protocol":"json",
8+
"protocols":["json"],
89
"serviceAbbreviation":"CodeCommit",
910
"serviceFullName":"AWS CodeCommit",
1011
"serviceId":"CodeCommit",
1112
"signatureVersion":"v4",
1213
"targetPrefix":"CodeCommit_20150413",
13-
"uid":"codecommit-2015-04-13"
14+
"uid":"codecommit-2015-04-13",
15+
"auth":["aws.auth#sigv4"]
1416
},
1517
"operations":{
1618
"AssociateApprovalRuleTemplateWithRepository":{
@@ -327,6 +329,7 @@
327329
{"shape":"InvalidRepositoryNameException"},
328330
{"shape":"InvalidRepositoryDescriptionException"},
329331
{"shape":"RepositoryLimitExceededException"},
332+
{"shape":"OperationNotAllowedException"},
330333
{"shape":"EncryptionIntegrityChecksFailedException"},
331334
{"shape":"EncryptionKeyAccessDeniedException"},
332335
{"shape":"EncryptionKeyDisabledException"},
@@ -3409,7 +3412,7 @@
34093412
},
34103413
"kmsKeyId":{
34113414
"shape":"KmsKeyId",
3412-
"documentation":"<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see <a href=\"https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in the <i>Key Management Service API Reference</i>.</p> <p>If no key is specified, the default <code>aws/codecommit</code> Amazon Web Services managed key is used.</p>"
3415+
"documentation":"<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see <a href=\"https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in the <i>Key Management Service API Reference</i>.</p> <p>If no key is specified, the default <code>aws/codecommit</code> Amazon Web Services managed key is used.</p>"
34133416
}
34143417
},
34153418
"documentation":"<p>Represents the input of a create repository operation.</p>"
@@ -6249,6 +6252,13 @@
62496252
},
62506253
"documentation":"<p>Information about the type of an object in a merge operation.</p>"
62516254
},
6255+
"OperationNotAllowedException":{
6256+
"type":"structure",
6257+
"members":{
6258+
},
6259+
"documentation":"<p>The requested action is not allowed.</p>",
6260+
"exception":true
6261+
},
62526262
"OrderEnum":{
62536263
"type":"string",
62546264
"enum":[
@@ -7983,7 +7993,7 @@
79837993
},
79847994
"kmsKeyId":{
79857995
"shape":"KmsKeyId",
7986-
"documentation":"<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see <a href=\"https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in the <i>Key Management Service API Reference</i>.</p>"
7996+
"documentation":"<p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for keyID, see <a href=\"https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId\">KeyId</a> in the Decrypt API description in the <i>Key Management Service API Reference</i>.</p>"
79877997
}
79887998
}
79897999
},

0 commit comments

Comments
 (0)