Skip to content

Commit 56e1ac9

Browse files
Update generated code (#1741)
* update generated code * Update src/Service/StepFunctions/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent 40c23d9 commit 56e1ac9

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: CreateRepository API now throws OperationNotAllowedException when the account has been restricted from creating a repository.
8+
59
## 1.1.2
610

711
### Changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "1.1-dev"
30+
"dev-master": "1.2-dev"
3131
}
3232
}
3333
}

src/CodeCommitClient.php

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
use AsyncAws\CodeCommit\Exception\InvalidTagsMapException;
4242
use AsyncAws\CodeCommit\Exception\MaximumBranchesExceededException;
4343
use AsyncAws\CodeCommit\Exception\MaximumRepositoryTriggersExceededException;
44+
use AsyncAws\CodeCommit\Exception\OperationNotAllowedException;
4445
use AsyncAws\CodeCommit\Exception\PathDoesNotExistException;
4546
use AsyncAws\CodeCommit\Exception\RepositoryDoesNotExistException;
4647
use AsyncAws\CodeCommit\Exception\RepositoryLimitExceededException;
@@ -97,6 +98,7 @@ class CodeCommitClient extends AbstractApi
9798
* @throws InvalidRepositoryNameException
9899
* @throws InvalidRepositoryDescriptionException
99100
* @throws RepositoryLimitExceededException
101+
* @throws OperationNotAllowedException
100102
* @throws EncryptionIntegrityChecksFailedException
101103
* @throws EncryptionKeyAccessDeniedException
102104
* @throws EncryptionKeyDisabledException
@@ -118,6 +120,7 @@ public function createRepository($input): CreateRepositoryOutput
118120
'InvalidRepositoryNameException' => InvalidRepositoryNameException::class,
119121
'InvalidRepositoryDescriptionException' => InvalidRepositoryDescriptionException::class,
120122
'RepositoryLimitExceededException' => RepositoryLimitExceededException::class,
123+
'OperationNotAllowedException' => OperationNotAllowedException::class,
121124
'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class,
122125
'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class,
123126
'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\CodeCommit\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The requested action is not allowed.
9+
*/
10+
final class OperationNotAllowedException extends ClientException
11+
{
12+
}

src/Input/CreateRepositoryInput.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final class CreateRepositoryInput extends Input
5454
*
5555
* If no key is specified, the default `aws/codecommit` Amazon Web Services managed key is used.
5656
*
57-
* [^1]: https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId
57+
* [^1]: https://docs.aws.amazon.com/kms/latest/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId
5858
*
5959
* @var string|null
6060
*/

0 commit comments

Comments
 (0)