Creates a new package version containing one or more assets (or files)
Source:R/codeartifact_operations.R
codeartifact_publish_package_version.RdCreates a new package version containing one or more assets (or files).
See https://www.paws-r-sdk.com/docs/codeartifact_publish_package_version/ for full documentation.
Usage
codeartifact_publish_package_version(
domain,
domainOwner = NULL,
repository,
format,
namespace = NULL,
package,
packageVersion,
assetContent,
assetName,
assetSHA256,
unfinished = NULL
)Arguments
- domain
[required] The name of the domain that contains the repository that contains the package version to publish.
- domainOwner
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
- repository
[required] The name of the repository that the package version will be published to.
- format
[required] A format that specifies the type of the package version with the requested asset file.
The only supported value is
generic.- namespace
The namespace of the package version to publish.
- package
[required] The name of the package version to publish.
- packageVersion
[required] The package version to publish (for example,
3.5.2).- assetContent
[required] The content of the asset to publish.
- assetName
[required] The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters:
~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `[ ]: R:%20
- assetSHA256
[required] The SHA256 hash of the
assetContentto publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the CodeArtifact User Guide).This value is used as an integrity check to verify that the
assetContenthas not changed after it was originally sent.- unfinished
Specifies whether the package version should remain in the
unfinishedstate. If omitted, the package version status will be set toPublished(see Package version status in the CodeArtifact User Guide).Valid values:
unfinished