

# Layer
<a name="API_Layer"></a>

An object that represents an Amazon ECR image layer.

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

 ** layerAvailability **   <a name="ecrpublic-Type-Layer-layerAvailability"></a>
The availability status of the image layer.  
Type: String  
Valid Values: `AVAILABLE | UNAVAILABLE`   
Required: No

 ** layerDigest **   <a name="ecrpublic-Type-Layer-layerDigest"></a>
The `sha256` digest of the image layer.  
Type: String  
Pattern: `[a-zA-Z0-9-_+.]+:[a-fA-F0-9]+`   
Required: No

 ** layerSize **   <a name="ecrpublic-Type-Layer-layerSize"></a>
The size, in bytes, of the image layer.  
Type: Long  
Required: No

 ** mediaType **   <a name="ecrpublic-Type-Layer-mediaType"></a>
The media type of the layer, such as `application/vnd.docker.image.rootfs.diff.tar.gzip` or `application/vnd.oci.image.layer.v1.tar+gzip`.  
Type: String  
Required: No

## See Also
<a name="API_Layer_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/ecr-public-2020-10-30/Layer) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/ecr-public-2020-10-30/Layer) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/ecr-public-2020-10-30/Layer) 