UNPKG

prowler-sdk-poc

Version:
763 lines 90.1 kB
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config-base'; import {Readable} from 'stream'; interface Blob {} declare class CodeArtifact extends Service { /** * Constructs a service object. This object has one method for each API operation. */ constructor(options?: CodeArtifact.Types.ClientConfiguration) config: Config & CodeArtifact.Types.ClientConfiguration; /** * Adds an existing external connection to a repository. One external connection is allowed per repository. A repository can have one or more upstream repositories, or an external connection. */ associateExternalConnection(params: CodeArtifact.Types.AssociateExternalConnectionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.AssociateExternalConnectionResult) => void): Request<CodeArtifact.Types.AssociateExternalConnectionResult, AWSError>; /** * Adds an existing external connection to a repository. One external connection is allowed per repository. A repository can have one or more upstream repositories, or an external connection. */ associateExternalConnection(callback?: (err: AWSError, data: CodeArtifact.Types.AssociateExternalConnectionResult) => void): Request<CodeArtifact.Types.AssociateExternalConnectionResult, AWSError>; /** * Copies package versions from one repository to another repository in the same domain. You must specify versions or versionRevisions. You cannot specify both. */ copyPackageVersions(params: CodeArtifact.Types.CopyPackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CopyPackageVersionsResult) => void): Request<CodeArtifact.Types.CopyPackageVersionsResult, AWSError>; /** * Copies package versions from one repository to another repository in the same domain. You must specify versions or versionRevisions. You cannot specify both. */ copyPackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.CopyPackageVersionsResult) => void): Request<CodeArtifact.Types.CopyPackageVersionsResult, AWSError>; /** * 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 AWS 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. */ createDomain(params: CodeArtifact.Types.CreateDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CreateDomainResult) => void): Request<CodeArtifact.Types.CreateDomainResult, AWSError>; /** * 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 AWS 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. */ createDomain(callback?: (err: AWSError, data: CodeArtifact.Types.CreateDomainResult) => void): Request<CodeArtifact.Types.CreateDomainResult, AWSError>; /** * Creates a repository. */ createRepository(params: CodeArtifact.Types.CreateRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CreateRepositoryResult) => void): Request<CodeArtifact.Types.CreateRepositoryResult, AWSError>; /** * Creates a repository. */ createRepository(callback?: (err: AWSError, data: CodeArtifact.Types.CreateRepositoryResult) => void): Request<CodeArtifact.Types.CreateRepositoryResult, AWSError>; /** * Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories. */ deleteDomain(params: CodeArtifact.Types.DeleteDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainResult) => void): Request<CodeArtifact.Types.DeleteDomainResult, AWSError>; /** * Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories. */ deleteDomain(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainResult) => void): Request<CodeArtifact.Types.DeleteDomainResult, AWSError>; /** * Deletes the resource policy set on a domain. */ deleteDomainPermissionsPolicy(params: CodeArtifact.Types.DeleteDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteDomainPermissionsPolicyResult, AWSError>; /** * Deletes the resource policy set on a domain. */ deleteDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteDomainPermissionsPolicyResult, AWSError>; /** * Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived. Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, ListackageVersions), but you can restore them using UpdatePackageVersionsStatus. */ deletePackageVersions(params: CodeArtifact.Types.DeletePackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeletePackageVersionsResult) => void): Request<CodeArtifact.Types.DeletePackageVersionsResult, AWSError>; /** * Deletes one or more versions of a package. A deleted package version cannot be restored in your repository. If you want to remove a package version from your repository and be able to restore it later, set its status to Archived. Archived packages cannot be downloaded from a repository and don't show up with list package APIs (for example, ListackageVersions), but you can restore them using UpdatePackageVersionsStatus. */ deletePackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.DeletePackageVersionsResult) => void): Request<CodeArtifact.Types.DeletePackageVersionsResult, AWSError>; /** * Deletes a repository. */ deleteRepository(params: CodeArtifact.Types.DeleteRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryResult) => void): Request<CodeArtifact.Types.DeleteRepositoryResult, AWSError>; /** * Deletes a repository. */ deleteRepository(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryResult) => void): Request<CodeArtifact.Types.DeleteRepositoryResult, AWSError>; /** * 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. Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, AWS users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy. */ deleteRepositoryPermissionsPolicy(params: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult, AWSError>; /** * 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. Use DeleteRepositoryPermissionsPolicy with caution. After a policy is deleted, AWS users, roles, and accounts lose permissions to perform the repository actions granted by the deleted policy. */ deleteRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult, AWSError>; /** * Returns a DomainDescription object that contains information about the requested domain. */ describeDomain(params: CodeArtifact.Types.DescribeDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribeDomainResult) => void): Request<CodeArtifact.Types.DescribeDomainResult, AWSError>; /** * Returns a DomainDescription object that contains information about the requested domain. */ describeDomain(callback?: (err: AWSError, data: CodeArtifact.Types.DescribeDomainResult) => void): Request<CodeArtifact.Types.DescribeDomainResult, AWSError>; /** * Returns a PackageVersionDescription object that contains information about the requested package version. */ describePackageVersion(params: CodeArtifact.Types.DescribePackageVersionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribePackageVersionResult) => void): Request<CodeArtifact.Types.DescribePackageVersionResult, AWSError>; /** * Returns a PackageVersionDescription object that contains information about the requested package version. */ describePackageVersion(callback?: (err: AWSError, data: CodeArtifact.Types.DescribePackageVersionResult) => void): Request<CodeArtifact.Types.DescribePackageVersionResult, AWSError>; /** * Returns a RepositoryDescription object that contains detailed information about the requested repository. */ describeRepository(params: CodeArtifact.Types.DescribeRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribeRepositoryResult) => void): Request<CodeArtifact.Types.DescribeRepositoryResult, AWSError>; /** * Returns a RepositoryDescription object that contains detailed information about the requested repository. */ describeRepository(callback?: (err: AWSError, data: CodeArtifact.Types.DescribeRepositoryResult) => void): Request<CodeArtifact.Types.DescribeRepositoryResult, AWSError>; /** * Removes an existing external connection from a repository. */ disassociateExternalConnection(params: CodeArtifact.Types.DisassociateExternalConnectionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DisassociateExternalConnectionResult) => void): Request<CodeArtifact.Types.DisassociateExternalConnectionResult, AWSError>; /** * Removes an existing external connection from a repository. */ disassociateExternalConnection(callback?: (err: AWSError, data: CodeArtifact.Types.DisassociateExternalConnectionResult) => void): Request<CodeArtifact.Types.DisassociateExternalConnectionResult, AWSError>; /** * 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. */ disposePackageVersions(params: CodeArtifact.Types.DisposePackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DisposePackageVersionsResult) => void): Request<CodeArtifact.Types.DisposePackageVersionsResult, AWSError>; /** * 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. */ disposePackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.DisposePackageVersionsResult) => void): Request<CodeArtifact.Types.DisposePackageVersionsResult, AWSError>; /** * 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 AWS CodeArtifact authentication and tokens. 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. */ getAuthorizationToken(params: CodeArtifact.Types.GetAuthorizationTokenRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetAuthorizationTokenResult) => void): Request<CodeArtifact.Types.GetAuthorizationTokenResult, AWSError>; /** * 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 AWS CodeArtifact authentication and tokens. 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. */ getAuthorizationToken(callback?: (err: AWSError, data: CodeArtifact.Types.GetAuthorizationTokenResult) => void): Request<CodeArtifact.Types.GetAuthorizationTokenResult, AWSError>; /** * Returns the resource policy attached to the specified domain. 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 AWS Identity and Access Management User Guide. */ getDomainPermissionsPolicy(params: CodeArtifact.Types.GetDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetDomainPermissionsPolicyResult, AWSError>; /** * Returns the resource policy attached to the specified domain. 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 AWS Identity and Access Management User Guide. */ getDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.GetDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetDomainPermissionsPolicyResult, AWSError>; /** * 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. */ getPackageVersionAsset(params: CodeArtifact.Types.GetPackageVersionAssetRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionAssetResult) => void): Request<CodeArtifact.Types.GetPackageVersionAssetResult, AWSError>; /** * 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. */ getPackageVersionAsset(callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionAssetResult) => void): Request<CodeArtifact.Types.GetPackageVersionAssetResult, AWSError>; /** * Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact extracts a description from a metadata file. For example, from the &lt;description&gt; element in the pom.xml file of a Maven package. The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText. */ getPackageVersionReadme(params: CodeArtifact.Types.GetPackageVersionReadmeRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionReadmeResult) => void): Request<CodeArtifact.Types.GetPackageVersionReadmeResult, AWSError>; /** * Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact extracts a description from a metadata file. For example, from the &lt;description&gt; element in the pom.xml file of a Maven package. The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText. */ getPackageVersionReadme(callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionReadmeResult) => void): Request<CodeArtifact.Types.GetPackageVersionReadmeResult, AWSError>; /** * Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format: npm pypi maven */ getRepositoryEndpoint(params: CodeArtifact.Types.GetRepositoryEndpointRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryEndpointResult) => void): Request<CodeArtifact.Types.GetRepositoryEndpointResult, AWSError>; /** * Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format: npm pypi maven */ getRepositoryEndpoint(callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryEndpointResult) => void): Request<CodeArtifact.Types.GetRepositoryEndpointResult, AWSError>; /** * Returns the resource policy that is set on a repository. */ getRepositoryPermissionsPolicy(params: CodeArtifact.Types.GetRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetRepositoryPermissionsPolicyResult, AWSError>; /** * Returns the resource policy that is set on a repository. */ getRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetRepositoryPermissionsPolicyResult, AWSError>; /** * Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned DomainSummary object contains information about a domain. */ listDomains(params: CodeArtifact.Types.ListDomainsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListDomainsResult) => void): Request<CodeArtifact.Types.ListDomainsResult, AWSError>; /** * Returns a list of DomainSummary objects for all domains owned by the AWS account that makes this call. Each returned DomainSummary object contains information about a domain. */ listDomains(callback?: (err: AWSError, data: CodeArtifact.Types.ListDomainsResult) => void): Request<CodeArtifact.Types.ListDomainsResult, AWSError>; /** * Returns a list of AssetSummary objects for assets in a package version. */ listPackageVersionAssets(params: CodeArtifact.Types.ListPackageVersionAssetsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionAssetsResult) => void): Request<CodeArtifact.Types.ListPackageVersionAssetsResult, AWSError>; /** * Returns a list of AssetSummary objects for assets in a package version. */ listPackageVersionAssets(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionAssetsResult) => void): Request<CodeArtifact.Types.ListPackageVersionAssetsResult, AWSError>; /** * 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. */ listPackageVersionDependencies(params: CodeArtifact.Types.ListPackageVersionDependenciesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionDependenciesResult) => void): Request<CodeArtifact.Types.ListPackageVersionDependenciesResult, AWSError>; /** * 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. */ listPackageVersionDependencies(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionDependenciesResult) => void): Request<CodeArtifact.Types.ListPackageVersionDependenciesResult, AWSError>; /** * Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. */ listPackageVersions(params: CodeArtifact.Types.ListPackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionsResult) => void): Request<CodeArtifact.Types.ListPackageVersionsResult, AWSError>; /** * Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. */ listPackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionsResult) => void): Request<CodeArtifact.Types.ListPackageVersionsResult, AWSError>; /** * Returns a list of PackageSummary objects for packages in a repository that match the request parameters. */ listPackages(params: CodeArtifact.Types.ListPackagesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackagesResult) => void): Request<CodeArtifact.Types.ListPackagesResult, AWSError>; /** * Returns a list of PackageSummary objects for packages in a repository that match the request parameters. */ listPackages(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackagesResult) => void): Request<CodeArtifact.Types.ListPackagesResult, AWSError>; /** * Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified AWS account and that matches the input parameters. */ listRepositories(params: CodeArtifact.Types.ListRepositoriesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesResult) => void): Request<CodeArtifact.Types.ListRepositoriesResult, AWSError>; /** * Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified AWS account and that matches the input parameters. */ listRepositories(callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesResult) => void): Request<CodeArtifact.Types.ListRepositoriesResult, AWSError>; /** * Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters. */ listRepositoriesInDomain(params: CodeArtifact.Types.ListRepositoriesInDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesInDomainResult) => void): Request<CodeArtifact.Types.ListRepositoriesInDomainResult, AWSError>; /** * Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters. */ listRepositoriesInDomain(callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesInDomainResult) => void): Request<CodeArtifact.Types.ListRepositoriesInDomainResult, AWSError>; /** * Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact. */ listTagsForResource(params: CodeArtifact.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListTagsForResourceResult) => void): Request<CodeArtifact.Types.ListTagsForResourceResult, AWSError>; /** * Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact. */ listTagsForResource(callback?: (err: AWSError, data: CodeArtifact.Types.ListTagsForResourceResult) => void): Request<CodeArtifact.Types.ListTagsForResourceResult, AWSError>; /** * 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. */ putDomainPermissionsPolicy(params: CodeArtifact.Types.PutDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.PutDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutDomainPermissionsPolicyResult, AWSError>; /** * 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. */ putDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.PutDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutDomainPermissionsPolicyResult, AWSError>; /** * 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. */ putRepositoryPermissionsPolicy(params: CodeArtifact.Types.PutRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.PutRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutRepositoryPermissionsPolicyResult, AWSError>; /** * 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. */ putRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.PutRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutRepositoryPermissionsPolicyResult, AWSError>; /** * Adds or updates tags for a resource in AWS CodeArtifact. */ tagResource(params: CodeArtifact.Types.TagResourceRequest, callback?: (err: AWSError, data: CodeArtifact.Types.TagResourceResult) => void): Request<CodeArtifact.Types.TagResourceResult, AWSError>; /** * Adds or updates tags for a resource in AWS CodeArtifact. */ tagResource(callback?: (err: AWSError, data: CodeArtifact.Types.TagResourceResult) => void): Request<CodeArtifact.Types.TagResourceResult, AWSError>; /** * Removes tags from a resource in AWS CodeArtifact. */ untagResource(params: CodeArtifact.Types.UntagResourceRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UntagResourceResult) => void): Request<CodeArtifact.Types.UntagResourceResult, AWSError>; /** * Removes tags from a resource in AWS CodeArtifact. */ untagResource(callback?: (err: AWSError, data: CodeArtifact.Types.UntagResourceResult) => void): Request<CodeArtifact.Types.UntagResourceResult, AWSError>; /** * Updates the status of one or more versions of a package. */ updatePackageVersionsStatus(params: CodeArtifact.Types.UpdatePackageVersionsStatusRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UpdatePackageVersionsStatusResult) => void): Request<CodeArtifact.Types.UpdatePackageVersionsStatusResult, AWSError>; /** * Updates the status of one or more versions of a package. */ updatePackageVersionsStatus(callback?: (err: AWSError, data: CodeArtifact.Types.UpdatePackageVersionsStatusResult) => void): Request<CodeArtifact.Types.UpdatePackageVersionsStatusResult, AWSError>; /** * Update the properties of a repository. */ updateRepository(params: CodeArtifact.Types.UpdateRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UpdateRepositoryResult) => void): Request<CodeArtifact.Types.UpdateRepositoryResult, AWSError>; /** * Update the properties of a repository. */ updateRepository(callback?: (err: AWSError, data: CodeArtifact.Types.UpdateRepositoryResult) => void): Request<CodeArtifact.Types.UpdateRepositoryResult, AWSError>; } declare namespace CodeArtifact { export type AccountId = string; export type Arn = string; export type Asset = Buffer|Uint8Array|Blob|string|Readable; export type AssetHashes = {[key: string]: HashValue}; export type AssetName = string; export interface AssetSummary { /** * The name of the asset. */ name: AssetName; /** * The size of the asset. */ size?: LongOptional; /** * The hashes of the asset. */ hashes?: AssetHashes; } export type AssetSummaryList = AssetSummary[]; export interface AssociateExternalConnectionRequest { /** * The name of the domain that contains the repository. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository to which the external connection is added. */ repository: RepositoryName; /** * The name of the external connection to add to the repository. The following values are supported: public:npmjs - for the npm public repository. public:pypi - for the Python Package Index. public:maven-central - for Maven Central. public:maven-googleandroid - for the Google Android repository. public:maven-gradleplugins - for the Gradle plugins repository. public:maven-commonsware - for the CommonsWare Android repository. */ externalConnection: ExternalConnectionName; } export interface AssociateExternalConnectionResult { /** * Information about the connected repository after processing the request. */ repository?: RepositoryDescription; } export type AuthorizationTokenDurationSeconds = number; export type BooleanOptional = boolean; export interface CopyPackageVersionsRequest { /** * The name of the domain that contains the source and destination repositories. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository that contains the package versions to copy. */ sourceRepository: RepositoryName; /** * The name of the repository into which package versions are copied. */ destinationRepository: RepositoryName; /** * The format of the package that is copied. The valid package types are: npm: A Node Package Manager (npm) package. pypi: A Python Package Index (PyPI) package. maven: A Maven package that contains compiled code in a distributable format, such as a JAR file. */ format: PackageFormat; /** * The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace. */ namespace?: PackageNamespace; /** * The name of the package that is copied. */ package: PackageName; /** * The versions of the package to copy. You must specify versions or versionRevisions. You cannot specify both. */ versions?: PackageVersionList; /** * A list of key-value pairs. The keys are package versions and the values are package version revisions. A CopyPackageVersion operation succeeds if the specified versions in the source repository match the specified package version revision. You must specify versions or versionRevisions. You cannot specify both. */ versionRevisions?: PackageVersionRevisionMap; /** * 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. */ allowOverwrite?: BooleanOptional; /** * 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. */ includeFromUpstream?: BooleanOptional; } export interface CopyPackageVersionsResult { /** * A list of the package versions that were successfully copied to your repository. */ successfulVersions?: SuccessfulPackageVersionInfoMap; /** * 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 */ failedVersions?: PackageVersionErrorMap; } export interface CreateDomainRequest { /** * The name of the domain to create. All domain names in an AWS Region that are in the same AWS 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. */ domain: DomainName; /** * 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 AWS Key Management Service API Reference and AWS KMS API Permissions Reference in the AWS Key Management Service Developer Guide. 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 AWS Key Management Service Developer Guide. */ encryptionKey?: Arn; /** * One or more tag key-value pairs for the domain. */ tags?: TagList; } export interface CreateDomainResult { /** * Contains information about the created domain after processing the request. */ domain?: DomainDescription; } export interface CreateRepositoryRequest { /** * The name of the domain that contains the created repository. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository to create. */ repository: RepositoryName; /** * A description of the created repository. */ description?: Description; /** * A list of upstream repositories to associate with the repository. The order of the upstream repositories in the list determines their priority order when AWS CodeArtifact looks for a requested package version. For more information, see Working with upstream repositories. */ upstreams?: UpstreamRepositoryList; /** * One or more tag key-value pairs for the repository. */ tags?: TagList; } export interface CreateRepositoryResult { /** * Information about the created repository after processing the request. */ repository?: RepositoryDescription; } export interface DeleteDomainPermissionsPolicyRequest { /** * The name of the domain associated with the resource policy to be deleted. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * 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. */ policyRevision?: PolicyRevision; } export interface DeleteDomainPermissionsPolicyResult { /** * Information about the deleted resource policy after processing the request. */ policy?: ResourcePolicy; } export interface DeleteDomainRequest { /** * The name of the domain to delete. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; } export interface DeleteDomainResult { /** * Contains information about the deleted domain after processing the request. */ domain?: DomainDescription; } export interface DeletePackageVersionsRequest { /** * The name of the domain that contains the package to delete. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository that contains the package versions to delete. */ repository: RepositoryName; /** * The format of the package versions to delete. The valid values are: npm pypi maven */ format: PackageFormat; /** * The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace. */ namespace?: PackageNamespace; /** * The name of the package with the versions to delete. */ package: PackageName; /** * An array of strings that specify the versions of the package to delete. */ versions: PackageVersionList; /** * The expected status of the package version to delete. Valid values are: Published Unfinished Unlisted Archived Disposed */ expectedStatus?: PackageVersionStatus; } export interface DeletePackageVersionsResult { /** * A list of the package versions that were successfully deleted. */ successfulVersions?: SuccessfulPackageVersionInfoMap; /** * 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 */ failedVersions?: PackageVersionErrorMap; } export interface DeleteRepositoryPermissionsPolicyRequest { /** * The name of the domain that contains the repository associated with the resource policy to be deleted. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository that is associated with the resource policy to be deleted */ repository: RepositoryName; /** * 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. */ policyRevision?: PolicyRevision; } export interface DeleteRepositoryPermissionsPolicyResult { /** * Information about the deleted policy after processing the request. */ policy?: ResourcePolicy; } export interface DeleteRepositoryRequest { /** * The name of the domain that contains the repository to delete. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository to delete. */ repository: RepositoryName; } export interface DeleteRepositoryResult { /** * Information about the deleted repository after processing the request. */ repository?: RepositoryDescription; } export interface DescribeDomainRequest { /** * A string that specifies the name of the requested domain. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; } export interface DescribeDomainResult { domain?: DomainDescription; } export interface DescribePackageVersionRequest { /** * The name of the domain that contains the repository that contains the package version. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository that contains the package version. */ repository: RepositoryName; /** * A format that specifies the type of the requested package version. The valid values are: npm pypi maven */ format: PackageFormat; /** * The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace. */ namespace?: PackageNamespace; /** * The name of the requested package version. */ package: PackageName; /** * A string that contains the package version (for example, 3.5.2). */ packageVersion: PackageVersion; } export interface DescribePackageVersionResult { /** * A PackageVersionDescription object that contains information about the requested package version. */ packageVersion: PackageVersionDescription; } export interface DescribeRepositoryRequest { /** * The name of the domain that contains the repository to describe. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * A string that specifies the name of the requested repository. */ repository: RepositoryName; } export interface DescribeRepositoryResult { /** * A RepositoryDescription object that contains the requested repository information. */ repository?: RepositoryDescription; } export type Description = string; export interface DisassociateExternalConnectionRequest { /** * The name of the domain that contains the repository from which to remove the external repository. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository from which the external connection will be removed. */ repository: RepositoryName; /** * The name of the external connection to be removed from the repository. */ externalConnection: ExternalConnectionName; } export interface DisassociateExternalConnectionResult { /** * The repository associated with the removed external connection. */ repository?: RepositoryDescription; } export interface DisposePackageVersionsRequest { /** * The name of the domain that contains the repository you want to dispose. */ domain: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ domainOwner?: AccountId; /** * The name of the repository that contains the package versions you want to dispose. */ repository: RepositoryName; /** * A format that specifies the type of package versions you want to dispose. The valid values are: npm pypi maven */ format: PackageFormat; /** * The namespace of the package. The package component that specifies its namespace depends on its type. For example: The namespace of a Maven package is its groupId. The namespace of an npm package is its scope. A Python package does not contain a corresponding component, so Python packages do not have a namespace. */ namespace?: PackageNamespace; /** * The name of the package with the versions you want to dispose. */ package: PackageName; /** * The versions of the package you want to dispose. */ versions: PackageVersionList; /** * The revisions of the package versions you want to dispose. */ versionRevisions?: PackageVersionRevisionMap; /** * The expected status of the package version to dispose. Valid values are: Published Unfinished Unlisted Archived Disposed */ expectedStatus?: PackageVersionStatus; } export interface DisposePackageVersionsResult { /** * A list of the package versions that were successfully disposed. */ successfulVersions?: SuccessfulPackageVersionInfoMap; /** * 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 */ failedVersions?: PackageVersionErrorMap; } export interface DomainDescription { /** * The name of the domain. */ name?: DomainName; /** * The AWS account ID that owns the domain. */ owner?: AccountId; /** * The Amazon Resource Name (ARN) of the domain. */ arn?: Arn; /** * The current status of a domain. The valid values are Active Deleted */ status?: DomainStatus; /** * A timestamp that represents the date and time the domain was created. */ createdTime?: Timestamp; /** * The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. */ encryptionKey?: Arn; /** * The number of repositories in the domain. */ repositoryCount?: Integer; /** * The total size of all assets in the domain. */ assetSizeBytes?: Long; /** * The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain. */ s3BucketArn?: Arn; } export type DomainName = string; export type DomainStatus = "Active"|"Deleted"|string; export interface DomainSummary { /** * The name of the domain. */ name?: DomainName; /** * The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. */ owner?: AccountId; /** * The ARN of the domain. */ arn?: Arn; /** * A string that contains the status of the domain. The valid values are: Active Deleted