Skip to main content

package_version_readmes

Creates, updates, deletes, gets or lists a package_version_readmes resource.

Overview

Namepackage_version_readmes
TypeResource
Idaws.codeartifact.package_version_readmes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
format_stringThe format of the package with the requested readme file. (npm, pypi, maven, nuget, generic, ruby, swift, cargo)
namespacestringThe namespace of the package version with the requested readme file. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package version is its groupId. The namespace of an npm or Swift package version is its scope. The namespace of a generic package is its namespace. Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. (pattern: <code>[^#/\s]+</code>)
packagestringThe name of the package that contains the returned readme file. (pattern: <code>[^#/\s]+</code>)
readmestringThe text of the returned readme file.
versionstringThe version of the package with the requested readme file. (pattern: <code>[^#/\s]+</code>)
version_revisionstringThe current revision associated with the package version. (pattern: <code>\S+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_package_version_readmeselectdomain, repository, format, package, version, regiondomain-owner, namespaceGets the readme file or descriptive text for a package version. The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domainstringThe name of the domain that contains the repository that contains the package version with the requested readme file.
formatstringA format that specifies the type of the package version with the requested readme file.
packagestringThe name of the package version that contains the requested readme file.
regionstringAWS region (default: us-east-1)
repositorystringThe repository that contains the package with the requested readme file.
versionstringA string that contains the package version (for example, 3.5.2).
domain-ownerstringThe 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
namespacestringThe namespace of the package version with the requested readme file. The package component that specifies its namespace depends on its type. For example: The namespace is required when requesting the readme from package versions of the following formats: Maven Swift generic The namespace of a Maven package version is its groupId. The namespace of an npm or Swift package version is its scope. The namespace of a generic package is its namespace. Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

SELECT examples

Gets the readme file or descriptive text for a package version. The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.

SELECT
format_,
namespace,
package,
readme,
version,
version_revision
FROM aws.codeartifact.package_version_readmes
WHERE domain = '{{ domain }}' -- required
AND repository = '{{ repository }}' -- required
AND format = '{{ format }}' -- required
AND package = '{{ package }}' -- required
AND version = '{{ version }}' -- required
AND region = '{{ region }}' -- required
AND `domain-owner` = '{{ domain-owner }}'
AND namespace = '{{ namespace }}'
;