@@ -66,6 +66,11 @@ import {
66
66
CopyOptionGroupCommandInput ,
67
67
CopyOptionGroupCommandOutput ,
68
68
} from "./commands/CopyOptionGroupCommand" ;
69
+ import {
70
+ CreateBlueGreenDeploymentCommand ,
71
+ CreateBlueGreenDeploymentCommandInput ,
72
+ CreateBlueGreenDeploymentCommandOutput ,
73
+ } from "./commands/CreateBlueGreenDeploymentCommand" ;
69
74
import {
70
75
CreateCustomDBEngineVersionCommand ,
71
76
CreateCustomDBEngineVersionCommandInput ,
@@ -146,6 +151,11 @@ import {
146
151
CreateOptionGroupCommandInput ,
147
152
CreateOptionGroupCommandOutput ,
148
153
} from "./commands/CreateOptionGroupCommand" ;
154
+ import {
155
+ DeleteBlueGreenDeploymentCommand ,
156
+ DeleteBlueGreenDeploymentCommandInput ,
157
+ DeleteBlueGreenDeploymentCommandOutput ,
158
+ } from "./commands/DeleteBlueGreenDeploymentCommand" ;
149
159
import {
150
160
DeleteCustomDBEngineVersionCommand ,
151
161
DeleteCustomDBEngineVersionCommandInput ,
@@ -236,6 +246,11 @@ import {
236
246
DescribeAccountAttributesCommandInput ,
237
247
DescribeAccountAttributesCommandOutput ,
238
248
} from "./commands/DescribeAccountAttributesCommand" ;
249
+ import {
250
+ DescribeBlueGreenDeploymentsCommand ,
251
+ DescribeBlueGreenDeploymentsCommandInput ,
252
+ DescribeBlueGreenDeploymentsCommandOutput ,
253
+ } from "./commands/DescribeBlueGreenDeploymentsCommand" ;
239
254
import {
240
255
DescribeCertificatesCommand ,
241
256
DescribeCertificatesCommandInput ,
@@ -681,6 +696,11 @@ import {
681
696
StopDBInstanceCommandInput ,
682
697
StopDBInstanceCommandOutput ,
683
698
} from "./commands/StopDBInstanceCommand" ;
699
+ import {
700
+ SwitchoverBlueGreenDeploymentCommand ,
701
+ SwitchoverBlueGreenDeploymentCommandInput ,
702
+ SwitchoverBlueGreenDeploymentCommandOutput ,
703
+ } from "./commands/SwitchoverBlueGreenDeploymentCommand" ;
684
704
import {
685
705
SwitchoverReadReplicaCommand ,
686
706
SwitchoverReadReplicaCommandInput ,
@@ -1232,6 +1252,52 @@ export class RDS extends RDSClient {
1232
1252
}
1233
1253
}
1234
1254
1255
+ /**
1256
+ * <p>Creates a blue/green deployment.</p>
1257
+ * <p>A blue/green deployment creates a staging environment that copies the production environment.
1258
+ * In a blue/green deployment, the blue environment is the current production environment.
1259
+ * The green environment is the staging environment. The staging environment stays in sync
1260
+ * with the current production environment using logical replication.</p>
1261
+ * <p>You can make changes to the databases in the green environment without affecting
1262
+ * production workloads. For example, you can upgrade the major or minor DB engine version, change
1263
+ * database parameters, or make schema changes in the staging environment. You can thoroughly test
1264
+ * changes in the green environment. When ready, you can switch over the environments to promote the
1265
+ * green environment to be the new production environment. The switchover typically takes under a minute.</p>
1266
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html">Using Amazon RDS Blue/Green Deployments
1267
+ * for database updates</a> in the <i>Amazon RDS User Guide</i> and
1268
+ * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html">
1269
+ * Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora
1270
+ * User Guide</i>.</p>
1271
+ */
1272
+ public createBlueGreenDeployment (
1273
+ args : CreateBlueGreenDeploymentCommandInput ,
1274
+ options ?: __HttpHandlerOptions
1275
+ ) : Promise < CreateBlueGreenDeploymentCommandOutput > ;
1276
+ public createBlueGreenDeployment (
1277
+ args : CreateBlueGreenDeploymentCommandInput ,
1278
+ cb : ( err : any , data ?: CreateBlueGreenDeploymentCommandOutput ) => void
1279
+ ) : void ;
1280
+ public createBlueGreenDeployment (
1281
+ args : CreateBlueGreenDeploymentCommandInput ,
1282
+ options : __HttpHandlerOptions ,
1283
+ cb : ( err : any , data ?: CreateBlueGreenDeploymentCommandOutput ) => void
1284
+ ) : void ;
1285
+ public createBlueGreenDeployment (
1286
+ args : CreateBlueGreenDeploymentCommandInput ,
1287
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateBlueGreenDeploymentCommandOutput ) => void ) ,
1288
+ cb ?: ( err : any , data ?: CreateBlueGreenDeploymentCommandOutput ) => void
1289
+ ) : Promise < CreateBlueGreenDeploymentCommandOutput > | void {
1290
+ const command = new CreateBlueGreenDeploymentCommand ( args ) ;
1291
+ if ( typeof optionsOrCb === "function" ) {
1292
+ this . send ( command , optionsOrCb ) ;
1293
+ } else if ( typeof cb === "function" ) {
1294
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1295
+ this . send ( command , optionsOrCb || { } , cb ) ;
1296
+ } else {
1297
+ return this . send ( command , optionsOrCb ) ;
1298
+ }
1299
+ }
1300
+
1235
1301
/**
1236
1302
* <p>Creates a custom DB engine version (CEV). A CEV is a binary volume snapshot of a database engine and specific
1237
1303
* AMI. The supported engines are the following:</p>
@@ -1905,6 +1971,43 @@ export class RDS extends RDSClient {
1905
1971
}
1906
1972
}
1907
1973
1974
+ /**
1975
+ * <p>Deletes a blue/green deployment.</p>
1976
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html">Using Amazon RDS Blue/Green Deployments
1977
+ * for database updates</a> in the <i>Amazon RDS User Guide</i> and
1978
+ * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html">
1979
+ * Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora
1980
+ * User Guide</i>.</p>
1981
+ */
1982
+ public deleteBlueGreenDeployment (
1983
+ args : DeleteBlueGreenDeploymentCommandInput ,
1984
+ options ?: __HttpHandlerOptions
1985
+ ) : Promise < DeleteBlueGreenDeploymentCommandOutput > ;
1986
+ public deleteBlueGreenDeployment (
1987
+ args : DeleteBlueGreenDeploymentCommandInput ,
1988
+ cb : ( err : any , data ?: DeleteBlueGreenDeploymentCommandOutput ) => void
1989
+ ) : void ;
1990
+ public deleteBlueGreenDeployment (
1991
+ args : DeleteBlueGreenDeploymentCommandInput ,
1992
+ options : __HttpHandlerOptions ,
1993
+ cb : ( err : any , data ?: DeleteBlueGreenDeploymentCommandOutput ) => void
1994
+ ) : void ;
1995
+ public deleteBlueGreenDeployment (
1996
+ args : DeleteBlueGreenDeploymentCommandInput ,
1997
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteBlueGreenDeploymentCommandOutput ) => void ) ,
1998
+ cb ?: ( err : any , data ?: DeleteBlueGreenDeploymentCommandOutput ) => void
1999
+ ) : Promise < DeleteBlueGreenDeploymentCommandOutput > | void {
2000
+ const command = new DeleteBlueGreenDeploymentCommand ( args ) ;
2001
+ if ( typeof optionsOrCb === "function" ) {
2002
+ this . send ( command , optionsOrCb ) ;
2003
+ } else if ( typeof cb === "function" ) {
2004
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2005
+ this . send ( command , optionsOrCb || { } , cb ) ;
2006
+ } else {
2007
+ return this . send ( command , optionsOrCb ) ;
2008
+ }
2009
+ }
2010
+
1908
2011
/**
1909
2012
* <p>Deletes a custom engine version. To run this command, make sure you meet the following prerequisites:</p>
1910
2013
* <ul>
@@ -2572,6 +2675,43 @@ export class RDS extends RDSClient {
2572
2675
}
2573
2676
}
2574
2677
2678
+ /**
2679
+ * <p>Returns information about blue/green deployments.</p>
2680
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html">Using Amazon RDS Blue/Green Deployments
2681
+ * for database updates</a> in the <i>Amazon RDS User Guide</i> and
2682
+ * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html">
2683
+ * Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora
2684
+ * User Guide</i>.</p>
2685
+ */
2686
+ public describeBlueGreenDeployments (
2687
+ args : DescribeBlueGreenDeploymentsCommandInput ,
2688
+ options ?: __HttpHandlerOptions
2689
+ ) : Promise < DescribeBlueGreenDeploymentsCommandOutput > ;
2690
+ public describeBlueGreenDeployments (
2691
+ args : DescribeBlueGreenDeploymentsCommandInput ,
2692
+ cb : ( err : any , data ?: DescribeBlueGreenDeploymentsCommandOutput ) => void
2693
+ ) : void ;
2694
+ public describeBlueGreenDeployments (
2695
+ args : DescribeBlueGreenDeploymentsCommandInput ,
2696
+ options : __HttpHandlerOptions ,
2697
+ cb : ( err : any , data ?: DescribeBlueGreenDeploymentsCommandOutput ) => void
2698
+ ) : void ;
2699
+ public describeBlueGreenDeployments (
2700
+ args : DescribeBlueGreenDeploymentsCommandInput ,
2701
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeBlueGreenDeploymentsCommandOutput ) => void ) ,
2702
+ cb ?: ( err : any , data ?: DescribeBlueGreenDeploymentsCommandOutput ) => void
2703
+ ) : Promise < DescribeBlueGreenDeploymentsCommandOutput > | void {
2704
+ const command = new DescribeBlueGreenDeploymentsCommand ( args ) ;
2705
+ if ( typeof optionsOrCb === "function" ) {
2706
+ this . send ( command , optionsOrCb ) ;
2707
+ } else if ( typeof cb === "function" ) {
2708
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
2709
+ this . send ( command , optionsOrCb || { } , cb ) ;
2710
+ } else {
2711
+ return this . send ( command , optionsOrCb ) ;
2712
+ }
2713
+ }
2714
+
2575
2715
/**
2576
2716
* <p>Lists the set of CA certificates provided by Amazon RDS for this Amazon Web Services account.</p>
2577
2717
*/
@@ -5942,6 +6082,45 @@ export class RDS extends RDSClient {
5942
6082
}
5943
6083
}
5944
6084
6085
+ /**
6086
+ * <p>Switches over a blue/green deployment.</p>
6087
+ * <p>Before you switch over, production traffic is routed to the databases in the blue environment.
6088
+ * After you switch over, production traffic is routed to the databases in the green environment.</p>
6089
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments.html">Using Amazon RDS Blue/Green Deployments
6090
+ * for database updates</a> in the <i>Amazon RDS User Guide</i> and
6091
+ * <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html">
6092
+ * Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora
6093
+ * User Guide</i>.</p>
6094
+ */
6095
+ public switchoverBlueGreenDeployment (
6096
+ args : SwitchoverBlueGreenDeploymentCommandInput ,
6097
+ options ?: __HttpHandlerOptions
6098
+ ) : Promise < SwitchoverBlueGreenDeploymentCommandOutput > ;
6099
+ public switchoverBlueGreenDeployment (
6100
+ args : SwitchoverBlueGreenDeploymentCommandInput ,
6101
+ cb : ( err : any , data ?: SwitchoverBlueGreenDeploymentCommandOutput ) => void
6102
+ ) : void ;
6103
+ public switchoverBlueGreenDeployment (
6104
+ args : SwitchoverBlueGreenDeploymentCommandInput ,
6105
+ options : __HttpHandlerOptions ,
6106
+ cb : ( err : any , data ?: SwitchoverBlueGreenDeploymentCommandOutput ) => void
6107
+ ) : void ;
6108
+ public switchoverBlueGreenDeployment (
6109
+ args : SwitchoverBlueGreenDeploymentCommandInput ,
6110
+ optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: SwitchoverBlueGreenDeploymentCommandOutput ) => void ) ,
6111
+ cb ?: ( err : any , data ?: SwitchoverBlueGreenDeploymentCommandOutput ) => void
6112
+ ) : Promise < SwitchoverBlueGreenDeploymentCommandOutput > | void {
6113
+ const command = new SwitchoverBlueGreenDeploymentCommand ( args ) ;
6114
+ if ( typeof optionsOrCb === "function" ) {
6115
+ this . send ( command , optionsOrCb ) ;
6116
+ } else if ( typeof cb === "function" ) {
6117
+ if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
6118
+ this . send ( command , optionsOrCb || { } , cb ) ;
6119
+ } else {
6120
+ return this . send ( command , optionsOrCb ) ;
6121
+ }
6122
+ }
6123
+
5945
6124
/**
5946
6125
* <p>Switches over an Oracle standby database in an Oracle Data Guard environment, making it the new
5947
6126
* primary database. Issue this command in the Region that hosts the current standby database.</p>
0 commit comments