diff --git a/src/CodeGenerator/src/Definition/Operation.php b/src/CodeGenerator/src/Definition/Operation.php index b51976c4b..4e8b0c06e 100644 --- a/src/CodeGenerator/src/Definition/Operation.php +++ b/src/CodeGenerator/src/Definition/Operation.php @@ -130,6 +130,8 @@ public function getErrors(): array $errors[$error['shape']] = $shape; } + ksort($errors); + return array_values($errors); } diff --git a/src/Core/CHANGELOG.md b/src/Core/CHANGELOG.md index 2598aa09b..52d136cce 100644 --- a/src/Core/CHANGELOG.md +++ b/src/Core/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.25.0 ### Added diff --git a/src/Core/src/Sts/StsClient.php b/src/Core/src/Sts/StsClient.php index 0af06fb36..7470e7ba1 100644 --- a/src/Core/src/Sts/StsClient.php +++ b/src/Core/src/Sts/StsClient.php @@ -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); @@ -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, ]])); diff --git a/src/Service/AppSync/CHANGELOG.md b/src/Service/AppSync/CHANGELOG.md index 15b023aa1..d88a3b5f4 100644 --- a/src/Service/AppSync/CHANGELOG.md +++ b/src/Service/AppSync/CHANGELOG.md @@ -6,6 +6,10 @@ - AWS api-change: Rework regions configuration +### Changed + +- Sort exception alphabetically. + ## 3.1.1 ### Changed diff --git a/src/Service/AppSync/src/AppSyncClient.php b/src/Service/AppSync/src/AppSyncClient.php index ca535ed1c..2c2fa249e 100644 --- a/src/Service/AppSync/src/AppSyncClient.php +++ b/src/Service/AppSync/src/AppSyncClient.php @@ -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); @@ -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); @@ -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); @@ -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); @@ -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); @@ -243,9 +243,9 @@ public function listResolvers($input): ListResolversResponse * * @throws BadRequestException * @throws ConcurrentModificationException + * @throws InternalFailureException * @throws NotFoundException * @throws UnauthorizedException - * @throws InternalFailureException */ public function startSchemaCreation($input): StartSchemaCreationResponse { @@ -253,9 +253,9 @@ public function startSchemaCreation($input): StartSchemaCreationResponse $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); @@ -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); @@ -322,9 +322,9 @@ public function updateApiKey($input): UpdateApiKeyResponse * * @throws BadRequestException * @throws ConcurrentModificationException + * @throws InternalFailureException * @throws NotFoundException * @throws UnauthorizedException - * @throws InternalFailureException */ public function updateDataSource($input): UpdateDataSourceResponse { @@ -332,9 +332,9 @@ public function updateDataSource($input): UpdateDataSourceResponse $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); @@ -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); diff --git a/src/Service/BedrockRuntime/CHANGELOG.md b/src/Service/BedrockRuntime/CHANGELOG.md index efd36ba26..60d0ea1d5 100644 --- a/src/Service/BedrockRuntime/CHANGELOG.md +++ b/src/Service/BedrockRuntime/CHANGELOG.md @@ -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 diff --git a/src/Service/BedrockRuntime/src/BedrockRuntimeClient.php b/src/Service/BedrockRuntime/src/BedrockRuntimeClient.php index ad61d58cc..a460ab8b0 100644 --- a/src/Service/BedrockRuntime/src/BedrockRuntimeClient.php +++ b/src/Service/BedrockRuntime/src/BedrockRuntimeClient.php @@ -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); diff --git a/src/Service/CloudFront/CHANGELOG.md b/src/Service/CloudFront/CHANGELOG.md index 5fdc38143..b78e97ae2 100644 --- a/src/Service/CloudFront/CHANGELOG.md +++ b/src/Service/CloudFront/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.0.3 ### Changed diff --git a/src/Service/CloudFront/src/CloudFrontClient.php b/src/Service/CloudFront/src/CloudFrontClient.php index 6c98bb95b..f43ec9135 100644 --- a/src/Service/CloudFront/src/CloudFrontClient.php +++ b/src/Service/CloudFront/src/CloudFrontClient.php @@ -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); diff --git a/src/Service/CloudWatch/CHANGELOG.md b/src/Service/CloudWatch/CHANGELOG.md index 067f189ee..ff4f5e7e4 100644 --- a/src/Service/CloudWatch/CHANGELOG.md +++ b/src/Service/CloudWatch/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.2.0 ### Added diff --git a/src/Service/CloudWatch/src/CloudWatchClient.php b/src/Service/CloudWatch/src/CloudWatchClient.php index 0dd385e34..c47f461bf 100644 --- a/src/Service/CloudWatch/src/CloudWatchClient.php +++ b/src/Service/CloudWatch/src/CloudWatchClient.php @@ -165,19 +165,19 @@ public function getMetricData($input): GetMetricDataOutput * '@region'?: string|null, * }|GetMetricStatisticsInput $input * + * @throws InternalServiceFaultException + * @throws InvalidParameterCombinationException * @throws InvalidParameterValueException * @throws MissingRequiredParameterException - * @throws InvalidParameterCombinationException - * @throws InternalServiceFaultException */ public function getMetricStatistics($input): GetMetricStatisticsOutput { $input = GetMetricStatisticsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetMetricStatistics', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServiceError' => InternalServiceFaultException::class, + 'InvalidParameterCombination' => InvalidParameterCombinationException::class, 'InvalidParameterValue' => InvalidParameterValueException::class, 'MissingParameter' => MissingRequiredParameterException::class, - 'InvalidParameterCombination' => InvalidParameterCombinationException::class, - 'InternalServiceError' => InternalServiceFaultException::class, ]])); return new GetMetricStatisticsOutput($response); @@ -294,19 +294,19 @@ public function listMetrics($input = []): ListMetricsOutput * '@region'?: string|null, * }|PutMetricDataInput $input * + * @throws InternalServiceFaultException + * @throws InvalidParameterCombinationException * @throws InvalidParameterValueException * @throws MissingRequiredParameterException - * @throws InvalidParameterCombinationException - * @throws InternalServiceFaultException */ public function putMetricData($input): Result { $input = PutMetricDataInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutMetricData', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServiceError' => InternalServiceFaultException::class, + 'InvalidParameterCombination' => InvalidParameterCombinationException::class, 'InvalidParameterValue' => InvalidParameterValueException::class, 'MissingParameter' => MissingRequiredParameterException::class, - 'InvalidParameterCombination' => InvalidParameterCombinationException::class, - 'InternalServiceError' => InternalServiceFaultException::class, ]])); return new Result($response); diff --git a/src/Service/CloudWatchLogs/CHANGELOG.md b/src/Service/CloudWatchLogs/CHANGELOG.md index afd76e596..6aa20a516 100644 --- a/src/Service/CloudWatchLogs/CHANGELOG.md +++ b/src/Service/CloudWatchLogs/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.6.0 ### Added diff --git a/src/Service/CloudWatchLogs/src/CloudWatchLogsClient.php b/src/Service/CloudWatchLogs/src/CloudWatchLogsClient.php index a4d72da45..838b6e7c1 100644 --- a/src/Service/CloudWatchLogs/src/CloudWatchLogsClient.php +++ b/src/Service/CloudWatchLogs/src/CloudWatchLogsClient.php @@ -71,9 +71,9 @@ class CloudWatchLogsClient extends AbstractApi * }|CreateLogGroupRequest $input * * @throws InvalidParameterException - * @throws ResourceAlreadyExistsException * @throws LimitExceededException * @throws OperationAbortedException + * @throws ResourceAlreadyExistsException * @throws ServiceUnavailableException */ public function createLogGroup($input): Result @@ -81,9 +81,9 @@ public function createLogGroup($input): Result $input = CreateLogGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateLogGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'InvalidParameterException' => InvalidParameterException::class, - 'ResourceAlreadyExistsException' => ResourceAlreadyExistsException::class, 'LimitExceededException' => LimitExceededException::class, 'OperationAbortedException' => OperationAbortedException::class, + 'ResourceAlreadyExistsException' => ResourceAlreadyExistsException::class, 'ServiceUnavailableException' => ServiceUnavailableException::class, ]])); @@ -291,9 +291,9 @@ public function filterLogEvents($input = []): FilterLogEventsResponse * '@region'?: string|null, * }|PutLogEventsRequest $input * + * @throws DataAlreadyAcceptedException * @throws InvalidParameterException * @throws InvalidSequenceTokenException - * @throws DataAlreadyAcceptedException * @throws ResourceNotFoundException * @throws ServiceUnavailableException * @throws UnrecognizedClientException @@ -302,9 +302,9 @@ public function putLogEvents($input): PutLogEventsResponse { $input = PutLogEventsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutLogEvents', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'DataAlreadyAcceptedException' => DataAlreadyAcceptedException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidSequenceTokenException' => InvalidSequenceTokenException::class, - 'DataAlreadyAcceptedException' => DataAlreadyAcceptedException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ServiceUnavailableException' => ServiceUnavailableException::class, 'UnrecognizedClientException' => UnrecognizedClientException::class, diff --git a/src/Service/CodeBuild/CHANGELOG.md b/src/Service/CodeBuild/CHANGELOG.md index a902a9217..ba158e71a 100644 --- a/src/Service/CodeBuild/CHANGELOG.md +++ b/src/Service/CodeBuild/CHANGELOG.md @@ -7,6 +7,10 @@ - AWS api-change: This release adds support for environment type WINDOWS_SERVER_2022_CONTAINER in ProjectEnvironment - AWS api-change: Added `us-isob-east-1` region. +### Changed + +- Sort exception alphabetically. + ## 2.9.0 ### Added diff --git a/src/Service/CodeBuild/src/CodeBuildClient.php b/src/Service/CodeBuild/src/CodeBuildClient.php index 61fcca5eb..a36ad990b 100644 --- a/src/Service/CodeBuild/src/CodeBuildClient.php +++ b/src/Service/CodeBuild/src/CodeBuildClient.php @@ -105,17 +105,17 @@ public function batchGetBuilds($input): BatchGetBuildsOutput * '@region'?: string|null, * }|StartBuildInput $input * + * @throws AccountLimitExceededException * @throws InvalidInputException * @throws ResourceNotFoundException - * @throws AccountLimitExceededException */ public function startBuild($input): StartBuildOutput { $input = StartBuildInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'StartBuild', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccountLimitExceededException' => AccountLimitExceededException::class, 'InvalidInputException' => InvalidInputException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccountLimitExceededException' => AccountLimitExceededException::class, ]])); return new StartBuildOutput($response); diff --git a/src/Service/CodeCommit/CHANGELOG.md b/src/Service/CodeCommit/CHANGELOG.md index 3aa3bed30..303903e5f 100644 --- a/src/Service/CodeCommit/CHANGELOG.md +++ b/src/Service/CodeCommit/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.2.1 ### Changed diff --git a/src/Service/CodeCommit/src/CodeCommitClient.php b/src/Service/CodeCommit/src/CodeCommitClient.php index 86fd24cd3..5429108e7 100644 --- a/src/Service/CodeCommit/src/CodeCommitClient.php +++ b/src/Service/CodeCommit/src/CodeCommitClient.php @@ -93,45 +93,45 @@ class CodeCommitClient extends AbstractApi * '@region'?: string|null, * }|CreateRepositoryInput $input * - * @throws RepositoryNameExistsException - * @throws RepositoryNameRequiredException - * @throws InvalidRepositoryNameException - * @throws InvalidRepositoryDescriptionException - * @throws RepositoryLimitExceededException - * @throws OperationNotAllowedException * @throws EncryptionIntegrityChecksFailedException * @throws EncryptionKeyAccessDeniedException * @throws EncryptionKeyDisabledException - * @throws EncryptionKeyNotFoundException - * @throws EncryptionKeyUnavailableException * @throws EncryptionKeyInvalidIdException * @throws EncryptionKeyInvalidUsageException - * @throws InvalidTagsMapException - * @throws TooManyTagsException + * @throws EncryptionKeyNotFoundException + * @throws EncryptionKeyUnavailableException + * @throws InvalidRepositoryDescriptionException + * @throws InvalidRepositoryNameException * @throws InvalidSystemTagUsageException + * @throws InvalidTagsMapException + * @throws OperationNotAllowedException + * @throws RepositoryLimitExceededException + * @throws RepositoryNameExistsException + * @throws RepositoryNameRequiredException * @throws TagPolicyException + * @throws TooManyTagsException */ public function createRepository($input): CreateRepositoryOutput { $input = CreateRepositoryInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateRepository', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RepositoryNameExistsException' => RepositoryNameExistsException::class, - 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, - 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, - 'InvalidRepositoryDescriptionException' => InvalidRepositoryDescriptionException::class, - 'RepositoryLimitExceededException' => RepositoryLimitExceededException::class, - 'OperationNotAllowedException' => OperationNotAllowedException::class, 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, - 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, - 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, 'EncryptionKeyInvalidIdException' => EncryptionKeyInvalidIdException::class, 'EncryptionKeyInvalidUsageException' => EncryptionKeyInvalidUsageException::class, - 'InvalidTagsMapException' => InvalidTagsMapException::class, - 'TooManyTagsException' => TooManyTagsException::class, + 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, + 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, + 'InvalidRepositoryDescriptionException' => InvalidRepositoryDescriptionException::class, + 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, 'InvalidSystemTagUsageException' => InvalidSystemTagUsageException::class, + 'InvalidTagsMapException' => InvalidTagsMapException::class, + 'OperationNotAllowedException' => OperationNotAllowedException::class, + 'RepositoryLimitExceededException' => RepositoryLimitExceededException::class, + 'RepositoryNameExistsException' => RepositoryNameExistsException::class, + 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, 'TagPolicyException' => TagPolicyException::class, + 'TooManyTagsException' => TooManyTagsException::class, ]])); return new CreateRepositoryOutput($response); @@ -151,25 +151,25 @@ public function createRepository($input): CreateRepositoryOutput * '@region'?: string|null, * }|DeleteRepositoryInput $input * - * @throws RepositoryNameRequiredException - * @throws InvalidRepositoryNameException * @throws EncryptionIntegrityChecksFailedException * @throws EncryptionKeyAccessDeniedException * @throws EncryptionKeyDisabledException * @throws EncryptionKeyNotFoundException * @throws EncryptionKeyUnavailableException + * @throws InvalidRepositoryNameException + * @throws RepositoryNameRequiredException */ public function deleteRepository($input): DeleteRepositoryOutput { $input = DeleteRepositoryInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteRepository', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, - 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, + 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, + 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, ]])); return new DeleteRepositoryOutput($response); @@ -187,35 +187,35 @@ public function deleteRepository($input): DeleteRepositoryOutput * '@region'?: string|null, * }|GetBlobInput $input * - * @throws RepositoryNameRequiredException - * @throws InvalidRepositoryNameException - * @throws RepositoryDoesNotExistException - * @throws BlobIdRequiredException - * @throws InvalidBlobIdException * @throws BlobIdDoesNotExistException + * @throws BlobIdRequiredException * @throws EncryptionIntegrityChecksFailedException * @throws EncryptionKeyAccessDeniedException * @throws EncryptionKeyDisabledException * @throws EncryptionKeyNotFoundException * @throws EncryptionKeyUnavailableException * @throws FileTooLargeException + * @throws InvalidBlobIdException + * @throws InvalidRepositoryNameException + * @throws RepositoryDoesNotExistException + * @throws RepositoryNameRequiredException */ public function getBlob($input): GetBlobOutput { $input = GetBlobInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetBlob', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, - 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, - 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, - 'BlobIdRequiredException' => BlobIdRequiredException::class, - 'InvalidBlobIdException' => InvalidBlobIdException::class, 'BlobIdDoesNotExistException' => BlobIdDoesNotExistException::class, + 'BlobIdRequiredException' => BlobIdRequiredException::class, 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, 'FileTooLargeException' => FileTooLargeException::class, + 'InvalidBlobIdException' => InvalidBlobIdException::class, + 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, + 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, + 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, ]])); return new GetBlobOutput($response); @@ -233,33 +233,33 @@ public function getBlob($input): GetBlobOutput * '@region'?: string|null, * }|GetBranchInput $input * - * @throws RepositoryNameRequiredException - * @throws RepositoryDoesNotExistException - * @throws InvalidRepositoryNameException - * @throws BranchNameRequiredException - * @throws InvalidBranchNameException * @throws BranchDoesNotExistException + * @throws BranchNameRequiredException * @throws EncryptionIntegrityChecksFailedException * @throws EncryptionKeyAccessDeniedException * @throws EncryptionKeyDisabledException * @throws EncryptionKeyNotFoundException * @throws EncryptionKeyUnavailableException + * @throws InvalidBranchNameException + * @throws InvalidRepositoryNameException + * @throws RepositoryDoesNotExistException + * @throws RepositoryNameRequiredException */ public function getBranch($input = []): GetBranchOutput { $input = GetBranchInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetBranch', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, - 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, - 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, - 'BranchNameRequiredException' => BranchNameRequiredException::class, - 'InvalidBranchNameException' => InvalidBranchNameException::class, 'BranchDoesNotExistException' => BranchDoesNotExistException::class, + 'BranchNameRequiredException' => BranchNameRequiredException::class, 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, + 'InvalidBranchNameException' => InvalidBranchNameException::class, + 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, + 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, + 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, ]])); return new GetBranchOutput($response); @@ -277,33 +277,33 @@ public function getBranch($input = []): GetBranchOutput * '@region'?: string|null, * }|GetCommitInput $input * - * @throws RepositoryNameRequiredException - * @throws InvalidRepositoryNameException - * @throws RepositoryDoesNotExistException - * @throws CommitIdRequiredException - * @throws InvalidCommitIdException * @throws CommitIdDoesNotExistException + * @throws CommitIdRequiredException * @throws EncryptionIntegrityChecksFailedException * @throws EncryptionKeyAccessDeniedException * @throws EncryptionKeyDisabledException * @throws EncryptionKeyNotFoundException * @throws EncryptionKeyUnavailableException + * @throws InvalidCommitIdException + * @throws InvalidRepositoryNameException + * @throws RepositoryDoesNotExistException + * @throws RepositoryNameRequiredException */ public function getCommit($input): GetCommitOutput { $input = GetCommitInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetCommit', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, - 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, - 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, - 'CommitIdRequiredException' => CommitIdRequiredException::class, - 'InvalidCommitIdException' => InvalidCommitIdException::class, 'CommitIdDoesNotExistException' => CommitIdDoesNotExistException::class, + 'CommitIdRequiredException' => CommitIdRequiredException::class, 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, + 'InvalidCommitIdException' => InvalidCommitIdException::class, + 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, + 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, + 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, ]])); return new GetCommitOutput($response); @@ -327,43 +327,43 @@ public function getCommit($input): GetCommitOutput * '@region'?: string|null, * }|GetDifferencesInput $input * - * @throws RepositoryNameRequiredException - * @throws RepositoryDoesNotExistException - * @throws InvalidRepositoryNameException - * @throws InvalidContinuationTokenException - * @throws InvalidMaxResultsException - * @throws InvalidCommitIdException - * @throws CommitRequiredException - * @throws InvalidCommitException * @throws CommitDoesNotExistException - * @throws InvalidPathException - * @throws PathDoesNotExistException + * @throws CommitRequiredException * @throws EncryptionIntegrityChecksFailedException * @throws EncryptionKeyAccessDeniedException * @throws EncryptionKeyDisabledException * @throws EncryptionKeyNotFoundException * @throws EncryptionKeyUnavailableException + * @throws InvalidCommitException + * @throws InvalidCommitIdException + * @throws InvalidContinuationTokenException + * @throws InvalidMaxResultsException + * @throws InvalidPathException + * @throws InvalidRepositoryNameException + * @throws PathDoesNotExistException + * @throws RepositoryDoesNotExistException + * @throws RepositoryNameRequiredException */ public function getDifferences($input): GetDifferencesOutput { $input = GetDifferencesInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetDifferences', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, - 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, - 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, - 'InvalidContinuationTokenException' => InvalidContinuationTokenException::class, - 'InvalidMaxResultsException' => InvalidMaxResultsException::class, - 'InvalidCommitIdException' => InvalidCommitIdException::class, - 'CommitRequiredException' => CommitRequiredException::class, - 'InvalidCommitException' => InvalidCommitException::class, 'CommitDoesNotExistException' => CommitDoesNotExistException::class, - 'InvalidPathException' => InvalidPathException::class, - 'PathDoesNotExistException' => PathDoesNotExistException::class, + 'CommitRequiredException' => CommitRequiredException::class, 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, + 'InvalidCommitException' => InvalidCommitException::class, + 'InvalidCommitIdException' => InvalidCommitIdException::class, + 'InvalidContinuationTokenException' => InvalidContinuationTokenException::class, + 'InvalidMaxResultsException' => InvalidMaxResultsException::class, + 'InvalidPathException' => InvalidPathException::class, + 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, + 'PathDoesNotExistException' => PathDoesNotExistException::class, + 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, + 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, ]])); return new GetDifferencesOutput($response, $this, $input); @@ -382,17 +382,17 @@ public function getDifferences($input): GetDifferencesOutput * '@region'?: string|null, * }|ListRepositoriesInput $input * - * @throws InvalidSortByException - * @throws InvalidOrderException * @throws InvalidContinuationTokenException + * @throws InvalidOrderException + * @throws InvalidSortByException */ public function listRepositories($input = []): ListRepositoriesOutput { $input = ListRepositoriesInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListRepositories', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidSortByException' => InvalidSortByException::class, - 'InvalidOrderException' => InvalidOrderException::class, 'InvalidContinuationTokenException' => InvalidContinuationTokenException::class, + 'InvalidOrderException' => InvalidOrderException::class, + 'InvalidSortByException' => InvalidSortByException::class, ]])); return new ListRepositoriesOutput($response, $this, $input); @@ -410,53 +410,53 @@ public function listRepositories($input = []): ListRepositoriesOutput * '@region'?: string|null, * }|PutRepositoryTriggersInput $input * - * @throws RepositoryDoesNotExistException - * @throws RepositoryNameRequiredException + * @throws EncryptionIntegrityChecksFailedException + * @throws EncryptionKeyAccessDeniedException + * @throws EncryptionKeyDisabledException + * @throws EncryptionKeyNotFoundException + * @throws EncryptionKeyUnavailableException * @throws InvalidRepositoryNameException - * @throws RepositoryTriggersListRequiredException - * @throws MaximumRepositoryTriggersExceededException - * @throws InvalidRepositoryTriggerNameException + * @throws InvalidRepositoryTriggerBranchNameException + * @throws InvalidRepositoryTriggerCustomDataException * @throws InvalidRepositoryTriggerDestinationArnException + * @throws InvalidRepositoryTriggerEventsException + * @throws InvalidRepositoryTriggerNameException * @throws InvalidRepositoryTriggerRegionException - * @throws InvalidRepositoryTriggerCustomDataException * @throws MaximumBranchesExceededException - * @throws InvalidRepositoryTriggerBranchNameException - * @throws InvalidRepositoryTriggerEventsException - * @throws RepositoryTriggerNameRequiredException - * @throws RepositoryTriggerDestinationArnRequiredException + * @throws MaximumRepositoryTriggersExceededException + * @throws RepositoryDoesNotExistException + * @throws RepositoryNameRequiredException * @throws RepositoryTriggerBranchNameListRequiredException + * @throws RepositoryTriggerDestinationArnRequiredException * @throws RepositoryTriggerEventsListRequiredException - * @throws EncryptionIntegrityChecksFailedException - * @throws EncryptionKeyAccessDeniedException - * @throws EncryptionKeyDisabledException - * @throws EncryptionKeyNotFoundException - * @throws EncryptionKeyUnavailableException + * @throws RepositoryTriggerNameRequiredException + * @throws RepositoryTriggersListRequiredException */ public function putRepositoryTriggers($input): PutRepositoryTriggersOutput { $input = PutRepositoryTriggersInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutRepositoryTriggers', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, - 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, + 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, + 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, + 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, + 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, + 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, 'InvalidRepositoryNameException' => InvalidRepositoryNameException::class, - 'RepositoryTriggersListRequiredException' => RepositoryTriggersListRequiredException::class, - 'MaximumRepositoryTriggersExceededException' => MaximumRepositoryTriggersExceededException::class, - 'InvalidRepositoryTriggerNameException' => InvalidRepositoryTriggerNameException::class, + 'InvalidRepositoryTriggerBranchNameException' => InvalidRepositoryTriggerBranchNameException::class, + 'InvalidRepositoryTriggerCustomDataException' => InvalidRepositoryTriggerCustomDataException::class, 'InvalidRepositoryTriggerDestinationArnException' => InvalidRepositoryTriggerDestinationArnException::class, + 'InvalidRepositoryTriggerEventsException' => InvalidRepositoryTriggerEventsException::class, + 'InvalidRepositoryTriggerNameException' => InvalidRepositoryTriggerNameException::class, 'InvalidRepositoryTriggerRegionException' => InvalidRepositoryTriggerRegionException::class, - 'InvalidRepositoryTriggerCustomDataException' => InvalidRepositoryTriggerCustomDataException::class, 'MaximumBranchesExceededException' => MaximumBranchesExceededException::class, - 'InvalidRepositoryTriggerBranchNameException' => InvalidRepositoryTriggerBranchNameException::class, - 'InvalidRepositoryTriggerEventsException' => InvalidRepositoryTriggerEventsException::class, - 'RepositoryTriggerNameRequiredException' => RepositoryTriggerNameRequiredException::class, - 'RepositoryTriggerDestinationArnRequiredException' => RepositoryTriggerDestinationArnRequiredException::class, + 'MaximumRepositoryTriggersExceededException' => MaximumRepositoryTriggersExceededException::class, + 'RepositoryDoesNotExistException' => RepositoryDoesNotExistException::class, + 'RepositoryNameRequiredException' => RepositoryNameRequiredException::class, 'RepositoryTriggerBranchNameListRequiredException' => RepositoryTriggerBranchNameListRequiredException::class, + 'RepositoryTriggerDestinationArnRequiredException' => RepositoryTriggerDestinationArnRequiredException::class, 'RepositoryTriggerEventsListRequiredException' => RepositoryTriggerEventsListRequiredException::class, - 'EncryptionIntegrityChecksFailedException' => EncryptionIntegrityChecksFailedException::class, - 'EncryptionKeyAccessDeniedException' => EncryptionKeyAccessDeniedException::class, - 'EncryptionKeyDisabledException' => EncryptionKeyDisabledException::class, - 'EncryptionKeyNotFoundException' => EncryptionKeyNotFoundException::class, - 'EncryptionKeyUnavailableException' => EncryptionKeyUnavailableException::class, + 'RepositoryTriggerNameRequiredException' => RepositoryTriggerNameRequiredException::class, + 'RepositoryTriggersListRequiredException' => RepositoryTriggersListRequiredException::class, ]])); return new PutRepositoryTriggersOutput($response); diff --git a/src/Service/CodeDeploy/CHANGELOG.md b/src/Service/CodeDeploy/CHANGELOG.md index 097c173ce..9e815a4e4 100644 --- a/src/Service/CodeDeploy/CHANGELOG.md +++ b/src/Service/CodeDeploy/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.2.0 ### Added diff --git a/src/Service/CodeDeploy/src/CodeDeployClient.php b/src/Service/CodeDeploy/src/CodeDeployClient.php index d368732cd..ed5bec20f 100644 --- a/src/Service/CodeDeploy/src/CodeDeployClient.php +++ b/src/Service/CodeDeploy/src/CodeDeployClient.php @@ -76,63 +76,63 @@ class CodeDeployClient extends AbstractApi * '@region'?: string|null, * }|CreateDeploymentInput $input * - * @throws ApplicationNameRequiredException - * @throws InvalidApplicationNameException + * @throws AlarmsLimitExceededException * @throws ApplicationDoesNotExistException - * @throws DeploymentGroupNameRequiredException - * @throws InvalidDeploymentGroupNameException - * @throws DeploymentGroupDoesNotExistException - * @throws RevisionRequiredException - * @throws RevisionDoesNotExistException - * @throws InvalidRevisionException - * @throws InvalidDeploymentConfigNameException + * @throws ApplicationNameRequiredException * @throws DeploymentConfigDoesNotExistException - * @throws DescriptionTooLongException + * @throws DeploymentGroupDoesNotExistException + * @throws DeploymentGroupNameRequiredException * @throws DeploymentLimitExceededException - * @throws InvalidTargetInstancesException + * @throws DescriptionTooLongException * @throws InvalidAlarmConfigException - * @throws AlarmsLimitExceededException + * @throws InvalidApplicationNameException * @throws InvalidAutoRollbackConfigException - * @throws InvalidLoadBalancerInfoException - * @throws InvalidFileExistsBehaviorException - * @throws InvalidRoleException * @throws InvalidAutoScalingGroupException - * @throws ThrottlingException - * @throws InvalidUpdateOutdatedInstancesOnlyValueException - * @throws InvalidIgnoreApplicationStopFailuresValueException + * @throws InvalidDeploymentConfigNameException + * @throws InvalidDeploymentGroupNameException + * @throws InvalidFileExistsBehaviorException * @throws InvalidGitHubAccountTokenException + * @throws InvalidIgnoreApplicationStopFailuresValueException + * @throws InvalidLoadBalancerInfoException + * @throws InvalidRevisionException + * @throws InvalidRoleException + * @throws InvalidTargetInstancesException * @throws InvalidTrafficRoutingConfigurationException + * @throws InvalidUpdateOutdatedInstancesOnlyValueException + * @throws RevisionDoesNotExistException + * @throws RevisionRequiredException + * @throws ThrottlingException */ public function createDeployment($input): CreateDeploymentOutput { $input = CreateDeploymentInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateDeployment', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ApplicationNameRequiredException' => ApplicationNameRequiredException::class, - 'InvalidApplicationNameException' => InvalidApplicationNameException::class, + 'AlarmsLimitExceededException' => AlarmsLimitExceededException::class, 'ApplicationDoesNotExistException' => ApplicationDoesNotExistException::class, - 'DeploymentGroupNameRequiredException' => DeploymentGroupNameRequiredException::class, - 'InvalidDeploymentGroupNameException' => InvalidDeploymentGroupNameException::class, - 'DeploymentGroupDoesNotExistException' => DeploymentGroupDoesNotExistException::class, - 'RevisionRequiredException' => RevisionRequiredException::class, - 'RevisionDoesNotExistException' => RevisionDoesNotExistException::class, - 'InvalidRevisionException' => InvalidRevisionException::class, - 'InvalidDeploymentConfigNameException' => InvalidDeploymentConfigNameException::class, + 'ApplicationNameRequiredException' => ApplicationNameRequiredException::class, 'DeploymentConfigDoesNotExistException' => DeploymentConfigDoesNotExistException::class, - 'DescriptionTooLongException' => DescriptionTooLongException::class, + 'DeploymentGroupDoesNotExistException' => DeploymentGroupDoesNotExistException::class, + 'DeploymentGroupNameRequiredException' => DeploymentGroupNameRequiredException::class, 'DeploymentLimitExceededException' => DeploymentLimitExceededException::class, - 'InvalidTargetInstancesException' => InvalidTargetInstancesException::class, + 'DescriptionTooLongException' => DescriptionTooLongException::class, 'InvalidAlarmConfigException' => InvalidAlarmConfigException::class, - 'AlarmsLimitExceededException' => AlarmsLimitExceededException::class, + 'InvalidApplicationNameException' => InvalidApplicationNameException::class, 'InvalidAutoRollbackConfigException' => InvalidAutoRollbackConfigException::class, - 'InvalidLoadBalancerInfoException' => InvalidLoadBalancerInfoException::class, - 'InvalidFileExistsBehaviorException' => InvalidFileExistsBehaviorException::class, - 'InvalidRoleException' => InvalidRoleException::class, 'InvalidAutoScalingGroupException' => InvalidAutoScalingGroupException::class, - 'ThrottlingException' => ThrottlingException::class, - 'InvalidUpdateOutdatedInstancesOnlyValueException' => InvalidUpdateOutdatedInstancesOnlyValueException::class, - 'InvalidIgnoreApplicationStopFailuresValueException' => InvalidIgnoreApplicationStopFailuresValueException::class, + 'InvalidDeploymentConfigNameException' => InvalidDeploymentConfigNameException::class, + 'InvalidDeploymentGroupNameException' => InvalidDeploymentGroupNameException::class, + 'InvalidFileExistsBehaviorException' => InvalidFileExistsBehaviorException::class, 'InvalidGitHubAccountTokenException' => InvalidGitHubAccountTokenException::class, + 'InvalidIgnoreApplicationStopFailuresValueException' => InvalidIgnoreApplicationStopFailuresValueException::class, + 'InvalidLoadBalancerInfoException' => InvalidLoadBalancerInfoException::class, + 'InvalidRevisionException' => InvalidRevisionException::class, + 'InvalidRoleException' => InvalidRoleException::class, + 'InvalidTargetInstancesException' => InvalidTargetInstancesException::class, 'InvalidTrafficRoutingConfigurationException' => InvalidTrafficRoutingConfigurationException::class, + 'InvalidUpdateOutdatedInstancesOnlyValueException' => InvalidUpdateOutdatedInstancesOnlyValueException::class, + 'RevisionDoesNotExistException' => RevisionDoesNotExistException::class, + 'RevisionRequiredException' => RevisionRequiredException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new CreateDeploymentOutput($response); @@ -153,17 +153,17 @@ public function createDeployment($input): CreateDeploymentOutput * '@region'?: string|null, * }|GetDeploymentInput $input * + * @throws DeploymentDoesNotExistException * @throws DeploymentIdRequiredException * @throws InvalidDeploymentIdException - * @throws DeploymentDoesNotExistException */ public function getDeployment($input): GetDeploymentOutput { $input = GetDeploymentInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetDeployment', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'DeploymentDoesNotExistException' => DeploymentDoesNotExistException::class, 'DeploymentIdRequiredException' => DeploymentIdRequiredException::class, 'InvalidDeploymentIdException' => InvalidDeploymentIdException::class, - 'DeploymentDoesNotExistException' => DeploymentDoesNotExistException::class, ]])); return new GetDeploymentOutput($response); @@ -190,24 +190,24 @@ public function getDeployment($input): GetDeploymentOutput * '@region'?: string|null, * }|PutLifecycleEventHookExecutionStatusInput $input * - * @throws InvalidLifecycleEventHookExecutionStatusException - * @throws InvalidLifecycleEventHookExecutionIdException - * @throws LifecycleEventAlreadyCompletedException - * @throws DeploymentIdRequiredException * @throws DeploymentDoesNotExistException + * @throws DeploymentIdRequiredException * @throws InvalidDeploymentIdException + * @throws InvalidLifecycleEventHookExecutionIdException + * @throws InvalidLifecycleEventHookExecutionStatusException + * @throws LifecycleEventAlreadyCompletedException * @throws UnsupportedActionForDeploymentTypeException */ public function putLifecycleEventHookExecutionStatus($input = []): PutLifecycleEventHookExecutionStatusOutput { $input = PutLifecycleEventHookExecutionStatusInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutLifecycleEventHookExecutionStatus', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidLifecycleEventHookExecutionStatusException' => InvalidLifecycleEventHookExecutionStatusException::class, - 'InvalidLifecycleEventHookExecutionIdException' => InvalidLifecycleEventHookExecutionIdException::class, - 'LifecycleEventAlreadyCompletedException' => LifecycleEventAlreadyCompletedException::class, - 'DeploymentIdRequiredException' => DeploymentIdRequiredException::class, 'DeploymentDoesNotExistException' => DeploymentDoesNotExistException::class, + 'DeploymentIdRequiredException' => DeploymentIdRequiredException::class, 'InvalidDeploymentIdException' => InvalidDeploymentIdException::class, + 'InvalidLifecycleEventHookExecutionIdException' => InvalidLifecycleEventHookExecutionIdException::class, + 'InvalidLifecycleEventHookExecutionStatusException' => InvalidLifecycleEventHookExecutionStatusException::class, + 'LifecycleEventAlreadyCompletedException' => LifecycleEventAlreadyCompletedException::class, 'UnsupportedActionForDeploymentTypeException' => UnsupportedActionForDeploymentTypeException::class, ]])); diff --git a/src/Service/CognitoIdentityProvider/CHANGELOG.md b/src/Service/CognitoIdentityProvider/CHANGELOG.md index b36dee309..f9cdac8da 100644 --- a/src/Service/CognitoIdentityProvider/CHANGELOG.md +++ b/src/Service/CognitoIdentityProvider/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.13.0 ### Added diff --git a/src/Service/CognitoIdentityProvider/src/CognitoIdentityProviderClient.php b/src/Service/CognitoIdentityProvider/src/CognitoIdentityProviderClient.php index 5d5006405..bfbc1c855 100644 --- a/src/Service/CognitoIdentityProvider/src/CognitoIdentityProviderClient.php +++ b/src/Service/CognitoIdentityProvider/src/CognitoIdentityProviderClient.php @@ -140,23 +140,23 @@ class CognitoIdentityProviderClient extends AbstractApi * '@region'?: string|null, * }|AdminAddUserToGroupRequest $input * + * @throws InternalErrorException * @throws InvalidParameterException + * @throws NotAuthorizedException * @throws ResourceNotFoundException * @throws TooManyRequestsException - * @throws NotAuthorizedException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminAddUserToGroup($input): Result { $input = AdminAddUserToGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminAddUserToGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new Result($response); @@ -196,33 +196,33 @@ public function adminAddUserToGroup($input): Result * '@region'?: string|null, * }|AdminConfirmSignUpRequest $input * - * @throws ResourceNotFoundException + * @throws InternalErrorException + * @throws InvalidLambdaResponseException * @throws InvalidParameterException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException + * @throws LimitExceededException * @throws NotAuthorizedException + * @throws ResourceNotFoundException * @throws TooManyFailedAttemptsException - * @throws InvalidLambdaResponseException * @throws TooManyRequestsException - * @throws LimitExceededException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminConfirmSignUp($input): AdminConfirmSignUpResponse { $input = AdminConfirmSignUpRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminConfirmSignUp', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'LimitExceededException' => LimitExceededException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyFailedAttemptsException' => TooManyFailedAttemptsException::class, - 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'LimitExceededException' => LimitExceededException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new AdminConfirmSignUpResponse($response); @@ -289,43 +289,43 @@ public function adminConfirmSignUp($input): AdminConfirmSignUpResponse * '@region'?: string|null, * }|AdminCreateUserRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws UserNotFoundException - * @throws UsernameExistsException - * @throws InvalidPasswordException * @throws CodeDeliveryFailureException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException + * @throws InternalErrorException * @throws InvalidLambdaResponseException - * @throws PreconditionNotMetException + * @throws InvalidParameterException + * @throws InvalidPasswordException * @throws InvalidSmsRoleAccessPolicyException * @throws InvalidSmsRoleTrustRelationshipException - * @throws TooManyRequestsException * @throws NotAuthorizedException + * @throws PreconditionNotMetException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException * @throws UnsupportedUserStateException - * @throws InternalErrorException + * @throws UserLambdaValidationException + * @throws UserNotFoundException + * @throws UsernameExistsException */ public function adminCreateUser($input): AdminCreateUserResponse { $input = AdminCreateUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminCreateUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'UserNotFoundException' => UserNotFoundException::class, - 'UsernameExistsException' => UsernameExistsException::class, - 'InvalidPasswordException' => InvalidPasswordException::class, 'CodeDeliveryFailureException' => CodeDeliveryFailureException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'PreconditionNotMetException' => PreconditionNotMetException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidPasswordException' => InvalidPasswordException::class, 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'PreconditionNotMetException' => PreconditionNotMetException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, 'UnsupportedUserStateException' => UnsupportedUserStateException::class, - 'InternalErrorException' => InternalErrorException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'UserNotFoundException' => UserNotFoundException::class, + 'UsernameExistsException' => UsernameExistsException::class, ]])); return new AdminCreateUserResponse($response); @@ -356,23 +356,23 @@ public function adminCreateUser($input): AdminCreateUserResponse * '@region'?: string|null, * }|AdminDeleteUserRequest $input * - * @throws ResourceNotFoundException + * @throws InternalErrorException * @throws InvalidParameterException - * @throws TooManyRequestsException * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminDeleteUser($input): Result { $input = AdminDeleteUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminDeleteUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new Result($response); @@ -404,23 +404,23 @@ public function adminDeleteUser($input): Result * '@region'?: string|null, * }|AdminDisableUserRequest $input * - * @throws ResourceNotFoundException + * @throws InternalErrorException * @throws InvalidParameterException - * @throws TooManyRequestsException * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminDisableUser($input): AdminDisableUserResponse { $input = AdminDisableUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminDisableUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new AdminDisableUserResponse($response); @@ -451,23 +451,23 @@ public function adminDisableUser($input): AdminDisableUserResponse * '@region'?: string|null, * }|AdminEnableUserRequest $input * - * @throws ResourceNotFoundException + * @throws InternalErrorException * @throws InvalidParameterException - * @throws TooManyRequestsException * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminEnableUser($input): AdminEnableUserResponse { $input = AdminEnableUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminEnableUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new AdminEnableUserResponse($response); @@ -501,23 +501,23 @@ public function adminEnableUser($input): AdminEnableUserResponse * '@region'?: string|null, * }|AdminGetUserRequest $input * - * @throws ResourceNotFoundException + * @throws InternalErrorException * @throws InvalidParameterException - * @throws TooManyRequestsException * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminGetUser($input): AdminGetUserResponse { $input = AdminGetUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminGetUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new AdminGetUserResponse($response); @@ -573,43 +573,43 @@ public function adminGetUser($input): AdminGetUserResponse * '@region'?: string|null, * }|AdminInitiateAuthRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws NotAuthorizedException - * @throws TooManyRequestsException * @throws InternalErrorException - * @throws UnexpectedLambdaException - * @throws InvalidUserPoolConfigurationException - * @throws UserLambdaValidationException + * @throws InvalidEmailRoleAccessPolicyException * @throws InvalidLambdaResponseException - * @throws MFAMethodNotFoundException + * @throws InvalidParameterException * @throws InvalidSmsRoleAccessPolicyException - * @throws InvalidEmailRoleAccessPolicyException * @throws InvalidSmsRoleTrustRelationshipException + * @throws InvalidUserPoolConfigurationException + * @throws MFAMethodNotFoundException + * @throws NotAuthorizedException * @throws PasswordResetRequiredException - * @throws UserNotFoundException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException * @throws UserNotConfirmedException + * @throws UserNotFoundException */ public function adminInitiateAuth($input): AdminInitiateAuthResponse { $input = AdminInitiateAuthRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminInitiateAuth', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'InternalErrorException' => InternalErrorException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'InvalidUserPoolConfigurationException' => InvalidUserPoolConfigurationException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'MFAMethodNotFoundException' => MFAMethodNotFoundException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, - 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, + 'InvalidUserPoolConfigurationException' => InvalidUserPoolConfigurationException::class, + 'MFAMethodNotFoundException' => MFAMethodNotFoundException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, 'PasswordResetRequiredException' => PasswordResetRequiredException::class, - 'UserNotFoundException' => UserNotFoundException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, 'UserNotConfirmedException' => UserNotConfirmedException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new AdminInitiateAuthResponse($response); @@ -644,23 +644,23 @@ public function adminInitiateAuth($input): AdminInitiateAuthResponse * '@region'?: string|null, * }|AdminRemoveUserFromGroupRequest $input * + * @throws InternalErrorException * @throws InvalidParameterException + * @throws NotAuthorizedException * @throws ResourceNotFoundException * @throws TooManyRequestsException - * @throws NotAuthorizedException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminRemoveUserFromGroup($input): Result { $input = AdminRemoveUserFromGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminRemoveUserFromGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new Result($response); @@ -710,37 +710,37 @@ public function adminRemoveUserFromGroup($input): Result * '@region'?: string|null, * }|AdminResetUserPasswordRequest $input * - * @throws ResourceNotFoundException + * @throws InternalErrorException + * @throws InvalidEmailRoleAccessPolicyException + * @throws InvalidLambdaResponseException * @throws InvalidParameterException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException + * @throws InvalidSmsRoleAccessPolicyException + * @throws InvalidSmsRoleTrustRelationshipException + * @throws LimitExceededException * @throws NotAuthorizedException - * @throws InvalidLambdaResponseException + * @throws ResourceNotFoundException * @throws TooManyRequestsException - * @throws LimitExceededException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException * @throws UserNotFoundException - * @throws InvalidSmsRoleAccessPolicyException - * @throws InvalidEmailRoleAccessPolicyException - * @throws InvalidSmsRoleTrustRelationshipException - * @throws InternalErrorException */ public function adminResetUserPassword($input): AdminResetUserPasswordResponse { $input = AdminResetUserPasswordRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminResetUserPassword', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, + 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, + 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, + 'LimitExceededException' => LimitExceededException::class, 'NotAuthorizedException' => NotAuthorizedException::class, - 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'LimitExceededException' => LimitExceededException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, - 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, - 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new AdminResetUserPasswordResponse($response); @@ -794,27 +794,27 @@ public function adminResetUserPassword($input): AdminResetUserPasswordResponse * '@region'?: string|null, * }|AdminSetUserPasswordRequest $input * - * @throws ResourceNotFoundException - * @throws NotAuthorizedException - * @throws UserNotFoundException * @throws InternalErrorException - * @throws TooManyRequestsException * @throws InvalidParameterException * @throws InvalidPasswordException + * @throws NotAuthorizedException * @throws PasswordHistoryPolicyViolationException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UserNotFoundException */ public function adminSetUserPassword($input): AdminSetUserPasswordResponse { $input = AdminSetUserPasswordRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminSetUserPassword', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, - 'UserNotFoundException' => UserNotFoundException::class, 'InternalErrorException' => InternalErrorException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidPasswordException' => InvalidPasswordException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, 'PasswordHistoryPolicyViolationException' => PasswordHistoryPolicyViolationException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new AdminSetUserPasswordResponse($response); @@ -869,37 +869,37 @@ public function adminSetUserPassword($input): AdminSetUserPasswordResponse * '@region'?: string|null, * }|AdminUpdateUserAttributesRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException - * @throws InvalidLambdaResponseException * @throws AliasExistsException - * @throws TooManyRequestsException - * @throws NotAuthorizedException - * @throws UserNotFoundException * @throws InternalErrorException - * @throws InvalidSmsRoleAccessPolicyException * @throws InvalidEmailRoleAccessPolicyException + * @throws InvalidLambdaResponseException + * @throws InvalidParameterException + * @throws InvalidSmsRoleAccessPolicyException * @throws InvalidSmsRoleTrustRelationshipException + * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException + * @throws UserNotFoundException */ public function adminUpdateUserAttributes($input): AdminUpdateUserAttributesResponse { $input = AdminUpdateUserAttributesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminUpdateUserAttributes', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, - 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'AliasExistsException' => AliasExistsException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, - 'UserNotFoundException' => UserNotFoundException::class, 'InternalErrorException' => InternalErrorException::class, - 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, + 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new AdminUpdateUserAttributesResponse($response); @@ -949,23 +949,23 @@ public function adminUpdateUserAttributes($input): AdminUpdateUserAttributesResp * '@region'?: string|null, * }|AdminUserGlobalSignOutRequest $input * - * @throws ResourceNotFoundException + * @throws InternalErrorException * @throws InvalidParameterException - * @throws TooManyRequestsException * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException * @throws UserNotFoundException - * @throws InternalErrorException */ public function adminUserGlobalSignOut($input): AdminUserGlobalSignOutResponse { $input = AdminUserGlobalSignOutRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AdminUserGlobalSignOut', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new AdminUserGlobalSignOutResponse($response); @@ -997,24 +997,24 @@ public function adminUserGlobalSignOut($input): AdminUserGlobalSignOutResponse * }|AssociateSoftwareTokenRequest $input * * @throws ConcurrentModificationException + * @throws ForbiddenException + * @throws InternalErrorException * @throws InvalidParameterException * @throws NotAuthorizedException * @throws ResourceNotFoundException - * @throws InternalErrorException * @throws SoftwareTokenMFANotFoundException - * @throws ForbiddenException */ public function associateSoftwareToken($input = []): AssociateSoftwareTokenResponse { $input = AssociateSoftwareTokenRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AssociateSoftwareToken', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'ConcurrentModificationException' => ConcurrentModificationException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'NotAuthorizedException' => NotAuthorizedException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, 'SoftwareTokenMFANotFoundException' => SoftwareTokenMFANotFoundException::class, - 'ForbiddenException' => ForbiddenException::class, ]])); return new AssociateSoftwareTokenResponse($response); @@ -1043,35 +1043,35 @@ public function associateSoftwareToken($input = []): AssociateSoftwareTokenRespo * '@region'?: string|null, * }|ChangePasswordRequest $input * - * @throws ResourceNotFoundException + * @throws ForbiddenException + * @throws InternalErrorException * @throws InvalidParameterException * @throws InvalidPasswordException - * @throws PasswordHistoryPolicyViolationException - * @throws NotAuthorizedException - * @throws TooManyRequestsException * @throws LimitExceededException + * @throws NotAuthorizedException + * @throws PasswordHistoryPolicyViolationException * @throws PasswordResetRequiredException - * @throws UserNotFoundException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException * @throws UserNotConfirmedException - * @throws InternalErrorException - * @throws ForbiddenException + * @throws UserNotFoundException */ public function changePassword($input): ChangePasswordResponse { $input = ChangePasswordRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ChangePassword', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidPasswordException' => InvalidPasswordException::class, - 'PasswordHistoryPolicyViolationException' => PasswordHistoryPolicyViolationException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'LimitExceededException' => LimitExceededException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, + 'PasswordHistoryPolicyViolationException' => PasswordHistoryPolicyViolationException::class, 'PasswordResetRequiredException' => PasswordResetRequiredException::class, - 'UserNotFoundException' => UserNotFoundException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, 'UserNotConfirmedException' => UserNotConfirmedException::class, - 'InternalErrorException' => InternalErrorException::class, - 'ForbiddenException' => ForbiddenException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new ChangePasswordResponse($response); @@ -1103,45 +1103,45 @@ public function changePassword($input): ChangePasswordResponse * '@region'?: string|null, * }|ConfirmForgotPasswordRequest $input * - * @throws ResourceNotFoundException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException + * @throws CodeMismatchException + * @throws ExpiredCodeException + * @throws ForbiddenException + * @throws InternalErrorException + * @throws InvalidLambdaResponseException * @throws InvalidParameterException * @throws InvalidPasswordException - * @throws PasswordHistoryPolicyViolationException + * @throws LimitExceededException * @throws NotAuthorizedException - * @throws CodeMismatchException - * @throws ExpiredCodeException + * @throws PasswordHistoryPolicyViolationException + * @throws ResourceNotFoundException * @throws TooManyFailedAttemptsException - * @throws InvalidLambdaResponseException * @throws TooManyRequestsException - * @throws LimitExceededException - * @throws UserNotFoundException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException * @throws UserNotConfirmedException - * @throws InternalErrorException - * @throws ForbiddenException + * @throws UserNotFoundException */ public function confirmForgotPassword($input): ConfirmForgotPasswordResponse { $input = ConfirmForgotPasswordRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ConfirmForgotPassword', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'CodeMismatchException' => CodeMismatchException::class, + 'ExpiredCodeException' => ExpiredCodeException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidPasswordException' => InvalidPasswordException::class, - 'PasswordHistoryPolicyViolationException' => PasswordHistoryPolicyViolationException::class, + 'LimitExceededException' => LimitExceededException::class, 'NotAuthorizedException' => NotAuthorizedException::class, - 'CodeMismatchException' => CodeMismatchException::class, - 'ExpiredCodeException' => ExpiredCodeException::class, + 'PasswordHistoryPolicyViolationException' => PasswordHistoryPolicyViolationException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyFailedAttemptsException' => TooManyFailedAttemptsException::class, - 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'LimitExceededException' => LimitExceededException::class, - 'UserNotFoundException' => UserNotFoundException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, 'UserNotConfirmedException' => UserNotConfirmedException::class, - 'InternalErrorException' => InternalErrorException::class, - 'ForbiddenException' => ForbiddenException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new ConfirmForgotPasswordResponse($response); @@ -1179,41 +1179,41 @@ public function confirmForgotPassword($input): ConfirmForgotPasswordResponse * '@region'?: string|null, * }|ConfirmSignUpRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException - * @throws NotAuthorizedException - * @throws TooManyFailedAttemptsException + * @throws AliasExistsException * @throws CodeMismatchException * @throws ExpiredCodeException + * @throws ForbiddenException + * @throws InternalErrorException * @throws InvalidLambdaResponseException - * @throws AliasExistsException - * @throws TooManyRequestsException + * @throws InvalidParameterException * @throws LimitExceededException + * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyFailedAttemptsException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException * @throws UserNotFoundException - * @throws InternalErrorException - * @throws ForbiddenException */ public function confirmSignUp($input): ConfirmSignUpResponse { $input = ConfirmSignUpRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ConfirmSignUp', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, - 'TooManyFailedAttemptsException' => TooManyFailedAttemptsException::class, + 'AliasExistsException' => AliasExistsException::class, 'CodeMismatchException' => CodeMismatchException::class, 'ExpiredCodeException' => ExpiredCodeException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'AliasExistsException' => AliasExistsException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'LimitExceededException' => LimitExceededException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyFailedAttemptsException' => TooManyFailedAttemptsException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, - 'ForbiddenException' => ForbiddenException::class, ]])); return new ConfirmSignUpResponse($response); @@ -1249,25 +1249,25 @@ public function confirmSignUp($input): ConfirmSignUpResponse * '@region'?: string|null, * }|CreateGroupRequest $input * - * @throws InvalidParameterException * @throws GroupExistsException - * @throws ResourceNotFoundException - * @throws TooManyRequestsException + * @throws InternalErrorException + * @throws InvalidParameterException * @throws LimitExceededException * @throws NotAuthorizedException - * @throws InternalErrorException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException */ public function createGroup($input): CreateGroupResponse { $input = CreateGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameterException' => InvalidParameterException::class, 'GroupExistsException' => GroupExistsException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'LimitExceededException' => LimitExceededException::class, 'NotAuthorizedException' => NotAuthorizedException::class, - 'InternalErrorException' => InternalErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, ]])); return new CreateGroupResponse($response); @@ -1317,41 +1317,41 @@ public function createGroup($input): CreateGroupResponse * '@region'?: string|null, * }|ForgotPasswordRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException - * @throws NotAuthorizedException + * @throws CodeDeliveryFailureException + * @throws ForbiddenException + * @throws InternalErrorException + * @throws InvalidEmailRoleAccessPolicyException * @throws InvalidLambdaResponseException - * @throws TooManyRequestsException - * @throws LimitExceededException + * @throws InvalidParameterException * @throws InvalidSmsRoleAccessPolicyException * @throws InvalidSmsRoleTrustRelationshipException - * @throws InvalidEmailRoleAccessPolicyException - * @throws CodeDeliveryFailureException + * @throws LimitExceededException + * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException * @throws UserNotFoundException - * @throws InternalErrorException - * @throws ForbiddenException */ public function forgotPassword($input): ForgotPasswordResponse { $input = ForgotPasswordRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ForgotPassword', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, + 'CodeDeliveryFailureException' => CodeDeliveryFailureException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, - 'LimitExceededException' => LimitExceededException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, - 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, - 'CodeDeliveryFailureException' => CodeDeliveryFailureException::class, + 'LimitExceededException' => LimitExceededException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, - 'ForbiddenException' => ForbiddenException::class, ]])); return new ForgotPasswordResponse($response); @@ -1378,29 +1378,29 @@ public function forgotPassword($input): ForgotPasswordResponse * '@region'?: string|null, * }|GetUserRequest $input * - * @throws ResourceNotFoundException + * @throws ForbiddenException + * @throws InternalErrorException * @throws InvalidParameterException * @throws NotAuthorizedException - * @throws TooManyRequestsException * @throws PasswordResetRequiredException - * @throws UserNotFoundException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException * @throws UserNotConfirmedException - * @throws InternalErrorException - * @throws ForbiddenException + * @throws UserNotFoundException */ public function getUser($input): GetUserResponse { $input = GetUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'NotAuthorizedException' => NotAuthorizedException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'PasswordResetRequiredException' => PasswordResetRequiredException::class, - 'UserNotFoundException' => UserNotFoundException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, 'UserNotConfirmedException' => UserNotConfirmedException::class, - 'InternalErrorException' => InternalErrorException::class, - 'ForbiddenException' => ForbiddenException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new GetUserResponse($response); @@ -1449,43 +1449,43 @@ public function getUser($input): GetUserResponse * '@region'?: string|null, * }|InitiateAuthRequest $input * - * @throws ResourceNotFoundException + * @throws ForbiddenException + * @throws InternalErrorException + * @throws InvalidEmailRoleAccessPolicyException + * @throws InvalidLambdaResponseException * @throws InvalidParameterException + * @throws InvalidSmsRoleAccessPolicyException + * @throws InvalidSmsRoleTrustRelationshipException + * @throws InvalidUserPoolConfigurationException * @throws NotAuthorizedException + * @throws PasswordResetRequiredException + * @throws ResourceNotFoundException * @throws TooManyRequestsException * @throws UnexpectedLambdaException - * @throws InvalidUserPoolConfigurationException * @throws UserLambdaValidationException - * @throws InvalidLambdaResponseException - * @throws PasswordResetRequiredException - * @throws UserNotFoundException * @throws UserNotConfirmedException - * @throws InternalErrorException - * @throws InvalidSmsRoleAccessPolicyException - * @throws InvalidEmailRoleAccessPolicyException - * @throws InvalidSmsRoleTrustRelationshipException - * @throws ForbiddenException + * @throws UserNotFoundException */ public function initiateAuth($input): InitiateAuthResponse { $input = InitiateAuthRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'InitiateAuth', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, + 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, + 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, + 'InvalidUserPoolConfigurationException' => InvalidUserPoolConfigurationException::class, 'NotAuthorizedException' => NotAuthorizedException::class, + 'PasswordResetRequiredException' => PasswordResetRequiredException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'InvalidUserPoolConfigurationException' => InvalidUserPoolConfigurationException::class, 'UserLambdaValidationException' => UserLambdaValidationException::class, - 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'PasswordResetRequiredException' => PasswordResetRequiredException::class, - 'UserNotFoundException' => UserNotFoundException::class, 'UserNotConfirmedException' => UserNotConfirmedException::class, - 'InternalErrorException' => InternalErrorException::class, - 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, - 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, - 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, - 'ForbiddenException' => ForbiddenException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new InitiateAuthResponse($response); @@ -1517,21 +1517,21 @@ public function initiateAuth($input): InitiateAuthResponse * '@region'?: string|null, * }|ListGroupsRequest $input * + * @throws InternalErrorException * @throws InvalidParameterException + * @throws NotAuthorizedException * @throws ResourceNotFoundException * @throws TooManyRequestsException - * @throws NotAuthorizedException - * @throws InternalErrorException */ public function listGroups($input): ListGroupsResponse { $input = ListGroupsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListGroups', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new ListGroupsResponse($response, $this, $input); @@ -1565,21 +1565,21 @@ public function listGroups($input): ListGroupsResponse * '@region'?: string|null, * }|ListUsersRequest $input * + * @throws InternalErrorException * @throws InvalidParameterException + * @throws NotAuthorizedException * @throws ResourceNotFoundException * @throws TooManyRequestsException - * @throws NotAuthorizedException - * @throws InternalErrorException */ public function listUsers($input): ListUsersResponse { $input = ListUsersRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListUsers', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, - 'InternalErrorException' => InternalErrorException::class, ]])); return new ListUsersResponse($response, $this, $input); @@ -1625,41 +1625,41 @@ public function listUsers($input): ListUsersResponse * '@region'?: string|null, * }|ResendConfirmationCodeRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException - * @throws NotAuthorizedException + * @throws CodeDeliveryFailureException + * @throws ForbiddenException + * @throws InternalErrorException + * @throws InvalidEmailRoleAccessPolicyException * @throws InvalidLambdaResponseException - * @throws TooManyRequestsException - * @throws LimitExceededException + * @throws InvalidParameterException * @throws InvalidSmsRoleAccessPolicyException * @throws InvalidSmsRoleTrustRelationshipException - * @throws InvalidEmailRoleAccessPolicyException - * @throws CodeDeliveryFailureException + * @throws LimitExceededException + * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException * @throws UserNotFoundException - * @throws InternalErrorException - * @throws ForbiddenException */ public function resendConfirmationCode($input): ResendConfirmationCodeResponse { $input = ResendConfirmationCodeRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ResendConfirmationCode', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, + 'CodeDeliveryFailureException' => CodeDeliveryFailureException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, - 'LimitExceededException' => LimitExceededException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, - 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, - 'CodeDeliveryFailureException' => CodeDeliveryFailureException::class, + 'LimitExceededException' => LimitExceededException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, 'UserNotFoundException' => UserNotFoundException::class, - 'InternalErrorException' => InternalErrorException::class, - 'ForbiddenException' => ForbiddenException::class, ]])); return new ResendConfirmationCodeResponse($response); @@ -1711,57 +1711,57 @@ public function resendConfirmationCode($input): ResendConfirmationCodeResponse * '@region'?: string|null, * }|RespondToAuthChallengeRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws NotAuthorizedException + * @throws AliasExistsException * @throws CodeMismatchException * @throws ExpiredCodeException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException - * @throws InvalidPasswordException - * @throws PasswordHistoryPolicyViolationException + * @throws ForbiddenException + * @throws InternalErrorException + * @throws InvalidEmailRoleAccessPolicyException * @throws InvalidLambdaResponseException - * @throws TooManyRequestsException + * @throws InvalidParameterException + * @throws InvalidPasswordException + * @throws InvalidSmsRoleAccessPolicyException + * @throws InvalidSmsRoleTrustRelationshipException * @throws InvalidUserPoolConfigurationException * @throws MFAMethodNotFoundException + * @throws NotAuthorizedException + * @throws PasswordHistoryPolicyViolationException * @throws PasswordResetRequiredException - * @throws UserNotFoundException - * @throws UserNotConfirmedException - * @throws InvalidSmsRoleAccessPolicyException - * @throws InvalidSmsRoleTrustRelationshipException - * @throws InvalidEmailRoleAccessPolicyException - * @throws AliasExistsException - * @throws InternalErrorException + * @throws ResourceNotFoundException * @throws SoftwareTokenMFANotFoundException - * @throws ForbiddenException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException + * @throws UserNotConfirmedException + * @throws UserNotFoundException */ public function respondToAuthChallenge($input): RespondToAuthChallengeResponse { $input = RespondToAuthChallengeRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'RespondToAuthChallenge', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, + 'AliasExistsException' => AliasExistsException::class, 'CodeMismatchException' => CodeMismatchException::class, 'ExpiredCodeException' => ExpiredCodeException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, - 'InvalidPasswordException' => InvalidPasswordException::class, - 'PasswordHistoryPolicyViolationException' => PasswordHistoryPolicyViolationException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidPasswordException' => InvalidPasswordException::class, + 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, + 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, 'InvalidUserPoolConfigurationException' => InvalidUserPoolConfigurationException::class, 'MFAMethodNotFoundException' => MFAMethodNotFoundException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, + 'PasswordHistoryPolicyViolationException' => PasswordHistoryPolicyViolationException::class, 'PasswordResetRequiredException' => PasswordResetRequiredException::class, - 'UserNotFoundException' => UserNotFoundException::class, - 'UserNotConfirmedException' => UserNotConfirmedException::class, - 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, - 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, - 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, - 'AliasExistsException' => AliasExistsException::class, - 'InternalErrorException' => InternalErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'SoftwareTokenMFANotFoundException' => SoftwareTokenMFANotFoundException::class, - 'ForbiddenException' => ForbiddenException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'UserNotConfirmedException' => UserNotConfirmedException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new RespondToAuthChallengeResponse($response); @@ -1789,25 +1789,25 @@ public function respondToAuthChallenge($input): RespondToAuthChallengeResponse * '@region'?: string|null, * }|RevokeTokenRequest $input * - * @throws TooManyRequestsException + * @throws ForbiddenException * @throws InternalErrorException - * @throws UnauthorizedException * @throws InvalidParameterException + * @throws TooManyRequestsException + * @throws UnauthorizedException * @throws UnsupportedOperationException * @throws UnsupportedTokenTypeException - * @throws ForbiddenException */ public function revokeToken($input): RevokeTokenResponse { $input = RevokeTokenRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'RevokeToken', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TooManyRequestsException' => TooManyRequestsException::class, + 'ForbiddenException' => ForbiddenException::class, 'InternalErrorException' => InternalErrorException::class, - 'UnauthorizedException' => UnauthorizedException::class, 'InvalidParameterException' => InvalidParameterException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnauthorizedException' => UnauthorizedException::class, 'UnsupportedOperationException' => UnsupportedOperationException::class, 'UnsupportedTokenTypeException' => UnsupportedTokenTypeException::class, - 'ForbiddenException' => ForbiddenException::class, ]])); return new RevokeTokenResponse($response); @@ -1843,27 +1843,27 @@ public function revokeToken($input): RevokeTokenResponse * '@region'?: string|null, * }|SetUserMFAPreferenceRequest $input * - * @throws ResourceNotFoundException + * @throws ForbiddenException + * @throws InternalErrorException * @throws InvalidParameterException * @throws NotAuthorizedException * @throws PasswordResetRequiredException - * @throws UserNotFoundException + * @throws ResourceNotFoundException * @throws UserNotConfirmedException - * @throws InternalErrorException - * @throws ForbiddenException + * @throws UserNotFoundException */ public function setUserMfaPreference($input): SetUserMFAPreferenceResponse { $input = SetUserMFAPreferenceRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SetUserMFAPreference', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'NotAuthorizedException' => NotAuthorizedException::class, 'PasswordResetRequiredException' => PasswordResetRequiredException::class, - 'UserNotFoundException' => UserNotFoundException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'UserNotConfirmedException' => UserNotConfirmedException::class, - 'InternalErrorException' => InternalErrorException::class, - 'ForbiddenException' => ForbiddenException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new SetUserMFAPreferenceResponse($response); @@ -1914,43 +1914,43 @@ public function setUserMfaPreference($input): SetUserMFAPreferenceResponse * '@region'?: string|null, * }|SignUpRequest $input * - * @throws ResourceNotFoundException + * @throws CodeDeliveryFailureException + * @throws ForbiddenException + * @throws InternalErrorException + * @throws InvalidEmailRoleAccessPolicyException + * @throws InvalidLambdaResponseException * @throws InvalidParameterException - * @throws UnexpectedLambdaException - * @throws UserLambdaValidationException - * @throws NotAuthorizedException * @throws InvalidPasswordException - * @throws InvalidLambdaResponseException - * @throws UsernameExistsException - * @throws TooManyRequestsException - * @throws InternalErrorException - * @throws LimitExceededException * @throws InvalidSmsRoleAccessPolicyException * @throws InvalidSmsRoleTrustRelationshipException - * @throws InvalidEmailRoleAccessPolicyException - * @throws CodeDeliveryFailureException - * @throws ForbiddenException + * @throws LimitExceededException + * @throws NotAuthorizedException + * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UnexpectedLambdaException + * @throws UserLambdaValidationException + * @throws UsernameExistsException */ public function signUp($input): SignUpResponse { $input = SignUpRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SignUp', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'CodeDeliveryFailureException' => CodeDeliveryFailureException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, + 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, + 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'UnexpectedLambdaException' => UnexpectedLambdaException::class, - 'UserLambdaValidationException' => UserLambdaValidationException::class, - 'NotAuthorizedException' => NotAuthorizedException::class, 'InvalidPasswordException' => InvalidPasswordException::class, - 'InvalidLambdaResponseException' => InvalidLambdaResponseException::class, - 'UsernameExistsException' => UsernameExistsException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, - 'InternalErrorException' => InternalErrorException::class, - 'LimitExceededException' => LimitExceededException::class, 'InvalidSmsRoleAccessPolicyException' => InvalidSmsRoleAccessPolicyException::class, 'InvalidSmsRoleTrustRelationshipException' => InvalidSmsRoleTrustRelationshipException::class, - 'InvalidEmailRoleAccessPolicyException' => InvalidEmailRoleAccessPolicyException::class, - 'CodeDeliveryFailureException' => CodeDeliveryFailureException::class, - 'ForbiddenException' => ForbiddenException::class, + 'LimitExceededException' => LimitExceededException::class, + 'NotAuthorizedException' => NotAuthorizedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnexpectedLambdaException' => UnexpectedLambdaException::class, + 'UserLambdaValidationException' => UserLambdaValidationException::class, + 'UsernameExistsException' => UsernameExistsException::class, ]])); return new SignUpResponse($response); @@ -1979,37 +1979,37 @@ public function signUp($input): SignUpResponse * '@region'?: string|null, * }|VerifySoftwareTokenRequest $input * + * @throws CodeMismatchException + * @throws EnableSoftwareTokenMFAException + * @throws ForbiddenException + * @throws InternalErrorException * @throws InvalidParameterException - * @throws ResourceNotFoundException * @throws InvalidUserPoolConfigurationException * @throws NotAuthorizedException - * @throws TooManyRequestsException * @throws PasswordResetRequiredException - * @throws UserNotFoundException - * @throws UserNotConfirmedException - * @throws InternalErrorException - * @throws EnableSoftwareTokenMFAException + * @throws ResourceNotFoundException * @throws SoftwareTokenMFANotFoundException - * @throws CodeMismatchException - * @throws ForbiddenException + * @throws TooManyRequestsException + * @throws UserNotConfirmedException + * @throws UserNotFoundException */ public function verifySoftwareToken($input): VerifySoftwareTokenResponse { $input = VerifySoftwareTokenRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'VerifySoftwareToken', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'CodeMismatchException' => CodeMismatchException::class, + 'EnableSoftwareTokenMFAException' => EnableSoftwareTokenMFAException::class, + 'ForbiddenException' => ForbiddenException::class, + 'InternalErrorException' => InternalErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'InvalidUserPoolConfigurationException' => InvalidUserPoolConfigurationException::class, 'NotAuthorizedException' => NotAuthorizedException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'PasswordResetRequiredException' => PasswordResetRequiredException::class, - 'UserNotFoundException' => UserNotFoundException::class, - 'UserNotConfirmedException' => UserNotConfirmedException::class, - 'InternalErrorException' => InternalErrorException::class, - 'EnableSoftwareTokenMFAException' => EnableSoftwareTokenMFAException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'SoftwareTokenMFANotFoundException' => SoftwareTokenMFANotFoundException::class, - 'CodeMismatchException' => CodeMismatchException::class, - 'ForbiddenException' => ForbiddenException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UserNotConfirmedException' => UserNotConfirmedException::class, + 'UserNotFoundException' => UserNotFoundException::class, ]])); return new VerifySoftwareTokenResponse($response); diff --git a/src/Service/Comprehend/CHANGELOG.md b/src/Service/Comprehend/CHANGELOG.md index 00cfe8795..a73a0bb03 100644 --- a/src/Service/Comprehend/CHANGELOG.md +++ b/src/Service/Comprehend/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.3.0 ### Added diff --git a/src/Service/Comprehend/src/ComprehendClient.php b/src/Service/Comprehend/src/ComprehendClient.php index 24caae351..20a648902 100644 --- a/src/Service/Comprehend/src/ComprehendClient.php +++ b/src/Service/Comprehend/src/ComprehendClient.php @@ -29,17 +29,17 @@ class ComprehendClient extends AbstractApi * '@region'?: string|null, * }|DetectDominantLanguageRequest $input * + * @throws InternalServerException * @throws InvalidRequestException * @throws TextSizeLimitExceededException - * @throws InternalServerException */ public function detectDominantLanguage($input): DetectDominantLanguageResponse { $input = DetectDominantLanguageRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DetectDominantLanguage', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerException' => InternalServerException::class, 'InvalidRequestException' => InvalidRequestException::class, 'TextSizeLimitExceededException' => TextSizeLimitExceededException::class, - 'InternalServerException' => InternalServerException::class, ]])); return new DetectDominantLanguageResponse($response); diff --git a/src/Service/DynamoDb/CHANGELOG.md b/src/Service/DynamoDb/CHANGELOG.md index 3bd4d1fb7..bba87a35b 100644 --- a/src/Service/DynamoDb/CHANGELOG.md +++ b/src/Service/DynamoDb/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 3.5.0 ### Added diff --git a/src/Service/DynamoDb/src/DynamoDbClient.php b/src/Service/DynamoDb/src/DynamoDbClient.php index c326da908..b85c4ef9a 100644 --- a/src/Service/DynamoDb/src/DynamoDbClient.php +++ b/src/Service/DynamoDb/src/DynamoDbClient.php @@ -143,19 +143,19 @@ class DynamoDbClient extends AbstractApi * '@region'?: string|null, * }|BatchGetItemInput $input * + * @throws InternalServerErrorException * @throws ProvisionedThroughputExceededException - * @throws ResourceNotFoundException * @throws RequestLimitExceededException - * @throws InternalServerErrorException + * @throws ResourceNotFoundException */ public function batchGetItem($input): BatchGetItemOutput { $input = BatchGetItemInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'BatchGetItem', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerError' => InternalServerErrorException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ], 'usesEndpointDiscovery' => true])); return new BatchGetItemOutput($response, $this, $input); @@ -236,21 +236,21 @@ public function batchGetItem($input): BatchGetItemOutput * '@region'?: string|null, * }|BatchWriteItemInput $input * - * @throws ProvisionedThroughputExceededException - * @throws ResourceNotFoundException + * @throws InternalServerErrorException * @throws ItemCollectionSizeLimitExceededException + * @throws ProvisionedThroughputExceededException * @throws RequestLimitExceededException - * @throws InternalServerErrorException + * @throws ResourceNotFoundException */ public function batchWriteItem($input): BatchWriteItemOutput { $input = BatchWriteItemInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'BatchWriteItem', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalServerError' => InternalServerErrorException::class, 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, + 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ], 'usesEndpointDiscovery' => true])); return new BatchWriteItemOutput($response); @@ -293,17 +293,17 @@ public function batchWriteItem($input): BatchWriteItemOutput * '@region'?: string|null, * }|CreateTableInput $input * - * @throws ResourceInUseException - * @throws LimitExceededException * @throws InternalServerErrorException + * @throws LimitExceededException + * @throws ResourceInUseException */ public function createTable($input): CreateTableOutput { $input = CreateTableInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateTable', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceInUseException' => ResourceInUseException::class, - 'LimitExceededException' => LimitExceededException::class, 'InternalServerError' => InternalServerErrorException::class, + 'LimitExceededException' => LimitExceededException::class, + 'ResourceInUseException' => ResourceInUseException::class, ], 'usesEndpointDiscovery' => true])); return new CreateTableOutput($response); @@ -341,26 +341,26 @@ public function createTable($input): CreateTableOutput * }|DeleteItemInput $input * * @throws ConditionalCheckFailedException + * @throws InternalServerErrorException + * @throws ItemCollectionSizeLimitExceededException * @throws ProvisionedThroughputExceededException + * @throws ReplicatedWriteConflictException + * @throws RequestLimitExceededException * @throws ResourceNotFoundException - * @throws ItemCollectionSizeLimitExceededException * @throws TransactionConflictException - * @throws RequestLimitExceededException - * @throws InternalServerErrorException - * @throws ReplicatedWriteConflictException */ public function deleteItem($input): DeleteItemOutput { $input = DeleteItemInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteItem', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'ConditionalCheckFailedException' => ConditionalCheckFailedException::class, + 'InternalServerError' => InternalServerErrorException::class, + 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ReplicatedWriteConflictException' => ReplicatedWriteConflictException::class, + 'RequestLimitExceeded' => RequestLimitExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'TransactionConflictException' => TransactionConflictException::class, - 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, - 'ReplicatedWriteConflictException' => ReplicatedWriteConflictException::class, ], 'usesEndpointDiscovery' => true])); return new DeleteItemOutput($response); @@ -395,19 +395,19 @@ public function deleteItem($input): DeleteItemOutput * '@region'?: string|null, * }|DeleteTableInput $input * + * @throws InternalServerErrorException + * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws LimitExceededException - * @throws InternalServerErrorException */ public function deleteTable($input): DeleteTableOutput { $input = DeleteTableInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteTable', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerError' => InternalServerErrorException::class, + 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, ], 'usesEndpointDiscovery' => true])); return new DeleteTableOutput($response); @@ -453,15 +453,15 @@ public function describeEndpoints($input = []): DescribeEndpointsResponse * '@region'?: string|null, * }|DescribeTableInput $input * - * @throws ResourceNotFoundException * @throws InternalServerErrorException + * @throws ResourceNotFoundException */ public function describeTable($input): DescribeTableOutput { $input = DescribeTableInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeTable', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ], 'usesEndpointDiscovery' => true])); return new DescribeTableOutput($response); @@ -495,26 +495,26 @@ public function describeTable($input): DescribeTableOutput * }|ExecuteStatementInput $input * * @throws ConditionalCheckFailedException + * @throws DuplicateItemException + * @throws InternalServerErrorException + * @throws ItemCollectionSizeLimitExceededException * @throws ProvisionedThroughputExceededException + * @throws RequestLimitExceededException * @throws ResourceNotFoundException - * @throws ItemCollectionSizeLimitExceededException * @throws TransactionConflictException - * @throws RequestLimitExceededException - * @throws InternalServerErrorException - * @throws DuplicateItemException */ public function executeStatement($input): ExecuteStatementOutput { $input = ExecuteStatementInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ExecuteStatement', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'ConditionalCheckFailedException' => ConditionalCheckFailedException::class, + 'DuplicateItemException' => DuplicateItemException::class, + 'InternalServerError' => InternalServerErrorException::class, + 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'RequestLimitExceeded' => RequestLimitExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'TransactionConflictException' => TransactionConflictException::class, - 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, - 'DuplicateItemException' => DuplicateItemException::class, ]])); return new ExecuteStatementOutput($response); @@ -542,19 +542,19 @@ public function executeStatement($input): ExecuteStatementOutput * '@region'?: string|null, * }|GetItemInput $input * + * @throws InternalServerErrorException * @throws ProvisionedThroughputExceededException - * @throws ResourceNotFoundException * @throws RequestLimitExceededException - * @throws InternalServerErrorException + * @throws ResourceNotFoundException */ public function getItem($input): GetItemOutput { $input = GetItemInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetItem', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerError' => InternalServerErrorException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ], 'usesEndpointDiscovery' => true])); return new GetItemOutput($response); @@ -628,26 +628,26 @@ public function listTables($input = []): ListTablesOutput * }|PutItemInput $input * * @throws ConditionalCheckFailedException + * @throws InternalServerErrorException + * @throws ItemCollectionSizeLimitExceededException * @throws ProvisionedThroughputExceededException + * @throws ReplicatedWriteConflictException + * @throws RequestLimitExceededException * @throws ResourceNotFoundException - * @throws ItemCollectionSizeLimitExceededException * @throws TransactionConflictException - * @throws RequestLimitExceededException - * @throws InternalServerErrorException - * @throws ReplicatedWriteConflictException */ public function putItem($input): PutItemOutput { $input = PutItemInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutItem', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'ConditionalCheckFailedException' => ConditionalCheckFailedException::class, + 'InternalServerError' => InternalServerErrorException::class, + 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ReplicatedWriteConflictException' => ReplicatedWriteConflictException::class, + 'RequestLimitExceeded' => RequestLimitExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'TransactionConflictException' => TransactionConflictException::class, - 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, - 'ReplicatedWriteConflictException' => ReplicatedWriteConflictException::class, ], 'usesEndpointDiscovery' => true])); return new PutItemOutput($response); @@ -719,19 +719,19 @@ public function putItem($input): PutItemOutput * '@region'?: string|null, * }|QueryInput $input * + * @throws InternalServerErrorException * @throws ProvisionedThroughputExceededException - * @throws ResourceNotFoundException * @throws RequestLimitExceededException - * @throws InternalServerErrorException + * @throws ResourceNotFoundException */ public function query($input): QueryOutput { $input = QueryInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Query', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerError' => InternalServerErrorException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ], 'usesEndpointDiscovery' => true])); return new QueryOutput($response, $this, $input); @@ -796,19 +796,19 @@ public function query($input): QueryOutput * '@region'?: string|null, * }|ScanInput $input * + * @throws InternalServerErrorException * @throws ProvisionedThroughputExceededException - * @throws ResourceNotFoundException * @throws RequestLimitExceededException - * @throws InternalServerErrorException + * @throws ResourceNotFoundException */ public function scan($input): ScanOutput { $input = ScanInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Scan', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerError' => InternalServerErrorException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ], 'usesEndpointDiscovery' => true])); return new ScanOutput($response, $this, $input); @@ -826,8 +826,8 @@ public function tableExists($input): TableExistsWaiter { $input = DescribeTableInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeTable', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new TableExistsWaiter($response, $this, $input); @@ -845,8 +845,8 @@ public function tableNotExists($input): TableNotExistsWaiter { $input = DescribeTableInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeTable', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new TableNotExistsWaiter($response, $this, $input); @@ -899,25 +899,25 @@ public function tableNotExists($input): TableNotExistsWaiter * '@region'?: string|null, * }|TransactWriteItemsInput $input * - * @throws ResourceNotFoundException - * @throws TransactionCanceledException - * @throws TransactionInProgressException * @throws IdempotentParameterMismatchException + * @throws InternalServerErrorException * @throws ProvisionedThroughputExceededException * @throws RequestLimitExceededException - * @throws InternalServerErrorException + * @throws ResourceNotFoundException + * @throws TransactionCanceledException + * @throws TransactionInProgressException */ public function transactWriteItems($input): TransactWriteItemsOutput { $input = TransactWriteItemsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'TransactWriteItems', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'TransactionCanceledException' => TransactionCanceledException::class, - 'TransactionInProgressException' => TransactionInProgressException::class, 'IdempotentParameterMismatchException' => IdempotentParameterMismatchException::class, + 'InternalServerError' => InternalServerErrorException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TransactionCanceledException' => TransactionCanceledException::class, + 'TransactionInProgressException' => TransactionInProgressException::class, ], 'usesEndpointDiscovery' => true])); return new TransactWriteItemsOutput($response); @@ -953,26 +953,26 @@ public function transactWriteItems($input): TransactWriteItemsOutput * }|UpdateItemInput $input * * @throws ConditionalCheckFailedException + * @throws InternalServerErrorException + * @throws ItemCollectionSizeLimitExceededException * @throws ProvisionedThroughputExceededException + * @throws ReplicatedWriteConflictException + * @throws RequestLimitExceededException * @throws ResourceNotFoundException - * @throws ItemCollectionSizeLimitExceededException * @throws TransactionConflictException - * @throws RequestLimitExceededException - * @throws InternalServerErrorException - * @throws ReplicatedWriteConflictException */ public function updateItem($input): UpdateItemOutput { $input = UpdateItemInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateItem', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'ConditionalCheckFailedException' => ConditionalCheckFailedException::class, + 'InternalServerError' => InternalServerErrorException::class, + 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ReplicatedWriteConflictException' => ReplicatedWriteConflictException::class, + 'RequestLimitExceeded' => RequestLimitExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ItemCollectionSizeLimitExceededException' => ItemCollectionSizeLimitExceededException::class, 'TransactionConflictException' => TransactionConflictException::class, - 'RequestLimitExceeded' => RequestLimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, - 'ReplicatedWriteConflictException' => ReplicatedWriteConflictException::class, ], 'usesEndpointDiscovery' => true])); return new UpdateItemOutput($response); @@ -1015,19 +1015,19 @@ public function updateItem($input): UpdateItemOutput * '@region'?: string|null, * }|UpdateTableInput $input * + * @throws InternalServerErrorException + * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws LimitExceededException - * @throws InternalServerErrorException */ public function updateTable($input): UpdateTableOutput { $input = UpdateTableInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateTable', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerError' => InternalServerErrorException::class, + 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, ], 'usesEndpointDiscovery' => true])); return new UpdateTableOutput($response); @@ -1067,19 +1067,19 @@ public function updateTable($input): UpdateTableOutput * '@region'?: string|null, * }|UpdateTimeToLiveInput $input * + * @throws InternalServerErrorException + * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws LimitExceededException - * @throws InternalServerErrorException */ public function updateTimeToLive($input): UpdateTimeToLiveOutput { $input = UpdateTimeToLiveInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateTimeToLive', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServerError' => InternalServerErrorException::class, + 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InternalServerError' => InternalServerErrorException::class, ], 'usesEndpointDiscovery' => true])); return new UpdateTimeToLiveOutput($response); diff --git a/src/Service/Ecr/CHANGELOG.md b/src/Service/Ecr/CHANGELOG.md index 729bd8aff..dd3d06d89 100644 --- a/src/Service/Ecr/CHANGELOG.md +++ b/src/Service/Ecr/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changed +- Sort exception alphabetically. - AWS enhancement: Documentation updates. ## 1.9.0 diff --git a/src/Service/Ecr/src/EcrClient.php b/src/Service/Ecr/src/EcrClient.php index f9578a765..c412df1d3 100644 --- a/src/Service/Ecr/src/EcrClient.php +++ b/src/Service/Ecr/src/EcrClient.php @@ -34,15 +34,15 @@ class EcrClient extends AbstractApi * '@region'?: string|null, * }|GetAuthorizationTokenRequest $input * - * @throws ServerException * @throws InvalidParameterException + * @throws ServerException */ public function getAuthorizationToken($input = []): GetAuthorizationTokenResponse { $input = GetAuthorizationTokenRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetAuthorizationToken', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServerException' => ServerException::class, 'InvalidParameterException' => InvalidParameterException::class, + 'ServerException' => ServerException::class, ]])); return new GetAuthorizationTokenResponse($response); diff --git a/src/Service/ElastiCache/CHANGELOG.md b/src/Service/ElastiCache/CHANGELOG.md index da062cd4b..b9fcf9222 100644 --- a/src/Service/ElastiCache/CHANGELOG.md +++ b/src/Service/ElastiCache/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.3.0 ### Added diff --git a/src/Service/ElastiCache/src/ElastiCacheClient.php b/src/Service/ElastiCache/src/ElastiCacheClient.php index 3e63060fa..76ffb04b7 100644 --- a/src/Service/ElastiCache/src/ElastiCacheClient.php +++ b/src/Service/ElastiCache/src/ElastiCacheClient.php @@ -48,16 +48,16 @@ class ElastiCacheClient extends AbstractApi * }|DescribeCacheClustersMessage $input * * @throws CacheClusterNotFoundFaultException - * @throws InvalidParameterValueException * @throws InvalidParameterCombinationException + * @throws InvalidParameterValueException */ public function describeCacheClusters($input = []): CacheClusterMessage { $input = DescribeCacheClustersMessage::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeCacheClusters', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'CacheClusterNotFound' => CacheClusterNotFoundFaultException::class, - 'InvalidParameterValue' => InvalidParameterValueException::class, 'InvalidParameterCombination' => InvalidParameterCombinationException::class, + 'InvalidParameterValue' => InvalidParameterValueException::class, ]])); return new CacheClusterMessage($response, $this, $input); diff --git a/src/Service/Firehose/CHANGELOG.md b/src/Service/Firehose/CHANGELOG.md index 83982c32e..71c381923 100644 --- a/src/Service/Firehose/CHANGELOG.md +++ b/src/Service/Firehose/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.4.0 ### Added diff --git a/src/Service/Firehose/src/FirehoseClient.php b/src/Service/Firehose/src/FirehoseClient.php index aa7c33a1f..ec1e78c24 100644 --- a/src/Service/Firehose/src/FirehoseClient.php +++ b/src/Service/Firehose/src/FirehoseClient.php @@ -74,20 +74,20 @@ class FirehoseClient extends AbstractApi * '@region'?: string|null, * }|PutRecordInput $input * - * @throws ResourceNotFoundException * @throws InvalidArgumentException * @throws InvalidKMSResourceException * @throws InvalidSourceException + * @throws ResourceNotFoundException * @throws ServiceUnavailableException */ public function putRecord($input): PutRecordOutput { $input = PutRecordInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutRecord', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'InvalidKMSResourceException' => InvalidKMSResourceException::class, 'InvalidSourceException' => InvalidSourceException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ServiceUnavailableException' => ServiceUnavailableException::class, ]])); @@ -165,20 +165,20 @@ public function putRecord($input): PutRecordOutput * '@region'?: string|null, * }|PutRecordBatchInput $input * - * @throws ResourceNotFoundException * @throws InvalidArgumentException * @throws InvalidKMSResourceException * @throws InvalidSourceException + * @throws ResourceNotFoundException * @throws ServiceUnavailableException */ public function putRecordBatch($input): PutRecordBatchOutput { $input = PutRecordBatchInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutRecordBatch', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'InvalidKMSResourceException' => InvalidKMSResourceException::class, 'InvalidSourceException' => InvalidSourceException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ServiceUnavailableException' => ServiceUnavailableException::class, ]])); diff --git a/src/Service/Iam/CHANGELOG.md b/src/Service/Iam/CHANGELOG.md index b631ae8d1..809b2fa5d 100644 --- a/src/Service/Iam/CHANGELOG.md +++ b/src/Service/Iam/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.6.0 ### Added diff --git a/src/Service/Iam/src/IamClient.php b/src/Service/Iam/src/IamClient.php index cdeb57f81..4294721b1 100644 --- a/src/Service/Iam/src/IamClient.php +++ b/src/Service/Iam/src/IamClient.php @@ -53,16 +53,16 @@ class IamClient extends AbstractApi * '@region'?: string|null, * }|AddUserToGroupRequest $input * - * @throws NoSuchEntityException * @throws LimitExceededException + * @throws NoSuchEntityException * @throws ServiceFailureException */ public function addUserToGroup($input): Result { $input = AddUserToGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AddUserToGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchEntity' => NoSuchEntityException::class, 'LimitExceeded' => LimitExceededException::class, + 'NoSuchEntity' => NoSuchEntityException::class, 'ServiceFailure' => ServiceFailureException::class, ]])); @@ -95,16 +95,16 @@ public function addUserToGroup($input): Result * '@region'?: string|null, * }|CreateAccessKeyRequest $input * - * @throws NoSuchEntityException * @throws LimitExceededException + * @throws NoSuchEntityException * @throws ServiceFailureException */ public function createAccessKey($input = []): CreateAccessKeyResponse { $input = CreateAccessKeyRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateAccessKey', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchEntity' => NoSuchEntityException::class, 'LimitExceeded' => LimitExceededException::class, + 'NoSuchEntity' => NoSuchEntityException::class, 'ServiceFailure' => ServiceFailureException::class, ]])); @@ -170,22 +170,22 @@ public function createServiceSpecificCredential($input): CreateServiceSpecificCr * '@region'?: string|null, * }|CreateUserRequest $input * - * @throws LimitExceededException + * @throws ConcurrentModificationException * @throws EntityAlreadyExistsException - * @throws NoSuchEntityException * @throws InvalidInputException - * @throws ConcurrentModificationException + * @throws LimitExceededException + * @throws NoSuchEntityException * @throws ServiceFailureException */ public function createUser($input): CreateUserResponse { $input = CreateUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'LimitExceeded' => LimitExceededException::class, + 'ConcurrentModification' => ConcurrentModificationException::class, 'EntityAlreadyExists' => EntityAlreadyExistsException::class, - 'NoSuchEntity' => NoSuchEntityException::class, 'InvalidInput' => InvalidInputException::class, - 'ConcurrentModification' => ConcurrentModificationException::class, + 'LimitExceeded' => LimitExceededException::class, + 'NoSuchEntity' => NoSuchEntityException::class, 'ServiceFailure' => ServiceFailureException::class, ]])); @@ -209,16 +209,16 @@ public function createUser($input): CreateUserResponse * '@region'?: string|null, * }|DeleteAccessKeyRequest $input * - * @throws NoSuchEntityException * @throws LimitExceededException + * @throws NoSuchEntityException * @throws ServiceFailureException */ public function deleteAccessKey($input): Result { $input = DeleteAccessKeyRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteAccessKey', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchEntity' => NoSuchEntityException::class, 'LimitExceeded' => LimitExceededException::class, + 'NoSuchEntity' => NoSuchEntityException::class, 'ServiceFailure' => ServiceFailureException::class, ]])); @@ -274,20 +274,20 @@ public function deleteServiceSpecificCredential($input): Result * '@region'?: string|null, * }|DeleteUserRequest $input * + * @throws ConcurrentModificationException + * @throws DeleteConflictException * @throws LimitExceededException * @throws NoSuchEntityException - * @throws DeleteConflictException - * @throws ConcurrentModificationException * @throws ServiceFailureException */ public function deleteUser($input): Result { $input = DeleteUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'ConcurrentModification' => ConcurrentModificationException::class, + 'DeleteConflict' => DeleteConflictException::class, 'LimitExceeded' => LimitExceededException::class, 'NoSuchEntity' => NoSuchEntityException::class, - 'DeleteConflict' => DeleteConflictException::class, - 'ConcurrentModification' => ConcurrentModificationException::class, 'ServiceFailure' => ServiceFailureException::class, ]])); @@ -311,16 +311,16 @@ public function deleteUser($input): Result * '@region'?: string|null, * }|DeleteUserPolicyRequest $input * - * @throws NoSuchEntityException * @throws LimitExceededException + * @throws NoSuchEntityException * @throws ServiceFailureException */ public function deleteUserPolicy($input): Result { $input = DeleteUserPolicyRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteUserPolicy', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchEntity' => NoSuchEntityException::class, 'LimitExceeded' => LimitExceededException::class, + 'NoSuchEntity' => NoSuchEntityException::class, 'ServiceFailure' => ServiceFailureException::class, ]])); @@ -494,22 +494,22 @@ public function putUserPolicy($input): Result * '@region'?: string|null, * }|UpdateUserRequest $input * - * @throws NoSuchEntityException - * @throws LimitExceededException + * @throws ConcurrentModificationException * @throws EntityAlreadyExistsException * @throws EntityTemporarilyUnmodifiableException - * @throws ConcurrentModificationException + * @throws LimitExceededException + * @throws NoSuchEntityException * @throws ServiceFailureException */ public function updateUser($input): Result { $input = UpdateUserRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateUser', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchEntity' => NoSuchEntityException::class, - 'LimitExceeded' => LimitExceededException::class, + 'ConcurrentModification' => ConcurrentModificationException::class, 'EntityAlreadyExists' => EntityAlreadyExistsException::class, 'EntityTemporarilyUnmodifiable' => EntityTemporarilyUnmodifiableException::class, - 'ConcurrentModification' => ConcurrentModificationException::class, + 'LimitExceeded' => LimitExceededException::class, + 'NoSuchEntity' => NoSuchEntityException::class, 'ServiceFailure' => ServiceFailureException::class, ]])); diff --git a/src/Service/Iot/CHANGELOG.md b/src/Service/Iot/CHANGELOG.md index 095bfa907..1904c5692 100644 --- a/src/Service/Iot/CHANGELOG.md +++ b/src/Service/Iot/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.1.0 ### Added diff --git a/src/Service/Iot/src/IotClient.php b/src/Service/Iot/src/IotClient.php index 18913f819..81d856317 100644 --- a/src/Service/Iot/src/IotClient.php +++ b/src/Service/Iot/src/IotClient.php @@ -65,19 +65,19 @@ class IotClient extends AbstractApi * '@region'?: string|null, * }|AddThingToThingGroupRequest $input * - * @throws InvalidRequestException - * @throws ThrottlingException * @throws InternalFailureException + * @throws InvalidRequestException * @throws ResourceNotFoundException + * @throws ThrottlingException */ public function addThingToThingGroup($input = []): AddThingToThingGroupResponse { $input = AddThingToThingGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AddThingToThingGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidRequestException' => InvalidRequestException::class, - 'ThrottlingException' => ThrottlingException::class, 'InternalFailureException' => InternalFailureException::class, + 'InvalidRequestException' => InvalidRequestException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new AddThingToThingGroupResponse($response); @@ -106,25 +106,25 @@ public function addThingToThingGroup($input = []): AddThingToThingGroupResponse * '@region'?: string|null, * }|CreateThingRequest $input * - * @throws InvalidRequestException - * @throws ThrottlingException - * @throws UnauthorizedException - * @throws ServiceUnavailableException * @throws InternalFailureException + * @throws InvalidRequestException * @throws ResourceAlreadyExistsException * @throws ResourceNotFoundException + * @throws ServiceUnavailableException + * @throws ThrottlingException + * @throws UnauthorizedException */ public function createThing($input): CreateThingResponse { $input = CreateThingRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateThing', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidRequestException' => InvalidRequestException::class, - 'ThrottlingException' => ThrottlingException::class, - 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, 'InternalFailureException' => InternalFailureException::class, + 'InvalidRequestException' => InvalidRequestException::class, 'ResourceAlreadyExistsException' => ResourceAlreadyExistsException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, + 'ThrottlingException' => ThrottlingException::class, + 'UnauthorizedException' => UnauthorizedException::class, ]])); return new CreateThingResponse($response); @@ -154,19 +154,19 @@ public function createThing($input): CreateThingResponse * '@region'?: string|null, * }|CreateThingGroupRequest $input * + * @throws InternalFailureException * @throws InvalidRequestException * @throws ResourceAlreadyExistsException * @throws ThrottlingException - * @throws InternalFailureException */ public function createThingGroup($input): CreateThingGroupResponse { $input = CreateThingGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateThingGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, 'ResourceAlreadyExistsException' => ResourceAlreadyExistsException::class, 'ThrottlingException' => ThrottlingException::class, - 'InternalFailureException' => InternalFailureException::class, ]])); return new CreateThingGroupResponse($response); @@ -191,23 +191,23 @@ public function createThingGroup($input): CreateThingGroupResponse * '@region'?: string|null, * }|CreateThingTypeRequest $input * + * @throws InternalFailureException * @throws InvalidRequestException + * @throws ResourceAlreadyExistsException + * @throws ServiceUnavailableException * @throws ThrottlingException * @throws UnauthorizedException - * @throws ServiceUnavailableException - * @throws InternalFailureException - * @throws ResourceAlreadyExistsException */ public function createThingType($input): CreateThingTypeResponse { $input = CreateThingTypeRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateThingType', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'ResourceAlreadyExistsException' => ResourceAlreadyExistsException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'ThrottlingException' => ThrottlingException::class, 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, - 'InternalFailureException' => InternalFailureException::class, - 'ResourceAlreadyExistsException' => ResourceAlreadyExistsException::class, ]])); return new CreateThingTypeResponse($response); @@ -230,25 +230,25 @@ public function createThingType($input): CreateThingTypeResponse * '@region'?: string|null, * }|DeleteThingRequest $input * - * @throws ResourceNotFoundException - * @throws VersionConflictException + * @throws InternalFailureException * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws ServiceUnavailableException * @throws ThrottlingException * @throws UnauthorizedException - * @throws ServiceUnavailableException - * @throws InternalFailureException + * @throws VersionConflictException */ public function deleteThing($input): DeleteThingResponse { $input = DeleteThingRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteThing', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'VersionConflictException' => VersionConflictException::class, + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'ThrottlingException' => ThrottlingException::class, 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, - 'InternalFailureException' => InternalFailureException::class, + 'VersionConflictException' => VersionConflictException::class, ]])); return new DeleteThingResponse($response); @@ -270,19 +270,19 @@ public function deleteThing($input): DeleteThingResponse * '@region'?: string|null, * }|DeleteThingGroupRequest $input * + * @throws InternalFailureException * @throws InvalidRequestException - * @throws VersionConflictException * @throws ThrottlingException - * @throws InternalFailureException + * @throws VersionConflictException */ public function deleteThingGroup($input): DeleteThingGroupResponse { $input = DeleteThingGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteThingGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, - 'VersionConflictException' => VersionConflictException::class, 'ThrottlingException' => ThrottlingException::class, - 'InternalFailureException' => InternalFailureException::class, + 'VersionConflictException' => VersionConflictException::class, ]])); return new DeleteThingGroupResponse($response); @@ -306,23 +306,23 @@ public function deleteThingGroup($input): DeleteThingGroupResponse * '@region'?: string|null, * }|DeleteThingTypeRequest $input * - * @throws ResourceNotFoundException + * @throws InternalFailureException * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws ServiceUnavailableException * @throws ThrottlingException * @throws UnauthorizedException - * @throws ServiceUnavailableException - * @throws InternalFailureException */ public function deleteThingType($input): DeleteThingTypeResponse { $input = DeleteThingTypeRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteThingType', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'ThrottlingException' => ThrottlingException::class, 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, - 'InternalFailureException' => InternalFailureException::class, ]])); return new DeleteThingTypeResponse($response); @@ -347,8 +347,8 @@ public function deleteThingType($input): DeleteThingTypeResponse * '@region'?: string|null, * }|ListThingGroupsRequest $input * - * @throws InvalidRequestException * @throws InternalFailureException + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ThrottlingException */ @@ -356,8 +356,8 @@ public function listThingGroups($input = []): ListThingGroupsResponse { $input = ListThingGroupsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListThingGroups', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidRequestException' => InvalidRequestException::class, 'InternalFailureException' => InternalFailureException::class, + 'InvalidRequestException' => InvalidRequestException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, ]])); @@ -382,8 +382,8 @@ public function listThingGroups($input = []): ListThingGroupsResponse * '@region'?: string|null, * }|ListThingGroupsForThingRequest $input * - * @throws InvalidRequestException * @throws InternalFailureException + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ThrottlingException */ @@ -391,8 +391,8 @@ public function listThingGroupsForThing($input): ListThingGroupsForThingResponse { $input = ListThingGroupsForThingRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListThingGroupsForThing', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidRequestException' => InvalidRequestException::class, 'InternalFailureException' => InternalFailureException::class, + 'InvalidRequestException' => InvalidRequestException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, ]])); @@ -417,21 +417,21 @@ public function listThingGroupsForThing($input): ListThingGroupsForThingResponse * '@region'?: string|null, * }|ListThingTypesRequest $input * + * @throws InternalFailureException * @throws InvalidRequestException + * @throws ServiceUnavailableException * @throws ThrottlingException * @throws UnauthorizedException - * @throws ServiceUnavailableException - * @throws InternalFailureException */ public function listThingTypes($input = []): ListThingTypesResponse { $input = ListThingTypesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListThingTypes', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'ThrottlingException' => ThrottlingException::class, 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, - 'InternalFailureException' => InternalFailureException::class, ]])); return new ListThingTypesResponse($response, $this, $input); @@ -464,21 +464,21 @@ public function listThingTypes($input = []): ListThingTypesResponse * '@region'?: string|null, * }|ListThingsRequest $input * + * @throws InternalFailureException * @throws InvalidRequestException + * @throws ServiceUnavailableException * @throws ThrottlingException * @throws UnauthorizedException - * @throws ServiceUnavailableException - * @throws InternalFailureException */ public function listThings($input = []): ListThingsResponse { $input = ListThingsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListThings', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'ThrottlingException' => ThrottlingException::class, 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, - 'InternalFailureException' => InternalFailureException::class, ]])); return new ListThingsResponse($response, $this, $input); @@ -502,8 +502,8 @@ public function listThings($input = []): ListThingsResponse * '@region'?: string|null, * }|ListThingsInThingGroupRequest $input * - * @throws InvalidRequestException * @throws InternalFailureException + * @throws InvalidRequestException * @throws ResourceNotFoundException * @throws ThrottlingException */ @@ -511,8 +511,8 @@ public function listThingsInThingGroup($input): ListThingsInThingGroupResponse { $input = ListThingsInThingGroupRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListThingsInThingGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidRequestException' => InvalidRequestException::class, 'InternalFailureException' => InternalFailureException::class, + 'InvalidRequestException' => InvalidRequestException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, ]])); diff --git a/src/Service/IotData/CHANGELOG.md b/src/Service/IotData/CHANGELOG.md index 48bf77f9a..12aeee5b4 100644 --- a/src/Service/IotData/CHANGELOG.md +++ b/src/Service/IotData/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.1.3 ### Changed diff --git a/src/Service/IotData/src/IotDataClient.php b/src/Service/IotData/src/IotDataClient.php index 2481b9de7..4469ad9b0 100644 --- a/src/Service/IotData/src/IotDataClient.php +++ b/src/Service/IotData/src/IotDataClient.php @@ -43,26 +43,26 @@ class IotDataClient extends AbstractApi * '@region'?: string|null, * }|GetThingShadowRequest $input * + * @throws InternalFailureException * @throws InvalidRequestException + * @throws MethodNotAllowedException * @throws ResourceNotFoundException + * @throws ServiceUnavailableException * @throws ThrottlingException * @throws UnauthorizedException - * @throws ServiceUnavailableException - * @throws InternalFailureException - * @throws MethodNotAllowedException * @throws UnsupportedDocumentEncodingException */ public function getThingShadow($input): GetThingShadowResponse { $input = GetThingShadowRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetThingShadow', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'MethodNotAllowedException' => MethodNotAllowedException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'ThrottlingException' => ThrottlingException::class, 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, - 'InternalFailureException' => InternalFailureException::class, - 'MethodNotAllowedException' => MethodNotAllowedException::class, 'UnsupportedDocumentEncodingException' => UnsupportedDocumentEncodingException::class, ]])); @@ -90,13 +90,13 @@ public function getThingShadow($input): GetThingShadowResponse * }|UpdateThingShadowRequest $input * * @throws ConflictException - * @throws RequestEntityTooLargeException + * @throws InternalFailureException * @throws InvalidRequestException + * @throws MethodNotAllowedException + * @throws RequestEntityTooLargeException + * @throws ServiceUnavailableException * @throws ThrottlingException * @throws UnauthorizedException - * @throws ServiceUnavailableException - * @throws InternalFailureException - * @throws MethodNotAllowedException * @throws UnsupportedDocumentEncodingException */ public function updateThingShadow($input): UpdateThingShadowResponse @@ -104,13 +104,13 @@ public function updateThingShadow($input): UpdateThingShadowResponse $input = UpdateThingShadowRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateThingShadow', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'ConflictException' => ConflictException::class, - 'RequestEntityTooLargeException' => RequestEntityTooLargeException::class, + 'InternalFailureException' => InternalFailureException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'MethodNotAllowedException' => MethodNotAllowedException::class, + 'RequestEntityTooLargeException' => RequestEntityTooLargeException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'ThrottlingException' => ThrottlingException::class, 'UnauthorizedException' => UnauthorizedException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, - 'InternalFailureException' => InternalFailureException::class, - 'MethodNotAllowedException' => MethodNotAllowedException::class, 'UnsupportedDocumentEncodingException' => UnsupportedDocumentEncodingException::class, ]])); diff --git a/src/Service/Kinesis/CHANGELOG.md b/src/Service/Kinesis/CHANGELOG.md index 6726ece13..829384ad6 100644 --- a/src/Service/Kinesis/CHANGELOG.md +++ b/src/Service/Kinesis/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 3.2.0 ### Added diff --git a/src/Service/Kinesis/src/KinesisClient.php b/src/Service/Kinesis/src/KinesisClient.php index afaebdc45..996035f06 100644 --- a/src/Service/Kinesis/src/KinesisClient.php +++ b/src/Service/Kinesis/src/KinesisClient.php @@ -98,21 +98,21 @@ class KinesisClient extends AbstractApi * '@region'?: string|null, * }|AddTagsToStreamInput $input * - * @throws ResourceNotFoundException - * @throws ResourceInUseException + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException - * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws ResourceNotFoundException */ public function addTagsToStream($input): Result { $input = AddTagsToStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AddTagsToStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ResourceInUseException' => ResourceInUseException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ResourceInUseException' => ResourceInUseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new Result($response); @@ -170,17 +170,17 @@ public function addTagsToStream($input): Result * '@region'?: string|null, * }|CreateStreamInput $input * - * @throws ResourceInUseException - * @throws LimitExceededException * @throws InvalidArgumentException + * @throws LimitExceededException + * @throws ResourceInUseException */ public function createStream($input): Result { $input = CreateStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceInUseException' => ResourceInUseException::class, - 'LimitExceededException' => LimitExceededException::class, 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, + 'ResourceInUseException' => ResourceInUseException::class, ]])); return new Result($response); @@ -206,21 +206,21 @@ public function createStream($input): Result * '@region'?: string|null, * }|DecreaseStreamRetentionPeriodInput $input * + * @throws AccessDeniedException + * @throws InvalidArgumentException + * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws LimitExceededException - * @throws InvalidArgumentException - * @throws AccessDeniedException */ public function decreaseStreamRetentionPeriod($input): Result { $input = DecreaseStreamRetentionPeriodInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DecreaseStreamRetentionPeriod', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new Result($response); @@ -257,21 +257,21 @@ public function decreaseStreamRetentionPeriod($input): Result * '@region'?: string|null, * }|DeleteStreamInput $input * - * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws InvalidArgumentException * @throws LimitExceededException * @throws ResourceInUseException - * @throws InvalidArgumentException - * @throws AccessDeniedException + * @throws ResourceNotFoundException */ public function deleteStream($input = []): Result { $input = DeleteStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new Result($response); @@ -296,17 +296,17 @@ public function deleteStream($input = []): Result * '@region'?: string|null, * }|DeregisterStreamConsumerInput $input * + * @throws InvalidArgumentException * @throws LimitExceededException * @throws ResourceNotFoundException - * @throws InvalidArgumentException */ public function deregisterStreamConsumer($input = []): Result { $input = DeregisterStreamConsumerInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeregisterStreamConsumer', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, ]])); return new Result($response); @@ -375,19 +375,19 @@ public function describeLimits($input = []): DescribeLimitsOutput * '@region'?: string|null, * }|DescribeStreamInput $input * - * @throws ResourceNotFoundException - * @throws LimitExceededException - * @throws InvalidArgumentException * @throws AccessDeniedException + * @throws InvalidArgumentException + * @throws LimitExceededException + * @throws ResourceNotFoundException */ public function describeStream($input = []): DescribeStreamOutput { $input = DescribeStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new DescribeStreamOutput($response, $this, $input); @@ -414,17 +414,17 @@ public function describeStream($input = []): DescribeStreamOutput * '@region'?: string|null, * }|DescribeStreamConsumerInput $input * + * @throws InvalidArgumentException * @throws LimitExceededException * @throws ResourceNotFoundException - * @throws InvalidArgumentException */ public function describeStreamConsumer($input = []): DescribeStreamConsumerOutput { $input = DescribeStreamConsumerInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeStreamConsumer', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, ]])); return new DescribeStreamConsumerOutput($response); @@ -450,19 +450,19 @@ public function describeStreamConsumer($input = []): DescribeStreamConsumerOutpu * '@region'?: string|null, * }|DescribeStreamSummaryInput $input * - * @throws ResourceNotFoundException - * @throws LimitExceededException - * @throws InvalidArgumentException * @throws AccessDeniedException + * @throws InvalidArgumentException + * @throws LimitExceededException + * @throws ResourceNotFoundException */ public function describeStreamSummary($input = []): DescribeStreamSummaryOutput { $input = DescribeStreamSummaryInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeStreamSummary', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new DescribeStreamSummaryOutput($response); @@ -484,21 +484,21 @@ public function describeStreamSummary($input = []): DescribeStreamSummaryOutput * '@region'?: string|null, * }|DisableEnhancedMonitoringInput $input * + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws AccessDeniedException */ public function disableEnhancedMonitoring($input): EnhancedMonitoringOutput { $input = DisableEnhancedMonitoringInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DisableEnhancedMonitoring', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new EnhancedMonitoringOutput($response); @@ -520,21 +520,21 @@ public function disableEnhancedMonitoring($input): EnhancedMonitoringOutput * '@region'?: string|null, * }|EnableEnhancedMonitoringInput $input * + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws AccessDeniedException */ public function enableEnhancedMonitoring($input): EnhancedMonitoringOutput { $input = EnableEnhancedMonitoringInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'EnableEnhancedMonitoring', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new EnhancedMonitoringOutput($response); @@ -601,33 +601,33 @@ public function enableEnhancedMonitoring($input): EnhancedMonitoringOutput * '@region'?: string|null, * }|GetRecordsInput $input * - * @throws ResourceNotFoundException - * @throws InvalidArgumentException - * @throws ProvisionedThroughputExceededException + * @throws AccessDeniedException * @throws ExpiredIteratorException + * @throws InvalidArgumentException + * @throws KMSAccessDeniedException * @throws KMSDisabledException * @throws KMSInvalidStateException - * @throws KMSAccessDeniedException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException - * @throws AccessDeniedException + * @throws ProvisionedThroughputExceededException + * @throws ResourceNotFoundException */ public function getRecords($input): GetRecordsOutput { $input = GetRecordsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetRecords', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, - 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'ExpiredIteratorException' => ExpiredIteratorException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, + 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSDisabledException' => KMSDisabledException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSNotFoundException' => KMSNotFoundException::class, 'KMSOptInRequired' => KMSOptInRequiredException::class, 'KMSThrottlingException' => KMSThrottlingException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new GetRecordsOutput($response); @@ -682,19 +682,19 @@ public function getRecords($input): GetRecordsOutput * '@region'?: string|null, * }|GetShardIteratorInput $input * - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws ProvisionedThroughputExceededException - * @throws AccessDeniedException + * @throws ResourceNotFoundException */ public function getShardIterator($input): GetShardIteratorOutput { $input = GetShardIteratorInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetShardIterator', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new GetShardIteratorOutput($response); @@ -723,21 +723,21 @@ public function getShardIterator($input): GetShardIteratorOutput * '@region'?: string|null, * }|IncreaseStreamRetentionPeriodInput $input * + * @throws AccessDeniedException + * @throws InvalidArgumentException + * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws LimitExceededException - * @throws InvalidArgumentException - * @throws AccessDeniedException */ public function increaseStreamRetentionPeriod($input): Result { $input = IncreaseStreamRetentionPeriodInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'IncreaseStreamRetentionPeriod', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new Result($response); @@ -774,23 +774,23 @@ public function increaseStreamRetentionPeriod($input): Result * '@region'?: string|null, * }|ListShardsInput $input * - * @throws ResourceNotFoundException + * @throws AccessDeniedException + * @throws ExpiredNextTokenException * @throws InvalidArgumentException * @throws LimitExceededException - * @throws ExpiredNextTokenException * @throws ResourceInUseException - * @throws AccessDeniedException + * @throws ResourceNotFoundException */ public function listShards($input = []): ListShardsOutput { $input = ListShardsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListShards', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'ExpiredNextTokenException' => ExpiredNextTokenException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, - 'ExpiredNextTokenException' => ExpiredNextTokenException::class, 'ResourceInUseException' => ResourceInUseException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new ListShardsOutput($response); @@ -813,21 +813,21 @@ public function listShards($input = []): ListShardsOutput * '@region'?: string|null, * }|ListStreamConsumersInput $input * - * @throws ResourceNotFoundException + * @throws ExpiredNextTokenException * @throws InvalidArgumentException * @throws LimitExceededException - * @throws ExpiredNextTokenException * @throws ResourceInUseException + * @throws ResourceNotFoundException */ public function listStreamConsumers($input): ListStreamConsumersOutput { $input = ListStreamConsumersInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListStreamConsumers', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ExpiredNextTokenException' => ExpiredNextTokenException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, - 'ExpiredNextTokenException' => ExpiredNextTokenException::class, 'ResourceInUseException' => ResourceInUseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new ListStreamConsumersOutput($response, $this, $input); @@ -858,17 +858,17 @@ public function listStreamConsumers($input): ListStreamConsumersOutput * '@region'?: string|null, * }|ListStreamsInput $input * - * @throws LimitExceededException * @throws ExpiredNextTokenException * @throws InvalidArgumentException + * @throws LimitExceededException */ public function listStreams($input = []): ListStreamsOutput { $input = ListStreamsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListStreams', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'LimitExceededException' => LimitExceededException::class, 'ExpiredNextTokenException' => ExpiredNextTokenException::class, 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, ]])); return new ListStreamsOutput($response, $this, $input); @@ -892,19 +892,19 @@ public function listStreams($input = []): ListStreamsOutput * '@region'?: string|null, * }|ListTagsForStreamInput $input * - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException - * @throws AccessDeniedException + * @throws ResourceNotFoundException */ public function listTagsForStream($input = []): ListTagsForStreamOutput { $input = ListTagsForStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListTagsForStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new ListTagsForStreamOutput($response); @@ -958,23 +958,23 @@ public function listTagsForStream($input = []): ListTagsForStreamOutput * '@region'?: string|null, * }|MergeShardsInput $input * - * @throws ResourceNotFoundException - * @throws ResourceInUseException + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException + * @throws ResourceInUseException + * @throws ResourceNotFoundException * @throws ValidationException - * @throws AccessDeniedException */ public function mergeShards($input): Result { $input = MergeShardsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'MergeShards', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ResourceInUseException' => ResourceInUseException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, + 'ResourceInUseException' => ResourceInUseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ValidationException' => ValidationException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new Result($response); @@ -1036,31 +1036,31 @@ public function mergeShards($input): Result * '@region'?: string|null, * }|PutRecordInput $input * - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws InvalidArgumentException - * @throws ProvisionedThroughputExceededException + * @throws KMSAccessDeniedException * @throws KMSDisabledException * @throws KMSInvalidStateException - * @throws KMSAccessDeniedException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException - * @throws AccessDeniedException + * @throws ProvisionedThroughputExceededException + * @throws ResourceNotFoundException */ public function putRecord($input): PutRecordOutput { $input = PutRecordInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutRecord', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, - 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSDisabledException' => KMSDisabledException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSNotFoundException' => KMSNotFoundException::class, 'KMSOptInRequired' => KMSOptInRequiredException::class, 'KMSThrottlingException' => KMSThrottlingException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new PutRecordOutput($response); @@ -1134,31 +1134,31 @@ public function putRecord($input): PutRecordOutput * '@region'?: string|null, * }|PutRecordsInput $input * - * @throws ResourceNotFoundException + * @throws AccessDeniedException * @throws InvalidArgumentException - * @throws ProvisionedThroughputExceededException + * @throws KMSAccessDeniedException * @throws KMSDisabledException * @throws KMSInvalidStateException - * @throws KMSAccessDeniedException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException - * @throws AccessDeniedException + * @throws ProvisionedThroughputExceededException + * @throws ResourceNotFoundException */ public function putRecords($input): PutRecordsOutput { $input = PutRecordsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutRecords', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, - 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSDisabledException' => KMSDisabledException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSNotFoundException' => KMSNotFoundException::class, 'KMSOptInRequired' => KMSOptInRequiredException::class, 'KMSThrottlingException' => KMSThrottlingException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new PutRecordsOutput($response); @@ -1228,21 +1228,21 @@ public function registerStreamConsumer($input): RegisterStreamConsumerOutput * '@region'?: string|null, * }|RemoveTagsFromStreamInput $input * - * @throws ResourceNotFoundException - * @throws ResourceInUseException + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException - * @throws AccessDeniedException + * @throws ResourceInUseException + * @throws ResourceNotFoundException */ public function removeTagsFromStream($input): Result { $input = RemoveTagsFromStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'RemoveTagsFromStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ResourceInUseException' => ResourceInUseException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'ResourceInUseException' => ResourceInUseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new Result($response); @@ -1304,23 +1304,23 @@ public function removeTagsFromStream($input): Result * '@region'?: string|null, * }|SplitShardInput $input * - * @throws ResourceNotFoundException - * @throws ResourceInUseException + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException + * @throws ResourceInUseException + * @throws ResourceNotFoundException * @throws ValidationException - * @throws AccessDeniedException */ public function splitShard($input): Result { $input = SplitShardInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SplitShard', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ResourceInUseException' => ResourceInUseException::class, + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, + 'ResourceInUseException' => ResourceInUseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ValidationException' => ValidationException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new Result($response); @@ -1356,33 +1356,33 @@ public function splitShard($input): Result * '@region'?: string|null, * }|StartStreamEncryptionInput $input * + * @throws AccessDeniedException * @throws InvalidArgumentException - * @throws LimitExceededException - * @throws ResourceInUseException - * @throws ResourceNotFoundException + * @throws KMSAccessDeniedException * @throws KMSDisabledException * @throws KMSInvalidStateException - * @throws KMSAccessDeniedException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException - * @throws AccessDeniedException + * @throws LimitExceededException + * @throws ResourceInUseException + * @throws ResourceNotFoundException */ public function startStreamEncryption($input): Result { $input = StartStreamEncryptionInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'StartStreamEncryption', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, - 'LimitExceededException' => LimitExceededException::class, - 'ResourceInUseException' => ResourceInUseException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSDisabledException' => KMSDisabledException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSNotFoundException' => KMSNotFoundException::class, 'KMSOptInRequired' => KMSOptInRequiredException::class, 'KMSThrottlingException' => KMSThrottlingException::class, - 'AccessDeniedException' => AccessDeniedException::class, + 'LimitExceededException' => LimitExceededException::class, + 'ResourceInUseException' => ResourceInUseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new Result($response); @@ -1417,21 +1417,21 @@ public function startStreamEncryption($input): Result * '@region'?: string|null, * }|StopStreamEncryptionInput $input * + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException - * @throws AccessDeniedException */ public function stopStreamEncryption($input): Result { $input = StopStreamEncryptionInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'StopStreamEncryption', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new Result($response); @@ -1452,10 +1452,10 @@ public function streamExists($input = []): StreamExistsWaiter { $input = DescribeStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new StreamExistsWaiter($response, $this, $input); @@ -1476,10 +1476,10 @@ public function streamNotExists($input = []): StreamNotExistsWaiter { $input = DescribeStreamInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeStream', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InvalidArgumentException' => InvalidArgumentException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'InvalidArgumentException' => InvalidArgumentException::class, + 'LimitExceededException' => LimitExceededException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new StreamNotExistsWaiter($response, $this, $input); @@ -1533,23 +1533,23 @@ public function streamNotExists($input = []): StreamNotExistsWaiter * '@region'?: string|null, * }|UpdateShardCountInput $input * + * @throws AccessDeniedException * @throws InvalidArgumentException * @throws LimitExceededException * @throws ResourceInUseException * @throws ResourceNotFoundException * @throws ValidationException - * @throws AccessDeniedException */ public function updateShardCount($input): UpdateShardCountOutput { $input = UpdateShardCountInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateShardCount', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InvalidArgumentException' => InvalidArgumentException::class, 'LimitExceededException' => LimitExceededException::class, 'ResourceInUseException' => ResourceInUseException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ValidationException' => ValidationException::class, - 'AccessDeniedException' => AccessDeniedException::class, ]])); return new UpdateShardCountOutput($response); diff --git a/src/Service/Kms/CHANGELOG.md b/src/Service/Kms/CHANGELOG.md index 6fb6a6547..14cf43f26 100644 --- a/src/Service/Kms/CHANGELOG.md +++ b/src/Service/Kms/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.8.0 ### Added diff --git a/src/Service/Kms/src/KmsClient.php b/src/Service/Kms/src/KmsClient.php index a53cd9408..a97bb10c4 100644 --- a/src/Service/Kms/src/KmsClient.php +++ b/src/Service/Kms/src/KmsClient.php @@ -124,25 +124,25 @@ class KmsClient extends AbstractApi * '@region'?: string|null, * }|CreateAliasRequest $input * - * @throws DependencyTimeoutException * @throws AlreadyExistsException - * @throws NotFoundException + * @throws DependencyTimeoutException * @throws InvalidAliasNameException * @throws KMSInternalException - * @throws LimitExceededException * @throws KMSInvalidStateException + * @throws LimitExceededException + * @throws NotFoundException */ public function createAlias($input): Result { $input = CreateAliasRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateAlias', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'DependencyTimeoutException' => DependencyTimeoutException::class, 'AlreadyExistsException' => AlreadyExistsException::class, - 'NotFoundException' => NotFoundException::class, + 'DependencyTimeoutException' => DependencyTimeoutException::class, 'InvalidAliasNameException' => InvalidAliasNameException::class, 'KMSInternalException' => KMSInternalException::class, - 'LimitExceededException' => LimitExceededException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, + 'LimitExceededException' => LimitExceededException::class, + 'NotFoundException' => NotFoundException::class, ]])); return new Result($response); @@ -324,36 +324,36 @@ public function createAlias($input): Result * '@region'?: string|null, * }|CreateKeyRequest $input * - * @throws MalformedPolicyDocumentException + * @throws CloudHsmClusterInvalidConfigurationException + * @throws CustomKeyStoreInvalidStateException + * @throws CustomKeyStoreNotFoundException * @throws DependencyTimeoutException * @throws InvalidArnException - * @throws UnsupportedOperationException * @throws KMSInternalException * @throws LimitExceededException + * @throws MalformedPolicyDocumentException * @throws TagException - * @throws CustomKeyStoreNotFoundException - * @throws CustomKeyStoreInvalidStateException - * @throws CloudHsmClusterInvalidConfigurationException - * @throws XksKeyInvalidConfigurationException + * @throws UnsupportedOperationException * @throws XksKeyAlreadyInUseException + * @throws XksKeyInvalidConfigurationException * @throws XksKeyNotFoundException */ public function createKey($input = []): CreateKeyResponse { $input = CreateKeyRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateKey', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'MalformedPolicyDocumentException' => MalformedPolicyDocumentException::class, + 'CloudHsmClusterInvalidConfigurationException' => CloudHsmClusterInvalidConfigurationException::class, + 'CustomKeyStoreInvalidStateException' => CustomKeyStoreInvalidStateException::class, + 'CustomKeyStoreNotFoundException' => CustomKeyStoreNotFoundException::class, 'DependencyTimeoutException' => DependencyTimeoutException::class, 'InvalidArnException' => InvalidArnException::class, - 'UnsupportedOperationException' => UnsupportedOperationException::class, 'KMSInternalException' => KMSInternalException::class, 'LimitExceededException' => LimitExceededException::class, + 'MalformedPolicyDocumentException' => MalformedPolicyDocumentException::class, 'TagException' => TagException::class, - 'CustomKeyStoreNotFoundException' => CustomKeyStoreNotFoundException::class, - 'CustomKeyStoreInvalidStateException' => CustomKeyStoreInvalidStateException::class, - 'CloudHsmClusterInvalidConfigurationException' => CloudHsmClusterInvalidConfigurationException::class, - 'XksKeyInvalidConfigurationException' => XksKeyInvalidConfigurationException::class, + 'UnsupportedOperationException' => UnsupportedOperationException::class, 'XksKeyAlreadyInUseException' => XksKeyAlreadyInUseException::class, + 'XksKeyInvalidConfigurationException' => XksKeyInvalidConfigurationException::class, 'XksKeyNotFoundException' => XksKeyNotFoundException::class, ]])); @@ -444,33 +444,33 @@ public function createKey($input = []): CreateKeyResponse * '@region'?: string|null, * }|DecryptRequest $input * - * @throws NotFoundException + * @throws DependencyTimeoutException * @throws DisabledException - * @throws InvalidCiphertextException - * @throws KeyUnavailableException + * @throws DryRunOperationException * @throws IncorrectKeyException - * @throws InvalidKeyUsageException - * @throws DependencyTimeoutException + * @throws InvalidCiphertextException * @throws InvalidGrantTokenException + * @throws InvalidKeyUsageException * @throws KMSInternalException * @throws KMSInvalidStateException - * @throws DryRunOperationException + * @throws KeyUnavailableException + * @throws NotFoundException */ public function decrypt($input): DecryptResponse { $input = DecryptRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Decrypt', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NotFoundException' => NotFoundException::class, + 'DependencyTimeoutException' => DependencyTimeoutException::class, 'DisabledException' => DisabledException::class, - 'InvalidCiphertextException' => InvalidCiphertextException::class, - 'KeyUnavailableException' => KeyUnavailableException::class, + 'DryRunOperationException' => DryRunOperationException::class, 'IncorrectKeyException' => IncorrectKeyException::class, - 'InvalidKeyUsageException' => InvalidKeyUsageException::class, - 'DependencyTimeoutException' => DependencyTimeoutException::class, + 'InvalidCiphertextException' => InvalidCiphertextException::class, 'InvalidGrantTokenException' => InvalidGrantTokenException::class, + 'InvalidKeyUsageException' => InvalidKeyUsageException::class, 'KMSInternalException' => KMSInternalException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'DryRunOperationException' => DryRunOperationException::class, + 'KeyUnavailableException' => KeyUnavailableException::class, + 'NotFoundException' => NotFoundException::class, ]])); return new DecryptResponse($response); @@ -562,29 +562,29 @@ public function decrypt($input): DecryptResponse * '@region'?: string|null, * }|EncryptRequest $input * - * @throws NotFoundException - * @throws DisabledException - * @throws KeyUnavailableException * @throws DependencyTimeoutException - * @throws InvalidKeyUsageException + * @throws DisabledException + * @throws DryRunOperationException * @throws InvalidGrantTokenException + * @throws InvalidKeyUsageException * @throws KMSInternalException * @throws KMSInvalidStateException - * @throws DryRunOperationException + * @throws KeyUnavailableException + * @throws NotFoundException */ public function encrypt($input): EncryptResponse { $input = EncryptRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Encrypt', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NotFoundException' => NotFoundException::class, - 'DisabledException' => DisabledException::class, - 'KeyUnavailableException' => KeyUnavailableException::class, 'DependencyTimeoutException' => DependencyTimeoutException::class, - 'InvalidKeyUsageException' => InvalidKeyUsageException::class, + 'DisabledException' => DisabledException::class, + 'DryRunOperationException' => DryRunOperationException::class, 'InvalidGrantTokenException' => InvalidGrantTokenException::class, + 'InvalidKeyUsageException' => InvalidKeyUsageException::class, 'KMSInternalException' => KMSInternalException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'DryRunOperationException' => DryRunOperationException::class, + 'KeyUnavailableException' => KeyUnavailableException::class, + 'NotFoundException' => NotFoundException::class, ]])); return new EncryptResponse($response); @@ -687,29 +687,29 @@ public function encrypt($input): EncryptResponse * '@region'?: string|null, * }|GenerateDataKeyRequest $input * - * @throws NotFoundException - * @throws DisabledException - * @throws KeyUnavailableException * @throws DependencyTimeoutException - * @throws InvalidKeyUsageException + * @throws DisabledException + * @throws DryRunOperationException * @throws InvalidGrantTokenException + * @throws InvalidKeyUsageException * @throws KMSInternalException * @throws KMSInvalidStateException - * @throws DryRunOperationException + * @throws KeyUnavailableException + * @throws NotFoundException */ public function generateDataKey($input): GenerateDataKeyResponse { $input = GenerateDataKeyRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GenerateDataKey', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NotFoundException' => NotFoundException::class, - 'DisabledException' => DisabledException::class, - 'KeyUnavailableException' => KeyUnavailableException::class, 'DependencyTimeoutException' => DependencyTimeoutException::class, - 'InvalidKeyUsageException' => InvalidKeyUsageException::class, + 'DisabledException' => DisabledException::class, + 'DryRunOperationException' => DryRunOperationException::class, 'InvalidGrantTokenException' => InvalidGrantTokenException::class, + 'InvalidKeyUsageException' => InvalidKeyUsageException::class, 'KMSInternalException' => KMSInternalException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'DryRunOperationException' => DryRunOperationException::class, + 'KeyUnavailableException' => KeyUnavailableException::class, + 'NotFoundException' => NotFoundException::class, ]])); return new GenerateDataKeyResponse($response); @@ -775,31 +775,31 @@ public function generateDataKey($input): GenerateDataKeyResponse * '@region'?: string|null, * }|GetPublicKeyRequest $input * - * @throws NotFoundException - * @throws DisabledException - * @throws KeyUnavailableException * @throws DependencyTimeoutException - * @throws UnsupportedOperationException + * @throws DisabledException * @throws InvalidArnException * @throws InvalidGrantTokenException * @throws InvalidKeyUsageException * @throws KMSInternalException * @throws KMSInvalidStateException + * @throws KeyUnavailableException + * @throws NotFoundException + * @throws UnsupportedOperationException */ public function getPublicKey($input): GetPublicKeyResponse { $input = GetPublicKeyRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetPublicKey', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NotFoundException' => NotFoundException::class, - 'DisabledException' => DisabledException::class, - 'KeyUnavailableException' => KeyUnavailableException::class, 'DependencyTimeoutException' => DependencyTimeoutException::class, - 'UnsupportedOperationException' => UnsupportedOperationException::class, + 'DisabledException' => DisabledException::class, 'InvalidArnException' => InvalidArnException::class, 'InvalidGrantTokenException' => InvalidGrantTokenException::class, 'InvalidKeyUsageException' => InvalidKeyUsageException::class, 'KMSInternalException' => KMSInternalException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, + 'KeyUnavailableException' => KeyUnavailableException::class, + 'NotFoundException' => NotFoundException::class, + 'UnsupportedOperationException' => UnsupportedOperationException::class, ]])); return new GetPublicKeyResponse($response); @@ -852,9 +852,9 @@ public function getPublicKey($input): GetPublicKeyResponse * }|ListAliasesRequest $input * * @throws DependencyTimeoutException + * @throws InvalidArnException * @throws InvalidMarkerException * @throws KMSInternalException - * @throws InvalidArnException * @throws NotFoundException */ public function listAliases($input = []): ListAliasesResponse @@ -862,9 +862,9 @@ public function listAliases($input = []): ListAliasesResponse $input = ListAliasesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListAliases', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'DependencyTimeoutException' => DependencyTimeoutException::class, + 'InvalidArnException' => InvalidArnException::class, 'InvalidMarkerException' => InvalidMarkerException::class, 'KMSInternalException' => KMSInternalException::class, - 'InvalidArnException' => InvalidArnException::class, 'NotFoundException' => NotFoundException::class, ]])); @@ -936,29 +936,29 @@ public function listAliases($input = []): ListAliasesResponse * '@region'?: string|null, * }|SignRequest $input * - * @throws NotFoundException - * @throws DisabledException - * @throws KeyUnavailableException * @throws DependencyTimeoutException - * @throws InvalidKeyUsageException + * @throws DisabledException + * @throws DryRunOperationException * @throws InvalidGrantTokenException + * @throws InvalidKeyUsageException * @throws KMSInternalException * @throws KMSInvalidStateException - * @throws DryRunOperationException + * @throws KeyUnavailableException + * @throws NotFoundException */ public function sign($input): SignResponse { $input = SignRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Sign', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NotFoundException' => NotFoundException::class, - 'DisabledException' => DisabledException::class, - 'KeyUnavailableException' => KeyUnavailableException::class, 'DependencyTimeoutException' => DependencyTimeoutException::class, - 'InvalidKeyUsageException' => InvalidKeyUsageException::class, + 'DisabledException' => DisabledException::class, + 'DryRunOperationException' => DryRunOperationException::class, 'InvalidGrantTokenException' => InvalidGrantTokenException::class, + 'InvalidKeyUsageException' => InvalidKeyUsageException::class, 'KMSInternalException' => KMSInternalException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'DryRunOperationException' => DryRunOperationException::class, + 'KeyUnavailableException' => KeyUnavailableException::class, + 'NotFoundException' => NotFoundException::class, ]])); return new SignResponse($response); @@ -1023,31 +1023,31 @@ public function sign($input): SignResponse * '@region'?: string|null, * }|VerifyRequest $input * - * @throws NotFoundException - * @throws DisabledException - * @throws KeyUnavailableException * @throws DependencyTimeoutException - * @throws InvalidKeyUsageException + * @throws DisabledException + * @throws DryRunOperationException * @throws InvalidGrantTokenException + * @throws InvalidKeyUsageException * @throws KMSInternalException - * @throws KMSInvalidStateException * @throws KMSInvalidSignatureException - * @throws DryRunOperationException + * @throws KMSInvalidStateException + * @throws KeyUnavailableException + * @throws NotFoundException */ public function verify($input): VerifyResponse { $input = VerifyRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Verify', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NotFoundException' => NotFoundException::class, - 'DisabledException' => DisabledException::class, - 'KeyUnavailableException' => KeyUnavailableException::class, 'DependencyTimeoutException' => DependencyTimeoutException::class, - 'InvalidKeyUsageException' => InvalidKeyUsageException::class, + 'DisabledException' => DisabledException::class, + 'DryRunOperationException' => DryRunOperationException::class, 'InvalidGrantTokenException' => InvalidGrantTokenException::class, + 'InvalidKeyUsageException' => InvalidKeyUsageException::class, 'KMSInternalException' => KMSInternalException::class, - 'KMSInvalidStateException' => KMSInvalidStateException::class, 'KMSInvalidSignatureException' => KMSInvalidSignatureException::class, - 'DryRunOperationException' => DryRunOperationException::class, + 'KMSInvalidStateException' => KMSInvalidStateException::class, + 'KeyUnavailableException' => KeyUnavailableException::class, + 'NotFoundException' => NotFoundException::class, ]])); return new VerifyResponse($response); diff --git a/src/Service/Lambda/CHANGELOG.md b/src/Service/Lambda/CHANGELOG.md index e0dba123d..28bbe9e2a 100644 --- a/src/Service/Lambda/CHANGELOG.md +++ b/src/Service/Lambda/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.10.0 ### Added diff --git a/src/Service/Lambda/src/LambdaClient.php b/src/Service/Lambda/src/LambdaClient.php index 5b082ec12..38f348be4 100644 --- a/src/Service/Lambda/src/LambdaClient.php +++ b/src/Service/Lambda/src/LambdaClient.php @@ -102,25 +102,25 @@ class LambdaClient extends AbstractApi * '@region'?: string|null, * }|AddLayerVersionPermissionRequest $input * - * @throws ServiceException - * @throws ResourceNotFoundException - * @throws ResourceConflictException - * @throws TooManyRequestsException * @throws InvalidParameterValueException * @throws PolicyLengthExceededException * @throws PreconditionFailedException + * @throws ResourceConflictException + * @throws ResourceNotFoundException + * @throws ServiceException + * @throws TooManyRequestsException */ public function addLayerVersionPermission($input): AddLayerVersionPermissionResponse { $input = AddLayerVersionPermissionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AddLayerVersionPermission', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'ResourceConflictException' => ResourceConflictException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'InvalidParameterValueException' => InvalidParameterValueException::class, 'PolicyLengthExceededException' => PolicyLengthExceededException::class, 'PreconditionFailedException' => PreconditionFailedException::class, + 'ResourceConflictException' => ResourceConflictException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceException' => ServiceException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, ]])); return new AddLayerVersionPermissionResponse($response); @@ -143,21 +143,21 @@ public function addLayerVersionPermission($input): AddLayerVersionPermissionResp * '@region'?: string|null, * }|DeleteFunctionRequest $input * - * @throws ServiceException - * @throws ResourceNotFoundException - * @throws TooManyRequestsException * @throws InvalidParameterValueException * @throws ResourceConflictException + * @throws ResourceNotFoundException + * @throws ServiceException + * @throws TooManyRequestsException */ public function deleteFunction($input): Result { $input = DeleteFunctionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteFunction', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'InvalidParameterValueException' => InvalidParameterValueException::class, 'ResourceConflictException' => ResourceConflictException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceException' => ServiceException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, ]])); return new Result($response); @@ -178,19 +178,19 @@ public function deleteFunction($input): Result * '@region'?: string|null, * }|GetFunctionConfigurationRequest $input * - * @throws ServiceException + * @throws InvalidParameterValueException * @throws ResourceNotFoundException + * @throws ServiceException * @throws TooManyRequestsException - * @throws InvalidParameterValueException */ public function getFunctionConfiguration($input): FunctionConfiguration { $input = GetFunctionConfigurationRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetFunctionConfiguration', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, + 'InvalidParameterValueException' => InvalidParameterValueException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceException' => ServiceException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'InvalidParameterValueException' => InvalidParameterValueException::class, ]])); return new FunctionConfiguration($response); @@ -251,71 +251,71 @@ public function getFunctionConfiguration($input): FunctionConfiguration * '@region'?: string|null, * }|InvocationRequest $input * - * @throws ServiceException - * @throws ResourceNotFoundException - * @throws InvalidRequestContentException - * @throws RequestTooLargeException - * @throws UnsupportedMediaTypeException - * @throws TooManyRequestsException - * @throws InvalidParameterValueException + * @throws EC2AccessDeniedException + * @throws EC2ThrottledException * @throws EC2UnexpectedException - * @throws SubnetIPAddressLimitReachedException - * @throws ENILimitReachedException + * @throws EFSIOException * @throws EFSMountConnectivityException * @throws EFSMountFailureException * @throws EFSMountTimeoutException - * @throws EFSIOException - * @throws SnapStartException - * @throws SnapStartTimeoutException - * @throws SnapStartNotReadyException - * @throws EC2ThrottledException - * @throws EC2AccessDeniedException - * @throws InvalidSubnetIDException + * @throws ENILimitReachedException + * @throws InvalidParameterValueException + * @throws InvalidRequestContentException + * @throws InvalidRuntimeException * @throws InvalidSecurityGroupIDException + * @throws InvalidSubnetIDException * @throws InvalidZipFileException + * @throws KMSAccessDeniedException * @throws KMSDisabledException * @throws KMSInvalidStateException - * @throws KMSAccessDeniedException * @throws KMSNotFoundException - * @throws InvalidRuntimeException + * @throws RecursiveInvocationException + * @throws RequestTooLargeException * @throws ResourceConflictException + * @throws ResourceNotFoundException * @throws ResourceNotReadyException - * @throws RecursiveInvocationException + * @throws ServiceException + * @throws SnapStartException + * @throws SnapStartNotReadyException + * @throws SnapStartTimeoutException + * @throws SubnetIPAddressLimitReachedException + * @throws TooManyRequestsException + * @throws UnsupportedMediaTypeException */ public function invoke($input): InvocationResponse { $input = InvocationRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Invoke', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidRequestContentException' => InvalidRequestContentException::class, - 'RequestTooLargeException' => RequestTooLargeException::class, - 'UnsupportedMediaTypeException' => UnsupportedMediaTypeException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, - 'InvalidParameterValueException' => InvalidParameterValueException::class, + 'EC2AccessDeniedException' => EC2AccessDeniedException::class, + 'EC2ThrottledException' => EC2ThrottledException::class, 'EC2UnexpectedException' => EC2UnexpectedException::class, - 'SubnetIPAddressLimitReachedException' => SubnetIPAddressLimitReachedException::class, - 'ENILimitReachedException' => ENILimitReachedException::class, + 'EFSIOException' => EFSIOException::class, 'EFSMountConnectivityException' => EFSMountConnectivityException::class, 'EFSMountFailureException' => EFSMountFailureException::class, 'EFSMountTimeoutException' => EFSMountTimeoutException::class, - 'EFSIOException' => EFSIOException::class, - 'SnapStartException' => SnapStartException::class, - 'SnapStartTimeoutException' => SnapStartTimeoutException::class, - 'SnapStartNotReadyException' => SnapStartNotReadyException::class, - 'EC2ThrottledException' => EC2ThrottledException::class, - 'EC2AccessDeniedException' => EC2AccessDeniedException::class, - 'InvalidSubnetIDException' => InvalidSubnetIDException::class, + 'ENILimitReachedException' => ENILimitReachedException::class, + 'InvalidParameterValueException' => InvalidParameterValueException::class, + 'InvalidRequestContentException' => InvalidRequestContentException::class, + 'InvalidRuntimeException' => InvalidRuntimeException::class, 'InvalidSecurityGroupIDException' => InvalidSecurityGroupIDException::class, + 'InvalidSubnetIDException' => InvalidSubnetIDException::class, 'InvalidZipFileException' => InvalidZipFileException::class, + 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSDisabledException' => KMSDisabledException::class, 'KMSInvalidStateException' => KMSInvalidStateException::class, - 'KMSAccessDeniedException' => KMSAccessDeniedException::class, 'KMSNotFoundException' => KMSNotFoundException::class, - 'InvalidRuntimeException' => InvalidRuntimeException::class, + 'RecursiveInvocationException' => RecursiveInvocationException::class, + 'RequestTooLargeException' => RequestTooLargeException::class, 'ResourceConflictException' => ResourceConflictException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ResourceNotReadyException' => ResourceNotReadyException::class, - 'RecursiveInvocationException' => RecursiveInvocationException::class, + 'ServiceException' => ServiceException::class, + 'SnapStartException' => SnapStartException::class, + 'SnapStartNotReadyException' => SnapStartNotReadyException::class, + 'SnapStartTimeoutException' => SnapStartTimeoutException::class, + 'SubnetIPAddressLimitReachedException' => SubnetIPAddressLimitReachedException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnsupportedMediaTypeException' => UnsupportedMediaTypeException::class, ]])); return new InvocationResponse($response); @@ -343,17 +343,17 @@ public function invoke($input): InvocationResponse * '@region'?: string|null, * }|ListFunctionsRequest $input * + * @throws InvalidParameterValueException * @throws ServiceException * @throws TooManyRequestsException - * @throws InvalidParameterValueException */ public function listFunctions($input = []): ListFunctionsResponse { $input = ListFunctionsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListFunctions', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InvalidParameterValueException' => InvalidParameterValueException::class, 'ServiceException' => ServiceException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'InvalidParameterValueException' => InvalidParameterValueException::class, ]])); return new ListFunctionsResponse($response, $this, $input); @@ -379,18 +379,18 @@ public function listFunctions($input = []): ListFunctionsResponse * '@region'?: string|null, * }|ListLayerVersionsRequest $input * - * @throws ServiceException * @throws InvalidParameterValueException * @throws ResourceNotFoundException + * @throws ServiceException * @throws TooManyRequestsException */ public function listLayerVersions($input): ListLayerVersionsResponse { $input = ListLayerVersionsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListLayerVersions', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, 'InvalidParameterValueException' => InvalidParameterValueException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceException' => ServiceException::class, 'TooManyRequestsException' => TooManyRequestsException::class, ]])); @@ -413,18 +413,18 @@ public function listLayerVersions($input): ListLayerVersionsResponse * '@region'?: string|null, * }|ListVersionsByFunctionRequest $input * - * @throws ServiceException - * @throws ResourceNotFoundException * @throws InvalidParameterValueException + * @throws ResourceNotFoundException + * @throws ServiceException * @throws TooManyRequestsException */ public function listVersionsByFunction($input): ListVersionsByFunctionResponse { $input = ListVersionsByFunctionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListVersionsByFunction', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'InvalidParameterValueException' => InvalidParameterValueException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceException' => ServiceException::class, 'TooManyRequestsException' => TooManyRequestsException::class, ]])); @@ -452,21 +452,21 @@ public function listVersionsByFunction($input): ListVersionsByFunctionResponse * '@region'?: string|null, * }|PublishLayerVersionRequest $input * - * @throws ServiceException + * @throws CodeStorageExceededException + * @throws InvalidParameterValueException * @throws ResourceNotFoundException + * @throws ServiceException * @throws TooManyRequestsException - * @throws InvalidParameterValueException - * @throws CodeStorageExceededException */ public function publishLayerVersion($input): PublishLayerVersionResponse { $input = PublishLayerVersionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PublishLayerVersion', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, + 'CodeStorageExceededException' => CodeStorageExceededException::class, + 'InvalidParameterValueException' => InvalidParameterValueException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceException' => ServiceException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'InvalidParameterValueException' => InvalidParameterValueException::class, - 'CodeStorageExceededException' => CodeStorageExceededException::class, ]])); return new PublishLayerVersionResponse($response); @@ -515,29 +515,29 @@ public function publishLayerVersion($input): PublishLayerVersionResponse * '@region'?: string|null, * }|UpdateFunctionConfigurationRequest $input * - * @throws ServiceException - * @throws ResourceNotFoundException - * @throws InvalidParameterValueException - * @throws TooManyRequestsException - * @throws ResourceConflictException - * @throws PreconditionFailedException + * @throws CodeSigningConfigNotFoundException * @throws CodeVerificationFailedException * @throws InvalidCodeSignatureException - * @throws CodeSigningConfigNotFoundException + * @throws InvalidParameterValueException + * @throws PreconditionFailedException + * @throws ResourceConflictException + * @throws ResourceNotFoundException + * @throws ServiceException + * @throws TooManyRequestsException */ public function updateFunctionConfiguration($input): FunctionConfiguration { $input = UpdateFunctionConfigurationRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateFunctionConfiguration', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceException' => ServiceException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterValueException' => InvalidParameterValueException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, - 'ResourceConflictException' => ResourceConflictException::class, - 'PreconditionFailedException' => PreconditionFailedException::class, + 'CodeSigningConfigNotFoundException' => CodeSigningConfigNotFoundException::class, 'CodeVerificationFailedException' => CodeVerificationFailedException::class, 'InvalidCodeSignatureException' => InvalidCodeSignatureException::class, - 'CodeSigningConfigNotFoundException' => CodeSigningConfigNotFoundException::class, + 'InvalidParameterValueException' => InvalidParameterValueException::class, + 'PreconditionFailedException' => PreconditionFailedException::class, + 'ResourceConflictException' => ResourceConflictException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceException' => ServiceException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, ]])); return new FunctionConfiguration($response); diff --git a/src/Service/LocationService/CHANGELOG.md b/src/Service/LocationService/CHANGELOG.md index 6619deded..232d10341 100644 --- a/src/Service/LocationService/CHANGELOG.md +++ b/src/Service/LocationService/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.1.0 ### Added diff --git a/src/Service/LocationService/src/LocationServiceClient.php b/src/Service/LocationService/src/LocationServiceClient.php index f7270c976..ac46c9443 100644 --- a/src/Service/LocationService/src/LocationServiceClient.php +++ b/src/Service/LocationService/src/LocationServiceClient.php @@ -76,21 +76,21 @@ class LocationServiceClient extends AbstractApi * '@region'?: string|null, * }|CalculateRouteRequest $input * + * @throws AccessDeniedException * @throws InternalServerException * @throws ResourceNotFoundException - * @throws AccessDeniedException - * @throws ValidationException * @throws ThrottlingException + * @throws ValidationException */ public function calculateRoute($input): CalculateRouteResponse { $input = CalculateRouteRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CalculateRoute', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'ValidationException' => ValidationException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new CalculateRouteResponse($response); @@ -145,21 +145,21 @@ public function calculateRoute($input): CalculateRouteResponse * '@region'?: string|null, * }|CalculateRouteMatrixRequest $input * + * @throws AccessDeniedException * @throws InternalServerException * @throws ResourceNotFoundException - * @throws AccessDeniedException - * @throws ValidationException * @throws ThrottlingException + * @throws ValidationException */ public function calculateRouteMatrix($input): CalculateRouteMatrixResponse { $input = CalculateRouteMatrixRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CalculateRouteMatrix', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'ValidationException' => ValidationException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new CalculateRouteMatrixResponse($response); @@ -181,21 +181,21 @@ public function calculateRouteMatrix($input): CalculateRouteMatrixResponse * '@region'?: string|null, * }|SearchPlaceIndexForPositionRequest $input * + * @throws AccessDeniedException * @throws InternalServerException * @throws ResourceNotFoundException - * @throws AccessDeniedException - * @throws ValidationException * @throws ThrottlingException + * @throws ValidationException */ public function searchPlaceIndexForPosition($input): SearchPlaceIndexForPositionResponse { $input = SearchPlaceIndexForPositionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SearchPlaceIndexForPosition', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'ValidationException' => ValidationException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new SearchPlaceIndexForPositionResponse($response); @@ -229,21 +229,21 @@ public function searchPlaceIndexForPosition($input): SearchPlaceIndexForPosition * '@region'?: string|null, * }|SearchPlaceIndexForTextRequest $input * + * @throws AccessDeniedException * @throws InternalServerException * @throws ResourceNotFoundException - * @throws AccessDeniedException - * @throws ValidationException * @throws ThrottlingException + * @throws ValidationException */ public function searchPlaceIndexForText($input): SearchPlaceIndexForTextResponse { $input = SearchPlaceIndexForTextRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SearchPlaceIndexForText', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'ValidationException' => ValidationException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new SearchPlaceIndexForTextResponse($response); diff --git a/src/Service/MediaConvert/CHANGELOG.md b/src/Service/MediaConvert/CHANGELOG.md index 3ec78ee35..8579bed62 100644 --- a/src/Service/MediaConvert/CHANGELOG.md +++ b/src/Service/MediaConvert/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.7.0 ### Added diff --git a/src/Service/MediaConvert/src/MediaConvertClient.php b/src/Service/MediaConvert/src/MediaConvertClient.php index ea2936aad..fedb18a3d 100644 --- a/src/Service/MediaConvert/src/MediaConvertClient.php +++ b/src/Service/MediaConvert/src/MediaConvertClient.php @@ -48,22 +48,22 @@ class MediaConvertClient extends AbstractApi * }|CancelJobRequest $input * * @throws BadRequestException - * @throws InternalServerErrorException + * @throws ConflictException * @throws ForbiddenException + * @throws InternalServerErrorException * @throws NotFoundException * @throws TooManyRequestsException - * @throws ConflictException */ public function cancelJob($input): CancelJobResponse { $input = CancelJobRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CancelJob', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'BadRequestException' => BadRequestException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'ConflictException' => ConflictException::class, 'ForbiddenException' => ForbiddenException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'NotFoundException' => NotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'ConflictException' => ConflictException::class, ]])); return new CancelJobResponse($response); @@ -95,22 +95,22 @@ public function cancelJob($input): CancelJobResponse * }|CreateJobRequest $input * * @throws BadRequestException - * @throws InternalServerErrorException + * @throws ConflictException * @throws ForbiddenException + * @throws InternalServerErrorException * @throws NotFoundException * @throws TooManyRequestsException - * @throws ConflictException */ public function createJob($input): CreateJobResponse { $input = CreateJobRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateJob', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'BadRequestException' => BadRequestException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'ConflictException' => ConflictException::class, 'ForbiddenException' => ForbiddenException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'NotFoundException' => NotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'ConflictException' => ConflictException::class, ]])); return new CreateJobResponse($response); @@ -132,11 +132,11 @@ public function createJob($input): CreateJobResponse * }|DescribeEndpointsRequest $input * * @throws BadRequestException - * @throws InternalServerErrorException + * @throws ConflictException * @throws ForbiddenException + * @throws InternalServerErrorException * @throws NotFoundException * @throws TooManyRequestsException - * @throws ConflictException * * @deprecated */ @@ -146,11 +146,11 @@ public function describeEndpoints($input = []): DescribeEndpointsResponse $input = DescribeEndpointsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeEndpoints', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'BadRequestException' => BadRequestException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'ConflictException' => ConflictException::class, 'ForbiddenException' => ForbiddenException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'NotFoundException' => NotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'ConflictException' => ConflictException::class, ]])); return new DescribeEndpointsResponse($response, $this, $input); @@ -168,22 +168,22 @@ public function describeEndpoints($input = []): DescribeEndpointsResponse * }|GetJobRequest $input * * @throws BadRequestException - * @throws InternalServerErrorException + * @throws ConflictException * @throws ForbiddenException + * @throws InternalServerErrorException * @throws NotFoundException * @throws TooManyRequestsException - * @throws ConflictException */ public function getJob($input): GetJobResponse { $input = GetJobRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetJob', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'BadRequestException' => BadRequestException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'ConflictException' => ConflictException::class, 'ForbiddenException' => ForbiddenException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'NotFoundException' => NotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'ConflictException' => ConflictException::class, ]])); return new GetJobResponse($response); @@ -207,22 +207,22 @@ public function getJob($input): GetJobResponse * }|ListJobsRequest $input * * @throws BadRequestException - * @throws InternalServerErrorException + * @throws ConflictException * @throws ForbiddenException + * @throws InternalServerErrorException * @throws NotFoundException * @throws TooManyRequestsException - * @throws ConflictException */ public function listJobs($input = []): ListJobsResponse { $input = ListJobsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListJobs', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'BadRequestException' => BadRequestException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'ConflictException' => ConflictException::class, 'ForbiddenException' => ForbiddenException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'NotFoundException' => NotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, - 'ConflictException' => ConflictException::class, ]])); return new ListJobsResponse($response, $this, $input); diff --git a/src/Service/RdsDataService/CHANGELOG.md b/src/Service/RdsDataService/CHANGELOG.md index c328a401f..aea8ace48 100644 --- a/src/Service/RdsDataService/CHANGELOG.md +++ b/src/Service/RdsDataService/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.3.0 ### Added diff --git a/src/Service/RdsDataService/src/RdsDataServiceClient.php b/src/Service/RdsDataService/src/RdsDataServiceClient.php index d2b332419..f25dde09b 100644 --- a/src/Service/RdsDataService/src/RdsDataServiceClient.php +++ b/src/Service/RdsDataService/src/RdsDataServiceClient.php @@ -71,41 +71,41 @@ class RdsDataServiceClient extends AbstractApi * '@region'?: string|null, * }|BatchExecuteStatementRequest $input * - * @throws SecretsErrorException - * @throws HttpEndpointNotEnabledException + * @throws AccessDeniedException + * @throws BadRequestException * @throws DatabaseErrorException + * @throws DatabaseNotFoundException * @throws DatabaseResumingException * @throws DatabaseUnavailableException - * @throws TransactionNotFoundException - * @throws InvalidSecretException + * @throws ForbiddenException + * @throws HttpEndpointNotEnabledException + * @throws InternalServerErrorException * @throws InvalidResourceStateException + * @throws InvalidSecretException + * @throws SecretsErrorException * @throws ServiceUnavailableErrorException - * @throws ForbiddenException - * @throws DatabaseNotFoundException - * @throws AccessDeniedException - * @throws BadRequestException * @throws StatementTimeoutException - * @throws InternalServerErrorException + * @throws TransactionNotFoundException */ public function batchExecuteStatement($input): BatchExecuteStatementResponse { $input = BatchExecuteStatementRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'BatchExecuteStatement', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'SecretsErrorException' => SecretsErrorException::class, - 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'BadRequestException' => BadRequestException::class, 'DatabaseErrorException' => DatabaseErrorException::class, + 'DatabaseNotFoundException' => DatabaseNotFoundException::class, 'DatabaseResumingException' => DatabaseResumingException::class, 'DatabaseUnavailableException' => DatabaseUnavailableException::class, - 'TransactionNotFoundException' => TransactionNotFoundException::class, - 'InvalidSecretException' => InvalidSecretException::class, + 'ForbiddenException' => ForbiddenException::class, + 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'InvalidResourceStateException' => InvalidResourceStateException::class, + 'InvalidSecretException' => InvalidSecretException::class, + 'SecretsErrorException' => SecretsErrorException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, - 'ForbiddenException' => ForbiddenException::class, - 'DatabaseNotFoundException' => DatabaseNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'BadRequestException' => BadRequestException::class, 'StatementTimeoutException' => StatementTimeoutException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'TransactionNotFoundException' => TransactionNotFoundException::class, ]])); return new BatchExecuteStatementResponse($response); @@ -134,41 +134,41 @@ public function batchExecuteStatement($input): BatchExecuteStatementResponse * '@region'?: string|null, * }|BeginTransactionRequest $input * - * @throws SecretsErrorException - * @throws HttpEndpointNotEnabledException + * @throws AccessDeniedException + * @throws BadRequestException * @throws DatabaseErrorException + * @throws DatabaseNotFoundException * @throws DatabaseResumingException * @throws DatabaseUnavailableException - * @throws TransactionNotFoundException - * @throws InvalidSecretException + * @throws ForbiddenException + * @throws HttpEndpointNotEnabledException + * @throws InternalServerErrorException * @throws InvalidResourceStateException + * @throws InvalidSecretException + * @throws SecretsErrorException * @throws ServiceUnavailableErrorException - * @throws ForbiddenException - * @throws DatabaseNotFoundException - * @throws AccessDeniedException - * @throws BadRequestException * @throws StatementTimeoutException - * @throws InternalServerErrorException + * @throws TransactionNotFoundException */ public function beginTransaction($input): BeginTransactionResponse { $input = BeginTransactionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'BeginTransaction', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'SecretsErrorException' => SecretsErrorException::class, - 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'BadRequestException' => BadRequestException::class, 'DatabaseErrorException' => DatabaseErrorException::class, + 'DatabaseNotFoundException' => DatabaseNotFoundException::class, 'DatabaseResumingException' => DatabaseResumingException::class, 'DatabaseUnavailableException' => DatabaseUnavailableException::class, - 'TransactionNotFoundException' => TransactionNotFoundException::class, - 'InvalidSecretException' => InvalidSecretException::class, + 'ForbiddenException' => ForbiddenException::class, + 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'InvalidResourceStateException' => InvalidResourceStateException::class, + 'InvalidSecretException' => InvalidSecretException::class, + 'SecretsErrorException' => SecretsErrorException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, - 'ForbiddenException' => ForbiddenException::class, - 'DatabaseNotFoundException' => DatabaseNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'BadRequestException' => BadRequestException::class, 'StatementTimeoutException' => StatementTimeoutException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'TransactionNotFoundException' => TransactionNotFoundException::class, ]])); return new BeginTransactionResponse($response); @@ -187,41 +187,41 @@ public function beginTransaction($input): BeginTransactionResponse * '@region'?: string|null, * }|CommitTransactionRequest $input * - * @throws SecretsErrorException - * @throws HttpEndpointNotEnabledException + * @throws AccessDeniedException + * @throws BadRequestException * @throws DatabaseErrorException + * @throws DatabaseNotFoundException * @throws DatabaseUnavailableException - * @throws TransactionNotFoundException - * @throws InvalidSecretException - * @throws InvalidResourceStateException - * @throws ServiceUnavailableErrorException * @throws ForbiddenException - * @throws DatabaseNotFoundException - * @throws AccessDeniedException - * @throws BadRequestException - * @throws StatementTimeoutException + * @throws HttpEndpointNotEnabledException * @throws InternalServerErrorException + * @throws InvalidResourceStateException + * @throws InvalidSecretException * @throws NotFoundException + * @throws SecretsErrorException + * @throws ServiceUnavailableErrorException + * @throws StatementTimeoutException + * @throws TransactionNotFoundException */ public function commitTransaction($input): CommitTransactionResponse { $input = CommitTransactionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CommitTransaction', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'SecretsErrorException' => SecretsErrorException::class, - 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'BadRequestException' => BadRequestException::class, 'DatabaseErrorException' => DatabaseErrorException::class, + 'DatabaseNotFoundException' => DatabaseNotFoundException::class, 'DatabaseUnavailableException' => DatabaseUnavailableException::class, - 'TransactionNotFoundException' => TransactionNotFoundException::class, - 'InvalidSecretException' => InvalidSecretException::class, - 'InvalidResourceStateException' => InvalidResourceStateException::class, - 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, 'ForbiddenException' => ForbiddenException::class, - 'DatabaseNotFoundException' => DatabaseNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'BadRequestException' => BadRequestException::class, - 'StatementTimeoutException' => StatementTimeoutException::class, + 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, 'InternalServerErrorException' => InternalServerErrorException::class, + 'InvalidResourceStateException' => InvalidResourceStateException::class, + 'InvalidSecretException' => InvalidSecretException::class, 'NotFoundException' => NotFoundException::class, + 'SecretsErrorException' => SecretsErrorException::class, + 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, + 'StatementTimeoutException' => StatementTimeoutException::class, + 'TransactionNotFoundException' => TransactionNotFoundException::class, ]])); return new CommitTransactionResponse($response); @@ -253,42 +253,42 @@ public function commitTransaction($input): CommitTransactionResponse * '@region'?: string|null, * }|ExecuteStatementRequest $input * - * @throws SecretsErrorException - * @throws HttpEndpointNotEnabledException + * @throws AccessDeniedException + * @throws BadRequestException * @throws DatabaseErrorException + * @throws DatabaseNotFoundException * @throws DatabaseResumingException * @throws DatabaseUnavailableException - * @throws TransactionNotFoundException - * @throws InvalidSecretException + * @throws ForbiddenException + * @throws HttpEndpointNotEnabledException + * @throws InternalServerErrorException * @throws InvalidResourceStateException + * @throws InvalidSecretException + * @throws SecretsErrorException * @throws ServiceUnavailableErrorException - * @throws ForbiddenException - * @throws DatabaseNotFoundException - * @throws AccessDeniedException - * @throws BadRequestException * @throws StatementTimeoutException - * @throws InternalServerErrorException + * @throws TransactionNotFoundException * @throws UnsupportedResultException */ public function executeStatement($input): ExecuteStatementResponse { $input = ExecuteStatementRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ExecuteStatement', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'SecretsErrorException' => SecretsErrorException::class, - 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'BadRequestException' => BadRequestException::class, 'DatabaseErrorException' => DatabaseErrorException::class, + 'DatabaseNotFoundException' => DatabaseNotFoundException::class, 'DatabaseResumingException' => DatabaseResumingException::class, 'DatabaseUnavailableException' => DatabaseUnavailableException::class, - 'TransactionNotFoundException' => TransactionNotFoundException::class, - 'InvalidSecretException' => InvalidSecretException::class, + 'ForbiddenException' => ForbiddenException::class, + 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'InternalServerErrorException' => InternalServerErrorException::class, 'InvalidResourceStateException' => InvalidResourceStateException::class, + 'InvalidSecretException' => InvalidSecretException::class, + 'SecretsErrorException' => SecretsErrorException::class, 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, - 'ForbiddenException' => ForbiddenException::class, - 'DatabaseNotFoundException' => DatabaseNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'BadRequestException' => BadRequestException::class, 'StatementTimeoutException' => StatementTimeoutException::class, - 'InternalServerErrorException' => InternalServerErrorException::class, + 'TransactionNotFoundException' => TransactionNotFoundException::class, 'UnsupportedResultException' => UnsupportedResultException::class, ]])); @@ -308,41 +308,41 @@ public function executeStatement($input): ExecuteStatementResponse * '@region'?: string|null, * }|RollbackTransactionRequest $input * - * @throws SecretsErrorException - * @throws HttpEndpointNotEnabledException + * @throws AccessDeniedException + * @throws BadRequestException * @throws DatabaseErrorException + * @throws DatabaseNotFoundException * @throws DatabaseUnavailableException - * @throws TransactionNotFoundException - * @throws InvalidSecretException - * @throws InvalidResourceStateException - * @throws ServiceUnavailableErrorException * @throws ForbiddenException - * @throws DatabaseNotFoundException - * @throws AccessDeniedException - * @throws BadRequestException - * @throws StatementTimeoutException + * @throws HttpEndpointNotEnabledException * @throws InternalServerErrorException + * @throws InvalidResourceStateException + * @throws InvalidSecretException * @throws NotFoundException + * @throws SecretsErrorException + * @throws ServiceUnavailableErrorException + * @throws StatementTimeoutException + * @throws TransactionNotFoundException */ public function rollbackTransaction($input): RollbackTransactionResponse { $input = RollbackTransactionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'RollbackTransaction', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'SecretsErrorException' => SecretsErrorException::class, - 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'BadRequestException' => BadRequestException::class, 'DatabaseErrorException' => DatabaseErrorException::class, + 'DatabaseNotFoundException' => DatabaseNotFoundException::class, 'DatabaseUnavailableException' => DatabaseUnavailableException::class, - 'TransactionNotFoundException' => TransactionNotFoundException::class, - 'InvalidSecretException' => InvalidSecretException::class, - 'InvalidResourceStateException' => InvalidResourceStateException::class, - 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, 'ForbiddenException' => ForbiddenException::class, - 'DatabaseNotFoundException' => DatabaseNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'BadRequestException' => BadRequestException::class, - 'StatementTimeoutException' => StatementTimeoutException::class, + 'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class, 'InternalServerErrorException' => InternalServerErrorException::class, + 'InvalidResourceStateException' => InvalidResourceStateException::class, + 'InvalidSecretException' => InvalidSecretException::class, 'NotFoundException' => NotFoundException::class, + 'SecretsErrorException' => SecretsErrorException::class, + 'ServiceUnavailableError' => ServiceUnavailableErrorException::class, + 'StatementTimeoutException' => StatementTimeoutException::class, + 'TransactionNotFoundException' => TransactionNotFoundException::class, ]])); return new RollbackTransactionResponse($response); diff --git a/src/Service/Rekognition/CHANGELOG.md b/src/Service/Rekognition/CHANGELOG.md index c9ed199ea..508341556 100644 --- a/src/Service/Rekognition/CHANGELOG.md +++ b/src/Service/Rekognition/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.4.0 ### Added diff --git a/src/Service/Rekognition/src/RekognitionClient.php b/src/Service/Rekognition/src/RekognitionClient.php index 5386ec092..50db627e4 100644 --- a/src/Service/Rekognition/src/RekognitionClient.php +++ b/src/Service/Rekognition/src/RekognitionClient.php @@ -77,25 +77,25 @@ class RekognitionClient extends AbstractApi * '@region'?: string|null, * }|CreateCollectionRequest $input * - * @throws InvalidParameterException * @throws AccessDeniedException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ProvisionedThroughputExceededException * @throws ResourceAlreadyExistsException * @throws ServiceQuotaExceededException + * @throws ThrottlingException */ public function createCollection($input): CreateCollectionResponse { $input = CreateCollectionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateCollection', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameterException' => InvalidParameterException::class, 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'ResourceAlreadyExistsException' => ResourceAlreadyExistsException::class, 'ServiceQuotaExceededException' => ServiceQuotaExceededException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new CreateCollectionResponse($response); @@ -119,25 +119,25 @@ public function createCollection($input): CreateCollectionResponse * '@region'?: string|null, * }|CreateProjectRequest $input * - * @throws ResourceInUseException - * @throws LimitExceededException - * @throws InvalidParameterException * @throws AccessDeniedException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidParameterException + * @throws LimitExceededException * @throws ProvisionedThroughputExceededException + * @throws ResourceInUseException + * @throws ThrottlingException */ public function createProject($input): CreateProjectResponse { $input = CreateProjectRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateProject', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceInUseException' => ResourceInUseException::class, - 'LimitExceededException' => LimitExceededException::class, - 'InvalidParameterException' => InvalidParameterException::class, 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'LimitExceededException' => LimitExceededException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ResourceInUseException' => ResourceInUseException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new CreateProjectResponse($response); @@ -159,23 +159,23 @@ public function createProject($input): CreateProjectResponse * '@region'?: string|null, * }|DeleteCollectionRequest $input * - * @throws InvalidParameterException * @throws AccessDeniedException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ProvisionedThroughputExceededException * @throws ResourceNotFoundException + * @throws ThrottlingException */ public function deleteCollection($input): DeleteCollectionResponse { $input = DeleteCollectionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteCollection', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameterException' => InvalidParameterException::class, 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new DeleteCollectionResponse($response); @@ -199,25 +199,25 @@ public function deleteCollection($input): DeleteCollectionResponse * '@region'?: string|null, * }|DeleteProjectRequest $input * - * @throws ResourceInUseException - * @throws ResourceNotFoundException - * @throws InvalidParameterException * @throws AccessDeniedException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ProvisionedThroughputExceededException + * @throws ResourceInUseException + * @throws ResourceNotFoundException + * @throws ThrottlingException */ public function deleteProject($input): DeleteProjectResponse { $input = DeleteProjectRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteProject', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceInUseException' => ResourceInUseException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ResourceInUseException' => ResourceInUseException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new DeleteProjectResponse($response); @@ -251,27 +251,27 @@ public function deleteProject($input): DeleteProjectResponse * '@region'?: string|null, * }|DetectFacesRequest $input * - * @throws InvalidS3ObjectException - * @throws InvalidParameterException - * @throws ImageTooLargeException * @throws AccessDeniedException + * @throws ImageTooLargeException * @throws InternalServerErrorException - * @throws ThrottlingException - * @throws ProvisionedThroughputExceededException * @throws InvalidImageFormatException + * @throws InvalidParameterException + * @throws InvalidS3ObjectException + * @throws ProvisionedThroughputExceededException + * @throws ThrottlingException */ public function detectFaces($input): DetectFacesResponse { $input = DetectFacesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DetectFaces', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidS3ObjectException' => InvalidS3ObjectException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'ImageTooLargeException' => ImageTooLargeException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'ImageTooLargeException' => ImageTooLargeException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, - 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'InvalidImageFormatException' => InvalidImageFormatException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidS3ObjectException' => InvalidS3ObjectException::class, + 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new DetectFacesResponse($response); @@ -305,33 +305,33 @@ public function detectFaces($input): DetectFacesResponse * '@region'?: string|null, * }|DetectModerationLabelsRequest $input * - * @throws InvalidS3ObjectException - * @throws InvalidParameterException - * @throws ImageTooLargeException * @throws AccessDeniedException + * @throws HumanLoopQuotaExceededException + * @throws ImageTooLargeException * @throws InternalServerErrorException - * @throws ThrottlingException - * @throws ProvisionedThroughputExceededException * @throws InvalidImageFormatException - * @throws HumanLoopQuotaExceededException + * @throws InvalidParameterException + * @throws InvalidS3ObjectException + * @throws ProvisionedThroughputExceededException * @throws ResourceNotFoundException * @throws ResourceNotReadyException + * @throws ThrottlingException */ public function detectModerationLabels($input): DetectModerationLabelsResponse { $input = DetectModerationLabelsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DetectModerationLabels', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidS3ObjectException' => InvalidS3ObjectException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'ImageTooLargeException' => ImageTooLargeException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'HumanLoopQuotaExceededException' => HumanLoopQuotaExceededException::class, + 'ImageTooLargeException' => ImageTooLargeException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, - 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'InvalidImageFormatException' => InvalidImageFormatException::class, - 'HumanLoopQuotaExceededException' => HumanLoopQuotaExceededException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidS3ObjectException' => InvalidS3ObjectException::class, + 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ResourceNotReadyException' => ResourceNotReadyException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new DetectModerationLabelsResponse($response); @@ -354,23 +354,23 @@ public function detectModerationLabels($input): DetectModerationLabelsResponse * '@region'?: string|null, * }|GetCelebrityInfoRequest $input * - * @throws InvalidParameterException * @throws AccessDeniedException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidParameterException * @throws ProvisionedThroughputExceededException * @throws ResourceNotFoundException + * @throws ThrottlingException */ public function getCelebrityInfo($input): GetCelebrityInfoResponse { $input = GetCelebrityInfoRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetCelebrityInfo', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameterException' => InvalidParameterException::class, 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidParameterException' => InvalidParameterException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new GetCelebrityInfoResponse($response); @@ -460,31 +460,31 @@ public function getCelebrityInfo($input): GetCelebrityInfoResponse * '@region'?: string|null, * }|IndexFacesRequest $input * - * @throws InvalidS3ObjectException - * @throws InvalidParameterException - * @throws ImageTooLargeException * @throws AccessDeniedException + * @throws ImageTooLargeException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidImageFormatException + * @throws InvalidParameterException + * @throws InvalidS3ObjectException * @throws ProvisionedThroughputExceededException * @throws ResourceNotFoundException - * @throws InvalidImageFormatException * @throws ServiceQuotaExceededException + * @throws ThrottlingException */ public function indexFaces($input): IndexFacesResponse { $input = IndexFacesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'IndexFaces', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidS3ObjectException' => InvalidS3ObjectException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'ImageTooLargeException' => ImageTooLargeException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'ImageTooLargeException' => ImageTooLargeException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidImageFormatException' => InvalidImageFormatException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidS3ObjectException' => InvalidS3ObjectException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidImageFormatException' => InvalidImageFormatException::class, 'ServiceQuotaExceededException' => ServiceQuotaExceededException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new IndexFacesResponse($response); @@ -507,25 +507,25 @@ public function indexFaces($input): IndexFacesResponse * '@region'?: string|null, * }|ListCollectionsRequest $input * - * @throws InvalidParameterException * @throws AccessDeniedException * @throws InternalServerErrorException - * @throws ThrottlingException - * @throws ProvisionedThroughputExceededException * @throws InvalidPaginationTokenException + * @throws InvalidParameterException + * @throws ProvisionedThroughputExceededException * @throws ResourceNotFoundException + * @throws ThrottlingException */ public function listCollections($input = []): ListCollectionsResponse { $input = ListCollectionsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListCollections', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameterException' => InvalidParameterException::class, 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, - 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'InvalidPaginationTokenException' => InvalidPaginationTokenException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new ListCollectionsResponse($response, $this, $input); @@ -564,27 +564,27 @@ public function listCollections($input = []): ListCollectionsResponse * '@region'?: string|null, * }|RecognizeCelebritiesRequest $input * - * @throws InvalidS3ObjectException - * @throws InvalidParameterException - * @throws InvalidImageFormatException - * @throws ImageTooLargeException * @throws AccessDeniedException + * @throws ImageTooLargeException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidImageFormatException + * @throws InvalidParameterException + * @throws InvalidS3ObjectException * @throws ProvisionedThroughputExceededException + * @throws ThrottlingException */ public function recognizeCelebrities($input): RecognizeCelebritiesResponse { $input = RecognizeCelebritiesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'RecognizeCelebrities', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidS3ObjectException' => InvalidS3ObjectException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'InvalidImageFormatException' => InvalidImageFormatException::class, - 'ImageTooLargeException' => ImageTooLargeException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'ImageTooLargeException' => ImageTooLargeException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidImageFormatException' => InvalidImageFormatException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidS3ObjectException' => InvalidS3ObjectException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new RecognizeCelebritiesResponse($response); @@ -636,29 +636,29 @@ public function recognizeCelebrities($input): RecognizeCelebritiesResponse * '@region'?: string|null, * }|SearchFacesByImageRequest $input * - * @throws InvalidS3ObjectException - * @throws InvalidParameterException - * @throws ImageTooLargeException * @throws AccessDeniedException + * @throws ImageTooLargeException * @throws InternalServerErrorException - * @throws ThrottlingException + * @throws InvalidImageFormatException + * @throws InvalidParameterException + * @throws InvalidS3ObjectException * @throws ProvisionedThroughputExceededException * @throws ResourceNotFoundException - * @throws InvalidImageFormatException + * @throws ThrottlingException */ public function searchFacesByImage($input): SearchFacesByImageResponse { $input = SearchFacesByImageRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SearchFacesByImage', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidS3ObjectException' => InvalidS3ObjectException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'ImageTooLargeException' => ImageTooLargeException::class, 'AccessDeniedException' => AccessDeniedException::class, + 'ImageTooLargeException' => ImageTooLargeException::class, 'InternalServerError' => InternalServerErrorException::class, - 'ThrottlingException' => ThrottlingException::class, + 'InvalidImageFormatException' => InvalidImageFormatException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidS3ObjectException' => InvalidS3ObjectException::class, 'ProvisionedThroughputExceededException' => ProvisionedThroughputExceededException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidImageFormatException' => InvalidImageFormatException::class, + 'ThrottlingException' => ThrottlingException::class, ]])); return new SearchFacesByImageResponse($response); diff --git a/src/Service/Route53/CHANGELOG.md b/src/Service/Route53/CHANGELOG.md index d663a6010..b010289ca 100644 --- a/src/Service/Route53/CHANGELOG.md +++ b/src/Service/Route53/CHANGELOG.md @@ -6,6 +6,10 @@ - AWS api-change: Added us-gov-east-1 and us-gov-west-1 as valid Latency Based Routing regions for change-resource-record-sets. +### Changed + +- Sort exception alphabetically. + ## 2.8.0 ### Added diff --git a/src/Service/Route53/src/Route53Client.php b/src/Service/Route53/src/Route53Client.php index 2aed3bf03..1e9fcabd1 100644 --- a/src/Service/Route53/src/Route53Client.php +++ b/src/Service/Route53/src/Route53Client.php @@ -122,20 +122,20 @@ class Route53Client extends AbstractApi * '@region'?: string|null, * }|ChangeResourceRecordSetsRequest $input * - * @throws NoSuchHostedZoneException - * @throws NoSuchHealthCheckException * @throws InvalidChangeBatchException * @throws InvalidInputException + * @throws NoSuchHealthCheckException + * @throws NoSuchHostedZoneException * @throws PriorRequestNotCompleteException */ public function changeResourceRecordSets($input): ChangeResourceRecordSetsResponse { $input = ChangeResourceRecordSetsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ChangeResourceRecordSets', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchHostedZone' => NoSuchHostedZoneException::class, - 'NoSuchHealthCheck' => NoSuchHealthCheckException::class, 'InvalidChangeBatch' => InvalidChangeBatchException::class, 'InvalidInput' => InvalidInputException::class, + 'NoSuchHealthCheck' => NoSuchHealthCheckException::class, + 'NoSuchHostedZone' => NoSuchHostedZoneException::class, 'PriorRequestNotComplete' => PriorRequestNotCompleteException::class, ]])); @@ -201,29 +201,29 @@ public function changeResourceRecordSets($input): ChangeResourceRecordSetsRespon * '@region'?: string|null, * }|CreateHostedZoneRequest $input * - * @throws InvalidDomainNameException + * @throws ConflictingDomainExistsException + * @throws DelegationSetNotAvailableException + * @throws DelegationSetNotReusableException * @throws HostedZoneAlreadyExistsException - * @throws TooManyHostedZonesException - * @throws InvalidVPCIdException + * @throws InvalidDomainNameException * @throws InvalidInputException - * @throws DelegationSetNotAvailableException - * @throws ConflictingDomainExistsException + * @throws InvalidVPCIdException * @throws NoSuchDelegationSetException - * @throws DelegationSetNotReusableException + * @throws TooManyHostedZonesException */ public function createHostedZone($input): CreateHostedZoneResponse { $input = CreateHostedZoneRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateHostedZone', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidDomainName' => InvalidDomainNameException::class, + 'ConflictingDomainExists' => ConflictingDomainExistsException::class, + 'DelegationSetNotAvailable' => DelegationSetNotAvailableException::class, + 'DelegationSetNotReusable' => DelegationSetNotReusableException::class, 'HostedZoneAlreadyExists' => HostedZoneAlreadyExistsException::class, - 'TooManyHostedZones' => TooManyHostedZonesException::class, - 'InvalidVPCId' => InvalidVPCIdException::class, + 'InvalidDomainName' => InvalidDomainNameException::class, 'InvalidInput' => InvalidInputException::class, - 'DelegationSetNotAvailable' => DelegationSetNotAvailableException::class, - 'ConflictingDomainExists' => ConflictingDomainExistsException::class, + 'InvalidVPCId' => InvalidVPCIdException::class, 'NoSuchDelegationSet' => NoSuchDelegationSetException::class, - 'DelegationSetNotReusable' => DelegationSetNotReusableException::class, + 'TooManyHostedZones' => TooManyHostedZonesException::class, ]])); return new CreateHostedZoneResponse($response); @@ -277,21 +277,21 @@ public function createHostedZone($input): CreateHostedZoneResponse * '@region'?: string|null, * }|DeleteHostedZoneRequest $input * - * @throws NoSuchHostedZoneException * @throws HostedZoneNotEmptyException - * @throws PriorRequestNotCompleteException - * @throws InvalidInputException * @throws InvalidDomainNameException + * @throws InvalidInputException + * @throws NoSuchHostedZoneException + * @throws PriorRequestNotCompleteException */ public function deleteHostedZone($input): DeleteHostedZoneResponse { $input = DeleteHostedZoneRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteHostedZone', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchHostedZone' => NoSuchHostedZoneException::class, 'HostedZoneNotEmpty' => HostedZoneNotEmptyException::class, - 'PriorRequestNotComplete' => PriorRequestNotCompleteException::class, - 'InvalidInput' => InvalidInputException::class, 'InvalidDomainName' => InvalidDomainNameException::class, + 'InvalidInput' => InvalidInputException::class, + 'NoSuchHostedZone' => NoSuchHostedZoneException::class, + 'PriorRequestNotComplete' => PriorRequestNotCompleteException::class, ]])); return new DeleteHostedZoneResponse($response); @@ -315,17 +315,17 @@ public function deleteHostedZone($input): DeleteHostedZoneResponse * '@region'?: string|null, * }|ListHostedZonesRequest $input * + * @throws DelegationSetNotReusableException * @throws InvalidInputException * @throws NoSuchDelegationSetException - * @throws DelegationSetNotReusableException */ public function listHostedZones($input = []): ListHostedZonesResponse { $input = ListHostedZonesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListHostedZones', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'DelegationSetNotReusable' => DelegationSetNotReusableException::class, 'InvalidInput' => InvalidInputException::class, 'NoSuchDelegationSet' => NoSuchDelegationSetException::class, - 'DelegationSetNotReusable' => DelegationSetNotReusableException::class, ]])); return new ListHostedZonesResponse($response, $this, $input); @@ -382,15 +382,15 @@ public function listHostedZones($input = []): ListHostedZonesResponse * '@region'?: string|null, * }|ListHostedZonesByNameRequest $input * - * @throws InvalidInputException * @throws InvalidDomainNameException + * @throws InvalidInputException */ public function listHostedZonesByName($input = []): ListHostedZonesByNameResponse { $input = ListHostedZonesByNameRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListHostedZonesByName', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidInput' => InvalidInputException::class, 'InvalidDomainName' => InvalidDomainNameException::class, + 'InvalidInput' => InvalidInputException::class, ]])); return new ListHostedZonesByNameResponse($response); @@ -465,15 +465,15 @@ public function listHostedZonesByName($input = []): ListHostedZonesByNameRespons * '@region'?: string|null, * }|ListResourceRecordSetsRequest $input * - * @throws NoSuchHostedZoneException * @throws InvalidInputException + * @throws NoSuchHostedZoneException */ public function listResourceRecordSets($input): ListResourceRecordSetsResponse { $input = ListResourceRecordSetsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListResourceRecordSets', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchHostedZone' => NoSuchHostedZoneException::class, 'InvalidInput' => InvalidInputException::class, + 'NoSuchHostedZone' => NoSuchHostedZoneException::class, ]])); return new ListResourceRecordSetsResponse($response, $this, $input); @@ -491,8 +491,8 @@ public function resourceRecordSetsChanged($input): ResourceRecordSetsChangedWait { $input = GetChangeRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetChange', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchChange' => NoSuchChangeException::class, 'InvalidInput' => InvalidInputException::class, + 'NoSuchChange' => NoSuchChangeException::class, ]])); return new ResourceRecordSetsChangedWaiter($response, $this, $input); diff --git a/src/Service/S3/CHANGELOG.md b/src/Service/S3/CHANGELOG.md index 4ab9366af..0c3da822e 100644 --- a/src/Service/S3/CHANGELOG.md +++ b/src/Service/S3/CHANGELOG.md @@ -4,6 +4,7 @@ ### Changed +- Sort exception alphabetically. - AWS enhancement: Documentation updates. ## 2.8.0 diff --git a/src/Service/S3/src/S3Client.php b/src/Service/S3/src/S3Client.php index a632256cb..951442768 100644 --- a/src/Service/S3/src/S3Client.php +++ b/src/Service/S3/src/S3Client.php @@ -1524,15 +1524,15 @@ public function getBucketEncryption($input): GetBucketEncryptionOutput * '@region'?: string|null, * }|GetObjectRequest $input * - * @throws NoSuchKeyException * @throws InvalidObjectStateException + * @throws NoSuchKeyException */ public function getObject($input): GetObjectOutput { $input = GetObjectRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetObject', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NoSuchKey' => NoSuchKeyException::class, 'InvalidObjectState' => InvalidObjectStateException::class, + 'NoSuchKey' => NoSuchKeyException::class, ]])); return new GetObjectOutput($response); @@ -2599,19 +2599,19 @@ public function putBucketTagging($input): Result * '@region'?: string|null, * }|PutObjectRequest $input * + * @throws EncryptionTypeMismatchException * @throws InvalidRequestException * @throws InvalidWriteOffsetException * @throws TooManyPartsException - * @throws EncryptionTypeMismatchException */ public function putObject($input): PutObjectOutput { $input = PutObjectRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutObject', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'EncryptionTypeMismatch' => EncryptionTypeMismatchException::class, 'InvalidRequest' => InvalidRequestException::class, 'InvalidWriteOffset' => InvalidWriteOffsetException::class, 'TooManyParts' => TooManyPartsException::class, - 'EncryptionTypeMismatch' => EncryptionTypeMismatchException::class, ]])); return new PutObjectOutput($response); diff --git a/src/Service/Scheduler/CHANGELOG.md b/src/Service/Scheduler/CHANGELOG.md index c115483f9..065835a94 100644 --- a/src/Service/Scheduler/CHANGELOG.md +++ b/src/Service/Scheduler/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.3.0 ### Added diff --git a/src/Service/Scheduler/src/SchedulerClient.php b/src/Service/Scheduler/src/SchedulerClient.php index 884374635..7b539d56b 100644 --- a/src/Service/Scheduler/src/SchedulerClient.php +++ b/src/Service/Scheduler/src/SchedulerClient.php @@ -62,23 +62,23 @@ class SchedulerClient extends AbstractApi * '@region'?: string|null, * }|CreateScheduleInput $input * - * @throws ServiceQuotaExceededException - * @throws ValidationException - * @throws InternalServerException * @throws ConflictException + * @throws InternalServerException * @throws ResourceNotFoundException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ValidationException */ public function createSchedule($input): CreateScheduleOutput { $input = CreateScheduleInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateSchedule', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceQuotaExceededException' => ServiceQuotaExceededException::class, - 'ValidationException' => ValidationException::class, - 'InternalServerException' => InternalServerException::class, 'ConflictException' => ConflictException::class, + 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceQuotaExceededException' => ServiceQuotaExceededException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new CreateScheduleOutput($response); @@ -97,21 +97,21 @@ public function createSchedule($input): CreateScheduleOutput * '@region'?: string|null, * }|CreateScheduleGroupInput $input * - * @throws ServiceQuotaExceededException - * @throws ValidationException - * @throws InternalServerException * @throws ConflictException + * @throws InternalServerException + * @throws ServiceQuotaExceededException * @throws ThrottlingException + * @throws ValidationException */ public function createScheduleGroup($input): CreateScheduleGroupOutput { $input = CreateScheduleGroupInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateScheduleGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ServiceQuotaExceededException' => ServiceQuotaExceededException::class, - 'ValidationException' => ValidationException::class, - 'InternalServerException' => InternalServerException::class, 'ConflictException' => ConflictException::class, + 'InternalServerException' => InternalServerException::class, + 'ServiceQuotaExceededException' => ServiceQuotaExceededException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new CreateScheduleGroupOutput($response); @@ -130,21 +130,21 @@ public function createScheduleGroup($input): CreateScheduleGroupOutput * '@region'?: string|null, * }|DeleteScheduleInput $input * - * @throws ValidationException - * @throws InternalServerException * @throws ConflictException + * @throws InternalServerException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ValidationException */ public function deleteSchedule($input): DeleteScheduleOutput { $input = DeleteScheduleInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteSchedule', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ValidationException' => ValidationException::class, - 'InternalServerException' => InternalServerException::class, 'ConflictException' => ConflictException::class, + 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new DeleteScheduleOutput($response); @@ -168,21 +168,21 @@ public function deleteSchedule($input): DeleteScheduleOutput * '@region'?: string|null, * }|DeleteScheduleGroupInput $input * - * @throws ValidationException - * @throws InternalServerException * @throws ConflictException + * @throws InternalServerException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ValidationException */ public function deleteScheduleGroup($input): DeleteScheduleGroupOutput { $input = DeleteScheduleGroupInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteScheduleGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ValidationException' => ValidationException::class, - 'InternalServerException' => InternalServerException::class, 'ConflictException' => ConflictException::class, + 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new DeleteScheduleGroupOutput($response); @@ -200,19 +200,19 @@ public function deleteScheduleGroup($input): DeleteScheduleGroupOutput * '@region'?: string|null, * }|GetScheduleInput $input * - * @throws ValidationException * @throws InternalServerException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ValidationException */ public function getSchedule($input): GetScheduleOutput { $input = GetScheduleInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetSchedule', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ValidationException' => ValidationException::class, 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new GetScheduleOutput($response); @@ -229,19 +229,19 @@ public function getSchedule($input): GetScheduleOutput * '@region'?: string|null, * }|GetScheduleGroupInput $input * - * @throws ValidationException * @throws InternalServerException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ValidationException */ public function getScheduleGroup($input): GetScheduleGroupOutput { $input = GetScheduleGroupInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetScheduleGroup', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ValidationException' => ValidationException::class, 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new GetScheduleGroupOutput($response); @@ -260,17 +260,17 @@ public function getScheduleGroup($input): GetScheduleGroupOutput * '@region'?: string|null, * }|ListScheduleGroupsInput $input * - * @throws ValidationException * @throws InternalServerException * @throws ThrottlingException + * @throws ValidationException */ public function listScheduleGroups($input = []): ListScheduleGroupsOutput { $input = ListScheduleGroupsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListScheduleGroups', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ValidationException' => ValidationException::class, 'InternalServerException' => InternalServerException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new ListScheduleGroupsOutput($response, $this, $input); @@ -291,19 +291,19 @@ public function listScheduleGroups($input = []): ListScheduleGroupsOutput * '@region'?: string|null, * }|ListSchedulesInput $input * - * @throws ValidationException * @throws InternalServerException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ValidationException */ public function listSchedules($input = []): ListSchedulesOutput { $input = ListSchedulesInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListSchedules', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ValidationException' => ValidationException::class, 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new ListSchedulesOutput($response, $this, $input); @@ -337,21 +337,21 @@ public function listSchedules($input = []): ListSchedulesOutput * '@region'?: string|null, * }|UpdateScheduleInput $input * - * @throws ValidationException - * @throws InternalServerException * @throws ConflictException + * @throws InternalServerException * @throws ResourceNotFoundException * @throws ThrottlingException + * @throws ValidationException */ public function updateSchedule($input): UpdateScheduleOutput { $input = UpdateScheduleInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateSchedule', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ValidationException' => ValidationException::class, - 'InternalServerException' => InternalServerException::class, 'ConflictException' => ConflictException::class, + 'InternalServerException' => InternalServerException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new UpdateScheduleOutput($response); diff --git a/src/Service/SecretsManager/CHANGELOG.md b/src/Service/SecretsManager/CHANGELOG.md index 465bb4c06..cbd864d38 100644 --- a/src/Service/SecretsManager/CHANGELOG.md +++ b/src/Service/SecretsManager/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.7.0 ### Added diff --git a/src/Service/SecretsManager/src/SecretsManagerClient.php b/src/Service/SecretsManager/src/SecretsManagerClient.php index da919fb26..710a8bcea 100644 --- a/src/Service/SecretsManager/src/SecretsManagerClient.php +++ b/src/Service/SecretsManager/src/SecretsManagerClient.php @@ -105,31 +105,31 @@ class SecretsManagerClient extends AbstractApi * '@region'?: string|null, * }|CreateSecretRequest $input * + * @throws DecryptionFailureException + * @throws EncryptionFailureException + * @throws InternalServiceErrorException * @throws InvalidParameterException * @throws InvalidRequestException * @throws LimitExceededException - * @throws EncryptionFailureException - * @throws ResourceExistsException - * @throws ResourceNotFoundException * @throws MalformedPolicyDocumentException - * @throws InternalServiceErrorException * @throws PreconditionNotMetException - * @throws DecryptionFailureException + * @throws ResourceExistsException + * @throws ResourceNotFoundException */ public function createSecret($input): CreateSecretResponse { $input = CreateSecretRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateSecret', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'DecryptionFailure' => DecryptionFailureException::class, + 'EncryptionFailure' => EncryptionFailureException::class, + 'InternalServiceError' => InternalServiceErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidRequestException' => InvalidRequestException::class, 'LimitExceededException' => LimitExceededException::class, - 'EncryptionFailure' => EncryptionFailureException::class, - 'ResourceExistsException' => ResourceExistsException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'MalformedPolicyDocumentException' => MalformedPolicyDocumentException::class, - 'InternalServiceError' => InternalServiceErrorException::class, 'PreconditionNotMetException' => PreconditionNotMetException::class, - 'DecryptionFailure' => DecryptionFailureException::class, + 'ResourceExistsException' => ResourceExistsException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new CreateSecretResponse($response); @@ -184,19 +184,19 @@ public function createSecret($input): CreateSecretResponse * '@region'?: string|null, * }|DeleteSecretRequest $input * - * @throws ResourceNotFoundException + * @throws InternalServiceErrorException * @throws InvalidParameterException * @throws InvalidRequestException - * @throws InternalServiceErrorException + * @throws ResourceNotFoundException */ public function deleteSecret($input): DeleteSecretResponse { $input = DeleteSecretRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteSecret', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'InternalServiceError' => InternalServiceErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidRequestException' => InvalidRequestException::class, - 'InternalServiceError' => InternalServiceErrorException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new DeleteSecretResponse($response); @@ -239,21 +239,21 @@ public function deleteSecret($input): DeleteSecretResponse * '@region'?: string|null, * }|GetSecretValueRequest $input * - * @throws ResourceNotFoundException - * @throws InvalidParameterException - * @throws InvalidRequestException * @throws DecryptionFailureException * @throws InternalServiceErrorException + * @throws InvalidParameterException + * @throws InvalidRequestException + * @throws ResourceNotFoundException */ public function getSecretValue($input): GetSecretValueResponse { $input = GetSecretValueRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetSecretValue', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InvalidParameterException' => InvalidParameterException::class, - 'InvalidRequestException' => InvalidRequestException::class, 'DecryptionFailure' => DecryptionFailureException::class, 'InternalServiceError' => InternalServiceErrorException::class, + 'InvalidParameterException' => InvalidParameterException::class, + 'InvalidRequestException' => InvalidRequestException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new GetSecretValueResponse($response); @@ -296,19 +296,19 @@ public function getSecretValue($input): GetSecretValueResponse * '@region'?: string|null, * }|ListSecretsRequest $input * + * @throws InternalServiceErrorException + * @throws InvalidNextTokenException * @throws InvalidParameterException * @throws InvalidRequestException - * @throws InvalidNextTokenException - * @throws InternalServiceErrorException */ public function listSecrets($input = []): ListSecretsResponse { $input = ListSecretsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListSecrets', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InternalServiceError' => InternalServiceErrorException::class, + 'InvalidNextTokenException' => InvalidNextTokenException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidRequestException' => InvalidRequestException::class, - 'InvalidNextTokenException' => InvalidNextTokenException::class, - 'InternalServiceError' => InternalServiceErrorException::class, ]])); return new ListSecretsResponse($response, $this, $input); @@ -365,27 +365,27 @@ public function listSecrets($input = []): ListSecretsResponse * '@region'?: string|null, * }|PutSecretValueRequest $input * + * @throws DecryptionFailureException + * @throws EncryptionFailureException + * @throws InternalServiceErrorException * @throws InvalidParameterException * @throws InvalidRequestException * @throws LimitExceededException - * @throws EncryptionFailureException * @throws ResourceExistsException * @throws ResourceNotFoundException - * @throws InternalServiceErrorException - * @throws DecryptionFailureException */ public function putSecretValue($input): PutSecretValueResponse { $input = PutSecretValueRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutSecretValue', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'DecryptionFailure' => DecryptionFailureException::class, + 'EncryptionFailure' => EncryptionFailureException::class, + 'InternalServiceError' => InternalServiceErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidRequestException' => InvalidRequestException::class, 'LimitExceededException' => LimitExceededException::class, - 'EncryptionFailure' => EncryptionFailureException::class, 'ResourceExistsException' => ResourceExistsException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InternalServiceError' => InternalServiceErrorException::class, - 'DecryptionFailure' => DecryptionFailureException::class, ]])); return new PutSecretValueResponse($response); @@ -448,31 +448,31 @@ public function putSecretValue($input): PutSecretValueResponse * '@region'?: string|null, * }|UpdateSecretRequest $input * + * @throws DecryptionFailureException + * @throws EncryptionFailureException + * @throws InternalServiceErrorException * @throws InvalidParameterException * @throws InvalidRequestException * @throws LimitExceededException - * @throws EncryptionFailureException - * @throws ResourceExistsException - * @throws ResourceNotFoundException * @throws MalformedPolicyDocumentException - * @throws InternalServiceErrorException * @throws PreconditionNotMetException - * @throws DecryptionFailureException + * @throws ResourceExistsException + * @throws ResourceNotFoundException */ public function updateSecret($input): UpdateSecretResponse { $input = UpdateSecretRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'UpdateSecret', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'DecryptionFailure' => DecryptionFailureException::class, + 'EncryptionFailure' => EncryptionFailureException::class, + 'InternalServiceError' => InternalServiceErrorException::class, 'InvalidParameterException' => InvalidParameterException::class, 'InvalidRequestException' => InvalidRequestException::class, 'LimitExceededException' => LimitExceededException::class, - 'EncryptionFailure' => EncryptionFailureException::class, - 'ResourceExistsException' => ResourceExistsException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, 'MalformedPolicyDocumentException' => MalformedPolicyDocumentException::class, - 'InternalServiceError' => InternalServiceErrorException::class, 'PreconditionNotMetException' => PreconditionNotMetException::class, - 'DecryptionFailure' => DecryptionFailureException::class, + 'ResourceExistsException' => ResourceExistsException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, ]])); return new UpdateSecretResponse($response); diff --git a/src/Service/Ses/CHANGELOG.md b/src/Service/Ses/CHANGELOG.md index c07ec8222..8dcc79fd1 100644 --- a/src/Service/Ses/CHANGELOG.md +++ b/src/Service/Ses/CHANGELOG.md @@ -6,6 +6,10 @@ - AWS api-change: This release enables customers to provide attachments in the SESv2 SendEmail and SendBulkEmail APIs. +### Changed + +- Sort exception alphabetically. + ## 1.11.0 ### Added diff --git a/src/Service/Ses/src/SesClient.php b/src/Service/Ses/src/SesClient.php index 9b147447a..2c2a38dc5 100644 --- a/src/Service/Ses/src/SesClient.php +++ b/src/Service/Ses/src/SesClient.php @@ -39,16 +39,16 @@ class SesClient extends AbstractApi * '@region'?: string|null, * }|DeleteSuppressedDestinationRequest $input * - * @throws NotFoundException * @throws BadRequestException + * @throws NotFoundException * @throws TooManyRequestsException */ public function deleteSuppressedDestination($input): DeleteSuppressedDestinationResponse { $input = DeleteSuppressedDestinationRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteSuppressedDestination', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'NotFoundException' => NotFoundException::class, 'BadRequestException' => BadRequestException::class, + 'NotFoundException' => NotFoundException::class, 'TooManyRequestsException' => TooManyRequestsException::class, ]])); @@ -67,16 +67,16 @@ public function deleteSuppressedDestination($input): DeleteSuppressedDestination * }|GetSuppressedDestinationRequest $input * * @throws BadRequestException - * @throws TooManyRequestsException * @throws NotFoundException + * @throws TooManyRequestsException */ public function getSuppressedDestination($input): GetSuppressedDestinationResponse { $input = GetSuppressedDestinationRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetSuppressedDestination', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'BadRequestException' => BadRequestException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'NotFoundException' => NotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, ]])); return new GetSuppressedDestinationResponse($response); @@ -111,27 +111,27 @@ public function getSuppressedDestination($input): GetSuppressedDestinationRespon * '@region'?: string|null, * }|SendEmailRequest $input * - * @throws TooManyRequestsException - * @throws LimitExceededException * @throws AccountSuspendedException - * @throws SendingPausedException - * @throws MessageRejectedException + * @throws BadRequestException + * @throws LimitExceededException * @throws MailFromDomainNotVerifiedException + * @throws MessageRejectedException * @throws NotFoundException - * @throws BadRequestException + * @throws SendingPausedException + * @throws TooManyRequestsException */ public function sendEmail($input): SendEmailResponse { $input = SendEmailRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SendEmail', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TooManyRequestsException' => TooManyRequestsException::class, - 'LimitExceededException' => LimitExceededException::class, 'AccountSuspendedException' => AccountSuspendedException::class, - 'SendingPausedException' => SendingPausedException::class, - 'MessageRejected' => MessageRejectedException::class, + 'BadRequestException' => BadRequestException::class, + 'LimitExceededException' => LimitExceededException::class, 'MailFromDomainNotVerifiedException' => MailFromDomainNotVerifiedException::class, + 'MessageRejected' => MessageRejectedException::class, 'NotFoundException' => NotFoundException::class, - 'BadRequestException' => BadRequestException::class, + 'SendingPausedException' => SendingPausedException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, ]])); return new SendEmailResponse($response); diff --git a/src/Service/Sns/CHANGELOG.md b/src/Service/Sns/CHANGELOG.md index ccaf19f43..7a5889611 100644 --- a/src/Service/Sns/CHANGELOG.md +++ b/src/Service/Sns/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.9.0 ### Added diff --git a/src/Service/Sns/src/SnsClient.php b/src/Service/Sns/src/SnsClient.php index 63dd3fef2..11e19314d 100644 --- a/src/Service/Sns/src/SnsClient.php +++ b/src/Service/Sns/src/SnsClient.php @@ -86,18 +86,18 @@ class SnsClient extends AbstractApi * '@region'?: string|null, * }|CreatePlatformEndpointInput $input * - * @throws InvalidParameterException - * @throws InternalErrorException * @throws AuthorizationErrorException + * @throws InternalErrorException + * @throws InvalidParameterException * @throws NotFoundException */ public function createPlatformEndpoint($input): CreateEndpointResponse { $input = CreatePlatformEndpointInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreatePlatformEndpoint', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameter' => InvalidParameterException::class, - 'InternalError' => InternalErrorException::class, 'AuthorizationError' => AuthorizationErrorException::class, + 'InternalError' => InternalErrorException::class, + 'InvalidParameter' => InvalidParameterException::class, 'NotFound' => NotFoundException::class, ]])); @@ -123,29 +123,29 @@ public function createPlatformEndpoint($input): CreateEndpointResponse * '@region'?: string|null, * }|CreateTopicInput $input * - * @throws InvalidParameterException - * @throws TopicLimitExceededException - * @throws InternalErrorException * @throws AuthorizationErrorException + * @throws ConcurrentAccessException + * @throws InternalErrorException + * @throws InvalidParameterException * @throws InvalidSecurityException - * @throws TagLimitExceededException * @throws StaleTagException + * @throws TagLimitExceededException * @throws TagPolicyException - * @throws ConcurrentAccessException + * @throws TopicLimitExceededException */ public function createTopic($input): CreateTopicResponse { $input = CreateTopicInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateTopic', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameter' => InvalidParameterException::class, - 'TopicLimitExceeded' => TopicLimitExceededException::class, - 'InternalError' => InternalErrorException::class, 'AuthorizationError' => AuthorizationErrorException::class, + 'ConcurrentAccess' => ConcurrentAccessException::class, + 'InternalError' => InternalErrorException::class, + 'InvalidParameter' => InvalidParameterException::class, 'InvalidSecurity' => InvalidSecurityException::class, - 'TagLimitExceeded' => TagLimitExceededException::class, 'StaleTag' => StaleTagException::class, + 'TagLimitExceeded' => TagLimitExceededException::class, 'TagPolicy' => TagPolicyException::class, - 'ConcurrentAccess' => ConcurrentAccessException::class, + 'TopicLimitExceeded' => TopicLimitExceededException::class, ]])); return new CreateTopicResponse($response); @@ -168,17 +168,17 @@ public function createTopic($input): CreateTopicResponse * '@region'?: string|null, * }|DeleteEndpointInput $input * - * @throws InvalidParameterException - * @throws InternalErrorException * @throws AuthorizationErrorException + * @throws InternalErrorException + * @throws InvalidParameterException */ public function deleteEndpoint($input): Result { $input = DeleteEndpointInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteEndpoint', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameter' => InvalidParameterException::class, - 'InternalError' => InternalErrorException::class, 'AuthorizationError' => AuthorizationErrorException::class, + 'InternalError' => InternalErrorException::class, + 'InvalidParameter' => InvalidParameterException::class, ]])); return new Result($response); @@ -197,27 +197,27 @@ public function deleteEndpoint($input): Result * '@region'?: string|null, * }|DeleteTopicInput $input * + * @throws AuthorizationErrorException + * @throws ConcurrentAccessException + * @throws InternalErrorException * @throws InvalidParameterException * @throws InvalidStateException - * @throws InternalErrorException - * @throws AuthorizationErrorException * @throws NotFoundException * @throws StaleTagException * @throws TagPolicyException - * @throws ConcurrentAccessException */ public function deleteTopic($input): Result { $input = DeleteTopicInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteTopic', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AuthorizationError' => AuthorizationErrorException::class, + 'ConcurrentAccess' => ConcurrentAccessException::class, + 'InternalError' => InternalErrorException::class, 'InvalidParameter' => InvalidParameterException::class, 'InvalidState' => InvalidStateException::class, - 'InternalError' => InternalErrorException::class, - 'AuthorizationError' => AuthorizationErrorException::class, 'NotFound' => NotFoundException::class, 'StaleTag' => StaleTagException::class, 'TagPolicy' => TagPolicyException::class, - 'ConcurrentAccess' => ConcurrentAccessException::class, ]])); return new Result($response); @@ -239,19 +239,19 @@ public function deleteTopic($input): Result * '@region'?: string|null, * }|ListSubscriptionsByTopicInput $input * - * @throws InvalidParameterException + * @throws AuthorizationErrorException * @throws InternalErrorException + * @throws InvalidParameterException * @throws NotFoundException - * @throws AuthorizationErrorException */ public function listSubscriptionsByTopic($input): ListSubscriptionsByTopicResponse { $input = ListSubscriptionsByTopicInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListSubscriptionsByTopic', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameter' => InvalidParameterException::class, + 'AuthorizationError' => AuthorizationErrorException::class, 'InternalError' => InternalErrorException::class, + 'InvalidParameter' => InvalidParameterException::class, 'NotFound' => NotFoundException::class, - 'AuthorizationError' => AuthorizationErrorException::class, ]])); return new ListSubscriptionsByTopicResponse($response, $this, $input); @@ -272,17 +272,17 @@ public function listSubscriptionsByTopic($input): ListSubscriptionsByTopicRespon * '@region'?: string|null, * }|ListTopicsInput $input * - * @throws InvalidParameterException - * @throws InternalErrorException * @throws AuthorizationErrorException + * @throws InternalErrorException + * @throws InvalidParameterException */ public function listTopics($input = []): ListTopicsResponse { $input = ListTopicsInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListTopics', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameter' => InvalidParameterException::class, - 'InternalError' => InternalErrorException::class, 'AuthorizationError' => AuthorizationErrorException::class, + 'InternalError' => InternalErrorException::class, + 'InvalidParameter' => InvalidParameterException::class, ]])); return new ListTopicsResponse($response, $this, $input); @@ -324,40 +324,40 @@ public function listTopics($input = []): ListTopicsResponse * '@region'?: string|null, * }|PublishInput $input * + * @throws AuthorizationErrorException + * @throws EndpointDisabledException + * @throws InternalErrorException * @throws InvalidParameterException * @throws InvalidParameterValueException - * @throws InternalErrorException - * @throws NotFoundException - * @throws EndpointDisabledException - * @throws PlatformApplicationDisabledException - * @throws AuthorizationErrorException + * @throws InvalidSecurityException + * @throws KMSAccessDeniedException * @throws KMSDisabledException * @throws KMSInvalidStateException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException - * @throws KMSAccessDeniedException - * @throws InvalidSecurityException + * @throws NotFoundException + * @throws PlatformApplicationDisabledException * @throws ValidationException */ public function publish($input): PublishResponse { $input = PublishInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Publish', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AuthorizationError' => AuthorizationErrorException::class, + 'EndpointDisabled' => EndpointDisabledException::class, + 'InternalError' => InternalErrorException::class, 'InvalidParameter' => InvalidParameterException::class, 'ParameterValueInvalid' => InvalidParameterValueException::class, - 'InternalError' => InternalErrorException::class, - 'NotFound' => NotFoundException::class, - 'EndpointDisabled' => EndpointDisabledException::class, - 'PlatformApplicationDisabled' => PlatformApplicationDisabledException::class, - 'AuthorizationError' => AuthorizationErrorException::class, + 'InvalidSecurity' => InvalidSecurityException::class, + 'KMSAccessDenied' => KMSAccessDeniedException::class, 'KMSDisabled' => KMSDisabledException::class, 'KMSInvalidState' => KMSInvalidStateException::class, 'KMSNotFound' => KMSNotFoundException::class, 'KMSOptInRequired' => KMSOptInRequiredException::class, 'KMSThrottling' => KMSThrottlingException::class, - 'KMSAccessDenied' => KMSAccessDeniedException::class, - 'InvalidSecurity' => InvalidSecurityException::class, + 'NotFound' => NotFoundException::class, + 'PlatformApplicationDisabled' => PlatformApplicationDisabledException::class, 'ValidationException' => ValidationException::class, ]])); @@ -398,50 +398,50 @@ public function publish($input): PublishResponse * '@region'?: string|null, * }|PublishBatchInput $input * - * @throws InvalidParameterException - * @throws InvalidParameterValueException - * @throws InternalErrorException - * @throws NotFoundException - * @throws EndpointDisabledException - * @throws PlatformApplicationDisabledException * @throws AuthorizationErrorException * @throws BatchEntryIdsNotDistinctException * @throws BatchRequestTooLongException * @throws EmptyBatchRequestException + * @throws EndpointDisabledException + * @throws InternalErrorException * @throws InvalidBatchEntryIdException - * @throws TooManyEntriesInBatchRequestException + * @throws InvalidParameterException + * @throws InvalidParameterValueException + * @throws InvalidSecurityException + * @throws KMSAccessDeniedException * @throws KMSDisabledException * @throws KMSInvalidStateException * @throws KMSNotFoundException * @throws KMSOptInRequiredException * @throws KMSThrottlingException - * @throws KMSAccessDeniedException - * @throws InvalidSecurityException + * @throws NotFoundException + * @throws PlatformApplicationDisabledException + * @throws TooManyEntriesInBatchRequestException * @throws ValidationException */ public function publishBatch($input): PublishBatchResponse { $input = PublishBatchInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PublishBatch', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameter' => InvalidParameterException::class, - 'ParameterValueInvalid' => InvalidParameterValueException::class, - 'InternalError' => InternalErrorException::class, - 'NotFound' => NotFoundException::class, - 'EndpointDisabled' => EndpointDisabledException::class, - 'PlatformApplicationDisabled' => PlatformApplicationDisabledException::class, 'AuthorizationError' => AuthorizationErrorException::class, 'BatchEntryIdsNotDistinct' => BatchEntryIdsNotDistinctException::class, 'BatchRequestTooLong' => BatchRequestTooLongException::class, 'EmptyBatchRequest' => EmptyBatchRequestException::class, + 'EndpointDisabled' => EndpointDisabledException::class, + 'InternalError' => InternalErrorException::class, 'InvalidBatchEntryId' => InvalidBatchEntryIdException::class, - 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, + 'InvalidParameter' => InvalidParameterException::class, + 'ParameterValueInvalid' => InvalidParameterValueException::class, + 'InvalidSecurity' => InvalidSecurityException::class, + 'KMSAccessDenied' => KMSAccessDeniedException::class, 'KMSDisabled' => KMSDisabledException::class, 'KMSInvalidState' => KMSInvalidStateException::class, 'KMSNotFound' => KMSNotFoundException::class, 'KMSOptInRequired' => KMSOptInRequiredException::class, 'KMSThrottling' => KMSThrottlingException::class, - 'KMSAccessDenied' => KMSAccessDeniedException::class, - 'InvalidSecurity' => InvalidSecurityException::class, + 'NotFound' => NotFoundException::class, + 'PlatformApplicationDisabled' => PlatformApplicationDisabledException::class, + 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, 'ValidationException' => ValidationException::class, ]])); @@ -470,27 +470,27 @@ public function publishBatch($input): PublishBatchResponse * '@region'?: string|null, * }|SubscribeInput $input * - * @throws SubscriptionLimitExceededException + * @throws AuthorizationErrorException * @throws FilterPolicyLimitExceededException - * @throws ReplayLimitExceededException - * @throws InvalidParameterException * @throws InternalErrorException - * @throws NotFoundException - * @throws AuthorizationErrorException + * @throws InvalidParameterException * @throws InvalidSecurityException + * @throws NotFoundException + * @throws ReplayLimitExceededException + * @throws SubscriptionLimitExceededException */ public function subscribe($input): SubscribeResponse { $input = SubscribeInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Subscribe', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'SubscriptionLimitExceeded' => SubscriptionLimitExceededException::class, + 'AuthorizationError' => AuthorizationErrorException::class, 'FilterPolicyLimitExceeded' => FilterPolicyLimitExceededException::class, - 'ReplayLimitExceeded' => ReplayLimitExceededException::class, - 'InvalidParameter' => InvalidParameterException::class, 'InternalError' => InternalErrorException::class, - 'NotFound' => NotFoundException::class, - 'AuthorizationError' => AuthorizationErrorException::class, + 'InvalidParameter' => InvalidParameterException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'NotFound' => NotFoundException::class, + 'ReplayLimitExceeded' => ReplayLimitExceededException::class, + 'SubscriptionLimitExceeded' => SubscriptionLimitExceededException::class, ]])); return new SubscribeResponse($response); @@ -516,21 +516,21 @@ public function subscribe($input): SubscribeResponse * '@region'?: string|null, * }|UnsubscribeInput $input * - * @throws InvalidParameterException - * @throws InternalErrorException * @throws AuthorizationErrorException - * @throws NotFoundException + * @throws InternalErrorException + * @throws InvalidParameterException * @throws InvalidSecurityException + * @throws NotFoundException */ public function unsubscribe($input): Result { $input = UnsubscribeInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'Unsubscribe', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidParameter' => InvalidParameterException::class, - 'InternalError' => InternalErrorException::class, 'AuthorizationError' => AuthorizationErrorException::class, - 'NotFound' => NotFoundException::class, + 'InternalError' => InternalErrorException::class, + 'InvalidParameter' => InvalidParameterException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'NotFound' => NotFoundException::class, ]])); return new Result($response); diff --git a/src/Service/Sqs/CHANGELOG.md b/src/Service/Sqs/CHANGELOG.md index 74426e729..87c5ae87f 100644 --- a/src/Service/Sqs/CHANGELOG.md +++ b/src/Service/Sqs/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.5.0 ### Added diff --git a/src/Service/Sqs/src/SqsClient.php b/src/Service/Sqs/src/SqsClient.php index 6979ca996..0c1c733dc 100644 --- a/src/Service/Sqs/src/SqsClient.php +++ b/src/Service/Sqs/src/SqsClient.php @@ -106,22 +106,22 @@ class SqsClient extends AbstractApi * '@region'?: string|null, * }|AddPermissionRequest $input * - * @throws OverLimitException - * @throws RequestThrottledException - * @throws QueueDoesNotExistException * @throws InvalidAddressException * @throws InvalidSecurityException + * @throws OverLimitException + * @throws QueueDoesNotExistException + * @throws RequestThrottledException * @throws UnsupportedOperationException */ public function addPermission($input): Result { $input = AddPermissionRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'AddPermission', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'OverLimit' => OverLimitException::class, - 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'InvalidAddress' => InvalidAddressException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'OverLimit' => OverLimitException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); @@ -182,25 +182,25 @@ public function addPermission($input): Result * '@region'?: string|null, * }|ChangeMessageVisibilityRequest $input * + * @throws InvalidAddressException + * @throws InvalidSecurityException * @throws MessageNotInflightException + * @throws QueueDoesNotExistException * @throws ReceiptHandleIsInvalidException * @throws RequestThrottledException - * @throws QueueDoesNotExistException * @throws UnsupportedOperationException - * @throws InvalidAddressException - * @throws InvalidSecurityException */ public function changeMessageVisibility($input): Result { $input = ChangeMessageVisibilityRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ChangeMessageVisibility', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InvalidAddress' => InvalidAddressException::class, + 'InvalidSecurity' => InvalidSecurityException::class, 'MessageNotInflight' => MessageNotInflightException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'ReceiptHandleIsInvalid' => ReceiptHandleIsInvalidException::class, 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, - 'InvalidAddress' => InvalidAddressException::class, - 'InvalidSecurity' => InvalidSecurityException::class, ]])); return new Result($response); @@ -223,29 +223,29 @@ public function changeMessageVisibility($input): Result * '@region'?: string|null, * }|ChangeMessageVisibilityBatchRequest $input * - * @throws TooManyEntriesInBatchRequestException - * @throws EmptyBatchRequestException * @throws BatchEntryIdsNotDistinctException + * @throws EmptyBatchRequestException + * @throws InvalidAddressException * @throws InvalidBatchEntryIdException - * @throws RequestThrottledException + * @throws InvalidSecurityException * @throws QueueDoesNotExistException + * @throws RequestThrottledException + * @throws TooManyEntriesInBatchRequestException * @throws UnsupportedOperationException - * @throws InvalidAddressException - * @throws InvalidSecurityException */ public function changeMessageVisibilityBatch($input): ChangeMessageVisibilityBatchResult { $input = ChangeMessageVisibilityBatchRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ChangeMessageVisibilityBatch', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, - 'EmptyBatchRequest' => EmptyBatchRequestException::class, 'BatchEntryIdsNotDistinct' => BatchEntryIdsNotDistinctException::class, + 'EmptyBatchRequest' => EmptyBatchRequestException::class, + 'InvalidAddress' => InvalidAddressException::class, 'InvalidBatchEntryId' => InvalidBatchEntryIdException::class, - 'RequestThrottled' => RequestThrottledException::class, + 'InvalidSecurity' => InvalidSecurityException::class, 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, + 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, - 'InvalidAddress' => InvalidAddressException::class, - 'InvalidSecurity' => InvalidSecurityException::class, ]])); return new ChangeMessageVisibilityBatchResult($response); @@ -299,27 +299,27 @@ public function changeMessageVisibilityBatch($input): ChangeMessageVisibilityBat * '@region'?: string|null, * }|CreateQueueRequest $input * - * @throws QueueDeletedRecentlyException - * @throws QueueNameExistsException - * @throws RequestThrottledException * @throws InvalidAddressException * @throws InvalidAttributeNameException * @throws InvalidAttributeValueException - * @throws UnsupportedOperationException * @throws InvalidSecurityException + * @throws QueueDeletedRecentlyException + * @throws QueueNameExistsException + * @throws RequestThrottledException + * @throws UnsupportedOperationException */ public function createQueue($input): CreateQueueResult { $input = CreateQueueRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateQueue', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'QueueDeletedRecently' => QueueDeletedRecentlyException::class, - 'QueueNameExists' => QueueNameExistsException::class, - 'RequestThrottled' => RequestThrottledException::class, 'InvalidAddress' => InvalidAddressException::class, 'InvalidAttributeName' => InvalidAttributeNameException::class, 'InvalidAttributeValue' => InvalidAttributeValueException::class, - 'UnsupportedOperation' => UnsupportedOperationException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'QueueDeletedRecently' => QueueDeletedRecentlyException::class, + 'QueueNameExists' => QueueNameExistsException::class, + 'RequestThrottled' => RequestThrottledException::class, + 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); return new CreateQueueResult($response); @@ -352,25 +352,25 @@ public function createQueue($input): CreateQueueResult * '@region'?: string|null, * }|DeleteMessageRequest $input * + * @throws InvalidAddressException * @throws InvalidIdFormatException + * @throws InvalidSecurityException + * @throws QueueDoesNotExistException * @throws ReceiptHandleIsInvalidException * @throws RequestThrottledException - * @throws QueueDoesNotExistException * @throws UnsupportedOperationException - * @throws InvalidSecurityException - * @throws InvalidAddressException */ public function deleteMessage($input): Result { $input = DeleteMessageRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteMessage', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InvalidAddress' => InvalidAddressException::class, 'InvalidIdFormat' => InvalidIdFormatException::class, + 'InvalidSecurity' => InvalidSecurityException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'ReceiptHandleIsInvalid' => ReceiptHandleIsInvalidException::class, 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, - 'InvalidSecurity' => InvalidSecurityException::class, - 'InvalidAddress' => InvalidAddressException::class, ]])); return new Result($response); @@ -392,29 +392,29 @@ public function deleteMessage($input): Result * '@region'?: string|null, * }|DeleteMessageBatchRequest $input * - * @throws TooManyEntriesInBatchRequestException - * @throws EmptyBatchRequestException * @throws BatchEntryIdsNotDistinctException + * @throws EmptyBatchRequestException + * @throws InvalidAddressException * @throws InvalidBatchEntryIdException - * @throws RequestThrottledException + * @throws InvalidSecurityException * @throws QueueDoesNotExistException + * @throws RequestThrottledException + * @throws TooManyEntriesInBatchRequestException * @throws UnsupportedOperationException - * @throws InvalidAddressException - * @throws InvalidSecurityException */ public function deleteMessageBatch($input): DeleteMessageBatchResult { $input = DeleteMessageBatchRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteMessageBatch', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, - 'EmptyBatchRequest' => EmptyBatchRequestException::class, 'BatchEntryIdsNotDistinct' => BatchEntryIdsNotDistinctException::class, + 'EmptyBatchRequest' => EmptyBatchRequestException::class, + 'InvalidAddress' => InvalidAddressException::class, 'InvalidBatchEntryId' => InvalidBatchEntryIdException::class, - 'RequestThrottled' => RequestThrottledException::class, + 'InvalidSecurity' => InvalidSecurityException::class, 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, + 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, - 'InvalidAddress' => InvalidAddressException::class, - 'InvalidSecurity' => InvalidSecurityException::class, ]])); return new DeleteMessageBatchResult($response); @@ -447,21 +447,21 @@ public function deleteMessageBatch($input): DeleteMessageBatchResult * '@region'?: string|null, * }|DeleteQueueRequest $input * - * @throws RequestThrottledException - * @throws QueueDoesNotExistException * @throws InvalidAddressException - * @throws UnsupportedOperationException * @throws InvalidSecurityException + * @throws QueueDoesNotExistException + * @throws RequestThrottledException + * @throws UnsupportedOperationException */ public function deleteQueue($input): Result { $input = DeleteQueueRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DeleteQueue', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'InvalidAddress' => InvalidAddressException::class, - 'UnsupportedOperation' => UnsupportedOperationException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, + 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); return new Result($response); @@ -483,23 +483,23 @@ public function deleteQueue($input): Result * '@region'?: string|null, * }|GetQueueAttributesRequest $input * + * @throws InvalidAddressException * @throws InvalidAttributeNameException - * @throws RequestThrottledException + * @throws InvalidSecurityException * @throws QueueDoesNotExistException + * @throws RequestThrottledException * @throws UnsupportedOperationException - * @throws InvalidSecurityException - * @throws InvalidAddressException */ public function getQueueAttributes($input): GetQueueAttributesResult { $input = GetQueueAttributesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetQueueAttributes', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InvalidAddress' => InvalidAddressException::class, 'InvalidAttributeName' => InvalidAttributeNameException::class, - 'RequestThrottled' => RequestThrottledException::class, + 'InvalidSecurity' => InvalidSecurityException::class, 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, - 'InvalidSecurity' => InvalidSecurityException::class, - 'InvalidAddress' => InvalidAddressException::class, ]])); return new GetQueueAttributesResult($response); @@ -525,20 +525,20 @@ public function getQueueAttributes($input): GetQueueAttributesResult * '@region'?: string|null, * }|GetQueueUrlRequest $input * - * @throws RequestThrottledException - * @throws QueueDoesNotExistException * @throws InvalidAddressException * @throws InvalidSecurityException + * @throws QueueDoesNotExistException + * @throws RequestThrottledException * @throws UnsupportedOperationException */ public function getQueueUrl($input): GetQueueUrlResult { $input = GetQueueUrlRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetQueueUrl', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'InvalidAddress' => InvalidAddressException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); @@ -570,18 +570,18 @@ public function getQueueUrl($input): GetQueueUrlResult * '@region'?: string|null, * }|ListQueuesRequest $input * - * @throws RequestThrottledException - * @throws InvalidSecurityException * @throws InvalidAddressException + * @throws InvalidSecurityException + * @throws RequestThrottledException * @throws UnsupportedOperationException */ public function listQueues($input = []): ListQueuesResult { $input = ListQueuesRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ListQueues', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RequestThrottled' => RequestThrottledException::class, - 'InvalidSecurity' => InvalidSecurityException::class, 'InvalidAddress' => InvalidAddressException::class, + 'InvalidSecurity' => InvalidSecurityException::class, + 'RequestThrottled' => RequestThrottledException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); @@ -608,22 +608,22 @@ public function listQueues($input = []): ListQueuesResult * '@region'?: string|null, * }|PurgeQueueRequest $input * - * @throws QueueDoesNotExistException - * @throws PurgeQueueInProgressException - * @throws RequestThrottledException * @throws InvalidAddressException * @throws InvalidSecurityException + * @throws PurgeQueueInProgressException + * @throws QueueDoesNotExistException + * @throws RequestThrottledException * @throws UnsupportedOperationException */ public function purgeQueue($input): Result { $input = PurgeQueueRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PurgeQueue', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'QueueDoesNotExist' => QueueDoesNotExistException::class, - 'PurgeQueueInProgress' => PurgeQueueInProgressException::class, - 'RequestThrottled' => RequestThrottledException::class, 'InvalidAddress' => InvalidAddressException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'PurgeQueueInProgress' => PurgeQueueInProgressException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); @@ -643,10 +643,10 @@ public function queueExists($input): QueueExistsWaiter { $input = GetQueueUrlRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetQueueUrl', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'InvalidAddress' => InvalidAddressException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); @@ -701,37 +701,37 @@ public function queueExists($input): QueueExistsWaiter * '@region'?: string|null, * }|ReceiveMessageRequest $input * - * @throws UnsupportedOperationException - * @throws OverLimitException - * @throws RequestThrottledException - * @throws QueueDoesNotExistException + * @throws InvalidAddressException * @throws InvalidSecurityException + * @throws KmsAccessDeniedException * @throws KmsDisabledException + * @throws KmsInvalidKeyUsageException * @throws KmsInvalidStateException * @throws KmsNotFoundException * @throws KmsOptInRequiredException * @throws KmsThrottledException - * @throws KmsAccessDeniedException - * @throws KmsInvalidKeyUsageException - * @throws InvalidAddressException + * @throws OverLimitException + * @throws QueueDoesNotExistException + * @throws RequestThrottledException + * @throws UnsupportedOperationException */ public function receiveMessage($input): ReceiveMessageResult { $input = ReceiveMessageRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'ReceiveMessage', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'UnsupportedOperation' => UnsupportedOperationException::class, - 'OverLimit' => OverLimitException::class, - 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'InvalidAddress' => InvalidAddressException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'KmsAccessDenied' => KmsAccessDeniedException::class, 'KmsDisabled' => KmsDisabledException::class, + 'KmsInvalidKeyUsage' => KmsInvalidKeyUsageException::class, 'KmsInvalidState' => KmsInvalidStateException::class, 'KmsNotFound' => KmsNotFoundException::class, 'KmsOptInRequired' => KmsOptInRequiredException::class, 'KmsThrottled' => KmsThrottledException::class, - 'KmsAccessDenied' => KmsAccessDeniedException::class, - 'KmsInvalidKeyUsage' => KmsInvalidKeyUsageException::class, - 'InvalidAddress' => InvalidAddressException::class, + 'OverLimit' => OverLimitException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, + 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); return new ReceiveMessageResult($response); @@ -765,37 +765,37 @@ public function receiveMessage($input): ReceiveMessageResult * '@region'?: string|null, * }|SendMessageRequest $input * + * @throws InvalidAddressException * @throws InvalidMessageContentsException - * @throws UnsupportedOperationException - * @throws RequestThrottledException - * @throws QueueDoesNotExistException * @throws InvalidSecurityException + * @throws KmsAccessDeniedException * @throws KmsDisabledException + * @throws KmsInvalidKeyUsageException * @throws KmsInvalidStateException * @throws KmsNotFoundException * @throws KmsOptInRequiredException * @throws KmsThrottledException - * @throws KmsAccessDeniedException - * @throws KmsInvalidKeyUsageException - * @throws InvalidAddressException + * @throws QueueDoesNotExistException + * @throws RequestThrottledException + * @throws UnsupportedOperationException */ public function sendMessage($input): SendMessageResult { $input = SendMessageRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SendMessage', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'InvalidAddress' => InvalidAddressException::class, 'InvalidMessageContents' => InvalidMessageContentsException::class, - 'UnsupportedOperation' => UnsupportedOperationException::class, - 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'KmsAccessDenied' => KmsAccessDeniedException::class, 'KmsDisabled' => KmsDisabledException::class, + 'KmsInvalidKeyUsage' => KmsInvalidKeyUsageException::class, 'KmsInvalidState' => KmsInvalidStateException::class, 'KmsNotFound' => KmsNotFoundException::class, 'KmsOptInRequired' => KmsOptInRequiredException::class, 'KmsThrottled' => KmsThrottledException::class, - 'KmsAccessDenied' => KmsAccessDeniedException::class, - 'KmsInvalidKeyUsage' => KmsInvalidKeyUsageException::class, - 'InvalidAddress' => InvalidAddressException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, + 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); return new SendMessageResult($response); @@ -835,45 +835,45 @@ public function sendMessage($input): SendMessageResult * '@region'?: string|null, * }|SendMessageBatchRequest $input * - * @throws TooManyEntriesInBatchRequestException - * @throws EmptyBatchRequestException * @throws BatchEntryIdsNotDistinctException * @throws BatchRequestTooLongException + * @throws EmptyBatchRequestException + * @throws InvalidAddressException * @throws InvalidBatchEntryIdException - * @throws UnsupportedOperationException - * @throws RequestThrottledException - * @throws QueueDoesNotExistException * @throws InvalidSecurityException + * @throws KmsAccessDeniedException * @throws KmsDisabledException + * @throws KmsInvalidKeyUsageException * @throws KmsInvalidStateException * @throws KmsNotFoundException * @throws KmsOptInRequiredException * @throws KmsThrottledException - * @throws KmsAccessDeniedException - * @throws KmsInvalidKeyUsageException - * @throws InvalidAddressException + * @throws QueueDoesNotExistException + * @throws RequestThrottledException + * @throws TooManyEntriesInBatchRequestException + * @throws UnsupportedOperationException */ public function sendMessageBatch($input): SendMessageBatchResult { $input = SendMessageBatchRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SendMessageBatch', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, - 'EmptyBatchRequest' => EmptyBatchRequestException::class, 'BatchEntryIdsNotDistinct' => BatchEntryIdsNotDistinctException::class, 'BatchRequestTooLong' => BatchRequestTooLongException::class, + 'EmptyBatchRequest' => EmptyBatchRequestException::class, + 'InvalidAddress' => InvalidAddressException::class, 'InvalidBatchEntryId' => InvalidBatchEntryIdException::class, - 'UnsupportedOperation' => UnsupportedOperationException::class, - 'RequestThrottled' => RequestThrottledException::class, - 'QueueDoesNotExist' => QueueDoesNotExistException::class, 'InvalidSecurity' => InvalidSecurityException::class, + 'KmsAccessDenied' => KmsAccessDeniedException::class, 'KmsDisabled' => KmsDisabledException::class, + 'KmsInvalidKeyUsage' => KmsInvalidKeyUsageException::class, 'KmsInvalidState' => KmsInvalidStateException::class, 'KmsNotFound' => KmsNotFoundException::class, 'KmsOptInRequired' => KmsOptInRequiredException::class, 'KmsThrottled' => KmsThrottledException::class, - 'KmsAccessDenied' => KmsAccessDeniedException::class, - 'KmsInvalidKeyUsage' => KmsInvalidKeyUsageException::class, - 'InvalidAddress' => InvalidAddressException::class, + 'QueueDoesNotExist' => QueueDoesNotExistException::class, + 'RequestThrottled' => RequestThrottledException::class, + 'TooManyEntriesInBatchRequest' => TooManyEntriesInBatchRequestException::class, + 'UnsupportedOperation' => UnsupportedOperationException::class, ]])); return new SendMessageBatchResult($response); diff --git a/src/Service/Ssm/CHANGELOG.md b/src/Service/Ssm/CHANGELOG.md index 01fca79d6..83531948d 100644 --- a/src/Service/Ssm/CHANGELOG.md +++ b/src/Service/Ssm/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.2.1 ### Changed diff --git a/src/Service/Ssm/src/SsmClient.php b/src/Service/Ssm/src/SsmClient.php index e4d0af197..cfe9b3c72 100644 --- a/src/Service/Ssm/src/SsmClient.php +++ b/src/Service/Ssm/src/SsmClient.php @@ -144,15 +144,15 @@ public function getParameter($input): GetParameterResult * '@region'?: string|null, * }|GetParametersRequest $input * - * @throws InvalidKeyIdException * @throws InternalServerErrorException + * @throws InvalidKeyIdException */ public function getParameters($input): GetParametersResult { $input = GetParametersRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetParameters', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidKeyId' => InvalidKeyIdException::class, 'InternalServerError' => InternalServerErrorException::class, + 'InvalidKeyId' => InvalidKeyIdException::class, ]])); return new GetParametersResult($response); @@ -223,41 +223,41 @@ public function getParametersByPath($input): GetParametersByPathResult * '@region'?: string|null, * }|PutParameterRequest $input * - * @throws InternalServerErrorException - * @throws InvalidKeyIdException - * @throws ParameterLimitExceededException - * @throws TooManyUpdatesException - * @throws ParameterAlreadyExistsException * @throws HierarchyLevelLimitExceededException * @throws HierarchyTypeMismatchException + * @throws IncompatiblePolicyException + * @throws InternalServerErrorException * @throws InvalidAllowedPatternException + * @throws InvalidKeyIdException + * @throws InvalidPolicyAttributeException + * @throws InvalidPolicyTypeException + * @throws ParameterAlreadyExistsException + * @throws ParameterLimitExceededException * @throws ParameterMaxVersionLimitExceededException * @throws ParameterPatternMismatchException - * @throws UnsupportedParameterTypeException * @throws PoliciesLimitExceededException - * @throws InvalidPolicyTypeException - * @throws InvalidPolicyAttributeException - * @throws IncompatiblePolicyException + * @throws TooManyUpdatesException + * @throws UnsupportedParameterTypeException */ public function putParameter($input): PutParameterResult { $input = PutParameterRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PutParameter', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InternalServerError' => InternalServerErrorException::class, - 'InvalidKeyId' => InvalidKeyIdException::class, - 'ParameterLimitExceeded' => ParameterLimitExceededException::class, - 'TooManyUpdates' => TooManyUpdatesException::class, - 'ParameterAlreadyExists' => ParameterAlreadyExistsException::class, 'HierarchyLevelLimitExceededException' => HierarchyLevelLimitExceededException::class, 'HierarchyTypeMismatchException' => HierarchyTypeMismatchException::class, + 'IncompatiblePolicyException' => IncompatiblePolicyException::class, + 'InternalServerError' => InternalServerErrorException::class, 'InvalidAllowedPatternException' => InvalidAllowedPatternException::class, + 'InvalidKeyId' => InvalidKeyIdException::class, + 'InvalidPolicyAttributeException' => InvalidPolicyAttributeException::class, + 'InvalidPolicyTypeException' => InvalidPolicyTypeException::class, + 'ParameterAlreadyExists' => ParameterAlreadyExistsException::class, + 'ParameterLimitExceeded' => ParameterLimitExceededException::class, 'ParameterMaxVersionLimitExceeded' => ParameterMaxVersionLimitExceededException::class, 'ParameterPatternMismatchException' => ParameterPatternMismatchException::class, - 'UnsupportedParameterType' => UnsupportedParameterTypeException::class, 'PoliciesLimitExceededException' => PoliciesLimitExceededException::class, - 'InvalidPolicyTypeException' => InvalidPolicyTypeException::class, - 'InvalidPolicyAttributeException' => InvalidPolicyAttributeException::class, - 'IncompatiblePolicyException' => IncompatiblePolicyException::class, + 'TooManyUpdates' => TooManyUpdatesException::class, + 'UnsupportedParameterType' => UnsupportedParameterTypeException::class, ]])); return new PutParameterResult($response); diff --git a/src/Service/Sso/CHANGELOG.md b/src/Service/Sso/CHANGELOG.md index 3fd19e979..68487ed26 100644 --- a/src/Service/Sso/CHANGELOG.md +++ b/src/Service/Sso/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.4.0 ### Added diff --git a/src/Service/Sso/src/SsoClient.php b/src/Service/Sso/src/SsoClient.php index 7e8a934aa..8c285fd39 100644 --- a/src/Service/Sso/src/SsoClient.php +++ b/src/Service/Sso/src/SsoClient.php @@ -31,18 +31,18 @@ class SsoClient extends AbstractApi * }|GetRoleCredentialsRequest $input * * @throws InvalidRequestException - * @throws UnauthorizedException - * @throws TooManyRequestsException * @throws ResourceNotFoundException + * @throws TooManyRequestsException + * @throws UnauthorizedException */ public function getRoleCredentials($input): GetRoleCredentialsResponse { $input = GetRoleCredentialsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'GetRoleCredentials', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'InvalidRequestException' => InvalidRequestException::class, - 'UnauthorizedException' => UnauthorizedException::class, - 'TooManyRequestsException' => TooManyRequestsException::class, 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'TooManyRequestsException' => TooManyRequestsException::class, + 'UnauthorizedException' => UnauthorizedException::class, ]])); return new GetRoleCredentialsResponse($response); diff --git a/src/Service/SsoOidc/CHANGELOG.md b/src/Service/SsoOidc/CHANGELOG.md index ce75759d4..8db5c6d4b 100644 --- a/src/Service/SsoOidc/CHANGELOG.md +++ b/src/Service/SsoOidc/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.1.0 ### Added diff --git a/src/Service/SsoOidc/src/SsoOidcClient.php b/src/Service/SsoOidc/src/SsoOidcClient.php index df51d2268..f47676778 100644 --- a/src/Service/SsoOidc/src/SsoOidcClient.php +++ b/src/Service/SsoOidc/src/SsoOidcClient.php @@ -45,33 +45,33 @@ class SsoOidcClient extends AbstractApi * '@region'?: string|null, * }|CreateTokenRequest $input * - * @throws InvalidRequestException + * @throws AccessDeniedException + * @throws AuthorizationPendingException + * @throws ExpiredTokenException + * @throws InternalServerException * @throws InvalidClientException * @throws InvalidGrantException - * @throws UnauthorizedClientException - * @throws UnsupportedGrantTypeException + * @throws InvalidRequestException * @throws InvalidScopeException - * @throws AuthorizationPendingException * @throws SlowDownException - * @throws AccessDeniedException - * @throws ExpiredTokenException - * @throws InternalServerException + * @throws UnauthorizedClientException + * @throws UnsupportedGrantTypeException */ public function createToken($input): CreateTokenResponse { $input = CreateTokenRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CreateToken', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'InvalidRequestException' => InvalidRequestException::class, + 'AccessDeniedException' => AccessDeniedException::class, + 'AuthorizationPendingException' => AuthorizationPendingException::class, + 'ExpiredTokenException' => ExpiredTokenException::class, + 'InternalServerException' => InternalServerException::class, 'InvalidClientException' => InvalidClientException::class, 'InvalidGrantException' => InvalidGrantException::class, - 'UnauthorizedClientException' => UnauthorizedClientException::class, - 'UnsupportedGrantTypeException' => UnsupportedGrantTypeException::class, + 'InvalidRequestException' => InvalidRequestException::class, 'InvalidScopeException' => InvalidScopeException::class, - 'AuthorizationPendingException' => AuthorizationPendingException::class, 'SlowDownException' => SlowDownException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'ExpiredTokenException' => ExpiredTokenException::class, - 'InternalServerException' => InternalServerException::class, + 'UnauthorizedClientException' => UnauthorizedClientException::class, + 'UnsupportedGrantTypeException' => UnsupportedGrantTypeException::class, ]])); return new CreateTokenResponse($response); diff --git a/src/Service/StepFunctions/CHANGELOG.md b/src/Service/StepFunctions/CHANGELOG.md index 30cff1373..2dd31cee6 100644 --- a/src/Service/StepFunctions/CHANGELOG.md +++ b/src/Service/StepFunctions/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.5.0 ### Added diff --git a/src/Service/StepFunctions/src/StepFunctionsClient.php b/src/Service/StepFunctions/src/StepFunctionsClient.php index 527c65e39..985e46b5b 100644 --- a/src/Service/StepFunctions/src/StepFunctionsClient.php +++ b/src/Service/StepFunctions/src/StepFunctionsClient.php @@ -59,23 +59,23 @@ class StepFunctionsClient extends AbstractApi * '@region'?: string|null, * }|SendTaskFailureInput $input * - * @throws TaskDoesNotExistException * @throws InvalidTokenException - * @throws TaskTimedOutException * @throws KmsAccessDeniedException * @throws KmsInvalidStateException * @throws KmsThrottlingException + * @throws TaskDoesNotExistException + * @throws TaskTimedOutException */ public function sendTaskFailure($input): SendTaskFailureOutput { $input = SendTaskFailureInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SendTaskFailure', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TaskDoesNotExist' => TaskDoesNotExistException::class, 'InvalidToken' => InvalidTokenException::class, - 'TaskTimedOut' => TaskTimedOutException::class, 'KmsAccessDeniedException' => KmsAccessDeniedException::class, 'KmsInvalidStateException' => KmsInvalidStateException::class, 'KmsThrottlingException' => KmsThrottlingException::class, + 'TaskDoesNotExist' => TaskDoesNotExistException::class, + 'TaskTimedOut' => TaskTimedOutException::class, ]])); return new SendTaskFailureOutput($response); @@ -106,16 +106,16 @@ public function sendTaskFailure($input): SendTaskFailureOutput * '@region'?: string|null, * }|SendTaskHeartbeatInput $input * - * @throws TaskDoesNotExistException * @throws InvalidTokenException + * @throws TaskDoesNotExistException * @throws TaskTimedOutException */ public function sendTaskHeartbeat($input): SendTaskHeartbeatOutput { $input = SendTaskHeartbeatInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SendTaskHeartbeat', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TaskDoesNotExist' => TaskDoesNotExistException::class, 'InvalidToken' => InvalidTokenException::class, + 'TaskDoesNotExist' => TaskDoesNotExistException::class, 'TaskTimedOut' => TaskTimedOutException::class, ]])); @@ -138,25 +138,25 @@ public function sendTaskHeartbeat($input): SendTaskHeartbeatOutput * '@region'?: string|null, * }|SendTaskSuccessInput $input * - * @throws TaskDoesNotExistException * @throws InvalidOutputException * @throws InvalidTokenException - * @throws TaskTimedOutException * @throws KmsAccessDeniedException * @throws KmsInvalidStateException * @throws KmsThrottlingException + * @throws TaskDoesNotExistException + * @throws TaskTimedOutException */ public function sendTaskSuccess($input): SendTaskSuccessOutput { $input = SendTaskSuccessInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'SendTaskSuccess', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'TaskDoesNotExist' => TaskDoesNotExistException::class, 'InvalidOutput' => InvalidOutputException::class, 'InvalidToken' => InvalidTokenException::class, - 'TaskTimedOut' => TaskTimedOutException::class, 'KmsAccessDeniedException' => KmsAccessDeniedException::class, 'KmsInvalidStateException' => KmsInvalidStateException::class, 'KmsThrottlingException' => KmsThrottlingException::class, + 'TaskDoesNotExist' => TaskDoesNotExistException::class, + 'TaskTimedOut' => TaskTimedOutException::class, ]])); return new SendTaskSuccessOutput($response); @@ -216,33 +216,33 @@ public function sendTaskSuccess($input): SendTaskSuccessOutput * '@region'?: string|null, * }|StartExecutionInput $input * - * @throws ExecutionLimitExceededException * @throws ExecutionAlreadyExistsException + * @throws ExecutionLimitExceededException * @throws InvalidArnException * @throws InvalidExecutionInputException * @throws InvalidNameException - * @throws StateMachineDoesNotExistException - * @throws StateMachineDeletingException - * @throws ValidationException * @throws KmsAccessDeniedException * @throws KmsInvalidStateException * @throws KmsThrottlingException + * @throws StateMachineDeletingException + * @throws StateMachineDoesNotExistException + * @throws ValidationException */ public function startExecution($input): StartExecutionOutput { $input = StartExecutionInput::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'StartExecution', 'region' => $input->getRegion(), 'exceptionMapping' => [ - 'ExecutionLimitExceeded' => ExecutionLimitExceededException::class, 'ExecutionAlreadyExists' => ExecutionAlreadyExistsException::class, + 'ExecutionLimitExceeded' => ExecutionLimitExceededException::class, 'InvalidArn' => InvalidArnException::class, 'InvalidExecutionInput' => InvalidExecutionInputException::class, 'InvalidName' => InvalidNameException::class, - 'StateMachineDoesNotExist' => StateMachineDoesNotExistException::class, - 'StateMachineDeleting' => StateMachineDeletingException::class, - 'ValidationException' => ValidationException::class, 'KmsAccessDeniedException' => KmsAccessDeniedException::class, 'KmsInvalidStateException' => KmsInvalidStateException::class, 'KmsThrottlingException' => KmsThrottlingException::class, + 'StateMachineDeleting' => StateMachineDeletingException::class, + 'StateMachineDoesNotExist' => StateMachineDoesNotExistException::class, + 'ValidationException' => ValidationException::class, ]])); return new StartExecutionOutput($response); @@ -271,10 +271,10 @@ public function startExecution($input): StartExecutionOutput * * @throws ExecutionDoesNotExistException * @throws InvalidArnException - * @throws ValidationException * @throws KmsAccessDeniedException * @throws KmsInvalidStateException * @throws KmsThrottlingException + * @throws ValidationException */ public function stopExecution($input): StopExecutionOutput { @@ -282,10 +282,10 @@ public function stopExecution($input): StopExecutionOutput $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'StopExecution', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'ExecutionDoesNotExist' => ExecutionDoesNotExistException::class, 'InvalidArn' => InvalidArnException::class, - 'ValidationException' => ValidationException::class, 'KmsAccessDeniedException' => KmsAccessDeniedException::class, 'KmsInvalidStateException' => KmsInvalidStateException::class, 'KmsThrottlingException' => KmsThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new StopExecutionOutput($response); diff --git a/src/Service/TimestreamQuery/CHANGELOG.md b/src/Service/TimestreamQuery/CHANGELOG.md index 68ff63bac..4aba5e1e5 100644 --- a/src/Service/TimestreamQuery/CHANGELOG.md +++ b/src/Service/TimestreamQuery/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.1.1 ### Changed diff --git a/src/Service/TimestreamQuery/src/TimestreamQueryClient.php b/src/Service/TimestreamQuery/src/TimestreamQueryClient.php index 6cda9736c..a7d8f63f8 100644 --- a/src/Service/TimestreamQuery/src/TimestreamQueryClient.php +++ b/src/Service/TimestreamQuery/src/TimestreamQueryClient.php @@ -44,9 +44,9 @@ class TimestreamQueryClient extends AbstractApi * * @throws AccessDeniedException * @throws InternalServerException + * @throws InvalidEndpointException * @throws ThrottlingException * @throws ValidationException - * @throws InvalidEndpointException */ public function cancelQuery($input): CancelQueryResponse { @@ -54,9 +54,9 @@ public function cancelQuery($input): CancelQueryResponse $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'CancelQuery', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerException' => InternalServerException::class, + 'InvalidEndpointException' => InvalidEndpointException::class, 'ThrottlingException' => ThrottlingException::class, 'ValidationException' => ValidationException::class, - 'InvalidEndpointException' => InvalidEndpointException::class, ], 'requiresEndpointDiscovery' => true, 'usesEndpointDiscovery' => true])); return new CancelQueryResponse($response); @@ -87,16 +87,16 @@ public function cancelQuery($input): CancelQueryResponse * }|DescribeEndpointsRequest $input * * @throws InternalServerException - * @throws ValidationException * @throws ThrottlingException + * @throws ValidationException */ public function describeEndpoints($input = []): DescribeEndpointsResponse { $input = DescribeEndpointsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeEndpoints', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'InternalServerException' => InternalServerException::class, - 'ValidationException' => ValidationException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new DescribeEndpointsResponse($response); @@ -117,9 +117,9 @@ public function describeEndpoints($input = []): DescribeEndpointsResponse * * @throws AccessDeniedException * @throws InternalServerException + * @throws InvalidEndpointException * @throws ThrottlingException * @throws ValidationException - * @throws InvalidEndpointException */ public function prepareQuery($input): PrepareQueryResponse { @@ -127,9 +127,9 @@ public function prepareQuery($input): PrepareQueryResponse $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'PrepareQuery', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerException' => InternalServerException::class, + 'InvalidEndpointException' => InvalidEndpointException::class, 'ThrottlingException' => ThrottlingException::class, 'ValidationException' => ValidationException::class, - 'InvalidEndpointException' => InvalidEndpointException::class, ], 'requiresEndpointDiscovery' => true, 'usesEndpointDiscovery' => true])); return new PrepareQueryResponse($response); @@ -179,10 +179,10 @@ public function prepareQuery($input): PrepareQueryResponse * @throws AccessDeniedException * @throws ConflictException * @throws InternalServerException + * @throws InvalidEndpointException * @throws QueryExecutionException * @throws ThrottlingException * @throws ValidationException - * @throws InvalidEndpointException */ public function query($input): QueryResponse { @@ -191,10 +191,10 @@ public function query($input): QueryResponse 'AccessDeniedException' => AccessDeniedException::class, 'ConflictException' => ConflictException::class, 'InternalServerException' => InternalServerException::class, + 'InvalidEndpointException' => InvalidEndpointException::class, 'QueryExecutionException' => QueryExecutionException::class, 'ThrottlingException' => ThrottlingException::class, 'ValidationException' => ValidationException::class, - 'InvalidEndpointException' => InvalidEndpointException::class, ], 'requiresEndpointDiscovery' => true, 'usesEndpointDiscovery' => true])); return new QueryResponse($response, $this, $input); diff --git a/src/Service/TimestreamWrite/CHANGELOG.md b/src/Service/TimestreamWrite/CHANGELOG.md index 1309dbc0f..73ae17a63 100644 --- a/src/Service/TimestreamWrite/CHANGELOG.md +++ b/src/Service/TimestreamWrite/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 2.0.4 ### Changed diff --git a/src/Service/TimestreamWrite/src/TimestreamWriteClient.php b/src/Service/TimestreamWrite/src/TimestreamWriteClient.php index 844792b9c..5084e7fec 100644 --- a/src/Service/TimestreamWrite/src/TimestreamWriteClient.php +++ b/src/Service/TimestreamWrite/src/TimestreamWriteClient.php @@ -47,16 +47,16 @@ class TimestreamWriteClient extends AbstractApi * }|DescribeEndpointsRequest $input * * @throws InternalServerException - * @throws ValidationException * @throws ThrottlingException + * @throws ValidationException */ public function describeEndpoints($input = []): DescribeEndpointsResponse { $input = DescribeEndpointsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'DescribeEndpoints', 'region' => $input->getRegion(), 'exceptionMapping' => [ 'InternalServerException' => InternalServerException::class, - 'ValidationException' => ValidationException::class, 'ThrottlingException' => ThrottlingException::class, + 'ValidationException' => ValidationException::class, ]])); return new DescribeEndpointsResponse($response); @@ -110,25 +110,25 @@ public function describeEndpoints($input = []): DescribeEndpointsResponse * '@region'?: string|null, * }|WriteRecordsRequest $input * + * @throws AccessDeniedException * @throws InternalServerException + * @throws InvalidEndpointException + * @throws RejectedRecordsException + * @throws ResourceNotFoundException * @throws ThrottlingException * @throws ValidationException - * @throws ResourceNotFoundException - * @throws AccessDeniedException - * @throws RejectedRecordsException - * @throws InvalidEndpointException */ public function writeRecords($input): WriteRecordsResponse { $input = WriteRecordsRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'WriteRecords', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'AccessDeniedException' => AccessDeniedException::class, 'InternalServerException' => InternalServerException::class, + 'InvalidEndpointException' => InvalidEndpointException::class, + 'RejectedRecordsException' => RejectedRecordsException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, 'ThrottlingException' => ThrottlingException::class, 'ValidationException' => ValidationException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'AccessDeniedException' => AccessDeniedException::class, - 'RejectedRecordsException' => RejectedRecordsException::class, - 'InvalidEndpointException' => InvalidEndpointException::class, ], 'requiresEndpointDiscovery' => true, 'usesEndpointDiscovery' => true])); return new WriteRecordsResponse($response); diff --git a/src/Service/Translate/CHANGELOG.md b/src/Service/Translate/CHANGELOG.md index 8ba7581d0..bf5c4431b 100644 --- a/src/Service/Translate/CHANGELOG.md +++ b/src/Service/Translate/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Sort exception alphabetically. + ## 1.2.0 ### Added diff --git a/src/Service/Translate/src/TranslateClient.php b/src/Service/Translate/src/TranslateClient.php index 523677c10..c41f5564c 100644 --- a/src/Service/Translate/src/TranslateClient.php +++ b/src/Service/Translate/src/TranslateClient.php @@ -40,27 +40,27 @@ class TranslateClient extends AbstractApi * '@region'?: string|null, * }|TranslateTextRequest $input * + * @throws DetectedLanguageLowConfidenceException + * @throws InternalServerException * @throws InvalidRequestException + * @throws ResourceNotFoundException + * @throws ServiceUnavailableException * @throws TextSizeLimitExceededException * @throws TooManyRequestsException * @throws UnsupportedLanguagePairException - * @throws DetectedLanguageLowConfidenceException - * @throws ResourceNotFoundException - * @throws InternalServerException - * @throws ServiceUnavailableException */ public function translateText($input): TranslateTextResponse { $input = TranslateTextRequest::create($input); $response = $this->getResponse($input->request(), new RequestContext(['operation' => 'TranslateText', 'region' => $input->getRegion(), 'exceptionMapping' => [ + 'DetectedLanguageLowConfidenceException' => DetectedLanguageLowConfidenceException::class, + 'InternalServerException' => InternalServerException::class, 'InvalidRequestException' => InvalidRequestException::class, + 'ResourceNotFoundException' => ResourceNotFoundException::class, + 'ServiceUnavailableException' => ServiceUnavailableException::class, 'TextSizeLimitExceededException' => TextSizeLimitExceededException::class, 'TooManyRequestsException' => TooManyRequestsException::class, 'UnsupportedLanguagePairException' => UnsupportedLanguagePairException::class, - 'DetectedLanguageLowConfidenceException' => DetectedLanguageLowConfidenceException::class, - 'ResourceNotFoundException' => ResourceNotFoundException::class, - 'InternalServerException' => InternalServerException::class, - 'ServiceUnavailableException' => ServiceUnavailableException::class, ]])); return new TranslateTextResponse($response);