Skip to content

Commit c9e7374

Browse files
author
awstools
committed
feat(client-rds): Add support for the automatic pause/resume feature of Aurora Serverless v2.
1 parent be4dacb commit c9e7374

23 files changed

+314
-66
lines changed

clients/client-rds/src/commands/CreateCustomDBEngineVersionCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ export interface CreateCustomDBEngineVersionCommandOutput extends DBEngineVersio
140140
* // ],
141141
* // SupportsLocalWriteForwarding: true || false,
142142
* // SupportsIntegrations: true || false,
143+
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
144+
* // MinCapacity: Number("double"),
145+
* // MaxCapacity: Number("double"),
146+
* // },
143147
* // };
144148
*
145149
* ```

clients/client-rds/src/commands/CreateDBClusterCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
121121
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
122122
* MinCapacity: Number("double"),
123123
* MaxCapacity: Number("double"),
124+
* SecondsUntilAutoPause: Number("int"),
124125
* },
125126
* NetworkType: "STRING_VALUE",
126127
* ClusterScalabilityType: "standard" || "limitless",
@@ -299,6 +300,7 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
299300
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
300301
* // MinCapacity: Number("double"),
301302
* // MaxCapacity: Number("double"),
303+
* // SecondsUntilAutoPause: Number("int"),
302304
* // },
303305
* // NetworkType: "STRING_VALUE",
304306
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/DeleteCustomDBEngineVersionCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ export interface DeleteCustomDBEngineVersionCommandOutput extends DBEngineVersio
146146
* // ],
147147
* // SupportsLocalWriteForwarding: true || false,
148148
* // SupportsIntegrations: true || false,
149+
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
150+
* // MinCapacity: Number("double"),
151+
* // MaxCapacity: Number("double"),
152+
* // },
149153
* // };
150154
*
151155
* ```

