Skip to content

Commit 8c58db8

Browse files
author
awstools
committed
feat(client-ec2): Letting external AWS customers provide ImageId as a Launch Template override in FleetLaunchTemplateOverridesRequest
1 parent b34b261 commit 8c58db8

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,11 @@ export interface FleetLaunchTemplateOverridesRequest {
816816
* </note>
817817
*/
818818
InstanceRequirements?: InstanceRequirementsRequest;
819+
820+
/**
821+
* <p>The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.</p>
822+
*/
823+
ImageId?: string;
819824
}
820825

821826
/**
@@ -1778,6 +1783,11 @@ export interface FleetLaunchTemplateOverrides {
17781783
* </note>
17791784
*/
17801785
InstanceRequirements?: InstanceRequirements;
1786+
1787+
/**
1788+
* <p>The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.</p>
1789+
*/
1790+
ImageId?: string;
17811791
}
17821792

17831793
/**

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41856,6 +41856,9 @@ const serializeAws_ec2FleetLaunchTemplateOverridesRequest = (
4185641856
entries[loc] = value;
4185741857
});
4185841858
}
41859+
if (input.ImageId != null) {
41860+
entries["ImageId"] = input.ImageId;
41861+
}
4185941862
return entries;
4186041863
};
4186141864

@@ -63209,6 +63212,7 @@ const deserializeAws_ec2FleetLaunchTemplateOverrides = (
6320963212
Priority: undefined,
6321063213
Placement: undefined,
6321163214
InstanceRequirements: undefined,
63215+
ImageId: undefined,
6321263216
};
6321363217
if (output["instanceType"] !== undefined) {
6321463218
contents.InstanceType = __expectString(output["instanceType"]);
@@ -63234,6 +63238,9 @@ const deserializeAws_ec2FleetLaunchTemplateOverrides = (
6323463238
if (output["instanceRequirements"] !== undefined) {
6323563239
contents.InstanceRequirements = deserializeAws_ec2InstanceRequirements(output["instanceRequirements"], context);
6323663240
}
63241+
if (output["imageId"] !== undefined) {
63242+
contents.ImageId = __expectString(output["imageId"]);
63243+
}
6323763244
return contents;
6323863245
};
6323963246

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39525,6 +39525,14 @@
3952539525
"smithy.api#documentation": "<p>The attributes for the instance types. When you specify instance attributes, Amazon EC2 will\n identify instance types with those attributes.</p>\n <note>\n <p>If you specify <code>InstanceRequirements</code>, you can't specify\n <code>InstanceType</code>.</p>\n </note>",
3952639526
"smithy.api#xmlName": "instanceRequirements"
3952739527
}
39528+
},
39529+
"ImageId": {
39530+
"target": "com.amazonaws.ec2#ImageId",
39531+
"traits": {
39532+
"aws.protocols#ec2QueryName": "ImageId",
39533+
"smithy.api#documentation": "<p>The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.</p>",
39534+
"smithy.api#xmlName": "imageId"
39535+
}
3952839536
}
3952939537
},
3953039538
"traits": {
@@ -39603,6 +39611,12 @@
3960339611
"traits": {
3960439612
"smithy.api#documentation": "<p>The attributes for the instance types. When you specify instance attributes, Amazon EC2 will\n identify instance types with those attributes.</p>\n <note>\n <p>If you specify <code>InstanceRequirements</code>, you can't specify\n <code>InstanceType</code>.</p>\n </note>"
3960539613
}
39614+
},
39615+
"ImageId": {
39616+
"target": "com.amazonaws.ec2#ImageId",
39617+
"traits": {
39618+
"smithy.api#documentation": "<p>The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.</p>"
39619+
}
3960639620
}
3960739621
},
3960839622
"traits": {

0 commit comments

Comments
 (0)