@aws-sdk/client-rds 3.216.0 → 3.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/RDS.js +60 -0
- package/dist-cjs/commands/CreateBlueGreenDeploymentCommand.js +46 -0
- package/dist-cjs/commands/DeleteBlueGreenDeploymentCommand.js +46 -0
- package/dist-cjs/commands/DescribeBlueGreenDeploymentsCommand.js +46 -0
- package/dist-cjs/commands/DescribeDBProxyTargetGroupsCommand.js +3 -3
- package/dist-cjs/commands/DescribeDBProxyTargetsCommand.js +3 -3
- package/dist-cjs/commands/DescribeDBSecurityGroupsCommand.js +3 -3
- package/dist-cjs/commands/SwitchoverBlueGreenDeploymentCommand.js +46 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +150 -115
- package/dist-cjs/models/models_1.js +78 -4
- package/dist-cjs/pagination/DescribeBlueGreenDeploymentsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -1
- package/dist-cjs/protocols/Aws_query.js +544 -6
- package/dist-es/RDS.js +60 -0
- package/dist-es/commands/CreateBlueGreenDeploymentCommand.js +42 -0
- package/dist-es/commands/DeleteBlueGreenDeploymentCommand.js +42 -0
- package/dist-es/commands/DescribeBlueGreenDeploymentsCommand.js +42 -0
- package/dist-es/commands/DescribeDBProxyTargetGroupsCommand.js +1 -1
- package/dist-es/commands/DescribeDBProxyTargetsCommand.js +1 -1
- package/dist-es/commands/DescribeDBSecurityGroupsCommand.js +1 -1
- package/dist-es/commands/SwitchoverBlueGreenDeploymentCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +126 -95
- package/dist-es/models/models_1.js +62 -0
- package/dist-es/pagination/DescribeBlueGreenDeploymentsPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -1
- package/dist-es/protocols/Aws_query.js +531 -1
- package/dist-types/RDS.d.ts +59 -0
- package/dist-types/RDSClient.d.ts +6 -2
- package/dist-types/commands/CreateBlueGreenDeploymentCommand.d.ts +51 -0
- package/dist-types/commands/DeleteBlueGreenDeploymentCommand.d.ts +42 -0
- package/dist-types/commands/DescribeBlueGreenDeploymentsCommand.d.ts +42 -0
- package/dist-types/commands/DescribeDBProxyTargetGroupsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDBProxyTargetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDBSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/commands/SwitchoverBlueGreenDeploymentCommand.d.ts +44 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +516 -431
- package/dist-types/models/models_1.d.ts +370 -1
- package/dist-types/pagination/DescribeBlueGreenDeploymentsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -1
- package/dist-types/protocols/Aws_query.d.ts +12 -0
- package/dist-types/ts3.4/RDS.d.ts +68 -0
- package/dist-types/ts3.4/RDSClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/CreateBlueGreenDeploymentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteBlueGreenDeploymentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeBlueGreenDeploymentsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DescribeDBProxyTargetGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeDBProxyTargetsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeDBSecurityGroupsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SwitchoverBlueGreenDeploymentCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +153 -143
- package/dist-types/ts3.4/models/models_1.d.ts +128 -2
- package/dist-types/ts3.4/pagination/DescribeBlueGreenDeploymentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -1
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +48 -0
- package/package.json +3 -3
|
@@ -1,4 +1,30 @@
|
|
|
1
1
|
import { RDSServiceException as __BaseException } from "./RDSServiceException";
|
|
2
|
+
export var TargetRole;
|
|
3
|
+
(function (TargetRole) {
|
|
4
|
+
TargetRole["READ_ONLY"] = "READ_ONLY";
|
|
5
|
+
TargetRole["READ_WRITE"] = "READ_WRITE";
|
|
6
|
+
TargetRole["UNKNOWN"] = "UNKNOWN";
|
|
7
|
+
})(TargetRole || (TargetRole = {}));
|
|
8
|
+
export var TargetHealthReason;
|
|
9
|
+
(function (TargetHealthReason) {
|
|
10
|
+
TargetHealthReason["AUTH_FAILURE"] = "AUTH_FAILURE";
|
|
11
|
+
TargetHealthReason["CONNECTION_FAILED"] = "CONNECTION_FAILED";
|
|
12
|
+
TargetHealthReason["INVALID_REPLICATION_STATE"] = "INVALID_REPLICATION_STATE";
|
|
13
|
+
TargetHealthReason["PENDING_PROXY_CAPACITY"] = "PENDING_PROXY_CAPACITY";
|
|
14
|
+
TargetHealthReason["UNREACHABLE"] = "UNREACHABLE";
|
|
15
|
+
})(TargetHealthReason || (TargetHealthReason = {}));
|
|
16
|
+
export var TargetState;
|
|
17
|
+
(function (TargetState) {
|
|
18
|
+
TargetState["available"] = "AVAILABLE";
|
|
19
|
+
TargetState["registering"] = "REGISTERING";
|
|
20
|
+
TargetState["unavailable"] = "UNAVAILABLE";
|
|
21
|
+
})(TargetState || (TargetState = {}));
|
|
22
|
+
export var TargetType;
|
|
23
|
+
(function (TargetType) {
|
|
24
|
+
TargetType["RDS_INSTANCE"] = "RDS_INSTANCE";
|
|
25
|
+
TargetType["RDS_SERVERLESS_ENDPOINT"] = "RDS_SERVERLESS_ENDPOINT";
|
|
26
|
+
TargetType["TRACKED_CLUSTER"] = "TRACKED_CLUSTER";
|
|
27
|
+
})(TargetType || (TargetType = {}));
|
|
2
28
|
export var SourceType;
|
|
3
29
|
(function (SourceType) {
|
|
4
30
|
SourceType["custom_engine_version"] = "custom-engine-version";
|
|
@@ -285,6 +311,36 @@ export class InvalidExportSourceStateFault extends __BaseException {
|
|
|
285
311
|
Object.setPrototypeOf(this, InvalidExportSourceStateFault.prototype);
|
|
286
312
|
}
|
|
287
313
|
}
|
|
314
|
+
export const DescribeDBProxyTargetGroupsRequestFilterSensitiveLog = (obj) => ({
|
|
315
|
+
...obj,
|
|
316
|
+
});
|
|
317
|
+
export const ConnectionPoolConfigurationInfoFilterSensitiveLog = (obj) => ({
|
|
318
|
+
...obj,
|
|
319
|
+
});
|
|
320
|
+
export const DBProxyTargetGroupFilterSensitiveLog = (obj) => ({
|
|
321
|
+
...obj,
|
|
322
|
+
});
|
|
323
|
+
export const DescribeDBProxyTargetGroupsResponseFilterSensitiveLog = (obj) => ({
|
|
324
|
+
...obj,
|
|
325
|
+
});
|
|
326
|
+
export const DescribeDBProxyTargetsRequestFilterSensitiveLog = (obj) => ({
|
|
327
|
+
...obj,
|
|
328
|
+
});
|
|
329
|
+
export const TargetHealthFilterSensitiveLog = (obj) => ({
|
|
330
|
+
...obj,
|
|
331
|
+
});
|
|
332
|
+
export const DBProxyTargetFilterSensitiveLog = (obj) => ({
|
|
333
|
+
...obj,
|
|
334
|
+
});
|
|
335
|
+
export const DescribeDBProxyTargetsResponseFilterSensitiveLog = (obj) => ({
|
|
336
|
+
...obj,
|
|
337
|
+
});
|
|
338
|
+
export const DBSecurityGroupMessageFilterSensitiveLog = (obj) => ({
|
|
339
|
+
...obj,
|
|
340
|
+
});
|
|
341
|
+
export const DescribeDBSecurityGroupsMessageFilterSensitiveLog = (obj) => ({
|
|
342
|
+
...obj,
|
|
343
|
+
});
|
|
288
344
|
export const DescribeDBSnapshotAttributesMessageFilterSensitiveLog = (obj) => ({
|
|
289
345
|
...obj,
|
|
290
346
|
});
|
|
@@ -747,6 +803,12 @@ export const StopDBInstanceAutomatedBackupsReplicationMessageFilterSensitiveLog
|
|
|
747
803
|
export const StopDBInstanceAutomatedBackupsReplicationResultFilterSensitiveLog = (obj) => ({
|
|
748
804
|
...obj,
|
|
749
805
|
});
|
|
806
|
+
export const SwitchoverBlueGreenDeploymentRequestFilterSensitiveLog = (obj) => ({
|
|
807
|
+
...obj,
|
|
808
|
+
});
|
|
809
|
+
export const SwitchoverBlueGreenDeploymentResponseFilterSensitiveLog = (obj) => ({
|
|
810
|
+
...obj,
|
|
811
|
+
});
|
|
750
812
|
export const SwitchoverReadReplicaMessageFilterSensitiveLog = (obj) => ({
|
|
751
813
|
...obj,
|
|
752
814
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DescribeBlueGreenDeploymentsCommand, } from "../commands/DescribeBlueGreenDeploymentsCommand";
|
|
2
|
+
import { RDS } from "../RDS";
|
|
3
|
+
import { RDSClient } from "../RDSClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new DescribeBlueGreenDeploymentsCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.describeBlueGreenDeployments(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateDescribeBlueGreenDeployments(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.Marker = token;
|
|
16
|
+
input["MaxRecords"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof RDS) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RDSClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected RDS | RDSClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.Marker;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./DescribeBlueGreenDeploymentsPaginator";
|
|
1
2
|
export * from "./DescribeCertificatesPaginator";
|
|
2
3
|
export * from "./DescribeDBClusterBacktracksPaginator";
|
|
3
4
|
export * from "./DescribeDBClusterEndpointsPaginator";
|
|
@@ -7,8 +8,8 @@ export * from "./DescribeDBClusterSnapshotsPaginator";
|
|
|
7
8
|
export * from "./DescribeDBClustersPaginator";
|
|
8
9
|
export * from "./DescribeDBEngineVersionsPaginator";
|
|
9
10
|
export * from "./DescribeDBInstanceAutomatedBackupsPaginator";
|
|
10
|
-
export * from "./DescribeDBInstancesPaginator";
|
|
11
11
|
export * from "./Interfaces";
|
|
12
|
+
export * from "./DescribeDBInstancesPaginator";
|
|
12
13
|
export * from "./DescribeDBLogFilesPaginator";
|
|
13
14
|
export * from "./DescribeDBParameterGroupsPaginator";
|
|
14
15
|
export * from "./DescribeDBParametersPaginator";
|