CodeArtifact ************ Client ====== class CodeArtifact.Client A low-level client representing CodeArtifact CodeArtifact is a fully managed artifact repository compatible with language-native package managers and build tools such as npm, Apache Maven, pip, and dotnet. You can use CodeArtifact to share packages with development teams and pull packages. Packages can be pulled from both public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact repository and another repository, which effectively merges their contents from the point of view of a package manager client. **CodeArtifact concepts** * **Repository**: A CodeArtifact repository contains a set of package versions, each of which maps to a set of assets, or files. Repositories are polyglot, so a single repository can contain packages of any supported type. Each repository exposes endpoints for fetching and publishing packages using tools such as the "npm" CLI or the Maven CLI ( "mvn" ). For a list of supported package managers, see the CodeArtifact User Guide. * **Domain**: Repositories are aggregated into a higher-level entity known as a *domain*. All package assets and metadata are stored in the domain, but are consumed through repositories. A given package asset, such as a Maven JAR file, is stored once per domain, no matter how many repositories it's present in. All of the assets and metadata in a domain are encrypted with the same customer master key (CMK) stored in Key Management Service (KMS). Each repository is a member of a single domain and can't be moved to a different domain. The domain allows organizational policy to be applied across multiple repositories, such as which accounts can access repositories in the domain, and which public repositories can be used as sources of packages. Although an organization can have multiple domains, we recommend a single production domain that contains all published artifacts so that teams can find and share packages across their organization. * **Package**: A *package* is a bundle of software and the metadata required to resolve dependencies and install the software. CodeArtifact supports npm, PyPI, Maven, NuGet, Swift, Ruby, Cargo, and generic package formats. For more information about the supported package formats and how to use CodeArtifact with them, see the CodeArtifact User Guide. In CodeArtifact, a package consists of: * A *name* (for example, "webpack" is the name of a popular npm package) * An optional namespace (for example, "@types" in "@types/node") * A set of versions (for example, "1.0.0", "1.0.1", "1.0.2", etc.) * Package-level metadata (for example, npm tags) * **Package group**: A group of packages that match a specified definition. Package groups can be used to apply configuration to multiple packages that match a defined pattern using package format, package namespace, and package name. You can use package groups to more conveniently configure package origin controls for multiple packages. Package origin controls are used to block or allow ingestion or publishing of new package versions, which protects users from malicious actions known as dependency substitution attacks. * **Package version**: A version of a package, such as "@types/node 12.6.9". The version number format and semantics vary for different package formats. For example, npm package versions must conform to the Semantic Versioning specification. In CodeArtifact, a package version consists of the version identifier, metadata at the package version level, and a set of assets. * **Upstream repository**: One repository is *upstream* of another when the package versions in it can be accessed from the repository endpoint of the downstream repository, effectively merging the contents of the two repositories from the point of view of a client. CodeArtifact allows creating an upstream relationship between two repositories. * **Asset**: An individual file stored in CodeArtifact associated with a package version, such as an npm ".tgz" file or Maven POM and JAR files. **CodeArtifact supported API operations** * "AssociateExternalConnection": Adds an existing external connection to a repository. * "CopyPackageVersions": Copies package versions from one repository to another repository in the same domain. * "CreateDomain": Creates a domain. * "CreatePackageGroup": Creates a package group. * "CreateRepository": Creates a CodeArtifact repository in a domain. * "DeleteDomain": Deletes a domain. You cannot delete a domain that contains repositories. * "DeleteDomainPermissionsPolicy": Deletes the resource policy that is set on a domain. * "DeletePackage": Deletes a package and all associated package versions. * "DeletePackageGroup": Deletes a package group. Does not delete packages or package versions that are associated with a package group. * "DeletePackageVersions": Deletes versions of a package. After a package has been deleted, it can be republished, but its assets and metadata cannot be restored because they have been permanently removed from storage. * "DeleteRepository": Deletes a repository. * "DeleteRepositoryPermissionsPolicy": Deletes the resource policy that is set on a repository. * "DescribeDomain": Returns a "DomainDescription" object that contains information about the requested domain. * "DescribePackage": Returns a PackageDescription object that contains details about a package. * "DescribePackageGroup": Returns a PackageGroup object that contains details about a package group. * "DescribePackageVersion": Returns a PackageVersionDescription object that contains details about a package version. * "DescribeRepository": Returns a "RepositoryDescription" object that contains detailed information about the requested repository. * "DisposePackageVersions": Disposes versions of a package. A package version with the status "Disposed" cannot be restored because they have been permanently removed from storage. * "DisassociateExternalConnection": Removes an existing external connection from a repository. * "GetAssociatedPackageGroup": Returns the most closely associated package group to the specified package. * "GetAuthorizationToken": Generates a temporary authorization token for accessing repositories in the domain. The token expires the authorization period has passed. The default authorization period is 12 hours and can be customized to any length with a maximum of 12 hours. * "GetDomainPermissionsPolicy": Returns the policy of a resource that is attached to the specified domain. * "GetPackageVersionAsset": Returns the contents of an asset that is in a package version. * "GetPackageVersionReadme": Gets the readme file or descriptive text for a package version. * "GetRepositoryEndpoint": Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format: * "cargo" * "generic" * "maven" * "npm" * "nuget" * "pypi" * "ruby" * "swift" * "GetRepositoryPermissionsPolicy": Returns the resource policy that is set on a repository. * "ListAllowedRepositoriesForGroup": Lists the allowed repositories for a package group that has origin configuration set to "ALLOW_SPECIFIC_REPOSITORIES". * "ListAssociatedPackages": Returns a list of packages associated with the requested package group. * "ListDomains": Returns a list of "DomainSummary" objects. Each returned "DomainSummary" object contains information about a domain. * "ListPackages": Lists the packages in a repository. * "ListPackageGroups": Returns a list of package groups in the requested domain. * "ListPackageVersionAssets": Lists the assets for a given package version. * "ListPackageVersionDependencies": Returns a list of the direct dependencies for a package version. * "ListPackageVersions": Returns a list of package versions for a specified package in a repository. * "ListRepositories": Returns a list of repositories owned by the Amazon Web Services account that called this method. * "ListRepositoriesInDomain": Returns a list of the repositories in a domain. * "ListSubPackageGroups": Returns a list of direct children of the specified package group. * "PublishPackageVersion": Creates a new package version containing one or more assets. * "PutDomainPermissionsPolicy": Attaches a resource policy to a domain. * "PutPackageOriginConfiguration": Sets the package origin configuration for a package, which determine how new versions of the package can be added to a specific repository. * "PutRepositoryPermissionsPolicy": Sets the resource policy on a repository that specifies permissions to access it. * "UpdatePackageGroup": Updates a package group. This API cannot be used to update a package group's origin configuration or pattern. * "UpdatePackageGroupOriginConfiguration": Updates the package origin configuration for a package group. * "UpdatePackageVersionsStatus": Updates the status of one or more versions of a package. * "UpdateRepository": Updates the properties of a repository. import boto3 client = boto3.client('codeartifact') These are the available methods: * associate_external_connection * can_paginate * close * copy_package_versions * create_domain * create_package_group * create_repository * delete_domain * delete_domain_permissions_policy * delete_package * delete_package_group * delete_package_versions * delete_repository * delete_repository_permissions_policy * describe_domain * describe_package * describe_package_group * describe_package_version * describe_repository * disassociate_external_connection * dispose_package_versions * get_associated_package_group * get_authorization_token * get_domain_permissions_policy * get_package_version_asset * get_package_version_readme * get_paginator * get_repository_endpoint * get_repository_permissions_policy * get_waiter * list_allowed_repositories_for_group * list_associated_packages * list_domains * list_package_groups * list_package_version_assets * list_package_version_dependencies * list_package_versions * list_packages * list_repositories * list_repositories_in_domain * list_sub_package_groups * list_tags_for_resource * publish_package_version * put_domain_permissions_policy * put_package_origin_configuration * put_repository_permissions_policy * tag_resource * untag_resource * update_package_group * update_package_group_origin_configuration * update_package_versions_status * update_repository Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * ListAllowedRepositoriesForGroup * ListAssociatedPackages * ListDomains * ListPackageGroups * ListPackageVersionAssets * ListPackageVersions * ListPackages * ListRepositories * ListRepositoriesInDomain * ListSubPackageGroups CodeArtifact / Paginator / ListAllowedRepositoriesForGroup ListAllowedRepositoriesForGroup ******************************* class CodeArtifact.Paginator.ListAllowedRepositoriesForGroup paginator = client.get_paginator('list_allowed_repositories_for_group') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_allowed_repositories_for_group()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', packageGroup='string', originRestrictionType='EXTERNAL_UPSTREAM'|'INTERNAL_UPSTREAM'|'PUBLISH', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package group from which to list allowed repositories. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group from which to list allowed repositories. * **originRestrictionType** (*string*) -- **[REQUIRED]** The origin configuration restriction type of which to list allowed repositories. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'allowedRepositories': [ 'string', ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **allowedRepositories** *(list) --* The list of allowed repositories for the package group and origin configuration restriction type. * *(string) --* * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListPackageVersionAssets ListPackageVersionAssets ************************ class CodeArtifact.Paginator.ListPackageVersionAssets paginator = client.get_paginator('list_package_version_assets') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_package_version_assets()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', packageVersion='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository associated with the package version assets. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package that contains the requested package version assets. * **format** (*string*) -- **[REQUIRED]** The format of the package that contains the requested package version assets. * **namespace** (*string*) -- The namespace of the package version that contains the requested package version assets. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required requesting assets from 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. * **package** (*string*) -- **[REQUIRED]** The name of the package that contains the requested package version assets. * **packageVersion** (*string*) -- **[REQUIRED]** A string that contains the package version (for example, "3.5.2"). * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'version': 'string', 'versionRevision': 'string', 'assets': [ { 'name': 'string', 'size': 123, 'hashes': { 'string': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **format** *(string) --* The format of the package that contains the requested package version assets. * **namespace** *(string) --* The namespace of the package version that contains the requested package version assets. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** *(string) --* The name of the package that contains the requested package version assets. * **version** *(string) --* The version of the package associated with the requested assets. * **versionRevision** *(string) --* The current revision associated with the package version. * **assets** *(list) --* The returned list of AssetSummary 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) --* * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListAssociatedPackages ListAssociatedPackages ********************** class CodeArtifact.Paginator.ListAssociatedPackages paginator = client.get_paginator('list_associated_packages') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_associated_packages()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', packageGroup='string', preview=True|False, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package group from which to list associated packages. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group from which to list associated packages. * **preview** (*boolean*) -- When this flag is included, "ListAssociatedPackages" will return a list of packages that would be associated with a package group, even if it does not exist. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'packages': [ { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'associationType': 'STRONG'|'WEAK' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **packages** *(list) --* The list of packages associated with the requested package group. * *(dict) --* A package associated with a package group. * **format** *(string) --* A format that specifies the type of the associated package. * **namespace** *(string) --* The namespace of the associated package. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** *(string) --* The name of the associated package. * **associationType** *(string) --* Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the *CodeArtifact User Guide*. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListDomains ListDomains *********** class CodeArtifact.Paginator.ListDomains paginator = client.get_paginator('list_domains') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_domains()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'domains': [ { 'name': 'string', 'owner': 'string', 'arn': 'string', 'status': 'Active'|'Deleted', 'createdTime': datetime(2015, 1, 1), 'encryptionKey': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **domains** *(list) --* The returned list of DomainSummary objects. * *(dict) --* Information about a domain, including its name, Amazon Resource Name (ARN), and status. The ListDomains operation returns a list of "DomainSummary" objects. * **name** *(string) --* The name of the domain. * **owner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **arn** *(string) --* The ARN of the domain. * **status** *(string) --* A string that contains the status of the domain. * **createdTime** *(datetime) --* A timestamp that contains the date and time the domain was created. * **encryptionKey** *(string) --* The key used to encrypt the domain. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListPackages ListPackages ************ class CodeArtifact.Paginator.ListPackages paginator = client.get_paginator('list_packages') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_packages()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', packagePrefix='string', publish='ALLOW'|'BLOCK', upstream='ALLOW'|'BLOCK', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the requested packages. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the requested packages. * **format** (*string*) -- The format used to filter requested packages. Only packages from the provided format will be returned. * **namespace** (*string*) -- The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called "--namespace" and not "--namespace- prefix", it has prefix-matching behavior. Each package format uses namespace as follows: * 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. * **packagePrefix** (*string*) -- A prefix used to filter requested packages. Only packages with names that start with "packagePrefix" are returned. * **publish** (*string*) -- The value of the "Publish" package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. * **upstream** (*string*) -- The value of the "Upstream" package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'packages': [ { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'originConfiguration': { 'restrictions': { 'publish': 'ALLOW'|'BLOCK', 'upstream': 'ALLOW'|'BLOCK' } } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **packages** *(list) --* The list of returned PackageSummary objects. * *(dict) --* Details about a package, including its format, namespace, and name. * **format** *(string) --* The format of the 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 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. * **package** *(string) --* The name of the package. * **originConfiguration** *(dict) --* A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. * **restrictions** *(dict) --* A "PackageOriginRestrictions" object that contains information about the upstream and publish package origin configuration for the package. * **publish** *(string) --* The package origin configuration that determines if new versions of the package can be published directly to the repository. * **upstream** *(string) --* The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListPackageGroups ListPackageGroups ***************** class CodeArtifact.Paginator.ListPackageGroups paginator = client.get_paginator('list_package_groups') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_package_groups()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', prefix='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The domain for which you want to list package groups. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **prefix** (*string*) -- A prefix for which to search package groups. When included, "ListPackageGroups" will return only package groups with patterns that match the prefix. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'packageGroups': [ { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **packageGroups** *(list) --* The list of package groups in the requested domain. * *(dict) --* Details about a package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* Details about the package origin configuration of a package group. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListSubPackageGroups ListSubPackageGroups ******************** class CodeArtifact.Paginator.ListSubPackageGroups paginator = client.get_paginator('list_sub_package_groups') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_sub_package_groups()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', packageGroup='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain which contains the package group from which to list sub package groups. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group from which to list sub package groups. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'packageGroups': [ { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **packageGroups** *(list) --* A list of sub package groups for the requested package group. * *(dict) --* Details about a package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* Details about the package origin configuration of a package group. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListRepositoriesInDomain ListRepositoriesInDomain ************************ class CodeArtifact.Paginator.ListRepositoriesInDomain paginator = client.get_paginator('list_repositories_in_domain') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_repositories_in_domain()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', administratorAccount='string', repositoryPrefix='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the returned list of repositories. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **administratorAccount** (*string*) -- Filter the list of repositories to only include those that are managed by the Amazon Web Services account ID. * **repositoryPrefix** (*string*) -- A prefix used to filter returned repositories. Only repositories with names that start with "repositoryPrefix" are returned. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'repositories': [ { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'createdTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **repositories** *(list) --* The returned list of repositories. * *(dict) --* Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories operation returns a list of "RepositorySummary" objects. * **name** *(string) --* The name of the repository. * **administratorAccount** *(string) --* The Amazon Web Services account ID that manages the repository. * **domainName** *(string) --* The name of the domain that contains the repository. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **arn** *(string) --* The ARN of the repository. * **description** *(string) --* The description of the repository. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListPackageVersions ListPackageVersions ******************* class CodeArtifact.Paginator.ListPackageVersions paginator = client.get_paginator('list_package_versions') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_package_versions()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', status='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', sortBy='PUBLISHED_TIME', originType='INTERNAL'|'EXTERNAL'|'UNKNOWN', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the requested package versions. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the requested package versions. * **format** (*string*) -- **[REQUIRED]** The format of the package versions you want to list. * **namespace** (*string*) -- The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when deleting 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. * **package** (*string*) -- **[REQUIRED]** The name of the package for which you want to request package versions. * **status** (*string*) -- A string that filters the requested package versions by status. * **sortBy** (*string*) -- How to sort the requested list of package versions. * **originType** (*string*) -- The "originType" used to filter package versions. Only package versions with the provided "originType" will be returned. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'defaultDisplayVersion': 'string', 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'versions': [ { 'version': 'string', 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', 'origin': { 'domainEntryPoint': { 'repositoryName': 'string', 'externalConnectionName': 'string' }, 'originType': 'INTERNAL'|'EXTERNAL'|'UNKNOWN' } }, ], '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. * **namespace** *(string) --* The namespace of the package that contains the requested package versions. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** *(string) --* The name of the package. * **versions** *(list) --* The returned list of PackageVersionSummary objects. * *(dict) --* Details about a package version, including its status, version, and revision. The ListPackageVersions 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: * **origin** *(dict) --* A PackageVersionOrigin object that contains information about how the package version was added to the repository. * **domainEntryPoint** *(dict) --* A DomainEntryPoint object that contains information about from which repository or external connection the package version was added to the domain. * **repositoryName** *(string) --* The name of the repository that a package was originally published to. * **externalConnectionName** *(string) --* The name of the external connection that a package was ingested from. * **originType** *(string) --* Describes how the package version was originally added to the domain. An "INTERNAL" origin type means the package version was published directly to a repository in the domain. An "EXTERNAL" origin type means the package version was ingested from an external connection. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Paginator / ListRepositories ListRepositories **************** class CodeArtifact.Paginator.ListRepositories paginator = client.get_paginator('list_repositories') paginate(**kwargs) Creates an iterator that will paginate through responses from "CodeArtifact.Client.list_repositories()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( repositoryPrefix='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **repositoryPrefix** (*string*) -- A prefix used to filter returned repositories. Only repositories with names that start with "repositoryPrefix" are returned. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'repositories': [ { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'createdTime': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **repositories** *(list) --* The returned list of RepositorySummary objects. * *(dict) --* Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories operation returns a list of "RepositorySummary" objects. * **name** *(string) --* The name of the repository. * **administratorAccount** *(string) --* The Amazon Web Services account ID that manages the repository. * **domainName** *(string) --* The name of the domain that contains the repository. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **arn** *(string) --* The ARN of the repository. * **description** *(string) --* The description of the repository. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **NextToken** *(string) --* A token to resume pagination. CodeArtifact / Client / get_package_version_readme get_package_version_readme ************************** CodeArtifact.Client.get_package_version_readme(**kwargs) Gets the readme file or descriptive text for a package version. The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText. See also: AWS API Documentation **Request Syntax** response = client.get_package_version_readme( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', packageVersion='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the package version with the requested readme file. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The repository that contains the package with the requested readme file. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of the package version with the requested readme file. * **namespace** (*string*) -- The namespace of the package version with the requested readme file. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when requesting the readme from 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. * **package** (*string*) -- **[REQUIRED]** The name of the package version that contains the requested readme file. * **packageVersion** (*string*) -- **[REQUIRED]** A string that contains the package version (for example, "3.5.2"). Return type: dict Returns: **Response Syntax** { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', '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. * **namespace** *(string) --* The namespace of the package version with the requested readme file. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats 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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / get_package_version_asset get_package_version_asset ************************* CodeArtifact.Client.get_package_version_asset(**kwargs) 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** response = client.get_package_version_asset( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', packageVersion='string', asset='string', packageVersionRevision='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the package version with the requested asset. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The repository that contains the package version with the requested asset. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of the package version with the requested asset file. * **namespace** (*string*) -- The namespace of the package version with the requested asset file. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when requesting assets from 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. * **package** (*string*) -- **[REQUIRED]** The name of the package that contains the requested asset. * **packageVersion** (*string*) -- **[REQUIRED]** A string that contains the package version (for example, "3.5.2"). * **asset** (*string*) -- **[REQUIRED]** The name of the requested asset. * **packageVersionRevision** (*string*) -- The name of the package version revision that contains the requested asset. Return type: dict Returns: **Response Syntax** { 'asset': StreamingBody(), 'assetName': 'string', 'packageVersion': 'string', 'packageVersionRevision': 'string' } **Response Structure** * *(dict) --* * **asset** ("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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ConflictException" CodeArtifact / Client / update_repository update_repository ***************** CodeArtifact.Client.update_repository(**kwargs) Update the properties of a repository. See also: AWS API Documentation **Request Syntax** response = client.update_repository( domain='string', domainOwner='string', repository='string', description='string', upstreams=[ { 'repositoryName': 'string' }, ] ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain associated with the repository to update. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository to update. * **description** (*string*) -- An updated repository description. * **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 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 and UpdateRepository. * **repositoryName** *(string) --* **[REQUIRED]** The name of an upstream repository. Return type: dict Returns: **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'|'generic'|'ruby'|'swift'|'cargo', 'status': 'Available' }, ], 'createdTime': datetime(2015, 1, 1) } } **Response Structure** * *(dict) --* * **repository** *(dict) --* The updated repository. * **name** *(string) --* The name of the repository. * **administratorAccount** *(string) --* The 12-digit account number of the Amazon Web Services 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 Amazon Web Services 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 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. * "generic": A generic package. * "ruby": A Ruby package. * "swift": A Swift package. * "cargo": A Cargo package. * **status** *(string) --* The status of the external connection of a repository. There is one valid value, "Available". * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / get_paginator get_paginator ************* CodeArtifact.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. CodeArtifact / Client / describe_domain describe_domain *************** CodeArtifact.Client.describe_domain(**kwargs) Returns a DomainDescription object that contains information about the requested domain. See also: AWS API Documentation **Request Syntax** response = client.describe_domain( domain='string', domainOwner='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** A string that specifies the name of the requested domain. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. Return type: dict Returns: **Response Syntax** { 'domain': { 'name': 'string', 'owner': 'string', 'arn': 'string', 'status': 'Active'|'Deleted', 'createdTime': datetime(2015, 1, 1), 'encryptionKey': 'string', 'repositoryCount': 123, 'assetSizeBytes': 123, 's3BucketArn': 'string' } } **Response Structure** * *(dict) --* * **domain** *(dict) --* Information about a domain. A domain is a container for repositories. When you create a domain, it is empty until you add one or more repositories. * **name** *(string) --* The name of the domain. * **owner** *(string) --* The Amazon Web Services account ID that owns the domain. * **arn** *(string) --* The Amazon Resource Name (ARN) of the domain. * **status** *(string) --* The current status of a domain. * **createdTime** *(datetime) --* A timestamp that represents the date and time the domain was created. * **encryptionKey** *(string) --* The ARN of an Key Management Service (KMS) key associated with a domain. * **repositoryCount** *(integer) --* The number of repositories in the domain. * **assetSizeBytes** *(integer) --* The total size of all assets in the domain. * **s3BucketArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / list_domains list_domains ************ CodeArtifact.Client.list_domains(**kwargs) Returns a list of DomainSummary objects for all domains owned by the Amazon Web Services account that makes this call. Each returned "DomainSummary" object contains information about a domain. See also: AWS API Documentation **Request Syntax** response = client.list_domains( maxResults=123, nextToken='string' ) Parameters: * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. Return type: dict Returns: **Response Syntax** { 'domains': [ { 'name': 'string', 'owner': 'string', 'arn': 'string', 'status': 'Active'|'Deleted', 'createdTime': datetime(2015, 1, 1), 'encryptionKey': 'string' }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **domains** *(list) --* The returned list of DomainSummary objects. * *(dict) --* Information about a domain, including its name, Amazon Resource Name (ARN), and status. The ListDomains operation returns a list of "DomainSummary" objects. * **name** *(string) --* The name of the domain. * **owner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **arn** *(string) --* The ARN of the domain. * **status** *(string) --* A string that contains the status of the domain. * **createdTime** *(datetime) --* A timestamp that contains the date and time the domain was created. * **encryptionKey** *(string) --* The key used to encrypt the domain. * **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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / can_paginate can_paginate ************ CodeArtifact.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. CodeArtifact / Client / list_repositories list_repositories ***************** CodeArtifact.Client.list_repositories(**kwargs) Returns a list of RepositorySummary objects. Each "RepositorySummary" contains information about a repository in the specified Amazon Web Services account and that matches the input parameters. See also: AWS API Documentation **Request Syntax** response = client.list_repositories( repositoryPrefix='string', maxResults=123, nextToken='string' ) Parameters: * **repositoryPrefix** (*string*) -- A prefix used to filter returned repositories. Only repositories with names that start with "repositoryPrefix" are returned. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. Return type: dict Returns: **Response Syntax** { 'repositories': [ { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'createdTime': datetime(2015, 1, 1) }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **repositories** *(list) --* The returned list of RepositorySummary objects. * *(dict) --* Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories operation returns a list of "RepositorySummary" objects. * **name** *(string) --* The name of the repository. * **administratorAccount** *(string) --* The Amazon Web Services account ID that manages the repository. * **domainName** *(string) --* The name of the domain that contains the repository. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **arn** *(string) --* The ARN of the repository. * **description** *(string) --* The description of the repository. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **nextToken** *(string) --* If there are additional results, this is the token for the next set of results. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / describe_package_group describe_package_group ********************** CodeArtifact.Client.describe_package_group(**kwargs) Returns a PackageGroupDescription object that contains information about the requested package group. See also: AWS API Documentation **Request Syntax** response = client.describe_package_group( domain='string', domainOwner='string', packageGroup='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package group. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the requested package group. Return type: dict Returns: **Response Syntax** { 'packageGroup': { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } } } **Response Structure** * *(dict) --* * **packageGroup** *(dict) --* A PackageGroupDescription object that contains information about the requested package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The name of the domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the package group was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* The package group origin configuration that determines how package versions can enter repositories. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / delete_package delete_package ************** CodeArtifact.Client.delete_package(**kwargs) Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the DeletePackageVersions API. See also: AWS API Documentation **Request Syntax** response = client.delete_package( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package to delete. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package to delete. * **format** (*string*) -- **[REQUIRED]** The format of the requested package to delete. * **namespace** (*string*) -- The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when deleting packages 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. * **package** (*string*) -- **[REQUIRED]** The name of the package to delete. Return type: dict Returns: **Response Syntax** { 'deletedPackage': { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'originConfiguration': { 'restrictions': { 'publish': 'ALLOW'|'BLOCK', 'upstream': 'ALLOW'|'BLOCK' } } } } **Response Structure** * *(dict) --* * **deletedPackage** *(dict) --* Details about a package, including its format, namespace, and name. * **format** *(string) --* The format of the 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 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. * **package** *(string) --* The name of the package. * **originConfiguration** *(dict) --* A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. * **restrictions** *(dict) --* A "PackageOriginRestrictions" object that contains information about the upstream and publish package origin configuration for the package. * **publish** *(string) --* The package origin configuration that determines if new versions of the package can be published directly to the repository. * **upstream** *(string) --* The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / delete_repository delete_repository ***************** CodeArtifact.Client.delete_repository(**kwargs) Deletes a repository. See also: AWS API Documentation **Request Syntax** response = client.delete_repository( domain='string', domainOwner='string', repository='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository to delete. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository to delete. Return type: dict Returns: **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'|'generic'|'ruby'|'swift'|'cargo', 'status': 'Available' }, ], 'createdTime': datetime(2015, 1, 1) } } **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 Amazon Web Services 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 Amazon Web Services 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 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. * "generic": A generic package. * "ruby": A Ruby package. * "swift": A Swift package. * "cargo": A Cargo package. * **status** *(string) --* The status of the external connection of a repository. There is one valid value, "Available". * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / get_repository_permissions_policy get_repository_permissions_policy ********************************* CodeArtifact.Client.get_repository_permissions_policy(**kwargs) Returns the resource policy that is set on a repository. See also: AWS API Documentation **Request Syntax** response = client.get_repository_permissions_policy( domain='string', domainOwner='string', repository='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain containing the repository whose associated resource policy is to be retrieved. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository whose associated resource policy is to be retrieved. Return type: dict Returns: **Response Syntax** { 'policy': { 'resourceArn': 'string', 'revision': 'string', 'document': 'string' } } **Response Structure** * *(dict) --* * **policy** *(dict) --* The returned resource policy. * **resourceArn** *(string) --* The ARN of the resource associated with the resource policy * **revision** *(string) --* The current revision of the resource policy. * **document** *(string) --* The resource policy formatted in JSON. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / get_authorization_token get_authorization_token *********************** CodeArtifact.Client.get_authorization_token(**kwargs) Generates a temporary authorization token for accessing repositories in the domain. This API requires the "codeartifact:GetAuthorizationToken" and "sts:GetServiceBearerToken" permissions. For more information about authorization tokens, see CodeArtifact authentication and tokens. Note: CodeArtifact authorization tokens are valid for a period of 12 hours when created with the "login" command. You can call "login" periodically to refresh the token. When you create an authorization token with the "GetAuthorizationToken" API, you can set a custom authorization period, up to a maximum of 12 hours, with the "durationSeconds" parameter.The authorization period begins after "login" or "GetAuthorizationToken" is called. If "login" or "GetAuthorizationToken" is called while assuming a role, the token lifetime is independent of the maximum session duration of the role. For example, if you call "sts assume-role" and specify a session duration of 15 minutes, then generate a CodeArtifact authorization token, the token will be valid for the full authorization period even though this is longer than the 15-minute session duration.See Using IAM Roles for more information on controlling session duration. See also: AWS API Documentation **Request Syntax** response = client.get_authorization_token( domain='string', domainOwner='string', durationSeconds=123 ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that is in scope for the generated authorization token. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **durationSeconds** (*integer*) -- The time, in seconds, that the generated authorization token is valid. Valid values are "0" and any number between "900" (15 minutes) and "43200" (12 hours). A value of "0" will set the expiration of the authorization token to the same expiration of the user's role's temporary credentials. Return type: dict Returns: **Response Syntax** { 'authorizationToken': 'string', 'expiration': datetime(2015, 1, 1) } **Response Structure** * *(dict) --* * **authorizationToken** *(string) --* The returned authentication token. * **expiration** *(datetime) --* A timestamp that specifies the date and time the authorization token expires. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / delete_repository_permissions_policy delete_repository_permissions_policy ************************************ CodeArtifact.Client.delete_repository_permissions_policy(**kwargs) Deletes the resource policy that is set on a repository. After a resource policy is deleted, the permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate. Warning: Use "DeleteRepositoryPermissionsPolicy" with caution. After a policy is deleted, Amazon Web Services users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy. See also: AWS API Documentation **Request Syntax** response = client.delete_repository_permissions_policy( domain='string', domainOwner='string', repository='string', policyRevision='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository associated with the resource policy to be deleted. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that is associated with the resource policy to be deleted * **policyRevision** (*string*) -- The revision of the repository's resource policy to be deleted. This revision is used for optimistic locking, which prevents others from accidentally overwriting your changes to the repository's resource policy. Return type: dict Returns: **Response Syntax** { 'policy': { 'resourceArn': 'string', 'revision': 'string', 'document': 'string' } } **Response Structure** * *(dict) --* * **policy** *(dict) --* Information about the deleted policy after processing the request. * **resourceArn** *(string) --* The ARN of the resource associated with the resource policy * **revision** *(string) --* The current revision of the resource policy. * **document** *(string) --* The resource policy formatted in JSON. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / describe_repository describe_repository ******************* CodeArtifact.Client.describe_repository(**kwargs) Returns a "RepositoryDescription" object that contains detailed information about the requested repository. See also: AWS API Documentation **Request Syntax** response = client.describe_repository( domain='string', domainOwner='string', repository='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository to describe. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** A string that specifies the name of the requested repository. Return type: dict Returns: **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'|'generic'|'ruby'|'swift'|'cargo', 'status': 'Available' }, ], 'createdTime': datetime(2015, 1, 1) } } **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 Amazon Web Services 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 Amazon Web Services 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 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. * "generic": A generic package. * "ruby": A Ruby package. * "swift": A Swift package. * "cargo": A Cargo package. * **status** *(string) --* The status of the external connection of a repository. There is one valid value, "Available". * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / associate_external_connection associate_external_connection ***************************** CodeArtifact.Client.associate_external_connection(**kwargs) 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** response = client.associate_external_connection( domain='string', domainOwner='string', repository='string', externalConnection='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository to which the external connection is added. * **externalConnection** (*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:nuget-org" - for the NuGet Gallery. * "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:maven-clojars" - for the Clojars repository. * "public:ruby-gems-org" - for RubyGems.org. * "public:crates-io" - for Crates.io. Return type: dict Returns: **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'|'generic'|'ruby'|'swift'|'cargo', 'status': 'Available' }, ], 'createdTime': datetime(2015, 1, 1) } } **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 Amazon Web Services 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 Amazon Web Services 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 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. * "generic": A generic package. * "ruby": A Ruby package. * "swift": A Swift package. * "cargo": A Cargo package. * **status** *(string) --* The status of the external connection of a repository. There is one valid value, "Available". * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / describe_package_version describe_package_version ************************ CodeArtifact.Client.describe_package_version(**kwargs) Returns a PackageVersionDescription object that contains information about the requested package version. See also: AWS API Documentation **Request Syntax** response = client.describe_package_version( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', packageVersion='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the package version. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package version. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of the requested package version. * **namespace** (*string*) -- The namespace of the requested package version. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when requesting 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. * **package** (*string*) -- **[REQUIRED]** The name of the requested package version. * **packageVersion** (*string*) -- **[REQUIRED]** A string that contains the package version (for example, "3.5.2"). Return type: dict Returns: **Response Syntax** { 'packageVersion': { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', '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', 'origin': { 'domainEntryPoint': { 'repositoryName': 'string', 'externalConnectionName': 'string' }, 'originType': 'INTERNAL'|'EXTERNAL'|'UNKNOWN' } } } **Response Structure** * *(dict) --* * **packageVersion** *(dict) --* A PackageVersionDescription object that contains information about the requested package version. * **format** *(string) --* The format of the package version. * **namespace** *(string) --* The namespace of the package version. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats 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. * **origin** *(dict) --* A PackageVersionOrigin object that contains information about how the package version was added to the repository. * **domainEntryPoint** *(dict) --* A DomainEntryPoint object that contains information about from which repository or external connection the package version was added to the domain. * **repositoryName** *(string) --* The name of the repository that a package was originally published to. * **externalConnectionName** *(string) --* The name of the external connection that a package was ingested from. * **originType** *(string) --* Describes how the package version was originally added to the domain. An "INTERNAL" origin type means the package version was published directly to a repository in the domain. An "EXTERNAL" origin type means the package version was ingested from an external connection. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / list_tags_for_resource list_tags_for_resource ********************** CodeArtifact.Client.list_tags_for_resource(**kwargs) Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact. See also: AWS API Documentation **Request Syntax** response = client.list_tags_for_resource( resourceArn='string' ) Parameters: **resourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource to get tags for. Return type: dict Returns: **Response Syntax** { 'tags': [ { 'key': 'string', 'value': 'string' }, ] } **Response Structure** * *(dict) --* * **tags** *(list) --* A list of tag key and value pairs associated with the specified resource. * *(dict) --* A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact. * **key** *(string) --* The tag key. * **value** *(string) --* The tag value. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / get_domain_permissions_policy get_domain_permissions_policy ***************************** CodeArtifact.Client.get_domain_permissions_policy(**kwargs) Returns the resource policy attached to the specified domain. Note: The policy is a resource-based policy, not an identity-based policy. For more information, see Identity-based policies and resource-based policies in the *IAM User Guide*. See also: AWS API Documentation **Request Syntax** response = client.get_domain_permissions_policy( domain='string', domainOwner='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain to which the resource policy is attached. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. Return type: dict Returns: **Response Syntax** { 'policy': { 'resourceArn': 'string', 'revision': 'string', 'document': 'string' } } **Response Structure** * *(dict) --* * **policy** *(dict) --* The returned resource policy. * **resourceArn** *(string) --* The ARN of the resource associated with the resource policy * **revision** *(string) --* The current revision of the resource policy. * **document** *(string) --* The resource policy formatted in JSON. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / create_domain create_domain ************* CodeArtifact.Client.create_domain(**kwargs) Creates a domain. CodeArtifact *domains* make it easier to manage multiple repositories across an organization. You can use a domain to apply permissions across many repositories owned by different Amazon Web Services accounts. An asset is stored only once in a domain, even if it's in multiple repositories. Although you can have multiple domains, we recommend a single production domain that contains all published artifacts so that your development teams can find and share packages. You can use a second pre-production domain to test changes to the production domain configuration. See also: AWS API Documentation **Request Syntax** response = client.create_domain( domain='string', encryptionKey='string', tags=[ { 'key': 'string', 'value': 'string' }, ] ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain to create. All domain names in an Amazon Web Services Region that are in the same Amazon Web Services account must be unique. The domain name is used as the prefix in DNS hostnames. Do not use sensitive information in a domain name because it is publicly discoverable. * **encryptionKey** (*string*) -- The encryption key for the domain. This is used to encrypt content stored in a domain. An encryption key can be a key ID, a key Amazon Resource Name (ARN), a key alias, or a key alias ARN. To specify an "encryptionKey", your IAM role must have "kms:DescribeKey" and "kms:CreateGrant" permissions on the encryption key that is used. For more information, see DescribeKey in the *Key Management Service API Reference* and Key Management Service API Permissions Reference in the *Key Management Service Developer Guide*. Warning: CodeArtifact supports only symmetric CMKs. Do not associate an asymmetric CMK with your domain. For more information, see Using symmetric and asymmetric keys in the *Key Management Service Developer Guide*. * **tags** (*list*) -- One or more tag key-value pairs for the domain. * *(dict) --* A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact. * **key** *(string) --* **[REQUIRED]** The tag key. * **value** *(string) --* **[REQUIRED]** The tag value. Return type: dict Returns: **Response Syntax** { 'domain': { 'name': 'string', 'owner': 'string', 'arn': 'string', 'status': 'Active'|'Deleted', 'createdTime': datetime(2015, 1, 1), 'encryptionKey': 'string', 'repositoryCount': 123, 'assetSizeBytes': 123, 's3BucketArn': 'string' } } **Response Structure** * *(dict) --* * **domain** *(dict) --* Contains information about the created domain after processing the request. * **name** *(string) --* The name of the domain. * **owner** *(string) --* The Amazon Web Services account ID that owns the domain. * **arn** *(string) --* The Amazon Resource Name (ARN) of the domain. * **status** *(string) --* The current status of a domain. * **createdTime** *(datetime) --* A timestamp that represents the date and time the domain was created. * **encryptionKey** *(string) --* The ARN of an Key Management Service (KMS) key associated with a domain. * **repositoryCount** *(integer) --* The number of repositories in the domain. * **assetSizeBytes** *(integer) --* The total size of all assets in the domain. * **s3BucketArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / untag_resource untag_resource ************** CodeArtifact.Client.untag_resource(**kwargs) Removes tags from a resource in CodeArtifact. See also: AWS API Documentation **Request Syntax** response = client.untag_resource( resourceArn='string', tagKeys=[ 'string', ] ) Parameters: * **resourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource that you want to remove tags from. * **tagKeys** (*list*) -- **[REQUIRED]** The tag key for each tag that you want to remove from the resource. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / delete_domain delete_domain ************* CodeArtifact.Client.delete_domain(**kwargs) Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories. See also: AWS API Documentation **Request Syntax** response = client.delete_domain( domain='string', domainOwner='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain to delete. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. Return type: dict Returns: **Response Syntax** { 'domain': { 'name': 'string', 'owner': 'string', 'arn': 'string', 'status': 'Active'|'Deleted', 'createdTime': datetime(2015, 1, 1), 'encryptionKey': 'string', 'repositoryCount': 123, 'assetSizeBytes': 123, 's3BucketArn': 'string' } } **Response Structure** * *(dict) --* * **domain** *(dict) --* Contains information about the deleted domain after processing the request. * **name** *(string) --* The name of the domain. * **owner** *(string) --* The Amazon Web Services account ID that owns the domain. * **arn** *(string) --* The Amazon Resource Name (ARN) of the domain. * **status** *(string) --* The current status of a domain. * **createdTime** *(datetime) --* A timestamp that represents the date and time the domain was created. * **encryptionKey** *(string) --* The ARN of an Key Management Service (KMS) key associated with a domain. * **repositoryCount** *(integer) --* The number of repositories in the domain. * **assetSizeBytes** *(integer) --* The total size of all assets in the domain. * **s3BucketArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / publish_package_version publish_package_version *********************** CodeArtifact.Client.publish_package_version(**kwargs) Creates a new package version containing one or more assets (or files). The "unfinished" flag can be used to keep the package version in the "Unfinished" state until all of its assets have been uploaded (see Package version status in the *CodeArtifact user guide*). To set the package version’s status to "Published", omit the "unfinished" flag when uploading the final asset, or set the status using UpdatePackageVersionStatus. Once a package version’s status is set to "Published", it cannot change back to "Unfinished". Note: Only generic packages can be published using this API. For more information, see Using generic packages in the *CodeArtifact User Guide*. See also: AWS API Documentation **Request Syntax** response = client.publish_package_version( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', packageVersion='string', assetContent=b'bytes'|file, assetName='string', assetSHA256='string', unfinished=True|False ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the package version to publish. * **domainOwner** (*string*) -- The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that the package version will be published to. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of the package version with the requested asset file. The only supported value is "generic". * **namespace** (*string*) -- The namespace of the package version to publish. * **package** (*string*) -- **[REQUIRED]** The name of the package version to publish. * **packageVersion** (*string*) -- **[REQUIRED]** The package version to publish (for example, "3.5.2"). * **assetContent** (*bytes** or **seekable file-like object*) -- **[REQUIRED]** The content of the asset to publish. * **assetName** (*string*) -- **[REQUIRED]** The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: "~ ! @ ^ & ( ) - ` _ + [ ] { } ; , . `" * **assetSHA256** (*string*) -- **[REQUIRED]** The SHA256 hash of the "assetContent" to publish. This value must be calculated by the caller and provided with the request (see Publishing a generic package in the *CodeArtifact User Guide*). This value is used as an integrity check to verify that the "assetContent" has not changed after it was originally sent. * **unfinished** (*boolean*) -- Specifies whether the package version should remain in the "unfinished" state. If omitted, the package version status will be set to "Published" (see Package version status in the *CodeArtifact User Guide*). Valid values: "unfinished" Return type: dict Returns: **Response Syntax** { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'version': 'string', 'versionRevision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', 'asset': { 'name': 'string', 'size': 123, 'hashes': { 'string': 'string' } } } **Response Structure** * *(dict) --* * **format** *(string) --* The format of the package version. * **namespace** *(string) --* The namespace of the package version. * **package** *(string) --* The name of the package. * **version** *(string) --* The version of the package. * **versionRevision** *(string) --* The revision of the package version. * **status** *(string) --* A string that contains the status of the package version. For more information, see Package version status in the *CodeArtifact User Guide*. * **asset** *(dict) --* An AssetSummary for the published asset. * **name** *(string) --* The name of the asset. * **size** *(integer) --* The size of the asset. * **hashes** *(dict) --* The hashes of the asset. * *(string) --* * *(string) --* **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / put_repository_permissions_policy put_repository_permissions_policy ********************************* CodeArtifact.Client.put_repository_permissions_policy(**kwargs) Sets the resource policy on a repository that specifies permissions to access it. When you call "PutRepositoryPermissionsPolicy", the resource policy on the repository is ignored when evaluting permissions. This ensures that the owner of a repository cannot lock themselves out of the repository, which would prevent them from being able to update the resource policy. See also: AWS API Documentation **Request Syntax** response = client.put_repository_permissions_policy( domain='string', domainOwner='string', repository='string', policyRevision='string', policyDocument='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain containing the repository to set the resource policy on. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository to set the resource policy on. * **policyRevision** (*string*) -- Sets the revision of the resource policy that specifies permissions to access the repository. This revision is used for optimistic locking, which prevents others from overwriting your changes to the repository's resource policy. * **policyDocument** (*string*) -- **[REQUIRED]** A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository. Return type: dict Returns: **Response Syntax** { 'policy': { 'resourceArn': 'string', 'revision': 'string', 'document': 'string' } } **Response Structure** * *(dict) --* * **policy** *(dict) --* The resource policy that was set after processing the request. * **resourceArn** *(string) --* The ARN of the resource associated with the resource policy * **revision** *(string) --* The current revision of the resource policy. * **document** *(string) --* The resource policy formatted in JSON. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / get_waiter get_waiter ********** CodeArtifact.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" CodeArtifact / Client / dispose_package_versions dispose_package_versions ************************ CodeArtifact.Client.dispose_package_versions(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.dispose_package_versions( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', versions=[ 'string', ], versionRevisions={ 'string': 'string' }, expectedStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository you want to dispose. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package versions you want to dispose. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of package versions you want to dispose. * **namespace** (*string*) -- The namespace of the package versions to be disposed. The package component that specifies its namespace depends on its type. For example: Note: 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. * **package** (*string*) -- **[REQUIRED]** The name of the package with the versions you want to dispose. * **versions** (*list*) -- **[REQUIRED]** The versions of the package you want to dispose. * *(string) --* * **versionRevisions** (*dict*) -- The revisions of the package versions you want to dispose. * *(string) --* * *(string) --* * **expectedStatus** (*string*) -- The expected status of the package version to dispose. Return type: dict Returns: **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. * **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) --* l 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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / delete_domain_permissions_policy delete_domain_permissions_policy ******************************** CodeArtifact.Client.delete_domain_permissions_policy(**kwargs) Deletes the resource policy set on a domain. See also: AWS API Documentation **Request Syntax** response = client.delete_domain_permissions_policy( domain='string', domainOwner='string', policyRevision='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain associated with the resource policy to be deleted. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **policyRevision** (*string*) -- The current revision of the resource policy to be deleted. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy. Return type: dict Returns: **Response Syntax** { 'policy': { 'resourceArn': 'string', 'revision': 'string', 'document': 'string' } } **Response Structure** * *(dict) --* * **policy** *(dict) --* Information about the deleted resource policy after processing the request. * **resourceArn** *(string) --* The ARN of the resource associated with the resource policy * **revision** *(string) --* The current revision of the resource policy. * **document** *(string) --* The resource policy formatted in JSON. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / disassociate_external_connection disassociate_external_connection ******************************** CodeArtifact.Client.disassociate_external_connection(**kwargs) Removes an existing external connection from a repository. See also: AWS API Documentation **Request Syntax** response = client.disassociate_external_connection( domain='string', domainOwner='string', repository='string', externalConnection='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository from which to remove the external repository. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository from which the external connection will be removed. * **externalConnection** (*string*) -- **[REQUIRED]** The name of the external connection to be removed from the repository. Return type: dict Returns: **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'|'generic'|'ruby'|'swift'|'cargo', 'status': 'Available' }, ], 'createdTime': datetime(2015, 1, 1) } } **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 Amazon Web Services 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 Amazon Web Services 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 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. * "generic": A generic package. * "ruby": A Ruby package. * "swift": A Swift package. * "cargo": A Cargo package. * **status** *(string) --* The status of the external connection of a repository. There is one valid value, "Available". * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / create_package_group create_package_group ******************** CodeArtifact.Client.create_package_group(**kwargs) Creates a package group. For more information about creating package groups, including example CLI commands, see Create a package group in the *CodeArtifact User Guide*. See also: AWS API Documentation **Request Syntax** response = client.create_package_group( domain='string', domainOwner='string', packageGroup='string', contactInfo='string', description='string', tags=[ { 'key': 'string', 'value': 'string' }, ] ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain in which you want to create a package group. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group to create. The pattern is also the identifier of the package group. * **contactInfo** (*string*) -- The contact information for the created package group. * **description** (*string*) -- A description of the package group. * **tags** (*list*) -- One or more tag key-value pairs for the package group. * *(dict) --* A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact. * **key** *(string) --* **[REQUIRED]** The tag key. * **value** *(string) --* **[REQUIRED]** The tag value. Return type: dict Returns: **Response Syntax** { 'packageGroup': { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } } } **Response Structure** * *(dict) --* * **packageGroup** *(dict) --* Information about the created package group after processing the request. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The name of the domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the package group was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* The package group origin configuration that determines how package versions can enter repositories. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / get_associated_package_group get_associated_package_group **************************** CodeArtifact.Client.get_associated_package_group(**kwargs) Returns the most closely associated package group to the specified package. This API does not require that the package exist in any repository in the domain. As such, "GetAssociatedPackageGroup" can be used to see which package group's origin configuration applies to a package before that package is in a repository. This can be helpful to check if public packages are blocked without ingesting them. For information package group association and matching, see Package group definition syntax and matching behavior in the *CodeArtifact User Guide*. See also: AWS API Documentation **Request Syntax** response = client.get_associated_package_group( domain='string', domainOwner='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package from which to get the associated package group. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **format** (*string*) -- **[REQUIRED]** The format of the package from which to get the associated package group. * **namespace** (*string*) -- The namespace of the package from which to get the associated package group. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when getting associated package groups from packages 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. * **package** (*string*) -- **[REQUIRED]** The package from which to get the associated package group. Return type: dict Returns: **Response Syntax** { 'packageGroup': { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } }, 'associationType': 'STRONG'|'WEAK' } **Response Structure** * *(dict) --* * **packageGroup** *(dict) --* The package group that is associated with the requested package. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The name of the domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the package group was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* The package group origin configuration that determines how package versions can enter repositories. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **associationType** *(string) --* Describes the strength of the association between the package and package group. A strong match is also known as an exact match, and a weak match is known as a relative match. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / list_allowed_repositories_for_group list_allowed_repositories_for_group *********************************** CodeArtifact.Client.list_allowed_repositories_for_group(**kwargs) Lists the repositories in the added repositories list of the specified restriction type for a package group. For more information about restriction types and added repository lists, see Package group origin controls in the *CodeArtifact User Guide*. See also: AWS API Documentation **Request Syntax** response = client.list_allowed_repositories_for_group( domain='string', domainOwner='string', packageGroup='string', originRestrictionType='EXTERNAL_UPSTREAM'|'INTERNAL_UPSTREAM'|'PUBLISH', maxResults=123, nextToken='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package group from which to list allowed repositories. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group from which to list allowed repositories. * **originRestrictionType** (*string*) -- **[REQUIRED]** The origin configuration restriction type of which to list allowed repositories. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. Return type: dict Returns: **Response Syntax** { 'allowedRepositories': [ 'string', ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **allowedRepositories** *(list) --* The list of allowed repositories for the package group and origin configuration restriction type. * *(string) --* * **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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / list_associated_packages list_associated_packages ************************ CodeArtifact.Client.list_associated_packages(**kwargs) Returns a list of packages associated with the requested package group. For information package group association and matching, see Package group definition syntax and matching behavior in the *CodeArtifact User Guide*. See also: AWS API Documentation **Request Syntax** response = client.list_associated_packages( domain='string', domainOwner='string', packageGroup='string', maxResults=123, nextToken='string', preview=True|False ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package group from which to list associated packages. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group from which to list associated packages. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. * **preview** (*boolean*) -- When this flag is included, "ListAssociatedPackages" will return a list of packages that would be associated with a package group, even if it does not exist. Return type: dict Returns: **Response Syntax** { 'packages': [ { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'associationType': 'STRONG'|'WEAK' }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **packages** *(list) --* The list of packages associated with the requested package group. * *(dict) --* A package associated with a package group. * **format** *(string) --* A format that specifies the type of the associated package. * **namespace** *(string) --* The namespace of the associated package. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** *(string) --* The name of the associated package. * **associationType** *(string) --* Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the *CodeArtifact User Guide*. * **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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / list_package_version_dependencies list_package_version_dependencies ********************************* CodeArtifact.Client.list_package_version_dependencies(**kwargs) Returns the direct dependencies for a package version. The dependencies are returned as PackageDependency 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** response = client.list_package_version_dependencies( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', packageVersion='string', nextToken='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the requested package version dependencies. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the requested package version. * **format** (*string*) -- **[REQUIRED]** The format of the package with the requested dependencies. * **namespace** (*string*) -- The namespace of the package version with the requested dependencies. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when listing dependencies from package versions of the following formats: * Maven * The namespace of a Maven package version is its "groupId". * The namespace of an npm package version is its "scope". * Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** (*string*) -- **[REQUIRED]** The name of the package versions' package. * **packageVersion** (*string*) -- **[REQUIRED]** A string that contains the package version (for example, "3.5.2"). * **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. Return type: dict Returns: **Response Syntax** { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', '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. * **namespace** *(string) --* The namespace of the package version that contains the returned dependencies. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when listing dependencies from package versions of the following formats: * Maven * The namespace of a Maven package version is its "groupId". * The namespace of an npm package version is its "scope". * Python and NuGet package versions do not contain a corresponding component, package versions of those formats 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 objects. * *(dict) --* Details about a package dependency. * **namespace** *(string) --* The namespace of the package that this package depends on. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats 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. * npm: "regular", "dev", "peer", "optional" * maven: "optional", "parent", "compile", "runtime", "test", "system", "provided". Note: Note that "parent" is not a regular Maven dependency type; instead this is extracted from the "" element if one is defined in the package version's POM file. * nuget: The "dependencyType" field is never set for NuGet packages. * pypi: "Requires-Dist" * **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". **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / list_package_groups list_package_groups ******************* CodeArtifact.Client.list_package_groups(**kwargs) Returns a list of package groups in the requested domain. See also: AWS API Documentation **Request Syntax** response = client.list_package_groups( domain='string', domainOwner='string', maxResults=123, nextToken='string', prefix='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The domain for which you want to list package groups. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. * **prefix** (*string*) -- A prefix for which to search package groups. When included, "ListPackageGroups" will return only package groups with patterns that match the prefix. Return type: dict Returns: **Response Syntax** { 'packageGroups': [ { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **packageGroups** *(list) --* The list of package groups in the requested domain. * *(dict) --* Details about a package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* Details about the package origin configuration of a package group. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / put_domain_permissions_policy put_domain_permissions_policy ***************************** CodeArtifact.Client.put_domain_permissions_policy(**kwargs) Sets a resource policy on a domain that specifies permissions to access it. When you call "PutDomainPermissionsPolicy", the resource policy on the domain is ignored when evaluting permissions. This ensures that the owner of a domain cannot lock themselves out of the domain, which would prevent them from being able to update the resource policy. See also: AWS API Documentation **Request Syntax** response = client.put_domain_permissions_policy( domain='string', domainOwner='string', policyRevision='string', policyDocument='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain on which to set the resource policy. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **policyRevision** (*string*) -- The current revision of the resource policy to be set. This revision is used for optimistic locking, which prevents others from overwriting your changes to the domain's resource policy. * **policyDocument** (*string*) -- **[REQUIRED]** A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided domain. Return type: dict Returns: **Response Syntax** { 'policy': { 'resourceArn': 'string', 'revision': 'string', 'document': 'string' } } **Response Structure** * *(dict) --* * **policy** *(dict) --* The resource policy that was set after processing the request. * **resourceArn** *(string) --* The ARN of the resource associated with the resource policy * **revision** *(string) --* The current revision of the resource policy. * **document** *(string) --* The resource policy formatted in JSON. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / update_package_group_origin_configuration update_package_group_origin_configuration ***************************************** CodeArtifact.Client.update_package_group_origin_configuration(**kwargs) Updates the package origin configuration for a package group. The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source. For more information about package group origin controls and configuration, see Package group origin controls in the *CodeArtifact User Guide*. See also: AWS API Documentation **Request Syntax** response = client.update_package_group_origin_configuration( domain='string', domainOwner='string', packageGroup='string', restrictions={ 'string': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT' }, addAllowedRepositories=[ { 'repositoryName': 'string', 'originRestrictionType': 'EXTERNAL_UPSTREAM'|'INTERNAL_UPSTREAM'|'PUBLISH' }, ], removeAllowedRepositories=[ { 'repositoryName': 'string', 'originRestrictionType': 'EXTERNAL_UPSTREAM'|'INTERNAL_UPSTREAM'|'PUBLISH' }, ] ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain which contains the package group for which to update the origin configuration. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group for which to update the origin configuration. * **restrictions** (*dict*) -- The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(string) --* * **addAllowedRepositories** (*list*) -- The repository name and restrictions to add to the allowed repository list of the specified package group. * *(dict) --* Details about an allowed repository for a package group, including its name and origin configuration. * **repositoryName** *(string) --* The name of the allowed repository. * **originRestrictionType** *(string) --* The origin configuration restriction type of the allowed repository. * **removeAllowedRepositories** (*list*) -- The repository name and restrictions to remove from the allowed repository list of the specified package group. * *(dict) --* Details about an allowed repository for a package group, including its name and origin configuration. * **repositoryName** *(string) --* The name of the allowed repository. * **originRestrictionType** *(string) --* The origin configuration restriction type of the allowed repository. Return type: dict Returns: **Response Syntax** { 'packageGroup': { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } }, 'allowedRepositoryUpdates': { 'string': { 'string': [ 'string', ] } } } **Response Structure** * *(dict) --* * **packageGroup** *(dict) --* The package group and information about it after processing the request. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The name of the domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the package group was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* The package group origin configuration that determines how package versions can enter repositories. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **allowedRepositoryUpdates** *(dict) --* Information about the updated allowed repositories after processing the request. * *(string) --* * *(dict) --* * *(string) --* * *(list) --* * *(string) --* **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / copy_package_versions copy_package_versions ********************* CodeArtifact.Client.copy_package_versions(**kwargs) 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** response = client.copy_package_versions( domain='string', domainOwner='string', sourceRepository='string', destinationRepository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', versions=[ 'string', ], versionRevisions={ 'string': 'string' }, allowOverwrite=True|False, includeFromUpstream=True|False ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the source and destination repositories. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **sourceRepository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package versions to be copied. * **destinationRepository** (*string*) -- **[REQUIRED]** The name of the repository into which package versions are copied. * **format** (*string*) -- **[REQUIRED]** The format of the package versions to be copied. * **namespace** (*string*) -- The namespace of the package versions to be copied. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when copying 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. * **package** (*string*) -- **[REQUIRED]** The name of the package that contains the versions to be copied. * **versions** (*list*) -- The versions of the package to be copied. Note: You must specify "versions" or "versionRevisions". You cannot specify both. * *(string) --* * **versionRevisions** (*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) --* * **allowOverwrite** (*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. * **includeFromUpstream** (*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. Return type: dict Returns: **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. * **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) --* l 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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / update_package_versions_status update_package_versions_status ****************************** CodeArtifact.Client.update_package_versions_status(**kwargs) 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. See also: AWS API Documentation **Request Syntax** response = client.update_package_versions_status( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', versions=[ 'string', ], versionRevisions={ 'string': 'string' }, expectedStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', targetStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the package versions with a status to be updated. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The repository that contains the package versions with the status you want to update. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of the package with the statuses to update. * **namespace** (*string*) -- 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** (*string*) -- **[REQUIRED]** The name of the package with the version statuses to update. * **versions** (*list*) -- **[REQUIRED]** An array of strings that specify the versions of the package with the statuses to update. * *(string) --* * **versionRevisions** (*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) --* * **expectedStatus** (*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". * **targetStatus** (*string*) -- **[REQUIRED]** The status you want to change the package version status to. Return type: dict Returns: **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. * **failedVersions** *(dict) --* A list of "SuccessfulPackageVersionInfo" objects, one for each package version with a status that successfully updated. * *(string) --* * *(dict) --* l 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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / delete_package_versions delete_package_versions *********************** CodeArtifact.Client.delete_package_versions(**kwargs) 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, ListPackageVersions), but you can restore them using UpdatePackageVersionsStatus. See also: AWS API Documentation **Request Syntax** response = client.delete_package_versions( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', versions=[ 'string', ], expectedStatus='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the package to delete. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package versions to delete. * **format** (*string*) -- **[REQUIRED]** The format of the package versions to delete. * **namespace** (*string*) -- The namespace of the package versions to be deleted. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when deleting 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. * **package** (*string*) -- **[REQUIRED]** The name of the package with the versions to delete. * **versions** (*list*) -- **[REQUIRED]** An array of strings that specify the versions of the package to delete. * *(string) --* * **expectedStatus** (*string*) -- The expected status of the package version to delete. Return type: dict Returns: **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. The status of every successful version will be "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. * **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) --* l 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. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / close close ***** CodeArtifact.Client.close() Closes underlying endpoint connections. CodeArtifact / Client / get_repository_endpoint get_repository_endpoint *********************** CodeArtifact.Client.get_repository_endpoint(**kwargs) Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format: * "cargo" * "generic" * "maven" * "npm" * "nuget" * "pypi" * "ruby" * "swift" See also: AWS API Documentation **Request Syntax** response = client.get_repository_endpoint( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', endpointType='dualstack'|'ipv4' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository. * **format** (*string*) -- **[REQUIRED]** Returns which endpoint of a repository to return. A repository has one endpoint for each package format. * **endpointType** (*string*) -- A string that specifies the type of endpoint. Return type: dict Returns: **Response Syntax** { 'repositoryEndpoint': 'string' } **Response Structure** * *(dict) --* * **repositoryEndpoint** *(string) --* A string that specifies the URL of the returned endpoint. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / put_package_origin_configuration put_package_origin_configuration ******************************** CodeArtifact.Client.put_package_origin_configuration(**kwargs) Sets the package origin configuration for a package. The package origin configuration determines how new versions of a package can be added to a repository. You can allow or block direct publishing of new package versions, or ingestion and retaining of new package versions from an external connection or upstream source. For more information about package origin controls and configuration, see Editing package origin controls in the *CodeArtifact User Guide*. "PutPackageOriginConfiguration" can be called on a package that doesn't yet exist in the repository. When called on a package that does not exist, a package is created in the repository with no versions and the requested restrictions are set on the package. This can be used to preemptively block ingesting or retaining any versions from external connections or upstream repositories, or to block publishing any versions of the package into the repository before connecting any package managers or publishers to the repository. See also: AWS API Documentation **Request Syntax** response = client.put_package_origin_configuration( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', restrictions={ 'publish': 'ALLOW'|'BLOCK', 'upstream': 'ALLOW'|'BLOCK' } ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the package. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of the package to be updated. * **namespace** (*string*) -- The namespace of the package 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** (*string*) -- **[REQUIRED]** The name of the package to be updated. * **restrictions** (*dict*) -- **[REQUIRED]** A PackageOriginRestrictions object that contains information about the "upstream" and "publish" package origin restrictions. The "upstream" restriction determines if new package versions can be ingested or retained from external connections or upstream repositories. The "publish" restriction determines if new package versions can be published directly to the repository. You must include both the desired "upstream" and "publish" restrictions. * **publish** *(string) --* **[REQUIRED]** The package origin configuration that determines if new versions of the package can be published directly to the repository. * **upstream** *(string) --* **[REQUIRED]** The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source. Return type: dict Returns: **Response Syntax** { 'originConfiguration': { 'restrictions': { 'publish': 'ALLOW'|'BLOCK', 'upstream': 'ALLOW'|'BLOCK' } } } **Response Structure** * *(dict) --* * **originConfiguration** *(dict) --* A PackageOriginConfiguration object that describes the origin configuration set for the package. It contains a PackageOriginRestrictions object that describes how new versions of the package can be introduced to the repository. * **restrictions** *(dict) --* A "PackageOriginRestrictions" object that contains information about the upstream and publish package origin configuration for the package. * **publish** *(string) --* The package origin configuration that determines if new versions of the package can be published directly to the repository. * **upstream** *(string) --* The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / create_repository create_repository ***************** CodeArtifact.Client.create_repository(**kwargs) Creates a repository. See also: AWS API Documentation **Request Syntax** response = client.create_repository( domain='string', domainOwner='string', repository='string', description='string', upstreams=[ { 'repositoryName': 'string' }, ], tags=[ { 'key': 'string', 'value': 'string' }, ] ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the created repository. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository to create. * **description** (*string*) -- A description of the created 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 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 and UpdateRepository. * **repositoryName** *(string) --* **[REQUIRED]** The name of an upstream repository. * **tags** (*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 CodeArtifact. * **key** *(string) --* **[REQUIRED]** The tag key. * **value** *(string) --* **[REQUIRED]** The tag value. Return type: dict Returns: **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'|'generic'|'ruby'|'swift'|'cargo', 'status': 'Available' }, ], 'createdTime': datetime(2015, 1, 1) } } **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 Amazon Web Services 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 Amazon Web Services 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 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. * "generic": A generic package. * "ruby": A Ruby package. * "swift": A Swift package. * "cargo": A Cargo package. * **status** *(string) --* The status of the external connection of a repository. There is one valid value, "Available". * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / list_package_versions list_package_versions ********************* CodeArtifact.Client.list_package_versions(**kwargs) Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling "list-package-versions" with no "--status" parameter. See also: AWS API Documentation **Request Syntax** response = client.list_package_versions( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', status='Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', sortBy='PUBLISHED_TIME', maxResults=123, nextToken='string', originType='INTERNAL'|'EXTERNAL'|'UNKNOWN' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the requested package versions. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the requested package versions. * **format** (*string*) -- **[REQUIRED]** The format of the package versions you want to list. * **namespace** (*string*) -- The namespace of the package that contains the requested package versions. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when deleting 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. * **package** (*string*) -- **[REQUIRED]** The name of the package for which you want to request package versions. * **status** (*string*) -- A string that filters the requested package versions by status. * **sortBy** (*string*) -- How to sort the requested list of package versions. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. * **originType** (*string*) -- The "originType" used to filter package versions. Only package versions with the provided "originType" will be returned. Return type: dict Returns: **Response Syntax** { 'defaultDisplayVersion': 'string', 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'versions': [ { 'version': 'string', 'revision': 'string', 'status': 'Published'|'Unfinished'|'Unlisted'|'Archived'|'Disposed'|'Deleted', 'origin': { 'domainEntryPoint': { 'repositoryName': 'string', 'externalConnectionName': 'string' }, 'originType': 'INTERNAL'|'EXTERNAL'|'UNKNOWN' } }, ], '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. * **namespace** *(string) --* The namespace of the package that contains the requested package versions. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** *(string) --* The name of the package. * **versions** *(list) --* The returned list of PackageVersionSummary objects. * *(dict) --* Details about a package version, including its status, version, and revision. The ListPackageVersions 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: * **origin** *(dict) --* A PackageVersionOrigin object that contains information about how the package version was added to the repository. * **domainEntryPoint** *(dict) --* A DomainEntryPoint object that contains information about from which repository or external connection the package version was added to the domain. * **repositoryName** *(string) --* The name of the repository that a package was originally published to. * **externalConnectionName** *(string) --* The name of the external connection that a package was ingested from. * **originType** *(string) --* Describes how the package version was originally added to the domain. An "INTERNAL" origin type means the package version was published directly to a repository in the domain. An "EXTERNAL" origin type means the package version was ingested from an external connection. * **nextToken** *(string) --* If there are additional results, this is the token for the next set of results. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / describe_package describe_package **************** CodeArtifact.Client.describe_package(**kwargs) Returns a PackageDescription object that contains information about the requested package. See also: AWS API Documentation **Request Syntax** response = client.describe_package( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the package. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the requested package. * **format** (*string*) -- **[REQUIRED]** A format that specifies the type of the requested package. * **namespace** (*string*) -- The namespace of the requested package. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required when requesting packages 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. * **package** (*string*) -- **[REQUIRED]** The name of the requested package. Return type: dict Returns: **Response Syntax** { 'package': { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'name': 'string', 'originConfiguration': { 'restrictions': { 'publish': 'ALLOW'|'BLOCK', 'upstream': 'ALLOW'|'BLOCK' } } } } **Response Structure** * *(dict) --* * **package** *(dict) --* A PackageDescription object that contains information about the requested package. * **format** *(string) --* A format that specifies the type of the 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 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. * **name** *(string) --* The name of the package. * **originConfiguration** *(dict) --* The package origin configuration for the package. * **restrictions** *(dict) --* A "PackageOriginRestrictions" object that contains information about the upstream and publish package origin configuration for the package. * **publish** *(string) --* The package origin configuration that determines if new versions of the package can be published directly to the repository. * **upstream** *(string) --* The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / list_sub_package_groups list_sub_package_groups *********************** CodeArtifact.Client.list_sub_package_groups(**kwargs) Returns a list of direct children of the specified package group. For information package group hierarchy, see Package group definition syntax and matching behavior in the *CodeArtifact User Guide*. See also: AWS API Documentation **Request Syntax** response = client.list_sub_package_groups( domain='string', domainOwner='string', packageGroup='string', maxResults=123, nextToken='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain which contains the package group from which to list sub package groups. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group from which to list sub package groups. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. Return type: dict Returns: **Response Syntax** { 'packageGroups': [ { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **packageGroups** *(list) --* A list of sub package groups for the requested package group. * *(dict) --* Details about a package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* Details about the package origin configuration of a package group. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **nextToken** *(string) --* If there are additional results, this is the token for the next set of results. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / delete_package_group delete_package_group ******************** CodeArtifact.Client.delete_package_group(**kwargs) Deletes a package group. Deleting a package group does not delete packages or package versions associated with the package group. When a package group is deleted, the direct child package groups will become children of the package group's direct parent package group. Therefore, if any of the child groups are inheriting any settings from the parent, those settings could change. See also: AWS API Documentation **Request Syntax** response = client.delete_package_group( domain='string', domainOwner='string', packageGroup='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The domain that contains the package group to be deleted. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group to be deleted. Return type: dict Returns: **Response Syntax** { 'packageGroup': { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } } } **Response Structure** * *(dict) --* * **packageGroup** *(dict) --* Information about the deleted package group after processing the request. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The name of the domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the package group was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* The package group origin configuration that determines how package versions can enter repositories. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ConflictException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / tag_resource tag_resource ************ CodeArtifact.Client.tag_resource(**kwargs) Adds or updates tags for a resource in CodeArtifact. See also: AWS API Documentation **Request Syntax** response = client.tag_resource( resourceArn='string', tags=[ { 'key': 'string', 'value': 'string' }, ] ) Parameters: * **resourceArn** (*string*) -- **[REQUIRED]** The Amazon Resource Name (ARN) of the resource that you want to add or update tags for. * **tags** (*list*) -- **[REQUIRED]** The tags you want to modify or add to the resource. * *(dict) --* A tag is a key-value pair that can be used to manage, search for, or filter resources in CodeArtifact. * **key** *(string) --* **[REQUIRED]** The tag key. * **value** *(string) --* **[REQUIRED]** The tag value. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / list_package_version_assets list_package_version_assets *************************** CodeArtifact.Client.list_package_version_assets(**kwargs) Returns a list of AssetSummary objects for assets in a package version. See also: AWS API Documentation **Request Syntax** response = client.list_package_version_assets( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', package='string', packageVersion='string', maxResults=123, nextToken='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository associated with the package version assets. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the package that contains the requested package version assets. * **format** (*string*) -- **[REQUIRED]** The format of the package that contains the requested package version assets. * **namespace** (*string*) -- The namespace of the package version that contains the requested package version assets. The package component that specifies its namespace depends on its type. For example: Note: The namespace is required requesting assets from 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. * **package** (*string*) -- **[REQUIRED]** The name of the package that contains the requested package version assets. * **packageVersion** (*string*) -- **[REQUIRED]** A string that contains the package version (for example, "3.5.2"). * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. Return type: dict Returns: **Response Syntax** { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', '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 requested package version assets. * **namespace** *(string) --* The namespace of the package version that contains the requested package version assets. 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, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace. * **package** *(string) --* The name of the package that contains the requested package version assets. * **version** *(string) --* The version of the package associated with the requested 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 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) --* **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / list_repositories_in_domain list_repositories_in_domain *************************** CodeArtifact.Client.list_repositories_in_domain(**kwargs) Returns a list of RepositorySummary objects. Each "RepositorySummary" contains information about a repository in the specified domain and that matches the input parameters. See also: AWS API Documentation **Request Syntax** response = client.list_repositories_in_domain( domain='string', domainOwner='string', administratorAccount='string', repositoryPrefix='string', maxResults=123, nextToken='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the returned list of repositories. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **administratorAccount** (*string*) -- Filter the list of repositories to only include those that are managed by the Amazon Web Services account ID. * **repositoryPrefix** (*string*) -- A prefix used to filter returned repositories. Only repositories with names that start with "repositoryPrefix" are returned. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. Return type: dict Returns: **Response Syntax** { 'repositories': [ { 'name': 'string', 'administratorAccount': 'string', 'domainName': 'string', 'domainOwner': 'string', 'arn': 'string', 'description': 'string', 'createdTime': datetime(2015, 1, 1) }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **repositories** *(list) --* The returned list of repositories. * *(dict) --* Details about a repository, including its Amazon Resource Name (ARN), description, and domain information. The ListRepositories operation returns a list of "RepositorySummary" objects. * **name** *(string) --* The name of the repository. * **administratorAccount** *(string) --* The Amazon Web Services account ID that manages the repository. * **domainName** *(string) --* The name of the domain that contains the repository. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **arn** *(string) --* The ARN of the repository. * **description** *(string) --* The description of the repository. * **createdTime** *(datetime) --* A timestamp that represents the date and time the repository was created. * **nextToken** *(string) --* If there are additional results, this is the token for the next set of results. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" CodeArtifact / Client / update_package_group update_package_group ******************** CodeArtifact.Client.update_package_group(**kwargs) Updates a package group. This API cannot be used to update a package group's origin configuration or pattern. To update a package group's origin configuration, use UpdatePackageGroupOriginConfiguration. See also: AWS API Documentation **Request Syntax** response = client.update_package_group( domain='string', domainOwner='string', packageGroup='string', contactInfo='string', description='string' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain which contains the package group to be updated. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **packageGroup** (*string*) -- **[REQUIRED]** The pattern of the package group to be updated. * **contactInfo** (*string*) -- Contact information which you want to update the requested package group with. * **description** (*string*) -- The description you want to update the requested package group with. Return type: dict Returns: **Response Syntax** { 'packageGroup': { 'arn': 'string', 'pattern': 'string', 'domainName': 'string', 'domainOwner': 'string', 'createdTime': datetime(2015, 1, 1), 'contactInfo': 'string', 'description': 'string', 'originConfiguration': { 'restrictions': { 'string': { 'mode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'effectiveMode': 'ALLOW'|'ALLOW_SPECIFIC_REPOSITORIES'|'BLOCK'|'INHERIT', 'inheritedFrom': { 'arn': 'string', 'pattern': 'string' }, 'repositoriesCount': 123 } } }, 'parent': { 'arn': 'string', 'pattern': 'string' } } } **Response Structure** * *(dict) --* * **packageGroup** *(dict) --* The package group and information about it after the request has been processed. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group. * **domainName** *(string) --* The name of the domain that contains the package group. * **domainOwner** *(string) --* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **createdTime** *(datetime) --* A timestamp that represents the date and time the package group was created. * **contactInfo** *(string) --* The contact information of the package group. * **description** *(string) --* The description of the package group. * **originConfiguration** *(dict) --* The package group origin configuration that determines how package versions can enter repositories. * **restrictions** *(dict) --* The origin configuration settings that determine how package versions can enter repositories. * *(string) --* * *(dict) --* Contains information about the configured restrictions of the origin controls of a package group. * **mode** *(string) --* The package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **effectiveMode** *(string) --* The effective package group origin restriction setting. If the value of "mode" is "ALLOW", "ALLOW_SPECIFIC_REPOSITORIES", or "BLOCK", then the value of "effectiveMode" is the same. Otherwise, when the value of "mode" is "INHERIT", then the value of "effectiveMode" is the value of "mode" of the first parent group which does not have a value of "INHERIT". * **inheritedFrom** *(dict) --* The parent package group that the package group origin restrictions are inherited from. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. * **repositoriesCount** *(integer) --* The number of repositories in the allowed repository list. * **parent** *(dict) --* The direct parent package group of the package group. * **arn** *(string) --* The ARN of the package group. * **pattern** *(string) --* The pattern of the package group. The pattern determines which packages are associated with the package group, and is also the identifier of the package group. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ServiceQuotaExceededException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" CodeArtifact / Client / list_packages list_packages ************* CodeArtifact.Client.list_packages(**kwargs) Returns a list of PackageSummary objects for packages in a repository that match the request parameters. See also: AWS API Documentation **Request Syntax** response = client.list_packages( domain='string', domainOwner='string', repository='string', format='npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', namespace='string', packagePrefix='string', maxResults=123, nextToken='string', publish='ALLOW'|'BLOCK', upstream='ALLOW'|'BLOCK' ) Parameters: * **domain** (*string*) -- **[REQUIRED]** The name of the domain that contains the repository that contains the requested packages. * **domainOwner** (*string*) -- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces. * **repository** (*string*) -- **[REQUIRED]** The name of the repository that contains the requested packages. * **format** (*string*) -- The format used to filter requested packages. Only packages from the provided format will be returned. * **namespace** (*string*) -- The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called " --namespace" and not "--namespace-prefix", it has prefix- matching behavior. Each package format uses namespace as follows: * 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. * **packagePrefix** (*string*) -- A prefix used to filter requested packages. Only packages with names that start with "packagePrefix" are returned. * **maxResults** (*integer*) -- The maximum number of results to return per page. * **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. * **publish** (*string*) -- The value of the "Publish" package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. * **upstream** (*string*) -- The value of the "Upstream" package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. Return type: dict Returns: **Response Syntax** { 'packages': [ { 'format': 'npm'|'pypi'|'maven'|'nuget'|'generic'|'ruby'|'swift'|'cargo', 'namespace': 'string', 'package': 'string', 'originConfiguration': { 'restrictions': { 'publish': 'ALLOW'|'BLOCK', 'upstream': 'ALLOW'|'BLOCK' } } }, ], 'nextToken': 'string' } **Response Structure** * *(dict) --* * **packages** *(list) --* The list of returned PackageSummary objects. * *(dict) --* Details about a package, including its format, namespace, and name. * **format** *(string) --* The format of the 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 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. * **package** *(string) --* The name of the package. * **originConfiguration** *(dict) --* A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. * **restrictions** *(dict) --* A "PackageOriginRestrictions" object that contains information about the upstream and publish package origin configuration for the package. * **publish** *(string) --* The package origin configuration that determines if new versions of the package can be published directly to the repository. * **upstream** *(string) --* The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source. * **nextToken** *(string) --* If there are additional results, this is the token for the next set of results. **Exceptions** * "CodeArtifact.Client.exceptions.AccessDeniedException" * "CodeArtifact.Client.exceptions.InternalServerException" * "CodeArtifact.Client.exceptions.ResourceNotFoundException" * "CodeArtifact.Client.exceptions.ThrottlingException" * "CodeArtifact.Client.exceptions.ValidationException"