Skip to content

Commit 8917e47

Browse files
author
awstools
committed
feat(client-ec2): This release adds support for excluding specific data (non-root) volumes from multi-volume snapshot sets created from instances.
1 parent 8e19146 commit 8917e47

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

clients/client-ec2/src/models/models_1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7324,6 +7324,8 @@ export interface InstanceSpecification {
73247324
* <p>Excludes the root volume from being snapshotted.</p>
73257325
*/
73267326
ExcludeBootVolume?: boolean;
7327+
7328+
ExcludeDataVolumeIds?: string[];
73277329
}
73287330

73297331
export interface CreateSnapshotsRequest {

clients/client-ec2/src/protocols/Aws_ec2.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43406,6 +43406,13 @@ const serializeAws_ec2InstanceSpecification = (input: InstanceSpecification, con
4340643406
if (input.ExcludeBootVolume != null) {
4340743407
entries["ExcludeBootVolume"] = input.ExcludeBootVolume;
4340843408
}
43409+
if (input.ExcludeDataVolumeIds != null) {
43410+
const memberEntries = serializeAws_ec2VolumeIdStringList(input.ExcludeDataVolumeIds, context);
43411+
Object.entries(memberEntries).forEach(([key, value]) => {
43412+
const loc = `ExcludeDataVolumeId.${key.substring(key.indexOf(".") + 1)}`;
43413+
entries[loc] = value;
43414+
});
43415+
}
4340943416
return entries;
4341043417
};
4341143418

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45841,6 +45841,12 @@
4584145841
"traits": {
4584245842
"smithy.api#documentation": "<p>Excludes the root volume from being snapshotted.</p>"
4584345843
}
45844+
},
45845+
"ExcludeDataVolumeIds": {
45846+
"target": "com.amazonaws.ec2#VolumeIdStringList",
45847+
"traits": {
45848+
"smithy.api#xmlName": "ExcludeDataVolumeId"
45849+
}
4584445850
}
4584545851
},
4584645852
"traits": {

0 commit comments

Comments
 (0)