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
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | Base-aws |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Authenticated organization UUID used for field resolution and connection scoping. |
connection_uuid | uuid | Yes | — | AWS CloudConnection UUID for the target CodeArtifact account, scoped to the caller organization. |
workflow_run_id | string | No | — | Engine DAG run ID stamped onto child steps. |
region | string | No | — | AWS region override. |
domain | string | Yes | — | CodeArtifact domain that contains the repository to scan. |
domain_owner | string | No | — | AWS account ID that owns the domain, when it differs from the connection account. |
repository | string | Yes | — | CodeArtifact repository to scan for package versions. |
format | string | No | — | Package format filter applied during enumeration, or shared format for string package entries. |
namespace | string | No | — | Namespace filter applied during enumeration, or shared namespace for explicit package entries. |
package_prefix | string | No | — | Package name prefix filter applied during enumeration; ignored when packages is supplied. |
packages | json | No | — | Explicit list of package names or {format, namespace, package} objects to resolve directly. |
version_status | string | No | — | Optional package-version status filter passed to ListPackageVersions, e.g. Published. |
max_packages | integer | No | — | Soft cap on packages scanned per run, checked between full API pages; defaults to 200. |
next_token | string | No | — | Resumes a prior truncated enumeration; ignored when packages is supplied. |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | No | — | Organization UUID echoed from input. |
connection_uuid | uuid | No | — | CloudConnection UUID echoed from input. |
region | string | No | — | AWS region used. |
domain | string | No | — | CodeArtifact domain scanned. |
repository | string | No | — | CodeArtifact repository scanned. |
package_results | list | No | — | Per-package result rows with outcome success, missing, or error. |
versions | list | No | — | Successful latest-version rows only; empty list when no package has a resolved version. |
success_count | integer | No | — | Number of packages with a resolved latest version. |
missing_count | integer | No | — | Number of packages that had no resolvable version. |
error_count | integer | No | — | Number of packages that failed independently while resolving versions. |
version_count | integer | No | — | Alias of success_count for compatibility. |
packages_scanned | integer | No | — | Number of packages considered, whether or not a version was resolved. |
truncated | boolean | No | — | True when max_packages capped enumeration before the full repository was scanned. |
next_page_token | string | No | — | CodeArtifact pagination token to resume enumeration when truncated is true. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Failed DAG layer if engine supplies one. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
failed_at | string | No | — | ISO failure timestamp. |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
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"
}
}