@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
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
15
|
-
import { DisassociateExternalConnectionRequest, DisassociateExternalConnectionResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DisassociateExternalConnectionCommand,
|
|
18
|
-
serializeAws_restJson1DisassociateExternalConnectionCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DisassociateExternalConnectionCommandInput extends DisassociateExternalConnectionRequest {}
|
|
22
|
-
export interface DisassociateExternalConnectionCommandOutput
|
|
23
|
-
extends DisassociateExternalConnectionResult,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>
|
|
28
|
-
* Removes an existing external connection from a repository.
|
|
29
|
-
* </p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { CodeartifactClient, DisassociateExternalConnectionCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
34
|
-
* // const { CodeartifactClient, DisassociateExternalConnectionCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
35
|
-
* const client = new CodeartifactClient(config);
|
|
36
|
-
* const command = new DisassociateExternalConnectionCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link DisassociateExternalConnectionCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link DisassociateExternalConnectionCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link CodeartifactClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class DisassociateExternalConnectionCommand extends $Command<
|
|
46
|
-
DisassociateExternalConnectionCommandInput,
|
|
47
|
-
DisassociateExternalConnectionCommandOutput,
|
|
48
|
-
CodeartifactClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: DisassociateExternalConnectionCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: CodeartifactClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<DisassociateExternalConnectionCommandInput, DisassociateExternalConnectionCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "CodeartifactClient";
|
|
73
|
-
const commandName = "DisassociateExternalConnectionCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: DisassociateExternalConnectionRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: DisassociateExternalConnectionResult.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(
|
|
90
|
-
input: DisassociateExternalConnectionCommandInput,
|
|
91
|
-
context: __SerdeContext
|
|
92
|
-
): Promise<__HttpRequest> {
|
|
93
|
-
return serializeAws_restJson1DisassociateExternalConnectionCommand(input, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private deserialize(
|
|
97
|
-
output: __HttpResponse,
|
|
98
|
-
context: __SerdeContext
|
|
99
|
-
): Promise<DisassociateExternalConnectionCommandOutput> {
|
|
100
|
-
return deserializeAws_restJson1DisassociateExternalConnectionCommand(output, context);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Start section: command_body_extra
|
|
104
|
-
// End section: command_body_extra
|
|
105
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
15
|
-
import { DisposePackageVersionsRequest, DisposePackageVersionsResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1DisposePackageVersionsCommand,
|
|
18
|
-
serializeAws_restJson1DisposePackageVersionsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface DisposePackageVersionsCommandInput extends DisposePackageVersionsRequest {}
|
|
22
|
-
export interface DisposePackageVersionsCommandOutput extends DisposePackageVersionsResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* Deletes the assets in package versions and sets the package versions' status to <code>Disposed</code>.
|
|
27
|
-
* A disposed package version cannot be restored in your repository because its assets are deleted.
|
|
28
|
-
* </p>
|
|
29
|
-
*
|
|
30
|
-
* <p>
|
|
31
|
-
* 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
|
|
32
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax">status</a> parameter
|
|
33
|
-
* to <code>Disposed</code>.
|
|
34
|
-
* </p>
|
|
35
|
-
*
|
|
36
|
-
* <p>
|
|
37
|
-
* To view information about a disposed package version, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html">DescribePackageVersion</a>.
|
|
38
|
-
* </p>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { CodeartifactClient, DisposePackageVersionsCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
43
|
-
* // const { CodeartifactClient, DisposePackageVersionsCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
44
|
-
* const client = new CodeartifactClient(config);
|
|
45
|
-
* const command = new DisposePackageVersionsCommand(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link DisposePackageVersionsCommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link DisposePackageVersionsCommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link CodeartifactClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
export class DisposePackageVersionsCommand extends $Command<
|
|
55
|
-
DisposePackageVersionsCommandInput,
|
|
56
|
-
DisposePackageVersionsCommandOutput,
|
|
57
|
-
CodeartifactClientResolvedConfig
|
|
58
|
-
> {
|
|
59
|
-
// Start section: command_properties
|
|
60
|
-
// End section: command_properties
|
|
61
|
-
|
|
62
|
-
constructor(readonly input: DisposePackageVersionsCommandInput) {
|
|
63
|
-
// Start section: command_constructor
|
|
64
|
-
super();
|
|
65
|
-
// End section: command_constructor
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
resolveMiddleware(
|
|
72
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
73
|
-
configuration: CodeartifactClientResolvedConfig,
|
|
74
|
-
options?: __HttpHandlerOptions
|
|
75
|
-
): Handler<DisposePackageVersionsCommandInput, DisposePackageVersionsCommandOutput> {
|
|
76
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
77
|
-
|
|
78
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
79
|
-
|
|
80
|
-
const { logger } = configuration;
|
|
81
|
-
const clientName = "CodeartifactClient";
|
|
82
|
-
const commandName = "DisposePackageVersionsCommand";
|
|
83
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
84
|
-
logger,
|
|
85
|
-
clientName,
|
|
86
|
-
commandName,
|
|
87
|
-
inputFilterSensitiveLog: DisposePackageVersionsRequest.filterSensitiveLog,
|
|
88
|
-
outputFilterSensitiveLog: DisposePackageVersionsResult.filterSensitiveLog,
|
|
89
|
-
};
|
|
90
|
-
const { requestHandler } = configuration;
|
|
91
|
-
return stack.resolve(
|
|
92
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
93
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
94
|
-
handlerExecutionContext
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private serialize(input: DisposePackageVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
99
|
-
return serializeAws_restJson1DisposePackageVersionsCommand(input, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DisposePackageVersionsCommandOutput> {
|
|
103
|
-
return deserializeAws_restJson1DisposePackageVersionsCommand(output, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Start section: command_body_extra
|
|
107
|
-
// End section: command_body_extra
|
|
108
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
15
|
-
import { GetAuthorizationTokenRequest, GetAuthorizationTokenResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetAuthorizationTokenCommand,
|
|
18
|
-
serializeAws_restJson1GetAuthorizationTokenCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetAuthorizationTokenCommandInput extends GetAuthorizationTokenRequest {}
|
|
22
|
-
export interface GetAuthorizationTokenCommandOutput extends GetAuthorizationTokenResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* Generates a temporary authorization token for accessing repositories in the domain.
|
|
27
|
-
* This API requires the <code>codeartifact:GetAuthorizationToken</code> and <code>sts:GetServiceBearerToken</code> permissions.
|
|
28
|
-
* For more information about authorization tokens, see
|
|
29
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html">AWS CodeArtifact authentication and tokens</a>.
|
|
30
|
-
* </p>
|
|
31
|
-
* <note>
|
|
32
|
-
* <p>CodeArtifact authorization tokens are valid for a period of 12 hours when created with the <code>login</code> command.
|
|
33
|
-
* You can call <code>login</code> periodically to refresh the token. When
|
|
34
|
-
* you create an authorization token with the <code>GetAuthorizationToken</code> API, you can set a custom authorization period,
|
|
35
|
-
* up to a maximum of 12 hours, with the <code>durationSeconds</code> parameter.</p>
|
|
36
|
-
* <p>The authorization period begins after <code>login</code>
|
|
37
|
-
* or <code>GetAuthorizationToken</code> is called. If <code>login</code> or <code>GetAuthorizationToken</code> is called while
|
|
38
|
-
* assuming a role, the token lifetime is independent of the maximum session duration
|
|
39
|
-
* of the role. For example, if you call <code>sts assume-role</code> and specify a session duration of 15 minutes, then
|
|
40
|
-
* generate a CodeArtifact authorization token, the token will be valid for the full authorization period
|
|
41
|
-
* even though this is longer than the 15-minute session duration.</p>
|
|
42
|
-
* <p>See
|
|
43
|
-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use.html">Using IAM Roles</a>
|
|
44
|
-
* for more information on controlling session duration. </p>
|
|
45
|
-
* </note>
|
|
46
|
-
* @example
|
|
47
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
48
|
-
* ```javascript
|
|
49
|
-
* import { CodeartifactClient, GetAuthorizationTokenCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
50
|
-
* // const { CodeartifactClient, GetAuthorizationTokenCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
51
|
-
* const client = new CodeartifactClient(config);
|
|
52
|
-
* const command = new GetAuthorizationTokenCommand(input);
|
|
53
|
-
* const response = await client.send(command);
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* @see {@link GetAuthorizationTokenCommandInput} for command's `input` shape.
|
|
57
|
-
* @see {@link GetAuthorizationTokenCommandOutput} for command's `response` shape.
|
|
58
|
-
* @see {@link CodeartifactClientResolvedConfig | config} for command's `input` shape.
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
export class GetAuthorizationTokenCommand extends $Command<
|
|
62
|
-
GetAuthorizationTokenCommandInput,
|
|
63
|
-
GetAuthorizationTokenCommandOutput,
|
|
64
|
-
CodeartifactClientResolvedConfig
|
|
65
|
-
> {
|
|
66
|
-
// Start section: command_properties
|
|
67
|
-
// End section: command_properties
|
|
68
|
-
|
|
69
|
-
constructor(readonly input: GetAuthorizationTokenCommandInput) {
|
|
70
|
-
// Start section: command_constructor
|
|
71
|
-
super();
|
|
72
|
-
// End section: command_constructor
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
|
-
resolveMiddleware(
|
|
79
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
80
|
-
configuration: CodeartifactClientResolvedConfig,
|
|
81
|
-
options?: __HttpHandlerOptions
|
|
82
|
-
): Handler<GetAuthorizationTokenCommandInput, GetAuthorizationTokenCommandOutput> {
|
|
83
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
84
|
-
|
|
85
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
86
|
-
|
|
87
|
-
const { logger } = configuration;
|
|
88
|
-
const clientName = "CodeartifactClient";
|
|
89
|
-
const commandName = "GetAuthorizationTokenCommand";
|
|
90
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
91
|
-
logger,
|
|
92
|
-
clientName,
|
|
93
|
-
commandName,
|
|
94
|
-
inputFilterSensitiveLog: GetAuthorizationTokenRequest.filterSensitiveLog,
|
|
95
|
-
outputFilterSensitiveLog: GetAuthorizationTokenResult.filterSensitiveLog,
|
|
96
|
-
};
|
|
97
|
-
const { requestHandler } = configuration;
|
|
98
|
-
return stack.resolve(
|
|
99
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
100
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
101
|
-
handlerExecutionContext
|
|
102
|
-
);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
private serialize(input: GetAuthorizationTokenCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
106
|
-
return serializeAws_restJson1GetAuthorizationTokenCommand(input, context);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetAuthorizationTokenCommandOutput> {
|
|
110
|
-
return deserializeAws_restJson1GetAuthorizationTokenCommand(output, context);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// Start section: command_body_extra
|
|
114
|
-
// End section: command_body_extra
|
|
115
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
15
|
-
import { GetDomainPermissionsPolicyRequest, GetDomainPermissionsPolicyResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetDomainPermissionsPolicyCommand,
|
|
18
|
-
serializeAws_restJson1GetDomainPermissionsPolicyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetDomainPermissionsPolicyCommandInput extends GetDomainPermissionsPolicyRequest {}
|
|
22
|
-
export interface GetDomainPermissionsPolicyCommandOutput extends GetDomainPermissionsPolicyResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* Returns the resource policy attached to the specified domain.
|
|
27
|
-
* </p>
|
|
28
|
-
* <note>
|
|
29
|
-
* <p>
|
|
30
|
-
* The policy is a resource-based policy, not an identity-based policy. For more information, see
|
|
31
|
-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_identity-vs-resource.html">Identity-based policies
|
|
32
|
-
* and resource-based policies </a> in the <i>AWS Identity and Access Management User Guide</i>.
|
|
33
|
-
* </p>
|
|
34
|
-
* </note>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { CodeartifactClient, GetDomainPermissionsPolicyCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
39
|
-
* // const { CodeartifactClient, GetDomainPermissionsPolicyCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
40
|
-
* const client = new CodeartifactClient(config);
|
|
41
|
-
* const command = new GetDomainPermissionsPolicyCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link GetDomainPermissionsPolicyCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link GetDomainPermissionsPolicyCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link CodeartifactClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export class GetDomainPermissionsPolicyCommand extends $Command<
|
|
51
|
-
GetDomainPermissionsPolicyCommandInput,
|
|
52
|
-
GetDomainPermissionsPolicyCommandOutput,
|
|
53
|
-
CodeartifactClientResolvedConfig
|
|
54
|
-
> {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
|
|
58
|
-
constructor(readonly input: GetDomainPermissionsPolicyCommandInput) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
|
-
super();
|
|
61
|
-
// End section: command_constructor
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
resolveMiddleware(
|
|
68
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
69
|
-
configuration: CodeartifactClientResolvedConfig,
|
|
70
|
-
options?: __HttpHandlerOptions
|
|
71
|
-
): Handler<GetDomainPermissionsPolicyCommandInput, GetDomainPermissionsPolicyCommandOutput> {
|
|
72
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
73
|
-
|
|
74
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
75
|
-
|
|
76
|
-
const { logger } = configuration;
|
|
77
|
-
const clientName = "CodeartifactClient";
|
|
78
|
-
const commandName = "GetDomainPermissionsPolicyCommand";
|
|
79
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
80
|
-
logger,
|
|
81
|
-
clientName,
|
|
82
|
-
commandName,
|
|
83
|
-
inputFilterSensitiveLog: GetDomainPermissionsPolicyRequest.filterSensitiveLog,
|
|
84
|
-
outputFilterSensitiveLog: GetDomainPermissionsPolicyResult.filterSensitiveLog,
|
|
85
|
-
};
|
|
86
|
-
const { requestHandler } = configuration;
|
|
87
|
-
return stack.resolve(
|
|
88
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
89
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
90
|
-
handlerExecutionContext
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private serialize(input: GetDomainPermissionsPolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
95
|
-
return serializeAws_restJson1GetDomainPermissionsPolicyCommand(input, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private deserialize(
|
|
99
|
-
output: __HttpResponse,
|
|
100
|
-
context: __SerdeContext
|
|
101
|
-
): Promise<GetDomainPermissionsPolicyCommandOutput> {
|
|
102
|
-
return deserializeAws_restJson1GetDomainPermissionsPolicyCommand(output, context);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// Start section: command_body_extra
|
|
106
|
-
// End section: command_body_extra
|
|
107
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
15
|
-
import { GetPackageVersionAssetRequest, GetPackageVersionAssetResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetPackageVersionAssetCommand,
|
|
18
|
-
serializeAws_restJson1GetPackageVersionAssetCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetPackageVersionAssetCommandInput extends GetPackageVersionAssetRequest {}
|
|
22
|
-
export interface GetPackageVersionAssetCommandOutput extends GetPackageVersionAssetResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* Returns an asset (or file) that is in a package. For example, for a Maven package version, use
|
|
27
|
-
* <code>GetPackageVersionAsset</code> to download a <code>JAR</code> file, a <code>POM</code> file,
|
|
28
|
-
* or any other assets in the package version.
|
|
29
|
-
* </p>
|
|
30
|
-
* @example
|
|
31
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
32
|
-
* ```javascript
|
|
33
|
-
* import { CodeartifactClient, GetPackageVersionAssetCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
34
|
-
* // const { CodeartifactClient, GetPackageVersionAssetCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
35
|
-
* const client = new CodeartifactClient(config);
|
|
36
|
-
* const command = new GetPackageVersionAssetCommand(input);
|
|
37
|
-
* const response = await client.send(command);
|
|
38
|
-
* ```
|
|
39
|
-
*
|
|
40
|
-
* @see {@link GetPackageVersionAssetCommandInput} for command's `input` shape.
|
|
41
|
-
* @see {@link GetPackageVersionAssetCommandOutput} for command's `response` shape.
|
|
42
|
-
* @see {@link CodeartifactClientResolvedConfig | config} for command's `input` shape.
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
export class GetPackageVersionAssetCommand extends $Command<
|
|
46
|
-
GetPackageVersionAssetCommandInput,
|
|
47
|
-
GetPackageVersionAssetCommandOutput,
|
|
48
|
-
CodeartifactClientResolvedConfig
|
|
49
|
-
> {
|
|
50
|
-
// Start section: command_properties
|
|
51
|
-
// End section: command_properties
|
|
52
|
-
|
|
53
|
-
constructor(readonly input: GetPackageVersionAssetCommandInput) {
|
|
54
|
-
// Start section: command_constructor
|
|
55
|
-
super();
|
|
56
|
-
// End section: command_constructor
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(
|
|
63
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
64
|
-
configuration: CodeartifactClientResolvedConfig,
|
|
65
|
-
options?: __HttpHandlerOptions
|
|
66
|
-
): Handler<GetPackageVersionAssetCommandInput, GetPackageVersionAssetCommandOutput> {
|
|
67
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
|
|
69
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
70
|
-
|
|
71
|
-
const { logger } = configuration;
|
|
72
|
-
const clientName = "CodeartifactClient";
|
|
73
|
-
const commandName = "GetPackageVersionAssetCommand";
|
|
74
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
75
|
-
logger,
|
|
76
|
-
clientName,
|
|
77
|
-
commandName,
|
|
78
|
-
inputFilterSensitiveLog: GetPackageVersionAssetRequest.filterSensitiveLog,
|
|
79
|
-
outputFilterSensitiveLog: GetPackageVersionAssetResult.filterSensitiveLog,
|
|
80
|
-
};
|
|
81
|
-
const { requestHandler } = configuration;
|
|
82
|
-
return stack.resolve(
|
|
83
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
84
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
85
|
-
handlerExecutionContext
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private serialize(input: GetPackageVersionAssetCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
90
|
-
return serializeAws_restJson1GetPackageVersionAssetCommand(input, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPackageVersionAssetCommandOutput> {
|
|
94
|
-
return deserializeAws_restJson1GetPackageVersionAssetCommand(output, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Start section: command_body_extra
|
|
98
|
-
// End section: command_body_extra
|
|
99
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
15
|
-
import { GetPackageVersionReadmeRequest, GetPackageVersionReadmeResult } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetPackageVersionReadmeCommand,
|
|
18
|
-
serializeAws_restJson1GetPackageVersionReadmeCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetPackageVersionReadmeCommandInput extends GetPackageVersionReadmeRequest {}
|
|
22
|
-
export interface GetPackageVersionReadmeCommandOutput extends GetPackageVersionReadmeResult, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>
|
|
26
|
-
* Gets the readme file or descriptive text for a package version. For packages that do not contain a readme file, CodeArtifact
|
|
27
|
-
* extracts a description from a metadata file. For example, from the <code><description></code> element in the
|
|
28
|
-
* <code>pom.xml</code> file of a Maven package.
|
|
29
|
-
* </p>
|
|
30
|
-
* <p>
|
|
31
|
-
* The returned text might contain formatting. For example, it might contain formatting for Markdown or reStructuredText.
|
|
32
|
-
* </p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { CodeartifactClient, GetPackageVersionReadmeCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
37
|
-
* // const { CodeartifactClient, GetPackageVersionReadmeCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
38
|
-
* const client = new CodeartifactClient(config);
|
|
39
|
-
* const command = new GetPackageVersionReadmeCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link GetPackageVersionReadmeCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link GetPackageVersionReadmeCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link CodeartifactClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class GetPackageVersionReadmeCommand extends $Command<
|
|
49
|
-
GetPackageVersionReadmeCommandInput,
|
|
50
|
-
GetPackageVersionReadmeCommandOutput,
|
|
51
|
-
CodeartifactClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: GetPackageVersionReadmeCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: CodeartifactClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<GetPackageVersionReadmeCommandInput, GetPackageVersionReadmeCommandOutput> {
|
|
70
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
|
-
|
|
72
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
73
|
-
|
|
74
|
-
const { logger } = configuration;
|
|
75
|
-
const clientName = "CodeartifactClient";
|
|
76
|
-
const commandName = "GetPackageVersionReadmeCommand";
|
|
77
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
78
|
-
logger,
|
|
79
|
-
clientName,
|
|
80
|
-
commandName,
|
|
81
|
-
inputFilterSensitiveLog: GetPackageVersionReadmeRequest.filterSensitiveLog,
|
|
82
|
-
outputFilterSensitiveLog: GetPackageVersionReadmeResult.filterSensitiveLog,
|
|
83
|
-
};
|
|
84
|
-
const { requestHandler } = configuration;
|
|
85
|
-
return stack.resolve(
|
|
86
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
87
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
88
|
-
handlerExecutionContext
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private serialize(input: GetPackageVersionReadmeCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
93
|
-
return serializeAws_restJson1GetPackageVersionReadmeCommand(input, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPackageVersionReadmeCommandOutput> {
|
|
97
|
-
return deserializeAws_restJson1GetPackageVersionReadmeCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|