Skip to content

Commit

Permalink
feat(client-rds): Added a new cluster-level attribute to set the capa…
Browse files Browse the repository at this point in the history
…city range for Aurora Serverless v2 instances.
  • Loading branch information
awstools committed Apr 20, 2022
1 parent 78e0c59 commit fd985ae
Show file tree
Hide file tree
Showing 6 changed files with 304 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import {
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

import { DescribeDBSnapshotAttributesMessage, DescribeDBSnapshotAttributesResult } from "../models/models_0";
import { DescribeDBSnapshotAttributesMessage } from "../models/models_0";
import { DescribeDBSnapshotAttributesResult } from "../models/models_1";
import {
deserializeAws_queryDescribeDBSnapshotAttributesCommand,
serializeAws_queryDescribeDBSnapshotAttributesCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

import { DBSnapshotMessage } from "../models/models_0";
import { DescribeDBSnapshotsMessage } from "../models/models_1";
import { DBSnapshotMessage, DescribeDBSnapshotsMessage } from "../models/models_1";
import {
deserializeAws_queryDescribeDBSnapshotsCommand,
serializeAws_queryDescribeDBSnapshotsCommand,
Expand Down
121 changes: 74 additions & 47 deletions clients/client-rds/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3435,6 +3435,36 @@ export namespace ScalingConfiguration {
});
}

/**
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
export interface ServerlessV2ScalingConfiguration {
/**
* <p>The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
* You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value
* that you can use is 0.5.</p>
*/
MinCapacity?: number;

/**
* <p>The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
* You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value
* that you can use is 128.</p>
*/
MaxCapacity?: number;
}

export namespace ServerlessV2ScalingConfiguration {
/**
* @internal
*/
export const filterSensitiveLog = (obj: ServerlessV2ScalingConfiguration): any => ({
...obj,
});
}

/**
* <p></p>
*/
Expand Down Expand Up @@ -4063,6 +4093,13 @@ export interface CreateDBClusterMessage {
* <p>Valid for: Multi-AZ DB clusters only</p>
*/
PerformanceInsightsRetentionPeriod?: number;

/**
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
}

export namespace CreateDBClusterMessage {
Expand Down Expand Up @@ -4346,6 +4383,36 @@ export namespace ScalingConfigurationInfo {
});
}

/**
* <p>Shows the scaling configuration for an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
export interface ServerlessV2ScalingConfigurationInfo {
/**
* <p>The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
* You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value
* that you can use is 0.5.</p>
*/
MinCapacity?: number;

/**
* <p>The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
* You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value
* that you can use is 128.</p>
*/
MaxCapacity?: number;
}

export namespace ServerlessV2ScalingConfigurationInfo {
/**
* @internal
*/
export const filterSensitiveLog = (obj: ServerlessV2ScalingConfigurationInfo): any => ({
...obj,
});
}

/**
* <p>Contains the details of an Amazon Aurora DB cluster or Multi-AZ DB cluster.</p>
* <p>For an Amazon Aurora DB cluster, this data type is used as a response element in the operations
Expand Down Expand Up @@ -4765,6 +4832,13 @@ export interface DBCluster {
* <p>This setting is only for non-Aurora Multi-AZ DB clusters.</p>
*/
PerformanceInsightsRetentionPeriod?: number;

/**
* <p>Shows the scaling configuration for an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfigurationInfo;
}

export namespace DBCluster {
Expand Down Expand Up @@ -13352,50 +13426,3 @@ export namespace DBSnapshotAttributesResult {
...obj,
});
}

export interface DescribeDBSnapshotAttributesResult {
/**
* <p>Contains the results of a successful call to the <code>DescribeDBSnapshotAttributes</code>
* API action.</p>
* <p>Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts
* to copy or restore a manual DB snapshot. For more information, see the <code>ModifyDBSnapshotAttribute</code>
* API action.</p>
*/
DBSnapshotAttributesResult?: DBSnapshotAttributesResult;
}

