

# Ec2AmiResource
<a name="API_Ec2AmiResource"></a>

**Note**  
 Amazon Snowball Edge is no longer available to new customers. New customers should explore [Amazon DataSync](https://aws.amazon.com/datasync/) for online transfers, [Amazon Data Transfer Terminal](https://aws.amazon.com/data-transfer-terminal/) for secure physical transfers, or Amazon Partner solutions. For edge computing, explore [Amazon Outposts](https://aws.amazon.com/outposts/).

A JSON-formatted object that contains the IDs for an Amazon Machine Image (AMI), including the Amazon EC2-compatible AMI ID and the Snow device AMI ID. Each AMI has these two IDs to simplify identifying the AMI in both the Amazon Web Services Cloud and on the device.

## Contents
<a name="API_Ec2AmiResource_Contents"></a>

 ** AmiId **   <a name="Snowball-Type-Ec2AmiResource-AmiId"></a>
The ID of the AMI in Amazon EC2.  
Type: String  
Length Constraints: Minimum length of 12. Maximum length of 21.  
Pattern: `(ami-[0-9a-f]{8})|(ami-[0-9a-f]{17})`   
Required: Yes

 ** SnowballAmiId **   <a name="Snowball-Type-Ec2AmiResource-SnowballAmiId"></a>
The ID of the AMI on the Snow device.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 1024.  
Pattern: `.*`   
Required: No

## See Also
<a name="API_Ec2AmiResource_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/snowball-2016-06-30/Ec2AmiResource) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/snowball-2016-06-30/Ec2AmiResource) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/snowball-2016-06-30/Ec2AmiResource) 