Skip to content
Proud to collaborate with Microsoft for Startups

aws.codeartifact.list_latest_package_versions ​

Resolve the latest version of every package in a CodeArtifact repository or explicit package list in a single batched, read-only run using a CloudConnection UUID.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryBase-aws
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Authenticated organization UUID used for field resolution and connection scoping.
connection_uuiduuidYes—AWS CloudConnection UUID for the target CodeArtifact account, scoped to the caller organization.
workflow_run_idstringNo—Engine DAG run ID stamped onto child steps.
regionstringNo—AWS region override.
domainstringYes—CodeArtifact domain that contains the repository to scan.
domain_ownerstringNo—AWS account ID that owns the domain, when it differs from the connection account.
repositorystringYes—CodeArtifact repository to scan for package versions.
formatstringNo—Package format filter applied during enumeration, or shared format for string package entries.
namespacestringNo—Namespace filter applied during enumeration, or shared namespace for explicit package entries.
package_prefixstringNo—Package name prefix filter applied during enumeration; ignored when packages is supplied.
packagesjsonNo—Explicit list of package names or {format, namespace, package} objects to resolve directly.
version_statusstringNo—Optional package-version status filter passed to ListPackageVersions, e.g. Published.
max_packagesintegerNo—Soft cap on packages scanned per run, checked between full API pages; defaults to 200.
next_tokenstringNo—Resumes a prior truncated enumeration; ignored when packages is supplied.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo—Organization UUID echoed from input.
connection_uuiduuidNo—CloudConnection UUID echoed from input.
regionstringNo—AWS region used.
domainstringNo—CodeArtifact domain scanned.
repositorystringNo—CodeArtifact repository scanned.
package_resultslistNo—Per-package result rows with outcome success, missing, or error.
versionslistNo—Successful latest-version rows only; empty list when no package has a resolved version.
success_countintegerNo—Number of packages with a resolved latest version.
missing_countintegerNo—Number of packages that had no resolvable version.
error_countintegerNo—Number of packages that failed independently while resolving versions.
version_countintegerNo—Alias of success_count for compatibility.
packages_scannedintegerNo—Number of packages considered, whether or not a version was resolved.
truncatedbooleanNo—True when max_packages capped enumeration before the full repository was scanned.
next_page_tokenstringNo—CodeArtifact pagination token to resume enumeration when truncated is true.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Failed DAG layer if engine supplies one.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.
failed_atstringNo—ISO failure timestamp.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "aws.codeartifact.list_latest_package_versions",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "domain": "value",
    "repository": "value"
  }
}