Skip to content

Commit 1356a46

Browse files
author
awstools
committed
feat(client-ec2): AWS Free Tier Version2 Support
1 parent dc5d4c4 commit 1356a46

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

clients/client-ec2/src/commands/DescribeImagesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export interface DescribeImagesCommandOutput extends DescribeImagesResult, __Met
143143
* // ImageAllowed: true || false,
144144
* // SourceImageId: "STRING_VALUE",
145145
* // SourceImageRegion: "STRING_VALUE",
146+
* // FreeTierEligible: true || false,
146147
* // ImageId: "STRING_VALUE",
147148
* // ImageLocation: "STRING_VALUE",
148149
* // State: "pending" || "available" || "invalid" || "deregistered" || "transient" || "failed" || "error" || "disabled",

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5454,6 +5454,11 @@ export interface DescribeImagesRequest {
54545454
* </li>
54555455
* <li>
54565456
* <p>
5457+
* <code>free-tier-eligible</code> - A Boolean that indicates whether this image can be
5458+
* used under the Amazon Web Services Free Tier (<code>true</code> | <code>false</code>).</p>
5459+
* </li>
5460+
* <li>
5461+
* <p>
54575462
* <code>hypervisor</code> - The hypervisor type (<code>ovm</code> |
54585463
* <code>xen</code>).</p>
54595464
* </li>
@@ -5908,6 +5913,21 @@ export interface Image {
59085913
*/
59095914
SourceImageRegion?: string | undefined;
59105915

5916+
/**
5917+
* <p>Indicates whether the image is eligible for Amazon Web Services Free Tier.</p>
5918+
* <ul>
5919+
* <li>
5920+
* <p>If <code>true</code>, the AMI is eligible for Free Tier and can be used to launch
5921+
* instances under the Free Tier limits.</p>
5922+
* </li>
5923+
* <li>
5924+
* <p>If <code>false</code>, the AMI is not eligible for Free Tier.</p>
5925+
* </li>
5926+
* </ul>
5927+
* @public
5928+
*/
5929+
FreeTierEligible?: boolean | undefined;
5930+
59115931
/**
59125932
* <p>The ID of the AMI.</p>
59135933
* @public

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73822,6 +73822,9 @@ const de_Image = (output: any, context: __SerdeContext): Image => {
7382273822
if (output[_sIR] != null) {
7382373823
contents[_SIRo] = __expectString(output[_sIR]);
7382473824
}
73825+
if (output[_fTE] != null) {
73826+
contents[_FTE] = __parseBoolean(output[_fTE]);
73827+
}
7382573828
if (output[_iIma] != null) {
7382673829
contents[_IIma] = __expectString(output[_iIma]);
7382773830
}

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35097,7 +35097,7 @@
3509735097
"Filters": {
3509835098
"target": "com.amazonaws.ec2#FilterList",
3509935099
"traits": {
35100-
"smithy.api#documentation": "<p>The filters.</p>\n <ul>\n <li>\n <p>\n <code>architecture</code> - The image architecture (<code>i386</code> |\n <code>x86_64</code> | <code>arm64</code> | <code>x86_64_mac</code> |\n <code>arm64_mac</code>).</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.delete-on-termination</code> - A Boolean value that indicates\n whether the Amazon EBS volume is deleted on instance termination.</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.device-name</code> - The device name specified in the block\n device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS\n volume.</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in\n GiB.</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.volume-type</code> - The volume type of the Amazon EBS volume\n (<code>io1</code> | <code>io2</code> | <code>gp2</code> | <code>gp3</code> | <code>sc1\n </code>| <code>st1</code> | <code>standard</code>).</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS\n volume is encrypted.</p>\n </li>\n <li>\n <p>\n <code>creation-date</code> - The time when the image was created, in the ISO 8601\n format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,\n <code>2021-09-29T11:04:43.305Z</code>. You can use a wildcard (<code>*</code>), for\n example, <code>2021-09-29T*</code>, which matches an entire day.</p>\n </li>\n <li>\n <p>\n <code>description</code> - The description of the image (provided during image\n creation).</p>\n </li>\n <li>\n <p>\n <code>ena-support</code> - A Boolean that indicates whether enhanced networking with\n ENA is enabled.</p>\n </li>\n <li>\n <p>\n <code>hypervisor</code> - The hypervisor type (<code>ovm</code> |\n <code>xen</code>).</p>\n </li>\n <li>\n <p>\n <code>image-allowed</code> - A Boolean that indicates whether the image meets the\n criteria specified for Allowed AMIs.</p>\n </li>\n <li>\n <p>\n <code>image-id</code> - The ID of the image.</p>\n </li>\n <li>\n <p>\n <code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> |\n <code>ramdisk</code>).</p>\n </li>\n <li>\n <p>\n <code>is-public</code> - A Boolean that indicates whether the image is public.</p>\n </li>\n <li>\n <p>\n <code>kernel-id</code> - The kernel ID.</p>\n </li>\n <li>\n <p>\n <code>manifest-location</code> - The location of the image manifest.</p>\n </li>\n <li>\n <p>\n <code>name</code> - The name of the AMI (provided during image creation).</p>\n </li>\n <li>\n <p>\n <code>owner-alias</code> - The owner alias (<code>amazon</code> |\n <code>aws-backup-vault</code> | <code>aws-marketplace</code>). The valid aliases are\n defined in an Amazon-maintained list. This is not the Amazon Web Services account alias\n that can be set using the IAM console. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p>\n </li>\n <li>\n <p>\n <code>owner-id</code> - The Amazon Web Services account ID of the owner. We recommend\n that you use the <b>Owner</b> request parameter instead of this\n filter.</p>\n </li>\n <li>\n <p>\n <code>platform</code> - The platform. The only supported value is\n <code>windows</code>.</p>\n </li>\n <li>\n <p>\n <code>product-code</code> - The product code.</p>\n </li>\n <li>\n <p>\n <code>product-code.type</code> - The type of the product code\n (<code>marketplace</code>).</p>\n </li>\n <li>\n <p>\n <code>ramdisk-id</code> - The RAM disk ID.</p>\n </li>\n <li>\n <p>\n <code>root-device-name</code> - The device name of the root device volume (for example,\n <code>/dev/sda1</code>).</p>\n </li>\n <li>\n <p>\n <code>root-device-type</code> - The type of the root device volume (<code>ebs</code> |\n <code>instance-store</code>).</p>\n </li>\n <li>\n <p>\n <code>source-image-id</code> - The ID of the source AMI from which the AMI was\n created.</p>\n </li>\n <li>\n <p>\n <code>source-image-region</code> - The Region of the source AMI.</p>\n </li>\n <li>\n <p>\n <code>source-instance-id</code> - The ID of the instance that the AMI was created from\n if the AMI was created using CreateImage. This filter is applicable only if the AMI was\n created using <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html\">CreateImage</a>.</p>\n </li>\n <li>\n <p>\n <code>state</code> - The state of the image (<code>available</code> | <code>pending</code>\n | <code>failed</code>).</p>\n </li>\n <li>\n <p>\n <code>state-reason-code</code> - The reason code for the state change.</p>\n </li>\n <li>\n <p>\n <code>state-reason-message</code> - The message for the state change.</p>\n </li>\n <li>\n <p>\n <code>sriov-net-support</code> - A value of <code>simple</code> indicates that\n enhanced networking with the Intel 82599 VF interface is enabled.</p>\n </li>\n <li>\n <p>\n <code>tag:<key></code> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p>\n </li>\n <li>\n <p>\n <code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p>\n </li>\n <li>\n <p>\n <code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> |\n <code>hvm</code>).</p>\n </li>\n </ul>",
35100+
"smithy.api#documentation": "<p>The filters.</p>\n <ul>\n <li>\n <p>\n <code>architecture</code> - The image architecture (<code>i386</code> |\n <code>x86_64</code> | <code>arm64</code> | <code>x86_64_mac</code> |\n <code>arm64_mac</code>).</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.delete-on-termination</code> - A Boolean value that indicates\n whether the Amazon EBS volume is deleted on instance termination.</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.device-name</code> - The device name specified in the block\n device mapping (for example, <code>/dev/sdh</code> or <code>xvdh</code>).</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.snapshot-id</code> - The ID of the snapshot used for the Amazon EBS\n volume.</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.volume-size</code> - The volume size of the Amazon EBS volume, in\n GiB.</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.volume-type</code> - The volume type of the Amazon EBS volume\n (<code>io1</code> | <code>io2</code> | <code>gp2</code> | <code>gp3</code> | <code>sc1\n </code>| <code>st1</code> | <code>standard</code>).</p>\n </li>\n <li>\n <p>\n <code>block-device-mapping.encrypted</code> - A Boolean that indicates whether the Amazon EBS\n volume is encrypted.</p>\n </li>\n <li>\n <p>\n <code>creation-date</code> - The time when the image was created, in the ISO 8601\n format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for example,\n <code>2021-09-29T11:04:43.305Z</code>. You can use a wildcard (<code>*</code>), for\n example, <code>2021-09-29T*</code>, which matches an entire day.</p>\n </li>\n <li>\n <p>\n <code>description</code> - The description of the image (provided during image\n creation).</p>\n </li>\n <li>\n <p>\n <code>ena-support</code> - A Boolean that indicates whether enhanced networking with\n ENA is enabled.</p>\n </li>\n <li>\n <p>\n <code>free-tier-eligible</code> - A Boolean that indicates whether this image can be\n used under the Amazon Web Services Free Tier (<code>true</code> | <code>false</code>).</p>\n </li>\n <li>\n <p>\n <code>hypervisor</code> - The hypervisor type (<code>ovm</code> |\n <code>xen</code>).</p>\n </li>\n <li>\n <p>\n <code>image-allowed</code> - A Boolean that indicates whether the image meets the\n criteria specified for Allowed AMIs.</p>\n </li>\n <li>\n <p>\n <code>image-id</code> - The ID of the image.</p>\n </li>\n <li>\n <p>\n <code>image-type</code> - The image type (<code>machine</code> | <code>kernel</code> |\n <code>ramdisk</code>).</p>\n </li>\n <li>\n <p>\n <code>is-public</code> - A Boolean that indicates whether the image is public.</p>\n </li>\n <li>\n <p>\n <code>kernel-id</code> - The kernel ID.</p>\n </li>\n <li>\n <p>\n <code>manifest-location</code> - The location of the image manifest.</p>\n </li>\n <li>\n <p>\n <code>name</code> - The name of the AMI (provided during image creation).</p>\n </li>\n <li>\n <p>\n <code>owner-alias</code> - The owner alias (<code>amazon</code> |\n <code>aws-backup-vault</code> | <code>aws-marketplace</code>). The valid aliases are\n defined in an Amazon-maintained list. This is not the Amazon Web Services account alias\n that can be set using the IAM console. We recommend that you use the <b>Owner</b> request parameter instead of this filter.</p>\n </li>\n <li>\n <p>\n <code>owner-id</code> - The Amazon Web Services account ID of the owner. We recommend\n that you use the <b>Owner</b> request parameter instead of this\n filter.</p>\n </li>\n <li>\n <p>\n <code>platform</code> - The platform. The only supported value is\n <code>windows</code>.</p>\n </li>\n <li>\n <p>\n <code>product-code</code> - The product code.</p>\n </li>\n <li>\n <p>\n <code>product-code.type</code> - The type of the product code\n (<code>marketplace</code>).</p>\n </li>\n <li>\n <p>\n <code>ramdisk-id</code> - The RAM disk ID.</p>\n </li>\n <li>\n <p>\n <code>root-device-name</code> - The device name of the root device volume (for example,\n <code>/dev/sda1</code>).</p>\n </li>\n <li>\n <p>\n <code>root-device-type</code> - The type of the root device volume (<code>ebs</code> |\n <code>instance-store</code>).</p>\n </li>\n <li>\n <p>\n <code>source-image-id</code> - The ID of the source AMI from which the AMI was\n created.</p>\n </li>\n <li>\n <p>\n <code>source-image-region</code> - The Region of the source AMI.</p>\n </li>\n <li>\n <p>\n <code>source-instance-id</code> - The ID of the instance that the AMI was created from\n if the AMI was created using CreateImage. This filter is applicable only if the AMI was\n created using <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateImage.html\">CreateImage</a>.</p>\n </li>\n <li>\n <p>\n <code>state</code> - The state of the image (<code>available</code> | <code>pending</code>\n | <code>failed</code>).</p>\n </li>\n <li>\n <p>\n <code>state-reason-code</code> - The reason code for the state change.</p>\n </li>\n <li>\n <p>\n <code>state-reason-message</code> - The message for the state change.</p>\n </li>\n <li>\n <p>\n <code>sriov-net-support</code> - A value of <code>simple</code> indicates that\n enhanced networking with the Intel 82599 VF interface is enabled.</p>\n </li>\n <li>\n <p>\n <code>tag:<key></code> - The key/value combination of a tag assigned to the resource. Use the tag key in the filter name and the tag value as the filter value.\n For example, to find all resources that have a tag with the key <code>Owner</code> and the value <code>TeamA</code>, specify <code>tag:Owner</code> for the filter name and <code>TeamA</code> for the filter value.</p>\n </li>\n <li>\n <p>\n <code>tag-key</code> - The key of a tag assigned to the resource. Use this filter to find all resources assigned a tag with a specific key, regardless of the tag value.</p>\n </li>\n <li>\n <p>\n <code>virtualization-type</code> - The virtualization type (<code>paravirtual</code> |\n <code>hvm</code>).</p>\n </li>\n </ul>",
3510135101
"smithy.api#xmlName": "Filter"
3510235102
}
3510335103
}
@@ -62485,6 +62485,14 @@
6248562485
"smithy.api#xmlName": "sourceImageRegion"
6248662486
}
6248762487
},
62488+
"FreeTierEligible": {
62489+
"target": "com.amazonaws.ec2#Boolean",
62490+
"traits": {
62491+
"aws.protocols#ec2QueryName": "FreeTierEligible",
62492+
"smithy.api#documentation": "<p>Indicates whether the image is eligible for Amazon Web Services Free Tier.</p>\n <ul>\n <li>\n <p>If <code>true</code>, the AMI is eligible for Free Tier and can be used to launch\n instances under the Free Tier limits.</p>\n </li>\n <li>\n <p>If <code>false</code>, the AMI is not eligible for Free Tier.</p>\n </li>\n </ul>",
62493+
"smithy.api#xmlName": "freeTierEligible"
62494+
}
62495+
},
6248862496
"ImageId": {
6248962497
"target": "com.amazonaws.ec2#String",
6249062498
"traits": {

0 commit comments

Comments
 (0)