20
20
use AsyncAws \Sns \Exception \InvalidParameterException ;
21
21
use AsyncAws \Sns \Exception \InvalidParameterValueException ;
22
22
use AsyncAws \Sns \Exception \InvalidSecurityException ;
23
+ use AsyncAws \Sns \Exception \InvalidStateException ;
23
24
use AsyncAws \Sns \Exception \KMSAccessDeniedException ;
24
25
use AsyncAws \Sns \Exception \KMSDisabledException ;
25
26
use AsyncAws \Sns \Exception \KMSInvalidStateException ;
28
29
use AsyncAws \Sns \Exception \KMSThrottlingException ;
29
30
use AsyncAws \Sns \Exception \NotFoundException ;
30
31
use AsyncAws \Sns \Exception \PlatformApplicationDisabledException ;
32
+ use AsyncAws \Sns \Exception \ReplayLimitExceededException ;
31
33
use AsyncAws \Sns \Exception \StaleTagException ;
32
34
use AsyncAws \Sns \Exception \SubscriptionLimitExceededException ;
33
35
use AsyncAws \Sns \Exception \TagLimitExceededException ;
@@ -195,6 +197,7 @@ public function deleteEndpoint($input): Result
195
197
* }|DeleteTopicInput $input
196
198
*
197
199
* @throws InvalidParameterException
200
+ * @throws InvalidStateException
198
201
* @throws InternalErrorException
199
202
* @throws AuthorizationErrorException
200
203
* @throws NotFoundException
@@ -207,6 +210,7 @@ public function deleteTopic($input): Result
207
210
$ input = DeleteTopicInput::create ($ input );
208
211
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'DeleteTopic ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
209
212
'InvalidParameter ' => InvalidParameterException::class,
213
+ 'InvalidState ' => InvalidStateException::class,
210
214
'InternalError ' => InternalErrorException::class,
211
215
'AuthorizationError ' => AuthorizationErrorException::class,
212
216
'NotFound ' => NotFoundException::class,
@@ -412,6 +416,7 @@ public function publish($input): PublishResponse
412
416
* @throws KMSThrottlingException
413
417
* @throws KMSAccessDeniedException
414
418
* @throws InvalidSecurityException
419
+ * @throws ValidationException
415
420
*/
416
421
public function publishBatch ($ input ): PublishBatchResponse
417
422
{
@@ -436,6 +441,7 @@ public function publishBatch($input): PublishBatchResponse
436
441
'KMSThrottling ' => KMSThrottlingException::class,
437
442
'KMSAccessDenied ' => KMSAccessDeniedException::class,
438
443
'InvalidSecurity ' => InvalidSecurityException::class,
444
+ 'ValidationException ' => ValidationException::class,
439
445
]]));
440
446
441
447
return new PublishBatchResponse ($ response );
@@ -447,7 +453,7 @@ public function publishBatch($input): PublishBatchResponse
447
453
* to confirm the subscription.
448
454
*
449
455
* 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.
451
457
*
452
458
* This action is throttled at 100 transactions per second (TPS).
453
459
*
@@ -465,6 +471,7 @@ public function publishBatch($input): PublishBatchResponse
465
471
*
466
472
* @throws SubscriptionLimitExceededException
467
473
* @throws FilterPolicyLimitExceededException
474
+ * @throws ReplayLimitExceededException
468
475
* @throws InvalidParameterException
469
476
* @throws InternalErrorException
470
477
* @throws NotFoundException
@@ -477,6 +484,7 @@ public function subscribe($input): SubscribeResponse
477
484
$ response = $ this ->getResponse ($ input ->request (), new RequestContext (['operation ' => 'Subscribe ' , 'region ' => $ input ->getRegion (), 'exceptionMapping ' => [
478
485
'SubscriptionLimitExceeded ' => SubscriptionLimitExceededException::class,
479
486
'FilterPolicyLimitExceeded ' => FilterPolicyLimitExceededException::class,
487
+ 'ReplayLimitExceeded ' => ReplayLimitExceededException::class,
480
488
'InvalidParameter ' => InvalidParameterException::class,
481
489
'InternalError ' => InternalErrorException::class,
482
490
'NotFound ' => NotFoundException::class,
0 commit comments