File tree Expand file tree Collapse file tree 7 files changed +54
-9
lines changed Expand file tree Collapse file tree 7 files changed +54
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "variables" : {
3- "${LATEST}" : " 3.342.12 "
3+ "${LATEST}" : " 3.342.13 "
44 },
55 "endpoints" : " https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json" ,
66 "services" : {
Original file line number Diff line number Diff line change 22
33## NOT RELEASED
44
5+ ### Added
6+
7+ - AWS api-change: TODO
8+
59## 2.4.0
610
711### Added
Original file line number Diff line number Diff line change 2828 },
2929 "extra" : {
3030 "branch-alias" : {
31- "dev-master" : " 2.4 -dev"
31+ "dev-master" : " 2.5 -dev"
3232 }
3333 }
3434}
Original file line number Diff line number Diff line change 66use AsyncAws \Core \AwsError \AwsErrorFactoryInterface ;
77use AsyncAws \Core \AwsError \JsonRpcAwsErrorFactory ;
88use AsyncAws \Core \Configuration ;
9+ use AsyncAws \Core \Exception \UnsupportedRegion ;
910use AsyncAws \Core \RequestContext ;
1011use AsyncAws \Core \Result ;
1112use AsyncAws \Sqs \Enum \MessageSystemAttributeName ;
@@ -890,6 +891,46 @@ protected function getEndpointMetadata(?string $region): array
890891 }
891892
892893 switch ($ region ) {
894+ case 'af-south-1 ' :
895+ case 'ap-east-1 ' :
896+ case 'ap-northeast-1 ' :
897+ case 'ap-northeast-2 ' :
898+ case 'ap-northeast-3 ' :
899+ case 'ap-south-1 ' :
900+ case 'ap-south-2 ' :
901+ case 'ap-southeast-1 ' :
902+ case 'ap-southeast-2 ' :
903+ case 'ap-southeast-3 ' :
904+ case 'ap-southeast-4 ' :
905+ case 'ap-southeast-5 ' :
906+ case 'ap-southeast-7 ' :
907+ case 'ca-central-1 ' :
908+ case 'ca-west-1 ' :
909+ case 'eu-central-1 ' :
910+ case 'eu-central-2 ' :
911+ case 'eu-north-1 ' :
912+ case 'eu-south-1 ' :
913+ case 'eu-south-2 ' :
914+ case 'eu-west-1 ' :
915+ case 'eu-west-2 ' :
916+ case 'eu-west-3 ' :
917+ case 'il-central-1 ' :
918+ case 'me-central-1 ' :
919+ case 'me-south-1 ' :
920+ case 'mx-central-1 ' :
921+ case 'sa-east-1 ' :
922+ case 'us-east-1 ' :
923+ case 'us-east-2 ' :
924+ case 'us-gov-east-1 ' :
925+ case 'us-gov-west-1 ' :
926+ case 'us-west-1 ' :
927+ case 'us-west-2 ' :
928+ return [
929+ 'endpoint ' => "https://sqs. $ region.amazonaws.com " ,
930+ 'signRegion ' => $ region ,
931+ 'signService ' => 'sqs ' ,
932+ 'signVersions ' => ['v4 ' ],
933+ ];
893934 case 'cn-north-1 ' :
894935 case 'cn-northwest-1 ' :
895936 return [
@@ -965,12 +1006,7 @@ protected function getEndpointMetadata(?string $region): array
9651006 ];
9661007 }
9671008
968- return [
969- 'endpoint ' => "https://sqs. $ region.amazonaws.com " ,
970- 'signRegion ' => $ region ,
971- 'signService ' => 'sqs ' ,
972- 'signVersions ' => ['v4 ' ],
973- ];
1009+ throw new UnsupportedRegion (\sprintf ('The region "%s" is not supported by "Sqs". ' , $ region ));
9741010 }
9751011
9761012 protected function getServiceCode (): string
Original file line number Diff line number Diff line change 22
33## NOT RELEASED
44
5+ ### Added
6+
7+ - AWS api-change: TODO
8+
59## 1.3.0
610
711### Added
Original file line number Diff line number Diff line change 2626 },
2727 "extra" : {
2828 "branch-alias" : {
29- "dev-master" : " 1.3 -dev"
29+ "dev-master" : " 1.4 -dev"
3030 }
3131 }
3232}
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ protected function getEndpointMetadata(?string $region): array
7171 case 'ap-southeast-2 ' :
7272 case 'ap-southeast-3 ' :
7373 case 'ap-southeast-4 ' :
74+ case 'ap-southeast-5 ' :
7475 case 'ca-central-1 ' :
7576 case 'ca-west-1 ' :
7677 case 'eu-central-1 ' :
You can’t perform that action at this time.
0 commit comments