AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the UpdatePackageVersionsStatus operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CodeArtifact.AmazonCodeArtifactRequest
      Amazon.CodeArtifact.Model.UpdatePackageVersionsStatusRequest

Namespace: Amazon.CodeArtifact.Model
Assembly: AWSSDK.CodeArtifact.dll
Version: 3.x.y.z

Syntax

C#
public class UpdatePackageVersionsStatusRequest : AmazonCodeArtifactRequest
         IAmazonWebServiceRequest

The UpdatePackageVersionsStatusRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Domain System.String

Gets and sets the property Domain.

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

Public Property DomainOwner System.String

Gets and sets the property DomainOwner.

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

Public Property ExpectedStatus Amazon.CodeArtifact.PackageVersionStatus

Gets and sets the property ExpectedStatus.

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.

Public Property Format Amazon.CodeArtifact.PackageFormat

Gets and sets the property Format.

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

Public Property Namespace System.String

Gets and sets the property Namespace.

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 and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

Public Property Package System.String

Gets and sets the property Package.

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

Public Property Repository System.String

Gets and sets the property Repository.

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

Public Property TargetStatus Amazon.CodeArtifact.PackageVersionStatus

Gets and sets the property TargetStatus.

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

Public Property VersionRevisions System.Collections.Generic.Dictionary<System.String, System.String>

Gets and sets the property VersionRevisions.

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.

Public Property Versions System.Collections.Generic.List<System.String>

Gets and sets the property Versions.

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

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5