Module Values.PublishPackageVersionResultSource

Creates a new package version containing one or more assets (or files). The unfinished flag can be used to keep the package version in the Unfinished state until all of its assets have been uploaded (see Package version status in the CodeArtifact user guide). To set the package version’s status to Published, omit the unfinished flag when uploading the final asset, or set the status using UpdatePackageVersionStatus. Once a package version’s status is set to Published, it cannot change back to Unfinished. Only generic packages can be published using this API. For more information, see Using generic packages in the CodeArtifact User Guide.

Sourcetype nonrec t = {
  1. format : PackageFormat.t option;
    (*

    The format of the package version.

    *)
  2. namespace : PackageNamespace.t option;
    (*

    The namespace of the package version.

    *)
  3. package : PackageName.t option;
    (*

    The name of the package.

    *)
  4. version : PackageVersion.t option;
    (*

    The version of the package.

    *)
  5. versionRevision : PackageVersionRevision.t option;
    (*

    The revision of the package version.

    *)
  6. status : PackageVersionStatus.t option;
    (*

    A string that contains the status of the package version. For more information, see Package version status in the CodeArtifact User Guide.

    *)
  7. asset : AssetSummary.t option;
    (*

    An AssetSummary for the published asset.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `ConflictException of ConflictException.t
  3. | `InternalServerException of InternalServerException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  6. | `ThrottlingException of ThrottlingException.t
  7. | `ValidationException of ValidationException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?format:??? -> ?namespace:??? -> ?package:??? -> ?version:??? -> ?versionRevision:??? -> ?status:??? -> ?asset:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ServiceQuotaExceededException of ServiceQuotaExceededException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of PackageNamespace.t | `Structure of (string * [> `Long of LongOptional.t | `Map of ([> `Enum of string ] * [> `String of HashValue.t ]) list | `String of AssetName.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t