export namespace DescribeDBSnapshotAttributesResult {
/**
* @internal
*/
export const filterSensitiveLog = (obj: DescribeDBSnapshotAttributesResult): any => ({
...obj,
});
}

/**
* <p>Contains the result of a successful invocation of the <code>DescribeDBSnapshots</code> action.</p>
*/
export interface DBSnapshotMessage {
/**
* <p>An optional pagination token provided by a previous request.
* If this parameter is specified, the response includes
* only records beyond the marker,
* up to the value specified by <code>MaxRecords</code>.</p>
*/
Marker?: string;

/**
* <p>A list of <code>DBSnapshot</code> instances.</p>
*/
DBSnapshots?: DBSnapshot[];
}

export namespace DBSnapshotMessage {
/**
* @internal
*/
export const filterSensitiveLog = (obj: DBSnapshotMessage): any => ({
...obj,
});
}
76 changes: 76 additions & 0 deletions clients/client-rds/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,59 @@ import {
ReplicaMode,
ResourcePendingMaintenanceActions,
ScalingConfiguration,
ServerlessV2ScalingConfiguration,
Tag,
UserAuthConfig,
} from "./models_0";
import { RDSServiceException as __BaseException } from "./RDSServiceException";

export interface DescribeDBSnapshotAttributesResult {
/**
* <p>Contains the results of a successful call to the <code>DescribeDBSnapshotAttributes</code>
* API action.</p>
* <p>Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts
* to copy or restore a manual DB snapshot. For more information, see the <code>ModifyDBSnapshotAttribute</code>
* API action.</p>
*/
DBSnapshotAttributesResult?: DBSnapshotAttributesResult;
}

export namespace DescribeDBSnapshotAttributesResult {
/**
* @internal
*/
export const filterSensitiveLog = (obj: DescribeDBSnapshotAttributesResult): any => ({
...obj,
});
}

/**
* <p>Contains the result of a successful invocation of the <code>DescribeDBSnapshots</code> action.</p>
*/
export interface DBSnapshotMessage {
/**
* <p>An optional pagination token provided by a previous request.
* If this parameter is specified, the response includes
* only records beyond the marker,
* up to the value specified by <code>MaxRecords</code>.</p>
*/
Marker?: string;

/**
* <p>A list of <code>DBSnapshot</code> instances.</p>
*/
DBSnapshots?: DBSnapshot[];
}

export namespace DBSnapshotMessage {
/**
* @internal
*/
export const filterSensitiveLog = (obj: DBSnapshotMessage): any => ({
...obj,
});
}

/**
* <p></p>
*/
Expand Down Expand Up @@ -3683,6 +3731,13 @@ export interface ModifyDBClusterMessage {
* <p>Valid for: Multi-AZ DB clusters only</p>
*/
PerformanceInsightsRetentionPeriod?: number;

/**
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
}

export namespace ModifyDBClusterMessage {
Expand Down Expand Up @@ -6485,6 +6540,13 @@ export interface RestoreDBClusterFromS3Message {
* <p>Specify the name of the IAM role to be used when making API calls to the Directory Service.</p>
*/
DomainIAMRoleName?: string;

/**
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
}

export namespace RestoreDBClusterFromS3Message {
Expand Down Expand Up @@ -6915,6 +6977,13 @@ export interface RestoreDBClusterFromSnapshotMessage {
* <p>Valid for: Aurora DB clusters and Multi-AZ DB clusters</p>
*/
PubliclyAccessible?: boolean;

/**
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
}

export namespace RestoreDBClusterFromSnapshotMessage {
Expand Down Expand Up @@ -7284,6 +7353,13 @@ export interface RestoreDBClusterToPointInTimeMessage {
* <p>Valid for: Multi-AZ DB clusters only</p>
*/
Iops?: number;

/**
* <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
* <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
* <i>Amazon Aurora User Guide</i>.</p>
*/
ServerlessV2ScalingConfiguration?: ServerlessV2ScalingConfiguration;
}

export namespace RestoreDBClusterToPointInTimeMessage {
Expand Down
Loading

0 comments on commit fd985ae

Please sign in to comment.