Skip to content

Commit 91e2660

Browse files
author
awstools
committed
feat(client-drs): Changed existing APIs to allow choosing a dynamic volume type for replicating volumes, to reduce costs for customers.
1 parent 9d10bb8 commit 91e2660

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ export enum ReplicationConfigurationDataPlaneRouting {
980980
}
981981

982982
export enum ReplicationConfigurationDefaultLargeStagingDiskType {
983+
AUTO = "AUTO",
983984
GP2 = "GP2",
984985
GP3 = "GP3",
985986
ST1 = "ST1",
@@ -1240,7 +1241,7 @@ export namespace DeleteJobResponse {
12401241

12411242
export interface DeleteRecoveryInstanceRequest {
12421243
/**
1243-
* <p>RThe ID of the Recovery Instance to be deleted.</p>
1244+
* <p>The ID of the Recovery Instance to be deleted.</p>
12441245
*/
12451246
recoveryInstanceID: string | undefined;
12461247
}
@@ -2998,6 +2999,11 @@ export interface ReplicationConfigurationReplicatedDisk {
29982999
* <p>The throughput to use for the EBS volume in MiB/s. This parameter is valid only for gp3 volumes.</p>
29993000
*/
30003001
throughput?: number;
3002+
3003+
/**
3004+
* <p>The Staging Disk EBS volume type to be used during replication when <code>stagingDiskType</code> is set to Auto. This is a read-only field.</p>
3005+
*/
3006+
optimizedStagingDiskType?: ReplicationConfigurationReplicatedDiskStagingDiskType | string;
30013007
}
30023008

30033009
export namespace ReplicationConfigurationReplicatedDisk {

clients/client-drs/src/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3674,6 +3674,7 @@ const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (
36743674
...(input.deviceName != null && { deviceName: input.deviceName }),
36753675
...(input.iops != null && { iops: input.iops }),
36763676
...(input.isBootDisk != null && { isBootDisk: input.isBootDisk }),
3677+
...(input.optimizedStagingDiskType != null && { optimizedStagingDiskType: input.optimizedStagingDiskType }),
36773678
...(input.stagingDiskType != null && { stagingDiskType: input.stagingDiskType }),
36783679
...(input.throughput != null && { throughput: input.throughput }),
36793680
};
@@ -4383,6 +4384,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (
43834384
deviceName: __expectString(output.deviceName),
43844385
iops: __expectLong(output.iops),
43854386
isBootDisk: __expectBoolean(output.isBootDisk),
4387+
optimizedStagingDiskType: __expectString(output.optimizedStagingDiskType),
43864388
stagingDiskType: __expectString(output.stagingDiskType),
43874389
throughput: __expectLong(output.throughput),
43884390
} as any;

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@
854854
"recoveryInstanceID": {
855855
"target": "com.amazonaws.drs#RecoveryInstanceID",
856856
"traits": {
857-
"smithy.api#documentation": "<p>RThe ID of the Recovery Instance to be deleted.</p>",
857+
"smithy.api#documentation": "<p>The ID of the Recovery Instance to be deleted.</p>",
858858
"smithy.api#required": {}
859859
}
860860
}
@@ -3943,6 +3943,10 @@
39433943
{
39443944
"value": "ST1",
39453945
"name": "ST1"
3946+
},
3947+
{
3948+
"value": "AUTO",
3949+
"name": "AUTO"
39463950
}
39473951
]
39483952
}
@@ -3994,6 +3998,12 @@
39943998
"traits": {
39953999
"smithy.api#documentation": "<p>The throughput to use for the EBS volume in MiB/s. This parameter is valid only for gp3 volumes.</p>"
39964000
}
4001+
},
4002+
"optimizedStagingDiskType": {
4003+
"target": "com.amazonaws.drs#ReplicationConfigurationReplicatedDiskStagingDiskType",
4004+
"traits": {
4005+
"smithy.api#documentation": "<p>The Staging Disk EBS volume type to be used during replication when <code>stagingDiskType</code> is set to Auto. This is a read-only field.</p>"
4006+
}
39974007
}
39984008
},
39994009
"traits": {

0 commit comments

Comments
 (0)