Skip to content

Commit adc7ec3

Browse files
Update generated code (#1871)
* update generated code * Update src/Service/AppSync/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <[email protected]>
1 parent f2a442b commit adc7ec3

15 files changed

+341
-15
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.342.19"
3+
"${LATEST}": "3.342.20"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/AppSync/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Rework regions configuration
8+
59
## 3.1.1
610

711
### Changed

src/Service/AppSync/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"extra": {
3030
"branch-alias": {
31-
"dev-master": "3.1-dev"
31+
"dev-master": "3.2-dev"
3232
}
3333
}
3434
}

src/Service/AppSync/src/AppSyncClient.php

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
use AsyncAws\Core\AwsError\AwsErrorFactoryInterface;
4747
use AsyncAws\Core\AwsError\JsonRestAwsErrorFactory;
4848
use AsyncAws\Core\Configuration;
49+
use AsyncAws\Core\Exception\UnsupportedRegion;
4950
use AsyncAws\Core\RequestContext;
5051

5152
class AppSyncClient extends AbstractApi
@@ -395,6 +396,40 @@ protected function getEndpointMetadata(?string $region): array
395396
}
396397

397398
switch ($region) {
399+
case 'af-south-1':
400+
case 'ap-east-1':
401+
case 'ap-northeast-1':
402+
case 'ap-northeast-2':
403+
case 'ap-northeast-3':
404+
case 'ap-south-1':
405+
case 'ap-south-2':
406+
case 'ap-southeast-1':
407+
case 'ap-southeast-2':
408+
case 'ap-southeast-3':
409+
case 'ap-southeast-4':
410+
case 'ca-central-1':
411+
case 'eu-central-1':
412+
case 'eu-central-2':
413+
case 'eu-north-1':
414+
case 'eu-south-1':
415+
case 'eu-south-2':
416+
case 'eu-west-1':
417+
case 'eu-west-2':
418+
case 'eu-west-3':
419+
case 'il-central-1':
420+
case 'me-central-1':
421+
case 'me-south-1':
422+
case 'sa-east-1':
423+
case 'us-east-1':
424+
case 'us-east-2':
425+
case 'us-west-1':
426+
case 'us-west-2':
427+
return [
428+
'endpoint' => "https://appsync.$region.amazonaws.com",
429+
'signRegion' => $region,
430+
'signService' => 'appsync',
431+
'signVersions' => ['v4'],
432+
];
398433
case 'cn-north-1':
399434
case 'cn-northwest-1':
400435
return [
@@ -405,11 +440,6 @@ protected function getEndpointMetadata(?string $region): array
405440
];
406441
}
407442

408-
return [
409-
'endpoint' => "https://appsync.$region.amazonaws.com",
410-
'signRegion' => $region,
411-
'signService' => 'appsync',
412-
'signVersions' => ['v4'],
413-
];
443+
throw new UnsupportedRegion(\sprintf('The region "%s" is not supported by "AppSync".', $region));
414444
}
415445
}

src/Service/Route53/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Added us-gov-east-1 and us-gov-west-1 as valid Latency Based Routing regions for change-resource-record-sets.
8+
59
## 2.8.0
610

711
### Added

src/Service/Route53/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "2.8-dev"
32+
"dev-master": "2.9-dev"
3333
}
3434
}
3535
}

src/Service/Route53/src/Enum/ResourceRecordSetRegion.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ final class ResourceRecordSetRegion
3636
public const SA_EAST_1 = 'sa-east-1';
3737
public const US_EAST_1 = 'us-east-1';
3838
public const US_EAST_2 = 'us-east-2';
39+
public const US_GOV_EAST_1 = 'us-gov-east-1';
40+
public const US_GOV_WEST_1 = 'us-gov-west-1';
3941
public const US_WEST_1 = 'us-west-1';
4042
public const US_WEST_2 = 'us-west-2';
4143

@@ -74,6 +76,8 @@ public static function exists(string $value): bool
7476
self::SA_EAST_1 => true,
7577
self::US_EAST_1 => true,
7678
self::US_EAST_2 => true,
79+
self::US_GOV_EAST_1 => true,
80+
self::US_GOV_WEST_1 => true,
7781
self::US_WEST_1 => true,
7882
self::US_WEST_2 => true,
7983
][$value]);

src/Service/Ses/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: This release enables customers to provide attachments in the SESv2 SendEmail and SendBulkEmail APIs.
8+
59
## 1.11.0
610

711
### Added

src/Service/Ses/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"extra": {
2929
"branch-alias": {
30-
"dev-master": "1.11-dev"
30+
"dev-master": "1.12-dev"
3131
}
3232
}
3333
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace AsyncAws\Ses\Enum;
4+
5+
final class AttachmentContentDisposition
6+
{
7+
public const ATTACHMENT = 'ATTACHMENT';
8+
public const INLINE = 'INLINE';
9+
10+
public static function exists(string $value): bool
11+
{
12+
return isset([
13+
self::ATTACHMENT => true,
14+
self::INLINE => true,
15+
][$value]);
16+
}
17+
}

0 commit comments

Comments
 (0)