codeartifact.d.ts
   1  import {Request} from '../lib/request';
   2  import {Response} from '../lib/response';
   3  import {AWSError} from '../lib/error';
   4  import {Service} from '../lib/service';
   5  import {ServiceConfigurationOptions} from '../lib/service';
   6  import {ConfigBase as Config} from '../lib/config-base';
   7  import {Readable} from 'stream';
   8  interface Blob {}
   9  declare class CodeArtifact extends Service {
  10    /**
  11     * Constructs a service object. This object has one method for each API operation.
  12     */
  13    constructor(options?: CodeArtifact.Types.ClientConfiguration)
  14    config: Config & CodeArtifact.Types.ClientConfiguration;
  15    /**
  16     * 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. 
  17     */
  18    associateExternalConnection(params: CodeArtifact.Types.AssociateExternalConnectionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.AssociateExternalConnectionResult) => void): Request<CodeArtifact.Types.AssociateExternalConnectionResult, AWSError>;
  19    /**
  20     * 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. 
  21     */
  22    associateExternalConnection(callback?: (err: AWSError, data: CodeArtifact.Types.AssociateExternalConnectionResult) => void): Request<CodeArtifact.Types.AssociateExternalConnectionResult, AWSError>;
  23    /**
  24     *  Copies package versions from one repository to another repository in the same domain.    You must specify versions or versionRevisions. You cannot specify both.  
  25     */
  26    copyPackageVersions(params: CodeArtifact.Types.CopyPackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CopyPackageVersionsResult) => void): Request<CodeArtifact.Types.CopyPackageVersionsResult, AWSError>;
  27    /**
  28     *  Copies package versions from one repository to another repository in the same domain.    You must specify versions or versionRevisions. You cannot specify both.  
  29     */
  30    copyPackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.CopyPackageVersionsResult) => void): Request<CodeArtifact.Types.CopyPackageVersionsResult, AWSError>;
  31    /**
  32     *  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. 
  33     */
  34    createDomain(params: CodeArtifact.Types.CreateDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CreateDomainResult) => void): Request<CodeArtifact.Types.CreateDomainResult, AWSError>;
  35    /**
  36     *  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. 
  37     */
  38    createDomain(callback?: (err: AWSError, data: CodeArtifact.Types.CreateDomainResult) => void): Request<CodeArtifact.Types.CreateDomainResult, AWSError>;
  39    /**
  40     *  Creates a repository. 
  41     */
  42    createRepository(params: CodeArtifact.Types.CreateRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.CreateRepositoryResult) => void): Request<CodeArtifact.Types.CreateRepositoryResult, AWSError>;
  43    /**
  44     *  Creates a repository. 
  45     */
  46    createRepository(callback?: (err: AWSError, data: CodeArtifact.Types.CreateRepositoryResult) => void): Request<CodeArtifact.Types.CreateRepositoryResult, AWSError>;
  47    /**
  48     *  Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories. 
  49     */
  50    deleteDomain(params: CodeArtifact.Types.DeleteDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainResult) => void): Request<CodeArtifact.Types.DeleteDomainResult, AWSError>;
  51    /**
  52     *  Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain with repositories, first delete its repositories. 
  53     */
  54    deleteDomain(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainResult) => void): Request<CodeArtifact.Types.DeleteDomainResult, AWSError>;
  55    /**
  56     *  Deletes the resource policy set on a domain. 
  57     */
  58    deleteDomainPermissionsPolicy(params: CodeArtifact.Types.DeleteDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteDomainPermissionsPolicyResult, AWSError>;
  59    /**
  60     *  Deletes the resource policy set on a domain. 
  61     */
  62    deleteDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteDomainPermissionsPolicyResult, AWSError>;
  63    /**
  64     *  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. 
  65     */
  66    deletePackageVersions(params: CodeArtifact.Types.DeletePackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeletePackageVersionsResult) => void): Request<CodeArtifact.Types.DeletePackageVersionsResult, AWSError>;
  67    /**
  68     *  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. 
  69     */
  70    deletePackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.DeletePackageVersionsResult) => void): Request<CodeArtifact.Types.DeletePackageVersionsResult, AWSError>;
  71    /**
  72     *  Deletes a repository. 
  73     */
  74    deleteRepository(params: CodeArtifact.Types.DeleteRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryResult) => void): Request<CodeArtifact.Types.DeleteRepositoryResult, AWSError>;
  75    /**
  76     *  Deletes a repository. 
  77     */
  78    deleteRepository(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryResult) => void): Request<CodeArtifact.Types.DeleteRepositoryResult, AWSError>;
  79    /**
  80     *  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.  
  81     */
  82    deleteRepositoryPermissionsPolicy(params: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult, AWSError>;
  83    /**
  84     *  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.  
  85     */
  86    deleteRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.DeleteRepositoryPermissionsPolicyResult, AWSError>;
  87    /**
  88     *  Returns a DomainDescription object that contains information about the requested domain. 
  89     */
  90    describeDomain(params: CodeArtifact.Types.DescribeDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribeDomainResult) => void): Request<CodeArtifact.Types.DescribeDomainResult, AWSError>;
  91    /**
  92     *  Returns a DomainDescription object that contains information about the requested domain. 
  93     */
  94    describeDomain(callback?: (err: AWSError, data: CodeArtifact.Types.DescribeDomainResult) => void): Request<CodeArtifact.Types.DescribeDomainResult, AWSError>;
  95    /**
  96     *  Returns a PackageVersionDescription object that contains information about the requested package version. 
  97     */
  98    describePackageVersion(params: CodeArtifact.Types.DescribePackageVersionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribePackageVersionResult) => void): Request<CodeArtifact.Types.DescribePackageVersionResult, AWSError>;
  99    /**
 100     *  Returns a PackageVersionDescription object that contains information about the requested package version. 
 101     */
 102    describePackageVersion(callback?: (err: AWSError, data: CodeArtifact.Types.DescribePackageVersionResult) => void): Request<CodeArtifact.Types.DescribePackageVersionResult, AWSError>;
 103    /**
 104     *  Returns a RepositoryDescription object that contains detailed information about the requested repository. 
 105     */
 106    describeRepository(params: CodeArtifact.Types.DescribeRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DescribeRepositoryResult) => void): Request<CodeArtifact.Types.DescribeRepositoryResult, AWSError>;
 107    /**
 108     *  Returns a RepositoryDescription object that contains detailed information about the requested repository. 
 109     */
 110    describeRepository(callback?: (err: AWSError, data: CodeArtifact.Types.DescribeRepositoryResult) => void): Request<CodeArtifact.Types.DescribeRepositoryResult, AWSError>;
 111    /**
 112     *  Removes an existing external connection from a repository. 
 113     */
 114    disassociateExternalConnection(params: CodeArtifact.Types.DisassociateExternalConnectionRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DisassociateExternalConnectionResult) => void): Request<CodeArtifact.Types.DisassociateExternalConnectionResult, AWSError>;
 115    /**
 116     *  Removes an existing external connection from a repository. 
 117     */
 118    disassociateExternalConnection(callback?: (err: AWSError, data: CodeArtifact.Types.DisassociateExternalConnectionResult) => void): Request<CodeArtifact.Types.DisassociateExternalConnectionResult, AWSError>;
 119    /**
 120     *  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. 
 121     */
 122    disposePackageVersions(params: CodeArtifact.Types.DisposePackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.DisposePackageVersionsResult) => void): Request<CodeArtifact.Types.DisposePackageVersionsResult, AWSError>;
 123    /**
 124     *  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. 
 125     */
 126    disposePackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.DisposePackageVersionsResult) => void): Request<CodeArtifact.Types.DisposePackageVersionsResult, AWSError>;
 127    /**
 128     *  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.  
 129     */
 130    getAuthorizationToken(params: CodeArtifact.Types.GetAuthorizationTokenRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetAuthorizationTokenResult) => void): Request<CodeArtifact.Types.GetAuthorizationTokenResult, AWSError>;
 131    /**
 132     *  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.  
 133     */
 134    getAuthorizationToken(callback?: (err: AWSError, data: CodeArtifact.Types.GetAuthorizationTokenResult) => void): Request<CodeArtifact.Types.GetAuthorizationTokenResult, AWSError>;
 135    /**
 136     *  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.  
 137     */
 138    getDomainPermissionsPolicy(params: CodeArtifact.Types.GetDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetDomainPermissionsPolicyResult, AWSError>;
 139    /**
 140     *  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.  
 141     */
 142    getDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.GetDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetDomainPermissionsPolicyResult, AWSError>;
 143    /**
 144     *  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. 
 145     */
 146    getPackageVersionAsset(params: CodeArtifact.Types.GetPackageVersionAssetRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionAssetResult) => void): Request<CodeArtifact.Types.GetPackageVersionAssetResult, AWSError>;
 147    /**
 148     *  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. 
 149     */
 150    getPackageVersionAsset(callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionAssetResult) => void): Request<CodeArtifact.Types.GetPackageVersionAssetResult, AWSError>;
 151    /**
 152     *  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. 
 153     */
 154    getPackageVersionReadme(params: CodeArtifact.Types.GetPackageVersionReadmeRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionReadmeResult) => void): Request<CodeArtifact.Types.GetPackageVersionReadmeResult, AWSError>;
 155    /**
 156     *  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. 
 157     */
 158    getPackageVersionReadme(callback?: (err: AWSError, data: CodeArtifact.Types.GetPackageVersionReadmeResult) => void): Request<CodeArtifact.Types.GetPackageVersionReadmeResult, AWSError>;
 159    /**
 160     *  Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:     npm     pypi     maven   
 161     */
 162    getRepositoryEndpoint(params: CodeArtifact.Types.GetRepositoryEndpointRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryEndpointResult) => void): Request<CodeArtifact.Types.GetRepositoryEndpointResult, AWSError>;
 163    /**
 164     *  Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each package format:     npm     pypi     maven   
 165     */
 166    getRepositoryEndpoint(callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryEndpointResult) => void): Request<CodeArtifact.Types.GetRepositoryEndpointResult, AWSError>;
 167    /**
 168     *  Returns the resource policy that is set on a repository. 
 169     */
 170    getRepositoryPermissionsPolicy(params: CodeArtifact.Types.GetRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetRepositoryPermissionsPolicyResult, AWSError>;
 171    /**
 172     *  Returns the resource policy that is set on a repository. 
 173     */
 174    getRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.GetRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.GetRepositoryPermissionsPolicyResult, AWSError>;
 175    /**
 176     *  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. 
 177     */
 178    listDomains(params: CodeArtifact.Types.ListDomainsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListDomainsResult) => void): Request<CodeArtifact.Types.ListDomainsResult, AWSError>;
 179    /**
 180     *  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. 
 181     */
 182    listDomains(callback?: (err: AWSError, data: CodeArtifact.Types.ListDomainsResult) => void): Request<CodeArtifact.Types.ListDomainsResult, AWSError>;
 183    /**
 184     *  Returns a list of AssetSummary objects for assets in a package version. 
 185     */
 186    listPackageVersionAssets(params: CodeArtifact.Types.ListPackageVersionAssetsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionAssetsResult) => void): Request<CodeArtifact.Types.ListPackageVersionAssetsResult, AWSError>;
 187    /**
 188     *  Returns a list of AssetSummary objects for assets in a package version. 
 189     */
 190    listPackageVersionAssets(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionAssetsResult) => void): Request<CodeArtifact.Types.ListPackageVersionAssetsResult, AWSError>;
 191    /**
 192     *  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. 
 193     */
 194    listPackageVersionDependencies(params: CodeArtifact.Types.ListPackageVersionDependenciesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionDependenciesResult) => void): Request<CodeArtifact.Types.ListPackageVersionDependenciesResult, AWSError>;
 195    /**
 196     *  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. 
 197     */
 198    listPackageVersionDependencies(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionDependenciesResult) => void): Request<CodeArtifact.Types.ListPackageVersionDependenciesResult, AWSError>;
 199    /**
 200     *  Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. 
 201     */
 202    listPackageVersions(params: CodeArtifact.Types.ListPackageVersionsRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionsResult) => void): Request<CodeArtifact.Types.ListPackageVersionsResult, AWSError>;
 203    /**
 204     *  Returns a list of PackageVersionSummary objects for package versions in a repository that match the request parameters. 
 205     */
 206    listPackageVersions(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackageVersionsResult) => void): Request<CodeArtifact.Types.ListPackageVersionsResult, AWSError>;
 207    /**
 208     *  Returns a list of PackageSummary objects for packages in a repository that match the request parameters. 
 209     */
 210    listPackages(params: CodeArtifact.Types.ListPackagesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListPackagesResult) => void): Request<CodeArtifact.Types.ListPackagesResult, AWSError>;
 211    /**
 212     *  Returns a list of PackageSummary objects for packages in a repository that match the request parameters. 
 213     */
 214    listPackages(callback?: (err: AWSError, data: CodeArtifact.Types.ListPackagesResult) => void): Request<CodeArtifact.Types.ListPackagesResult, AWSError>;
 215    /**
 216     *  Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified AWS account and that matches the input parameters. 
 217     */
 218    listRepositories(params: CodeArtifact.Types.ListRepositoriesRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesResult) => void): Request<CodeArtifact.Types.ListRepositoriesResult, AWSError>;
 219    /**
 220     *  Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified AWS account and that matches the input parameters. 
 221     */
 222    listRepositories(callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesResult) => void): Request<CodeArtifact.Types.ListRepositoriesResult, AWSError>;
 223    /**
 224     *  Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters. 
 225     */
 226    listRepositoriesInDomain(params: CodeArtifact.Types.ListRepositoriesInDomainRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesInDomainResult) => void): Request<CodeArtifact.Types.ListRepositoriesInDomainResult, AWSError>;
 227    /**
 228     *  Returns a list of RepositorySummary objects. Each RepositorySummary contains information about a repository in the specified domain and that matches the input parameters. 
 229     */
 230    listRepositoriesInDomain(callback?: (err: AWSError, data: CodeArtifact.Types.ListRepositoriesInDomainResult) => void): Request<CodeArtifact.Types.ListRepositoriesInDomainResult, AWSError>;
 231    /**
 232     * Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact.
 233     */
 234    listTagsForResource(params: CodeArtifact.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: CodeArtifact.Types.ListTagsForResourceResult) => void): Request<CodeArtifact.Types.ListTagsForResourceResult, AWSError>;
 235    /**
 236     * Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact.
 237     */
 238    listTagsForResource(callback?: (err: AWSError, data: CodeArtifact.Types.ListTagsForResourceResult) => void): Request<CodeArtifact.Types.ListTagsForResourceResult, AWSError>;
 239    /**
 240     *  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. 
 241     */
 242    putDomainPermissionsPolicy(params: CodeArtifact.Types.PutDomainPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.PutDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutDomainPermissionsPolicyResult, AWSError>;
 243    /**
 244     *  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. 
 245     */
 246    putDomainPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.PutDomainPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutDomainPermissionsPolicyResult, AWSError>;
 247    /**
 248     *  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. 
 249     */
 250    putRepositoryPermissionsPolicy(params: CodeArtifact.Types.PutRepositoryPermissionsPolicyRequest, callback?: (err: AWSError, data: CodeArtifact.Types.PutRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutRepositoryPermissionsPolicyResult, AWSError>;
 251    /**
 252     *  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. 
 253     */
 254    putRepositoryPermissionsPolicy(callback?: (err: AWSError, data: CodeArtifact.Types.PutRepositoryPermissionsPolicyResult) => void): Request<CodeArtifact.Types.PutRepositoryPermissionsPolicyResult, AWSError>;
 255    /**
 256     * Adds or updates tags for a resource in AWS CodeArtifact.
 257     */
 258    tagResource(params: CodeArtifact.Types.TagResourceRequest, callback?: (err: AWSError, data: CodeArtifact.Types.TagResourceResult) => void): Request<CodeArtifact.Types.TagResourceResult, AWSError>;
 259    /**
 260     * Adds or updates tags for a resource in AWS CodeArtifact.
 261     */
 262    tagResource(callback?: (err: AWSError, data: CodeArtifact.Types.TagResourceResult) => void): Request<CodeArtifact.Types.TagResourceResult, AWSError>;
 263    /**
 264     * Removes tags from a resource in AWS CodeArtifact.
 265     */
 266    untagResource(params: CodeArtifact.Types.UntagResourceRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UntagResourceResult) => void): Request<CodeArtifact.Types.UntagResourceResult, AWSError>;
 267    /**
 268     * Removes tags from a resource in AWS CodeArtifact.
 269     */
 270    untagResource(callback?: (err: AWSError, data: CodeArtifact.Types.UntagResourceResult) => void): Request<CodeArtifact.Types.UntagResourceResult, AWSError>;
 271    /**
 272     *  Updates the status of one or more versions of a package. 
 273     */
 274    updatePackageVersionsStatus(params: CodeArtifact.Types.UpdatePackageVersionsStatusRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UpdatePackageVersionsStatusResult) => void): Request<CodeArtifact.Types.UpdatePackageVersionsStatusResult, AWSError>;
 275    /**
 276     *  Updates the status of one or more versions of a package. 
 277     */
 278    updatePackageVersionsStatus(callback?: (err: AWSError, data: CodeArtifact.Types.UpdatePackageVersionsStatusResult) => void): Request<CodeArtifact.Types.UpdatePackageVersionsStatusResult, AWSError>;
 279    /**
 280     *  Update the properties of a repository. 
 281     */
 282    updateRepository(params: CodeArtifact.Types.UpdateRepositoryRequest, callback?: (err: AWSError, data: CodeArtifact.Types.UpdateRepositoryResult) => void): Request<CodeArtifact.Types.UpdateRepositoryResult, AWSError>;
 283    /**
 284     *  Update the properties of a repository. 
 285     */
 286    updateRepository(callback?: (err: AWSError, data: CodeArtifact.Types.UpdateRepositoryResult) => void): Request<CodeArtifact.Types.UpdateRepositoryResult, AWSError>;
 287  }
 288  declare namespace CodeArtifact {
 289    export type AccountId = string;
 290    export type Arn = string;
 291    export type Asset = Buffer|Uint8Array|Blob|string|Readable;
 292    export type AssetHashes = {[key: string]: HashValue};
 293    export type AssetName = string;
 294    export interface AssetSummary {
 295      /**
 296       *  The name of the asset. 
 297       */
 298      name: AssetName;
 299      /**
 300       *  The size of the asset. 
 301       */
 302      size?: LongOptional;
 303      /**
 304       *  The hashes of the asset. 
 305       */
 306      hashes?: AssetHashes;
 307    }
 308    export type AssetSummaryList = AssetSummary[];
 309    export interface AssociateExternalConnectionRequest {
 310      /**
 311       * The name of the domain that contains the repository.
 312       */
 313      domain: DomainName;
 314      /**
 315       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 316       */
 317      domainOwner?: AccountId;
 318      /**
 319       *  The name of the repository to which the external connection is added. 
 320       */
 321      repository: RepositoryName;
 322      /**
 323       *  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.   
 324       */
 325      externalConnection: ExternalConnectionName;
 326    }
 327    export interface AssociateExternalConnectionResult {
 328      /**
 329       *  Information about the connected repository after processing the request. 
 330       */
 331      repository?: RepositoryDescription;
 332    }
 333    export type AuthorizationTokenDurationSeconds = number;
 334    export type BooleanOptional = boolean;
 335    export interface CopyPackageVersionsRequest {
 336      /**
 337       *  The name of the domain that contains the source and destination repositories. 
 338       */
 339      domain: DomainName;
 340      /**
 341       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 342       */
 343      domainOwner?: AccountId;
 344      /**
 345       *  The name of the repository that contains the package versions to copy. 
 346       */
 347      sourceRepository: RepositoryName;
 348      /**
 349       *  The name of the repository into which package versions are copied. 
 350       */
 351      destinationRepository: RepositoryName;
 352      /**
 353       *  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.   
 354       */
 355      format: PackageFormat;
 356      /**
 357       *  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.   
 358       */
 359      namespace?: PackageNamespace;
 360      /**
 361       *  The name of the package that is copied. 
 362       */
 363      package: PackageName;
 364      /**
 365       *  The versions of the package to copy.    You must specify versions or versionRevisions. You cannot specify both.  
 366       */
 367      versions?: PackageVersionList;
 368      /**
 369       *  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.  
 370       */
 371      versionRevisions?: PackageVersionRevisionMap;
 372      /**
 373       *  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. 
 374       */
 375      allowOverwrite?: BooleanOptional;
 376      /**
 377       *  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. 
 378       */
 379      includeFromUpstream?: BooleanOptional;
 380    }
 381    export interface CopyPackageVersionsResult {
 382      /**
 383       *  A list of the package versions that were successfully copied to your repository. 
 384       */
 385      successfulVersions?: SuccessfulPackageVersionInfoMap;
 386      /**
 387       *  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   
 388       */
 389      failedVersions?: PackageVersionErrorMap;
 390    }
 391    export interface CreateDomainRequest {
 392      /**
 393       *  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. 
 394       */
 395      domain: DomainName;
 396      /**
 397       *  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.  
 398       */
 399      encryptionKey?: Arn;
 400      /**
 401       * One or more tag key-value pairs for the domain.
 402       */
 403      tags?: TagList;
 404    }
 405    export interface CreateDomainResult {
 406      /**
 407       *  Contains information about the created domain after processing the request. 
 408       */
 409      domain?: DomainDescription;
 410    }
 411    export interface CreateRepositoryRequest {
 412      /**
 413       *  The name of the domain that contains the created repository. 
 414       */
 415      domain: DomainName;
 416      /**
 417       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 418       */
 419      domainOwner?: AccountId;
 420      /**
 421       *  The name of the repository to create. 
 422       */
 423      repository: RepositoryName;
 424      /**
 425       *  A description of the created repository. 
 426       */
 427      description?: Description;
 428      /**
 429       *  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. 
 430       */
 431      upstreams?: UpstreamRepositoryList;
 432      /**
 433       * One or more tag key-value pairs for the repository.
 434       */
 435      tags?: TagList;
 436    }
 437    export interface CreateRepositoryResult {
 438      /**
 439       *  Information about the created repository after processing the request. 
 440       */
 441      repository?: RepositoryDescription;
 442    }
 443    export interface DeleteDomainPermissionsPolicyRequest {
 444      /**
 445       *  The name of the domain associated with the resource policy to be deleted. 
 446       */
 447      domain: DomainName;
 448      /**
 449       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 450       */
 451      domainOwner?: AccountId;
 452      /**
 453       *  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. 
 454       */
 455      policyRevision?: PolicyRevision;
 456    }
 457    export interface DeleteDomainPermissionsPolicyResult {
 458      /**
 459       *  Information about the deleted resource policy after processing the request. 
 460       */
 461      policy?: ResourcePolicy;
 462    }
 463    export interface DeleteDomainRequest {
 464      /**
 465       *  The name of the domain to delete. 
 466       */
 467      domain: DomainName;
 468      /**
 469       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 470       */
 471      domainOwner?: AccountId;
 472    }
 473    export interface DeleteDomainResult {
 474      /**
 475       *  Contains information about the deleted domain after processing the request. 
 476       */
 477      domain?: DomainDescription;
 478    }
 479    export interface DeletePackageVersionsRequest {
 480      /**
 481       *  The name of the domain that contains the package to delete. 
 482       */
 483      domain: DomainName;
 484      /**
 485       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 486       */
 487      domainOwner?: AccountId;
 488      /**
 489       *  The name of the repository that contains the package versions to delete. 
 490       */
 491      repository: RepositoryName;
 492      /**
 493       *  The format of the package versions to delete. The valid values are:     npm     pypi     maven   
 494       */
 495      format: PackageFormat;
 496      /**
 497       *  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.   
 498       */
 499      namespace?: PackageNamespace;
 500      /**
 501       *  The name of the package with the versions to delete. 
 502       */
 503      package: PackageName;
 504      /**
 505       *  An array of strings that specify the versions of the package to delete. 
 506       */
 507      versions: PackageVersionList;
 508      /**
 509       *  The expected status of the package version to delete. Valid values are:     Published     Unfinished     Unlisted     Archived     Disposed   
 510       */
 511      expectedStatus?: PackageVersionStatus;
 512    }
 513    export interface DeletePackageVersionsResult {
 514      /**
 515       *  A list of the package versions that were successfully deleted. 
 516       */
 517      successfulVersions?: SuccessfulPackageVersionInfoMap;
 518      /**
 519       *  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   
 520       */
 521      failedVersions?: PackageVersionErrorMap;
 522    }
 523    export interface DeleteRepositoryPermissionsPolicyRequest {
 524      /**
 525       *  The name of the domain that contains the repository associated with the resource policy to be deleted. 
 526       */
 527      domain: DomainName;
 528      /**
 529       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 530       */
 531      domainOwner?: AccountId;
 532      /**
 533       *  The name of the repository that is associated with the resource policy to be deleted 
 534       */
 535      repository: RepositoryName;
 536      /**
 537       *  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. 
 538       */
 539      policyRevision?: PolicyRevision;
 540    }
 541    export interface DeleteRepositoryPermissionsPolicyResult {
 542      /**
 543       *  Information about the deleted policy after processing the request. 
 544       */
 545      policy?: ResourcePolicy;
 546    }
 547    export interface DeleteRepositoryRequest {
 548      /**
 549       *  The name of the domain that contains the repository to delete. 
 550       */
 551      domain: DomainName;
 552      /**
 553       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 554       */
 555      domainOwner?: AccountId;
 556      /**
 557       *  The name of the repository to delete. 
 558       */
 559      repository: RepositoryName;
 560    }
 561    export interface DeleteRepositoryResult {
 562      /**
 563       *  Information about the deleted repository after processing the request. 
 564       */
 565      repository?: RepositoryDescription;
 566    }
 567    export interface DescribeDomainRequest {
 568      /**
 569       *  A string that specifies the name of the requested domain. 
 570       */
 571      domain: DomainName;
 572      /**
 573       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 574       */
 575      domainOwner?: AccountId;
 576    }
 577    export interface DescribeDomainResult {
 578      domain?: DomainDescription;
 579    }
 580    export interface DescribePackageVersionRequest {
 581      /**
 582       *  The name of the domain that contains the repository that contains the package version. 
 583       */
 584      domain: DomainName;
 585      /**
 586       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 587       */
 588      domainOwner?: AccountId;
 589      /**
 590       *  The name of the repository that contains the package version. 
 591       */
 592      repository: RepositoryName;
 593      /**
 594       *  A format that specifies the type of the requested package version. The valid values are:     npm     pypi     maven   
 595       */
 596      format: PackageFormat;
 597      /**
 598       *  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.   
 599       */
 600      namespace?: PackageNamespace;
 601      /**
 602       *  The name of the requested package version. 
 603       */
 604      package: PackageName;
 605      /**
 606       *  A string that contains the package version (for example, 3.5.2). 
 607       */
 608      packageVersion: PackageVersion;
 609    }
 610    export interface DescribePackageVersionResult {
 611      /**
 612       *  A PackageVersionDescription object that contains information about the requested package version. 
 613       */
 614      packageVersion: PackageVersionDescription;
 615    }
 616    export interface DescribeRepositoryRequest {
 617      /**
 618       *  The name of the domain that contains the repository to describe. 
 619       */
 620      domain: DomainName;
 621      /**
 622       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 623       */
 624      domainOwner?: AccountId;
 625      /**
 626       *  A string that specifies the name of the requested repository. 
 627       */
 628      repository: RepositoryName;
 629    }
 630    export interface DescribeRepositoryResult {
 631      /**
 632       *  A RepositoryDescription object that contains the requested repository information. 
 633       */
 634      repository?: RepositoryDescription;
 635    }
 636    export type Description = string;
 637    export interface DisassociateExternalConnectionRequest {
 638      /**
 639       * The name of the domain that contains the repository from which to remove the external repository. 
 640       */
 641      domain: DomainName;
 642      /**
 643       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 644       */
 645      domainOwner?: AccountId;
 646      /**
 647       * The name of the repository from which the external connection will be removed. 
 648       */
 649      repository: RepositoryName;
 650      /**
 651       * The name of the external connection to be removed from the repository. 
 652       */
 653      externalConnection: ExternalConnectionName;
 654    }
 655    export interface DisassociateExternalConnectionResult {
 656      /**
 657       *  The repository associated with the removed external connection. 
 658       */
 659      repository?: RepositoryDescription;
 660    }
 661    export interface DisposePackageVersionsRequest {
 662      /**
 663       *  The name of the domain that contains the repository you want to dispose. 
 664       */
 665      domain: DomainName;
 666      /**
 667       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 668       */
 669      domainOwner?: AccountId;
 670      /**
 671       *  The name of the repository that contains the package versions you want to dispose. 
 672       */
 673      repository: RepositoryName;
 674      /**
 675       *  A format that specifies the type of package versions you want to dispose. The valid values are:     npm     pypi     maven   
 676       */
 677      format: PackageFormat;
 678      /**
 679       *  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.   
 680       */
 681      namespace?: PackageNamespace;
 682      /**
 683       *  The name of the package with the versions you want to dispose. 
 684       */
 685      package: PackageName;
 686      /**
 687       *  The versions of the package you want to dispose. 
 688       */
 689      versions: PackageVersionList;
 690      /**
 691       *  The revisions of the package versions you want to dispose. 
 692       */
 693      versionRevisions?: PackageVersionRevisionMap;
 694      /**
 695       *  The expected status of the package version to dispose. Valid values are:     Published     Unfinished     Unlisted     Archived     Disposed   
 696       */
 697      expectedStatus?: PackageVersionStatus;
 698    }
 699    export interface DisposePackageVersionsResult {
 700      /**
 701       *  A list of the package versions that were successfully disposed. 
 702       */
 703      successfulVersions?: SuccessfulPackageVersionInfoMap;
 704      /**
 705       *  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   
 706       */
 707      failedVersions?: PackageVersionErrorMap;
 708    }
 709    export interface DomainDescription {
 710      /**
 711       *  The name of the domain. 
 712       */
 713      name?: DomainName;
 714      /**
 715       *  The AWS account ID that owns the domain. 
 716       */
 717      owner?: AccountId;
 718      /**
 719       *  The Amazon Resource Name (ARN) of the domain. 
 720       */
 721      arn?: Arn;
 722      /**
 723       *  The current status of a domain. The valid values are     Active     Deleted   
 724       */
 725      status?: DomainStatus;
 726      /**
 727       *  A timestamp that represents the date and time the domain was created. 
 728       */
 729      createdTime?: Timestamp;
 730      /**
 731       *  The ARN of an AWS Key Management Service (AWS KMS) key associated with a domain. 
 732       */
 733      encryptionKey?: Arn;
 734      /**
 735       *  The number of repositories in the domain. 
 736       */
 737      repositoryCount?: Integer;
 738      /**
 739       *  The total size of all assets in the domain. 
 740       */
 741      assetSizeBytes?: Long;
 742      /**
 743       * The Amazon Resource Name (ARN) of the Amazon S3 bucket that is used to store package assets in the domain.
 744       */
 745      s3BucketArn?: Arn;
 746    }
 747    export type DomainName = string;
 748    export type DomainStatus = "Active"|"Deleted"|string;
 749    export interface DomainSummary {
 750      /**
 751       *  The name of the domain. 
 752       */
 753      name?: DomainName;
 754      /**
 755       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 756       */
 757      owner?: AccountId;
 758      /**
 759       *  The ARN of the domain. 
 760       */
 761      arn?: Arn;
 762      /**
 763       *  A string that contains the status of the domain. The valid values are:     Active     Deleted   
 764       */
 765      status?: DomainStatus;
 766      /**
 767       *  A timestamp that contains the date and time the domain was created. 
 768       */
 769      createdTime?: Timestamp;
 770      /**
 771       *  The key used to encrypt the domain. 
 772       */
 773      encryptionKey?: Arn;
 774    }
 775    export type DomainSummaryList = DomainSummary[];
 776    export type ErrorMessage = string;
 777    export type ExternalConnectionName = string;
 778    export type ExternalConnectionStatus = "Available"|string;
 779    export interface GetAuthorizationTokenRequest {
 780      /**
 781       *  The name of the domain that is in scope for the generated authorization token. 
 782       */
 783      domain: DomainName;
 784      /**
 785       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 786       */
 787      domainOwner?: AccountId;
 788      /**
 789       * 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.
 790       */
 791      durationSeconds?: AuthorizationTokenDurationSeconds;
 792    }
 793    export interface GetAuthorizationTokenResult {
 794      /**
 795       *  The returned authentication token. 
 796       */
 797      authorizationToken?: String;
 798      /**
 799       *  A timestamp that specifies the date and time the authorization token expires. 
 800       */
 801      expiration?: Timestamp;
 802    }
 803    export interface GetDomainPermissionsPolicyRequest {
 804      /**
 805       *  The name of the domain to which the resource policy is attached. 
 806       */
 807      domain: DomainName;
 808      /**
 809       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 810       */
 811      domainOwner?: AccountId;
 812    }
 813    export interface GetDomainPermissionsPolicyResult {
 814      /**
 815       *  The returned resource policy. 
 816       */
 817      policy?: ResourcePolicy;
 818    }
 819    export interface GetPackageVersionAssetRequest {
 820      /**
 821       *  The name of the domain that contains the repository that contains the package version with the requested asset. 
 822       */
 823      domain: DomainName;
 824      /**
 825       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 826       */
 827      domainOwner?: AccountId;
 828      /**
 829       *  The repository that contains the package version with the requested asset. 
 830       */
 831      repository: RepositoryName;
 832      /**
 833       *  A format that specifies the type of the package version with the requested asset file. The valid values are:     npm     pypi     maven   
 834       */
 835      format: PackageFormat;
 836      /**
 837       *  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.   
 838       */
 839      namespace?: PackageNamespace;
 840      /**
 841       *  The name of the package that contains the requested asset. 
 842       */
 843      package: PackageName;
 844      /**
 845       *  A string that contains the package version (for example, 3.5.2). 
 846       */
 847      packageVersion: PackageVersion;
 848      /**
 849       *  The name of the requested asset. 
 850       */
 851      asset: AssetName;
 852      /**
 853       *  The name of the package version revision that contains the requested asset. 
 854       */
 855      packageVersionRevision?: PackageVersionRevision;
 856    }
 857    export interface GetPackageVersionAssetResult {
 858      /**
 859       *  The binary file, or asset, that is downloaded.
 860       */
 861      asset?: Asset;
 862      /**
 863       *  The name of the asset that is downloaded. 
 864       */
 865      assetName?: AssetName;
 866      /**
 867       *  A string that contains the package version (for example, 3.5.2). 
 868       */
 869      packageVersion?: PackageVersion;
 870      /**
 871       *  The name of the package version revision that contains the downloaded asset. 
 872       */
 873      packageVersionRevision?: PackageVersionRevision;
 874    }
 875    export interface GetPackageVersionReadmeRequest {
 876      /**
 877       *  The name of the domain that contains the repository that contains the package version with the requested readme file. 
 878       */
 879      domain: DomainName;
 880      /**
 881       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 882       */
 883      domainOwner?: AccountId;
 884      /**
 885       *  The repository that contains the package with the requested readme file. 
 886       */
 887      repository: RepositoryName;
 888      /**
 889       *  A format that specifies the type of the package version with the requested readme file. The valid values are:     npm     pypi     maven   
 890       */
 891      format: PackageFormat;
 892      /**
 893       *  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.   
 894       */
 895      namespace?: PackageNamespace;
 896      /**
 897       *  The name of the package version that contains the requested readme file. 
 898       */
 899      package: PackageName;
 900      /**
 901       *  A string that contains the package version (for example, 3.5.2). 
 902       */
 903      packageVersion: PackageVersion;
 904    }
 905    export interface GetPackageVersionReadmeResult {
 906      /**
 907       *  The format of the package with the requested readme file. Valid format types are:     npm     pypi     maven   
 908       */
 909      format?: PackageFormat;
 910      /**
 911       *  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.   
 912       */
 913      namespace?: PackageNamespace;
 914      /**
 915       *  The name of the package that contains the returned readme file. 
 916       */
 917      package?: PackageName;
 918      /**
 919       *  The version of the package with the requested readme file. 
 920       */
 921      version?: PackageVersion;
 922      /**
 923       *  The current revision associated with the package version. 
 924       */
 925      versionRevision?: PackageVersionRevision;
 926      /**
 927       *  The text of the returned readme file. 
 928       */
 929      readme?: String;
 930    }
 931    export interface GetRepositoryEndpointRequest {
 932      /**
 933       *  The name of the domain that contains the repository. 
 934       */
 935      domain: DomainName;
 936      /**
 937       *  The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces. 
 938       */
 939      domainOwner?: AccountId;
 940      /**
 941       *  The name of the repository. 
 942       */
 943      repository: RepositoryName;
 944      /**
 945       *  Returns which endpoint of a repository to return. A repository has one endpoint for each package format:     npm     pypi     maven   
 946       */
 947      format: PackageFormat;
 948    }
 949    export interface GetRepositoryEndpointResult {
 950      /**
 951       *  A string that specifies the URL of the returned endpoint. 
 952       */
 953      repositoryEndpoint?: String;
 954    }
 955    export interface GetRepositoryPermissionsPolicyRequest {
 956      /**
 957       *  The name of the domain containing the repository whose associated resource policy is to be retrieved. 
 958       */
 959      domain: DomainName;
 960      /**
 961       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
 962       */
 963      domainOwner?: AccountId;
 964      /**
 965       *  The name of the repository whose associated resource policy is to be retrieved. 
 966       */
 967      repository: RepositoryName;
 968    }
 969    export interface GetRepositoryPermissionsPolicyResult {
 970      /**
 971       *  The returned resource policy. 
 972       */
 973      policy?: ResourcePolicy;
 974    }
 975    export type HashAlgorithm = "MD5"|"SHA-1"|"SHA-256"|"SHA-512"|string;
 976    export type HashValue = string;
 977    export type Integer = number;
 978    export interface LicenseInfo {
 979      /**
 980       *  Name of the license. 
 981       */
 982      name?: String;
 983      /**
 984       *  The URL for license data. 
 985       */
 986      url?: String;
 987    }
 988    export type LicenseInfoList = LicenseInfo[];
 989    export type ListDomainsMaxResults = number;
 990    export interface ListDomainsRequest {
 991      /**
 992       *  The maximum number of results to return per page. 
 993       */
 994      maxResults?: ListDomainsMaxResults;
 995      /**
 996       *  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. 
 997       */
 998      nextToken?: PaginationToken;
 999    }
1000    export interface ListDomainsResult {
1001      /**
1002       *  The returned list of DomainSummary objects. 
1003       */
1004      domains?: DomainSummaryList;
1005      /**
1006       *  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. 
1007       */
1008      nextToken?: PaginationToken;
1009    }
1010    export type ListPackageVersionAssetsMaxResults = number;
1011    export interface ListPackageVersionAssetsRequest {
1012      /**
1013       *  The name of the domain that contains the repository associated with the package version assets. 
1014       */
1015      domain: DomainName;
1016      /**
1017       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1018       */
1019      domainOwner?: AccountId;
1020      /**
1021       *  The name of the repository that contains the package that contains the returned package version assets. 
1022       */
1023      repository: RepositoryName;
1024      /**
1025       *  The format of the package that contains the returned package version assets. The valid package types are:     npm: A Node Package Manager (npm) package.     pypi: A Python Package Index (PyPI) package.     maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.   
1026       */
1027      format: PackageFormat;
1028      /**
1029       *  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.   
1030       */
1031      namespace?: PackageNamespace;
1032      /**
1033       *  The name of the package that contains the returned package version assets. 
1034       */
1035      package: PackageName;
1036      /**
1037       *  A string that contains the package version (for example, 3.5.2). 
1038       */
1039      packageVersion: PackageVersion;
1040      /**
1041       *  The maximum number of results to return per page. 
1042       */
1043      maxResults?: ListPackageVersionAssetsMaxResults;
1044      /**
1045       *  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. 
1046       */
1047      nextToken?: PaginationToken;
1048    }
1049    export interface ListPackageVersionAssetsResult {
1050      /**
1051       *  The format of the package that contains the returned package version assets. 
1052       */
1053      format?: PackageFormat;
1054      /**
1055       *  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.   
1056       */
1057      namespace?: PackageNamespace;
1058      /**
1059       *  The name of the package that contains the returned package version assets. 
1060       */
1061      package?: PackageName;
1062      /**
1063       *  The version of the package associated with the returned assets. 
1064       */
1065      version?: PackageVersion;
1066      /**
1067       *  The current revision associated with the package version. 
1068       */
1069      versionRevision?: PackageVersionRevision;
1070      /**
1071       *  If there are additional results, this is the token for the next set of results. 
1072       */
1073      nextToken?: PaginationToken;
1074      /**
1075       *  The returned list of AssetSummary objects. 
1076       */
1077      assets?: AssetSummaryList;
1078    }
1079    export interface ListPackageVersionDependenciesRequest {
1080      /**
1081       *  The name of the domain that contains the repository that contains the requested package version dependencies. 
1082       */
1083      domain: DomainName;
1084      /**
1085       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1086       */
1087      domainOwner?: AccountId;
1088      /**
1089       *  The name of the repository that contains the requested package version. 
1090       */
1091      repository: RepositoryName;
1092      /**
1093       *  The format of the package with the requested dependencies. The valid package types are:     npm: A Node Package Manager (npm) package.     pypi: A Python Package Index (PyPI) package.     maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.   
1094       */
1095      format: PackageFormat;
1096      /**
1097       *  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.   
1098       */
1099      namespace?: PackageNamespace;
1100      /**
1101       *  The name of the package versions' package. 
1102       */
1103      package: PackageName;
1104      /**
1105       *  A string that contains the package version (for example, 3.5.2). 
1106       */
1107      packageVersion: PackageVersion;
1108      /**
1109       *  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. 
1110       */
1111      nextToken?: PaginationToken;
1112    }
1113    export interface ListPackageVersionDependenciesResult {
1114      /**
1115       *  A format that specifies the type of the package that contains the returned dependencies. The valid values are:     npm     pypi     maven   
1116       */
1117      format?: PackageFormat;
1118      /**
1119       *  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.   
1120       */
1121      namespace?: PackageNamespace;
1122      /**
1123       *  The name of the package that contains the returned package versions dependencies. 
1124       */
1125      package?: PackageName;
1126      /**
1127       *  The version of the package that is specified in the request. 
1128       */
1129      version?: PackageVersion;
1130      /**
1131       *  The current revision associated with the package version. 
1132       */
1133      versionRevision?: PackageVersionRevision;
1134      /**
1135       *  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. 
1136       */
1137      nextToken?: PaginationToken;
1138      /**
1139       *  The returned list of PackageDependency objects. 
1140       */
1141      dependencies?: PackageDependencyList;
1142    }
1143    export type ListPackageVersionsMaxResults = number;
1144    export interface ListPackageVersionsRequest {
1145      /**
1146       *  The name of the domain that contains the repository that contains the returned package versions. 
1147       */
1148      domain: DomainName;
1149      /**
1150       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1151       */
1152      domainOwner?: AccountId;
1153      /**
1154       *  The name of the repository that contains the package. 
1155       */
1156      repository: RepositoryName;
1157      /**
1158       *  The format of the returned packages. The valid package types are:     npm: A Node Package Manager (npm) package.     pypi: A Python Package Index (PyPI) package.     maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.   
1159       */
1160      format: PackageFormat;
1161      /**
1162       *  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.   
1163       */
1164      namespace?: PackageNamespace;
1165      /**
1166       *  The name of the package for which you want to return a list of package versions. 
1167       */
1168      package: PackageName;
1169      /**
1170       *  A string that specifies the status of the package versions to include in the returned list. It can be one of the following:     Published     Unfinished     Unlisted     Archived     Disposed   
1171       */
1172      status?: PackageVersionStatus;
1173      /**
1174       *  How to sort the returned list of package versions. 
1175       */
1176      sortBy?: PackageVersionSortType;
1177      /**
1178       *  The maximum number of results to return per page. 
1179       */
1180      maxResults?: ListPackageVersionsMaxResults;
1181      /**
1182       *  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. 
1183       */
1184      nextToken?: PaginationToken;
1185    }
1186    export interface ListPackageVersionsResult {
1187      /**
1188       *  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.   
1189       */
1190      defaultDisplayVersion?: PackageVersion;
1191      /**
1192       *  A format of the package. Valid package format values are:     npm     pypi     maven   
1193       */
1194      format?: PackageFormat;
1195      /**
1196       *  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.   
1197       */
1198      namespace?: PackageNamespace;
1199      /**
1200       *  The name of the package. 
1201       */
1202      package?: PackageName;
1203      /**
1204       *  The returned list of PackageVersionSummary objects. 
1205       */
1206      versions?: PackageVersionSummaryList;
1207      /**
1208       *  If there are additional results, this is the token for the next set of results. 
1209       */
1210      nextToken?: PaginationToken;
1211    }
1212    export type ListPackagesMaxResults = number;
1213    export interface ListPackagesRequest {
1214      /**
1215       *  The name of the domain that contains the repository that contains the requested list of packages. 
1216       */
1217      domain: DomainName;
1218      /**
1219       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1220       */
1221      domainOwner?: AccountId;
1222      /**
1223       *  The name of the repository from which packages are to be listed. 
1224       */
1225      repository: RepositoryName;
1226      /**
1227       *  The format of the packages. The valid package types are:     npm: A Node Package Manager (npm) package.     pypi: A Python Package Index (PyPI) package.     maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.   
1228       */
1229      format?: PackageFormat;
1230      /**
1231       *  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.   
1232       */
1233      namespace?: PackageNamespace;
1234      /**
1235       *  A prefix used to filter returned packages. Only packages with names that start with packagePrefix are returned. 
1236       */
1237      packagePrefix?: PackageName;
1238      /**
1239       *  The maximum number of results to return per page. 
1240       */
1241      maxResults?: ListPackagesMaxResults;
1242      /**
1243       *  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. 
1244       */
1245      nextToken?: PaginationToken;
1246    }
1247    export interface ListPackagesResult {
1248      /**
1249       *  The list of returned PackageSummary objects. 
1250       */
1251      packages?: PackageSummaryList;
1252      /**
1253       *  If there are additional results, this is the token for the next set of results. 
1254       */
1255      nextToken?: PaginationToken;
1256    }
1257    export type ListRepositoriesInDomainMaxResults = number;
1258    export interface ListRepositoriesInDomainRequest {
1259      /**
1260       *  The name of the domain that contains the returned list of repositories. 
1261       */
1262      domain: DomainName;
1263      /**
1264       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1265       */
1266      domainOwner?: AccountId;
1267      /**
1268       *  Filter the list of repositories to only include those that are managed by the AWS account ID. 
1269       */
1270      administratorAccount?: AccountId;
1271      /**
1272       *  A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned. 
1273       */
1274      repositoryPrefix?: RepositoryName;
1275      /**
1276       *  The maximum number of results to return per page. 
1277       */
1278      maxResults?: ListRepositoriesInDomainMaxResults;
1279      /**
1280       *  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. 
1281       */
1282      nextToken?: PaginationToken;
1283    }
1284    export interface ListRepositoriesInDomainResult {
1285      /**
1286       *  The returned list of repositories. 
1287       */
1288      repositories?: RepositorySummaryList;
1289      /**
1290       *  If there are additional results, this is the token for the next set of results. 
1291       */
1292      nextToken?: PaginationToken;
1293    }
1294    export type ListRepositoriesMaxResults = number;
1295    export interface ListRepositoriesRequest {
1296      /**
1297       *  A prefix used to filter returned repositories. Only repositories with names that start with repositoryPrefix are returned.
1298       */
1299      repositoryPrefix?: RepositoryName;
1300      /**
1301       *  The maximum number of results to return per page. 
1302       */
1303      maxResults?: ListRepositoriesMaxResults;
1304      /**
1305       *  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. 
1306       */
1307      nextToken?: PaginationToken;
1308    }
1309    export interface ListRepositoriesResult {
1310      /**
1311       *  The returned list of RepositorySummary objects. 
1312       */
1313      repositories?: RepositorySummaryList;
1314      /**
1315       *  If there are additional results, this is the token for the next set of results. 
1316       */
1317      nextToken?: PaginationToken;
1318    }
1319    export interface ListTagsForResourceRequest {
1320      /**
1321       * The Amazon Resource Name (ARN) of the resource to get tags for.
1322       */
1323      resourceArn: Arn;
1324    }
1325    export interface ListTagsForResourceResult {
1326      /**
1327       * A list of tag key and value pairs associated with the specified resource.
1328       */
1329      tags?: TagList;
1330    }
1331    export type Long = number;
1332    export type LongOptional = number;
1333    export interface PackageDependency {
1334      /**
1335       *  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.   
1336       */
1337      namespace?: PackageNamespace;
1338      /**
1339       *  The name of the package that this package depends on. 
1340       */
1341      package?: PackageName;
1342      /**
1343       *  The type of a package dependency. The possible values depend on the package type. Example types are compile, runtime, and test for Maven packages, and dev, prod, and optional for npm packages. 
1344       */
1345      dependencyType?: String;
1346      /**
1347       *  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. 
1348       */
1349      versionRequirement?: String;
1350    }
1351    export type PackageDependencyList = PackageDependency[];
1352    export type PackageFormat = "npm"|"pypi"|"maven"|"nuget"|string;
1353    export type PackageName = string;
1354    export type PackageNamespace = string;
1355    export interface PackageSummary {
1356      /**
1357       *  The format of the package. Valid values are:     npm     pypi     maven   
1358       */
1359      format?: PackageFormat;
1360      /**
1361       *  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.   
1362       */
1363      namespace?: PackageNamespace;
1364      /**
1365       *  The name of the package. 
1366       */
1367      package?: PackageName;
1368    }
1369    export type PackageSummaryList = PackageSummary[];
1370    export type PackageVersion = string;
1371    export interface PackageVersionDescription {
1372      /**
1373       *  The format of the package version. The valid package formats are:     npm: A Node Package Manager (npm) package.     pypi: A Python Package Index (PyPI) package.     maven: A Maven package that contains compiled code in a distributable format, such as a JAR file.   
1374       */
1375      format?: PackageFormat;
1376      /**
1377       *  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.   
1378       */
1379      namespace?: PackageNamespace;
1380      /**
1381       *  The name of the requested package. 
1382       */
1383      packageName?: PackageName;
1384      /**
1385       *  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. 
1386       */
1387      displayName?: String255;
1388      /**
1389       *  The version of the package. 
1390       */
1391      version?: PackageVersion;
1392      /**
1393       *  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. 
1394       */
1395      summary?: String;
1396      /**
1397       *  The homepage associated with the package. 
1398       */
1399      homePage?: String;
1400      /**
1401       *  The repository for the source code in the package version, or the source code used to build it. 
1402       */
1403      sourceCodeRepository?: String;
1404      /**
1405       *  A timestamp that contains the date and time the package version was published. 
1406       */
1407      publishedTime?: Timestamp;
1408      /**
1409       *  Information about licenses associated with the package version. 
1410       */
1411      licenses?: LicenseInfoList;
1412      /**
1413       *  The revision of the package version. 
1414       */
1415      revision?: PackageVersionRevision;
1416      /**
1417       *  A string that contains the status of the package version. It can be one of the following:     Published     Unfinished     Unlisted     Archived     Disposed   
1418       */
1419      status?: PackageVersionStatus;
1420    }
1421    export interface PackageVersionError {
1422      /**
1423       *  The error code associated with the error. Valid error codes are:     ALREADY_EXISTS     MISMATCHED_REVISION     MISMATCHED_STATUS     NOT_ALLOWED     NOT_FOUND     SKIPPED   
1424       */
1425      errorCode?: PackageVersionErrorCode;
1426      /**
1427       *  The error message associated with the error. 
1428       */
1429      errorMessage?: ErrorMessage;
1430    }
1431    export type PackageVersionErrorCode = "ALREADY_EXISTS"|"MISMATCHED_REVISION"|"MISMATCHED_STATUS"|"NOT_ALLOWED"|"NOT_FOUND"|"SKIPPED"|string;
1432    export type PackageVersionErrorMap = {[key: string]: PackageVersionError};
1433    export type PackageVersionList = PackageVersion[];
1434    export type PackageVersionRevision = string;
1435    export type PackageVersionRevisionMap = {[key: string]: PackageVersionRevision};
1436    export type PackageVersionSortType = "PUBLISHED_TIME"|string;
1437    export type PackageVersionStatus = "Published"|"Unfinished"|"Unlisted"|"Archived"|"Disposed"|"Deleted"|string;
1438    export interface PackageVersionSummary {
1439      /**
1440       *  Information about a package version. 
1441       */
1442      version: PackageVersion;
1443      /**
1444       *  The revision associated with a package version. 
1445       */
1446      revision?: PackageVersionRevision;
1447      /**
1448       *  A string that contains the status of the package version. It can be one of the following:     Published     Unfinished     Unlisted     Archived     Disposed   
1449       */
1450      status: PackageVersionStatus;
1451    }
1452    export type PackageVersionSummaryList = PackageVersionSummary[];
1453    export type PaginationToken = string;
1454    export type PolicyDocument = string;
1455    export type PolicyRevision = string;
1456    export interface PutDomainPermissionsPolicyRequest {
1457      /**
1458       *  The name of the domain on which to set the resource policy. 
1459       */
1460      domain: DomainName;
1461      /**
1462       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1463       */
1464      domainOwner?: AccountId;
1465      /**
1466       *  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. 
1467       */
1468      policyRevision?: PolicyRevision;
1469      /**
1470       *  A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided domain. 
1471       */
1472      policyDocument: PolicyDocument;
1473    }
1474    export interface PutDomainPermissionsPolicyResult {
1475      /**
1476       *  The resource policy that was set after processing the request. 
1477       */
1478      policy?: ResourcePolicy;
1479    }
1480    export interface PutRepositoryPermissionsPolicyRequest {
1481      /**
1482       *  The name of the domain containing the repository to set the resource policy on. 
1483       */
1484      domain: DomainName;
1485      /**
1486       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1487       */
1488      domainOwner?: AccountId;
1489      /**
1490       *  The name of the repository to set the resource policy on. 
1491       */
1492      repository: RepositoryName;
1493      /**
1494       *  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. 
1495       */
1496      policyRevision?: PolicyRevision;
1497      /**
1498       *  A valid displayable JSON Aspen policy string to be set as the access control resource policy on the provided repository. 
1499       */
1500      policyDocument: PolicyDocument;
1501    }
1502    export interface PutRepositoryPermissionsPolicyResult {
1503      /**
1504       *  The resource policy that was set after processing the request. 
1505       */
1506      policy?: ResourcePolicy;
1507    }
1508    export interface RepositoryDescription {
1509      /**
1510       *  The name of the repository. 
1511       */
1512      name?: RepositoryName;
1513      /**
1514       *  The 12-digit account number of the AWS account that manages the repository. 
1515       */
1516      administratorAccount?: AccountId;
1517      /**
1518       *  The name of the domain that contains the repository. 
1519       */
1520      domainName?: DomainName;
1521      /**
1522       *  The 12-digit account number of the AWS account that owns the domain that contains the repository. It does not include dashes or spaces. 
1523       */
1524      domainOwner?: AccountId;
1525      /**
1526       *  The Amazon Resource Name (ARN) of the repository. 
1527       */
1528      arn?: Arn;
1529      /**
1530       *  A text description of the repository. 
1531       */
1532      description?: Description;
1533      /**
1534       *  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. 
1535       */
1536      upstreams?: UpstreamRepositoryInfoList;
1537      /**
1538       *  An array of external connections associated with the repository. 
1539       */
1540      externalConnections?: RepositoryExternalConnectionInfoList;
1541    }
1542    export interface RepositoryExternalConnectionInfo {
1543      /**
1544       *  The name of the external connection associated with a repository. 
1545       */
1546      externalConnectionName?: ExternalConnectionName;
1547      /**
1548       *  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.   
1549       */
1550      packageFormat?: PackageFormat;
1551      /**
1552       *  The status of the external connection of a repository. There is one valid value, Available. 
1553       */
1554      status?: ExternalConnectionStatus;
1555    }
1556    export type RepositoryExternalConnectionInfoList = RepositoryExternalConnectionInfo[];
1557    export type RepositoryName = string;
1558    export interface RepositorySummary {
1559      /**
1560       *  The name of the repository. 
1561       */
1562      name?: RepositoryName;
1563      /**
1564       *  The AWS account ID that manages the repository. 
1565       */
1566      administratorAccount?: AccountId;
1567      /**
1568       *  The name of the domain that contains the repository. 
1569       */
1570      domainName?: DomainName;
1571      /**
1572       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1573       */
1574      domainOwner?: AccountId;
1575      /**
1576       *  The ARN of the repository. 
1577       */
1578      arn?: Arn;
1579      /**
1580       *  The description of the repository. 
1581       */
1582      description?: Description;
1583    }
1584    export type RepositorySummaryList = RepositorySummary[];
1585    export interface ResourcePolicy {
1586      /**
1587       *  The ARN of the resource associated with the resource policy 
1588       */
1589      resourceArn?: Arn;
1590      /**
1591       *  The current revision of the resource policy. 
1592       */
1593      revision?: PolicyRevision;
1594      /**
1595       *  The resource policy formatted in JSON. 
1596       */
1597      document?: PolicyDocument;
1598    }
1599    export type String = string;
1600    export type String255 = string;
1601    export interface SuccessfulPackageVersionInfo {
1602      /**
1603       *  The revision of a package version. 
1604       */
1605      revision?: String;
1606      /**
1607       *  The status of a package version. Valid statuses are:     Published     Unfinished     Unlisted     Archived     Disposed   
1608       */
1609      status?: PackageVersionStatus;
1610    }
1611    export type SuccessfulPackageVersionInfoMap = {[key: string]: SuccessfulPackageVersionInfo};
1612    export interface Tag {
1613      /**
1614       * The tag key.
1615       */
1616      key: TagKey;
1617      /**
1618       * The tag value.
1619       */
1620      value: TagValue;
1621    }
1622    export type TagKey = string;
1623    export type TagKeyList = TagKey[];
1624    export type TagList = Tag[];
1625    export interface TagResourceRequest {
1626      /**
1627       * The Amazon Resource Name (ARN) of the resource that you want to add or update tags for.
1628       */
1629      resourceArn: Arn;
1630      /**
1631       * The tags you want to modify or add to the resource.
1632       */
1633      tags: TagList;
1634    }
1635    export interface TagResourceResult {
1636    }
1637    export type TagValue = string;
1638    export type Timestamp = Date;
1639    export interface UntagResourceRequest {
1640      /**
1641       * The Amazon Resource Name (ARN) of the resource that you want to remove tags from.
1642       */
1643      resourceArn: Arn;
1644      /**
1645       * The tag key for each tag that you want to remove from the resource.
1646       */
1647      tagKeys: TagKeyList;
1648    }
1649    export interface UntagResourceResult {
1650    }
1651    export interface UpdatePackageVersionsStatusRequest {
1652      /**
1653       *  The name of the domain that contains the repository that contains the package versions with a status to be updated. 
1654       */
1655      domain: DomainName;
1656      /**
1657       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1658       */
1659      domainOwner?: AccountId;
1660      /**
1661       *  The repository that contains the package versions with the status you want to update. 
1662       */
1663      repository: RepositoryName;
1664      /**
1665       *  A format that specifies the type of the package with the statuses to update. The valid values are:     npm     pypi     maven   
1666       */
1667      format: PackageFormat;
1668      /**
1669       *  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.   
1670       */
1671      namespace?: PackageNamespace;
1672      /**
1673       *  The name of the package with the version statuses to update. 
1674       */
1675      package: PackageName;
1676      /**
1677       *  An array of strings that specify the versions of the package with the statuses to update. 
1678       */
1679      versions: PackageVersionList;
1680      /**
1681       *  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. 
1682       */
1683      versionRevisions?: PackageVersionRevisionMap;
1684      /**
1685       *  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. 
1686       */
1687      expectedStatus?: PackageVersionStatus;
1688      /**
1689       *  The status you want to change the package version status to. 
1690       */
1691      targetStatus: PackageVersionStatus;
1692    }
1693    export interface UpdatePackageVersionsStatusResult {
1694      /**
1695       *  A list of PackageVersionError objects, one for each package version with a status that failed to update. 
1696       */
1697      successfulVersions?: SuccessfulPackageVersionInfoMap;
1698      /**
1699       *  A list of SuccessfulPackageVersionInfo objects, one for each package version with a status that successfully updated. 
1700       */
1701      failedVersions?: PackageVersionErrorMap;
1702    }
1703    export interface UpdateRepositoryRequest {
1704      /**
1705       *  The name of the domain associated with the repository to update. 
1706       */
1707      domain: DomainName;
1708      /**
1709       *  The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces. 
1710       */
1711      domainOwner?: AccountId;
1712      /**
1713       *  The name of the repository to update. 
1714       */
1715      repository: RepositoryName;
1716      /**
1717       *  An updated repository description. 
1718       */
1719      description?: Description;
1720      /**
1721       *  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. 
1722       */
1723      upstreams?: UpstreamRepositoryList;
1724    }
1725    export interface UpdateRepositoryResult {
1726      /**
1727       *  The updated repository. 
1728       */
1729      repository?: RepositoryDescription;
1730    }
1731    export interface UpstreamRepository {
1732      /**
1733       *  The name of an upstream repository. 
1734       */
1735      repositoryName: RepositoryName;
1736    }
1737    export interface UpstreamRepositoryInfo {
1738      /**
1739       *  The name of an upstream repository. 
1740       */
1741      repositoryName?: RepositoryName;
1742    }
1743    export type UpstreamRepositoryInfoList = UpstreamRepositoryInfo[];
1744    export type UpstreamRepositoryList = UpstreamRepository[];
1745    /**
1746     * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1747     */
1748    export type apiVersion = "2018-09-22"|"latest"|string;
1749    export interface ClientApiVersions {
1750      /**
1751       * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1752       */
1753      apiVersion?: apiVersion;
1754    }
1755    export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1756    /**
1757     * Contains interfaces for use with the CodeArtifact client.
1758     */
1759    export import Types = CodeArtifact;
1760  }
1761  export = CodeArtifact;