Skip to content

Commit 3464c54

Browse files
authored
Add UNKNOWN_TO_SDK value to enums (#1998)
fix 1921
1 parent 591e948 commit 3464c54

52 files changed

Lines changed: 237 additions & 60 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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: Added `us-isob-west-1` region
89
- AWS api-change: Added `eusc-de-east-1` region
910

src/Enum/AttributeAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ final class AttributeAction
88
public const DELETE = 'DELETE';
99
public const PUT = 'PUT';
1010

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

src/Enum/BillingMode.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ final class BillingMode
66
{
77
public const PAY_PER_REQUEST = 'PAY_PER_REQUEST';
88
public const PROVISIONED = 'PROVISIONED';
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/ComparisonOperator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ final class ComparisonOperator
1818
public const NOT_NULL = 'NOT_NULL';
1919
public const NULL = 'NULL';
2020

21+
/**
22+
* @psalm-assert-if-true self::* $value
23+
*/
2124
public static function exists(string $value): bool
2225
{
2326
return isset([

src/Enum/ConditionalOperator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ final class ConditionalOperator
77
public const AND = 'AND';
88
public const OR = 'OR';
99

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

src/Enum/IndexStatus.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ final class IndexStatus
88
public const CREATING = 'CREATING';
99
public const DELETING = 'DELETING';
1010
public const UPDATING = 'UPDATING';
11+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
1112

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

src/Enum/KeyType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ final class KeyType
66
{
77
public const HASH = 'HASH';
88
public const RANGE = 'RANGE';
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/MultiRegionConsistency.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ final class MultiRegionConsistency
66
{
77
public const EVENTUAL = 'EVENTUAL';
88
public const STRONG = 'STRONG';
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/ProjectionType.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ final class ProjectionType
77
public const ALL = 'ALL';
88
public const INCLUDE = 'INCLUDE';
99
public const KEYS_ONLY = 'KEYS_ONLY';
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/ReplicaStatus.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ final class ReplicaStatus
1414
public const REGION_DISABLED = 'REGION_DISABLED';
1515
public const REPLICATION_NOT_AUTHORIZED = 'REPLICATION_NOT_AUTHORIZED';
1616
public const UPDATING = 'UPDATING';
17+
public const UNKNOWN_TO_SDK = 'UNKNOWN_TO_SDK';
1718

19+
/**
20+
* @psalm-assert-if-true self::* $value
21+
*/
1822
public static function exists(string $value): bool
1923
{
2024
return isset([

0 commit comments

Comments
 (0)