@aws-sdk/client-codeartifact 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/Codeartifact.js +0 -257
- package/dist-cjs/CodeartifactClient.js +0 -262
- package/dist-cjs/commands/AssociateExternalConnectionCommand.js +0 -29
- package/dist-cjs/commands/CopyPackageVersionsCommand.js +0 -32
- package/dist-cjs/commands/CreateDomainCommand.js +0 -35
- package/dist-cjs/commands/CreateRepositoryCommand.js +0 -27
- package/dist-cjs/commands/DeleteDomainCommand.js +0 -28
- package/dist-cjs/commands/DeleteDomainPermissionsPolicyCommand.js +0 -27
- package/dist-cjs/commands/DeletePackageVersionsCommand.js +0 -29
- package/dist-cjs/commands/DeleteRepositoryCommand.js +0 -27
- package/dist-cjs/commands/DeleteRepositoryPermissionsPolicyCommand.js +0 -34
- package/dist-cjs/commands/DescribeDomainCommand.js +0 -29
- package/dist-cjs/commands/DescribePackageVersionCommand.js +0 -29
- package/dist-cjs/commands/DescribeRepositoryCommand.js +0 -28
- package/dist-cjs/commands/DisassociateExternalConnectionCommand.js +0 -27
- package/dist-cjs/commands/DisposePackageVersionsCommand.js +0 -38
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +0 -45
- package/dist-cjs/commands/GetDomainPermissionsPolicyCommand.js +0 -34
- package/dist-cjs/commands/GetPackageVersionAssetCommand.js +0 -29
- package/dist-cjs/commands/GetPackageVersionReadmeCommand.js +0 -32
- package/dist-cjs/commands/GetRepositoryEndpointCommand.js +0 -45
- package/dist-cjs/commands/GetRepositoryPermissionsPolicyCommand.js +0 -27
- package/dist-cjs/commands/ListDomainsCommand.js +0 -27
- package/dist-cjs/commands/ListPackageVersionAssetsCommand.js +0 -29
- package/dist-cjs/commands/ListPackageVersionDependenciesCommand.js +0 -31
- package/dist-cjs/commands/ListPackageVersionsCommand.js +0 -29
- package/dist-cjs/commands/ListPackagesCommand.js +0 -29
- package/dist-cjs/commands/ListRepositoriesCommand.js +0 -30
- package/dist-cjs/commands/ListRepositoriesInDomainCommand.js +0 -30
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutDomainPermissionsPolicyCommand.js +0 -32
- package/dist-cjs/commands/PutRepositoryPermissionsPolicyCommand.js +0 -32
- package/dist-cjs/commands/TagResourceCommand.js +0 -25
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UpdatePackageVersionsStatusCommand.js +0 -27
- package/dist-cjs/commands/UpdateRepositoryCommand.js +0 -27
- package/dist-cjs/commands/index.js +37 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -44
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -277
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDomainsPaginator.js +0 -11
- package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js +0 -11
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +0 -11
- package/dist-cjs/pagination/ListPackagesPaginator.js +0 -11
- package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js +0 -11
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +0 -11
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_restJson1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/Codeartifact.js +0 -1
- package/dist-es/CodeartifactClient.js +0 -1
- package/dist-es/commands/AssociateExternalConnectionCommand.js +0 -1
- package/dist-es/commands/CopyPackageVersionsCommand.js +0 -1
- package/dist-es/commands/CreateDomainCommand.js +0 -1
- package/dist-es/commands/CreateRepositoryCommand.js +0 -1
- package/dist-es/commands/DeleteDomainCommand.js +0 -1
- package/dist-es/commands/DeleteDomainPermissionsPolicyCommand.js +0 -1
- package/dist-es/commands/DeletePackageVersionsCommand.js +0 -1
- package/dist-es/commands/DeleteRepositoryCommand.js +0 -1
- package/dist-es/commands/DeleteRepositoryPermissionsPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeDomainCommand.js +0 -1
- package/dist-es/commands/DescribePackageVersionCommand.js +0 -1
- package/dist-es/commands/DescribeRepositoryCommand.js +0 -1
- package/dist-es/commands/DisassociateExternalConnectionCommand.js +0 -1
- package/dist-es/commands/DisposePackageVersionsCommand.js +0 -1
- package/dist-es/commands/GetAuthorizationTokenCommand.js +0 -1
- package/dist-es/commands/GetDomainPermissionsPolicyCommand.js +0 -1
- package/dist-es/commands/GetPackageVersionAssetCommand.js +0 -1
- package/dist-es/commands/GetPackageVersionReadmeCommand.js +0 -1
- package/dist-es/commands/GetRepositoryEndpointCommand.js +0 -1
- package/dist-es/commands/GetRepositoryPermissionsPolicyCommand.js +0 -1
- package/dist-es/commands/ListDomainsCommand.js +0 -1
- package/dist-es/commands/ListPackageVersionAssetsCommand.js +0 -1
- package/dist-es/commands/ListPackageVersionDependenciesCommand.js +0 -1
- package/dist-es/commands/ListPackageVersionsCommand.js +0 -1
- package/dist-es/commands/ListPackagesCommand.js +0 -1
- package/dist-es/commands/ListRepositoriesCommand.js +0 -1
- package/dist-es/commands/ListRepositoriesInDomainCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutDomainPermissionsPolicyCommand.js +0 -1
- package/dist-es/commands/PutRepositoryPermissionsPolicyCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdatePackageVersionsStatusCommand.js +0 -1
- package/dist-es/commands/UpdateRepositoryCommand.js +0 -1
- package/dist-es/commands/index.js +34 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -44
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListDomainsPaginator.js +0 -1
- package/dist-es/pagination/ListPackageVersionAssetsPaginator.js +0 -1
- package/dist-es/pagination/ListPackageVersionsPaginator.js +0 -1
- package/dist-es/pagination/ListPackagesPaginator.js +0 -1
- package/dist-es/pagination/ListRepositoriesInDomainPaginator.js +0 -1
- package/dist-es/pagination/ListRepositoriesPaginator.js +0 -1
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +34 -0
- package/dist-types/index.d.ts +4 -43
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/Codeartifact.d.ts +35 -537
- package/dist-types/ts3.4/CodeartifactClient.d.ts +24 -342
- package/dist-types/ts3.4/commands/AssociateExternalConnectionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/CopyPackageVersionsCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/CreateDomainCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteDomainCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DeleteDomainPermissionsPolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeletePackageVersionsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteRepositoryPermissionsPolicyCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/DescribeDomainCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribePackageVersionCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/DescribeRepositoryCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DisassociateExternalConnectionCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DisposePackageVersionsCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetDomainPermissionsPolicyCommand.d.ts +2 -29
- package/dist-types/ts3.4/commands/GetPackageVersionAssetCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetPackageVersionReadmeCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/GetRepositoryEndpointCommand.d.ts +2 -40
- package/dist-types/ts3.4/commands/GetRepositoryPermissionsPolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListDomainsCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListPackageVersionAssetsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/ListPackageVersionDependenciesCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/ListRepositoriesCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListRepositoriesInDomainCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutDomainPermissionsPolicyCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/PutRepositoryPermissionsPolicyCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UpdatePackageVersionsStatusCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/UpdateRepositoryCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/index.d.ts +34 -0
- package/dist-types/ts3.4/index.d.ts +4 -43
- package/dist-types/ts3.4/models/models_0.d.ts +433 -3000
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/Codeartifact.js.map +0 -1
- package/dist-cjs/CodeartifactClient.js.map +0 -1
- package/dist-cjs/commands/AssociateExternalConnectionCommand.js.map +0 -1
- package/dist-cjs/commands/CopyPackageVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDomainCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDomainCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDomainPermissionsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeletePackageVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRepositoryPermissionsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDomainCommand.js.map +0 -1
- package/dist-cjs/commands/DescribePackageVersionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRepositoryCommand.js.map +0 -1
- package/dist-cjs/commands/DisassociateExternalConnectionCommand.js.map +0 -1
- package/dist-cjs/commands/DisposePackageVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist-cjs/commands/GetDomainPermissionsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/GetPackageVersionAssetCommand.js.map +0 -1
- package/dist-cjs/commands/GetPackageVersionReadmeCommand.js.map +0 -1
- package/dist-cjs/commands/GetRepositoryEndpointCommand.js.map +0 -1
- package/dist-cjs/commands/GetRepositoryPermissionsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/ListDomainsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPackageVersionAssetsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPackageVersionDependenciesCommand.js.map +0 -1
- package/dist-cjs/commands/ListPackageVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPackagesCommand.js.map +0 -1
- package/dist-cjs/commands/ListRepositoriesCommand.js.map +0 -1
- package/dist-cjs/commands/ListRepositoriesInDomainCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutDomainPermissionsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/PutRepositoryPermissionsPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdatePackageVersionsStatusCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRepositoryCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListDomainsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListPackagesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRepositoriesPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/Codeartifact.js.map +0 -1
- package/dist-es/CodeartifactClient.js.map +0 -1
- package/dist-es/commands/AssociateExternalConnectionCommand.js.map +0 -1
- package/dist-es/commands/CopyPackageVersionsCommand.js.map +0 -1
- package/dist-es/commands/CreateDomainCommand.js.map +0 -1
- package/dist-es/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist-es/commands/DeleteDomainCommand.js.map +0 -1
- package/dist-es/commands/DeleteDomainPermissionsPolicyCommand.js.map +0 -1
- package/dist-es/commands/DeletePackageVersionsCommand.js.map +0 -1
- package/dist-es/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist-es/commands/DeleteRepositoryPermissionsPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeDomainCommand.js.map +0 -1
- package/dist-es/commands/DescribePackageVersionCommand.js.map +0 -1
- package/dist-es/commands/DescribeRepositoryCommand.js.map +0 -1
- package/dist-es/commands/DisassociateExternalConnectionCommand.js.map +0 -1
- package/dist-es/commands/DisposePackageVersionsCommand.js.map +0 -1
- package/dist-es/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist-es/commands/GetDomainPermissionsPolicyCommand.js.map +0 -1
- package/dist-es/commands/GetPackageVersionAssetCommand.js.map +0 -1
- package/dist-es/commands/GetPackageVersionReadmeCommand.js.map +0 -1
- package/dist-es/commands/GetRepositoryEndpointCommand.js.map +0 -1
- package/dist-es/commands/GetRepositoryPermissionsPolicyCommand.js.map +0 -1
- package/dist-es/commands/ListDomainsCommand.js.map +0 -1
- package/dist-es/commands/ListPackageVersionAssetsCommand.js.map +0 -1
- package/dist-es/commands/ListPackageVersionDependenciesCommand.js.map +0 -1
- package/dist-es/commands/ListPackageVersionsCommand.js.map +0 -1
- package/dist-es/commands/ListPackagesCommand.js.map +0 -1
- package/dist-es/commands/ListRepositoriesCommand.js.map +0 -1
- package/dist-es/commands/ListRepositoriesInDomainCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutDomainPermissionsPolicyCommand.js.map +0 -1
- package/dist-es/commands/PutRepositoryPermissionsPolicyCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdatePackageVersionsStatusCommand.js.map +0 -1
- package/dist-es/commands/UpdateRepositoryCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListDomainsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPackageVersionAssetsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPackageVersionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListPackagesPaginator.js.map +0 -1
- package/dist-es/pagination/ListRepositoriesInDomainPaginator.js.map +0 -1
- package/dist-es/pagination/ListRepositoriesPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Codeartifact.ts +0 -1669
- package/src/CodeartifactClient.ts +0 -657
- package/src/commands/AssociateExternalConnectionCommand.ts +0 -102
- package/src/commands/CopyPackageVersionsCommand.ts +0 -102
- package/src/commands/CreateDomainCommand.ts +0 -105
- package/src/commands/CreateRepositoryCommand.ts +0 -97
- package/src/commands/DeleteDomainCommand.ts +0 -98
- package/src/commands/DeleteDomainPermissionsPolicyCommand.ts +0 -102
- package/src/commands/DeletePackageVersionsCommand.ts +0 -99
- package/src/commands/DeleteRepositoryCommand.ts +0 -97
- package/src/commands/DeleteRepositoryPermissionsPolicyCommand.ts +0 -112
- package/src/commands/DescribeDomainCommand.ts +0 -99
- package/src/commands/DescribePackageVersionCommand.ts +0 -99
- package/src/commands/DescribeRepositoryCommand.ts +0 -98
- package/src/commands/DisassociateExternalConnectionCommand.ts +0 -105
- package/src/commands/DisposePackageVersionsCommand.ts +0 -108
- package/src/commands/GetAuthorizationTokenCommand.ts +0 -115
- package/src/commands/GetDomainPermissionsPolicyCommand.ts +0 -107
- package/src/commands/GetPackageVersionAssetCommand.ts +0 -99
- package/src/commands/GetPackageVersionReadmeCommand.ts +0 -102
- package/src/commands/GetRepositoryEndpointCommand.ts +0 -115
- package/src/commands/GetRepositoryPermissionsPolicyCommand.ts +0 -105
- package/src/commands/ListDomainsCommand.ts +0 -97
- package/src/commands/ListPackageVersionAssetsCommand.ts +0 -99
- package/src/commands/ListPackageVersionDependenciesCommand.ts +0 -109
- package/src/commands/ListPackageVersionsCommand.ts +0 -99
- package/src/commands/ListPackagesCommand.ts +0 -99
- package/src/commands/ListRepositoriesCommand.ts +0 -100
- package/src/commands/ListRepositoriesInDomainCommand.ts +0 -100
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutDomainPermissionsPolicyCommand.ts +0 -105
- package/src/commands/PutRepositoryPermissionsPolicyCommand.ts +0 -110
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdatePackageVersionsStatusCommand.ts +0 -100
- package/src/commands/UpdateRepositoryCommand.ts +0 -97
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -44
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -4453
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListDomainsPaginator.ts +0 -55
- package/src/pagination/ListPackageVersionAssetsPaginator.ts +0 -59
- package/src/pagination/ListPackageVersionsPaginator.ts +0 -59
- package/src/pagination/ListPackagesPaginator.ts +0 -59
- package/src/pagination/ListRepositoriesInDomainPaginator.ts +0 -59
- package/src/pagination/ListRepositoriesPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -5056
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/Codeartifact.ts
DELETED
|
@@ -1,1669 +0,0 @@
|
|
|
1
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
-
|
|
3
|
-
import { CodeartifactClient } from "./CodeartifactClient";
|
|
4
|
-
import {
|
|
5
|
-
AssociateExternalConnectionCommand,
|
|
6
|
-
AssociateExternalConnectionCommandInput,
|
|
7
|
-
AssociateExternalConnectionCommandOutput,
|
|
8
|
-
} from "./commands/AssociateExternalConnectionCommand";
|
|
9
|
-
import {
|
|
10
|
-
CopyPackageVersionsCommand,
|
|
11
|
-
CopyPackageVersionsCommandInput,
|
|
12
|
-
CopyPackageVersionsCommandOutput,
|
|
13
|
-
} from "./commands/CopyPackageVersionsCommand";
|
|
14
|
-
import {
|
|
15
|
-
CreateDomainCommand,
|
|
16
|
-
CreateDomainCommandInput,
|
|
17
|
-
CreateDomainCommandOutput,
|
|
18
|
-
} from "./commands/CreateDomainCommand";
|
|
19
|
-
import {
|
|
20
|
-
CreateRepositoryCommand,
|
|
21
|
-
CreateRepositoryCommandInput,
|
|
22
|
-
CreateRepositoryCommandOutput,
|
|
23
|
-
} from "./commands/CreateRepositoryCommand";
|
|
24
|
-
import {
|
|
25
|
-
DeleteDomainCommand,
|
|
26
|
-
DeleteDomainCommandInput,
|
|
27
|
-
DeleteDomainCommandOutput,
|
|
28
|
-
} from "./commands/DeleteDomainCommand";
|
|
29
|
-
import {
|
|
30
|
-
DeleteDomainPermissionsPolicyCommand,
|
|
31
|
-
DeleteDomainPermissionsPolicyCommandInput,
|
|
32
|
-
DeleteDomainPermissionsPolicyCommandOutput,
|
|
33
|
-
} from "./commands/DeleteDomainPermissionsPolicyCommand";
|
|
34
|
-
import {
|
|
35
|
-
DeletePackageVersionsCommand,
|
|
36
|
-
DeletePackageVersionsCommandInput,
|
|
37
|
-
DeletePackageVersionsCommandOutput,
|
|
38
|
-
} from "./commands/DeletePackageVersionsCommand";
|
|
39
|
-
import {
|
|
40
|
-
DeleteRepositoryCommand,
|
|
41
|
-
DeleteRepositoryCommandInput,
|
|
42
|
-
DeleteRepositoryCommandOutput,
|
|
43
|
-
} from "./commands/DeleteRepositoryCommand";
|
|
44
|
-
import {
|
|
45
|
-
DeleteRepositoryPermissionsPolicyCommand,
|
|
46
|
-
DeleteRepositoryPermissionsPolicyCommandInput,
|
|
47
|
-
DeleteRepositoryPermissionsPolicyCommandOutput,
|
|
48
|
-
} from "./commands/DeleteRepositoryPermissionsPolicyCommand";
|
|
49
|
-
import {
|
|
50
|
-
DescribeDomainCommand,
|
|
51
|
-
DescribeDomainCommandInput,
|
|
52
|
-
DescribeDomainCommandOutput,
|
|
53
|
-
} from "./commands/DescribeDomainCommand";
|
|
54
|
-
import {
|
|
55
|
-
DescribePackageVersionCommand,
|
|
56
|
-
DescribePackageVersionCommandInput,
|
|
57
|
-
DescribePackageVersionCommandOutput,
|
|
58
|
-
} from "./commands/DescribePackageVersionCommand";
|
|
59
|
-
import {
|
|
60
|
-
DescribeRepositoryCommand,
|
|
61
|
-
DescribeRepositoryCommandInput,
|
|
62
|
-
DescribeRepositoryCommandOutput,
|
|
63
|
-
} from "./commands/DescribeRepositoryCommand";
|
|
64
|
-
import {
|
|
65
|
-
DisassociateExternalConnectionCommand,
|
|
66
|
-
DisassociateExternalConnectionCommandInput,
|
|
67
|
-
DisassociateExternalConnectionCommandOutput,
|
|
68
|
-
} from "./commands/DisassociateExternalConnectionCommand";
|
|
69
|
-
import {
|
|
70
|
-
DisposePackageVersionsCommand,
|
|
71
|
-
DisposePackageVersionsCommandInput,
|
|
72
|
-
DisposePackageVersionsCommandOutput,
|
|
73
|
-
} from "./commands/DisposePackageVersionsCommand";
|
|
74
|
-
import {
|
|
75
|
-
GetAuthorizationTokenCommand,
|
|
76
|
-
GetAuthorizationTokenCommandInput,
|
|
77
|
-
GetAuthorizationTokenCommandOutput,
|
|
78
|
-
} from "./commands/GetAuthorizationTokenCommand";
|
|
79
|
-
import {
|
|
80
|
-
GetDomainPermissionsPolicyCommand,
|
|
81
|
-
GetDomainPermissionsPolicyCommandInput,
|
|
82
|
-
GetDomainPermissionsPolicyCommandOutput,
|
|
83
|
-
} from "./commands/GetDomainPermissionsPolicyCommand";
|
|
84
|
-
import {
|
|
85
|
-
GetPackageVersionAssetCommand,
|
|
86
|
-
GetPackageVersionAssetCommandInput,
|
|
87
|
-
GetPackageVersionAssetCommandOutput,
|
|
88
|
-
} from "./commands/GetPackageVersionAssetCommand";
|
|
89
|
-
import {
|
|
90
|
-
GetPackageVersionReadmeCommand,
|
|
91
|
-
GetPackageVersionReadmeCommandInput,
|
|
92
|
-
GetPackageVersionReadmeCommandOutput,
|
|
93
|
-
} from "./commands/GetPackageVersionReadmeCommand";
|
|
94
|
-
import {
|
|
95
|
-
GetRepositoryEndpointCommand,
|
|
96
|
-
GetRepositoryEndpointCommandInput,
|
|
97
|
-
GetRepositoryEndpointCommandOutput,
|
|
98
|
-
} from "./commands/GetRepositoryEndpointCommand";
|
|
99
|
-
import {
|
|
100
|
-
GetRepositoryPermissionsPolicyCommand,
|
|
101
|
-
GetRepositoryPermissionsPolicyCommandInput,
|
|
102
|
-
GetRepositoryPermissionsPolicyCommandOutput,
|
|
103
|
-
} from "./commands/GetRepositoryPermissionsPolicyCommand";
|
|
104
|
-
import { ListDomainsCommand, ListDomainsCommandInput, ListDomainsCommandOutput } from "./commands/ListDomainsCommand";
|
|
105
|
-
import {
|
|
106
|
-
ListPackagesCommand,
|
|
107
|
-
ListPackagesCommandInput,
|
|
108
|
-
ListPackagesCommandOutput,
|
|
109
|
-
} from "./commands/ListPackagesCommand";
|
|
110
|
-
import {
|
|
111
|
-
ListPackageVersionAssetsCommand,
|
|
112
|
-
ListPackageVersionAssetsCommandInput,
|
|
113
|
-
ListPackageVersionAssetsCommandOutput,
|
|
114
|
-
} from "./commands/ListPackageVersionAssetsCommand";
|
|
115
|
-
import {
|
|
116
|
-
ListPackageVersionDependenciesCommand,
|
|
117
|
-
ListPackageVersionDependenciesCommandInput,
|
|
118
|
-
ListPackageVersionDependenciesCommandOutput,
|
|
119
|
-
} from "./commands/ListPackageVersionDependenciesCommand";
|
|
120
|
-
import {
|
|
121
|
-
ListPackageVersionsCommand,
|
|
122
|
-
ListPackageVersionsCommandInput,
|
|
123
|
-
ListPackageVersionsCommandOutput,
|
|
124
|
-
} from "./commands/ListPackageVersionsCommand";
|
|
125
|
-
import {
|
|
126
|
-
ListRepositoriesCommand,
|
|
127
|
-
ListRepositoriesCommandInput,
|
|
128
|
-
ListRepositoriesCommandOutput,
|
|
129
|
-
} from "./commands/ListRepositoriesCommand";
|
|
130
|
-
import {
|
|
131
|
-
ListRepositoriesInDomainCommand,
|
|
132
|
-
ListRepositoriesInDomainCommandInput,
|
|
133
|
-
ListRepositoriesInDomainCommandOutput,
|
|
134
|
-
} from "./commands/ListRepositoriesInDomainCommand";
|
|
135
|
-
import {
|
|
136
|
-
ListTagsForResourceCommand,
|
|
137
|
-
ListTagsForResourceCommandInput,
|
|
138
|
-
ListTagsForResourceCommandOutput,
|
|
139
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
140
|
-
import {
|
|
141
|
-
PutDomainPermissionsPolicyCommand,
|
|
142
|
-
PutDomainPermissionsPolicyCommandInput,
|
|
143
|
-
PutDomainPermissionsPolicyCommandOutput,
|
|
144
|
-
} from "./commands/PutDomainPermissionsPolicyCommand";
|
|
145
|
-
import {
|
|
146
|
-
PutRepositoryPermissionsPolicyCommand,
|
|
147
|
-
PutRepositoryPermissionsPolicyCommandInput,
|
|
148
|
-
PutRepositoryPermissionsPolicyCommandOutput,
|
|
149
|
-
} from "./commands/PutRepositoryPermissionsPolicyCommand";
|
|
150
|
-
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
151
|
-
import {
|
|
152
|
-
UntagResourceCommand,
|
|
153
|
-
UntagResourceCommandInput,
|
|
154
|
-
UntagResourceCommandOutput,
|
|
155
|
-
} from "./commands/UntagResourceCommand";
|
|
156
|
-
import {
|
|
157
|
-
UpdatePackageVersionsStatusCommand,
|
|
158
|
-
UpdatePackageVersionsStatusCommandInput,
|
|
159
|
-
UpdatePackageVersionsStatusCommandOutput,
|
|
160
|
-
} from "./commands/UpdatePackageVersionsStatusCommand";
|
|
161
|
-
import {
|
|
162
|
-
UpdateRepositoryCommand,
|
|
163
|
-
UpdateRepositoryCommandInput,
|
|
164
|
-
UpdateRepositoryCommandOutput,
|
|
165
|
-
} from "./commands/UpdateRepositoryCommand";
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* <p> AWS CodeArtifact is a fully managed artifact repository compatible with language-native
|
|
169
|
-
* package managers and build tools such as npm, Apache Maven, and pip. You can use CodeArtifact to
|
|
170
|
-
* share packages with development teams and pull packages. Packages can be pulled from both
|
|
171
|
-
* public and CodeArtifact repositories. You can also create an upstream relationship between a CodeArtifact
|
|
172
|
-
* repository and another repository, which effectively merges their contents from the point of
|
|
173
|
-
* view of a package manager client. </p>
|
|
174
|
-
*
|
|
175
|
-
* <p>
|
|
176
|
-
* <b>AWS CodeArtifact Components</b>
|
|
177
|
-
* </p>
|
|
178
|
-
* <p>Use the information in this guide to help you work with the following CodeArtifact components:</p>
|
|
179
|
-
*
|
|
180
|
-
* <ul>
|
|
181
|
-
* <li>
|
|
182
|
-
* <p>
|
|
183
|
-
* <b>Repository</b>: A CodeArtifact repository contains a set of <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/welcome.html#welcome-concepts-package-version">package
|
|
184
|
-
* versions</a>, each of which maps to a set of assets, or files. Repositories are
|
|
185
|
-
* polyglot, so a single repository can contain packages of any supported type. Each
|
|
186
|
-
* repository exposes endpoints for fetching and publishing packages using tools like the
|
|
187
|
-
* <b>
|
|
188
|
-
* <code>npm</code>
|
|
189
|
-
* </b> CLI, the Maven CLI (<b>
|
|
190
|
-
* <code>mvn</code>
|
|
191
|
-
* </b>), and <b>
|
|
192
|
-
* <code>pip</code>
|
|
193
|
-
* </b>.</p>
|
|
194
|
-
* </li>
|
|
195
|
-
* <li>
|
|
196
|
-
* <p>
|
|
197
|
-
* <b>Domain</b>: Repositories are aggregated into a higher-level entity known as a
|
|
198
|
-
* <i>domain</i>. All package assets and metadata are stored in the domain,
|
|
199
|
-
* but are consumed through repositories. A given package asset, such as a Maven JAR file, is
|
|
200
|
-
* stored once per domain, no matter how many repositories it's present in. All of the assets
|
|
201
|
-
* and metadata in a domain are encrypted with the same customer master key (CMK) stored in
|
|
202
|
-
* AWS Key Management Service (AWS KMS).</p>
|
|
203
|
-
* <p>Each repository is a member of a single domain and can't be moved to a
|
|
204
|
-
* different domain.</p>
|
|
205
|
-
* <p>The domain allows organizational policy to be applied across multiple
|
|
206
|
-
* repositories, such as which accounts can access repositories in the domain, and
|
|
207
|
-
* which public repositories can be used as sources of packages.</p>
|
|
208
|
-
* <p>Although an organization can have multiple domains, we recommend a single production
|
|
209
|
-
* domain that contains all published artifacts so that teams can find and share packages
|
|
210
|
-
* across their organization.</p>
|
|
211
|
-
* </li>
|
|
212
|
-
* <li>
|
|
213
|
-
* <p>
|
|
214
|
-
* <b>Package</b>: A <i>package</i> is a bundle of software and the metadata required to
|
|
215
|
-
* resolve dependencies and install the software. CodeArtifact supports <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-npm.html">npm</a>, <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-python.html">PyPI</a>, and <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/using-maven">Maven</a> package formats.</p>
|
|
216
|
-
* <p>In CodeArtifact, a package consists of:</p>
|
|
217
|
-
* <ul>
|
|
218
|
-
* <li>
|
|
219
|
-
* <p>A <i>name</i> (for example, <code>webpack</code> is the name of a
|
|
220
|
-
* popular npm package)</p>
|
|
221
|
-
* </li>
|
|
222
|
-
* <li>
|
|
223
|
-
* <p>An optional namespace (for example, <code>@types</code> in <code>@types/node</code>)</p>
|
|
224
|
-
* </li>
|
|
225
|
-
* <li>
|
|
226
|
-
* <p>A set of versions (for example, <code>1.0.0</code>, <code>1.0.1</code>,
|
|
227
|
-
* <code>1.0.2</code>, etc.)</p>
|
|
228
|
-
* </li>
|
|
229
|
-
* <li>
|
|
230
|
-
* <p> Package-level metadata (for example, npm tags)</p>
|
|
231
|
-
* </li>
|
|
232
|
-
* </ul>
|
|
233
|
-
* </li>
|
|
234
|
-
* <li>
|
|
235
|
-
* <p>
|
|
236
|
-
* <b>Package version</b>: A version of a package, such as <code>@types/node 12.6.9</code>. The version number
|
|
237
|
-
* format and semantics vary for different package formats. For example, npm package versions
|
|
238
|
-
* must conform to the <a href="https://semver.org/">Semantic Versioning
|
|
239
|
-
* specification</a>. In CodeArtifact, a package version consists of the version identifier,
|
|
240
|
-
* metadata at the package version level, and a set of assets.</p>
|
|
241
|
-
* </li>
|
|
242
|
-
* <li>
|
|
243
|
-
* <p>
|
|
244
|
-
* <b>Upstream repository</b>: One repository is <i>upstream</i> of another when the package versions in
|
|
245
|
-
* it can be accessed from the repository endpoint of the downstream repository, effectively
|
|
246
|
-
* merging the contents of the two repositories from the point of view of a client. CodeArtifact
|
|
247
|
-
* allows creating an upstream relationship between two repositories.</p>
|
|
248
|
-
* </li>
|
|
249
|
-
* <li>
|
|
250
|
-
* <p>
|
|
251
|
-
* <b>Asset</b>: An individual file stored in CodeArtifact associated with a package version, such as an npm
|
|
252
|
-
* <code>.tgz</code> file or Maven POM and JAR files.</p>
|
|
253
|
-
* </li>
|
|
254
|
-
* </ul>
|
|
255
|
-
*
|
|
256
|
-
* <p>CodeArtifact supports these operations:</p>
|
|
257
|
-
* <ul>
|
|
258
|
-
* <li>
|
|
259
|
-
* <p>
|
|
260
|
-
* <code>AssociateExternalConnection</code>: Adds an existing external
|
|
261
|
-
* connection to a repository.
|
|
262
|
-
* </p>
|
|
263
|
-
* </li>
|
|
264
|
-
* <li>
|
|
265
|
-
* <p>
|
|
266
|
-
* <code>CopyPackageVersions</code>: Copies package versions from one
|
|
267
|
-
* repository to another repository in the same domain.</p>
|
|
268
|
-
* </li>
|
|
269
|
-
* <li>
|
|
270
|
-
* <p>
|
|
271
|
-
* <code>CreateDomain</code>: Creates a domain</p>
|
|
272
|
-
* </li>
|
|
273
|
-
* <li>
|
|
274
|
-
* <p>
|
|
275
|
-
* <code>CreateRepository</code>: Creates a CodeArtifact repository in a domain. </p>
|
|
276
|
-
* </li>
|
|
277
|
-
* <li>
|
|
278
|
-
* <p>
|
|
279
|
-
* <code>DeleteDomain</code>: Deletes a domain. You cannot delete a domain that contains
|
|
280
|
-
* repositories. </p>
|
|
281
|
-
* </li>
|
|
282
|
-
* <li>
|
|
283
|
-
* <p>
|
|
284
|
-
* <code>DeleteDomainPermissionsPolicy</code>: Deletes the resource policy that is set on a domain.</p>
|
|
285
|
-
* </li>
|
|
286
|
-
* <li>
|
|
287
|
-
* <p>
|
|
288
|
-
* <code>DeletePackageVersions</code>: Deletes versions of a package. After a package has
|
|
289
|
-
* been deleted, it can be republished, but its assets and metadata cannot be restored
|
|
290
|
-
* because they have been permanently removed from storage.</p>
|
|
291
|
-
* </li>
|
|
292
|
-
* <li>
|
|
293
|
-
* <p>
|
|
294
|
-
* <code>DeleteRepository</code>: Deletes a repository.
|
|
295
|
-
* </p>
|
|
296
|
-
* </li>
|
|
297
|
-
* <li>
|
|
298
|
-
* <p>
|
|
299
|
-
* <code>DeleteRepositoryPermissionsPolicy</code>: Deletes the resource policy that is set on a repository.</p>
|
|
300
|
-
* </li>
|
|
301
|
-
* <li>
|
|
302
|
-
* <p>
|
|
303
|
-
* <code>DescribeDomain</code>: Returns a <code>DomainDescription</code> object that
|
|
304
|
-
* contains information about the requested domain.</p>
|
|
305
|
-
* </li>
|
|
306
|
-
* <li>
|
|
307
|
-
* <p>
|
|
308
|
-
* <code>DescribePackageVersion</code>: Returns a <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html">PackageVersionDescription</a>
|
|
309
|
-
* object that contains details about a package version. </p>
|
|
310
|
-
* </li>
|
|
311
|
-
* <li>
|
|
312
|
-
* <p>
|
|
313
|
-
* <code>DescribeRepository</code>: Returns a <code>RepositoryDescription</code> object
|
|
314
|
-
* that contains detailed information about the requested repository. </p>
|
|
315
|
-
* </li>
|
|
316
|
-
* <li>
|
|
317
|
-
* <p>
|
|
318
|
-
* <code>DisposePackageVersions</code>: Disposes versions of a package. A package version
|
|
319
|
-
* with the status <code>Disposed</code> cannot be restored because they have been
|
|
320
|
-
* permanently removed from storage.</p>
|
|
321
|
-
* </li>
|
|
322
|
-
* <li>
|
|
323
|
-
* <p>
|
|
324
|
-
* <code>DisassociateExternalConnection</code>: Removes an existing external connection from a repository.
|
|
325
|
-
* </p>
|
|
326
|
-
* </li>
|
|
327
|
-
* <li>
|
|
328
|
-
* <p>
|
|
329
|
-
* <code>GetAuthorizationToken</code>: Generates a temporary authorization token for accessing repositories in the domain. The token expires the authorization period has passed.
|
|
330
|
-
* The default authorization period is 12 hours and can be customized to any length with a maximum of 12 hours.</p>
|
|
331
|
-
* </li>
|
|
332
|
-
* <li>
|
|
333
|
-
* <p>
|
|
334
|
-
* <code>GetDomainPermissionsPolicy</code>: Returns the policy of a resource
|
|
335
|
-
* that is attached to the specified domain. </p>
|
|
336
|
-
* </li>
|
|
337
|
-
* <li>
|
|
338
|
-
* <p>
|
|
339
|
-
* <code>GetPackageVersionAsset</code>: Returns the contents of an asset that is in a package version. </p>
|
|
340
|
-
* </li>
|
|
341
|
-
* <li>
|
|
342
|
-
* <p>
|
|
343
|
-
* <code>GetPackageVersionReadme</code>: Gets the readme file or descriptive text for a package version.</p>
|
|
344
|
-
* </li>
|
|
345
|
-
* <li>
|
|
346
|
-
* <p>
|
|
347
|
-
* <code>GetRepositoryEndpoint</code>: Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each
|
|
348
|
-
* package format:
|
|
349
|
-
* </p>
|
|
350
|
-
* <ul>
|
|
351
|
-
* <li>
|
|
352
|
-
* <p>
|
|
353
|
-
* <code>npm</code>
|
|
354
|
-
* </p>
|
|
355
|
-
* </li>
|
|
356
|
-
* <li>
|
|
357
|
-
* <p>
|
|
358
|
-
* <code>pypi</code>
|
|
359
|
-
* </p>
|
|
360
|
-
* </li>
|
|
361
|
-
* <li>
|
|
362
|
-
* <p>
|
|
363
|
-
* <code>maven</code>
|
|
364
|
-
* </p>
|
|
365
|
-
* </li>
|
|
366
|
-
* </ul>
|
|
367
|
-
* </li>
|
|
368
|
-
* <li>
|
|
369
|
-
* <p>
|
|
370
|
-
* <code>GetRepositoryPermissionsPolicy</code>: Returns the resource policy that is set on a repository.
|
|
371
|
-
* </p>
|
|
372
|
-
* </li>
|
|
373
|
-
* <li>
|
|
374
|
-
* <p>
|
|
375
|
-
* <code>ListDomains</code>: Returns a list of <code>DomainSummary</code> objects. Each
|
|
376
|
-
* returned <code>DomainSummary</code> object contains information about a domain.</p>
|
|
377
|
-
* </li>
|
|
378
|
-
* <li>
|
|
379
|
-
* <p>
|
|
380
|
-
* <code>ListPackages</code>: Lists the packages in a repository.</p>
|
|
381
|
-
* </li>
|
|
382
|
-
* <li>
|
|
383
|
-
* <p>
|
|
384
|
-
* <code>ListPackageVersionAssets</code>: Lists the assets for a given package version.</p>
|
|
385
|
-
* </li>
|
|
386
|
-
* <li>
|
|
387
|
-
* <p>
|
|
388
|
-
* <code>ListPackageVersionDependencies</code>: Returns a list of the direct dependencies for a
|
|
389
|
-
* package version. </p>
|
|
390
|
-
* </li>
|
|
391
|
-
* <li>
|
|
392
|
-
* <p>
|
|
393
|
-
* <code>ListPackageVersions</code>: Returns a list of package versions for a specified
|
|
394
|
-
* package in a repository.</p>
|
|
395
|
-
* </li>
|
|
396
|
-
* <li>
|
|
397
|
-
* <p>
|
|
398
|
-
* <code>ListRepositories</code>: Returns a list of repositories owned by the AWS account that called this method.</p>
|
|
399
|
-
* </li>
|
|
400
|
-
* <li>
|
|
401
|
-
* <p>
|
|
402
|
-
* <code>ListRepositoriesInDomain</code>: Returns a list of the repositories in a domain.</p>
|
|
403
|
-
* </li>
|
|
404
|
-
* <li>
|
|
405
|
-
* <p>
|
|
406
|
-
* <code>PutDomainPermissionsPolicy</code>: Attaches a resource policy to a domain.</p>
|
|
407
|
-
* </li>
|
|
408
|
-
* <li>
|
|
409
|
-
* <p>
|
|
410
|
-
* <code>PutRepositoryPermissionsPolicy</code>: Sets the resource policy on a repository
|
|
411
|
-
* that specifies permissions to access it. </p>
|
|
412
|
-
* </li>
|
|
413
|
-
* <li>
|
|
414
|
-
* <p>
|
|
415
|
-
* <code>UpdatePackageVersionsStatus</code>: Updates the status of one or more versions of a package.</p>
|
|
416
|
-
* </li>
|
|
417
|
-
* <li>
|
|
418
|
-
* <p>
|
|
419
|
-
* <code>UpdateRepository</code>: Updates the properties of a repository.</p>
|
|
420
|
-
* </li>
|
|
421
|
-
* </ul>
|
|
422
|
-
*/
|
|
423
|
-
export class Codeartifact extends CodeartifactClient {
|
|
424
|
-
/**
|
|
425
|
-
* <p>Adds an existing external connection to a repository. One external connection is allowed
|
|
426
|
-
* per repository.</p>
|
|
427
|
-
* <note>
|
|
428
|
-
* <p>A repository can have one or more upstream repositories, or an external connection.</p>
|
|
429
|
-
* </note>
|
|
430
|
-
*/
|
|
431
|
-
public associateExternalConnection(
|
|
432
|
-
args: AssociateExternalConnectionCommandInput,
|
|
433
|
-
options?: __HttpHandlerOptions
|
|
434
|
-
): Promise<AssociateExternalConnectionCommandOutput>;
|
|
435
|
-
public associateExternalConnection(
|
|
436
|
-
args: AssociateExternalConnectionCommandInput,
|
|
437
|
-
cb: (err: any, data?: AssociateExternalConnectionCommandOutput) => void
|
|
438
|
-
): void;
|
|
439
|
-
public associateExternalConnection(
|
|
440
|
-
args: AssociateExternalConnectionCommandInput,
|
|
441
|
-
options: __HttpHandlerOptions,
|
|
442
|
-
cb: (err: any, data?: AssociateExternalConnectionCommandOutput) => void
|
|
443
|
-
): void;
|
|
444
|
-
public associateExternalConnection(
|
|
445
|
-
args: AssociateExternalConnectionCommandInput,
|
|
446
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateExternalConnectionCommandOutput) => void),
|
|
447
|
-
cb?: (err: any, data?: AssociateExternalConnectionCommandOutput) => void
|
|
448
|
-
): Promise<AssociateExternalConnectionCommandOutput> | void {
|
|
449
|
-
const command = new AssociateExternalConnectionCommand(args);
|
|
450
|
-
if (typeof optionsOrCb === "function") {
|
|
451
|
-
this.send(command, optionsOrCb);
|
|
452
|
-
} else if (typeof cb === "function") {
|
|
453
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
454
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
455
|
-
} else {
|
|
456
|
-
return this.send(command, optionsOrCb);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* <p>
|
|
462
|
-
* Copies package versions from one repository to another repository in the same domain.
|
|
463
|
-
* </p>
|
|
464
|
-
* <note>
|
|
465
|
-
* <p>
|
|
466
|
-
* You must specify <code>versions</code> or <code>versionRevisions</code>. You cannot specify both.
|
|
467
|
-
* </p>
|
|
468
|
-
* </note>
|
|
469
|
-
*/
|
|
470
|
-
public copyPackageVersions(
|
|
471
|
-
args: CopyPackageVersionsCommandInput,
|
|
472
|
-
options?: __HttpHandlerOptions
|
|
473
|
-
): Promise<CopyPackageVersionsCommandOutput>;
|
|
474
|
-
public copyPackageVersions(
|
|
475
|
-
args: CopyPackageVersionsCommandInput,
|
|
476
|
-
cb: (err: any, data?: CopyPackageVersionsCommandOutput) => void
|
|
477
|
-
): void;
|
|
478
|
-
public copyPackageVersions(
|
|
479
|
-
args: CopyPackageVersionsCommandInput,
|
|
480
|
-
options: __HttpHandlerOptions,
|
|
481
|
-
cb: (err: any, data?: CopyPackageVersionsCommandOutput) => void
|
|
482
|
-
): void;
|
|
483
|
-
public copyPackageVersions(
|
|
484
|
-
args: CopyPackageVersionsCommandInput,
|
|
485
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CopyPackageVersionsCommandOutput) => void),
|
|
486
|
-
cb?: (err: any, data?: CopyPackageVersionsCommandOutput) => void
|
|
487
|
-
): Promise<CopyPackageVersionsCommandOutput> | void {
|
|
488
|
-
const command = new CopyPackageVersionsCommand(args);
|
|
489
|
-
if (typeof optionsOrCb === "function") {
|
|
490
|
-
this.send(command, optionsOrCb);
|
|
491
|
-
} else if (typeof cb === "function") {
|
|
492
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
493
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
494
|
-
} else {
|
|
495
|
-
return this.send(command, optionsOrCb);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* <p>
|
|
501
|
-
* Creates a domain. CodeArtifact <i>domains</i> make it easier to manage multiple repositories across an
|
|
502
|
-
* organization. You can use a domain to apply permissions across many
|
|
503
|
-
* repositories owned by different AWS accounts. An asset is stored only once
|
|
504
|
-
* in a domain, even if it's in multiple repositories.
|
|
505
|
-
* </p>
|
|
506
|
-
*
|
|
507
|
-
* <p>Although you can have multiple domains, we recommend a single production domain that contains all
|
|
508
|
-
* published artifacts so that your development teams can find and share packages. You can use a second
|
|
509
|
-
* pre-production domain to test changes to the production domain configuration.
|
|
510
|
-
* </p>
|
|
511
|
-
*/
|
|
512
|
-
public createDomain(
|
|
513
|
-
args: CreateDomainCommandInput,
|
|
514
|
-
options?: __HttpHandlerOptions
|
|
515
|
-
): Promise<CreateDomainCommandOutput>;
|
|
516
|
-
public createDomain(args: CreateDomainCommandInput, cb: (err: any, data?: CreateDomainCommandOutput) => void): void;
|
|
517
|
-
public createDomain(
|
|
518
|
-
args: CreateDomainCommandInput,
|
|
519
|
-
options: __HttpHandlerOptions,
|
|
520
|
-
cb: (err: any, data?: CreateDomainCommandOutput) => void
|
|
521
|
-
): void;
|
|
522
|
-
public createDomain(
|
|
523
|
-
args: CreateDomainCommandInput,
|
|
524
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDomainCommandOutput) => void),
|
|
525
|
-
cb?: (err: any, data?: CreateDomainCommandOutput) => void
|
|
526
|
-
): Promise<CreateDomainCommandOutput> | void {
|
|
527
|
-
const command = new CreateDomainCommand(args);
|
|
528
|
-
if (typeof optionsOrCb === "function") {
|
|
529
|
-
this.send(command, optionsOrCb);
|
|
530
|
-
} else if (typeof cb === "function") {
|
|
531
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
532
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
533
|
-
} else {
|
|
534
|
-
return this.send(command, optionsOrCb);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* <p>
|
|
540
|
-
* Creates a repository.
|
|
541
|
-
* </p>
|
|
542
|
-
*/
|
|
543
|
-
public createRepository(
|
|
544
|
-
args: CreateRepositoryCommandInput,
|
|
545
|
-
options?: __HttpHandlerOptions
|
|
546
|
-
): Promise<CreateRepositoryCommandOutput>;
|
|
547
|
-
public createRepository(
|
|
548
|
-
args: CreateRepositoryCommandInput,
|
|
549
|
-
cb: (err: any, data?: CreateRepositoryCommandOutput) => void
|
|
550
|
-
): void;
|
|
551
|
-
public createRepository(
|
|
552
|
-
args: CreateRepositoryCommandInput,
|
|
553
|
-
options: __HttpHandlerOptions,
|
|
554
|
-
cb: (err: any, data?: CreateRepositoryCommandOutput) => void
|
|
555
|
-
): void;
|
|
556
|
-
public createRepository(
|
|
557
|
-
args: CreateRepositoryCommandInput,
|
|
558
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateRepositoryCommandOutput) => void),
|
|
559
|
-
cb?: (err: any, data?: CreateRepositoryCommandOutput) => void
|
|
560
|
-
): Promise<CreateRepositoryCommandOutput> | void {
|
|
561
|
-
const command = new CreateRepositoryCommand(args);
|
|
562
|
-
if (typeof optionsOrCb === "function") {
|
|
563
|
-
this.send(command, optionsOrCb);
|
|
564
|
-
} else if (typeof cb === "function") {
|
|
565
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
566
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
567
|
-
} else {
|
|
568
|
-
return this.send(command, optionsOrCb);
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* <p>
|
|
574
|
-
* Deletes a domain. You cannot delete a domain that contains repositories. If you want to delete a domain
|
|
575
|
-
* with repositories, first delete its repositories.
|
|
576
|
-
* </p>
|
|
577
|
-
*/
|
|
578
|
-
public deleteDomain(
|
|
579
|
-
args: DeleteDomainCommandInput,
|
|
580
|
-
options?: __HttpHandlerOptions
|
|
581
|
-
): Promise<DeleteDomainCommandOutput>;
|
|
582
|
-
public deleteDomain(args: DeleteDomainCommandInput, cb: (err: any, data?: DeleteDomainCommandOutput) => void): void;
|
|
583
|
-
public deleteDomain(
|
|
584
|
-
args: DeleteDomainCommandInput,
|
|
585
|
-
options: __HttpHandlerOptions,
|
|
586
|
-
cb: (err: any, data?: DeleteDomainCommandOutput) => void
|
|
587
|
-
): void;
|
|
588
|
-
public deleteDomain(
|
|
589
|
-
args: DeleteDomainCommandInput,
|
|
590
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDomainCommandOutput) => void),
|
|
591
|
-
cb?: (err: any, data?: DeleteDomainCommandOutput) => void
|
|
592
|
-
): Promise<DeleteDomainCommandOutput> | void {
|
|
593
|
-
const command = new DeleteDomainCommand(args);
|
|
594
|
-
if (typeof optionsOrCb === "function") {
|
|
595
|
-
this.send(command, optionsOrCb);
|
|
596
|
-
} else if (typeof cb === "function") {
|
|
597
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
598
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
599
|
-
} else {
|
|
600
|
-
return this.send(command, optionsOrCb);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* <p>
|
|
606
|
-
* Deletes the resource policy set on a domain.
|
|
607
|
-
* </p>
|
|
608
|
-
*/
|
|
609
|
-
public deleteDomainPermissionsPolicy(
|
|
610
|
-
args: DeleteDomainPermissionsPolicyCommandInput,
|
|
611
|
-
options?: __HttpHandlerOptions
|
|
612
|
-
): Promise<DeleteDomainPermissionsPolicyCommandOutput>;
|
|
613
|
-
public deleteDomainPermissionsPolicy(
|
|
614
|
-
args: DeleteDomainPermissionsPolicyCommandInput,
|
|
615
|
-
cb: (err: any, data?: DeleteDomainPermissionsPolicyCommandOutput) => void
|
|
616
|
-
): void;
|
|
617
|
-
public deleteDomainPermissionsPolicy(
|
|
618
|
-
args: DeleteDomainPermissionsPolicyCommandInput,
|
|
619
|
-
options: __HttpHandlerOptions,
|
|
620
|
-
cb: (err: any, data?: DeleteDomainPermissionsPolicyCommandOutput) => void
|
|
621
|
-
): void;
|
|
622
|
-
public deleteDomainPermissionsPolicy(
|
|
623
|
-
args: DeleteDomainPermissionsPolicyCommandInput,
|
|
624
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDomainPermissionsPolicyCommandOutput) => void),
|
|
625
|
-
cb?: (err: any, data?: DeleteDomainPermissionsPolicyCommandOutput) => void
|
|
626
|
-
): Promise<DeleteDomainPermissionsPolicyCommandOutput> | void {
|
|
627
|
-
const command = new DeleteDomainPermissionsPolicyCommand(args);
|
|
628
|
-
if (typeof optionsOrCb === "function") {
|
|
629
|
-
this.send(command, optionsOrCb);
|
|
630
|
-
} else if (typeof cb === "function") {
|
|
631
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
632
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
633
|
-
} else {
|
|
634
|
-
return this.send(command, optionsOrCb);
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* <p> Deletes one or more versions of a package. A deleted package version cannot be restored
|
|
640
|
-
* in your repository. If you want to remove a package version from your repository and be able
|
|
641
|
-
* to restore it later, set its status to <code>Archived</code>. Archived packages cannot be
|
|
642
|
-
* downloaded from a repository and don't show up with list package APIs (for example,
|
|
643
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListackageVersions</a>), but you can restore them using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionsStatus</a>. </p>
|
|
644
|
-
*/
|
|
645
|
-
public deletePackageVersions(
|
|
646
|
-
args: DeletePackageVersionsCommandInput,
|
|
647
|
-
options?: __HttpHandlerOptions
|
|
648
|
-
): Promise<DeletePackageVersionsCommandOutput>;
|
|
649
|
-
public deletePackageVersions(
|
|
650
|
-
args: DeletePackageVersionsCommandInput,
|
|
651
|
-
cb: (err: any, data?: DeletePackageVersionsCommandOutput) => void
|
|
652
|
-
): void;
|
|
653
|
-
public deletePackageVersions(
|
|
654
|
-
args: DeletePackageVersionsCommandInput,
|
|
655
|
-
options: __HttpHandlerOptions,
|
|
656
|
-
cb: (err: any, data?: DeletePackageVersionsCommandOutput) => void
|
|
657
|
-
): void;
|
|
658
|
-
public deletePackageVersions(
|
|
659
|
-
args: DeletePackageVersionsCommandInput,
|
|
660
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeletePackageVersionsCommandOutput) => void),
|
|
661
|
-
cb?: (err: any, data?: DeletePackageVersionsCommandOutput) => void
|
|
662
|
-
): Promise<DeletePackageVersionsCommandOutput> | void {
|
|
663
|
-
const command = new DeletePackageVersionsCommand(args);
|
|
664
|
-
if (typeof optionsOrCb === "function") {
|
|
665
|
-
this.send(command, optionsOrCb);
|
|
666
|
-
} else if (typeof cb === "function") {
|
|
667
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
668
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
669
|
-
} else {
|
|
670
|
-
return this.send(command, optionsOrCb);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* <p>
|
|
676
|
-
* Deletes a repository.
|
|
677
|
-
* </p>
|
|
678
|
-
*/
|
|
679
|
-
public deleteRepository(
|
|
680
|
-
args: DeleteRepositoryCommandInput,
|
|
681
|
-
options?: __HttpHandlerOptions
|
|
682
|
-
): Promise<DeleteRepositoryCommandOutput>;
|
|
683
|
-
public deleteRepository(
|
|
684
|
-
args: DeleteRepositoryCommandInput,
|
|
685
|
-
cb: (err: any, data?: DeleteRepositoryCommandOutput) => void
|
|
686
|
-
): void;
|
|
687
|
-
public deleteRepository(
|
|
688
|
-
args: DeleteRepositoryCommandInput,
|
|
689
|
-
options: __HttpHandlerOptions,
|
|
690
|
-
cb: (err: any, data?: DeleteRepositoryCommandOutput) => void
|
|
691
|
-
): void;
|
|
692
|
-
public deleteRepository(
|
|
693
|
-
args: DeleteRepositoryCommandInput,
|
|
694
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRepositoryCommandOutput) => void),
|
|
695
|
-
cb?: (err: any, data?: DeleteRepositoryCommandOutput) => void
|
|
696
|
-
): Promise<DeleteRepositoryCommandOutput> | void {
|
|
697
|
-
const command = new DeleteRepositoryCommand(args);
|
|
698
|
-
if (typeof optionsOrCb === "function") {
|
|
699
|
-
this.send(command, optionsOrCb);
|
|
700
|
-
} else if (typeof cb === "function") {
|
|
701
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
702
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
703
|
-
} else {
|
|
704
|
-
return this.send(command, optionsOrCb);
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* <p>
|
|
710
|
-
* Deletes the resource policy that is set on a repository. After a resource policy is deleted, the
|
|
711
|
-
* permissions allowed and denied by the deleted policy are removed. The effect of deleting a resource policy might not be immediate.
|
|
712
|
-
* </p>
|
|
713
|
-
* <important>
|
|
714
|
-
* <p>
|
|
715
|
-
* Use <code>DeleteRepositoryPermissionsPolicy</code> with caution. After a policy is deleted, AWS users, roles, and accounts lose permissions to perform
|
|
716
|
-
* the repository actions granted by the deleted policy.
|
|
717
|
-
* </p>
|
|
718
|
-
* </important>
|
|
719
|
-
*/
|
|
720
|
-
public deleteRepositoryPermissionsPolicy(
|
|
721
|
-
args: DeleteRepositoryPermissionsPolicyCommandInput,
|
|
722
|
-
options?: __HttpHandlerOptions
|
|
723
|
-
): Promise<DeleteRepositoryPermissionsPolicyCommandOutput>;
|
|
724
|
-
public deleteRepositoryPermissionsPolicy(
|
|
725
|
-
args: DeleteRepositoryPermissionsPolicyCommandInput,
|
|
726
|
-
cb: (err: any, data?: DeleteRepositoryPermissionsPolicyCommandOutput) => void
|
|
727
|
-
): void;
|
|
728
|
-
public deleteRepositoryPermissionsPolicy(
|
|
729
|
-
args: DeleteRepositoryPermissionsPolicyCommandInput,
|
|
730
|
-
options: __HttpHandlerOptions,
|
|
731
|
-
cb: (err: any, data?: DeleteRepositoryPermissionsPolicyCommandOutput) => void
|
|
732
|
-
): void;
|
|
733
|
-
public deleteRepositoryPermissionsPolicy(
|
|
734
|
-
args: DeleteRepositoryPermissionsPolicyCommandInput,
|
|
735
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRepositoryPermissionsPolicyCommandOutput) => void),
|
|
736
|
-
cb?: (err: any, data?: DeleteRepositoryPermissionsPolicyCommandOutput) => void
|
|
737
|
-
): Promise<DeleteRepositoryPermissionsPolicyCommandOutput> | void {
|
|
738
|
-
const command = new DeleteRepositoryPermissionsPolicyCommand(args);
|
|
739
|
-
if (typeof optionsOrCb === "function") {
|
|
740
|
-
this.send(command, optionsOrCb);
|
|
741
|
-
} else if (typeof cb === "function") {
|
|
742
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
743
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
744
|
-
} else {
|
|
745
|
-
return this.send(command, optionsOrCb);
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* <p>
|
|
751
|
-
* Returns a
|
|
752
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DomainDescription.html">DomainDescription</a>
|
|
753
|
-
* object that contains information about the requested domain.
|
|
754
|
-
* </p>
|
|
755
|
-
*/
|
|
756
|
-
public describeDomain(
|
|
757
|
-
args: DescribeDomainCommandInput,
|
|
758
|
-
options?: __HttpHandlerOptions
|
|
759
|
-
): Promise<DescribeDomainCommandOutput>;
|
|
760
|
-
public describeDomain(
|
|
761
|
-
args: DescribeDomainCommandInput,
|
|
762
|
-
cb: (err: any, data?: DescribeDomainCommandOutput) => void
|
|
763
|
-
): void;
|
|
764
|
-
public describeDomain(
|
|
765
|
-
args: DescribeDomainCommandInput,
|
|
766
|
-
options: __HttpHandlerOptions,
|
|
767
|
-
cb: (err: any, data?: DescribeDomainCommandOutput) => void
|
|
768
|
-
): void;
|
|
769
|
-
public describeDomain(
|
|
770
|
-
args: DescribeDomainCommandInput,
|
|
771
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeDomainCommandOutput) => void),
|
|
772
|
-
cb?: (err: any, data?: DescribeDomainCommandOutput) => void
|
|
773
|
-
): Promise<DescribeDomainCommandOutput> | void {
|
|
774
|
-
const command = new DescribeDomainCommand(args);
|
|
775
|
-
if (typeof optionsOrCb === "function") {
|
|
776
|
-
this.send(command, optionsOrCb);
|
|
777
|
-
} else if (typeof cb === "function") {
|
|
778
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
779
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
780
|
-
} else {
|
|
781
|
-
return this.send(command, optionsOrCb);
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* <p>
|
|
787
|
-
* Returns a
|
|
788
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html">PackageVersionDescription</a>
|
|
789
|
-
* object that contains information about the requested package version.
|
|
790
|
-
* </p>
|
|
791
|
-
*/
|
|
792
|
-
public describePackageVersion(
|
|
793
|
-
args: DescribePackageVersionCommandInput,
|
|
794
|
-
options?: __HttpHandlerOptions
|
|
795
|
-
): Promise<DescribePackageVersionCommandOutput>;
|
|
796
|
-
public describePackageVersion(
|
|
797
|
-
args: DescribePackageVersionCommandInput,
|
|
798
|
-
cb: (err: any, data?: DescribePackageVersionCommandOutput) => void
|
|
799
|
-
): void;
|
|
800
|
-
public describePackageVersion(
|
|
801
|
-
args: DescribePackageVersionCommandInput,
|
|
802
|
-
options: __HttpHandlerOptions,
|
|
803
|
-
cb: (err: any, data?: DescribePackageVersionCommandOutput) => void
|
|
804
|
-
): void;
|
|
805
|
-
public describePackageVersion(
|
|
806
|
-
args: DescribePackageVersionCommandInput,
|
|
807
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribePackageVersionCommandOutput) => void),
|
|
808
|
-
cb?: (err: any, data?: DescribePackageVersionCommandOutput) => void
|
|
809
|
-
): Promise<DescribePackageVersionCommandOutput> | void {
|
|
810
|
-
const command = new DescribePackageVersionCommand(args);
|
|
811
|
-
if (typeof optionsOrCb === "function") {
|
|
812
|
-
this.send(command, optionsOrCb);
|
|
813
|
-
} else if (typeof cb === "function") {
|
|
814
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
815
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
816
|
-
} else {
|
|
817
|
-
return this.send(command, optionsOrCb);
|
|
818
|
-
}
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
/**
|
|
822
|
-
* <p>
|
|
823
|
-
* Returns a <code>RepositoryDescription</code> object that contains detailed information
|
|
824
|
-
* about the requested repository.
|
|
825
|
-
* </p>
|
|
826
|
-
*/
|
|
827
|
-
public describeRepository(
|
|
828
|
-
args: DescribeRepositoryCommandInput,
|
|
829
|
-
options?: __HttpHandlerOptions
|
|
830
|
-
): Promise<DescribeRepositoryCommandOutput>;
|
|
831
|
-
public describeRepository(
|
|
832
|
-
args: DescribeRepositoryCommandInput,
|
|
833
|
-
cb: (err: any, data?: DescribeRepositoryCommandOutput) => void
|
|
834
|
-
): void;
|
|
835
|
-
public describeRepository(
|
|
836
|
-
args: DescribeRepositoryCommandInput,
|
|
837
|
-
options: __HttpHandlerOptions,
|
|
838
|
-
cb: (err: any, data?: DescribeRepositoryCommandOutput) => void
|
|
839
|
-
): void;
|
|
840
|
-
public describeRepository(
|
|
841
|
-
args: DescribeRepositoryCommandInput,
|
|
842
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeRepositoryCommandOutput) => void),
|
|
843
|
-
cb?: (err: any, data?: DescribeRepositoryCommandOutput) => void
|
|
844
|
-
): Promise<DescribeRepositoryCommandOutput> | void {
|
|
845
|
-
const command = new DescribeRepositoryCommand(args);
|
|
846
|
-
if (typeof optionsOrCb === "function") {
|
|
847
|
-
this.send(command, optionsOrCb);
|
|
848
|
-
} else if (typeof cb === "function") {
|
|
849
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
850
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
851
|
-
} else {
|
|
852
|
-
return this.send(command, optionsOrCb);
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* <p>
|
|
858
|
-
* Removes an existing external connection from a repository.
|
|
859
|
-
* </p>
|
|
860
|
-
*/
|
|
861
|
-
public disassociateExternalConnection(
|
|
862
|
-
args: DisassociateExternalConnectionCommandInput,
|
|
863
|
-
options?: __HttpHandlerOptions
|
|
864
|
-
): Promise<DisassociateExternalConnectionCommandOutput>;
|
|
865
|
-
public disassociateExternalConnection(
|
|
866
|
-
args: DisassociateExternalConnectionCommandInput,
|
|
867
|
-
cb: (err: any, data?: DisassociateExternalConnectionCommandOutput) => void
|
|
868
|
-
): void;
|
|
869
|
-
public disassociateExternalConnection(
|
|
870
|
-
args: DisassociateExternalConnectionCommandInput,
|
|
871
|
-
options: __HttpHandlerOptions,
|
|
872
|
-
cb: (err: any, data?: DisassociateExternalConnectionCommandOutput) => void
|
|
873
|
-
): void;
|
|
874
|
-
public disassociateExternalConnection(
|
|
875
|
-
args: DisassociateExternalConnectionCommandInput,
|
|
876
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisassociateExternalConnectionCommandOutput) => void),
|
|
877
|
-
cb?: (err: any, data?: DisassociateExternalConnectionCommandOutput) => void
|
|
878
|
-
): Promise<DisassociateExternalConnectionCommandOutput> | void {
|
|
879
|
-
const command = new DisassociateExternalConnectionCommand(args);
|
|
880
|
-
if (typeof optionsOrCb === "function") {
|
|
881
|
-
this.send(command, optionsOrCb);
|
|
882
|
-
} else if (typeof cb === "function") {
|
|
883
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
884
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
885
|
-
} else {
|
|
886
|
-
return this.send(command, optionsOrCb);
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* <p>
|
|
892
|
-
* Deletes the assets in package versions and sets the package versions' status to <code>Disposed</code>.
|
|
893
|
-
* A disposed package version cannot be restored in your repository because its assets are deleted.
|
|
894
|
-
* </p>
|
|
895
|
-
*
|
|
896
|
-
* <p>
|
|
897
|
-
* To view all disposed package versions in a repository, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a> and set the
|
|
898
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax">status</a> parameter
|
|
899
|
-
* to <code>Disposed</code>.
|
|
900
|
-
* </p>
|
|
901
|
-
*
|
|
902
|
-
* <p>
|
|
903
|
-
* To view information about a disposed package version, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html">DescribePackageVersion</a>.
|
|
904
|
-
* </p>
|
|
905
|
-
*/
|
|
906
|
-
public disposePackageVersions(
|
|
907
|
-
args: DisposePackageVersionsCommandInput,
|
|
908
|
-
options?: __HttpHandlerOptions
|
|
909
|
-
): Promise<DisposePackageVersionsCommandOutput>;
|
|
910
|
-
public disposePackageVersions(
|
|
911
|
-
args: DisposePackageVersionsCommandInput,
|
|
912
|
-
cb: (err: any, data?: DisposePackageVersionsCommandOutput) => void
|
|
913
|
-
): void;
|
|
914
|
-
public disposePackageVersions(
|
|
915
|
-
args: DisposePackageVersionsCommandInput,
|
|
916
|
-
options: __HttpHandlerOptions,
|
|
917
|
-
cb: (err: any, data?: DisposePackageVersionsCommandOutput) => void
|
|
918
|
-
): void;
|
|
919
|
-
public disposePackageVersions(
|
|
920
|
-
args: DisposePackageVersionsCommandInput,
|
|
921
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DisposePackageVersionsCommandOutput) => void),
|
|
922
|
-
cb?: (err: any, data?: DisposePackageVersionsCommandOutput) => void
|
|
923
|
-
): Promise<DisposePackageVersionsCommandOutput> | void {
|
|
924
|
-
const command = new DisposePackageVersionsCommand(args);
|
|
925
|
-
if (typeof optionsOrCb === "function") {
|
|
926
|
-
this.send(command, optionsOrCb);
|
|
927
|
-
} else if (typeof cb === "function") {
|
|
928
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
929
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
930
|
-
} else {
|
|
931
|
-
return this.send(command, optionsOrCb);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* <p>
|
|
937
|
-
* Generates a temporary authorization token for accessing repositories in the domain.
|
|
938
|
-
* This API requires the <code>codeartifact:GetAuthorizationToken</code> and <code>sts:GetServiceBearerToken</code> permissions.
|
|
939
|
-
* For more information about authorization tokens, see
|
|
940
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html">AWS CodeArtifact authentication and tokens</a>.
|
|
941
|
-
* </p>
|
|
942
|
-
* <note>
|
|
943
|
-
* <p>CodeArtifact authorization tokens are valid for a period of 12 hours when created with the <code>login</code> command.
|
|
944
|
-
* You can call <code>login</code> periodically to refresh the token. When
|
|
945
|
-
* you create an authorization token with the <code>GetAuthorizationToken</code> API, you can set a custom authorization period,
|
|
946
|
-
* up to a maximum of 12 hours, with the <code>durationSeconds</code> parameter.</p>
|
|
947
|
-
* <p>The authorization period begins after <code>login</code>
|
|
948
|
-
* or <code>GetAuthorizationToken</code> is called. If <code>login</code> or <code>GetAuthorizationToken</code> is called while
|
|
949
|
-
* assuming a role, the token lifetime is independent of the maximum session duration
|
|
950
|
-
* of the role. For example, if you call <code>sts assume-role</code> and specify a session duration of 15 minutes, then
|
|
951
|
-
* generate a CodeArtifact authorization token, the token will be valid for the full authorization period
|
|
952
|
-
* even though this is longer than the 15-minute session duration.</p>
|
|
953
|
-
* <p>See
|
|
954
|
-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html">Using IAM Roles</a>
|
|
955
|
-
* for more information on controlling session duration. </p>
|
|
956
|
-
* </note>
|
|
957
|
-
*/
|
|
958
|
-
public getAuthorizationToken(
|
|
959
|
-
args: GetAuthorizationTokenCommandInput,
|
|
960
|
-
options?: __HttpHandlerOptions
|
|
961
|
-
): Promise<GetAuthorizationTokenCommandOutput>;
|
|
962
|
-
public getAuthorizationToken(
|
|
963
|
-
args: GetAuthorizationTokenCommandInput,
|
|
964
|
-
cb: (err: any, data?: GetAuthorizationTokenCommandOutput) => void
|
|
965
|
-
): void;
|
|
966
|
-
public getAuthorizationToken(
|
|
967
|
-
args: GetAuthorizationTokenCommandInput,
|
|
968
|
-
options: __HttpHandlerOptions,
|
|
969
|
-
cb: (err: any, data?: GetAuthorizationTokenCommandOutput) => void
|
|
970
|
-
): void;
|
|
971
|
-
public getAuthorizationToken(
|
|
972
|
-
args: GetAuthorizationTokenCommandInput,
|
|
973
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAuthorizationTokenCommandOutput) => void),
|
|
974
|
-
cb?: (err: any, data?: GetAuthorizationTokenCommandOutput) => void
|
|
975
|
-
): Promise<GetAuthorizationTokenCommandOutput> | void {
|
|
976
|
-
const command = new GetAuthorizationTokenCommand(args);
|
|
977
|
-
if (typeof optionsOrCb === "function") {
|
|
978
|
-
this.send(command, optionsOrCb);
|
|
979
|
-
} else if (typeof cb === "function") {
|
|
980
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
981
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
982
|
-
} else {
|
|
983
|
-
return this.send(command, optionsOrCb);
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* <p>
|
|
989
|
-
* Returns the resource policy attached to the specified domain.
|
|
990
|
-
* </p>
|
|
991
|
-
* <note>
|
|
992
|
-
* <p>
|
|
993
|
-
* The policy is a resource-based policy, not an identity-based policy. For more information, see
|
|
994
|
-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html">Identity-based policies
|
|
995
|
-
* and resource-based policies </a> in the <i>AWS Identity and Access Management User Guide</i>.
|
|
996
|
-
* </p>
|
|
997
|
-
* </note>
|
|
998
|
-
*/
|
|
999
|
-
public getDomainPermissionsPolicy(
|
|
1000
|
-
args: GetDomainPermissionsPolicyCommandInput,
|
|
1001
|
-
options?: __HttpHandlerOptions
|
|
1002
|
-
): Promise<GetDomainPermissionsPolicyCommandOutput>;
|
|
1003
|
-
public getDomainPermissionsPolicy(
|
|
1004
|
-
args: GetDomainPermissionsPolicyCommandInput,
|
|
1005
|
-
cb: (err: any, data?: GetDomainPermissionsPolicyCommandOutput) => void
|
|
1006
|
-
): void;
|
|
1007
|
-
public getDomainPermissionsPolicy(
|
|
1008
|
-
args: GetDomainPermissionsPolicyCommandInput,
|
|
1009
|
-
options: __HttpHandlerOptions,
|
|
1010
|
-
cb: (err: any, data?: GetDomainPermissionsPolicyCommandOutput) => void
|
|
1011
|
-
): void;
|
|
1012
|
-
public getDomainPermissionsPolicy(
|
|
1013
|
-
args: GetDomainPermissionsPolicyCommandInput,
|
|
1014
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDomainPermissionsPolicyCommandOutput) => void),
|
|
1015
|
-
cb?: (err: any, data?: GetDomainPermissionsPolicyCommandOutput) => void
|
|
1016
|
-
): Promise<GetDomainPermissionsPolicyCommandOutput> | void {
|
|
1017
|
-
const command = new GetDomainPermissionsPolicyCommand(args);
|
|
1018
|
-
if (typeof optionsOrCb === "function") {
|
|
1019
|
-
this.send(command, optionsOrCb);
|
|
1020
|
-
} else if (typeof cb === "function") {
|
|
1021
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1022
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1023
|
-
} else {
|
|
1024
|
-
return this.send(command, optionsOrCb);
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
/**
|
|
1029
|
-
* <p>
|
|
1030
|
-
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use
|
|
1031
|
-
* <code>GetPackageVersionAsset</code> to download a <code>JAR</code> file, a <code>POM</code> file,
|
|
1032
|
-
* or any other assets in the package version.
|
|
1033
|
-
* </p>
|
|
1034
|
-
*/
|
|
1035
|
-
public getPackageVersionAsset(
|
|
1036
|
-
args: GetPackageVersionAssetCommandInput,
|
|
1037
|
-
options?: __HttpHandlerOptions
|
|
1038
|
-
): Promise<GetPackageVersionAssetCommandOutput>;
|
|
1039
|
-
public getPackageVersionAsset(
|
|
1040
|
-
args: GetPackageVersionAssetCommandInput,
|
|
1041
|
-
cb: (err: any, data?: GetPackageVersionAssetCommandOutput) => void
|
|
1042
|
-
): void;
|
|
1043
|
-
public getPackageVersionAsset(
|
|
1044
|
-
args: GetPackageVersionAssetCommandInput,
|
|
1045
|
-
options: __HttpHandlerOptions,
|
|
1046
|
-
cb: (err: any, data?: GetPackageVersionAssetCommandOutput) => void
|
|
1047
|
-
): void;
|
|
1048
|
-
public getPackageVersionAsset(
|
|
1049
|
-
args: GetPackageVersionAssetCommandInput,
|
|
1050
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPackageVersionAssetCommandOutput) => void),
|
|
1051
|
-
cb?: (err: any, data?: GetPackageVersionAssetCommandOutput) => void
|
|
1052
|
-
): Promise<GetPackageVersionAssetCommandOutput> | void {
|
|
1053
|
-
const command = new GetPackageVersionAssetCommand(args);
|
|
1054
|
-
if (typeof optionsOrCb === "function") {
|
|
1055
|
-
this.send(command, optionsOrCb);
|
|
1056
|
-
} else if (typeof cb === "function") {
|
|
1057
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1058
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1059
|
-
} else {
|
|
1060
|
-
return this.send(command, optionsOrCb);
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
/**
|
|
1065
|
-
* <p>
|
|
1066
|
-
* Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact
|
|
1067
|
-
* extracts a description from a metadata file. For example, from the <code><description></code> element in the
|
|
1068
|
-
* <code>pom.xml</code> file of a Maven package.
|
|
1069
|
-
* </p>
|
|
1070
|
-
* <p>
|
|
1071
|
-
* The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
|
|
1072
|
-
* </p>
|
|
1073
|
-
*/
|
|
1074
|
-
public getPackageVersionReadme(
|
|
1075
|
-
args: GetPackageVersionReadmeCommandInput,
|
|
1076
|
-
options?: __HttpHandlerOptions
|
|
1077
|
-
): Promise<GetPackageVersionReadmeCommandOutput>;
|
|
1078
|
-
public getPackageVersionReadme(
|
|
1079
|
-
args: GetPackageVersionReadmeCommandInput,
|
|
1080
|
-
cb: (err: any, data?: GetPackageVersionReadmeCommandOutput) => void
|
|
1081
|
-
): void;
|
|
1082
|
-
public getPackageVersionReadme(
|
|
1083
|
-
args: GetPackageVersionReadmeCommandInput,
|
|
1084
|
-
options: __HttpHandlerOptions,
|
|
1085
|
-
cb: (err: any, data?: GetPackageVersionReadmeCommandOutput) => void
|
|
1086
|
-
): void;
|
|
1087
|
-
public getPackageVersionReadme(
|
|
1088
|
-
args: GetPackageVersionReadmeCommandInput,
|
|
1089
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetPackageVersionReadmeCommandOutput) => void),
|
|
1090
|
-
cb?: (err: any, data?: GetPackageVersionReadmeCommandOutput) => void
|
|
1091
|
-
): Promise<GetPackageVersionReadmeCommandOutput> | void {
|
|
1092
|
-
const command = new GetPackageVersionReadmeCommand(args);
|
|
1093
|
-
if (typeof optionsOrCb === "function") {
|
|
1094
|
-
this.send(command, optionsOrCb);
|
|
1095
|
-
} else if (typeof cb === "function") {
|
|
1096
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1097
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1098
|
-
} else {
|
|
1099
|
-
return this.send(command, optionsOrCb);
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* <p>
|
|
1105
|
-
* Returns the endpoint of a repository for a specific package format. A repository has one endpoint for each
|
|
1106
|
-
* package format:
|
|
1107
|
-
* </p>
|
|
1108
|
-
* <ul>
|
|
1109
|
-
* <li>
|
|
1110
|
-
* <p>
|
|
1111
|
-
* <code>npm</code>
|
|
1112
|
-
* </p>
|
|
1113
|
-
* </li>
|
|
1114
|
-
* <li>
|
|
1115
|
-
* <p>
|
|
1116
|
-
* <code>pypi</code>
|
|
1117
|
-
* </p>
|
|
1118
|
-
* </li>
|
|
1119
|
-
* <li>
|
|
1120
|
-
* <p>
|
|
1121
|
-
* <code>maven</code>
|
|
1122
|
-
* </p>
|
|
1123
|
-
* </li>
|
|
1124
|
-
* </ul>
|
|
1125
|
-
*/
|
|
1126
|
-
public getRepositoryEndpoint(
|
|
1127
|
-
args: GetRepositoryEndpointCommandInput,
|
|
1128
|
-
options?: __HttpHandlerOptions
|
|
1129
|
-
): Promise<GetRepositoryEndpointCommandOutput>;
|
|
1130
|
-
public getRepositoryEndpoint(
|
|
1131
|
-
args: GetRepositoryEndpointCommandInput,
|
|
1132
|
-
cb: (err: any, data?: GetRepositoryEndpointCommandOutput) => void
|
|
1133
|
-
): void;
|
|
1134
|
-
public getRepositoryEndpoint(
|
|
1135
|
-
args: GetRepositoryEndpointCommandInput,
|
|
1136
|
-
options: __HttpHandlerOptions,
|
|
1137
|
-
cb: (err: any, data?: GetRepositoryEndpointCommandOutput) => void
|
|
1138
|
-
): void;
|
|
1139
|
-
public getRepositoryEndpoint(
|
|
1140
|
-
args: GetRepositoryEndpointCommandInput,
|
|
1141
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRepositoryEndpointCommandOutput) => void),
|
|
1142
|
-
cb?: (err: any, data?: GetRepositoryEndpointCommandOutput) => void
|
|
1143
|
-
): Promise<GetRepositoryEndpointCommandOutput> | void {
|
|
1144
|
-
const command = new GetRepositoryEndpointCommand(args);
|
|
1145
|
-
if (typeof optionsOrCb === "function") {
|
|
1146
|
-
this.send(command, optionsOrCb);
|
|
1147
|
-
} else if (typeof cb === "function") {
|
|
1148
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1150
|
-
} else {
|
|
1151
|
-
return this.send(command, optionsOrCb);
|
|
1152
|
-
}
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* <p>
|
|
1157
|
-
* Returns the resource policy that is set on a repository.
|
|
1158
|
-
* </p>
|
|
1159
|
-
*/
|
|
1160
|
-
public getRepositoryPermissionsPolicy(
|
|
1161
|
-
args: GetRepositoryPermissionsPolicyCommandInput,
|
|
1162
|
-
options?: __HttpHandlerOptions
|
|
1163
|
-
): Promise<GetRepositoryPermissionsPolicyCommandOutput>;
|
|
1164
|
-
public getRepositoryPermissionsPolicy(
|
|
1165
|
-
args: GetRepositoryPermissionsPolicyCommandInput,
|
|
1166
|
-
cb: (err: any, data?: GetRepositoryPermissionsPolicyCommandOutput) => void
|
|
1167
|
-
): void;
|
|
1168
|
-
public getRepositoryPermissionsPolicy(
|
|
1169
|
-
args: GetRepositoryPermissionsPolicyCommandInput,
|
|
1170
|
-
options: __HttpHandlerOptions,
|
|
1171
|
-
cb: (err: any, data?: GetRepositoryPermissionsPolicyCommandOutput) => void
|
|
1172
|
-
): void;
|
|
1173
|
-
public getRepositoryPermissionsPolicy(
|
|
1174
|
-
args: GetRepositoryPermissionsPolicyCommandInput,
|
|
1175
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRepositoryPermissionsPolicyCommandOutput) => void),
|
|
1176
|
-
cb?: (err: any, data?: GetRepositoryPermissionsPolicyCommandOutput) => void
|
|
1177
|
-
): Promise<GetRepositoryPermissionsPolicyCommandOutput> | void {
|
|
1178
|
-
const command = new GetRepositoryPermissionsPolicyCommand(args);
|
|
1179
|
-
if (typeof optionsOrCb === "function") {
|
|
1180
|
-
this.send(command, optionsOrCb);
|
|
1181
|
-
} else if (typeof cb === "function") {
|
|
1182
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1183
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1184
|
-
} else {
|
|
1185
|
-
return this.send(command, optionsOrCb);
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* <p> Returns a list of <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionDescription.html">DomainSummary</a> objects for all domains owned by the AWS account that makes
|
|
1191
|
-
* this call. Each returned <code>DomainSummary</code> object contains information about a
|
|
1192
|
-
* domain. </p>
|
|
1193
|
-
*/
|
|
1194
|
-
public listDomains(args: ListDomainsCommandInput, options?: __HttpHandlerOptions): Promise<ListDomainsCommandOutput>;
|
|
1195
|
-
public listDomains(args: ListDomainsCommandInput, cb: (err: any, data?: ListDomainsCommandOutput) => void): void;
|
|
1196
|
-
public listDomains(
|
|
1197
|
-
args: ListDomainsCommandInput,
|
|
1198
|
-
options: __HttpHandlerOptions,
|
|
1199
|
-
cb: (err: any, data?: ListDomainsCommandOutput) => void
|
|
1200
|
-
): void;
|
|
1201
|
-
public listDomains(
|
|
1202
|
-
args: ListDomainsCommandInput,
|
|
1203
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDomainsCommandOutput) => void),
|
|
1204
|
-
cb?: (err: any, data?: ListDomainsCommandOutput) => void
|
|
1205
|
-
): Promise<ListDomainsCommandOutput> | void {
|
|
1206
|
-
const command = new ListDomainsCommand(args);
|
|
1207
|
-
if (typeof optionsOrCb === "function") {
|
|
1208
|
-
this.send(command, optionsOrCb);
|
|
1209
|
-
} else if (typeof cb === "function") {
|
|
1210
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1211
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1212
|
-
} else {
|
|
1213
|
-
return this.send(command, optionsOrCb);
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
/**
|
|
1218
|
-
* <p>
|
|
1219
|
-
* Returns a list of
|
|
1220
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageSummary.html">PackageSummary</a>
|
|
1221
|
-
* objects for packages in a repository that match the request parameters.
|
|
1222
|
-
* </p>
|
|
1223
|
-
*/
|
|
1224
|
-
public listPackages(
|
|
1225
|
-
args: ListPackagesCommandInput,
|
|
1226
|
-
options?: __HttpHandlerOptions
|
|
1227
|
-
): Promise<ListPackagesCommandOutput>;
|
|
1228
|
-
public listPackages(args: ListPackagesCommandInput, cb: (err: any, data?: ListPackagesCommandOutput) => void): void;
|
|
1229
|
-
public listPackages(
|
|
1230
|
-
args: ListPackagesCommandInput,
|
|
1231
|
-
options: __HttpHandlerOptions,
|
|
1232
|
-
cb: (err: any, data?: ListPackagesCommandOutput) => void
|
|
1233
|
-
): void;
|
|
1234
|
-
public listPackages(
|
|
1235
|
-
args: ListPackagesCommandInput,
|
|
1236
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPackagesCommandOutput) => void),
|
|
1237
|
-
cb?: (err: any, data?: ListPackagesCommandOutput) => void
|
|
1238
|
-
): Promise<ListPackagesCommandOutput> | void {
|
|
1239
|
-
const command = new ListPackagesCommand(args);
|
|
1240
|
-
if (typeof optionsOrCb === "function") {
|
|
1241
|
-
this.send(command, optionsOrCb);
|
|
1242
|
-
} else if (typeof cb === "function") {
|
|
1243
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1244
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1245
|
-
} else {
|
|
1246
|
-
return this.send(command, optionsOrCb);
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
/**
|
|
1251
|
-
* <p>
|
|
1252
|
-
* Returns a list of
|
|
1253
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_AssetSummary.html">AssetSummary</a>
|
|
1254
|
-
* objects for assets in a package version.
|
|
1255
|
-
* </p>
|
|
1256
|
-
*/
|
|
1257
|
-
public listPackageVersionAssets(
|
|
1258
|
-
args: ListPackageVersionAssetsCommandInput,
|
|
1259
|
-
options?: __HttpHandlerOptions
|
|
1260
|
-
): Promise<ListPackageVersionAssetsCommandOutput>;
|
|
1261
|
-
public listPackageVersionAssets(
|
|
1262
|
-
args: ListPackageVersionAssetsCommandInput,
|
|
1263
|
-
cb: (err: any, data?: ListPackageVersionAssetsCommandOutput) => void
|
|
1264
|
-
): void;
|
|
1265
|
-
public listPackageVersionAssets(
|
|
1266
|
-
args: ListPackageVersionAssetsCommandInput,
|
|
1267
|
-
options: __HttpHandlerOptions,
|
|
1268
|
-
cb: (err: any, data?: ListPackageVersionAssetsCommandOutput) => void
|
|
1269
|
-
): void;
|
|
1270
|
-
public listPackageVersionAssets(
|
|
1271
|
-
args: ListPackageVersionAssetsCommandInput,
|
|
1272
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPackageVersionAssetsCommandOutput) => void),
|
|
1273
|
-
cb?: (err: any, data?: ListPackageVersionAssetsCommandOutput) => void
|
|
1274
|
-
): Promise<ListPackageVersionAssetsCommandOutput> | void {
|
|
1275
|
-
const command = new ListPackageVersionAssetsCommand(args);
|
|
1276
|
-
if (typeof optionsOrCb === "function") {
|
|
1277
|
-
this.send(command, optionsOrCb);
|
|
1278
|
-
} else if (typeof cb === "function") {
|
|
1279
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1280
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1281
|
-
} else {
|
|
1282
|
-
return this.send(command, optionsOrCb);
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
/**
|
|
1287
|
-
* <p>
|
|
1288
|
-
* Returns the direct dependencies for a package version. The dependencies are returned as
|
|
1289
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html">PackageDependency</a>
|
|
1290
|
-
* objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package
|
|
1291
|
-
* format (for example, the <code>package.json</code> file for npm packages and the <code>pom.xml</code> file
|
|
1292
|
-
* for Maven). Any package version dependencies that are not listed in the configuration file are not returned.
|
|
1293
|
-
* </p>
|
|
1294
|
-
*/
|
|
1295
|
-
public listPackageVersionDependencies(
|
|
1296
|
-
args: ListPackageVersionDependenciesCommandInput,
|
|
1297
|
-
options?: __HttpHandlerOptions
|
|
1298
|
-
): Promise<ListPackageVersionDependenciesCommandOutput>;
|
|
1299
|
-
public listPackageVersionDependencies(
|
|
1300
|
-
args: ListPackageVersionDependenciesCommandInput,
|
|
1301
|
-
cb: (err: any, data?: ListPackageVersionDependenciesCommandOutput) => void
|
|
1302
|
-
): void;
|
|
1303
|
-
public listPackageVersionDependencies(
|
|
1304
|
-
args: ListPackageVersionDependenciesCommandInput,
|
|
1305
|
-
options: __HttpHandlerOptions,
|
|
1306
|
-
cb: (err: any, data?: ListPackageVersionDependenciesCommandOutput) => void
|
|
1307
|
-
): void;
|
|
1308
|
-
public listPackageVersionDependencies(
|
|
1309
|
-
args: ListPackageVersionDependenciesCommandInput,
|
|
1310
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPackageVersionDependenciesCommandOutput) => void),
|
|
1311
|
-
cb?: (err: any, data?: ListPackageVersionDependenciesCommandOutput) => void
|
|
1312
|
-
): Promise<ListPackageVersionDependenciesCommandOutput> | void {
|
|
1313
|
-
const command = new ListPackageVersionDependenciesCommand(args);
|
|
1314
|
-
if (typeof optionsOrCb === "function") {
|
|
1315
|
-
this.send(command, optionsOrCb);
|
|
1316
|
-
} else if (typeof cb === "function") {
|
|
1317
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1318
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1319
|
-
} else {
|
|
1320
|
-
return this.send(command, optionsOrCb);
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* <p>
|
|
1326
|
-
* Returns a list of
|
|
1327
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html">PackageVersionSummary</a>
|
|
1328
|
-
* objects for package versions in a repository that match the request parameters.
|
|
1329
|
-
* </p>
|
|
1330
|
-
*/
|
|
1331
|
-
public listPackageVersions(
|
|
1332
|
-
args: ListPackageVersionsCommandInput,
|
|
1333
|
-
options?: __HttpHandlerOptions
|
|
1334
|
-
): Promise<ListPackageVersionsCommandOutput>;
|
|
1335
|
-
public listPackageVersions(
|
|
1336
|
-
args: ListPackageVersionsCommandInput,
|
|
1337
|
-
cb: (err: any, data?: ListPackageVersionsCommandOutput) => void
|
|
1338
|
-
): void;
|
|
1339
|
-
public listPackageVersions(
|
|
1340
|
-
args: ListPackageVersionsCommandInput,
|
|
1341
|
-
options: __HttpHandlerOptions,
|
|
1342
|
-
cb: (err: any, data?: ListPackageVersionsCommandOutput) => void
|
|
1343
|
-
): void;
|
|
1344
|
-
public listPackageVersions(
|
|
1345
|
-
args: ListPackageVersionsCommandInput,
|
|
1346
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListPackageVersionsCommandOutput) => void),
|
|
1347
|
-
cb?: (err: any, data?: ListPackageVersionsCommandOutput) => void
|
|
1348
|
-
): Promise<ListPackageVersionsCommandOutput> | void {
|
|
1349
|
-
const command = new ListPackageVersionsCommand(args);
|
|
1350
|
-
if (typeof optionsOrCb === "function") {
|
|
1351
|
-
this.send(command, optionsOrCb);
|
|
1352
|
-
} else if (typeof cb === "function") {
|
|
1353
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1354
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1355
|
-
} else {
|
|
1356
|
-
return this.send(command, optionsOrCb);
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
/**
|
|
1361
|
-
* <p>
|
|
1362
|
-
* Returns a list of
|
|
1363
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html">RepositorySummary</a>
|
|
1364
|
-
* objects. Each <code>RepositorySummary</code> contains information about a repository in the specified AWS account and that matches the input
|
|
1365
|
-
* parameters.
|
|
1366
|
-
* </p>
|
|
1367
|
-
*/
|
|
1368
|
-
public listRepositories(
|
|
1369
|
-
args: ListRepositoriesCommandInput,
|
|
1370
|
-
options?: __HttpHandlerOptions
|
|
1371
|
-
): Promise<ListRepositoriesCommandOutput>;
|
|
1372
|
-
public listRepositories(
|
|
1373
|
-
args: ListRepositoriesCommandInput,
|
|
1374
|
-
cb: (err: any, data?: ListRepositoriesCommandOutput) => void
|
|
1375
|
-
): void;
|
|
1376
|
-
public listRepositories(
|
|
1377
|
-
args: ListRepositoriesCommandInput,
|
|
1378
|
-
options: __HttpHandlerOptions,
|
|
1379
|
-
cb: (err: any, data?: ListRepositoriesCommandOutput) => void
|
|
1380
|
-
): void;
|
|
1381
|
-
public listRepositories(
|
|
1382
|
-
args: ListRepositoriesCommandInput,
|
|
1383
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListRepositoriesCommandOutput) => void),
|
|
1384
|
-
cb?: (err: any, data?: ListRepositoriesCommandOutput) => void
|
|
1385
|
-
): Promise<ListRepositoriesCommandOutput> | void {
|
|
1386
|
-
const command = new ListRepositoriesCommand(args);
|
|
1387
|
-
if (typeof optionsOrCb === "function") {
|
|
1388
|
-
this.send(command, optionsOrCb);
|
|
1389
|
-
} else if (typeof cb === "function") {
|
|
1390
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1391
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1392
|
-
} else {
|
|
1393
|
-
return this.send(command, optionsOrCb);
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
/**
|
|
1398
|
-
* <p>
|
|
1399
|
-
* Returns a list of
|
|
1400
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_RepositorySummary.html">RepositorySummary</a>
|
|
1401
|
-
* objects. Each <code>RepositorySummary</code> contains information about a repository in the specified domain and that matches the input
|
|
1402
|
-
* parameters.
|
|
1403
|
-
* </p>
|
|
1404
|
-
*/
|
|
1405
|
-
public listRepositoriesInDomain(
|
|
1406
|
-
args: ListRepositoriesInDomainCommandInput,
|
|
1407
|
-
options?: __HttpHandlerOptions
|
|
1408
|
-
): Promise<ListRepositoriesInDomainCommandOutput>;
|
|
1409
|
-
public listRepositoriesInDomain(
|
|
1410
|
-
args: ListRepositoriesInDomainCommandInput,
|
|
1411
|
-
cb: (err: any, data?: ListRepositoriesInDomainCommandOutput) => void
|
|
1412
|
-
): void;
|
|
1413
|
-
public listRepositoriesInDomain(
|
|
1414
|
-
args: ListRepositoriesInDomainCommandInput,
|
|
1415
|
-
options: __HttpHandlerOptions,
|
|
1416
|
-
cb: (err: any, data?: ListRepositoriesInDomainCommandOutput) => void
|
|
1417
|
-
): void;
|
|
1418
|
-
public listRepositoriesInDomain(
|
|
1419
|
-
args: ListRepositoriesInDomainCommandInput,
|
|
1420
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListRepositoriesInDomainCommandOutput) => void),
|
|
1421
|
-
cb?: (err: any, data?: ListRepositoriesInDomainCommandOutput) => void
|
|
1422
|
-
): Promise<ListRepositoriesInDomainCommandOutput> | void {
|
|
1423
|
-
const command = new ListRepositoriesInDomainCommand(args);
|
|
1424
|
-
if (typeof optionsOrCb === "function") {
|
|
1425
|
-
this.send(command, optionsOrCb);
|
|
1426
|
-
} else if (typeof cb === "function") {
|
|
1427
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1428
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1429
|
-
} else {
|
|
1430
|
-
return this.send(command, optionsOrCb);
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
/**
|
|
1435
|
-
* <p>Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact.</p>
|
|
1436
|
-
*/
|
|
1437
|
-
public listTagsForResource(
|
|
1438
|
-
args: ListTagsForResourceCommandInput,
|
|
1439
|
-
options?: __HttpHandlerOptions
|
|
1440
|
-
): Promise<ListTagsForResourceCommandOutput>;
|
|
1441
|
-
public listTagsForResource(
|
|
1442
|
-
args: ListTagsForResourceCommandInput,
|
|
1443
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
1444
|
-
): void;
|
|
1445
|
-
public listTagsForResource(
|
|
1446
|
-
args: ListTagsForResourceCommandInput,
|
|
1447
|
-
options: __HttpHandlerOptions,
|
|
1448
|
-
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
1449
|
-
): void;
|
|
1450
|
-
public listTagsForResource(
|
|
1451
|
-
args: ListTagsForResourceCommandInput,
|
|
1452
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
|
|
1453
|
-
cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
|
|
1454
|
-
): Promise<ListTagsForResourceCommandOutput> | void {
|
|
1455
|
-
const command = new ListTagsForResourceCommand(args);
|
|
1456
|
-
if (typeof optionsOrCb === "function") {
|
|
1457
|
-
this.send(command, optionsOrCb);
|
|
1458
|
-
} else if (typeof cb === "function") {
|
|
1459
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1460
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1461
|
-
} else {
|
|
1462
|
-
return this.send(command, optionsOrCb);
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
* <p>
|
|
1468
|
-
* Sets a resource policy on a domain that specifies permissions to access it.
|
|
1469
|
-
* </p>
|
|
1470
|
-
* <p>
|
|
1471
|
-
* When you call <code>PutDomainPermissionsPolicy</code>, the resource policy on the domain is ignored when evaluting permissions.
|
|
1472
|
-
* This ensures that the owner of a domain cannot lock themselves out of the domain, which would prevent them from being
|
|
1473
|
-
* able to update the resource policy.
|
|
1474
|
-
* </p>
|
|
1475
|
-
*/
|
|
1476
|
-
public putDomainPermissionsPolicy(
|
|
1477
|
-
args: PutDomainPermissionsPolicyCommandInput,
|
|
1478
|
-
options?: __HttpHandlerOptions
|
|
1479
|
-
): Promise<PutDomainPermissionsPolicyCommandOutput>;
|
|
1480
|
-
public putDomainPermissionsPolicy(
|
|
1481
|
-
args: PutDomainPermissionsPolicyCommandInput,
|
|
1482
|
-
cb: (err: any, data?: PutDomainPermissionsPolicyCommandOutput) => void
|
|
1483
|
-
): void;
|
|
1484
|
-
public putDomainPermissionsPolicy(
|
|
1485
|
-
args: PutDomainPermissionsPolicyCommandInput,
|
|
1486
|
-
options: __HttpHandlerOptions,
|
|
1487
|
-
cb: (err: any, data?: PutDomainPermissionsPolicyCommandOutput) => void
|
|
1488
|
-
): void;
|
|
1489
|
-
public putDomainPermissionsPolicy(
|
|
1490
|
-
args: PutDomainPermissionsPolicyCommandInput,
|
|
1491
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutDomainPermissionsPolicyCommandOutput) => void),
|
|
1492
|
-
cb?: (err: any, data?: PutDomainPermissionsPolicyCommandOutput) => void
|
|
1493
|
-
): Promise<PutDomainPermissionsPolicyCommandOutput> | void {
|
|
1494
|
-
const command = new PutDomainPermissionsPolicyCommand(args);
|
|
1495
|
-
if (typeof optionsOrCb === "function") {
|
|
1496
|
-
this.send(command, optionsOrCb);
|
|
1497
|
-
} else if (typeof cb === "function") {
|
|
1498
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1499
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1500
|
-
} else {
|
|
1501
|
-
return this.send(command, optionsOrCb);
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
/**
|
|
1506
|
-
* <p>
|
|
1507
|
-
* Sets the resource policy on a repository that specifies permissions to access it.
|
|
1508
|
-
* </p>
|
|
1509
|
-
* <p>
|
|
1510
|
-
* When you call <code>PutRepositoryPermissionsPolicy</code>, the resource policy on the repository is ignored when evaluting permissions.
|
|
1511
|
-
* This ensures that the owner of a repository cannot lock themselves out of the repository, which would prevent them from being
|
|
1512
|
-
* able to update the resource policy.
|
|
1513
|
-
* </p>
|
|
1514
|
-
*/
|
|
1515
|
-
public putRepositoryPermissionsPolicy(
|
|
1516
|
-
args: PutRepositoryPermissionsPolicyCommandInput,
|
|
1517
|
-
options?: __HttpHandlerOptions
|
|
1518
|
-
): Promise<PutRepositoryPermissionsPolicyCommandOutput>;
|
|
1519
|
-
public putRepositoryPermissionsPolicy(
|
|
1520
|
-
args: PutRepositoryPermissionsPolicyCommandInput,
|
|
1521
|
-
cb: (err: any, data?: PutRepositoryPermissionsPolicyCommandOutput) => void
|
|
1522
|
-
): void;
|
|
1523
|
-
public putRepositoryPermissionsPolicy(
|
|
1524
|
-
args: PutRepositoryPermissionsPolicyCommandInput,
|
|
1525
|
-
options: __HttpHandlerOptions,
|
|
1526
|
-
cb: (err: any, data?: PutRepositoryPermissionsPolicyCommandOutput) => void
|
|
1527
|
-
): void;
|
|
1528
|
-
public putRepositoryPermissionsPolicy(
|
|
1529
|
-
args: PutRepositoryPermissionsPolicyCommandInput,
|
|
1530
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRepositoryPermissionsPolicyCommandOutput) => void),
|
|
1531
|
-
cb?: (err: any, data?: PutRepositoryPermissionsPolicyCommandOutput) => void
|
|
1532
|
-
): Promise<PutRepositoryPermissionsPolicyCommandOutput> | void {
|
|
1533
|
-
const command = new PutRepositoryPermissionsPolicyCommand(args);
|
|
1534
|
-
if (typeof optionsOrCb === "function") {
|
|
1535
|
-
this.send(command, optionsOrCb);
|
|
1536
|
-
} else if (typeof cb === "function") {
|
|
1537
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1538
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1539
|
-
} else {
|
|
1540
|
-
return this.send(command, optionsOrCb);
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
/**
|
|
1545
|
-
* <p>Adds or updates tags for a resource in AWS CodeArtifact.</p>
|
|
1546
|
-
*/
|
|
1547
|
-
public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
1548
|
-
public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
1549
|
-
public tagResource(
|
|
1550
|
-
args: TagResourceCommandInput,
|
|
1551
|
-
options: __HttpHandlerOptions,
|
|
1552
|
-
cb: (err: any, data?: TagResourceCommandOutput) => void
|
|
1553
|
-
): void;
|
|
1554
|
-
public tagResource(
|
|
1555
|
-
args: TagResourceCommandInput,
|
|
1556
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
|
|
1557
|
-
cb?: (err: any, data?: TagResourceCommandOutput) => void
|
|
1558
|
-
): Promise<TagResourceCommandOutput> | void {
|
|
1559
|
-
const command = new TagResourceCommand(args);
|
|
1560
|
-
if (typeof optionsOrCb === "function") {
|
|
1561
|
-
this.send(command, optionsOrCb);
|
|
1562
|
-
} else if (typeof cb === "function") {
|
|
1563
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1564
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1565
|
-
} else {
|
|
1566
|
-
return this.send(command, optionsOrCb);
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
|
-
/**
|
|
1571
|
-
* <p>Removes tags from a resource in AWS CodeArtifact.</p>
|
|
1572
|
-
*/
|
|
1573
|
-
public untagResource(
|
|
1574
|
-
args: UntagResourceCommandInput,
|
|
1575
|
-
options?: __HttpHandlerOptions
|
|
1576
|
-
): Promise<UntagResourceCommandOutput>;
|
|
1577
|
-
public untagResource(
|
|
1578
|
-
args: UntagResourceCommandInput,
|
|
1579
|
-
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
1580
|
-
): void;
|
|
1581
|
-
public untagResource(
|
|
1582
|
-
args: UntagResourceCommandInput,
|
|
1583
|
-
options: __HttpHandlerOptions,
|
|
1584
|
-
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
1585
|
-
): void;
|
|
1586
|
-
public untagResource(
|
|
1587
|
-
args: UntagResourceCommandInput,
|
|
1588
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
|
|
1589
|
-
cb?: (err: any, data?: UntagResourceCommandOutput) => void
|
|
1590
|
-
): Promise<UntagResourceCommandOutput> | void {
|
|
1591
|
-
const command = new UntagResourceCommand(args);
|
|
1592
|
-
if (typeof optionsOrCb === "function") {
|
|
1593
|
-
this.send(command, optionsOrCb);
|
|
1594
|
-
} else if (typeof cb === "function") {
|
|
1595
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1596
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1597
|
-
} else {
|
|
1598
|
-
return this.send(command, optionsOrCb);
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
/**
|
|
1603
|
-
* <p>
|
|
1604
|
-
* Updates the status of one or more versions of a package.
|
|
1605
|
-
* </p>
|
|
1606
|
-
*/
|
|
1607
|
-
public updatePackageVersionsStatus(
|
|
1608
|
-
args: UpdatePackageVersionsStatusCommandInput,
|
|
1609
|
-
options?: __HttpHandlerOptions
|
|
1610
|
-
): Promise<UpdatePackageVersionsStatusCommandOutput>;
|
|
1611
|
-
public updatePackageVersionsStatus(
|
|
1612
|
-
args: UpdatePackageVersionsStatusCommandInput,
|
|
1613
|
-
cb: (err: any, data?: UpdatePackageVersionsStatusCommandOutput) => void
|
|
1614
|
-
): void;
|
|
1615
|
-
public updatePackageVersionsStatus(
|
|
1616
|
-
args: UpdatePackageVersionsStatusCommandInput,
|
|
1617
|
-
options: __HttpHandlerOptions,
|
|
1618
|
-
cb: (err: any, data?: UpdatePackageVersionsStatusCommandOutput) => void
|
|
1619
|
-
): void;
|
|
1620
|
-
public updatePackageVersionsStatus(
|
|
1621
|
-
args: UpdatePackageVersionsStatusCommandInput,
|
|
1622
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdatePackageVersionsStatusCommandOutput) => void),
|
|
1623
|
-
cb?: (err: any, data?: UpdatePackageVersionsStatusCommandOutput) => void
|
|
1624
|
-
): Promise<UpdatePackageVersionsStatusCommandOutput> | void {
|
|
1625
|
-
const command = new UpdatePackageVersionsStatusCommand(args);
|
|
1626
|
-
if (typeof optionsOrCb === "function") {
|
|
1627
|
-
this.send(command, optionsOrCb);
|
|
1628
|
-
} else if (typeof cb === "function") {
|
|
1629
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1630
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1631
|
-
} else {
|
|
1632
|
-
return this.send(command, optionsOrCb);
|
|
1633
|
-
}
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
/**
|
|
1637
|
-
* <p>
|
|
1638
|
-
* Update the properties of a repository.
|
|
1639
|
-
* </p>
|
|
1640
|
-
*/
|
|
1641
|
-
public updateRepository(
|
|
1642
|
-
args: UpdateRepositoryCommandInput,
|
|
1643
|
-
options?: __HttpHandlerOptions
|
|
1644
|
-
): Promise<UpdateRepositoryCommandOutput>;
|
|
1645
|
-
public updateRepository(
|
|
1646
|
-
args: UpdateRepositoryCommandInput,
|
|
1647
|
-
cb: (err: any, data?: UpdateRepositoryCommandOutput) => void
|
|
1648
|
-
): void;
|
|
1649
|
-
public updateRepository(
|
|
1650
|
-
args: UpdateRepositoryCommandInput,
|
|
1651
|
-
options: __HttpHandlerOptions,
|
|
1652
|
-
cb: (err: any, data?: UpdateRepositoryCommandOutput) => void
|
|
1653
|
-
): void;
|
|
1654
|
-
public updateRepository(
|
|
1655
|
-
args: UpdateRepositoryCommandInput,
|
|
1656
|
-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRepositoryCommandOutput) => void),
|
|
1657
|
-
cb?: (err: any, data?: UpdateRepositoryCommandOutput) => void
|
|
1658
|
-
): Promise<UpdateRepositoryCommandOutput> | void {
|
|
1659
|
-
const command = new UpdateRepositoryCommand(args);
|
|
1660
|
-
if (typeof optionsOrCb === "function") {
|
|
1661
|
-
this.send(command, optionsOrCb);
|
|
1662
|
-
} else if (typeof cb === "function") {
|
|
1663
|
-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
1664
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
1665
|
-
} else {
|
|
1666
|
-
return this.send(command, optionsOrCb);
|
|
1667
|
-
}
|
|
1668
|
-
}
|
|
1669
|
-
}
|