Skip to content

Commit d77a2e1

Browse files
Update generated code (#1802)
update generated code
1 parent b3e1b22 commit d77a2e1

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## NOT RELEASED
44

5+
### Added
6+
7+
- AWS api-change: Add support for the automatic pause/resume feature of Aurora Serverless v2.
8+
59
## 2.1.3
610

711
### Changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "2.1-dev"
32+
"dev-master": "2.2-dev"
3333
}
3434
}
3535
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace AsyncAws\RdsDataService\Exception;
4+
5+
use AsyncAws\Core\Exception\Http\ClientException;
6+
7+
/**
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.
10+
*/
11+
final class DatabaseResumingException extends ClientException
12+
{
13+
}

src/RdsDataServiceClient.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use AsyncAws\RdsDataService\Exception\BadRequestException;
1313
use AsyncAws\RdsDataService\Exception\DatabaseErrorException;
1414
use AsyncAws\RdsDataService\Exception\DatabaseNotFoundException;
15+
use AsyncAws\RdsDataService\Exception\DatabaseResumingException;
1516
use AsyncAws\RdsDataService\Exception\DatabaseUnavailableException;
1617
use AsyncAws\RdsDataService\Exception\ForbiddenException;
1718
use AsyncAws\RdsDataService\Exception\HttpEndpointNotEnabledException;
@@ -72,6 +73,7 @@ class RdsDataServiceClient extends AbstractApi
7273
* @throws SecretsErrorException
7374
* @throws HttpEndpointNotEnabledException
7475
* @throws DatabaseErrorException
76+
* @throws DatabaseResumingException
7577
* @throws DatabaseUnavailableException
7678
* @throws TransactionNotFoundException
7779
* @throws InvalidSecretException
@@ -90,6 +92,7 @@ public function batchExecuteStatement($input): BatchExecuteStatementResponse
9092
'SecretsErrorException' => SecretsErrorException::class,
9193
'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class,
9294
'DatabaseErrorException' => DatabaseErrorException::class,
95+
'DatabaseResumingException' => DatabaseResumingException::class,
9396
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
9497
'TransactionNotFoundException' => TransactionNotFoundException::class,
9598
'InvalidSecretException' => InvalidSecretException::class,
@@ -131,6 +134,7 @@ public function batchExecuteStatement($input): BatchExecuteStatementResponse
131134
* @throws SecretsErrorException
132135
* @throws HttpEndpointNotEnabledException
133136
* @throws DatabaseErrorException
137+
* @throws DatabaseResumingException
134138
* @throws DatabaseUnavailableException
135139
* @throws TransactionNotFoundException
136140
* @throws InvalidSecretException
@@ -149,6 +153,7 @@ public function beginTransaction($input): BeginTransactionResponse
149153
'SecretsErrorException' => SecretsErrorException::class,
150154
'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class,
151155
'DatabaseErrorException' => DatabaseErrorException::class,
156+
'DatabaseResumingException' => DatabaseResumingException::class,
152157
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
153158
'TransactionNotFoundException' => TransactionNotFoundException::class,
154159
'InvalidSecretException' => InvalidSecretException::class,
@@ -244,6 +249,7 @@ public function commitTransaction($input): CommitTransactionResponse
244249
* @throws SecretsErrorException
245250
* @throws HttpEndpointNotEnabledException
246251
* @throws DatabaseErrorException
252+
* @throws DatabaseResumingException
247253
* @throws DatabaseUnavailableException
248254
* @throws TransactionNotFoundException
249255
* @throws InvalidSecretException
@@ -263,6 +269,7 @@ public function executeStatement($input): ExecuteStatementResponse
263269
'SecretsErrorException' => SecretsErrorException::class,
264270
'HttpEndpointNotEnabledException' => HttpEndpointNotEnabledException::class,
265271
'DatabaseErrorException' => DatabaseErrorException::class,
272+
'DatabaseResumingException' => DatabaseResumingException::class,
266273
'DatabaseUnavailableException' => DatabaseUnavailableException::class,
267274
'TransactionNotFoundException' => TransactionNotFoundException::class,
268275
'InvalidSecretException' => InvalidSecretException::class,

0 commit comments

Comments
 (0)