Skip to content

Type definitions#

Index > CodeArtifact > Type definitions

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

BlobTypeDef#

# BlobTypeDef definition

BlobTypeDef = Union[
    str,
    bytes,
    IO[Any],
    StreamingBody,
]

AssetSummaryTypeDef#

# AssetSummaryTypeDef definition

class AssetSummaryTypeDef(TypedDict):
    name: str,
    size: NotRequired[int],
    hashes: NotRequired[Dict[HashAlgorithmType, str]],  # (1)
  1. See HashAlgorithmType

AssociateExternalConnectionRequestRequestTypeDef#

# AssociateExternalConnectionRequestRequestTypeDef definition

class AssociateExternalConnectionRequestRequestTypeDef(TypedDict):
    domain: str,
    repository: str,
    externalConnection: str,
    domainOwner: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

AssociatedPackageTypeDef#

# AssociatedPackageTypeDef definition

class AssociatedPackageTypeDef(TypedDict):
    format: NotRequired[PackageFormatType],  # (1)
    namespace: NotRequired[str],
    package: NotRequired[str],
    associationType: NotRequired[PackageGroupAssociationTypeType],  # (2)
  1. See PackageFormatType
  2. See PackageGroupAssociationTypeType

CopyPackageVersionsRequestRequestTypeDef#

# CopyPackageVersionsRequestRequestTypeDef definition

class CopyPackageVersionsRequestRequestTypeDef(TypedDict):
    domain: str,
    sourceRepository: str,
    destinationRepository: str,
    format: PackageFormatType,  # (1)
    package: str,
    domainOwner: NotRequired[str],
    namespace: NotRequired[str],
    versions: NotRequired[Sequence[str]],
    versionRevisions: NotRequired[Mapping[str, str]],
    allowOverwrite: NotRequired[bool],
    includeFromUpstream: NotRequired[bool],
  1. See PackageFormatType

PackageVersionErrorTypeDef#

# PackageVersionErrorTypeDef definition

class PackageVersionErrorTypeDef(TypedDict):
    errorCode: NotRequired[PackageVersionErrorCodeType],  # (1)
    errorMessage: NotRequired[str],
  1. See PackageVersionErrorCodeType

SuccessfulPackageVersionInfoTypeDef#

# SuccessfulPackageVersionInfoTypeDef definition

class SuccessfulPackageVersionInfoTypeDef(TypedDict):
    revision: NotRequired[str],
    status: NotRequired[PackageVersionStatusType],  # (1)
  1. See PackageVersionStatusType

TagTypeDef#

# TagTypeDef definition

class TagTypeDef(TypedDict):
    key: str,
    value: str,

DomainDescriptionTypeDef#

# DomainDescriptionTypeDef definition

class DomainDescriptionTypeDef(TypedDict):
    name: NotRequired[str],
    owner: NotRequired[str],
    arn: NotRequired[str],
    status: NotRequired[DomainStatusType],  # (1)
    createdTime: NotRequired[datetime],
    encryptionKey: NotRequired[str],
    repositoryCount: NotRequired[int],
    assetSizeBytes: NotRequired[int],
    s3BucketArn: NotRequired[str],
  1. See DomainStatusType

UpstreamRepositoryTypeDef#

# UpstreamRepositoryTypeDef definition

class UpstreamRepositoryTypeDef(TypedDict):
    repositoryName: str,

DeleteDomainPermissionsPolicyRequestRequestTypeDef#

# DeleteDomainPermissionsPolicyRequestRequestTypeDef definition

class DeleteDomainPermissionsPolicyRequestRequestTypeDef(TypedDict):
    domain: str,
    domainOwner: NotRequired[str],
    policyRevision: NotRequired[str],

ResourcePolicyTypeDef#

# ResourcePolicyTypeDef definition

class ResourcePolicyTypeDef(TypedDict):
    resourceArn: NotRequired[str],
    revision: NotRequired[str],
    document: NotRequired[str],

DeleteDomainRequestReque