Module Values.UpdatePackageVersionsStatusRequestSource

Updates the status of one or more versions of a package. Using UpdatePackageVersionsStatus, you can update the status of package versions to Archived, Published, or Unlisted. To set the status of a package version to Disposed, use DisposePackageVersions.

Sourcetype nonrec t = {
  1. domain : DomainName.t;
    (*

    The name of the domain that contains the repository that contains the package versions with a status to be updated.

    *)
  2. domainOwner : AccountId.t option;
    (*

    The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

    *)
  3. repository : RepositoryName.t;
    (*

    The repository that contains the package versions with the status you want to update.

    *)
  4. format : PackageFormat.t;
    (*

    A format that specifies the type of the package with the statuses to update.

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

    The namespace of the package version to be updated. 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.

    *)
  6. package : PackageName.t;
    (*

    The name of the package with the version statuses to update.

    *)
  7. versions : PackageVersionList.t;
    (*

    An array of strings that specify the versions of the package with the statuses to update.

    *)
  8. versionRevisions : PackageVersionRevisionMap.t option;
    (*

    A map of package versions and package version revisions. The map key is the package version (for example, 3.5.2), and the map value is the package version revision.

    *)
  9. expectedStatus : PackageVersionStatus.t option;
    (*

    The package version’s expected status before it is updated. If expectedStatus is provided, the package version's status is updated only if its status at the time UpdatePackageVersionsStatus is called matches expectedStatus.

    *)
  10. targetStatus : PackageVersionStatus.t;
    (*

    The status you want to change the package version status to.

    *)
}
Sourceval context_ : string
Sourceval make : ?domainOwner:??? -> ?namespace:??? -> ?versionRevisions:??? -> ?expectedStatus:??? -> domain:DomainName.t -> repository:RepositoryName.t -> format:PackageFormat.t -> package:PackageName.t -> versions:PackageVersionList.t -> targetStatus:PackageVersionStatus.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `String of PackageVersion.t ] list | `Map of ([> `String of PackageVersion.t ] * [> `String of PackageVersionRevision.t ]) list | `String of DomainName.t ]) 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