Skip to content

Commit

Permalink
feat(client-rds): Add support for the automatic pause/resume feature …
Browse files Browse the repository at this point in the history
…of Aurora Serverless v2.
  • Loading branch information
awstools committed Nov 18, 2024
1 parent be4dacb commit c9e7374
Show file tree
Hide file tree
Showing 23 changed files with 314 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ export interface CreateCustomDBEngineVersionCommandOutput extends DBEngineVersio
* // ],
* // SupportsLocalWriteForwarding: true || false,
* // SupportsIntegrations: true || false,
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // },
* // };
*
* ```
Expand Down
2 changes: 2 additions & 0 deletions clients/client-rds/src/commands/CreateDBClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
* MinCapacity: Number("double"),
* MaxCapacity: Number("double"),
* SecondsUntilAutoPause: Number("int"),
* },
* NetworkType: "STRING_VALUE",
* ClusterScalabilityType: "standard" || "limitless",
Expand Down Expand Up @@ -299,6 +300,7 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ export interface DeleteCustomDBEngineVersionCommandOutput extends DBEngineVersio
* // ],
* // SupportsLocalWriteForwarding: true || false,
* // SupportsIntegrations: true || false,
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // },
* // };
*
* ```
Expand Down
1 change: 1 addition & 0 deletions clients/client-rds/src/commands/DeleteDBClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ export interface DeleteDBClusterCommandOutput extends DeleteDBClusterResult, __M
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import { Command as $Command } from "@smithy/smithy-client";
import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteTenantDatabaseMessage } from "../models/models_0";
import { DeleteTenantDatabaseResult, DeleteTenantDatabaseResultFilterSensitiveLog } from "../models/models_1";
import {
DeleteTenantDatabaseMessage,
DeleteTenantDatabaseResult,
DeleteTenantDatabaseResultFilterSensitiveLog,
} from "../models/models_1";
import { de_DeleteTenantDatabaseCommand, se_DeleteTenantDatabaseCommand } from "../protocols/Aws_query";
import { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export interface DescribeDBClustersCommandOutput extends DBClusterMessage, __Met
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export interface DescribeDBEngineVersionsCommandOutput extends DBEngineVersionMe
* // ],
* // SupportsLocalWriteForwarding: true || false,
* // SupportsIntegrations: true || false,
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // },
* // },
* // ],
* // };
Expand Down
3 changes: 3 additions & 0 deletions clients/client-rds/src/commands/DescribeDBLogFilesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export interface DescribeDBLogFilesCommandOutput extends DescribeDBLogFilesRespo
* <p>
* <code>DBInstanceIdentifier</code> doesn't refer to an existing DB instance.</p>
*
* @throws {@link DBInstanceNotReadyFault} (server fault)
* <p>An attempt to download or examine log files didn't succeed because an Aurora Serverless v2 instance was paused.</p>
*
* @throws {@link RDSServiceException}
* <p>Base exception class for all service exceptions from RDS service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export interface DownloadDBLogFilePortionCommandOutput extends DownloadDBLogFile
* <p>
* <code>DBInstanceIdentifier</code> doesn't refer to an existing DB instance.</p>
*
* @throws {@link DBInstanceNotReadyFault} (server fault)
* <p>An attempt to download or examine log files didn't succeed because an Aurora Serverless v2 instance was paused.</p>
*
* @throws {@link DBLogFileNotFoundFault} (client fault)
* <p>
* <code>LogFileName</code> doesn't refer to an existing DB log file.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export interface FailoverDBClusterCommandOutput extends FailoverDBClusterResult,
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ export interface ModifyCustomDBEngineVersionCommandOutput extends DBEngineVersio
* // ],
* // SupportsLocalWriteForwarding: true || false,
* // SupportsIntegrations: true || false,
* // ServerlessV2FeaturesSupport: { // ServerlessV2FeaturesSupport
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // },
* // };
*
* ```
Expand Down
2 changes: 2 additions & 0 deletions clients/client-rds/src/commands/ModifyDBClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
* MinCapacity: Number("double"),
* MaxCapacity: Number("double"),
* SecondsUntilAutoPause: Number("int"),
* },
* NetworkType: "STRING_VALUE",
* ManageMasterUserPassword: true || false,
Expand Down Expand Up @@ -277,6 +278,7 @@ export interface ModifyDBClusterCommandOutput extends ModifyDBClusterResult, __M
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export interface PromoteReadReplicaDBClusterCommandOutput extends PromoteReadRep
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-rds/src/commands/RebootDBClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ export interface RebootDBClusterCommandOutput extends RebootDBClusterResult, __M
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export interface RestoreDBClusterFromS3CommandOutput extends RestoreDBClusterFro
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
* MinCapacity: Number("double"),
* MaxCapacity: Number("double"),
* SecondsUntilAutoPause: Number("int"),
* },
* NetworkType: "STRING_VALUE",
* ManageMasterUserPassword: true || false,
Expand Down Expand Up @@ -273,6 +274,7 @@ export interface RestoreDBClusterFromS3CommandOutput extends RestoreDBClusterFro
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
* MinCapacity: Number("double"),
* MaxCapacity: Number("double"),
* SecondsUntilAutoPause: Number("int"),
* },
* NetworkType: "STRING_VALUE",
* RdsCustomClusterConfiguration: { // RdsCustomClusterConfiguration
Expand Down Expand Up @@ -285,6 +286,7 @@ export interface RestoreDBClusterFromSnapshotCommandOutput
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
* ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfiguration
* MinCapacity: Number("double"),
* MaxCapacity: Number("double"),
* SecondsUntilAutoPause: Number("int"),
* },
* NetworkType: "STRING_VALUE",
* SourceDbClusterResourceId: "STRING_VALUE",
Expand Down Expand Up @@ -287,6 +288,7 @@ export interface RestoreDBClusterToPointInTimeCommandOutput
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-rds/src/commands/StartDBClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export interface StartDBClusterCommandOutput extends StartDBClusterResult, __Met
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-rds/src/commands/StopDBClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ export interface StopDBClusterCommandOutput extends StopDBClusterResult, __Metad
* // ServerlessV2ScalingConfiguration: { // ServerlessV2ScalingConfigurationInfo
* // MinCapacity: Number("double"),
* // MaxCapacity: Number("double"),
* // SecondsUntilAutoPause: Number("int"),
* // },
* // NetworkType: "STRING_VALUE",
* // DBSystemId: "STRING_VALUE",
Expand Down
Loading

0 comments on commit c9e7374

Please sign in to comment.