2020use AsyncAws \Sns \Exception \InvalidParameterException ;
2121use AsyncAws \Sns \Exception \InvalidParameterValueException ;
2222use AsyncAws \Sns \Exception \InvalidSecurityException ;
23+ use AsyncAws \Sns \Exception \InvalidStateException ;
2324use AsyncAws \Sns \Exception \KMSAccessDeniedException ;
2425use AsyncAws \Sns \Exception \KMSDisabledException ;
2526use AsyncAws \Sns \Exception \KMSInvalidStateException ;
2829use AsyncAws \Sns \Exception \KMSThrottlingException ;
2930use AsyncAws \Sns \Exception \NotFoundException ;
3031use AsyncAws \Sns \Exception \PlatformApplicationDisabledException ;
32+ use AsyncAws \Sns \Exception \ReplayLimitExceededException ;
3133use AsyncAws \Sns \Exception \StaleTagException ;
3234use AsyncAws \Sns \Exception \SubscriptionLimitExceededException ;
3335use AsyncAws \Sns \Exception \TagLimitExceededException ;
@@ -195,6 +197,7 @@ public function deleteEndpoint($input): Result
195197 * }|DeleteTopicInput $input
196198 *
197199 * @throws InvalidParameterException
200+ * @throws InvalidStateException
198201 * @throws InternalErrorException
199202 * @throws AuthorizationErrorException
200203 * @throws NotFoundException
@@ -207,6 +210,7 @@ public function deleteTopic($input): Result
207210 $ input = DeleteTopicInput::create ($ input );
208211 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteTopic ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
209212 'InvalidParameter ' => InvalidParameterException::class,
213+ 'InvalidState ' => InvalidStateException::class,
210214 'InternalError ' => InternalErrorException::class,
211215 'AuthorizationError ' => AuthorizationErrorException::class,
212216 'NotFound ' => NotFoundException::class,
@@ -412,6 +416,7 @@ public function publish($input): PublishResponse
412416 * @throws KMSThrottlingException
413417 * @throws KMSAccessDeniedException
414418 * @throws InvalidSecurityException
419+ * @throws ValidationException
415420 */
416421 public function publishBatch ($ input ): PublishBatchResponse
417422 {
@@ -436,6 +441,7 @@ public function publishBatch($input): PublishBatchResponse
436441 'KMSThrottling ' => KMSThrottlingException::class,
437442 'KMSAccessDenied ' => KMSAccessDeniedException::class,
438443 'InvalidSecurity ' => InvalidSecurityException::class,
444+ 'ValidationException ' => ValidationException::class,
439445 ]]));
440446
441447 return new PublishBatchResponse ($ response );
@@ -447,7 +453,7 @@ public function publishBatch($input): PublishBatchResponse
447453 * to confirm the subscription.
448454 *
449455 * You call the `ConfirmSubscription` action with the token from the subscription response. Confirmation tokens are
450- * valid for three days.
456+ * valid for two days.
451457 *
452458 * This action is throttled at 100 transactions per second (TPS).
453459 *
@@ -465,6 +471,7 @@ public function publishBatch($input): PublishBatchResponse
465471 *
466472 * @throws SubscriptionLimitExceededException
467473 * @throws FilterPolicyLimitExceededException
474+ * @throws ReplayLimitExceededException
468475 * @throws InvalidParameterException
469476 * @throws InternalErrorException
470477 * @throws NotFoundException
@@ -477,6 +484,7 @@ public function subscribe($input): SubscribeResponse
477484 $ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'Subscribe ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
478485 'SubscriptionLimitExceeded ' => SubscriptionLimitExceededException::class,
479486 'FilterPolicyLimitExceeded ' => FilterPolicyLimitExceededException::class,
487+ 'ReplayLimitExceeded ' => ReplayLimitExceededException::class,
480488 'InvalidParameter ' => InvalidParameterException::class,
481489 'InternalError ' => InternalErrorException::class,
482490 'NotFound ' => NotFoundException::class,
0 commit comments