

# PortRange
<a name="API_PortRange"></a>

Specifies a range of ports.

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

 ** endPort **   <a name="lambdamicrovm-Type-PortRange-endPort"></a>
The ending port number of the range.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 65535.  
Required: Yes

 ** startPort **   <a name="lambdamicrovm-Type-PortRange-startPort"></a>
The starting port number of the range.  
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 65535.  
Required: Yes

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/lambda-microvms-2025-09-09/PortRange) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lambda-microvms-2025-09-09/PortRange) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lambda-microvms-2025-09-09/PortRange) 