@aws-sdk/client-rds 3.301.0 → 3.303.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/models/models_0.js +86 -102
- package/dist-cjs/models/models_1.js +42 -49
- package/dist-cjs/protocols/Aws_query.js +12 -0
- package/dist-es/models/models_0.js +86 -102
- package/dist-es/models/models_1.js +42 -49
- package/dist-es/protocols/Aws_query.js +12 -0
- package/dist-types/RDS.d.ts +16 -12
- package/dist-types/commands/CreateDBClusterCommand.d.ts +6 -5
- package/dist-types/commands/CreateDBInstanceReadReplicaCommand.d.ts +17 -8
- package/dist-types/commands/DeleteDBClusterCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +227 -118
- package/dist-types/models/models_1.d.ts +95 -48
- package/dist-types/ts3.4/models/models_0.d.ts +115 -87
- package/dist-types/ts3.4/models/models_1.d.ts +52 -42
- package/package.json +36 -36
|
@@ -1,42 +1,37 @@
|
|
|
1
1
|
import { RDSServiceException as __BaseException } from "./RDSServiceException";
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
SourceType["db_parameter_group"] = "db-parameter-group";
|
|
36
|
-
SourceType["db_proxy"] = "db-proxy";
|
|
37
|
-
SourceType["db_security_group"] = "db-security-group";
|
|
38
|
-
SourceType["db_snapshot"] = "db-snapshot";
|
|
39
|
-
})(SourceType || (SourceType = {}));
|
|
2
|
+
export const TargetRole = {
|
|
3
|
+
READ_ONLY: "READ_ONLY",
|
|
4
|
+
READ_WRITE: "READ_WRITE",
|
|
5
|
+
UNKNOWN: "UNKNOWN",
|
|
6
|
+
};
|
|
7
|
+
export const TargetHealthReason = {
|
|
8
|
+
AUTH_FAILURE: "AUTH_FAILURE",
|
|
9
|
+
CONNECTION_FAILED: "CONNECTION_FAILED",
|
|
10
|
+
INVALID_REPLICATION_STATE: "INVALID_REPLICATION_STATE",
|
|
11
|
+
PENDING_PROXY_CAPACITY: "PENDING_PROXY_CAPACITY",
|
|
12
|
+
UNREACHABLE: "UNREACHABLE",
|
|
13
|
+
};
|
|
14
|
+
export const TargetState = {
|
|
15
|
+
available: "AVAILABLE",
|
|
16
|
+
registering: "REGISTERING",
|
|
17
|
+
unavailable: "UNAVAILABLE",
|
|
18
|
+
};
|
|
19
|
+
export const TargetType = {
|
|
20
|
+
RDS_INSTANCE: "RDS_INSTANCE",
|
|
21
|
+
RDS_SERVERLESS_ENDPOINT: "RDS_SERVERLESS_ENDPOINT",
|
|
22
|
+
TRACKED_CLUSTER: "TRACKED_CLUSTER",
|
|
23
|
+
};
|
|
24
|
+
export const SourceType = {
|
|
25
|
+
blue_green_deployment: "blue-green-deployment",
|
|
26
|
+
custom_engine_version: "custom-engine-version",
|
|
27
|
+
db_cluster: "db-cluster",
|
|
28
|
+
db_cluster_snapshot: "db-cluster-snapshot",
|
|
29
|
+
db_instance: "db-instance",
|
|
30
|
+
db_parameter_group: "db-parameter-group",
|
|
31
|
+
db_proxy: "db-proxy",
|
|
32
|
+
db_security_group: "db-security-group",
|
|
33
|
+
db_snapshot: "db-snapshot",
|
|
34
|
+
};
|
|
40
35
|
export class ReservedDBInstanceNotFoundFault extends __BaseException {
|
|
41
36
|
constructor(opts) {
|
|
42
37
|
super({
|
|
@@ -73,11 +68,10 @@ export class DBLogFileNotFoundFault extends __BaseException {
|
|
|
73
68
|
Object.setPrototypeOf(this, DBLogFileNotFoundFault.prototype);
|
|
74
69
|
}
|
|
75
70
|
}
|
|
76
|
-
export
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
})(AuditPolicyState || (AuditPolicyState = {}));
|
|
71
|
+
export const AuditPolicyState = {
|
|
72
|
+
LOCKED_POLICY: "locked",
|
|
73
|
+
UNLOCKED_POLICY: "unlocked",
|
|
74
|
+
};
|
|
81
75
|
export class InvalidDBClusterCapacityFault extends __BaseException {
|
|
82
76
|
constructor(opts) {
|
|
83
77
|
super({
|
|
@@ -90,12 +84,11 @@ export class InvalidDBClusterCapacityFault extends __BaseException {
|
|
|
90
84
|
Object.setPrototypeOf(this, InvalidDBClusterCapacityFault.prototype);
|
|
91
85
|
}
|
|
92
86
|
}
|
|
93
|
-
export
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})(CustomEngineVersionStatus || (CustomEngineVersionStatus = {}));
|
|
87
|
+
export const CustomEngineVersionStatus = {
|
|
88
|
+
available: "available",
|
|
89
|
+
inactive: "inactive",
|
|
90
|
+
inactive_except_restore: "inactive-except-restore",
|
|
91
|
+
};
|
|
99
92
|
export class SharedSnapshotQuotaExceededFault extends __BaseException {
|
|
100
93
|
constructor(opts) {
|
|
101
94
|
super({
|
|
@@ -2655,6 +2655,9 @@ const deserializeAws_queryCreateDBInstanceReadReplicaCommandError = async (outpu
|
|
|
2655
2655
|
};
|
|
2656
2656
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2657
2657
|
switch (errorCode) {
|
|
2658
|
+
case "DBClusterNotFoundFault":
|
|
2659
|
+
case "com.amazonaws.rds#DBClusterNotFoundFault":
|
|
2660
|
+
throw await deserializeAws_queryDBClusterNotFoundFaultResponse(parsedOutput, context);
|
|
2658
2661
|
case "DBInstanceAlreadyExists":
|
|
2659
2662
|
case "com.amazonaws.rds#DBInstanceAlreadyExistsFault":
|
|
2660
2663
|
throw await deserializeAws_queryDBInstanceAlreadyExistsFaultResponse(parsedOutput, context);
|
|
@@ -2685,6 +2688,9 @@ const deserializeAws_queryCreateDBInstanceReadReplicaCommandError = async (outpu
|
|
|
2685
2688
|
case "InsufficientDBInstanceCapacity":
|
|
2686
2689
|
case "com.amazonaws.rds#InsufficientDBInstanceCapacityFault":
|
|
2687
2690
|
throw await deserializeAws_queryInsufficientDBInstanceCapacityFaultResponse(parsedOutput, context);
|
|
2691
|
+
case "InvalidDBClusterStateFault":
|
|
2692
|
+
case "com.amazonaws.rds#InvalidDBClusterStateFault":
|
|
2693
|
+
throw await deserializeAws_queryInvalidDBClusterStateFaultResponse(parsedOutput, context);
|
|
2688
2694
|
case "InvalidDBInstanceState":
|
|
2689
2695
|
case "com.amazonaws.rds#InvalidDBInstanceStateFault":
|
|
2690
2696
|
throw await deserializeAws_queryInvalidDBInstanceStateFaultResponse(parsedOutput, context);
|
|
@@ -9695,6 +9701,9 @@ const serializeAws_queryCreateDBInstanceReadReplicaMessage = (input, context) =>
|
|
|
9695
9701
|
if (input.AllocatedStorage != null) {
|
|
9696
9702
|
entries["AllocatedStorage"] = input.AllocatedStorage;
|
|
9697
9703
|
}
|
|
9704
|
+
if (input.SourceDBClusterIdentifier != null) {
|
|
9705
|
+
entries["SourceDBClusterIdentifier"] = input.SourceDBClusterIdentifier;
|
|
9706
|
+
}
|
|
9698
9707
|
return entries;
|
|
9699
9708
|
};
|
|
9700
9709
|
const serializeAws_queryCreateDBParameterGroupMessage = (input, context) => {
|
|
@@ -15255,6 +15264,9 @@ const deserializeAws_queryDBInstance = (output, context) => {
|
|
|
15255
15264
|
if (output["CertificateDetails"] !== undefined) {
|
|
15256
15265
|
contents.CertificateDetails = deserializeAws_queryCertificateDetails(output["CertificateDetails"], context);
|
|
15257
15266
|
}
|
|
15267
|
+
if (output["ReadReplicaSourceDBClusterIdentifier"] !== undefined) {
|
|
15268
|
+
contents.ReadReplicaSourceDBClusterIdentifier = __expectString(output["ReadReplicaSourceDBClusterIdentifier"]);
|
|
15269
|
+
}
|
|
15258
15270
|
return contents;
|
|
15259
15271
|
};
|
|
15260
15272
|
const deserializeAws_queryDBInstanceAlreadyExistsFault = (output, context) => {
|
package/dist-types/RDS.d.ts
CHANGED
|
@@ -396,13 +396,14 @@ export declare class RDS extends RDSClient {
|
|
|
396
396
|
* request creates a writer and two reader DB instances for you, each in a different
|
|
397
397
|
* Availability Zone.</p>
|
|
398
398
|
* <p>You can use the <code>ReplicationSourceIdentifier</code> parameter to create an Amazon
|
|
399
|
-
* Aurora DB cluster as a read replica of another DB cluster or Amazon RDS MySQL or
|
|
399
|
+
* Aurora DB cluster as a read replica of another DB cluster or Amazon RDS for MySQL or
|
|
400
400
|
* PostgreSQL DB instance. For more information about Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html">What is Amazon Aurora?</a> in the <i>Amazon Aurora User
|
|
401
|
-
*
|
|
401
|
+
* Guide</i>.</p>
|
|
402
402
|
* <p>You can also use the <code>ReplicationSourceIdentifier</code> parameter to create a
|
|
403
|
-
* Multi-AZ DB cluster read replica with an RDS for PostgreSQL DB instance as the
|
|
404
|
-
* For more information about Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html">Multi-AZ DB
|
|
405
|
-
*
|
|
403
|
+
* Multi-AZ DB cluster read replica with an RDS for MySQL or PostgreSQL DB instance as the
|
|
404
|
+
* source. For more information about Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html">Multi-AZ DB
|
|
405
|
+
* cluster deployments</a> in the <i>Amazon RDS User
|
|
406
|
+
* Guide</i>.</p>
|
|
406
407
|
*/
|
|
407
408
|
createDBCluster(args: CreateDBClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateDBClusterCommandOutput>;
|
|
408
409
|
createDBCluster(args: CreateDBClusterCommandInput, cb: (err: any, data?: CreateDBClusterCommandOutput) => void): void;
|
|
@@ -483,16 +484,17 @@ export declare class RDS extends RDSClient {
|
|
|
483
484
|
/**
|
|
484
485
|
* @public
|
|
485
486
|
* <p>Creates a new DB instance that acts as a read replica for an existing source DB
|
|
486
|
-
* instance. You can create a read replica for a DB instance running
|
|
487
|
-
* Oracle, PostgreSQL, or SQL Server.
|
|
488
|
-
*
|
|
487
|
+
* instance or Multi-AZ DB cluster. You can create a read replica for a DB instance running
|
|
488
|
+
* MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server. You can create a read replica for a
|
|
489
|
+
* Multi-AZ DB cluster running MySQL or PostgreSQL. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html">Working
|
|
490
|
+
* with read replicas</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html#multi-az-db-clusters-migrating-to-instance-with-read-replica">Migrating from a Multi-AZ DB cluster to a DB instance using a read replica</a> in the <i>Amazon RDS User Guide</i>.</p>
|
|
489
491
|
* <p>Amazon Aurora doesn't support this operation. Call the <code>CreateDBInstance</code>
|
|
490
492
|
* operation to create a DB instance for an Aurora DB cluster.</p>
|
|
491
|
-
* <p>All read replica DB instances are created with backups disabled. All other
|
|
492
|
-
*
|
|
493
|
-
*
|
|
493
|
+
* <p>All read replica DB instances are created with backups disabled. All other attributes
|
|
494
|
+
* (including DB security groups and DB parameter groups) are inherited from the source DB
|
|
495
|
+
* instance or cluster, except as specified.</p>
|
|
494
496
|
* <important>
|
|
495
|
-
* <p>Your source DB instance must have backup retention enabled.</p>
|
|
497
|
+
* <p>Your source DB instance or cluster must have backup retention enabled.</p>
|
|
496
498
|
* </important>
|
|
497
499
|
*/
|
|
498
500
|
createDBInstanceReadReplica(args: CreateDBInstanceReadReplicaCommandInput, options?: __HttpHandlerOptions): Promise<CreateDBInstanceReadReplicaCommandOutput>;
|
|
@@ -671,6 +673,8 @@ export declare class RDS extends RDSClient {
|
|
|
671
673
|
* <p>The DeleteDBCluster action deletes a previously provisioned DB cluster.
|
|
672
674
|
* When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered.
|
|
673
675
|
* Manual DB cluster snapshots of the specified DB cluster are not deleted.</p>
|
|
676
|
+
* <p>If you're deleting a Multi-AZ DB cluster with read replicas, all cluster members are
|
|
677
|
+
* terminated and read replicas are promoted to standalone instances.</p>
|
|
674
678
|
* <p>For more information on Amazon Aurora, see
|
|
675
679
|
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html">
|
|
676
680
|
* What is Amazon Aurora?</a> in the <i>Amazon Aurora User Guide</i>.</p>
|
|
@@ -25,13 +25,14 @@ export interface CreateDBClusterCommandOutput extends CreateDBClusterResult, __M
|
|
|
25
25
|
* request creates a writer and two reader DB instances for you, each in a different
|
|
26
26
|
* Availability Zone.</p>
|
|
27
27
|
* <p>You can use the <code>ReplicationSourceIdentifier</code> parameter to create an Amazon
|
|
28
|
-
* Aurora DB cluster as a read replica of another DB cluster or Amazon RDS MySQL or
|
|
28
|
+
* Aurora DB cluster as a read replica of another DB cluster or Amazon RDS for MySQL or
|
|
29
29
|
* PostgreSQL DB instance. For more information about Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html">What is Amazon Aurora?</a> in the <i>Amazon Aurora User
|
|
30
|
-
*
|
|
30
|
+
* Guide</i>.</p>
|
|
31
31
|
* <p>You can also use the <code>ReplicationSourceIdentifier</code> parameter to create a
|
|
32
|
-
* Multi-AZ DB cluster read replica with an RDS for PostgreSQL DB instance as the
|
|
33
|
-
* For more information about Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html">Multi-AZ DB
|
|
34
|
-
*
|
|
32
|
+
* Multi-AZ DB cluster read replica with an RDS for MySQL or PostgreSQL DB instance as the
|
|
33
|
+
* source. For more information about Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html">Multi-AZ DB
|
|
34
|
+
* cluster deployments</a> in the <i>Amazon RDS User
|
|
35
|
+
* Guide</i>.</p>
|
|
35
36
|
* @example
|
|
36
37
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
38
|
* ```javascript
|
|
@@ -20,16 +20,17 @@ export interface CreateDBInstanceReadReplicaCommandOutput extends CreateDBInstan
|
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
22
|
* <p>Creates a new DB instance that acts as a read replica for an existing source DB
|
|
23
|
-
* instance. You can create a read replica for a DB instance running
|
|
24
|
-
* Oracle, PostgreSQL, or SQL Server.
|
|
25
|
-
*
|
|
23
|
+
* instance or Multi-AZ DB cluster. You can create a read replica for a DB instance running
|
|
24
|
+
* MySQL, MariaDB, Oracle, PostgreSQL, or SQL Server. You can create a read replica for a
|
|
25
|
+
* Multi-AZ DB cluster running MySQL or PostgreSQL. For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html">Working
|
|
26
|
+
* with read replicas</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html#multi-az-db-clusters-migrating-to-instance-with-read-replica">Migrating from a Multi-AZ DB cluster to a DB instance using a read replica</a> in the <i>Amazon RDS User Guide</i>.</p>
|
|
26
27
|
* <p>Amazon Aurora doesn't support this operation. Call the <code>CreateDBInstance</code>
|
|
27
28
|
* operation to create a DB instance for an Aurora DB cluster.</p>
|
|
28
|
-
* <p>All read replica DB instances are created with backups disabled. All other
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* <p>All read replica DB instances are created with backups disabled. All other attributes
|
|
30
|
+
* (including DB security groups and DB parameter groups) are inherited from the source DB
|
|
31
|
+
* instance or cluster, except as specified.</p>
|
|
31
32
|
* <important>
|
|
32
|
-
* <p>Your source DB instance must have backup retention enabled.</p>
|
|
33
|
+
* <p>Your source DB instance or cluster must have backup retention enabled.</p>
|
|
33
34
|
* </important>
|
|
34
35
|
* @example
|
|
35
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -39,7 +40,7 @@ export interface CreateDBInstanceReadReplicaCommandOutput extends CreateDBInstan
|
|
|
39
40
|
* const client = new RDSClient(config);
|
|
40
41
|
* const input = { // CreateDBInstanceReadReplicaMessage
|
|
41
42
|
* DBInstanceIdentifier: "STRING_VALUE", // required
|
|
42
|
-
* SourceDBInstanceIdentifier: "STRING_VALUE",
|
|
43
|
+
* SourceDBInstanceIdentifier: "STRING_VALUE",
|
|
43
44
|
* DBInstanceClass: "STRING_VALUE",
|
|
44
45
|
* AvailabilityZone: "STRING_VALUE",
|
|
45
46
|
* Port: Number("int"),
|
|
@@ -89,6 +90,7 @@ export interface CreateDBInstanceReadReplicaCommandOutput extends CreateDBInstan
|
|
|
89
90
|
* StorageThroughput: Number("int"),
|
|
90
91
|
* EnableCustomerOwnedIp: true || false,
|
|
91
92
|
* AllocatedStorage: Number("int"),
|
|
93
|
+
* SourceDBClusterIdentifier: "STRING_VALUE",
|
|
92
94
|
* };
|
|
93
95
|
* const command = new CreateDBInstanceReadReplicaCommand(input);
|
|
94
96
|
* const response = await client.send(command);
|
|
@@ -100,6 +102,10 @@ export interface CreateDBInstanceReadReplicaCommandOutput extends CreateDBInstan
|
|
|
100
102
|
* @see {@link CreateDBInstanceReadReplicaCommandOutput} for command's `response` shape.
|
|
101
103
|
* @see {@link RDSClientResolvedConfig | config} for RDSClient's `config` shape.
|
|
102
104
|
*
|
|
105
|
+
* @throws {@link DBClusterNotFoundFault} (client fault)
|
|
106
|
+
* <p>
|
|
107
|
+
* <code>DBClusterIdentifier</code> doesn't refer to an existing DB cluster.</p>
|
|
108
|
+
*
|
|
103
109
|
* @throws {@link DBInstanceAlreadyExistsFault} (client fault)
|
|
104
110
|
* <p>The user already has a DB instance with the given identifier.</p>
|
|
105
111
|
*
|
|
@@ -139,6 +145,9 @@ export interface CreateDBInstanceReadReplicaCommandOutput extends CreateDBInstan
|
|
|
139
145
|
* <p>The specified DB instance class isn't available in the specified Availability
|
|
140
146
|
* Zone.</p>
|
|
141
147
|
*
|
|
148
|
+
* @throws {@link InvalidDBClusterStateFault} (client fault)
|
|
149
|
+
* <p>The requested operation can't be performed while the cluster is in this state.</p>
|
|
150
|
+
*
|
|
142
151
|
* @throws {@link InvalidDBInstanceStateFault} (client fault)
|
|
143
152
|
* <p>The DB instance isn't in a valid state.</p>
|
|
144
153
|
*
|
|
@@ -22,6 +22,8 @@ export interface DeleteDBClusterCommandOutput extends DeleteDBClusterResult, __M
|
|
|
22
22
|
* <p>The DeleteDBCluster action deletes a previously provisioned DB cluster.
|
|
23
23
|
* When you delete a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered.
|
|
24
24
|
* Manual DB cluster snapshots of the specified DB cluster are not deleted.</p>
|
|
25
|
+
* <p>If you're deleting a Multi-AZ DB cluster with read replicas, all cluster members are
|
|
26
|
+
* terminated and read replicas are promoted to standalone instances.</p>
|
|
25
27
|
* <p>For more information on Amazon Aurora, see
|
|
26
28
|
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html">
|
|
27
29
|
* What is Amazon Aurora?</a> in the <i>Amazon Aurora User Guide</i>.</p>
|