#[non_exhaustive]pub struct PublishPackageVersionInput {
pub asset_content: ByteStream,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.asset_content: ByteStream
The content of the asset to publish.
Implementations§
source§impl PublishPackageVersionInput
impl PublishPackageVersionInput
sourcepub fn domain(&self) -> Option<&str>
pub fn domain(&self) -> Option<&str>
The name of the domain that contains the repository that contains the package version to publish.
sourcepub fn domain_owner(&self) -> Option<&str>
pub fn domain_owner(&self) -> Option<&str>
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
sourcepub fn repository(&self) -> Option<&str>
pub fn repository(&self) -> Option<&str>
The name of the repository that the package version will be published to.
sourcepub fn format(&self) -> Option<&PackageFormat>
pub fn format(&self) -> Option<&PackageFormat>
A format that specifies the type of the package version with the requested asset file.
sourcepub fn package_version(&self) -> Option<&str>
pub fn package_version(&self) -> Option<&str>
The package version to publish (for example, 3.5.2
).
sourcepub fn asset_content(&self) -> &ByteStream
pub fn asset_content(&self) -> &ByteStream
The content of the asset to publish.
sourcepub fn asset_name(&self) -> Option<&str>
pub fn asset_name(&self) -> Option<&str>
The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: ~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `
sourcepub fn asset_sha256(&self) -> Option<&str>
pub fn asset_sha256(&self) -> Option<&str>
The SHA256 hash of the assetContent
to 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 assetContent
has not changed after it was originally sent.
sourcepub fn unfinished(&self) -> Option<bool>
pub fn unfinished(&self) -> Option<bool>
Specifies whether the package version should remain in the unfinished
state. If omitted, the package version status will be set to Published
(see Package version status in the CodeArtifact User Guide).
Valid values: unfinished
source§impl PublishPackageVersionInput
impl PublishPackageVersionInput
sourcepub fn builder() -> PublishPackageVersionInputBuilder
pub fn builder() -> PublishPackageVersionInputBuilder
Creates a new builder-style object to manufacture PublishPackageVersionInput
.
source§impl PublishPackageVersionInput
impl PublishPackageVersionInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<PublishPackageVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation( self, _config: &Config ) -> Result<Operation<PublishPackageVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PublishPackageVersion
>