Skip to content

Commit 556ebdc

Browse files
Update generated code (#1598)
update generated code
1 parent 516667a commit 556ebdc

9 files changed

+56
-6
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"variables": {
3-
"${LATEST}": "3.283.8"
3+
"${LATEST}": "3.283.13"
44
},
55
"endpoints": "https://raw.githubusercontent.com/aws/aws-sdk-php/${LATEST}/src/data/endpoints.json",
66
"services": {

src/Service/Sns/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- AWS api-change: Remove `ValidationException`
8+
- AWS api-change: Message Archiving and Replay is now supported in Amazon SNS for FIFO topics.
89

910
### Changed
1011

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sns\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* Indicates that the specified state is not a valid state for an event source.
9+
*/
10+
final class InvalidStateException extends ClientException
11+
{
12+
}

src/Service/Sns/src/Exception/KMSDisabledException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use AsyncAws\Core\Exception\Http\ClientException;
66

77
/**
8-
* The request was rejected because the specified customer master key (CMK) isn't enabled.
8+
* The request was rejected because the specified Amazon Web Services KMS key isn't enabled.
99
*/
1010
final class KMSDisabledException extends ClientException
1111
{

src/Service/Sns/src/Exception/KMSInvalidStateException.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
/**
88
* The request was rejected because the state of the specified resource isn't valid for this request. For more
9-
* information, see How Key State Affects Use of a Customer Master Key [^1] in the *Key Management Service Developer
10-
* Guide*.
9+
* information, see Key states of Amazon Web Services KMS keys [^1] in the *Key Management Service Developer Guide*.
1110
*
1211
* [^1]: https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html
1312
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\Sns\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* Indicates that the request parameter has exceeded the maximum number of concurrent message replays.
9+
*/
10+
final class ReplayLimitExceededException extends ClientException
11+
{
12+
}

src/Service/Sns/src/Input/CreateTopicInput.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ final class CreateTopicInput extends Input
5454
*
5555
* The following attributes apply only to FIFO topics [^4]:
5656
*
57-
* - `FifoTopic` – When this is set to `true`, a FIFO topic is created.
57+
* - `ArchivePolicy` – Adds or updates an inline policy document to archive messages stored in the specified Amazon
58+
* SNS topic.
59+
* - `BeginningArchiveTime` – The earliest starting point at which a message in the topic’s archive can be replayed
60+
* from. This point in time is based on the configured message retention period set by the topic’s message archiving
61+
* policy.
5862
* - `ContentBasedDeduplication` – Enables content-based deduplication for FIFO topics.
5963
*
6064
* - By default, `ContentBasedDeduplication` is set to `false`. If you create a FIFO topic and this attribute is

src/Service/Sns/src/Input/SubscribeInput.php

+14
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,21 @@ final class SubscribeInput extends Input
9090
* Specifying a valid ARN for this attribute is required for Kinesis Data Firehose delivery stream subscriptions. For
9191
* more information, see Fanout to Kinesis Data Firehose delivery streams [^1] in the *Amazon SNS Developer Guide*.
9292
*
93+
* The following attributes apply only to FIFO topics [^2]:
94+
*
95+
* - `ReplayPolicy` – Adds or updates an inline policy document for a subscription to replay messages stored in the
96+
* specified Amazon SNS topic.
97+
* - `ReplayStatus` – Retrieves the status of the subscription message replay, which can be one of the following:
98+
*
99+
* - `Completed` – The replay has successfully redelivered all messages, and is now delivering newly published
100+
* messages. If an ending point was specified in the `ReplayPolicy` then the subscription will no longer receive
101+
* newly published messages.
102+
* - `In progress` – The replay is currently replaying the selected messages.
103+
* - `Failed` – The replay was unable to complete.
104+
* - `Pending` – The default state while the replay initiates.
105+
*
93106
* [^1]: https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html
107+
* [^2]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
94108
*
95109
* @var array<string, string>|null
96110
*/

src/Service/Sns/src/SnsClient.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use AsyncAws\Sns\Exception\InvalidParameterException;
2121
use AsyncAws\Sns\Exception\InvalidParameterValueException;
2222
use AsyncAws\Sns\Exception\InvalidSecurityException;
23+
use AsyncAws\Sns\Exception\InvalidStateException;
2324
use AsyncAws\Sns\Exception\KMSAccessDeniedException;
2425
use AsyncAws\Sns\Exception\KMSDisabledException;
2526
use AsyncAws\Sns\Exception\KMSInvalidStateException;
@@ -28,6 +29,7 @@
2829
use AsyncAws\Sns\Exception\KMSThrottlingException;
2930
use AsyncAws\Sns\Exception\NotFoundException;
3031
use AsyncAws\Sns\Exception\PlatformApplicationDisabledException;
32+
use AsyncAws\Sns\Exception\ReplayLimitExceededException;
3133
use AsyncAws\Sns\Exception\StaleTagException;
3234
use AsyncAws\Sns\Exception\SubscriptionLimitExceededException;
3335
use 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

Comments
 (0)