

# PackageIdentity

Identifies a package or a set of versions of a package. The ecosystem and name are required; the version members narrow the match when present. Omitting both version members matches every version.

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

 ** ecosystem **   <a name="continuum-Type-PackageIdentity-ecosystem"></a>
The package ecosystem, such as `npm` or `pypi`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[a-z][a-z0-9-]*`   
Required: Yes

 ** name **   <a name="continuum-Type-PackageIdentity-name"></a>
The package name, as used in its ecosystem.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 512.  
Required: Yes

 ** version **   <a name="continuum-Type-PackageIdentity-version"></a>
Exact version. Mutually exclusive with versionRange, validated server-side.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: No

 ** versionRange **   <a name="continuum-Type-PackageIdentity-versionRange"></a>
A version range as one or more comparisons separated by commas, such as `>=1.0, <2.0`. Each comparison is `=`, `>`, `>=`, `<`, or `<=` followed by a version in the ecosystem's own format. Ecosystem shorthands such as `^1.0` or `~=1.2` aren't accepted. Mutually exclusive with version.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: No

## See Also
<a name="API_PackageIdentity_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/continuum-2022-07-26/PackageIdentity) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/continuum-2022-07-26/PackageIdentity) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/continuum-2022-07-26/PackageIdentity) 