Skip to content

Commit

Permalink
feat(client-drs): Changed existing APIs to allow choosing a dynamic v…
Browse files Browse the repository at this point in the history
…olume type for replicating volumes, to reduce costs for customers.
  • Loading branch information
awstools committed Jul 15, 2022
1 parent 9d10bb8 commit 91e2660
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 7 additions & 1 deletion clients/client-drs/src/models/models_0.ts
Expand Up @@ -980,6 +980,7 @@ export enum ReplicationConfigurationDataPlaneRouting {
}

export enum ReplicationConfigurationDefaultLargeStagingDiskType {
AUTO = "AUTO",
GP2 = "GP2",
GP3 = "GP3",
ST1 = "ST1",
Expand Down Expand Up @@ -1240,7 +1241,7 @@ export namespace DeleteJobResponse {

export interface DeleteRecoveryInstanceRequest {
/**
* <p>RThe ID of the Recovery Instance to be deleted.</p>
* <p>The ID of the Recovery Instance to be deleted.</p>
*/
recoveryInstanceID: string | undefined;
}
Expand Down Expand Up @@ -2998,6 +2999,11 @@ export interface ReplicationConfigurationReplicatedDisk {
* <p>The throughput to use for the EBS volume in MiB/s. This parameter is valid only for gp3 volumes.</p>
*/
throughput?: number;

/**
* <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>
*/
optimizedStagingDiskType?: ReplicationConfigurationReplicatedDiskStagingDiskType | string;
}

export namespace ReplicationConfigurationReplicatedDisk {
Expand Down
2 changes: 2 additions & 0 deletions clients/client-drs/src/protocols/Aws_restJson1.ts
Expand Up @@ -3674,6 +3674,7 @@ const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (
...(input.deviceName != null && { deviceName: input.deviceName }),
...(input.iops != null && { iops: input.iops }),
...(input.isBootDisk != null && { isBootDisk: input.isBootDisk }),
...(input.optimizedStagingDiskType != null && { optimizedStagingDiskType: input.optimizedStagingDiskType }),
...(input.stagingDiskType != null && { stagingDiskType: input.stagingDiskType }),
...(input.throughput != null && { throughput: input.throughput }),
};
Expand Down Expand Up @@ -4383,6 +4384,7 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (
deviceName: __expectString(output.deviceName),
iops: __expectLong(output.iops),
isBootDisk: __expectBoolean(output.isBootDisk),
optimizedStagingDiskType: __expectString(output.optimizedStagingDiskType),
stagingDiskType: __expectString(output.stagingDiskType),
throughput: __expectLong(output.throughput),
} as any;
Expand Down
12 changes: 11 additions & 1 deletion codegen/sdk-codegen/aws-models/drs.json
Expand Up @@ -854,7 +854,7 @@
"recoveryInstanceID": {
"target": "com.amazonaws.drs#RecoveryInstanceID",
"traits": {
"smithy.api#documentation": "<p>RThe ID of the Recovery Instance to be deleted.</p>",
"smithy.api#documentation": "<p>The ID of the Recovery Instance to be deleted.</p>",
"smithy.api#required": {}
}
}
Expand Down Expand Up @@ -3943,6 +3943,10 @@
{
"value": "ST1",
"name": "ST1"
},
{
"value": "AUTO",
"name": "AUTO"
}
]
}
Expand Down Expand Up @@ -3994,6 +3998,12 @@
"traits": {
"smithy.api#documentation": "<p>The throughput to use for the EBS volume in MiB/s. This parameter is valid only for gp3 volumes.</p>"
}
},
"optimizedStagingDiskType": {
"target": "com.amazonaws.drs#ReplicationConfigurationReplicatedDiskStagingDiskType",
"traits": {
"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>"
}
}
},
"traits": {
Expand Down

0 comments on commit 91e2660

Please sign in to comment.