Skip to content

CodeArtifactClient

Index > CodeArtifact > CodeArtifactClient

Auto-generated documentation for CodeArtifact type annotations stubs module mypy-boto3-codeartifact.

CodeArtifactClient

Type annotations and code completion for boto3.client("codeartifact"). boto3 documentation

Usage example
from boto3.session import Session
from mypy_boto3_codeartifact.client import CodeArtifactClient

def get_codeartifact_client() -> CodeArtifactClient:
    return Session().client("codeartifact")

Exceptions

boto3 client exceptions are generated in runtime. This class provides code completion for boto3.client("codeartifact").exceptions structure.

Usage example
client = boto3.client("codeartifact")

try:
    do_something(client)
except (
    client.AccessDeniedException,
    client.ClientError,
    client.ConflictException,
    client.InternalServerException,
    client.ResourceNotFoundException,
    client.ServiceQuotaExceededException,
    client.ThrottlingException,
    client.ValidationException,
) as e:
    print(e)
Type checking example
from mypy_boto3_codeartifact.client import Exceptions

def handle_error(exc: Exceptions.AccessDeniedException) -> None:
    ...

Methods

associate_external_connection

Adds an existing external connection to a repository.

Type annotations and code completion for boto3.client("codeartifact").associate_external_connection method. boto3 documentation

Method definition
def associate_external_connection(
    self,
    *,
    domain: str,
    repository: str,
    externalConnection: str,
    domainOwner: str = ...,
) -> AssociateExternalConnectionResultTypeDef:  # (1)
    ...
  1. See AssociateExternalConnectionResultTypeDef
Usage example with kwargs
kwargs: AssociateExternalConnectionRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "externalConnection": ...,
}

parent.associate_external_connection(**kwargs)
  1. See AssociateExternalConnectionRequestRequestTypeDef

can_paginate

Check if an operation can be paginated.

Type annotations and code completion for boto3.client("codeartifact").can_paginate method. boto3 documentation

Method definition
def can_paginate(
    self,
    operation_name: str,
) -> bool:
    ...

close

Closes underlying endpoint connections.

Type annotations and code completion for boto3.client("codeartifact").close method. boto3 documentation

Method definition
def close(
    self,
) -> None:
    ...

copy_package_versions

Copies package versions from one repository to another repository in the same domain.

Type annotations and code completion for boto3.client("codeartifact").copy_package_versions method. boto3 documentation

Method definition
def copy_package_versions(
    self,
    *,
    domain: str,
    sourceRepository: str,
    destinationRepository: str,
    format: PackageFormatType,  # (1)
    package: str,
    domainOwner: str = ...,
    namespace: str = ...,
    versions: Sequence[str] = ...,
    versionRevisions: Mapping[str, str] = ...,
    allowOverwrite: bool = ...,
    includeFromUpstream: bool = ...,
) -> CopyPackageVersionsResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See CopyPackageVersionsResultTypeDef
Usage example with kwargs
kwargs: CopyPackageVersionsRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "sourceRepository": ...,
    "destinationRepository": ...,
    "format": ...,
    "package": ...,
}

parent.copy_package_versions(**kwargs)
  1. See CopyPackageVersionsRequestRequestTypeDef

create_domain

Creates a domain.

Type annotations and code completion for boto3.client("codeartifact").create_domain method. boto3 documentation

Method definition
def create_domain(
    self,
    *,
    domain: str,
    encryptionKey: str = ...,
    tags: Sequence[TagTypeDef] = ...,  # (1)
) -> CreateDomainResultTypeDef:  # (2)
    ...
  1. See TagTypeDef
  2. See CreateDomainResultTypeDef
Usage example with kwargs
kwargs: CreateDomainRequestRequestTypeDef = {  # (1)
    "domain": ...,
}

parent.create_domain(**kwargs)
  1. See CreateDomainRequestRequestTypeDef

create_repository

Creates a repository.

Type annotations and code completion for boto3.client("codeartifact").create_repository method. boto3 documentation

