Skip to content

Commit ba813c4

Browse files
author
AWS
committed
Amazon Elastic Compute Cloud Update: Adding an imdsSupport attribute to EC2 AMIs
1 parent b775951 commit ba813c4

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Elastic Compute Cloud",
4+
"contributor": "",
5+
"description": "Adding an imdsSupport attribute to EC2 AMIs"
6+
}

services/ec2/src/main/resources/codegen-resources/service-2.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28752,6 +28752,11 @@
2875228752
"shape":"String",
2875328753
"documentation":"<p>The date and time to deprecate the AMI, in UTC, in the following format: <i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z. If you specified a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.</p>",
2875428754
"locationName":"deprecationTime"
28755+
},
28756+
"ImdsSupport":{
28757+
"shape":"ImdsSupportValues",
28758+
"documentation":"<p>If <code>v2.0</code>, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have <code>HttpTokens</code> automatically set to <code>required</code> so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, <code>HttpPutResponseHopLimit</code> is set to <code>2</code>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration\">Configure the AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>",
28759+
"locationName":"imdsSupport"
2875528760
}
2875628761
},
2875728762
"documentation":"<p>Describes an image.</p>"
@@ -28818,6 +28823,11 @@
2881828823
"shape":"AttributeValue",
2881928824
"documentation":"<p>The date and time, in <a href=\"http://www.iso.org/iso/iso8601\">ISO 8601 date-time format</a>, when the AMI was last used to launch an EC2 instance. When the AMI is used to launch an instance, there is a 24-hour delay before that usage is reported.</p> <note> <p> <code>lastLaunchedTime</code> data is available starting April 2017.</p> </note>",
2882028825
"locationName":"lastLaunchedTime"
28826+
},
28827+
"ImdsSupport":{
28828+
"shape":"AttributeValue",
28829+
"documentation":"<p>If <code>v2.0</code>, it indicates that IMDSv2 is specified in the AMI. Instances launched from this AMI will have <code>HttpTokens</code> automatically set to <code>required</code> so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, <code>HttpPutResponseHopLimit</code> is set to <code>2</code>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration\">Configure the AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>",
28830+
"locationName":"imdsSupport"
2882128831
}
2882228832
},
2882328833
"documentation":"<p>Describes an image attribute.</p>"
@@ -28835,7 +28845,8 @@
2883528845
"bootMode",
2883628846
"tpmSupport",
2883728847
"uefiData",
28838-
"lastLaunchedTime"
28848+
"lastLaunchedTime",
28849+
"imdsSupport"
2883928850
]
2884028851
},
2884128852
"ImageDiskContainer":{
@@ -28955,6 +28966,10 @@
2895528966
"ramdisk"
2895628967
]
2895728968
},
28969+
"ImdsSupportValues":{
28970+
"type":"string",
28971+
"enum":["v2.0"]
28972+
},
2895828973
"ImportClientVpnClientCertificateRevocationListRequest":{
2895928974
"type":"structure",
2896028975
"required":[
@@ -40498,7 +40513,7 @@
4049840513
"Port":{
4049940514
"type":"integer",
4050040515
"max":65535,
40501-
"min":1
40516+
"min":0
4050240517
},
4050340518
"PortRange":{
4050440519
"type":"structure",
@@ -41711,6 +41726,10 @@
4171141726
"UefiData":{
4171241727
"shape":"StringType",
4171341728
"documentation":"<p>Base64 representation of the non-volatile UEFI variable store. To retrieve the UEFI data, use the <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData\">GetInstanceUefiData</a> command. You can inspect and modify the UEFI data by using the <a href=\"https://github.com/awslabs/python-uefivars\">python-uefivars tool</a> on GitHub. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html\">UEFI Secure Boot</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>"
41729+
},
41730+
"ImdsSupport":{
41731+
"shape":"ImdsSupportValues",
41732+
"documentation":"<p>Set to <code>v2.0</code> to indicate that IMDSv2 is specified in the AMI. Instances launched from this AMI will have <code>HttpTokens</code> automatically set to <code>required</code> so that, by default, the instance requires that IMDSv2 is used when requesting instance metadata. In addition, <code>HttpPutResponseHopLimit</code> is set to <code>2</code>. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration\">Configure the AMI</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.</p> <note> <p>If you set the value to <code>v2.0</code>, make sure that your AMI software can support IMDSv2.</p> </note>"
4171441733
}
4171541734
},
4171641735
"documentation":"<p>Contains the parameters for RegisterImage.</p>"

0 commit comments

Comments
 (0)