Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/CodeGenerator/src/Definition/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ public function getErrors(): array
$errors[$error['shape']] = $shape;
}

ksort($errors);

return array_values($errors);
}

Expand Down
4 changes: 4 additions & 0 deletions src/Core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- Sort exception alphabetically.

## 1.25.0

### Added
Expand Down
20 changes: 10 additions & 10 deletions src/Core/src/Sts/StsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,19 @@ class StsClient extends AbstractApi
* '@region'?: string|null,
* }|AssumeRoleRequest $input
*
* @throws ExpiredTokenException
* @throws MalformedPolicyDocumentException
* @throws PackedPolicyTooLargeException
* @throws RegionDisabledException
* @throws ExpiredTokenException
*/
public function assumeRole($input): AssumeRoleResponse
{
$input = AssumeRoleRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AssumeRole', 'region' => $input->getRegion(), 'exceptionMapping' => [
'ExpiredTokenException' => ExpiredTokenException::class,
'MalformedPolicyDocument' => MalformedPolicyDocumentException::class,
'PackedPolicyTooLarge' => PackedPolicyTooLargeException::class,
'RegionDisabledException' => RegionDisabledException::class,
'ExpiredTokenException' => ExpiredTokenException::class,
]]));

return new AssumeRoleResponse($response);
Expand Down Expand Up @@ -273,24 +273,24 @@ public function assumeRole($input): AssumeRoleResponse
* '@region'?: string|null,
* }|AssumeRoleWithWebIdentityRequest $input
*
* @throws MalformedPolicyDocumentException
* @throws PackedPolicyTooLargeException
* @throws IDPRejectedClaimException
* @throws ExpiredTokenException
* @throws IDPCommunicationErrorException
* @throws IDPRejectedClaimException
* @throws InvalidIdentityTokenException
* @throws ExpiredTokenException
* @throws MalformedPolicyDocumentException
* @throws PackedPolicyTooLargeException
* @throws RegionDisabledException
*/
public function assumeRoleWithWebIdentity($input): AssumeRoleWithWebIdentityResponse
{
$input = AssumeRoleWithWebIdentityRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AssumeRoleWithWebIdentity', 'region' => $input->getRegion(), 'exceptionMapping' => [
'MalformedPolicyDocument' => MalformedPolicyDocumentException::class,
'PackedPolicyTooLarge' => PackedPolicyTooLargeException::class,
'IDPRejectedClaim' => IDPRejectedClaimException::class,
'ExpiredTokenException' => ExpiredTokenException::class,
'IDPCommunicationError' => IDPCommunicationErrorException::class,
'IDPRejectedClaim' => IDPRejectedClaimException::class,
'InvalidIdentityToken' => InvalidIdentityTokenException::class,
'ExpiredTokenException' => ExpiredTokenException::class,
'MalformedPolicyDocument' => MalformedPolicyDocumentException::class,
'PackedPolicyTooLarge' => PackedPolicyTooLargeException::class,
'RegionDisabledException' => RegionDisabledException::class,
]]));

Expand Down
4 changes: 4 additions & 0 deletions src/Service/AppSync/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- AWS api-change: Rework regions configuration

### Changed

- Sort exception alphabetically.

## 3.1.1

### Changed
Expand Down
56 changes: 28 additions & 28 deletions src/Service/AppSync/src/AppSyncClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,21 @@ class AppSyncClient extends AbstractApi
* '@region'?: string|null,
* }|CreateResolverRequest $input
*
* @throws BadRequestException
* @throws ConcurrentModificationException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
* @throws BadRequestException
*/
public function createResolver($input): CreateResolverResponse
{
$input = CreateResolverRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateResolver', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'ConcurrentModificationException' => ConcurrentModificationException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
'BadRequestException' => BadRequestException::class,
]]));

return new CreateResolverResponse($response);
Expand All @@ -111,21 +111,21 @@ public function createResolver($input): CreateResolverResponse
* '@region'?: string|null,
* }|DeleteResolverRequest $input
*
* @throws BadRequestException
* @throws ConcurrentModificationException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
* @throws BadRequestException
*/
public function deleteResolver($input): DeleteResolverResponse
{
$input = DeleteResolverRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteResolver', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'ConcurrentModificationException' => ConcurrentModificationException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
'BadRequestException' => BadRequestException::class,
]]));

