Skip to content

Commit fd985ae

Browse files
author
awstools
committed
feat(client-rds): Added a new cluster-level attribute to set the capacity range for Aurora Serverless v2 instances.
1 parent 78e0c59 commit fd985ae

File tree

6 files changed

+304
-52
lines changed

6 files changed

+304
-52
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import {
1111
SerdeContext as __SerdeContext,
1212
} from "@aws-sdk/types";
1313

14-
import { DescribeDBSnapshotAttributesMessage, DescribeDBSnapshotAttributesResult } from "../models/models_0";
14+
import { DescribeDBSnapshotAttributesMessage } from "../models/models_0";
15+
import { DescribeDBSnapshotAttributesResult } from "../models/models_1";
1516
import {
1617
deserializeAws_queryDescribeDBSnapshotAttributesCommand,
1718
serializeAws_queryDescribeDBSnapshotAttributesCommand,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import {
1111
SerdeContext as __SerdeContext,
1212
} from "@aws-sdk/types";
1313

14-
import { DBSnapshotMessage } from "../models/models_0";
15-
import { DescribeDBSnapshotsMessage } from "../models/models_1";
14+
import { DBSnapshotMessage, DescribeDBSnapshotsMessage } from "../models/models_1";
1615
import {
1716
deserializeAws_queryDescribeDBSnapshotsCommand,
1817
serializeAws_queryDescribeDBSnapshotsCommand,

clients/client-rds/src/models/models_0.ts

Lines changed: 74 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3435,6 +3435,36 @@ export namespace ScalingConfiguration {
34353435
});
34363436
}
34373437

3438+
/**
3439+
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
3440+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
3441+
* <i>Amazon Aurora User Guide</i>.</p>
3442+
*/
3443+
export interface ServerlessV2ScalingConfiguration {
3444+
/**
3445+
* <p>The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
3446+
* You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value
3447+
* that you can use is 0.5.</p>
3448+
*/
3449+
MinCapacity?: number;
3450+
3451+
/**
3452+
* <p>The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
3453+
* You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value
3454+
* that you can use is 128.</p>
3455+
*/
3456+
MaxCapacity?: number;
3457+
}
3458+
3459+
export namespace ServerlessV2ScalingConfiguration {
3460+
/**
3461+
* @internal
3462+
*/
3463+
export const filterSensitiveLog = (obj: ServerlessV2ScalingConfiguration): any => ({
3464+
...obj,
3465+
});
3466+
}
3467+
34383468
/**
34393469
* <p></p>
34403470
*/
@@ -4063,6 +4093,13 @@ export interface CreateDBClusterMessage {
40634093
* <p>Valid for: Multi-AZ DB clusters only</p>
40644094
*/
40654095
PerformanceInsightsRetentionPeriod?: number;
4096+
4097+
/**
4098+
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
4099+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
4100+
* <i>Amazon Aurora User Guide</i>.</p>
4101+
*/
4102+
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
40664103
}
40674104

40684105
export namespace CreateDBClusterMessage {
@@ -4346,6 +4383,36 @@ export namespace ScalingConfigurationInfo {
43464383
});
43474384
}
43484385

4386+
/**
4387+
* <p>Shows the scaling configuration for an Aurora Serverless v2 DB cluster.</p>
4388+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
4389+
* <i>Amazon Aurora User Guide</i>.</p>
4390+
*/
4391+
export interface ServerlessV2ScalingConfigurationInfo {
4392+
/**
4393+
* <p>The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
4394+
* You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value
4395+
* that you can use is 0.5.</p>
4396+
*/
4397+
MinCapacity?: number;
4398+
4399+
/**
4400+
* <p>The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
4401+
* You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value
4402+
* that you can use is 128.</p>
4403+
*/
4404+
MaxCapacity?: number;
4405+
}
4406+
4407+
export namespace ServerlessV2ScalingConfigurationInfo {
4408+
/**
4409+
* @internal
4410+
*/
4411+
export const filterSensitiveLog = (obj: ServerlessV2ScalingConfigurationInfo): any => ({
4412+
...obj,
4413+
});
4414+
}
4415+
43494416
/**
43504417
* <p>Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB cluster.</p>
43514418
* <p>For an Amazon Aurora DB cluster, this data type is used as a response element in the operations
@@ -4765,6 +4832,13 @@ export interface DBCluster {
47654832
* <p>This setting is only for non-Aurora Multi-AZ DB clusters.</p>
47664833
*/
47674834
PerformanceInsightsRetentionPeriod?: number;
4835+
4836+
/**
4837+
* <p>Shows the scaling configuration for an Aurora Serverless v2 DB cluster.</p>
4838+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
4839+
* <i>Amazon Aurora User Guide</i>.</p>
4840+
*/
4841+
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfigurationInfo;
47684842
}
47694843