Method definition
def create_repository(
    self,
    *,
    domain: str,
    repository: str,
    domainOwner: str = ...,
    description: str = ...,
    upstreams: Sequence[UpstreamRepositoryTypeDef] = ...,  # (1)
    tags: Sequence[TagTypeDef] = ...,  # (2)
) -> CreateRepositoryResultTypeDef:  # (3)
    ...
  1. See UpstreamRepositoryTypeDef
  2. See TagTypeDef
  3. See CreateRepositoryResultTypeDef
Usage example with kwargs
kwargs: CreateRepositoryRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
}

parent.create_repository(**kwargs)
  1. See CreateRepositoryRequestRequestTypeDef

delete_domain

Deletes a domain.

Type annotations and code completion for boto3.client("codeartifact").delete_domain method. boto3 documentation

Method definition
def delete_domain(
    self,
    *,
    domain: str,
    domainOwner: str = ...,
) -> DeleteDomainResultTypeDef:  # (1)
    ...
  1. See DeleteDomainResultTypeDef
Usage example with kwargs
kwargs: DeleteDomainRequestRequestTypeDef = {  # (1)
    "domain": ...,
}

parent.delete_domain(**kwargs)
  1. See DeleteDomainRequestRequestTypeDef

delete_domain_permissions_policy

Deletes the resource policy set on a domain.

Type annotations and code completion for boto3.client("codeartifact").delete_domain_permissions_policy method. boto3 documentation

Method definition
def delete_domain_permissions_policy(
    self,
    *,
    domain: str,
    domainOwner: str = ...,
    policyRevision: str = ...,
) -> DeleteDomainPermissionsPolicyResultTypeDef:  # (1)
    ...
  1. See DeleteDomainPermissionsPolicyResultTypeDef
Usage example with kwargs
kwargs: DeleteDomainPermissionsPolicyRequestRequestTypeDef = {  # (1)
    "domain": ...,
}

parent.delete_domain_permissions_policy(**kwargs)
  1. See DeleteDomainPermissionsPolicyRequestRequestTypeDef

delete_package_versions

Deletes one or more versions of a package.

Type annotations and code completion for boto3.client("codeartifact").delete_package_versions method. boto3 documentation

Method definition
def delete_package_versions(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    versions: Sequence[str],
    domainOwner: str = ...,
    namespace: str = ...,
    expectedStatus: PackageVersionStatusType = ...,  # (2)
) -> DeletePackageVersionsResultTypeDef:  # (3)
    ...
  1. See PackageFormatType
  2. See PackageVersionStatusType
  3. See DeletePackageVersionsResultTypeDef
Usage example with kwargs
kwargs: DeletePackageVersionsRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "versions": ...,
}

parent.delete_package_versions(**kwargs)
  1. See DeletePackageVersionsRequestRequestTypeDef

delete_repository

Deletes a repository.

Type annotations and code completion for boto3.client("codeartifact").delete_repository method. boto3 documentation

Method definition
def delete_repository(
    self,
    *,
    domain: str,
    repository: str,
    domainOwner: str = ...,
) -> DeleteRepositoryResultTypeDef:  # (1)
    ...
  1. See DeleteRepositoryResultTypeDef
Usage example with kwargs
kwargs: DeleteRepositoryRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
}

parent.delete_repository(**kwargs)
  1. See DeleteRepositoryRequestRequestTypeDef

delete_repository_permissions_policy

Deletes the resource policy that is set on a repository.

Type annotations and code completion for boto3.client("codeartifact").delete_repository_permissions_policy method. boto3 documentation

Method definition
def delete_repository_permissions_policy(
    self,
    *,
    domain: str,
    repository: str,
    domainOwner: str = ...,
    policyRevision: str = ...,
) -> DeleteRepositoryPermissionsPolicyResultTypeDef:  # (1)
    ...
  1. See DeleteRepositoryPermissionsPolicyResultTypeDef
Usage example with kwargs
kwargs: DeleteRepositoryPermissionsPolicyRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
}

