@aws-sdk/client-rds 3.391.0 → 3.396.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/README.md +8 -0
- package/dist-cjs/RDS.js +2 -0
- package/dist-cjs/RDSClient.js +4 -2
- package/dist-cjs/clientConfiguration.js +2 -0
- package/dist-cjs/commands/SwitchoverGlobalClusterCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +5 -1
- package/dist-cjs/protocols/Aws_query.js +86 -4
- package/dist-cjs/runtimeConfig.shared.js +1 -0
- package/dist-cjs/runtimeExtensions.js +16 -0
- package/dist-es/RDS.js +2 -0
- package/dist-es/RDSClient.js +4 -2
- package/dist-es/clientConfiguration.js +1 -0
- package/dist-es/commands/SwitchoverGlobalClusterCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +4 -0
- package/dist-es/protocols/Aws_query.js +80 -0
- package/dist-es/runtimeConfig.shared.js +1 -0
- package/dist-es/runtimeExtensions.js +12 -0
- package/dist-types/RDS.d.ts +7 -0
- package/dist-types/RDSClient.d.ts +9 -3
- package/dist-types/clientConfiguration.d.ts +6 -0
- package/dist-types/commands/CreateGlobalClusterCommand.d.ts +2 -0
- package/dist-types/commands/DeleteGlobalClusterCommand.d.ts +2 -0
- package/dist-types/commands/DescribeDBEngineVersionsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeGlobalClustersCommand.d.ts +2 -0
- package/dist-types/commands/FailoverGlobalClusterCommand.d.ts +38 -11
- package/dist-types/commands/ModifyGlobalClusterCommand.d.ts +3 -1
- package/dist-types/commands/RemoveFromGlobalClusterCommand.d.ts +2 -0
- package/dist-types/commands/SwitchoverGlobalClusterCommand.d.ts +124 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +46 -245
- package/dist-types/models/models_1.d.ts +286 -8
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/RDS.d.ts +17 -0
- package/dist-types/ts3.4/RDSClient.d.ts +9 -0
- package/dist-types/ts3.4/clientConfiguration.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeDBEngineVersionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SwitchoverGlobalClusterCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -12
- package/dist-types/ts3.4/models/models_1.d.ts +21 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +3 -3
|
@@ -1,6 +1,232 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
2
|
import { ActivityStreamMode, ActivityStreamPolicyStatus, ActivityStreamStatus, AutomationMode, AvailabilityZone, BlueGreenDeployment, Certificate, DBCluster, DBClusterSnapshotAttributesResult, DBInstance, DBInstanceAutomatedBackup, DBParameterGroup, DBProxy, DBProxyEndpoint, DBSecurityGroup, DBSnapshot, DBSubnetGroup, EventSubscription, ExportSourceType, ExportTask, Filter, GlobalCluster, OptionGroup, OptionSetting, Parameter, ProcessorFeature, ReplicaMode, ResourcePendingMaintenanceActions, ScalingConfiguration, ServerlessV2ScalingConfiguration, Tag, UserAuthConfig } from "./models_0";
|
|
3
3
|
import { RDSServiceException as __BaseException } from "./RDSServiceException";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface DescribeDBEngineVersionsMessage {
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
* <p>The database engine to return.</p>
|
|
11
|
+
* <p>Valid Values:</p>
|
|
12
|
+
* <ul>
|
|
13
|
+
* <li>
|
|
14
|
+
* <p>
|
|
15
|
+
* <code>aurora-mysql</code>
|
|
16
|
+
* </p>
|
|
17
|
+
* </li>
|
|
18
|
+
* <li>
|
|
19
|
+
* <p>
|
|
20
|
+
* <code>aurora-postgresql</code>
|
|
21
|
+
* </p>
|
|
22
|
+
* </li>
|
|
23
|
+
* <li>
|
|
24
|
+
* <p>
|
|
25
|
+
* <code>custom-oracle-ee</code>
|
|
26
|
+
* </p>
|
|
27
|
+
* </li>
|
|
28
|
+
* <li>
|
|
29
|
+
* <p>
|
|
30
|
+
* <code>mariadb</code>
|
|
31
|
+
* </p>
|
|
32
|
+
* </li>
|
|
33
|
+
* <li>
|
|
34
|
+
* <p>
|
|
35
|
+
* <code>mysql</code>
|
|
36
|
+
* </p>
|
|
37
|
+
* </li>
|
|
38
|
+
* <li>
|
|
39
|
+
* <p>
|
|
40
|
+
* <code>oracle-ee</code>
|
|
41
|
+
* </p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>
|
|
45
|
+
* <code>oracle-ee-cdb</code>
|
|
46
|
+
* </p>
|
|
47
|
+
* </li>
|
|
48
|
+
* <li>
|
|
49
|
+
* <p>
|
|
50
|
+
* <code>oracle-se2</code>
|
|
51
|
+
* </p>
|
|
52
|
+
* </li>
|
|
53
|
+
* <li>
|
|
54
|
+
* <p>
|
|
55
|
+
* <code>oracle-se2-cdb</code>
|
|
56
|
+
* </p>
|
|
57
|
+
* </li>
|
|
58
|
+
* <li>
|
|
59
|
+
* <p>
|
|
60
|
+
* <code>postgres</code>
|
|
61
|
+
* </p>
|
|
62
|
+
* </li>
|
|
63
|
+
* <li>
|
|
64
|
+
* <p>
|
|
65
|
+
* <code>sqlserver-ee</code>
|
|
66
|
+
* </p>
|
|
67
|
+
* </li>
|
|
68
|
+
* <li>
|
|
69
|
+
* <p>
|
|
70
|
+
* <code>sqlserver-se</code>
|
|
71
|
+
* </p>
|
|
72
|
+
* </li>
|
|
73
|
+
* <li>
|
|
74
|
+
* <p>
|
|
75
|
+
* <code>sqlserver-ex</code>
|
|
76
|
+
* </p>
|
|
77
|
+
* </li>
|
|
78
|
+
* <li>
|
|
79
|
+
* <p>
|
|
80
|
+
* <code>sqlserver-web</code>
|
|
81
|
+
* </p>
|
|
82
|
+
* </li>
|
|
83
|
+
* </ul>
|
|
84
|
+
*/
|
|
85
|
+
Engine?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @public
|
|
88
|
+
* <p>The database engine version to return.</p>
|
|
89
|
+
* <p>Example: <code>5.1.49</code>
|
|
90
|
+
* </p>
|
|
91
|
+
*/
|
|
92
|
+
EngineVersion?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @public
|
|
95
|
+
* <p>The name of a specific DB parameter group family to return details for.</p>
|
|
96
|
+
* <p>Constraints:</p>
|
|
97
|
+
* <ul>
|
|
98
|
+
* <li>
|
|
99
|
+
* <p>If supplied, must match an existing DBParameterGroupFamily.</p>
|
|
100
|
+
* </li>
|
|
101
|
+
* </ul>
|
|
102
|
+
*/
|
|
103
|
+
DBParameterGroupFamily?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @public
|
|
106
|
+
* <p>A filter that specifies one or more DB engine versions to describe.</p>
|
|
107
|
+
* <p>Supported filters:</p>
|
|
108
|
+
* <ul>
|
|
109
|
+
* <li>
|
|
110
|
+
* <p>
|
|
111
|
+
* <code>db-parameter-group-family</code> - Accepts parameter groups family names.
|
|
112
|
+
* The results list only includes information about
|
|
113
|
+
* the DB engine versions for these parameter group families.</p>
|
|
114
|
+
* </li>
|
|
115
|
+
* <li>
|
|
116
|
+
* <p>
|
|
117
|
+
* <code>engine</code> - Accepts engine names.
|
|
118
|
+
* The results list only includes information about
|
|
119
|
+
* the DB engine versions for these engines.</p>
|
|
120
|
+
* </li>
|
|
121
|
+
* <li>
|
|
122
|
+
* <p>
|
|
123
|
+
* <code>engine-mode</code> - Accepts DB engine modes.
|
|
124
|
+
* The results list only includes information about
|
|
125
|
+
* the DB engine versions for these engine modes. Valid
|
|
126
|
+
* DB engine modes are the following:</p>
|
|
127
|
+
* <ul>
|
|
128
|
+
* <li>
|
|
129
|
+
* <p>
|
|
130
|
+
* <code>global</code>
|
|
131
|
+
* </p>
|
|
132
|
+
* </li>
|
|
133
|
+
* <li>
|
|
134
|
+
* <p>
|
|
135
|
+
* <code>multimaster</code>
|
|
136
|
+
* </p>
|
|
137
|
+
* </li>
|
|
138
|
+
* <li>
|
|
139
|
+
* <p>
|
|
140
|
+
* <code>parallelquery</code>
|
|
141
|
+
* </p>
|
|
142
|
+
* </li>
|
|
143
|
+
* <li>
|
|
144
|
+
* <p>
|
|
145
|
+
* <code>provisioned</code>
|
|
146
|
+
* </p>
|
|
147
|
+
* </li>
|
|
148
|
+
* <li>
|
|
149
|
+
* <p>
|
|
150
|
+
* <code>serverless</code>
|
|
151
|
+
* </p>
|
|
152
|
+
* </li>
|
|
153
|
+
* </ul>
|
|
154
|
+
* </li>
|
|
155
|
+
* <li>
|
|
156
|
+
* <p>
|
|
157
|
+
* <code>engine-version</code> - Accepts engine versions.
|
|
158
|
+
* The results list only includes information about
|
|
159
|
+
* the DB engine versions for these engine versions.</p>
|
|
160
|
+
* </li>
|
|
161
|
+
* <li>
|
|
162
|
+
* <p>
|
|
163
|
+
* <code>status</code> - Accepts engine version statuses.
|
|
164
|
+
* The results list only includes information about
|
|
165
|
+
* the DB engine versions for these statuses. Valid statuses
|
|
166
|
+
* are the following:</p>
|
|
167
|
+
* <ul>
|
|
168
|
+
* <li>
|
|
169
|
+
* <p>
|
|
170
|
+
* <code>available</code>
|
|
171
|
+
* </p>
|
|
172
|
+
* </li>
|
|
173
|
+
* <li>
|
|
174
|
+
* <p>
|
|
175
|
+
* <code>deprecated</code>
|
|
176
|
+
* </p>
|
|
177
|
+
* </li>
|
|
178
|
+
* </ul>
|
|
179
|
+
* </li>
|
|
180
|
+
* </ul>
|
|
181
|
+
*/
|
|
182
|
+
Filters?: Filter[];
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
* <p>The maximum number of records to include in the response.
|
|
186
|
+
* If more than the <code>MaxRecords</code> value is available, a pagination token called a marker is
|
|
187
|
+
* included in the response so you can retrieve the remaining results.</p>
|
|
188
|
+
* <p>Default: 100</p>
|
|
189
|
+
* <p>Constraints: Minimum 20, maximum 100.</p>
|
|
190
|
+
*/
|
|
191
|
+
MaxRecords?: number;
|
|
192
|
+
/**
|
|
193
|
+
* @public
|
|
194
|
+
* <p>An optional pagination token provided by a previous request.
|
|
195
|
+
* If this parameter is specified, the response includes
|
|
196
|
+
* only records beyond the marker,
|
|
197
|
+
* up to the value specified by <code>MaxRecords</code>.</p>
|
|
198
|
+
*/
|
|
199
|
+
Marker?: string;
|
|
200
|
+
/**
|
|
201
|
+
* @public
|
|
202
|
+
* <p>A value that indicates whether only the default version of the specified engine or engine and major version combination is returned.</p>
|
|
203
|
+
*/
|
|
204
|
+
DefaultOnly?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* @public
|
|
207
|
+
* <p>A value that indicates whether to list the supported character sets for each engine version.</p>
|
|
208
|
+
* <p>If this parameter is enabled and the requested engine supports the <code>CharacterSetName</code> parameter for
|
|
209
|
+
* <code>CreateDBInstance</code>, the response includes a list of supported character sets for each engine
|
|
210
|
+
* version.</p>
|
|
211
|
+
* <p>For RDS Custom, the default is not to list supported character sets. If you set <code>ListSupportedCharacterSets</code>
|
|
212
|
+
* to <code>true</code>, RDS Custom returns no results.</p>
|
|
213
|
+
*/
|
|
214
|
+
ListSupportedCharacterSets?: boolean;
|
|
215
|
+
/**
|
|
216
|
+
* @public
|
|
217
|
+
* <p>A value that indicates whether to list the supported time zones for each engine version.</p>
|
|
218
|
+
* <p>If this parameter is enabled and the requested engine supports the <code>TimeZone</code> parameter for <code>CreateDBInstance</code>,
|
|
219
|
+
* the response includes a list of supported time zones for each engine version.</p>
|
|
220
|
+
* <p>For RDS Custom, the default is not to list supported time zones. If you set <code>ListSupportedTimezones</code>
|
|
221
|
+
* to <code>true</code>, RDS Custom returns no results.</p>
|
|
222
|
+
*/
|
|
223
|
+
ListSupportedTimezones?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* @public
|
|
226
|
+
* <p>A value that indicates whether to include engine versions that aren't available in the list. The default is to list only available engine versions.</p>
|
|
227
|
+
*/
|
|
228
|
+
IncludeAll?: boolean;
|
|
229
|
+
}
|
|
4
230
|
/**
|
|
5
231
|
* @public
|
|
6
232
|
* <p>Contains the result of a successful invocation of the <code>DescribeDBInstanceAutomatedBackups</code> action.</p>
|
|
@@ -3571,26 +3797,46 @@ export interface FailoverDBClusterResult {
|
|
|
3571
3797
|
export interface FailoverGlobalClusterMessage {
|
|
3572
3798
|
/**
|
|
3573
3799
|
* @public
|
|
3574
|
-
* <p>
|
|
3575
|
-
*
|
|
3576
|
-
*
|
|
3577
|
-
* it's the name of the Aurora global database that you want to fail over.</p>
|
|
3800
|
+
* <p>The identifier of the global database cluster (Aurora global database) this operation should apply to.
|
|
3801
|
+
* The identifier is the unique key assigned by the user when the Aurora global database is created. In other words,
|
|
3802
|
+
* it's the name of the Aurora global database.</p>
|
|
3578
3803
|
* <p>Constraints:</p>
|
|
3579
3804
|
* <ul>
|
|
3580
3805
|
* <li>
|
|
3581
|
-
* <p>Must match the identifier of an existing
|
|
3582
|
-
* <a>GlobalCluster</a> (Aurora global database).</p>
|
|
3806
|
+
* <p>Must match the identifier of an existing global database cluster.</p>
|
|
3583
3807
|
* </li>
|
|
3584
3808
|
* </ul>
|
|
3585
3809
|
*/
|
|
3586
3810
|
GlobalClusterIdentifier: string | undefined;
|
|
3587
3811
|
/**
|
|
3588
3812
|
* @public
|
|
3589
|
-
* <p>
|
|
3590
|
-
* global database (<a>GlobalCluster</a>.) Use the Amazon Resource Name (ARN) for the identifier so that
|
|
3813
|
+
* <p>The identifier of the secondary Aurora DB cluster that you want to promote to the primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that
|
|
3591
3814
|
* Aurora can locate the cluster in its Amazon Web Services Region.</p>
|
|
3592
3815
|
*/
|
|
3593
3816
|
TargetDbClusterIdentifier: string | undefined;
|
|
3817
|
+
/**
|
|
3818
|
+
* @public
|
|
3819
|
+
* <p>Specifies whether to allow data loss for this global database cluster operation. Allowing data loss triggers a global failover operation.</p>
|
|
3820
|
+
* <p>If you don't specify <code>AllowDataLoss</code>, the global database cluster operation defaults to a switchover.</p>
|
|
3821
|
+
* <p>Constraints:</p>
|
|
3822
|
+
* <ul>
|
|
3823
|
+
* <li>
|
|
3824
|
+
* <p>Can't be specified together with the <code>Switchover</code> parameter.</p>
|
|
3825
|
+
* </li>
|
|
3826
|
+
* </ul>
|
|
3827
|
+
*/
|
|
3828
|
+
AllowDataLoss?: boolean;
|
|
3829
|
+
/**
|
|
3830
|
+
* @public
|
|
3831
|
+
* <p>Specifies whether to switch over this global database cluster.</p>
|
|
3832
|
+
* <p>Constraints:</p>
|
|
3833
|
+
* <ul>
|
|
3834
|
+
* <li>
|
|
3835
|
+
* <p>Can't be specified together with the <code>AllowDataLoss</code> parameter.</p>
|
|
3836
|
+
* </li>
|
|
3837
|
+
* </ul>
|
|
3838
|
+
*/
|
|
3839
|
+
Switchover?: boolean;
|
|
3594
3840
|
}
|
|
3595
3841
|
/**
|
|
3596
3842
|
* @public
|
|
@@ -10274,6 +10520,38 @@ export interface SwitchoverBlueGreenDeploymentResponse {
|
|
|
10274
10520
|
*/
|
|
10275
10521
|
BlueGreenDeployment?: BlueGreenDeployment;
|
|
10276
10522
|
}
|
|
10523
|
+
/**
|
|
10524
|
+
* @public
|
|
10525
|
+
*/
|
|
10526
|
+
export interface SwitchoverGlobalClusterMessage {
|
|
10527
|
+
/**
|
|
10528
|
+
* @public
|
|
10529
|
+
* <p>The identifier of the global database cluster to switch over. This parameter isn't case-sensitive.</p>
|
|
10530
|
+
* <p>Constraints:</p>
|
|
10531
|
+
* <ul>
|
|
10532
|
+
* <li>
|
|
10533
|
+
* <p>Must match the identifier of an existing global database cluster (Aurora global database).</p>
|
|
10534
|
+
* </li>
|
|
10535
|
+
* </ul>
|
|
10536
|
+
*/
|
|
10537
|
+
GlobalClusterIdentifier: string | undefined;
|
|
10538
|
+
/**
|
|
10539
|
+
* @public
|
|
10540
|
+
* <p>The identifier of the secondary Aurora DB cluster to promote to the new primary for the global database cluster. Use the Amazon Resource Name (ARN) for the identifier so that
|
|
10541
|
+
* Aurora can locate the cluster in its Amazon Web Services Region.</p>
|
|
10542
|
+
*/
|
|
10543
|
+
TargetDbClusterIdentifier: string | undefined;
|
|
10544
|
+
}
|
|
10545
|
+
/**
|
|
10546
|
+
* @public
|
|
10547
|
+
*/
|
|
10548
|
+
export interface SwitchoverGlobalClusterResult {
|
|
10549
|
+
/**
|
|
10550
|
+
* @public
|
|
10551
|
+
* <p>A data type representing an Aurora global database.</p>
|
|
10552
|
+
*/
|
|
10553
|
+
GlobalCluster?: GlobalCluster;
|
|
10554
|
+
}
|
|
10277
10555
|
/**
|
|
10278
10556
|
* @public
|
|
10279
10557
|
*/
|
|
@@ -142,6 +142,7 @@ import { StopDBClusterCommandInput, StopDBClusterCommandOutput } from "../comman
|
|
|
142
142
|
import { StopDBInstanceAutomatedBackupsReplicationCommandInput, StopDBInstanceAutomatedBackupsReplicationCommandOutput } from "../commands/StopDBInstanceAutomatedBackupsReplicationCommand";
|
|
143
143
|
import { StopDBInstanceCommandInput, StopDBInstanceCommandOutput } from "../commands/StopDBInstanceCommand";
|
|
144
144
|
import { SwitchoverBlueGreenDeploymentCommandInput, SwitchoverBlueGreenDeploymentCommandOutput } from "../commands/SwitchoverBlueGreenDeploymentCommand";
|
|
145
|
+
import { SwitchoverGlobalClusterCommandInput, SwitchoverGlobalClusterCommandOutput } from "../commands/SwitchoverGlobalClusterCommand";
|
|
145
146
|
import { SwitchoverReadReplicaCommandInput, SwitchoverReadReplicaCommandOutput } from "../commands/SwitchoverReadReplicaCommand";
|
|
146
147
|
/**
|
|
147
148
|
* serializeAws_queryAddRoleToDBClusterCommand
|
|
@@ -711,6 +712,10 @@ export declare const se_StopDBInstanceAutomatedBackupsReplicationCommand: (input
|
|
|
711
712
|
* serializeAws_querySwitchoverBlueGreenDeploymentCommand
|
|
712
713
|
*/
|
|
713
714
|
export declare const se_SwitchoverBlueGreenDeploymentCommand: (input: SwitchoverBlueGreenDeploymentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
715
|
+
/**
|
|
716
|
+
* serializeAws_querySwitchoverGlobalClusterCommand
|
|
717
|
+
*/
|
|
718
|
+
export declare const se_SwitchoverGlobalClusterCommand: (input: SwitchoverGlobalClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
714
719
|
/**
|
|
715
720
|
* serializeAws_querySwitchoverReadReplicaCommand
|
|
716
721
|
*/
|
|
@@ -1283,6 +1288,10 @@ export declare const de_StopDBInstanceAutomatedBackupsReplicationCommand: (outpu
|
|
|
1283
1288
|
* deserializeAws_querySwitchoverBlueGreenDeploymentCommand
|
|
1284
1289
|
*/
|
|
1285
1290
|
export declare const de_SwitchoverBlueGreenDeploymentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SwitchoverBlueGreenDeploymentCommandOutput>;
|
|
1291
|
+
/**
|
|
1292
|
+
* deserializeAws_querySwitchoverGlobalClusterCommand
|
|
1293
|
+
*/
|
|
1294
|
+
export declare const de_SwitchoverGlobalClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SwitchoverGlobalClusterCommandOutput>;
|
|
1286
1295
|
/**
|
|
1287
1296
|
* deserializeAws_querySwitchoverReadReplicaCommand
|
|
1288
1297
|
*/
|
|
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: RDSClientConfig) => {
|
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
30
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
30
31
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
32
|
logger?: import("@smithy/types").Logger | undefined;
|
|
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: RDSClientConfig) => {
|
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
30
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
30
31
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
32
|
logger?: import("@smithy/types").Logger | undefined;
|
|
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: RDSClientConfig) => {
|
|
|
24
24
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
25
25
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
logger: import("@smithy/types").Logger;
|
|
27
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
27
28
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
29
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: RDSClientConfig) => {
|
|
|
10
10
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
11
11
|
logger?: import("@smithy/types").Logger | undefined;
|
|
12
12
|
}) => import("@smithy/types").EndpointV2;
|
|
13
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
13
14
|
logger: import("@smithy/types").Logger;
|
|
14
15
|
serviceId: string;
|
|
15
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RDSClientConfiguration } from "./clientConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configureClient(clientConfiguration: RDSClientConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -567,6 +567,10 @@ import {
|
|
|
567
567
|
SwitchoverBlueGreenDeploymentCommandInput,
|
|
568
568
|
SwitchoverBlueGreenDeploymentCommandOutput,
|
|
569
569
|
} from "./commands/SwitchoverBlueGreenDeploymentCommand";
|
|
570
|
+
import {
|
|
571
|
+
SwitchoverGlobalClusterCommandInput,
|
|
572
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
573
|
+
} from "./commands/SwitchoverGlobalClusterCommand";
|
|
570
574
|
import {
|
|
571
575
|
SwitchoverReadReplicaCommandInput,
|
|
572
576
|
SwitchoverReadReplicaCommandOutput,
|
|
@@ -2497,6 +2501,19 @@ export interface RDS {
|
|
|
2497
2501
|
options: __HttpHandlerOptions,
|
|
2498
2502
|
cb: (err: any, data?: SwitchoverBlueGreenDeploymentCommandOutput) => void
|
|
2499
2503
|
): void;
|
|
2504
|
+
switchoverGlobalCluster(
|
|
2505
|
+
args: SwitchoverGlobalClusterCommandInput,
|
|
2506
|
+
options?: __HttpHandlerOptions
|
|
2507
|
+
): Promise<SwitchoverGlobalClusterCommandOutput>;
|
|
2508
|
+
switchoverGlobalCluster(
|
|
2509
|
+
args: SwitchoverGlobalClusterCommandInput,
|
|
2510
|
+
cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void
|
|
2511
|
+
): void;
|
|
2512
|
+
switchoverGlobalCluster(
|
|
2513
|
+
args: SwitchoverGlobalClusterCommandInput,
|
|
2514
|
+
options: __HttpHandlerOptions,
|
|
2515
|
+
cb: (err: any, data?: SwitchoverGlobalClusterCommandOutput) => void
|
|
2516
|
+
): void;
|
|
2500
2517
|
switchoverReadReplica(
|
|
2501
2518
|
args: SwitchoverReadReplicaCommandInput,
|
|
2502
2519
|
options?: __HttpHandlerOptions
|
|
@@ -613,6 +613,10 @@ import {
|
|
|
613
613
|
SwitchoverBlueGreenDeploymentCommandInput,
|
|
614
614
|
SwitchoverBlueGreenDeploymentCommandOutput,
|
|
615
615
|
} from "./commands/SwitchoverBlueGreenDeploymentCommand";
|
|
616
|
+
import {
|
|
617
|
+
SwitchoverGlobalClusterCommandInput,
|
|
618
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
619
|
+
} from "./commands/SwitchoverGlobalClusterCommand";
|
|
616
620
|
import {
|
|
617
621
|
SwitchoverReadReplicaCommandInput,
|
|
618
622
|
SwitchoverReadReplicaCommandOutput,
|
|
@@ -622,6 +626,7 @@ import {
|
|
|
622
626
|
ClientResolvedEndpointParameters,
|
|
623
627
|
EndpointParameters,
|
|
624
628
|
} from "./endpoint/EndpointParameters";
|
|
629
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
625
630
|
export { __Client };
|
|
626
631
|
export type ServiceInputTypes =
|
|
627
632
|
| AddRoleToDBClusterCommandInput
|
|
@@ -766,6 +771,7 @@ export type ServiceInputTypes =
|
|
|
766
771
|
| StopDBInstanceAutomatedBackupsReplicationCommandInput
|
|
767
772
|
| StopDBInstanceCommandInput
|
|
768
773
|
| SwitchoverBlueGreenDeploymentCommandInput
|
|
774
|
+
| SwitchoverGlobalClusterCommandInput
|
|
769
775
|
| SwitchoverReadReplicaCommandInput;
|
|
770
776
|
export type ServiceOutputTypes =
|
|
771
777
|
| AddRoleToDBClusterCommandOutput
|
|
@@ -910,6 +916,7 @@ export type ServiceOutputTypes =
|
|
|
910
916
|
| StopDBInstanceAutomatedBackupsReplicationCommandOutput
|
|
911
917
|
| StopDBInstanceCommandOutput
|
|
912
918
|
| SwitchoverBlueGreenDeploymentCommandOutput
|
|
919
|
+
| SwitchoverGlobalClusterCommandOutput
|
|
913
920
|
| SwitchoverReadReplicaCommandOutput;
|
|
914
921
|
export interface ClientDefaults
|
|
915
922
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
@@ -933,6 +940,7 @@ export interface ClientDefaults
|
|
|
933
940
|
maxAttempts?: number | __Provider<number>;
|
|
934
941
|
retryMode?: string | __Provider<string>;
|
|
935
942
|
logger?: __Logger;
|
|
943
|
+
extensions?: RuntimeExtension[];
|
|
936
944
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
937
945
|
}
|
|
938
946
|
export type RDSClientConfigType = Partial<
|
|
@@ -950,6 +958,7 @@ export interface RDSClientConfig extends RDSClientConfigType {}
|
|
|
950
958
|
export type RDSClientResolvedConfigType =
|
|
951
959
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
952
960
|
Required<ClientDefaults> &
|
|
961
|
+
RuntimeExtensionsConfig &
|
|
953
962
|
RegionResolvedConfig &
|
|
954
963
|
EndpointResolvedConfig<EndpointParameters> &
|
|
955
964
|
RetryResolvedConfig &
|
|
@@ -6,10 +6,8 @@ import {
|
|
|
6
6
|
MetadataBearer as __MetadataBearer,
|
|
7
7
|
MiddlewareStack,
|
|
8
8
|
} from "@smithy/types";
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
DescribeDBEngineVersionsMessage,
|
|
12
|
-
} from "../models/models_0";
|
|
9
|
+
import { DBEngineVersionMessage } from "../models/models_0";
|
|
10
|
+
import { DescribeDBEngineVersionsMessage } from "../models/models_1";
|
|
13
11
|
import {
|
|
14
12
|
RDSClientResolvedConfig,
|
|
15
13
|
ServiceInputTypes,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
SwitchoverGlobalClusterMessage,
|
|
11
|
+
SwitchoverGlobalClusterResult,
|
|
12
|
+
} from "../models/models_1";
|
|
13
|
+
import {
|
|
14
|
+
RDSClientResolvedConfig,
|
|
15
|
+
ServiceInputTypes,
|
|
16
|
+
ServiceOutputTypes,
|
|
17
|
+
} from "../RDSClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface SwitchoverGlobalClusterCommandInput
|
|
20
|
+
extends SwitchoverGlobalClusterMessage {}
|
|
21
|
+
export interface SwitchoverGlobalClusterCommandOutput
|
|
22
|
+
extends SwitchoverGlobalClusterResult,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class SwitchoverGlobalClusterCommand extends $Command<
|
|
25
|
+
SwitchoverGlobalClusterCommandInput,
|
|
26
|
+
SwitchoverGlobalClusterCommandOutput,
|
|
27
|
+
RDSClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: SwitchoverGlobalClusterCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: SwitchoverGlobalClusterCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: RDSClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
SwitchoverGlobalClusterCommandInput,
|
|
38
|
+
SwitchoverGlobalClusterCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -140,4 +140,5 @@ export * from "./StopDBClusterCommand";
|
|
|
140
140
|
export * from "./StopDBInstanceAutomatedBackupsReplicationCommand";
|
|
141
141
|
export * from "./StopDBInstanceCommand";
|
|
142
142
|
export * from "./SwitchoverBlueGreenDeploymentCommand";
|
|
143
|
+
export * from "./SwitchoverGlobalClusterCommand";
|
|
143
144
|
export * from "./SwitchoverReadReplicaCommand";
|
|
@@ -1857,12 +1857,20 @@ export interface FailoverState {
|
|
|
1857
1857
|
Status?: FailoverStatus | string;
|
|
1858
1858
|
FromDbClusterArn?: string;
|
|
1859
1859
|
ToDbClusterArn?: string;
|
|
1860
|
+
IsDataLossAllowed?: boolean;
|
|
1860
1861
|
}
|
|
1862
|
+
export declare const GlobalClusterMemberSynchronizationStatus: {
|
|
1863
|
+
readonly CONNECTED: "connected";
|
|
1864
|
+
readonly PENDING_RESYNC: "pending-resync";
|
|
1865
|
+
};
|
|
1866
|
+
export type GlobalClusterMemberSynchronizationStatus =
|
|
1867
|
+
(typeof GlobalClusterMemberSynchronizationStatus)[keyof typeof GlobalClusterMemberSynchronizationStatus];
|
|
1861
1868
|
export interface GlobalClusterMember {
|
|
1862
1869
|
DBClusterArn?: string;
|
|
1863
1870
|
Readers?: string[];
|
|
1864
1871
|
IsWriter?: boolean;
|
|
1865
1872
|
GlobalWriteForwardingStatus?: WriteForwardingStatus | string;
|
|
1873
|
+
SynchronizationStatus?: GlobalClusterMemberSynchronizationStatus | string;
|
|
1866
1874
|
}
|
|
1867
1875
|
export interface GlobalCluster {
|
|
1868
1876
|
GlobalClusterIdentifier?: string;
|
|
@@ -2398,15 +2406,3 @@ export interface DBEngineVersionMessage {
|
|
|
2398
2406
|
Marker?: string;
|
|
2399
2407
|
DBEngineVersions?: DBEngineVersion[];
|
|
2400
2408
|
}
|
|
2401
|
-
export interface DescribeDBEngineVersionsMessage {
|
|
2402
|
-
Engine?: string;
|
|
2403
|
-
EngineVersion?: string;
|
|
2404
|
-
DBParameterGroupFamily?: string;
|
|
2405
|
-
Filters?: Filter[];
|
|
2406
|
-
MaxRecords?: number;
|
|
2407
|
-
Marker?: string;
|
|
2408
|
-
DefaultOnly?: boolean;
|
|
2409
|
-
ListSupportedCharacterSets?: boolean;
|
|
2410
|
-
ListSupportedTimezones?: boolean;
|
|
2411
|
-
IncludeAll?: boolean;
|
|
2412
|
-
}
|
|
@@ -34,6 +34,18 @@ import {
|
|
|
34
34
|
UserAuthConfig,
|
|
35
35
|
} from "./models_0";
|
|
36
36
|
import { RDSServiceException as __BaseException } from "./RDSServiceException";
|
|
37
|
+
export interface DescribeDBEngineVersionsMessage {
|
|
38
|
+
Engine?: string;
|
|
39
|
+
EngineVersion?: string;
|
|
40
|
+
DBParameterGroupFamily?: string;
|
|
41
|
+
Filters?: Filter[];
|
|
42
|
+
MaxRecords?: number;
|
|
43
|
+
Marker?: string;
|
|
44
|
+
DefaultOnly?: boolean;
|
|
45
|
+
ListSupportedCharacterSets?: boolean;
|
|
46
|
+
ListSupportedTimezones?: boolean;
|
|
47
|
+
IncludeAll?: boolean;
|
|
48
|
+
}
|
|
37
49
|
export interface DBInstanceAutomatedBackupMessage {
|
|
38
50
|
Marker?: string;
|
|
39
51
|
DBInstanceAutomatedBackups?: DBInstanceAutomatedBackup[];
|
|
@@ -632,6 +644,8 @@ export interface FailoverDBClusterResult {
|
|
|
632
644
|
export interface FailoverGlobalClusterMessage {
|
|
633
645
|
GlobalClusterIdentifier: string | undefined;
|
|
634
646
|
TargetDbClusterIdentifier: string | undefined;
|
|
647
|
+
AllowDataLoss?: boolean;
|
|
648
|
+
Switchover?: boolean;
|
|
635
649
|
}
|
|
636
650
|
export interface FailoverGlobalClusterResult {
|
|
637
651
|
GlobalCluster?: GlobalCluster;
|
|
@@ -1523,6 +1537,13 @@ export interface SwitchoverBlueGreenDeploymentRequest {
|
|
|
1523
1537
|
export interface SwitchoverBlueGreenDeploymentResponse {
|
|
1524
1538
|
BlueGreenDeployment?: BlueGreenDeployment;
|
|
1525
1539
|
}
|
|
1540
|
+
export interface SwitchoverGlobalClusterMessage {
|
|
1541
|
+
GlobalClusterIdentifier: string | undefined;
|
|
1542
|
+
TargetDbClusterIdentifier: string | undefined;
|
|
1543
|
+
}
|
|
1544
|
+
export interface SwitchoverGlobalClusterResult {
|
|
1545
|
+
GlobalCluster?: GlobalCluster;
|
|
1546
|
+
}
|
|
1526
1547
|
export interface SwitchoverReadReplicaMessage {
|
|
1527
1548
|
DBInstanceIdentifier: string | undefined;
|
|
1528
1549
|
}
|