2020/11/23 - CodeArtifact - 18 updated api methods
Changes Add support for the NuGet package format.
{'repository': {'externalConnections': {'packageFormat': {'nuget'}}}}
Adds an existing external connection to a repository. One external connection is allowed per repository.
Note
A repository can have one or more upstream repositories, or an external connection.
See also: AWS API Documentation
Request Syntax
client.associate_external_connection( domain='string', domainOwner='string', repository='string', externalConnection='string' )
string
[REQUIRED]
The name of the domain that contains the repository.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository to which the external connection is added.
string
[REQUIRED]
The name of the external connection to add to the repository. The following values are supported:
public:npmjs - for the npm public repository.
public:pypi - for the Python Package Index.
public:maven-central - for Maven Central.
public:maven-googleandroid - for the Google Android repository.
public:maven-gradleplugins - for the Gradle plugins repository.
public:maven-commonsware - for the CommonsWare Android repository.
public:nuget-org - for the NuGet Gallery.
dict
Response Syntax
{ 'repository': { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'upstreams': [ { 'repositoryName': 'string' }, ], 'externalConnections': [ { 'externalConnectionName': 'string', 'packageFormat': 'npm'|'pypi'|'maven'|'nuget', 'status': 'Available' }, ] } }
Response Structure
(dict) --
repository (dict) --
Information about the connected repository after processing the request.
name (string) --
The name of the repository.
administratorAccount (string) --
The 12-digit account number of the AWS account that manages the repository.
domainName (string) --
The name of the domain that contains the repository.
domainOwner (string) --
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
arn (string) --
The Amazon Resource Name (ARN) of the repository.
description (string) --
A text description of the repository.
upstreams (list) --
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository.
repositoryName (string) --
The name of an upstream repository.
externalConnections (list) --
An array of external connections associated with the repository.
(dict) --
Contains information about the external connection of a repository.
externalConnectionName (string) --
The name of the external connection associated with a repository.
packageFormat (string) --
The package format associated with a repository's external connection. The valid package formats 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.
nuget : A NuGet package.
status (string) --
The status of the external connection of a repository. There is one valid value, Available .
{'format': {'nuget'}}
Copies package versions from one repository to another repository in the same domain.
Note
You must specify versions or versionRevisions . You cannot specify both.
See also: AWS API Documentation
Request Syntax
client.copy_package_versions( domain='string', domainOwner='string', sourceRepository='string', destinationRepository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', versions=[ 'string', ], versionRevisions={ 'string': 'string' }, allowOverwrite=True|False, includeFromUpstream=True|False )
string
[REQUIRED]
The name of the domain that contains the source and destination repositories.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository that contains the package versions to copy.
string
[REQUIRED]
The name of the repository into which package versions are copied.
string
[REQUIRED]
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.
nuget : A NuGet package.
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package that is copied.
list
The versions of the package to copy.
Note
You must specify versions or versionRevisions . You cannot specify both.
(string) --
dict
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.
Note
You must specify versions or versionRevisions . You cannot specify both.
(string) --
(string) --
boolean
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.
boolean
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 .
dict
Response Syntax
{ 'successfulVersions': { 'string': { 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' } }, 'failedVersions': { 'string': { 'errorCode': 'ALREADY_EXISTS'|'MISMATCHED_REVISION'|'MISMATCHED_STATUS'|'NOT_ALLOWED'|'NOT_FOUND'|'SKIPPED', 'errorMessage': 'string' } } }
Response Structure
(dict) --
successfulVersions (dict) --
A list of the package versions that were successfully copied to your repository.
(string) --
(dict) --
Contains the revision and status of a package version.
revision (string) --
The revision of a package version.
status (string) --
The status of a package version. Valid statuses are:
Published
Unfinished
Unlisted
Archived
Disposed
failedVersions (dict) --
A map of package versions that failed to copy and their error codes. The possible error codes are in the PackageVersionError data type. They are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
(string) --
(dict) --
An error associated with package.
errorCode (string) --
The error code associated with the error. Valid error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
errorMessage (string) --
The error message associated with the error.
{'repository': {'externalConnections': {'packageFormat': {'nuget'}}}}
Creates a repository.
See also: AWS API Documentation
Request Syntax
client.create_repository( domain='string', domainOwner='string', repository='string', description='string', upstreams=[ { 'repositoryName': 'string' }, ], tags=[ { 'key': 'string', 'value': 'string' }, ] )
string
[REQUIRED]
The domain that contains the created repository.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository to create.
string
A description of the created repository.
list
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository. A list of UpstreamRepository objects is an input parameter to ` CreateRepository https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_CreateRepository.html`__ and ` UpdateRepository https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdateRepository.html`__ .
repositoryName (string) -- [REQUIRED]
The name of an upstream repository.
list
One or more tag key-value pairs for the repository.
(dict) --
A tag is a key-value pair that can be used to manage, search for, or filter resources in AWS CodeArtifact.
key (string) -- [REQUIRED]
The tag key.
value (string) -- [REQUIRED]
The tag value.
dict
Response Syntax
{ 'repository': { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'upstreams': [ { 'repositoryName': 'string' }, ], 'externalConnections': [ { 'externalConnectionName': 'string', 'packageFormat': 'npm'|'pypi'|'maven'|'nuget', 'status': 'Available' }, ] } }
Response Structure
(dict) --
repository (dict) --
Information about the created repository after processing the request.
name (string) --
The name of the repository.
administratorAccount (string) --
The 12-digit account number of the AWS account that manages the repository.
domainName (string) --
The name of the domain that contains the repository.
domainOwner (string) --
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
arn (string) --
The Amazon Resource Name (ARN) of the repository.
description (string) --
A text description of the repository.
upstreams (list) --
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository.
repositoryName (string) --
The name of an upstream repository.
externalConnections (list) --
An array of external connections associated with the repository.
(dict) --
Contains information about the external connection of a repository.
externalConnectionName (string) --
The name of the external connection associated with a repository.
packageFormat (string) --
The package format associated with a repository's external connection. The valid package formats 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.
nuget : A NuGet package.
status (string) --
The status of the external connection of a repository. There is one valid value, Available .
{'format': {'nuget'}}
Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived . Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, `` ListackageVersions `` ), but you can restore them using `` UpdatePackageVersionsStatus `` .
See also: AWS API Documentation
Request Syntax
client.delete_package_versions( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', versions=[ 'string', ], expectedStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' )
string
[REQUIRED]
The name of the domain that contains the package to delete.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository that contains the package versions to delete.
string
[REQUIRED]
The format of the package versions to delete. The valid values are:
npm
pypi
maven
nuget
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package with the versions to delete.
list
[REQUIRED]
An array of strings that specify the versions of the package to delete.
(string) --
string
The expected status of the package version to delete. Valid values are:
Published
Unfinished
Unlisted
Archived
Disposed
dict
Response Syntax
{ 'successfulVersions': { 'string': { 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' } }, 'failedVersions': { 'string': { 'errorCode': 'ALREADY_EXISTS'|'MISMATCHED_REVISION'|'MISMATCHED_STATUS'|'NOT_ALLOWED'|'NOT_FOUND'|'SKIPPED', 'errorMessage': 'string' } } }
Response Structure
(dict) --
successfulVersions (dict) --
A list of the package versions that were successfully deleted.
(string) --
(dict) --
Contains the revision and status of a package version.
revision (string) --
The revision of a package version.
status (string) --
The status of a package version. Valid statuses are:
Published
Unfinished
Unlisted
Archived
Disposed
failedVersions (dict) --
A PackageVersionError object that contains a map of errors codes for the deleted package that failed. The possible error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
(string) --
(dict) --
An error associated with package.
errorCode (string) --
The error code associated with the error. Valid error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
errorMessage (string) --
The error message associated with the error.
{'repository': {'externalConnections': {'packageFormat': {'nuget'}}}}
Deletes a repository.
See also: AWS API Documentation
Request Syntax
client.delete_repository( domain='string', domainOwner='string', repository='string' )
string
[REQUIRED]
The name of the domain that contains the repository to delete.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository to delete.
dict
Response Syntax
{ 'repository': { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'upstreams': [ { 'repositoryName': 'string' }, ], 'externalConnections': [ { 'externalConnectionName': 'string', 'packageFormat': 'npm'|'pypi'|'maven'|'nuget', 'status': 'Available' }, ] } }
Response Structure
(dict) --
repository (dict) --
Information about the deleted repository after processing the request.
name (string) --
The name of the repository.
administratorAccount (string) --
The 12-digit account number of the AWS account that manages the repository.
domainName (string) --
The name of the domain that contains the repository.
domainOwner (string) --
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
arn (string) --
The Amazon Resource Name (ARN) of the repository.
description (string) --
A text description of the repository.
upstreams (list) --
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository.
repositoryName (string) --
The name of an upstream repository.
externalConnections (list) --
An array of external connections associated with the repository.
(dict) --
Contains information about the external connection of a repository.
externalConnectionName (string) --
The name of the external connection associated with a repository.
packageFormat (string) --
The package format associated with a repository's external connection. The valid package formats 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.
nuget : A NuGet package.
status (string) --
The status of the external connection of a repository. There is one valid value, Available .
{'format': {'nuget'}}Response
{'packageVersion': {'format': {'nuget'}}}
Returns a ` PackageVersionDescription https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html`__ object that contains information about the requested package version.
See also: AWS API Documentation
Request Syntax
client.describe_package_version( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', packageVersion='string' )
string
[REQUIRED]
The name of the domain that contains the repository that contains the package version.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository that contains the package version.
string
[REQUIRED]
A format that specifies the type of the requested package version. The valid values are:
npm
pypi
maven
nuget
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the requested package version.
string
[REQUIRED]
A string that contains the package version (for example, 3.5.2 ).
dict
Response Syntax
{ 'packageVersion': { 'format': 'npm'|'pypi'|'maven'|'nuget', 'namespace': 'string', 'packageName': 'string', 'displayName': 'string', 'version': 'string', 'summary': 'string', 'homePage': 'string', 'sourceCodeRepository': 'string', 'publishedTime': datetime(2015, 1, 1), 'licenses': [ { 'name': 'string', 'url': 'string' }, ], 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' } }
Response Structure
(dict) --
packageVersion (dict) --
A `` PackageVersionDescription `` object that contains information about the requested package version.
format (string) --
The format of the package version. The valid package formats 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.
nuget : A NuGet package.
namespace (string) --
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
packageName (string) --
The name of the requested package.
displayName (string) --
The name of the package that is displayed. The displayName varies depending on the package version's format. For example, if an npm package is named ui , is in the namespace vue , and has the format npm , then the displayName is @vue/ui .
version (string) --
The version of the package.
summary (string) --
A summary of the package version. The summary is extracted from the package. The information in and detail level of the summary depends on the package version's format.
homePage (string) --
The homepage associated with the package.
sourceCodeRepository (string) --
The repository for the source code in the package version, or the source code used to build it.
publishedTime (datetime) --
A timestamp that contains the date and time the package version was published.
licenses (list) --
Information about licenses associated with the package version.
(dict) --
Details of the license data.
name (string) --
Name of the license.
url (string) --
The URL for license data.
revision (string) --
The revision of the package version.
status (string) --
A string that contains the status of the package version. It can be one of the following:
Published
Unfinished
Unlisted
Archived
Disposed
{'repository': {'externalConnections': {'packageFormat': {'nuget'}}}}
Returns a RepositoryDescription object that contains detailed information about the requested repository.
See also: AWS API Documentation
Request Syntax
client.describe_repository( domain='string', domainOwner='string', repository='string' )
string
[REQUIRED]
The name of the domain that contains the repository to describe.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
A string that specifies the name of the requested repository.
dict
Response Syntax
{ 'repository': { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'upstreams': [ { 'repositoryName': 'string' }, ], 'externalConnections': [ { 'externalConnectionName': 'string', 'packageFormat': 'npm'|'pypi'|'maven'|'nuget', 'status': 'Available' }, ] } }
Response Structure
(dict) --
repository (dict) --
A RepositoryDescription object that contains the requested repository information.
name (string) --
The name of the repository.
administratorAccount (string) --
The 12-digit account number of the AWS account that manages the repository.
domainName (string) --
The name of the domain that contains the repository.
domainOwner (string) --
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
arn (string) --
The Amazon Resource Name (ARN) of the repository.
description (string) --
A text description of the repository.
upstreams (list) --
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository.
repositoryName (string) --
The name of an upstream repository.
externalConnections (list) --
An array of external connections associated with the repository.
(dict) --
Contains information about the external connection of a repository.
externalConnectionName (string) --
The name of the external connection associated with a repository.
packageFormat (string) --
The package format associated with a repository's external connection. The valid package formats 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.
nuget : A NuGet package.
status (string) --
The status of the external connection of a repository. There is one valid value, Available .
{'repository': {'externalConnections': {'packageFormat': {'nuget'}}}}
Removes an existing external connection from a repository.
See also: AWS API Documentation
Request Syntax
client.disassociate_external_connection( domain='string', domainOwner='string', repository='string', externalConnection='string' )
string
[REQUIRED]
The name of the domain that contains the repository from which to remove the external repository.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository from which the external connection will be removed.
string
[REQUIRED]
The name of the external connection to be removed from the repository.
dict
Response Syntax
{ 'repository': { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'upstreams': [ { 'repositoryName': 'string' }, ], 'externalConnections': [ { 'externalConnectionName': 'string', 'packageFormat': 'npm'|'pypi'|'maven'|'nuget', 'status': 'Available' }, ] } }
Response Structure
(dict) --
repository (dict) --
The repository associated with the removed external connection.
name (string) --
The name of the repository.
administratorAccount (string) --
The 12-digit account number of the AWS account that manages the repository.
domainName (string) --
The name of the domain that contains the repository.
domainOwner (string) --
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
arn (string) --
The Amazon Resource Name (ARN) of the repository.
description (string) --
A text description of the repository.
upstreams (list) --
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository.
repositoryName (string) --
The name of an upstream repository.
externalConnections (list) --
An array of external connections associated with the repository.
(dict) --
Contains information about the external connection of a repository.
externalConnectionName (string) --
The name of the external connection associated with a repository.
packageFormat (string) --
The package format associated with a repository's external connection. The valid package formats 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.
nuget : A NuGet package.
status (string) --
The status of the external connection of a repository. There is one valid value, Available .
{'format': {'nuget'}}
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 https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html`__ and set the ` status https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax`__ parameter to Disposed .
To view information about a disposed package version, use ` DescribePackageVersion https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html`__ ..
See also: AWS API Documentation
Request Syntax
client.dispose_package_versions( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', versions=[ 'string', ], versionRevisions={ 'string': 'string' }, expectedStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' )
string
[REQUIRED]
The name of the domain that contains the repository you want to dispose.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository that contains the package versions you want to dispose.
string
[REQUIRED]
A format that specifies the type of package versions you want to dispose. The valid values are:
npm
pypi
maven
nuget
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package with the versions you want to dispose.
list
[REQUIRED]
The versions of the package you want to dispose.
(string) --
dict
The revisions of the package versions you want to dispose.
(string) --
(string) --
string
The expected status of the package version to dispose. Valid values are:
Published
Unfinished
Unlisted
Archived
Disposed
dict
Response Syntax
{ 'successfulVersions': { 'string': { 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' } }, 'failedVersions': { 'string': { 'errorCode': 'ALREADY_EXISTS'|'MISMATCHED_REVISION'|'MISMATCHED_STATUS'|'NOT_ALLOWED'|'NOT_FOUND'|'SKIPPED', 'errorMessage': 'string' } } }
Response Structure
(dict) --
successfulVersions (dict) --
A list of the package versions that were successfully disposed.
(string) --
(dict) --
Contains the revision and status of a package version.
revision (string) --
The revision of a package version.
status (string) --
The status of a package version. Valid statuses are:
Published
Unfinished
Unlisted
Archived
Disposed
failedVersions (dict) --
A PackageVersionError object that contains a map of errors codes for the disposed package versions that failed. The possible error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
(string) --
(dict) --
An error associated with package.
errorCode (string) --
The error code associated with the error. Valid error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
errorMessage (string) --
The error message associated with the error.
{'format': {'nuget'}}
Returns an asset (or file) that is in a package. For example, for a Maven package version, use GetPackageVersionAsset to download a JAR file, a POM file, or any other assets in the package version.
See also: AWS API Documentation
Request Syntax
client.get_package_version_asset( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', packageVersion='string', asset='string', packageVersionRevision='string' )
string
[REQUIRED]
The domain that contains the repository that contains the package version with the requested asset.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The repository that contains the package version with the requested asset.
string
[REQUIRED]
A format that specifies the type of the package version with the requested asset file. The valid values are:
npm
pypi
maven
nuget
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package that contains the requested asset.
string
[REQUIRED]
A string that contains the package version (for example, 3.5.2 ).
string
[REQUIRED]
The name of the requested asset.
string
The name of the package version revision that contains the requested asset.
dict
Response Syntax
{ 'asset': StreamingBody(), 'assetName': 'string', 'packageVersion': 'string', 'packageVersionRevision': 'string' }
Response Structure
(dict) --
asset (:class:`.StreamingBody`) --
The binary file, or asset, that is downloaded.
assetName (string) --
The name of the asset that is downloaded.
packageVersion (string) --
A string that contains the package version (for example, 3.5.2 ).
packageVersionRevision (string) --
The name of the package version revision that contains the downloaded asset.
{'format': {'nuget'}}
Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact extracts a description from a metadata file. For example, from the <description> element in the pom.xml file of a Maven package.
The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
See also: AWS API Documentation
Request Syntax
client.get_package_version_readme( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', packageVersion='string' )
string
[REQUIRED]
The name of the domain that contains the repository that contains the package version with the requested readme file.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The repository that contains the package with the requested readme file.
string
[REQUIRED]
A format that specifies the type of the package version with the requested readme file. The valid values are:
npm
pypi
maven
nuget
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package version that contains the requested readme file.
string
[REQUIRED]
A string that contains the package version (for example, 3.5.2 ).
dict
Response Syntax
{ 'format': 'npm'|'pypi'|'maven'|'nuget', 'namespace': 'string', 'package': 'string', 'version': 'string', 'versionRevision': 'string', 'readme': 'string' }
Response Structure
(dict) --
format (string) --
The format of the package with the requested readme file. Valid format types are:
npm
pypi
maven
nuget
namespace (string) --
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
package (string) --
The name of the package that contains the returned readme file.
version (string) --
The version of the package with the requested readme file.
versionRevision (string) --
The current revision associated with the package version.
readme (string) --
The text of the returned readme file.
{'format': {'nuget'}}
Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:
npm
pypi
maven
nuget
See also: AWS API Documentation
Request Syntax
client.get_repository_endpoint( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget' )
string
[REQUIRED]
The name of the domain that contains the repository.
string
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository.
string
[REQUIRED]
Returns which endpoint of a repository to return. A repository has one endpoint for each package format:
npm
pypi
maven
nuget
dict
Response Syntax
{ 'repositoryEndpoint': 'string' }
Response Structure
(dict) --
repositoryEndpoint (string) --
A string that specifies the URL of the returned endpoint.
{'format': {'nuget'}}
Returns a list of ` AssetSummary https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html`__ objects for assets in a package version.
See also: AWS API Documentation
Request Syntax
client.list_package_version_assets( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', packageVersion='string', maxResults=123, nextToken='string' )
string
[REQUIRED]
The name of the domain that contains the repository associated with the package version assets.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository that contains the package that contains the returned package version assets.
string
[REQUIRED]
The format of the package that contains the returned package version assets. 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.
nuget : A NuGet package.
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package that contains the returned package version assets.
string
[REQUIRED]
A string that contains the package version (for example, 3.5.2 ).
integer
The maximum number of results to return per page.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dict
Response Syntax
{ 'format': 'npm'|'pypi'|'maven'|'nuget', 'namespace': 'string', 'package': 'string', 'version': 'string', 'versionRevision': 'string', 'nextToken': 'string', 'assets': [ { 'name': 'string', 'size': 123, 'hashes': { 'string': 'string' } }, ] }
Response Structure
(dict) --
format (string) --
The format of the package that contains the returned package version assets.
namespace (string) --
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
package (string) --
The name of the package that contains the returned package version assets.
version (string) --
The version of the package associated with the returned assets.
versionRevision (string) --
The current revision associated with the package version.
nextToken (string) --
If there are additional results, this is the token for the next set of results.
assets (list) --
The returned list of ` AssetSummary https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html`__ objects.
(dict) --
Contains details about a package version asset.
name (string) --
The name of the asset.
size (integer) --
The size of the asset.
hashes (dict) --
The hashes of the asset.
(string) --
(string) --
{'format': {'nuget'}}
Returns the direct dependencies for a package version. The dependencies are returned as ` PackageDependency https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html`__ objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the package.json file for npm packages and the pom.xml file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.
See also: AWS API Documentation
Request Syntax
client.list_package_version_dependencies( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', packageVersion='string', nextToken='string' )
string
[REQUIRED]
The domain that contains the repository that contains the requested package version dependencies.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository that contains the requested package version.
string
[REQUIRED]
The format of the package with the requested dependencies. 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.
nuget : A NuGet package.
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package versions' package.
string
[REQUIRED]
A string that contains the package version (for example, 3.5.2 ).
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dict
Response Syntax
{ 'format': 'npm'|'pypi'|'maven'|'nuget', 'namespace': 'string', 'package': 'string', 'version': 'string', 'versionRevision': 'string', 'nextToken': 'string', 'dependencies': [ { 'namespace': 'string', 'package': 'string', 'dependencyType': 'string', 'versionRequirement': 'string' }, ] }
Response Structure
(dict) --
format (string) --
A format that specifies the type of the package that contains the returned dependencies. The valid values are:
npm
pypi
maven
nuget
namespace (string) --
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
package (string) --
The name of the package that contains the returned package versions dependencies.
version (string) --
The version of the package that is specified in the request.
versionRevision (string) --
The current revision associated with the package version.
nextToken (string) --
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dependencies (list) --
The returned list of ` PackageDependency https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html`__ objects.
(dict) --
Details about a package dependency.
namespace (string) --
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
package (string) --
The name of the package that this package depends on.
dependencyType (string) --
The type of a package dependency. The possible values depend on the package type. Example types are compile , runtime , and test for Maven packages, and dev , prod , and optional for npm packages.
versionRequirement (string) --
The required version, or version range, of the package that this package depends on. The version format is specific to the package type. For example, the following are possible valid required versions: 1.2.3 , ^2.3.4 , or 4.x .
{'format': {'nuget'}}
Returns a list of ` PackageVersionSummary https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html`__ objects for package versions in a repository that match the request parameters.
See also: AWS API Documentation
Request Syntax
client.list_package_versions( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', status='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', sortBy='PUBLISHED_TIME', maxResults=123, nextToken='string' )
string
[REQUIRED]
The name of the domain that contains the repository that contains the returned package versions.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository that contains the package.
string
[REQUIRED]
The format of the returned packages. 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.
nuget : A NuGet package.
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package for which you want to return a list of package versions.
string
A string that specifies the status of the package versions to include in the returned list. It can be one of the following:
Published
Unfinished
Unlisted
Archived
Disposed
string
How to sort the returned list of package versions.
integer
The maximum number of results to return per page.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dict
Response Syntax
{ 'defaultDisplayVersion': 'string', 'format': 'npm'|'pypi'|'maven'|'nuget', 'namespace': 'string', 'package': 'string', 'versions': [ { 'version': 'string', 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
defaultDisplayVersion (string) --
The default package version to display. This depends on the package format:
For Maven and PyPI packages, it's the most recently published package version.
For npm packages, it's the version referenced by the latest tag. If the latest tag is not set, it's the most recently published package version.
format (string) --
A format of the package. Valid package format values are:
npm
pypi
maven
nuget
namespace (string) --
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
package (string) --
The name of the package.
versions (list) --
The returned list of ` PackageVersionSummary https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html`__ objects.
(dict) --
Details about a package version, including its status, version, and revision. The ` ListPackageVersions https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html`__ operation returns a list of PackageVersionSummary objects.
version (string) --
Information about a package version.
revision (string) --
The revision associated with a package version.
status (string) --
A string that contains the status of the package version. It can be one of the following:
Published
Unfinished
Unlisted
Archived
Disposed
nextToken (string) --
If there are additional results, this is the token for the next set of results.
{'format': {'nuget'}}Response
{'packages': {'format': {'nuget'}}}
Returns a list of ` PackageSummary https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html`__ objects for packages in a repository that match the request parameters.
See also: AWS API Documentation
Request Syntax
client.list_packages( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', packagePrefix='string', maxResults=123, nextToken='string' )
string
[REQUIRED]
The domain that contains the repository that contains the requested list of packages.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository from which packages are to be listed.
string
The format of the packages. 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.
nuget : A NuGet package.
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
A prefix used to filter returned packages. Only packages with names that start with packagePrefix are returned.
integer
The maximum number of results to return per page.
string
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
dict
Response Syntax
{ 'packages': [ { 'format': 'npm'|'pypi'|'maven'|'nuget', 'namespace': 'string', 'package': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) --
packages (list) --
The list of returned ` PackageSummary https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html`__ objects.
(dict) --
Details about a package, including its format, namespace, and name. The ` ListPackages https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html`__ operation returns a list of PackageSummary objects.
format (string) --
The format of the package. Valid values are:
npm
pypi
maven
nuget
namespace (string) --
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
package (string) --
The name of the package.
nextToken (string) --
If there are additional results, this is the token for the next set of results.
{'format': {'nuget'}}
Updates the status of one or more versions of a package.
See also: AWS API Documentation
Request Syntax
client.update_package_versions_status( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget', namespace='string', package='string', versions=[ 'string', ], versionRevisions={ 'string': 'string' }, expectedStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', targetStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' )
string
[REQUIRED]
The domain that contains the repository that contains the package versions with a status to be updated.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The repository that contains the package versions with the status you want to update.
string
[REQUIRED]
A format that specifies the type of the package with the statuses to update. The valid values are:
npm
pypi
maven
nuget
string
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.
A NuGet package does not contain a corresponding component, so NuGet packages do not have a namespace.
string
[REQUIRED]
The name of the package with the version statuses to update.
list
[REQUIRED]
An array of strings that specify the versions of the package with the statuses to update.
(string) --
dict
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.
(string) --
(string) --
string
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 .
string
[REQUIRED]
The status you want to change the package version status to.
dict
Response Syntax
{ 'successfulVersions': { 'string': { 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' } }, 'failedVersions': { 'string': { 'errorCode': 'ALREADY_EXISTS'|'MISMATCHED_REVISION'|'MISMATCHED_STATUS'|'NOT_ALLOWED'|'NOT_FOUND'|'SKIPPED', 'errorMessage': 'string' } } }
Response Structure
(dict) --
successfulVersions (dict) --
A list of PackageVersionError objects, one for each package version with a status that failed to update.
(string) --
(dict) --
Contains the revision and status of a package version.
revision (string) --
The revision of a package version.
status (string) --
The status of a package version. Valid statuses are:
Published
Unfinished
Unlisted
Archived
Disposed
failedVersions (dict) --
A list of SuccessfulPackageVersionInfo objects, one for each package version with a status that successfully updated.
(string) --
(dict) --
An error associated with package.
errorCode (string) --
The error code associated with the error. Valid error codes are:
ALREADY_EXISTS
MISMATCHED_REVISION
MISMATCHED_STATUS
NOT_ALLOWED
NOT_FOUND
SKIPPED
errorMessage (string) --
The error message associated with the error.
{'repository': {'externalConnections': {'packageFormat': {'nuget'}}}}
Update the properties of a repository.
See also: AWS API Documentation
Request Syntax
client.update_repository( domain='string', domainOwner='string', repository='string', description='string', upstreams=[ { 'repositoryName': 'string' }, ] )
string
[REQUIRED]
The name of the domain associated with the repository to update.
string
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
string
[REQUIRED]
The name of the repository to update.
string
An updated repository description.
list
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository. A list of UpstreamRepository objects is an input parameter to ` CreateRepository https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_CreateRepository.html`__ and ` UpdateRepository https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdateRepository.html`__ .
repositoryName (string) -- [REQUIRED]
The name of an upstream repository.
dict
Response Syntax
{ 'repository': { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'upstreams': [ { 'repositoryName': 'string' }, ], 'externalConnections': [ { 'externalConnectionName': 'string', 'packageFormat': 'npm'|'pypi'|'maven'|'nuget', 'status': 'Available' }, ] } }
Response Structure
(dict) --
repository (dict) --
The updated repository.
name (string) --
The name of the repository.
administratorAccount (string) --
The 12-digit account number of the AWS account that manages the repository.
domainName (string) --
The name of the domain that contains the repository.
domainOwner (string) --
The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces.
arn (string) --
The Amazon Resource Name (ARN) of the repository.
description (string) --
A text description of the repository.
upstreams (list) --
A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories .
(dict) --
Information about an upstream repository.
repositoryName (string) --
The name of an upstream repository.
externalConnections (list) --
An array of external connections associated with the repository.
(dict) --
Contains information about the external connection of a repository.
externalConnectionName (string) --
The name of the external connection associated with a repository.
packageFormat (string) --
The package format associated with a repository's external connection. The valid package formats 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.
nuget : A NuGet package.
status (string) --
The status of the external connection of a repository. There is one valid value, Available .