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 CopyPackageVersions operation.
Copies package versions from one repository to another repository in the same domain.
You must specify versions
or versionRevisions
. You cannot specify both.
Namespace: Amazon.CodeArtifact.Model
Assembly: AWSSDK.CodeArtifact.dll
Version: 3.x.y.z
public class CopyPackageVersionsRequest : AmazonCodeArtifactRequest IAmazonWebServiceRequest
The CopyPackageVersionsRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
CopyPackageVersionsRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
AllowOverwrite | System.Nullable<System.Boolean> |
Gets and sets the property AllowOverwrite.
Set to true to overwrite a package version that already exists in the destination
repository. If set to false and the package version already exists in the destination
repository, the package version is returned in the |
![]() |
DestinationRepository | System.String |
Gets and sets the property DestinationRepository. The name of the repository into which package versions are copied. |
![]() |
Domain | System.String |
Gets and sets the property Domain. The name of the domain that contains the source and destination repositories. |
![]() |
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. |
![]() |
Format | Amazon.CodeArtifact.PackageFormat |
Gets and sets the property Format. The format of the package versions to be copied. |
![]() |
IncludeFromUpstream | System.Nullable<System.Boolean> |
Gets and sets the property IncludeFromUpstream. Set to true to copy packages from repositories that are upstream from the source repository to the destination repository. The default setting is false. For more information, see Working with upstream repositories. |
![]() |
Namespace | System.String |
Gets and sets the property Namespace. The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example: The namespace is required when copying package versions of the following formats:
|
![]() |
Package | System.String |
Gets and sets the property Package. The name of the package that contains the versions to be copied. |
![]() |
SourceRepository | System.String |
Gets and sets the property SourceRepository. The name of the repository that contains the package versions to be copied. |
![]() |
VersionRevisions | System.Collections.Generic.Dictionary<System.String, System.String> |
Gets and sets the property VersionRevisions.
A list of key-value pairs. The keys are package versions and the values are package
version revisions. A
You must specify |
![]() |
Versions | System.Collections.Generic.List<System.String> |
Gets and sets the property Versions. The versions of the package to be copied.
You must specify |
.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