GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Paws::CodeArtifact::CopyPackageVersions(3) User Contributed Perl Documentation Paws::CodeArtifact::CopyPackageVersions(3)

Paws::CodeArtifact::CopyPackageVersions - Arguments for method CopyPackageVersions on Paws::CodeArtifact

This class represents the parameters used for calling the method CopyPackageVersions on the CodeArtifact service. Use the attributes of this class as arguments to method CopyPackageVersions.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CopyPackageVersions.

    my $codeartifact = Paws->service('CodeArtifact');
    my $CopyPackageVersionsResult = $codeartifact->CopyPackageVersions(
      DestinationRepository => 'MyRepositoryName',
      Domain                => 'MyDomainName',
      Format                => 'npm',
      Package               => 'MyPackageName',
      SourceRepository      => 'MyRepositoryName',
      AllowOverwrite        => 1,                       # OPTIONAL
      DomainOwner           => 'MyAccountId',           # OPTIONAL
      IncludeFromUpstream   => 1,                       # OPTIONAL
      Namespace             => 'MyPackageNamespace',    # OPTIONAL
      VersionRevisions      => {
        'MyPackageVersion' => 'MyPackageVersionRevision'
        ,    # key: min: 1, max: 255, value: min: 1, max: 50
      },    # OPTIONAL
      Versions => [
        'MyPackageVersion', ...    # min: 1, max: 255
      ],    # OPTIONAL
    );
    # Results:
    my $FailedVersions     = $CopyPackageVersionsResult->FailedVersions;
    my $SuccessfulVersions = $CopyPackageVersionsResult->SuccessfulVersions;
    # Returns a L<Paws::CodeArtifact::CopyPackageVersionsResult> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see <https://docs.aws.amazon.com/goto/WebAPI/codeartifact/CopyPackageVersions>

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 "failedVersions" field of the response with an "ALREADY_EXISTS" error code.

REQUIRED DestinationRepository => Str

The name of the repository into which package versions are copied.

REQUIRED Domain => Str

The name of the domain that contains the source and destination repositories.

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

REQUIRED Format => Str

The format of the package that is copied. The valid package types are:

  • "npm": A Node Package Manager (npm) package.
  • "pypi": A Python Package Index (PyPI) package.
  • "maven": A Maven package that contains compiled code in a distributable format, such as a JAR file.

Valid values are: "npm", "pypi", "maven", "nuget"

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 (https://docs.aws.amazon.com/codeartifact/latest/ug/repos-upstream.html).

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

  • The namespace of a Maven package is its "groupId".
  • The namespace of an npm package is its "scope".
  • A Python package does not contain a corresponding component, so Python packages do not have a namespace.

REQUIRED Package => Str

The name of the package that is copied.

REQUIRED SourceRepository => Str

The name of the repository that contains the package versions to copy.

A list of key-value pairs. The keys are package versions and the values are package version revisions. A "CopyPackageVersion" operation succeeds if the specified versions in the source repository match the specified package version revision.

You must specify "versions" or "versionRevisions". You cannot specify both.

The versions of the package to copy.

You must specify "versions" or "versionRevisions". You cannot specify both.

This class forms part of Paws, documenting arguments for method CopyPackageVersions in Paws::CodeArtifact

The source code is located here: <https://github.com/pplu/aws-sdk-perl>

Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>

2022-06-01 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.