View a markdown version of this page

PackageIdentity - AWS Continuum for Code Vulnerabilities

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

ecosystem

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

The package name, as used in its ecosystem.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 512.

Required: Yes

version

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 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

For more information about using this API in one of the language-specific AWS SDKs, see the following: