Skip to content

Commit

Permalink
feat(client-rds): Relational Database Service - This release adds sup…
Browse files Browse the repository at this point in the history
…port for exporting DB cluster data to Amazon S3.
  • Loading branch information
awstools committed Oct 25, 2022
1 parent 7d3dc18 commit 6e030b7
Show file tree
Hide file tree
Showing 5 changed files with 402 additions and 308 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ import {
import {
DescribeDBSnapshotAttributesMessage,
DescribeDBSnapshotAttributesMessageFilterSensitiveLog,
} from "../models/models_0";
import {
DescribeDBSnapshotAttributesResult,
DescribeDBSnapshotAttributesResultFilterSensitiveLog,
} from "../models/models_1";
Expand Down
29 changes: 10 additions & 19 deletions clients/client-rds/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,11 @@ export interface CancelExportTaskMessage {
ExportTaskIdentifier: string | undefined;
}

export enum ExportSourceType {
CLUSTER = "CLUSTER",
SNAPSHOT = "SNAPSHOT",
}

/**
* <p>Contains the details of a snapshot export to Amazon S3.</p>
* <p>This data type is used as a response element in the <code>DescribeExportTasks</code> action.</p>
Expand Down Expand Up @@ -1175,6 +1180,11 @@ export interface ExportTask {
* <p>A warning about the snapshot export task.</p>
*/
WarningMessage?: string;

/**
* <p>The type of source for the export.</p>
*/
SourceType?: ExportSourceType | string;
}

/**
Expand Down Expand Up @@ -12113,16 +12123,6 @@ export interface DescribeDBSecurityGroupsMessage {
Marker?: string;
}

/**
* <p></p>
*/
export interface DescribeDBSnapshotAttributesMessage {
/**
* <p>The identifier for the DB snapshot to describe the attributes for.</p>
*/
DBSnapshotIdentifier: string | undefined;
}

/**
* @internal
*/
Expand Down Expand Up @@ -13453,12 +13453,3 @@ export const DBSecurityGroupMessageFilterSensitiveLog = (obj: DBSecurityGroupMes
export const DescribeDBSecurityGroupsMessageFilterSensitiveLog = (obj: DescribeDBSecurityGroupsMessage): any => ({
...obj,
});

/**
* @internal
*/
export const DescribeDBSnapshotAttributesMessageFilterSensitiveLog = (
obj: DescribeDBSnapshotAttributesMessage
): any => ({
...obj,
});
67 changes: 67 additions & 0 deletions clients/client-rds/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
DBSnapshot,
DBSubnetGroup,
EventSubscription,
ExportSourceType,
ExportTask,
Filter,
GlobalCluster,
Expand All @@ -36,6 +37,16 @@ import {
} from "./models_0";
import { RDSServiceException as __BaseException } from "./RDSServiceException";

/**
* <p></p>
*/
export interface DescribeDBSnapshotAttributesMessage {
/**
* <p>The identifier for the DB snapshot to describe the attributes for.</p>
*/
DBSnapshotIdentifier: string | undefined;
}

/**
* <p>Contains the name and values of a manual DB snapshot attribute</p>
* <p>Manual DB snapshot attributes are used to authorize other Amazon Web Services accounts
Expand Down Expand Up @@ -416,6 +427,16 @@ export interface DescribeEngineDefaultParametersMessage {
* </li>
* <li>
* <p>
* <code>aurora-postgresql14</code>
* </p>
* </li>
* <li>
* <p>
* <code>custom-oracle-ee-19</code>
* </p>
* </li>
* <li>
* <p>
* <code>mariadb10.2</code>
* </p>
* </li>
Expand Down Expand Up @@ -451,6 +472,36 @@ export interface DescribeEngineDefaultParametersMessage {
* </li>
* <li>
* <p>
* <code>oracle-ee-19</code>
* </p>
* </li>
* <li>
* <p>
* <code>oracle-ee-cdb-19</code>
* </p>
* </li>
* <li>
* <p>
* <code>oracle-ee-cdb-21</code>
* </p>
* </li>
* <li>
* <p>
* <code>oracle-se2-19</code>
* </p>
* </li>
* <li>
* <p>
* <code>oracle-se2-cdb-19</code>
* </p>
* </li>
* <li>
* <p>
* <code>oracle-se2-cdb-21</code>
* </p>
* </li>
* <li>
* <p>
* <code>postgres10</code>
* </p>
* </li>
Expand Down Expand Up @@ -952,6 +1003,11 @@ export interface DescribeExportTasksMessage {
* <p>Constraints: Minimum 20, maximum 100.</p>
*/
MaxRecords?: number;

/**
* <p>The type of source for the export.</p>
*/
SourceType?: ExportSourceType | string;
}

