Skip to content

Commit 871f656

Browse files
Update generated code (#1845)
* update generated code * Update src/Service/RdsDataService/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé <jeremy@derusse.com>
1 parent 5bba2b8 commit 871f656

5 files changed

+30
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Addded InvalidResourceStateException.
8+
59
## 2.2.1
610

711
### Changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "2.2-dev"
32+
"dev-master": "2.3-dev"
3333
}
3434
}
3535
}

src/Exception/DatabaseResumingException.php

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

77
/**
8-
* A request was canceled because the Aurora Serverless v2 DB instance was in a paused state. The Data API request
9-
* automatically causes the DB instance to begin resuming. Wait a few seconds and try again.
8+
* A request was cancelled because the Aurora Serverless v2 DB instance was paused. The Data API request automatically
9+
* resumes the DB instance. Wait a few seconds and try again.
1010
*/
1111
final class DatabaseResumingException extends ClientException
1212
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace AsyncAws\RdsDataService\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
8+
* The resource is in an invalid state.
9+
*/
10+
final class InvalidResourceStateException extends ClientException
11+
{
12+
}

src/RdsDataServiceClient.php

+11
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use AsyncAws\RdsDataService\Exception\ForbiddenException;
1818
use AsyncAws\RdsDataService\Exception\HttpEndpointNotEnabledException;
1919
use AsyncAws\RdsDataService\Exception\InternalServerErrorException;
20+
use AsyncAws\RdsDataService\Exception\InvalidResourceStateException;
2021
use AsyncAws\RdsDataService\Exception\InvalidSecretException;
2122
use AsyncAws\RdsDataService\Exception\NotFoundException;
2223
use AsyncAws\RdsDataService\Exception\SecretsErrorException;
@@ -77,6 +78,7 @@ class RdsDataServiceClient extends AbstractApi
7778
* @throws DatabaseUnavailableException
7879
* @throws TransactionNotFoundException
7980
* @throws InvalidSecretException
81+
* @throws InvalidResourceStateException
8082
* @throws ServiceUnavailableErrorException
8183
* @throws ForbiddenException
8284
* @throws DatabaseNotFoundException
@@ -96,6 +98,7 @@ public function batchExecuteStatement($input): BatchExecuteStatementResponse
9698
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
9799
'TransactionNotFoundException' => TransactionNotFoundException::class,
98100
'InvalidSecretException' => InvalidSecretException::class,
101+
'InvalidResourceStateException' => InvalidResourceStateException::class,
99102
'ServiceUnavailableError' => ServiceUnavailableErrorException::class,
100103
'ForbiddenException' => ForbiddenException::class,
101104
'DatabaseNotFoundException' => DatabaseNotFoundException::class,
@@ -138,6 +141,7 @@ public function batchExecuteStatement($input): BatchExecuteStatementResponse
138141
* @throws DatabaseUnavailableException
139142
* @throws TransactionNotFoundException
140143
* @throws InvalidSecretException
144+
* @throws InvalidResourceStateException
141145
* @throws ServiceUnavailableErrorException
142146
* @throws ForbiddenException
143147
* @throws DatabaseNotFoundException
@@ -157,6 +161,7 @@ public function beginTransaction($input): BeginTransactionResponse
157161
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
158162
'TransactionNotFoundException' => TransactionNotFoundException::class,
159163
'InvalidSecretException' => InvalidSecretException::class,
164+
'InvalidResourceStateException' => InvalidResourceStateException::class,
160165
'ServiceUnavailableError' => ServiceUnavailableErrorException::class,
161166
'ForbiddenException' => ForbiddenException::class,
162167
'DatabaseNotFoundException' => DatabaseNotFoundException::class,
@@ -188,6 +193,7 @@ public function beginTransaction($input): BeginTransactionResponse
188193
* @throws DatabaseUnavailableException
189194
* @throws TransactionNotFoundException
190195
* @throws InvalidSecretException
196+
* @throws InvalidResourceStateException
191197
* @throws ServiceUnavailableErrorException
192198
* @throws ForbiddenException
193199
* @throws DatabaseNotFoundException
@@ -207,6 +213,7 @@ public function commitTransaction($input): CommitTransactionResponse
207213
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
208214
'TransactionNotFoundException' => TransactionNotFoundException::class,
209215
'InvalidSecretException' => InvalidSecretException::class,
216+
'InvalidResourceStateException' => InvalidResourceStateException::class,
210217
'ServiceUnavailableError' => ServiceUnavailableErrorException::class,
211218
'ForbiddenException' => ForbiddenException::class,
212219
'DatabaseNotFoundException' => DatabaseNotFoundException::class,
@@ -253,6 +260,7 @@ public function commitTransaction($input): CommitTransactionResponse
253260
* @throws DatabaseUnavailableException
254261
* @throws TransactionNotFoundException
255262
* @throws InvalidSecretException
263+
* @throws InvalidResourceStateException
256264
* @throws ServiceUnavailableErrorException
257265
* @throws ForbiddenException
258266
* @throws DatabaseNotFoundException
@@ -273,6 +281,7 @@ public function executeStatement($input): ExecuteStatementResponse
273281
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
274282
'TransactionNotFoundException' => TransactionNotFoundException::class,
275283
'InvalidSecretException' => InvalidSecretException::class,
284+
'InvalidResourceStateException' => InvalidResourceStateException::class,
276285
'ServiceUnavailableError' => ServiceUnavailableErrorException::class,
277286
'ForbiddenException' => ForbiddenException::class,
278287
'DatabaseNotFoundException' => DatabaseNotFoundException::class,
@@ -305,6 +314,7 @@ public function executeStatement($input): ExecuteStatementResponse
305314
* @throws DatabaseUnavailableException
306315
* @throws TransactionNotFoundException
307316
* @throws InvalidSecretException
317+
* @throws InvalidResourceStateException
308318
* @throws ServiceUnavailableErrorException
309319
* @throws ForbiddenException
310320
* @throws DatabaseNotFoundException
@@ -324,6 +334,7 @@ public function rollbackTransaction($input): RollbackTransactionResponse
324334
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
325335
'TransactionNotFoundException' => TransactionNotFoundException::class,
326336
'InvalidSecretException' => InvalidSecretException::class,
337+
'InvalidResourceStateException' => InvalidResourceStateException::class,
327338
'ServiceUnavailableError' => ServiceUnavailableErrorException::class,
328339
'ForbiddenException' => ForbiddenException::class,
329340
'DatabaseNotFoundException' => DatabaseNotFoundException::class,

0 commit comments

Comments
 (0)