Skip to content

Commit 8ce56c3

Browse files
authored
Add UNKNOWN_TO_SDK value to enums (#1998)
fix 1921
1 parent 11f6121 commit 8ce56c3

34 files changed

Lines changed: 179 additions & 42 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Added
66

7+
- Add `UNKNOWN_TO_SDK` value to enums that is used when the API returns an value that is not (or not yet) known by the AsyncAws
78
- AWS api-change: Add NodeJs 24 (nodejs24.x) support to AWS Lambda.
89
- AWS api-change: Added `us-isob-west-1` region
910
- AWS api-change: Added SerializedRequestEntityTooLargeException to Lambda Invoke API

src/Enum/ApplicationLogLevel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ final class ApplicationLogLevel
1010
public const INFO = 'INFO';
1111
public const TRACE = 'TRACE';
1212
public const WARN = 'WARN';
13+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
1314

15+
/**
16+
* @psalm-assert-if-true self::* $value
17+
*/
1418
public static function exists(string $value): bool
1519
{
1620
return isset([

src/Enum/Architecture.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ final class Architecture
66
{
77
public const ARM64 = 'arm64';
88
public const X86_64 = 'x86_64';
9+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
910

11+
/**
12+
* @psalm-assert-if-true self::* $value
13+
*/
1014
public static function exists(string $value): bool
1115
{
1216
return isset([

src/Enum/FunctionVersion.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ final class FunctionVersion
66
{
77
public const ALL = 'ALL';
88

9+
/**
10+
* @psalm-assert-if-true self::* $value
11+
*/
912
public static function exists(string $value): bool
1013
{
1114
return isset([

src/Enum/InvocationType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ final class InvocationType
88
public const EVENT = 'Event';
99
public const REQUEST_RESPONSE = 'RequestResponse';
1010

11+
/**
12+
* @psalm-assert-if-true self::* $value
13+
*/
1114
public static function exists(string $value): bool
1215
{
1316
return isset([

src/Enum/LastUpdateStatus.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ final class LastUpdateStatus
77
public const FAILED = 'Failed';
88
public const IN_PROGRESS = 'InProgress';
99
public const SUCCESSFUL = 'Successful';
10+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
1011

12+
/**
13+
* @psalm-assert-if-true self::* $value
14+
*/
1115
public static function exists(string $value): bool
1216
{
1317
return isset([

src/Enum/LastUpdateStatusReasonCode.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ final class LastUpdateStatusReasonCode
3838
public const KMSKEY_NOT_FOUND = 'KMSKeyNotFound';
3939
public const SUBNET_OUT_OF_IPADDRESSES = 'SubnetOutOfIPAddresses';
4040
public const VCPU_LIMIT_EXCEEDED = 'VcpuLimitExceeded';
41+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
4142

43+
/**
44+
* @psalm-assert-if-true self::* $value
45+
*/
4246
public static function exists(string $value): bool
4347
{
4448
return isset([

src/Enum/LogFormat.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ final class LogFormat
66
{
77
public const JSON = 'JSON';
88
public const TEXT = 'Text';
9+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
910

11+
/**
12+
* @psalm-assert-if-true self::* $value
13+
*/
1014
public static function exists(string $value): bool
1115
{
1216
return isset([

src/Enum/LogType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ final class LogType
77
public const NONE = 'None';
88
public const TAIL = 'Tail';
99

10+
/**
11+
* @psalm-assert-if-true self::* $value
12+
*/
1013
public static function exists(string $value): bool
1114
{
1215
return isset([

src/Enum/PackageType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ final class PackageType
66
{
77
public const IMAGE = 'Image';
88
public const ZIP = 'Zip';
9+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
910

11+
/**
12+
* @psalm-assert-if-true self::* $value
13+
*/
1014
public static function exists(string $value): bool
1115
{
1216
return isset([

0 commit comments

Comments
 (0)