return new DeleteResolverResponse($response);
Expand All @@ -143,18 +143,18 @@ public function deleteResolver($input): DeleteResolverResponse
* }|GetSchemaCreationStatusRequest $input
*
* @throws BadRequestException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
*/
public function getSchemaCreationStatus($input): GetSchemaCreationStatusResponse
{
$input = GetSchemaCreationStatusRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetSchemaCreationStatus', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
]]));

return new GetSchemaCreationStatusResponse($response);
Expand All @@ -178,18 +178,18 @@ public function getSchemaCreationStatus($input): GetSchemaCreationStatusResponse
* }|ListApiKeysRequest $input
*
* @throws BadRequestException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
*/
public function listApiKeys($input): ListApiKeysResponse
{
$input = ListApiKeysRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListApiKeys', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
]]));

return new ListApiKeysResponse($response, $this, $input);
Expand All @@ -210,18 +210,18 @@ public function listApiKeys($input): ListApiKeysResponse
* }|ListResolversRequest $input
*
* @throws BadRequestException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
*/
public function listResolvers($input): ListResolversResponse
{
$input = ListResolversRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListResolvers', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
]]));

return new ListResolversResponse($response, $this, $input);
Expand All @@ -243,19 +243,19 @@ public function listResolvers($input): ListResolversResponse
*
* @throws BadRequestException
* @throws ConcurrentModificationException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
*/
public function startSchemaCreation($input): StartSchemaCreationResponse
{
$input = StartSchemaCreationRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'StartSchemaCreation', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'ConcurrentModificationException' => ConcurrentModificationException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
]]));

return new StartSchemaCreationResponse($response);
Expand All @@ -275,23 +275,23 @@ public function startSchemaCreation($input): StartSchemaCreationResponse
* '@region'?: string|null,
* }|UpdateApiKeyRequest $input
*
* @throws ApiKeyValidityOutOfBoundsException
* @throws BadRequestException
* @throws InternalFailureException
* @throws LimitExceededException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws LimitExceededException
* @throws InternalFailureException
* @throws ApiKeyValidityOutOfBoundsException
*/
public function updateApiKey($input): UpdateApiKeyResponse
{
$input = UpdateApiKeyRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateApiKey', 'region' => $input->getRegion(), 'exceptionMapping' => [
'ApiKeyValidityOutOfBoundsException' => ApiKeyValidityOutOfBoundsException::class,
'BadRequestException' => BadRequestException::class,
'InternalFailureException' => InternalFailureException::class,
'LimitExceededException' => LimitExceededException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'LimitExceededException' => LimitExceededException::class,
'InternalFailureException' => InternalFailureException::class,
'ApiKeyValidityOutOfBoundsException' => ApiKeyValidityOutOfBoundsException::class,
]]));

return new UpdateApiKeyResponse($response);
Expand Down Expand Up @@ -322,19 +322,19 @@ public function updateApiKey($input): UpdateApiKeyResponse
*
* @throws BadRequestException
* @throws ConcurrentModificationException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
*/
public function updateDataSource($input): UpdateDataSourceResponse
{
$input = UpdateDataSourceRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateDataSource', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'ConcurrentModificationException' => ConcurrentModificationException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
]]));

return new UpdateDataSourceResponse($response);
Expand Down Expand Up @@ -364,21 +364,21 @@ public function updateDataSource($input): UpdateDataSourceResponse
* '@region'?: string|null,
* }|UpdateResolverRequest $input
*
* @throws BadRequestException
* @throws ConcurrentModificationException
* @throws InternalFailureException
* @throws NotFoundException
* @throws UnauthorizedException
* @throws InternalFailureException
* @throws BadRequestException
*/
public function updateResolver($input): UpdateResolverResponse
{
$input = UpdateResolverRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateResolver', 'region' => $input->getRegion(), 'exceptionMapping' => [
'BadRequestException' => BadRequestException::class,
'ConcurrentModificationException' => ConcurrentModificationException::class,
'InternalFailureException' => InternalFailureException::class,
'NotFoundException' => NotFoundException::class,
'UnauthorizedException' => UnauthorizedException::class,
'InternalFailureException' => InternalFailureException::class,
'BadRequestException' => BadRequestException::class,
]]));