export interface ExportTasksMessage {
Expand Down Expand Up @@ -4393,6 +4449,7 @@ export interface ConnectionPoolConfiguration {
/**
* <p>The maximum size of the connection pool for each target in a target group. The value is expressed as a percentage of the
* <code>max_connections</code> setting for the RDS DB instance or Aurora DB cluster used by the target group.</p>
* <p>If you specify <code>MaxIdleConnectionsPercent</code>, then you must also include a value for this parameter.</p>
* <p>Default: 10 for RDS for Microsoft SQL Server, and 100 for all other engines</p>
* <p>Constraints: Must be between 1 and 100.</p>
*/
Expand All @@ -4402,6 +4459,7 @@ export interface ConnectionPoolConfiguration {
* <p>Controls how actively the proxy closes idle database connections in the connection pool.
* The value is expressed as a percentage of the <code>max_connections</code> setting for the RDS DB instance or Aurora DB cluster used by the target group.
* With a high value, the proxy leaves a high percentage of idle database connections open. A low value causes the proxy to close more idle connections and return them to the database.</p>
* <p>If you specify this parameter, then you must also include a value for <code>MaxConnectionsPercent</code>.</p>
* <p>Default: The default value is half of the value of <code>MaxConnectionsPercent</code>. For example, if <code>MaxConnectionsPercent</code> is 80, then the default value of
* <code>MaxIdleConnectionsPercent</code> is 40. If the value of <code>MaxConnectionsPercent</code> isn't specified, then for SQL Server, <code>MaxIdleConnectionsPercent</code> is 5, and
* for all other engines, the default is 50.</p>
Expand Down Expand Up @@ -8464,6 +8522,15 @@ export interface SwitchoverReadReplicaResult {
DBInstance?: DBInstance;
}

/**
* @internal
*/
export const DescribeDBSnapshotAttributesMessageFilterSensitiveLog = (
obj: DescribeDBSnapshotAttributesMessage
): any => ({
...obj,
});

/**
* @internal
*/
Expand Down
12 changes: 11 additions & 1 deletion clients/client-rds/src/protocols/Aws_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ import {
DescribeDBProxyTargetsRequest,
DescribeDBProxyTargetsResponse,
DescribeDBSecurityGroupsMessage,
DescribeDBSnapshotAttributesMessage,
DomainMembership,
DomainNotFoundFault,
EC2SecurityGroup,
Expand Down Expand Up @@ -763,6 +762,7 @@ import {
DBSnapshotMessage,
DBSubnetGroupMessage,
DBUpgradeDependencyFailureFault,
DescribeDBSnapshotAttributesMessage,
DescribeDBSnapshotAttributesResult,
DescribeDBSnapshotsMessage,
DescribeDBSubnetGroupsMessage,
Expand Down Expand Up @@ -9664,6 +9664,9 @@ const deserializeAws_queryStartExportTaskCommandError = async (
};
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "DBClusterNotFoundFault":
case "com.amazonaws.rds#DBClusterNotFoundFault":
throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
case "DBClusterSnapshotNotFoundFault":
case "com.amazonaws.rds#DBClusterSnapshotNotFoundFault":
throw await deserializeAws_queryDBClusterSnapshotNotFoundFaultResponse(parsedOutput, context);
Expand Down Expand Up @@ -13653,6 +13656,9 @@ const serializeAws_queryDescribeExportTasksMessage = (
if (input.MaxRecords != null) {
entries["MaxRecords"] = input.MaxRecords;
}
if (input.SourceType != null) {
entries["SourceType"] = input.SourceType;
}
return entries;
};

Expand Down Expand Up @@ -20776,6 +20782,7 @@ const deserializeAws_queryExportTask = (output: any, context: __SerdeContext): E
TotalExtractedDataInGB: undefined,
FailureCause: undefined,
WarningMessage: undefined,
SourceType: undefined,
};
if (output["ExportTaskIdentifier"] !== undefined) {
contents.ExportTaskIdentifier = __expectString(output["ExportTaskIdentifier"]);
Expand Down Expand Up @@ -20827,6 +20834,9 @@ const deserializeAws_queryExportTask = (output: any, context: __SerdeContext): E
if (output["WarningMessage"] !== undefined) {
contents.WarningMessage = __expectString(output["WarningMessage"]);
}
if (output["SourceType"] !== undefined) {
contents.SourceType = __expectString(output["SourceType"]);
}
return contents;
};

Expand Down
Loading

0 comments on commit 6e030b7

Please sign in to comment.