parent.delete_repository_permissions_policy(**kwargs)
  1. See DeleteRepositoryPermissionsPolicyRequestRequestTypeDef

describe_domain

Returns a DomainDescription_ object that contains information about the requested domain.

Type annotations and code completion for boto3.client("codeartifact").describe_domain method. boto3 documentation

Method definition
def describe_domain(
    self,
    *,
    domain: str,
    domainOwner: str = ...,
) -> DescribeDomainResultTypeDef:  # (1)
    ...
  1. See DescribeDomainResultTypeDef
Usage example with kwargs
kwargs: DescribeDomainRequestRequestTypeDef = {  # (1)
    "domain": ...,
}

parent.describe_domain(**kwargs)
  1. See DescribeDomainRequestRequestTypeDef

describe_package

Returns a PackageDescription_ object that contains information about the requested package.

Type annotations and code completion for boto3.client("codeartifact").describe_package method. boto3 documentation

Method definition
def describe_package(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    domainOwner: str = ...,
    namespace: str = ...,
) -> DescribePackageResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See DescribePackageResultTypeDef
Usage example with kwargs
kwargs: DescribePackageRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
}

parent.describe_package(**kwargs)
  1. See DescribePackageRequestRequestTypeDef

describe_package_version

Returns a PackageVersionDescription_ object that contains information about the requested package version.

Type annotations and code completion for boto3.client("codeartifact").describe_package_version method. boto3 documentation

Method definition
def describe_package_version(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    packageVersion: str,
    domainOwner: str = ...,
    namespace: str = ...,
) -> DescribePackageVersionResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See DescribePackageVersionResultTypeDef
Usage example with kwargs
kwargs: DescribePackageVersionRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "packageVersion": ...,
}

parent.describe_package_version(**kwargs)
  1. See DescribePackageVersionRequestRequestTypeDef

describe_repository

Returns a RepositoryDescription object that contains detailed information about the requested repository.

Type annotations and code completion for boto3.client("codeartifact").describe_repository method. boto3 documentation

Method definition
def describe_repository(
    self,
    *,
    domain: str,
    repository: str,
    domainOwner: str = ...,
) -> DescribeRepositoryResultTypeDef:  # (1)
    ...
  1. See DescribeRepositoryResultTypeDef
Usage example with kwargs
kwargs: DescribeRepositoryRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
}

parent.describe_repository(**kwargs)
  1. See DescribeRepositoryRequestRequestTypeDef

disassociate_external_connection

Removes an existing external connection from a repository.

Type annotations and code completion for boto3.client("codeartifact").disassociate_external_connection method. boto3 documentation

Method definition
def disassociate_external_connection(
    self,
    *,
    domain: str,
    repository: str,
    externalConnection: str,
    domainOwner: str = ...,
) -> DisassociateExternalConnectionResultTypeDef:  # (1)
    ...
  1. See DisassociateExternalConnectionResultTypeDef
Usage example with kwargs
kwargs: DisassociateExternalConnectionRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "externalConnection": ...,
}

parent.disassociate_external_connection(**kwargs)
  1. See DisassociateExternalConnectionRequestRequestTypeDef

dispose_package_versions

Deletes the assets in package versions and sets the package versions' status to Disposed.

Type annotations and code completion for boto3.client("codeartifact").dispose_package_versions method. boto3 documentation

Method definition
def dispose_package_versions(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    versions: Sequence[str],
    domainOwner: str = ...,
    namespace: str = ...,
    versionRevisions: Mapping[str, str] = ...,
    expectedStatus: PackageVersionStatusType = ...,  # (2)
) -> DisposePackageVersionsResultTypeDef:  # (3)
    ...
  1. See PackageFormatType
  2. See PackageVersionStatusType
  3. See DisposePackageVersionsResultTypeDef
Usage example with kwargs
kwargs: DisposePackageVersionsRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "versions": ...,
}

parent.dispose_package_versions(**kwargs)
  1. See DisposePackageVersionsRequestRequestTypeDef