return new UpdateResolverResponse($response);
Expand Down
4 changes: 4 additions & 0 deletions src/Service/BedrockRuntime/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

- AWS api-change: New options for how to handle harmful content detected by Amazon Bedrock Guardrails.

### Changed

- Sort exception alphabetically.

## 1.0.0

First version
24 changes: 12 additions & 12 deletions src/Service/BedrockRuntime/src/BedrockRuntimeClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,30 @@ class BedrockRuntimeClient extends AbstractApi
* }|InvokeModelRequest $input
*
* @throws AccessDeniedException
* @throws ResourceNotFoundException
* @throws ThrottlingException
* @throws ModelTimeoutException
* @throws InternalServerException
* @throws ServiceUnavailableException
* @throws ValidationException
* @throws ModelErrorException
* @throws ModelNotReadyException
* @throws ModelTimeoutException
* @throws ResourceNotFoundException
* @throws ServiceQuotaExceededException
* @throws ModelErrorException
* @throws ServiceUnavailableException
* @throws ThrottlingException
* @throws ValidationException
*/
public function invokeModel($input): InvokeModelResponse
{
$input = InvokeModelRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'InvokeModel', 'region' => $input->getRegion(), 'exceptionMapping' => [
'AccessDeniedException' => AccessDeniedException::class,
'ResourceNotFoundException' => ResourceNotFoundException::class,
'ThrottlingException' => ThrottlingException::class,
'ModelTimeoutException' => ModelTimeoutException::class,
'InternalServerException' => InternalServerException::class,
'ServiceUnavailableException' => ServiceUnavailableException::class,
'ValidationException' => ValidationException::class,
'ModelErrorException' => ModelErrorException::class,
'ModelNotReadyException' => ModelNotReadyException::class,
'ModelTimeoutException' => ModelTimeoutException::class,
'ResourceNotFoundException' => ResourceNotFoundException::class,
'ServiceQuotaExceededException' => ServiceQuotaExceededException::class,
'ModelErrorException' => ModelErrorException::class,
'ServiceUnavailableException' => ServiceUnavailableException::class,
'ThrottlingException' => ThrottlingException::class,
'ValidationException' => ValidationException::class,
]]));

return new InvokeModelResponse($response);
Expand Down
4 changes: 4 additions & 0 deletions src/Service/CloudFront/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## NOT RELEASED

### Changed

- Sort exception alphabetically.

## 1.0.3

### Changed
Expand Down
12 changes: 6 additions & 6 deletions src/Service/CloudFront/src/CloudFrontClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@ class CloudFrontClient extends AbstractApi
* }|CreateInvalidationRequest $input
*
* @throws AccessDeniedException
* @throws MissingBodyException
* @throws BatchTooLargeException
* @throws InconsistentQuantitiesException
* @throws InvalidArgumentException
* @throws MissingBodyException
* @throws NoSuchDistributionException
* @throws BatchTooLargeException
* @throws TooManyInvalidationsInProgressException
* @throws InconsistentQuantitiesException
*/
public function createInvalidation($input): CreateInvalidationResult
{
$input = CreateInvalidationRequest::create($input);
$response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateInvalidation', 'region' => $input->getRegion(), 'exceptionMapping' => [
'AccessDenied' => AccessDeniedException::class,
'MissingBody' => MissingBodyException::class,
'BatchTooLarge' => BatchTooLargeException::class,
'InconsistentQuantities' => InconsistentQuantitiesException::class,
'InvalidArgument' => InvalidArgumentException::class,
'MissingBody' => MissingBodyException::class,
'NoSuchDistribution' => NoSuchDistributionException::class,
'BatchTooLarge' => BatchTooLargeException::class,
'TooManyInvalidationsInProgress' => TooManyInvalidationsInProgressException::class,
'InconsistentQuantities' => InconsistentQuantitiesException::class,
]]));

return new CreateInvalidationResult($response);
Expand Down
Loading
Loading