47704844
export namespace DBCluster {
@@ -13352,50 +13426,3 @@ export namespace DBSnapshotAttributesResult {
1335213426
...obj,
1335313427
});
1335413428
}
13355-
13356-
export interface DescribeDBSnapshotAttributesResult {
13357-
/**
13358-
* <p>Contains the results of a successful call to the <code>DescribeDBSnapshotAttributes</code>
13359-
* API action.</p>
13360-
* <p>Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts
13361-
* to copy or restore a manual DB snapshot. For more information, see the <code>ModifyDBSnapshotAttribute</code>
13362-
* API action.</p>
13363-
*/
13364-
DBSnapshotAttributesResult?: DBSnapshotAttributesResult;
13365-
}
13366-
13367-
export namespace DescribeDBSnapshotAttributesResult {
13368-
/**
13369-
* @internal
13370-
*/
13371-
export const filterSensitiveLog = (obj: DescribeDBSnapshotAttributesResult): any => ({
13372-
...obj,
13373-
});
13374-
}
13375-
13376-
/**
13377-
* <p>Contains the result of a successful invocation of the <code>DescribeDBSnapshots</code> action.</p>
13378-
*/
13379-
export interface DBSnapshotMessage {
13380-
/**
13381-
* <p>An optional pagination token provided by a previous request.
13382-
* If this parameter is specified, the response includes
13383-
* only records beyond the marker,
13384-
* up to the value specified by <code>MaxRecords</code>.</p>
13385-
*/
13386-
Marker?: string;
13387-
13388-
/**
13389-
* <p>A list of <code>DBSnapshot</code> instances.</p>
13390-
*/
13391-
DBSnapshots?: DBSnapshot[];
13392-
}
13393-
13394-
export namespace DBSnapshotMessage {
13395-
/**
13396-
* @internal
13397-
*/
13398-
export const filterSensitiveLog = (obj: DBSnapshotMessage): any => ({
13399-
...obj,
13400-
});
13401-
}

clients/client-rds/src/models/models_1.ts

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,59 @@ import {
3030
ReplicaMode,
3131
ResourcePendingMaintenanceActions,
3232
ScalingConfiguration,
33+
ServerlessV2ScalingConfiguration,
3334
Tag,
3435
UserAuthConfig,
3536
} from "./models_0";
3637
import { RDSServiceException as __BaseException } from "./RDSServiceException";
3738

39+
export interface DescribeDBSnapshotAttributesResult {
40+
/**
41+
* <p>Contains the results of a successful call to the <code>DescribeDBSnapshotAttributes</code>
42+
* API action.</p>
43+
* <p>Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts
44+
* to copy or restore a manual DB snapshot. For more information, see the <code>ModifyDBSnapshotAttribute</code>
45+
* API action.</p>
46+
*/
47+
DBSnapshotAttributesResult?: DBSnapshotAttributesResult;
48+
}
49+
50+
export namespace DescribeDBSnapshotAttributesResult {
51+
/**
52+
* @internal
53+
*/
54+
export const filterSensitiveLog = (obj: DescribeDBSnapshotAttributesResult): any => ({
55+
...obj,
56+
});
57+
}
58+
59+
/**
60+
* <p>Contains the result of a successful invocation of the <code>DescribeDBSnapshots</code> action.</p>
61+
*/
62+
export interface DBSnapshotMessage {
63+
/**
64+
* <p>An optional pagination token provided by a previous request.
65+
* If this parameter is specified, the response includes
66+
* only records beyond the marker,
67+
* up to the value specified by <code>MaxRecords</code>.</p>
68+
*/
69+
Marker?: string;
70+
71+
/**
72+
* <p>A list of <code>DBSnapshot</code> instances.</p>
73+
*/
74+
DBSnapshots?: DBSnapshot[];
75+
}
76+
77+
export namespace DBSnapshotMessage {
78+
/**
79+
* @internal
80+
*/
81+
export const filterSensitiveLog = (obj: DBSnapshotMessage): any => ({
82+
...obj,
83+
});
84+
}
85+
3886
/**
3987
* <p></p>
4088
*/
@@ -3683,6 +3731,13 @@ export interface ModifyDBClusterMessage {
36833731
* <p>Valid for: Multi-AZ DB clusters only</p>
36843732
*/
36853733
PerformanceInsightsRetentionPeriod?: number;
3734+
3735+
/**
3736+
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
3737+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
3738+
* <i>Amazon Aurora User Guide</i>.</p>
3739+
*/
3740+
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
36863741
}
36873742

36883743
export namespace ModifyDBClusterMessage {
@@ -6485,6 +6540,13 @@ export interface RestoreDBClusterFromS3Message {
64856540
* <p>Specify the name of the IAM role to be used when making API calls to the Directory Service.</p>
64866541
*/
64876542
DomainIAMRoleName?: string;
6543+
6544+
/**
6545+
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
6546+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
6547+
* <i>Amazon Aurora User Guide</i>.</p>
6548+
*/
6549+
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
64886550
}
64896551

64906552
export namespace RestoreDBClusterFromS3Message {
@@ -6915,6 +6977,13 @@ export interface RestoreDBClusterFromSnapshotMessage {
69156977
* <p>Valid for: Aurora DB clusters and Multi-AZ DB clusters</p>
69166978
*/
69176979
PubliclyAccessible?: boolean;
6980+
6981+
/**
6982+
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
6983+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
6984+
* <i>Amazon Aurora User Guide</i>.</p>
6985+
*/
6986+
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
69186987
}
69196988

69206989
export namespace RestoreDBClusterFromSnapshotMessage {
@@ -7284,6 +7353,13 @@ export interface RestoreDBClusterToPointInTimeMessage {
72847353
* <p>Valid for: Multi-AZ DB clusters only</p>
72857354
*/
72867355
Iops?: number;
7356+
7357+
/**
7358+
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
7359+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the
7360+
* <i>Amazon Aurora User Guide</i>.</p>
7361+
*/
7362+
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
72877363
}
72887364

72897365
export namespace RestoreDBClusterToPointInTimeMessage {

0 commit comments

Comments
 (0)