AWS SDK Version 4 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 DisposePackageVersions operation. Deletes the assets in package versions and sets the package versions' status to Disposed. A disposed package version cannot be restored in your repository because its assets are deleted.

To view all disposed package versions in a repository, use ListPackageVersions and set the status parameter to Disposed.

To view information about a disposed package version, use DescribePackageVersion.

Inheritance Hierarchy

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

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

Syntax

C#
public class DisposePackageVersionsRequest : AmazonCodeArtifactRequest
         IAmazonWebServiceRequest

The DisposePackageVersionsRequest 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 you want to dispose.

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 expected status of the package version to dispose.

Public Property Format Amazon.CodeArtifact.PackageFormat

Gets and sets the property Format.

A format that specifies the type of package versions you want to dispose.

Public Property Namespace System.String

Gets and sets the property Namespace.

The namespace of the package versions to be disposed. The package component that specifies its namespace depends on its type. For example:

The namespace is required when disposing package versions of the following formats:

  • Maven

  • Swift

  • generic

  • 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.

Public Property Package System.String

Gets and sets the property Package.

The name of the package with the versions you want to dispose.

Public Property Repository System.String

Gets and sets the property Repository.

The name of the repository that contains the package versions you want to dispose.

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

Gets and sets the property VersionRevisions.

The revisions of the package versions you want to dispose.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

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

Gets and sets the property Versions.

The versions of the package you want to dispose.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer