-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dfbd2d
commit 147f8a2
Showing
13 changed files
with
149 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.1-dev" | ||
"dev-master": "1.2-dev" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/Service/CodeCommit/src/Exception/OperationNotAllowedException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace AsyncAws\CodeCommit\Exception; | ||
|
||
use AsyncAws\Core\Exception\Http\ClientException; | ||
|
||
/** | ||
* The requested action is not allowed. | ||
*/ | ||
final class OperationNotAllowedException extends ClientException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
|
||
## NOT RELEASED | ||
|
||
### Added | ||
|
||
- AWS api-change: TODO | ||
|
||
## 1.2.3 | ||
|
||
### Changed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "1.2-dev" | ||
"dev-master": "1.3-dev" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace AsyncAws\StepFunctions\Enum; | ||
|
||
final class KmsKeyState | ||
{ | ||
public const CREATING = 'CREATING'; | ||
public const DISABLED = 'DISABLED'; | ||
public const PENDING_DELETION = 'PENDING_DELETION'; | ||
public const PENDING_IMPORT = 'PENDING_IMPORT'; | ||
public const UNAVAILABLE = 'UNAVAILABLE'; | ||
|
||
public static function exists(string $value): bool | ||
{ | ||
return isset([ | ||
self::CREATING => true, | ||
self::DISABLED => true, | ||
self::PENDING_DELETION => true, | ||
self::PENDING_IMPORT => true, | ||
self::UNAVAILABLE => true, | ||
][$value]); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Service/StepFunctions/src/Exception/KmsAccessDeniedException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace AsyncAws\StepFunctions\Exception; | ||
|
||
use AsyncAws\Core\Exception\Http\ClientException; | ||
|
||
/** | ||
* Either your KMS key policy or API caller does not have the required permissions. | ||
*/ | ||
final class KmsAccessDeniedException extends ClientException | ||
{ | ||
} |
36 changes: 36 additions & 0 deletions
36
src/Service/StepFunctions/src/Exception/KmsInvalidStateException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace AsyncAws\StepFunctions\Exception; | ||
|
||
use AsyncAws\Core\Exception\Http\ClientException; | ||
use AsyncAws\StepFunctions\Enum\KmsKeyState; | ||
use Symfony\Contracts\HttpClient\ResponseInterface; | ||
|
||
/** | ||
* The KMS key is not in valid state, for example: Disabled or Deleted. | ||
*/ | ||
final class KmsInvalidStateException extends ClientException | ||
{ | ||
/** | ||
* Current status of the KMS; key. For example: `DISABLED`, `PENDING_DELETION`, `PENDING_IMPORT`, `UNAVAILABLE`, | ||
* `CREATING`. | ||
* | ||
* @var KmsKeyState::*|null | ||
*/ | ||
private $kmsKeyState; | ||
|
||
/** | ||
* @return KmsKeyState::*|null | ||
*/ | ||
public function getKmsKeyState(): ?string | ||
{ | ||
return $this->kmsKeyState; | ||
} | ||
|
||
protected function populateResult(ResponseInterface $response): void | ||
{ | ||
$data = $response->toArray(false); | ||
|
||
$this->kmsKeyState = isset($data['kmsKeyState']) ? (string) $data['kmsKeyState'] : null; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/Service/StepFunctions/src/Exception/KmsThrottlingException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
namespace AsyncAws\StepFunctions\Exception; | ||
|
||
use AsyncAws\Core\Exception\Http\ClientException; | ||
|
||
/** | ||
* Received when KMS returns `ThrottlingException` for a KMS call that Step Functions makes on behalf of the caller. | ||
*/ | ||
final class KmsThrottlingException extends ClientException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters