Skip to content

Commit ed19e89

Browse files
author
awstools
committed
feat(client-rds): This release adds support for scale storage on the DB instance using a Blue/Green Deployment.
1 parent 0873d67 commit ed19e89

File tree

4 files changed

+91
-9
lines changed

4 files changed

+91
-9
lines changed

clients/client-rds/src/commands/CreateBlueGreenDeploymentCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export interface CreateBlueGreenDeploymentCommandOutput extends CreateBlueGreenD
3131
* <p>Creates a blue/green deployment.</p>
3232
* <p>A blue/green deployment creates a staging environment that copies the production environment.
3333
* In a blue/green deployment, the blue environment is the current production environment.
34-
* The green environment is the staging environment. The staging environment stays in sync
35-
* with the current production environment using logical replication.</p>
34+
* The green environment is the staging environment, and it stays in sync
35+
* with the current production environment.</p>
3636
* <p>You can make changes to the databases in the green environment without affecting
3737
* production workloads. For example, you can upgrade the major or minor DB engine version, change
3838
* database parameters, or make schema changes in the staging environment. You can thoroughly test
@@ -63,6 +63,10 @@ export interface CreateBlueGreenDeploymentCommandOutput extends CreateBlueGreenD
6363
* ],
6464
* TargetDBInstanceClass: "STRING_VALUE",
6565
* UpgradeTargetStorageConfig: true || false,
66+
* TargetIops: Number("int"),
67+
* TargetStorageType: "STRING_VALUE",
68+
* TargetAllocatedStorage: Number("int"),
69+
* TargetStorageThroughput: Number("int"),
6670
* };
6771
* const command = new CreateBlueGreenDeploymentCommand(input);
6872
* const response = await client.send(command);

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,6 +3346,41 @@ export interface CreateBlueGreenDeploymentRequest {
33463346
* @public
33473347
*/
33483348
UpgradeTargetStorageConfig?: boolean | undefined;
3349+
3350+
/**
3351+
* <p>The amount of Provisioned IOPS (input/output operations per second) to allocate for the green DB instance.
3352+
* For information about valid IOPS values, see
3353+
* <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html">Amazon RDS DB instance storage</a>
3354+
* in the <i>Amazon RDS User Guide</i>.</p>
3355+
* <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>
3356+
* @public
3357+
*/
3358+
TargetIops?: number | undefined;
3359+
3360+
/**
3361+
* <p>The storage type to associate with the green DB instance.</p>
3362+
* <p>Valid Values: <code>gp2 | gp3 | io1 | io2</code>
3363+
* </p>
3364+
* <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>
3365+
* @public
3366+
*/
3367+
TargetStorageType?: string | undefined;
3368+
3369+
/**
3370+
* <p>The amount of storage in gibibytes (GiB) to allocate for the green DB instance. You can choose to
3371+
* increase or decrease the allocated storage on the green DB instance.</p>
3372+
* <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>
3373+
* @public
3374+
*/
3375+
TargetAllocatedStorage?: number | undefined;
3376+
3377+
/**
3378+
* <p>The storage throughput value for the green DB instance.</p>
3379+
* <p>This setting applies only to the <code>gp3</code> storage type.</p>
3380+
* <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>
3381+
* @public
3382+
*/
3383+
TargetStorageThroughput?: number | undefined;
33493384
}
33503385

33513386
/**

clients/client-rds/src/protocols/Aws_query.ts

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10277,6 +10277,18 @@ const se_CreateBlueGreenDeploymentRequest = (input: CreateBlueGreenDeploymentReq
1027710277
if (input[_UTSC] != null) {
1027810278
entries[_UTSC] = input[_UTSC];
1027910279
}
10280+
if (input[_TI] != null) {
10281+
entries[_TI] = input[_TI];
10282+
}
10283+
if (input[_TST] != null) {
10284+
entries[_TST] = input[_TST];
10285+
}
10286+
if (input[_TAS] != null) {
10287+
entries[_TAS] = input[_TAS];
10288+
}
10289+
if (input[_TSTa] != null) {
10290+
entries[_TSTa] = input[_TSTa];
10291+
}
1028010292
return entries;
1028110293
};
1028210294

@@ -19584,8 +19596,8 @@ const de_DBRecommendation = (output: any, context: __SerdeContext): DBRecommenda
1958419596
if (output[_RIe] != null) {
1958519597
contents[_RIe] = __expectString(output[_RIe]);
1958619598
}
19587-
if (output[_TI] != null) {
19588-
contents[_TI] = __expectString(output[_TI]);
19599+
if (output[_TIy] != null) {
19600+
contents[_TIy] = __expectString(output[_TIy]);
1958919601
}
1959019602
if (output[_Se] != null) {
1959119603
contents[_Se] = __expectString(output[_Se]);
@@ -21193,8 +21205,8 @@ const de_ExportTask = (output: any, context: __SerdeContext): ExportTask => {
2119321205
if (output[_STnap] != null) {
2119421206
contents[_STnap] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_STnap]));
2119521207
}
21196-
if (output[_TST] != null) {
21197-
contents[_TST] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TST]));
21208+
if (output[_TSTas] != null) {
21209+
contents[_TSTas] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TSTas]));
2119821210
}
2119921211
if (output[_TET] != null) {
2120021212
contents[_TET] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_TET]));
@@ -25856,6 +25868,7 @@ const _Sub = "Subnet";
2585625868
const _Sw = "Switchover";
2585725869
const _T = "Tags";
2585825870
const _TA = "TargetArn";
25871+
const _TAS = "TargetAllocatedStorage";
2585925872
const _TAi = "TimeoutAction";
2586025873
const _TCA = "TdeCredentialArn";
2586125874
const _TCAZ = "TargetCustomAvailabilityZone";
@@ -25888,7 +25901,8 @@ const _TGA = "TargetGroupArn";
2588825901
const _TGMDI = "TransitGatewayMulticastDomainId";
2588925902
const _TGN = "TargetGroupName";
2589025903
const _TH = "TargetHealth";
25891-
const _TI = "TypeId";
25904+
const _TI = "TargetIops";
25905+
const _TIy = "TypeId";
2589225906
const _TK = "TagKeys";
2589325907
const _TL = "TagList";
2589425908
const _TM = "TargetMember";
@@ -25897,7 +25911,9 @@ const _TOGD = "TargetOptionGroupDescription";
2589725911
const _TOGI = "TargetOptionGroupIdentifier";
2589825912
const _TR = "TargetRole";
2589925913
const _TRy = "TypeRecommendation";
25900-
const _TST = "TaskStartTime";
25914+
const _TST = "TargetStorageType";
25915+
const _TSTa = "TargetStorageThroughput";
25916+
const _TSTas = "TaskStartTime";
2590125917
const _Ta = "Target";
2590225918
const _Tag = "Tag";
2590325919
const _Tar = "Targets";

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3677,7 +3677,7 @@
36773677
}
36783678
],
36793679
"traits": {
3680-
"smithy.api#documentation": "<p>Creates a blue/green deployment.</p>\n <p>A blue/green deployment creates a staging environment that copies the production environment. \n In a blue/green deployment, the blue environment is the current production environment. \n The green environment is the staging environment. The staging environment stays in sync \n with the current production environment using logical replication.</p>\n <p>You can make changes to the databases in the green environment without affecting \n production workloads. For example, you can upgrade the major or minor DB engine version, change \n database parameters, or make schema changes in the staging environment. You can thoroughly test \n changes in the green environment. When ready, you can switch over the environments to promote the \n green environment to be the new production environment. The switchover typically takes under a minute.</p>\n <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 \n for database updates</a> in the <i>Amazon RDS User Guide</i> and \n <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html\">\n Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora \n User Guide</i>.</p>"
3680+
"smithy.api#documentation": "<p>Creates a blue/green deployment.</p>\n <p>A blue/green deployment creates a staging environment that copies the production environment. \n In a blue/green deployment, the blue environment is the current production environment. \n The green environment is the staging environment, and it stays in sync \n with the current production environment.</p>\n <p>You can make changes to the databases in the green environment without affecting \n production workloads. For example, you can upgrade the major or minor DB engine version, change \n database parameters, or make schema changes in the staging environment. You can thoroughly test \n changes in the green environment. When ready, you can switch over the environments to promote the \n green environment to be the new production environment. The switchover typically takes under a minute.</p>\n <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 \n for database updates</a> in the <i>Amazon RDS User Guide</i> and \n <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/blue-green-deployments.html\">\n Using Amazon RDS Blue/Green Deployments for database updates</a> in the <i>Amazon Aurora \n User Guide</i>.</p>"
36813681
}
36823682
},
36833683
"com.amazonaws.rds#CreateBlueGreenDeploymentRequest": {
@@ -3734,6 +3734,30 @@
37343734
"traits": {
37353735
"smithy.api#documentation": "<p>Whether to upgrade the storage file system configuration on the green database. This\n option migrates the green DB instance from the older 32-bit file system to the preferred\n configuration. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PIOPS.StorageTypes.html#USER_PIOPS.UpgradeFileSystem\">Upgrading the storage file system for a DB instance</a>.</p>"
37363736
}
3737+
},
3738+
"TargetIops": {
3739+
"target": "com.amazonaws.rds#IntegerOptional",
3740+
"traits": {
3741+
"smithy.api#documentation": "<p>The amount of Provisioned IOPS (input/output operations per second) to allocate for the green DB instance.\n For information about valid IOPS values, see \n <a href=\"https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html\">Amazon RDS DB instance storage</a> \n in the <i>Amazon RDS User Guide</i>.</p>\n <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>"
3742+
}
3743+
},
3744+
"TargetStorageType": {
3745+
"target": "com.amazonaws.rds#TargetStorageType",
3746+
"traits": {
3747+
"smithy.api#documentation": "<p>The storage type to associate with the green DB instance.</p>\n <p>Valid Values: <code>gp2 | gp3 | io1 | io2</code>\n </p>\n <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>"
3748+
}
3749+
},
3750+
"TargetAllocatedStorage": {
3751+
"target": "com.amazonaws.rds#IntegerOptional",
3752+
"traits": {
3753+
"smithy.api#documentation": "<p>The amount of storage in gibibytes (GiB) to allocate for the green DB instance. You can choose to\n increase or decrease the allocated storage on the green DB instance.</p>\n <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>"
3754+
}
3755+
},
3756+
"TargetStorageThroughput": {
3757+
"target": "com.amazonaws.rds#IntegerOptional",
3758+
"traits": {
3759+
"smithy.api#documentation": "<p>The storage throughput value for the green DB instance.</p>\n <p>This setting applies only to the <code>gp3</code> storage type.</p>\n <p>This setting doesn't apply to Amazon Aurora blue/green deployments.</p>"
3760+
}
37373761
}
37383762
},
37393763
"traits": {
@@ -30988,6 +31012,9 @@
3098831012
}
3098931013
}
3099031014
},
31015+
"com.amazonaws.rds#TargetStorageType": {
31016+
"type": "string"
31017+
},
3099131018
"com.amazonaws.rds#TargetType": {
3099231019
"type": "enum",
3099331020
"members": {

0 commit comments

Comments
 (0)