|
9 | 9 | final class StateReasonCode |
10 | 10 | { |
11 | 11 | public const CREATING = 'Creating'; |
| 12 | + public const DISABLED_KMSKEY = 'DisabledKMSKey'; |
| 13 | + public const EFSIOERROR = 'EFSIOError'; |
| 14 | + public const EFSMOUNT_CONNECTIVITY_ERROR = 'EFSMountConnectivityError'; |
| 15 | + public const EFSMOUNT_FAILURE = 'EFSMountFailure'; |
| 16 | + public const EFSMOUNT_TIMEOUT = 'EFSMountTimeout'; |
12 | 17 | public const ENI_LIMIT_EXCEEDED = 'EniLimitExceeded'; |
| 18 | + public const FUNCTION_ERROR = 'FunctionError'; |
13 | 19 | public const IDLE = 'Idle'; |
14 | 20 | public const IMAGE_ACCESS_DENIED = 'ImageAccessDenied'; |
15 | 21 | public const IMAGE_DELETED = 'ImageDeleted'; |
16 | 22 | public const INSUFFICIENT_ROLE_PERMISSIONS = 'InsufficientRolePermissions'; |
17 | 23 | public const INTERNAL_ERROR = 'InternalError'; |
18 | 24 | public const INVALID_CONFIGURATION = 'InvalidConfiguration'; |
19 | 25 | public const INVALID_IMAGE = 'InvalidImage'; |
| 26 | + public const INVALID_RUNTIME = 'InvalidRuntime'; |
20 | 27 | public const INVALID_SECURITY_GROUP = 'InvalidSecurityGroup'; |
| 28 | + public const INVALID_STATE_KMSKEY = 'InvalidStateKMSKey'; |
21 | 29 | public const INVALID_SUBNET = 'InvalidSubnet'; |
| 30 | + public const INVALID_ZIP_FILE_EXCEPTION = 'InvalidZipFileException'; |
| 31 | + public const KMSKEY_ACCESS_DENIED = 'KMSKeyAccessDenied'; |
| 32 | + public const KMSKEY_NOT_FOUND = 'KMSKeyNotFound'; |
22 | 33 | public const RESTORING = 'Restoring'; |
23 | 34 | public const SUBNET_OUT_OF_IPADDRESSES = 'SubnetOutOfIPAddresses'; |
24 | 35 |
|
25 | 36 | public static function exists(string $value): bool |
26 | 37 | { |
27 | 38 | return isset([ |
28 | 39 | self::CREATING => true, |
| 40 | + self::DISABLED_KMSKEY => true, |
| 41 | + self::EFSIOERROR => true, |
| 42 | + self::EFSMOUNT_CONNECTIVITY_ERROR => true, |
| 43 | + self::EFSMOUNT_FAILURE => true, |
| 44 | + self::EFSMOUNT_TIMEOUT => true, |
29 | 45 | self::ENI_LIMIT_EXCEEDED => true, |
| 46 | + self::FUNCTION_ERROR => true, |
30 | 47 | self::IDLE => true, |
31 | 48 | self::IMAGE_ACCESS_DENIED => true, |
32 | 49 | self::IMAGE_DELETED => true, |
33 | 50 | self::INSUFFICIENT_ROLE_PERMISSIONS => true, |
34 | 51 | self::INTERNAL_ERROR => true, |
35 | 52 | self::INVALID_CONFIGURATION => true, |
36 | 53 | self::INVALID_IMAGE => true, |
| 54 | + self::INVALID_RUNTIME => true, |
37 | 55 | self::INVALID_SECURITY_GROUP => true, |
| 56 | + self::INVALID_STATE_KMSKEY => true, |
38 | 57 | self::INVALID_SUBNET => true, |
| 58 | + self::INVALID_ZIP_FILE_EXCEPTION => true, |
| 59 | + self::KMSKEY_ACCESS_DENIED => true, |
| 60 | + self::KMSKEY_NOT_FOUND => true, |
39 | 61 | self::RESTORING => true, |
40 | 62 | self::SUBNET_OUT_OF_IPADDRESSES => true, |
41 | 63 | ][$value]); |
|
0 commit comments