clients/client-rds/src/commands/DeleteDBClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export interface DeleteDBClusterCommandOutput extends DeleteDBClusterResult, __M
219219
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
220220
* // MinCapacity: Number("double"),
221221
* // MaxCapacity: Number("double"),
222+
* // SecondsUntilAutoPause: Number("int"),
222223
* // },
223224
* // NetworkType: "STRING_VALUE",
224225
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/DeleteTenantDatabaseCommand.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
55
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import { DeleteTenantDatabaseMessage } from "../models/models_0";
9-
import { DeleteTenantDatabaseResult, DeleteTenantDatabaseResultFilterSensitiveLog } from "../models/models_1";
8+
import {
9+
DeleteTenantDatabaseMessage,
10+
DeleteTenantDatabaseResult,
11+
DeleteTenantDatabaseResultFilterSensitiveLog,
12+
} from "../models/models_1";
1013
import { de_DeleteTenantDatabaseCommand, se_DeleteTenantDatabaseCommand } from "../protocols/Aws_query";
1114
import { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient";
1215

clients/client-rds/src/commands/DescribeDBClustersCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ export interface DescribeDBClustersCommandOutput extends DBClusterMessage, __Met
226226
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
227227
* // MinCapacity: Number("double"),
228228
* // MaxCapacity: Number("double"),
229+
* // SecondsUntilAutoPause: Number("int"),
229230
* // },
230231
* // NetworkType: "STRING_VALUE",
231232
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/DescribeDBEngineVersionsCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ export interface DescribeDBEngineVersionsCommandOutput extends DBEngineVersionMe
144144
* // ],
145145
* // SupportsLocalWriteForwarding: true || false,
146146
* // SupportsIntegrations: true || false,
147+
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
148+
* // MinCapacity: Number("double"),
149+
* // MaxCapacity: Number("double"),
150+
* // },
147151
* // },
148152
* // ],
149153
* // };

clients/client-rds/src/commands/DescribeDBLogFilesCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ export interface DescribeDBLogFilesCommandOutput extends DescribeDBLogFilesRespo
7777
* <p>
7878
* <code>DBInstanceIdentifier</code> doesn't refer to an existing DB instance.</p>
7979
*
80+
* @throws {@link DBInstanceNotReadyFault} (server fault)
81+
* <p>An attempt to download or examine log files didn't succeed because an Aurora Serverless v2 instance was paused.</p>
82+
*
8083
* @throws {@link RDSServiceException}
8184
* <p>Base exception class for all service exceptions from RDS service.</p>
8285
*

clients/client-rds/src/commands/DownloadDBLogFilePortionCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ export interface DownloadDBLogFilePortionCommandOutput extends DownloadDBLogFile
6262
* <p>
6363
* <code>DBInstanceIdentifier</code> doesn't refer to an existing DB instance.</p>
6464
*
65+
* @throws {@link DBInstanceNotReadyFault} (server fault)
66+
* <p>An attempt to download or examine log files didn't succeed because an Aurora Serverless v2 instance was paused.</p>
67+
*
6568
* @throws {@link DBLogFileNotFoundFault} (client fault)
6669
* <p>
6770
* <code>LogFileName</code> doesn't refer to an existing DB log file.</p>

clients/client-rds/src/commands/FailoverDBClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export interface FailoverDBClusterCommandOutput extends FailoverDBClusterResult,
225225
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
226226
* // MinCapacity: Number("double"),
227227
* // MaxCapacity: Number("double"),
228+
* // SecondsUntilAutoPause: Number("int"),
228229
* // },
229230
* // NetworkType: "STRING_VALUE",
230231
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/ModifyCustomDBEngineVersionCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ export interface ModifyCustomDBEngineVersionCommandOutput extends DBEngineVersio
139139
* // ],
140140
* // SupportsLocalWriteForwarding: true || false,
141141
* // SupportsIntegrations: true || false,
142+
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
143+
* // MinCapacity: Number("double"),
144+
* // MaxCapacity: Number("double"),
145+
* // },
142146
* // };
143147
*
144148
* ```

clients/client-rds/src/commands/ModifyDBClusterCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
9797
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
9898
* MinCapacity: Number("double"),
9999
* MaxCapacity: Number("double"),
100+
* SecondsUntilAutoPause: Number("int"),
100101
* },
101102
* NetworkType: "STRING_VALUE",
102103
* ManageMasterUserPassword: true || false,
@@ -277,6 +278,7 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
277278
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
278279
* // MinCapacity: Number("double"),
279280
* // MaxCapacity: Number("double"),
281+
* // SecondsUntilAutoPause: Number("int"),
280282
* // },
281283
* // NetworkType: "STRING_VALUE",
282284
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/PromoteReadReplicaDBClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export interface PromoteReadReplicaDBClusterCommandOutput extends PromoteReadRep
206206
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
207207
* // MinCapacity: Number("double"),
208208
* // MaxCapacity: Number("double"),
209+
* // SecondsUntilAutoPause: Number("int"),
209210
* // },
210211
* // NetworkType: "STRING_VALUE",
211212
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/RebootDBClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ export interface RebootDBClusterCommandOutput extends RebootDBClusterResult, __M
216216
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
217217
* // MinCapacity: Number("double"),
218218
* // MaxCapacity: Number("double"),
219+
* // SecondsUntilAutoPause: Number("int"),
219220
* // },
220221
* // NetworkType: "STRING_VALUE",
221222
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/RestoreDBClusterFromS3Command.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export interface RestoreDBClusterFromS3CommandOutput extends RestoreDBClusterFro
9898
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
9999
* MinCapacity: Number("double"),
100100
* MaxCapacity: Number("double"),
101+
* SecondsUntilAutoPause: Number("int"),
101102
* },
102103
* NetworkType: "STRING_VALUE",
103104
* ManageMasterUserPassword: true || false,
@@ -273,6 +274,7 @@ export interface RestoreDBClusterFromS3CommandOutput extends RestoreDBClusterFro
273274
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
274275
* // MinCapacity: Number("double"),
275276
* // MaxCapacity: Number("double"),
277+
* // SecondsUntilAutoPause: Number("int"),
276278
* // },
277279
* // NetworkType: "STRING_VALUE",
278280
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/RestoreDBClusterFromSnapshotCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
103103
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
104104
* MinCapacity: Number("double"),
105105
* MaxCapacity: Number("double"),
106+
* SecondsUntilAutoPause: Number("int"),
106107
* },
107108
* NetworkType: "STRING_VALUE",
108109
* RdsCustomClusterConfiguration: { // RdsCustomClusterConfiguration
@@ -285,6 +286,7 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
285286
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
286287
* // MinCapacity: Number("double"),
287288
* // MaxCapacity: Number("double"),
289+
* // SecondsUntilAutoPause: Number("int"),
288290
* // },
289291
* // NetworkType: "STRING_VALUE",
290292
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/RestoreDBClusterToPointInTimeCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
104104
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
105105
* MinCapacity: Number("double"),
106106
* MaxCapacity: Number("double"),
107+
* SecondsUntilAutoPause: Number("int"),
107108
* },
108109
* NetworkType: "STRING_VALUE",
109110
* SourceDbClusterResourceId: "STRING_VALUE",
@@ -287,6 +288,7 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
287288
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
288289
* // MinCapacity: Number("double"),
289290
* // MaxCapacity: Number("double"),
291+
* // SecondsUntilAutoPause: Number("int"),
290292
* // },
291293
* // NetworkType: "STRING_VALUE",
292294
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/StartDBClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export interface StartDBClusterCommandOutput extends StartDBClusterResult, __Met
213213
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
214214
* // MinCapacity: Number("double"),
215215
* // MaxCapacity: Number("double"),
216+
* // SecondsUntilAutoPause: Number("int"),
216217
* // },
217218
* // NetworkType: "STRING_VALUE",
218219
* // DBSystemId: "STRING_VALUE",

clients/client-rds/src/commands/StopDBClusterCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ export interface StopDBClusterCommandOutput extends StopDBClusterResult, __Metad
214214
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
215215
* // MinCapacity: Number("double"),
216216
* // MaxCapacity: Number("double"),
217+
* // SecondsUntilAutoPause: Number("int"),
217218
* // },
218219
* // NetworkType: "STRING_VALUE",
219220
* // DBSystemId: "STRING_VALUE",

0 commit comments

Comments
 (0)