Skip to content

Commit 9345898

Browse files
author
awstools
committed
feat(client-rds): This release updates the supported versions for Percona XtraBackup in Aurora MySQL.
1 parent fcb5278 commit 9345898

File tree

4 files changed

+65
-8
lines changed

4 files changed

+65
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7993,7 +7993,7 @@ export interface RestoreDBClusterFromS3Message {
79937993
* <p>
79947994
* <b>Aurora MySQL</b>
79957995
* </p>
7996-
* <p>Examples: <code>5.7.mysql_aurora.2.07.1</code>, <code>8.0.mysql_aurora.3.02.0</code>
7996+
* <p>Examples: <code>5.7.mysql_aurora.2.12.0</code>, <code>8.0.mysql_aurora.3.04.0</code>
79977997
* </p>
79987998
*/
79997999
EngineVersion?: string;
@@ -8140,8 +8140,8 @@ export interface RestoreDBClusterFromS3Message {
81408140
/**
81418141
* @public
81428142
* <p>The version of the database that the backup files were created from.</p>
8143-
* <p>MySQL versions 5.5, 5.6, and 5.7 are supported.</p>
8144-
* <p>Example: <code>5.6.40</code>, <code>5.7.28</code>
8143+
* <p>MySQL versions 5.7 and 8.0 are supported.</p>
8144+
* <p>Example: <code>5.7.40</code>, <code>8.0.28</code>
81458145
* </p>
81468146
*/
81478147
SourceEngineVersion: string | undefined;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// smithy-typescript generated code
2+
import { Paginator } from "@smithy/types";
3+
4+
import {
5+
DescribeDBClusterAutomatedBackupsCommand,
6+
DescribeDBClusterAutomatedBackupsCommandInput,
7+
DescribeDBClusterAutomatedBackupsCommandOutput,
8+
} from "../commands/DescribeDBClusterAutomatedBackupsCommand";
9+
import { RDSClient } from "../RDSClient";
10+
import { RDSPaginationConfiguration } from "./Interfaces";
11+
12+
/**
13+
* @internal
14+
*/
15+
const makePagedClientRequest = async (
16+
client: RDSClient,
17+
input: DescribeDBClusterAutomatedBackupsCommandInput,
18+
...args: any
19+
): Promise<DescribeDBClusterAutomatedBackupsCommandOutput> => {
20+
// @ts-ignore
21+
return await client.send(new DescribeDBClusterAutomatedBackupsCommand(input), ...args);
22+
};
23+
/**
24+
* @public
25+
*/
26+
export async function* paginateDescribeDBClusterAutomatedBackups(
27+
config: RDSPaginationConfiguration,
28+
input: DescribeDBClusterAutomatedBackupsCommandInput,
29+
...additionalArguments: any
30+
): Paginator<DescribeDBClusterAutomatedBackupsCommandOutput> {
31+
// ToDo: replace with actual type instead of typeof input.Marker
32+
let token: typeof input.Marker | undefined = config.startingToken || undefined;
33+
let hasNext = true;
34+
let page: DescribeDBClusterAutomatedBackupsCommandOutput;
35+
while (hasNext) {
36+
input.Marker = token;
37+
input["MaxRecords"] = config.pageSize;
38+
if (config.client instanceof RDSClient) {
39+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
40+
} else {
41+
throw new Error("Invalid client, expected RDS | RDSClient");
42+
}
43+
yield page;
44+
const prevToken = token;
45+
token = page.Marker;
46+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
47+
}
48+
// @ts-ignore
49+
return undefined;
50+
}

clients/client-rds/src/pagination/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ export * from "./DescribeBlueGreenDeploymentsPaginator";
22

33
export * from "./DescribeCertificatesPaginator";
44

5+
export * from "./DescribeDBClusterAutomatedBackupsPaginator";
6+
57
export * from "./DescribeDBClusterBacktracksPaginator";
68

79
export * from "./DescribeDBClusterEndpointsPaginator";
@@ -15,10 +17,9 @@ export * from "./DescribeDBClusterSnapshotsPaginator";
1517
export * from "./DescribeDBClustersPaginator";
1618

1719
export * from "./DescribeDBEngineVersionsPaginator";
18-
19-
export * from "./DescribeDBInstanceAutomatedBackupsPaginator";
2020
// smithy-typescript generated code
2121
export * from "./Interfaces";
22+
export * from "./DescribeDBInstanceAutomatedBackupsPaginator";
2223
export * from "./DescribeDBInstancesPaginator";
2324
export * from "./DescribeDBLogFilesPaginator";
2425
export * from "./DescribeDBParameterGroupsPaginator";

codegen/sdk-codegen/aws-models/rds.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12103,7 +12103,13 @@
1210312103
}
1210412104
],
1210512105
"traits": {
12106-
"smithy.api#documentation": "<p>Displays backups for both current and deleted DB clusters. For example, use this operation to find details \n about automated backups for previously deleted clusters. Current clusters are returned for both the \n <code>DescribeDBClusterAutomatedBackups</code> and <code>DescribeDBClusters</code> operations.</p>\n <p>All parameters are optional.</p>"
12106+
"smithy.api#documentation": "<p>Displays backups for both current and deleted DB clusters. For example, use this operation to find details \n about automated backups for previously deleted clusters. Current clusters are returned for both the \n <code>DescribeDBClusterAutomatedBackups</code> and <code>DescribeDBClusters</code> operations.</p>\n <p>All parameters are optional.</p>",
12107+
"smithy.api#paginated": {
12108+
"inputToken": "Marker",
12109+
"outputToken": "Marker",
12110+
"items": "DBClusterAutomatedBackups",
12111+
"pageSize": "MaxRecords"
12112+
}
1210712113
}
1210812114
},
1210912115
"com.amazonaws.rds#DescribeDBClusterAutomatedBackupsMessage": {
@@ -23599,7 +23605,7 @@
2359923605
"EngineVersion": {
2360023606
"target": "com.amazonaws.rds#String",
2360123607
"traits": {
23602-
"smithy.api#documentation": "<p>The version number of the database engine to use.</p>\n <p>To list all of the available engine versions for <code>aurora-mysql</code> (Aurora MySQL), use the following command:</p>\n <p>\n <code>aws rds describe-db-engine-versions --engine aurora-mysql --query \"DBEngineVersions[].EngineVersion\"</code>\n </p>\n <p>\n <b>Aurora MySQL</b>\n </p>\n <p>Examples: <code>5.7.mysql_aurora.2.07.1</code>, <code>8.0.mysql_aurora.3.02.0</code>\n </p>"
23608+
"smithy.api#documentation": "<p>The version number of the database engine to use.</p>\n <p>To list all of the available engine versions for <code>aurora-mysql</code> (Aurora MySQL), use the following command:</p>\n <p>\n <code>aws rds describe-db-engine-versions --engine aurora-mysql --query \"DBEngineVersions[].EngineVersion\"</code>\n </p>\n <p>\n <b>Aurora MySQL</b>\n </p>\n <p>Examples: <code>5.7.mysql_aurora.2.12.0</code>, <code>8.0.mysql_aurora.3.04.0</code>\n </p>"
2360323609
}
2360423610
},
2360523611
"Port": {
@@ -23670,7 +23676,7 @@
2367023676
"SourceEngineVersion": {
2367123677
"target": "com.amazonaws.rds#String",
2367223678
"traits": {
23673-
"smithy.api#documentation": "<p>The version of the database that the backup files were created from.</p>\n <p>MySQL versions 5.5, 5.6, and 5.7 are supported.</p>\n <p>Example: <code>5.6.40</code>, <code>5.7.28</code>\n </p>",
23679+
"smithy.api#documentation": "<p>The version of the database that the backup files were created from.</p>\n <p>MySQL versions 5.7 and 8.0 are supported.</p>\n <p>Example: <code>5.7.40</code>, <code>8.0.28</code>\n </p>",
2367423680
"smithy.api#required": {}
2367523681
}
2367623682
},

0 commit comments

Comments
 (0)