generate_presigned_url

Generate a presigned url given a client, its method, and arguments.

Type annotations and code completion for boto3.client("codeartifact").generate_presigned_url method. boto3 documentation

Method definition
def generate_presigned_url(
    self,
    ClientMethod: str,
    Params: Mapping[str, Any] = ...,
    ExpiresIn: int = 3600,
    HttpMethod: str = ...,
) -> str:
    ...

get_authorization_token

Generates a temporary authorization token for accessing repositories in the domain.

Type annotations and code completion for boto3.client("codeartifact").get_authorization_token method. boto3 documentation

Method definition
def get_authorization_token(
    self,
    *,
    domain: str,
    domainOwner: str = ...,
    durationSeconds: int = ...,
) -> GetAuthorizationTokenResultTypeDef:  # (1)
    ...
  1. See GetAuthorizationTokenResultTypeDef
Usage example with kwargs
kwargs: GetAuthorizationTokenRequestRequestTypeDef = {  # (1)
    "domain": ...,
}

parent.get_authorization_token(**kwargs)
  1. See GetAuthorizationTokenRequestRequestTypeDef

get_domain_permissions_policy

Returns the resource policy attached to the specified domain.

Type annotations and code completion for boto3.client("codeartifact").get_domain_permissions_policy method. boto3 documentation

Method definition
def get_domain_permissions_policy(
    self,
    *,
    domain: str,
    domainOwner: str = ...,
) -> GetDomainPermissionsPolicyResultTypeDef:  # (1)
    ...
  1. See GetDomainPermissionsPolicyResultTypeDef
Usage example with kwargs
kwargs: GetDomainPermissionsPolicyRequestRequestTypeDef = {  # (1)
    "domain": ...,
}

parent.get_domain_permissions_policy(**kwargs)
  1. See GetDomainPermissionsPolicyRequestRequestTypeDef

get_package_version_asset

Returns an asset (or file) that is in a package.

Type annotations and code completion for boto3.client("codeartifact").get_package_version_asset method. boto3 documentation

Method definition
def get_package_version_asset(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    packageVersion: str,
    asset: str,
    domainOwner: str = ...,
    namespace: str = ...,
    packageVersionRevision: str = ...,
) -> GetPackageVersionAssetResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See GetPackageVersionAssetResultTypeDef
Usage example with kwargs
kwargs: GetPackageVersionAssetRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "packageVersion": ...,
    "asset": ...,
}

parent.get_package_version_asset(**kwargs)
  1. See GetPackageVersionAssetRequestRequestTypeDef

get_package_version_readme

Gets the readme file or descriptive text for a package version.

Type annotations and code completion for boto3.client("codeartifact").get_package_version_readme method. boto3 documentation

Method definition
def get_package_version_readme(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    packageVersion: str,
    domainOwner: str = ...,
    namespace: str = ...,
) -> GetPackageVersionReadmeResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See GetPackageVersionReadmeResultTypeDef
Usage example with kwargs
kwargs: GetPackageVersionReadmeRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "packageVersion": ...,
}

parent.get_package_version_readme(**kwargs)
  1. See GetPackageVersionReadmeRequestRequestTypeDef

get_repository_endpoint

Returns the endpoint of a repository for a specific package format.

Type annotations and code completion for boto3.client("codeartifact").get_repository_endpoint method. boto3 documentation

Method definition
def get_repository_endpoint(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    domainOwner: str = ...,
) -> GetRepositoryEndpointResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See GetRepositoryEndpointResultTypeDef
Usage example with kwargs
kwargs: GetRepositoryEndpointRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
}

parent.get_repository_endpoint(**kwargs)
  1. See GetRepositoryEndpointRequestRequestTypeDef

get_repository_permissions_policy

Returns the resource policy that is set on a repository.

Type annotations and code completion for boto3.client("codeartifact").get_repository_permissions_policy method. boto3 documentation

Method definition
def get_repository_permissions_policy(
    self,
    *,
    domain: str,
    repository: str,
    domainOwner: str = ...,
) -> GetRepositoryPermissionsPolicyResultTypeDef:  # (1)
    ...
  1. See GetRepositoryPermissionsPolicyResultTypeDef
Usage example with kwargs
kwargs: GetRepositoryPermissionsPolicyRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
}

parent.get_repository_permissions_policy(**kwargs)
  1. See GetRepositoryPermissionsPolicyRequestRequestTypeDef

list_domains

Returns a list of DomainSummary_ objects for all domains owned by the Amazon Web Services account that makes this call.

Type annotations and code completion for boto3.client("codeartifact").list_domains method. boto3 documentation

Method definition
def list_domains(
    self,
    *,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListDomainsResultTypeDef:  # (1)
    ...
  1. See ListDomainsResultTypeDef
Usage example with kwargs
kwargs: ListDomainsRequestRequestTypeDef = {  # (1)
    "maxResults": ...,
}

parent.list_domains(**kwargs)
  1. See ListDomainsRequestRequestTypeDef

list_package_version_assets

Returns a list of AssetSummary_ objects for assets in a package version.

Type annotations and code completion for boto3.client("codeartifact").list_package_version_assets method. boto3 documentation

Method definition
def list_package_version_assets(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    packageVersion: str,
    domainOwner: str = ...,
    namespace: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListPackageVersionAssetsResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See ListPackageVersionAssetsResultTypeDef
Usage example with kwargs
kwargs: ListPackageVersionAssetsRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "packageVersion": ...,
}

parent.list_package_version_assets(**kwargs)
  1. See ListPackageVersionAssetsRequestRequestTypeDef

list_package_version_dependencies

Returns the direct dependencies for a package version.

Type annotations and code completion for boto3.client("codeartifact").list_package_version_dependencies method. boto3 documentation

Method definition
def list_package_version_dependencies(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    packageVersion: str,
    domainOwner: str = ...,
    namespace: str = ...,
    nextToken: str = ...,
) -> ListPackageVersionDependenciesResultTypeDef:  # (2)
    ...
  1. See PackageFormatType
  2. See ListPackageVersionDependenciesResultTypeDef
Usage example with kwargs
kwargs: ListPackageVersionDependenciesRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "packageVersion": ...,
}

parent.list_package_version_dependencies(**kwargs)
  1. See ListPackageVersionDependenciesRequestRequestTypeDef

list_package_versions

Returns a list of PackageVersionSummary_ objects for package versions in a repository that match the request parameters.

Type annotations and code completion for boto3.client("codeartifact").list_package_versions method. boto3 documentation

Method definition
def list_package_versions(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    domainOwner: str = ...,
    namespace: str = ...,
    status: PackageVersionStatusType = ...,  # (2)
    sortBy: PackageVersionSortTypeType = ...,  # (3)
    maxResults: int = ...,
    nextToken: str = ...,
    originType: PackageVersionOriginTypeType = ...,  # (4)
) -> ListPackageVersionsResultTypeDef:  # (5)
    ...
  1. See PackageFormatType
  2. See PackageVersionStatusType
  3. See PackageVersionSortTypeType
  4. See PackageVersionOriginTypeType
  5. See ListPackageVersionsResultTypeDef
Usage example with kwargs
kwargs: ListPackageVersionsRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
}

parent.list_package_versions(**kwargs)
  1. See ListPackageVersionsRequestRequestTypeDef

list_packages

Returns a list of PackageSummary_ objects for packages in a repository that match the request parameters.

Type annotations and code completion for boto3.client("codeartifact").list_packages method. boto3 documentation

Method definition
def list_packages(
    self,
    *,
    domain: str,
    repository: str,
    domainOwner: str = ...,
    format: PackageFormatType = ...,  # (1)
    namespace: str = ...,
    packagePrefix: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
    publish: AllowPublishType = ...,  # (2)
    upstream: AllowUpstreamType = ...,  # (3)
) -> ListPackagesResultTypeDef:  # (4)
    ...
  1. See PackageFormatType
  2. See AllowPublishType
  3. See AllowUpstreamType
  4. See ListPackagesResultTypeDef
Usage example with kwargs
kwargs: ListPackagesRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
}

parent.list_packages(**kwargs)
  1. See ListPackagesRequestRequestTypeDef

list_repositories

Returns a list of RepositorySummary_ objects.

Type annotations and code completion for boto3.client("codeartifact").list_repositories method. boto3 documentation

Method definition
def list_repositories(
    self,
    *,
    repositoryPrefix: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListRepositoriesResultTypeDef:  # (1)
    ...
  1. See ListRepositoriesResultTypeDef
Usage example with kwargs
kwargs: ListRepositoriesRequestRequestTypeDef = {  # (1)
    "repositoryPrefix": ...,
}

parent.list_repositories(**kwargs)
  1. See ListRepositoriesRequestRequestTypeDef

list_repositories_in_domain

Returns a list of RepositorySummary_ objects.

Type annotations and code completion for boto3.client("codeartifact").list_repositories_in_domain method. boto3 documentation

Method definition
def list_repositories_in_domain(
    self,
    *,
    domain: str,
    domainOwner: str = ...,
    administratorAccount: str = ...,
    repositoryPrefix: str = ...,
    maxResults: int = ...,
    nextToken: str = ...,
) -> ListRepositoriesInDomainResultTypeDef:  # (1)
    ...
  1. See ListRepositoriesInDomainResultTypeDef
Usage example with kwargs
kwargs: ListRepositoriesInDomainRequestRequestTypeDef = {  # (1)
    "domain": ...,
}

parent.list_repositories_in_domain(**kwargs)
  1. See ListRepositoriesInDomainRequestRequestTypeDef

list_tags_for_resource

Gets information about Amazon Web Services tags for a specified Amazon Resource Name (ARN) in CodeArtifact.

Type annotations and code completion for boto3.client("codeartifact").list_tags_for_resource method. boto3 documentation

Method definition
def list_tags_for_resource(
    self,
    *,
    resourceArn: str,
) -> ListTagsForResourceResultTypeDef:  # (1)
    ...
  1. See ListTagsForResourceResultTypeDef
Usage example with kwargs
kwargs: ListTagsForResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
}

parent.list_tags_for_resource(**kwargs)
  1. See ListTagsForResourceRequestRequestTypeDef

put_domain_permissions_policy

Sets a resource policy on a domain that specifies permissions to access it.

Type annotations and code completion for boto3.client("codeartifact").put_domain_permissions_policy method. boto3 documentation

Method definition
def put_domain_permissions_policy(
    self,
    *,
    domain: str,
    policyDocument: str,
    domainOwner: str = ...,
    policyRevision: str = ...,
) -> PutDomainPermissionsPolicyResultTypeDef:  # (1)
    ...
  1. See PutDomainPermissionsPolicyResultTypeDef
Usage example with kwargs
kwargs: PutDomainPermissionsPolicyRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "policyDocument": ...,
}

parent.put_domain_permissions_policy(**kwargs)
  1. See PutDomainPermissionsPolicyRequestRequestTypeDef

put_package_origin_configuration

Sets the package origin configuration for a package.

Type annotations and code completion for boto3.client("codeartifact").put_package_origin_configuration method. boto3 documentation

Method definition
def put_package_origin_configuration(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    restrictions: PackageOriginRestrictionsTypeDef,  # (2)
    domainOwner: str = ...,
    namespace: str = ...,
) -> PutPackageOriginConfigurationResultTypeDef:  # (3)
    ...
  1. See PackageFormatType
  2. See PackageOriginRestrictionsTypeDef
  3. See PutPackageOriginConfigurationResultTypeDef
Usage example with kwargs
kwargs: PutPackageOriginConfigurationRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "restrictions": ...,
}

parent.put_package_origin_configuration(**kwargs)
  1. See PutPackageOriginConfigurationRequestRequestTypeDef

put_repository_permissions_policy

Sets the resource policy on a repository that specifies permissions to access it.

Type annotations and code completion for boto3.client("codeartifact").put_repository_permissions_policy method. boto3 documentation

Method definition
def put_repository_permissions_policy(
    self,
    *,
    domain: str,
    repository: str,
    policyDocument: str,
    domainOwner: str = ...,
    policyRevision: str = ...,
) -> PutRepositoryPermissionsPolicyResultTypeDef:  # (1)
    ...
  1. See PutRepositoryPermissionsPolicyResultTypeDef
Usage example with kwargs
kwargs: PutRepositoryPermissionsPolicyRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "policyDocument": ...,
}

parent.put_repository_permissions_policy(**kwargs)
  1. See PutRepositoryPermissionsPolicyRequestRequestTypeDef

tag_resource

Adds or updates tags for a resource in CodeArtifact.

Type annotations and code completion for boto3.client("codeartifact").tag_resource method. boto3 documentation

Method definition
def tag_resource(
    self,
    *,
    resourceArn: str,
    tags: Sequence[TagTypeDef],  # (1)
) -> Dict[str, Any]:
    ...
  1. See TagTypeDef
Usage example with kwargs
kwargs: TagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tags": ...,
}

parent.tag_resource(**kwargs)
  1. See TagResourceRequestRequestTypeDef

untag_resource

Removes tags from a resource in CodeArtifact.

Type annotations and code completion for boto3.client("codeartifact").untag_resource method. boto3 documentation

Method definition
def untag_resource(
    self,
    *,
    resourceArn: str,
    tagKeys: Sequence[str],
) -> Dict[str, Any]:
    ...
Usage example with kwargs
kwargs: UntagResourceRequestRequestTypeDef = {  # (1)
    "resourceArn": ...,
    "tagKeys": ...,
}

parent.untag_resource(**kwargs)
  1. See UntagResourceRequestRequestTypeDef

update_package_versions_status

Updates the status of one or more versions of a package.

Type annotations and code completion for boto3.client("codeartifact").update_package_versions_status method. boto3 documentation

Method definition
def update_package_versions_status(
    self,
    *,
    domain: str,
    repository: str,
    format: PackageFormatType,  # (1)
    package: str,
    versions: Sequence[str],
    targetStatus: PackageVersionStatusType,  # (2)
    domainOwner: str = ...,
    namespace: str = ...,
    versionRevisions: Mapping[str, str] = ...,
    expectedStatus: PackageVersionStatusType = ...,  # (2)
) -> UpdatePackageVersionsStatusResultTypeDef:  # (4)
    ...
  1. See PackageFormatType
  2. See PackageVersionStatusType
  3. See PackageVersionStatusType
  4. See UpdatePackageVersionsStatusResultTypeDef
Usage example with kwargs
kwargs: UpdatePackageVersionsStatusRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
    "format": ...,
    "package": ...,
    "versions": ...,
    "targetStatus": ...,
}

parent.update_package_versions_status(**kwargs)
  1. See UpdatePackageVersionsStatusRequestRequestTypeDef

update_repository

Update the properties of a repository.

Type annotations and code completion for boto3.client("codeartifact").update_repository method. boto3 documentation

Method definition
def update_repository(
    self,
    *,
    domain: str,
    repository: str,
    domainOwner: str = ...,
    description: str = ...,
    upstreams: Sequence[UpstreamRepositoryTypeDef] = ...,  # (1)
) -> UpdateRepositoryResultTypeDef:  # (2)
    ...
  1. See UpstreamRepositoryTypeDef
  2. See UpdateRepositoryResultTypeDef
Usage example with kwargs
kwargs: UpdateRepositoryRequestRequestTypeDef = {  # (1)
    "domain": ...,
    "repository": ...,
}

parent.update_repository(**kwargs)
  1. See UpdateRepositoryRequestRequestTypeDef

get_paginator

Type annotations and code completion for boto3.client("codeartifact").get_paginator method with overloads.