@aws-sdk/client-codeartifact 3.259.0 → 3.262.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/dist-cjs/Codeartifact.js +15 -0
- package/dist-cjs/commands/DeletePackageCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +23 -15
- package/dist-cjs/protocols/Aws_restJson1.js +76 -2
- package/dist-es/Codeartifact.js +15 -0
- package/dist-es/commands/DeletePackageCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +15 -9
- package/dist-es/protocols/Aws_restJson1.js +72 -0
- package/dist-types/Codeartifact.d.ts +10 -2
- package/dist-types/CodeartifactClient.d.ts +3 -2
- package/dist-types/commands/DeletePackageCommand.d.ts +38 -0
- package/dist-types/commands/DeletePackageVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListPackageVersionsCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +152 -109
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Codeartifact.d.ts +17 -0
- package/dist-types/ts3.4/CodeartifactClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DeletePackageCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +39 -22
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +6 -6
package/dist-cjs/Codeartifact.js
CHANGED
|
@@ -8,6 +8,7 @@ const CreateDomainCommand_1 = require("./commands/CreateDomainCommand");
|
|
|
8
8
|
const CreateRepositoryCommand_1 = require("./commands/CreateRepositoryCommand");
|
|
9
9
|
const DeleteDomainCommand_1 = require("./commands/DeleteDomainCommand");
|
|
10
10
|
const DeleteDomainPermissionsPolicyCommand_1 = require("./commands/DeleteDomainPermissionsPolicyCommand");
|
|
11
|
+
const DeletePackageCommand_1 = require("./commands/DeletePackageCommand");
|
|
11
12
|
const DeletePackageVersionsCommand_1 = require("./commands/DeletePackageVersionsCommand");
|
|
12
13
|
const DeleteRepositoryCommand_1 = require("./commands/DeleteRepositoryCommand");
|
|
13
14
|
const DeleteRepositoryPermissionsPolicyCommand_1 = require("./commands/DeleteRepositoryPermissionsPolicyCommand");
|
|
@@ -123,6 +124,20 @@ class Codeartifact extends CodeartifactClient_1.CodeartifactClient {
|
|
|
123
124
|
return this.send(command, optionsOrCb);
|
|
124
125
|
}
|
|
125
126
|
}
|
|
127
|
+
deletePackage(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new DeletePackageCommand_1.DeletePackageCommand(args);
|
|
129
|
+
if (typeof optionsOrCb === "function") {
|
|
130
|
+
this.send(command, optionsOrCb);
|
|
131
|
+
}
|
|
132
|
+
else if (typeof cb === "function") {
|
|
133
|
+
if (typeof optionsOrCb !== "object")
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return this.send(command, optionsOrCb);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
126
141
|
deletePackageVersions(args, optionsOrCb, cb) {
|
|
127
142
|
const command = new DeletePackageVersionsCommand_1.DeletePackageVersionsCommand(args);
|
|
128
143
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeletePackageCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class DeletePackageCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeletePackageCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "CodeartifactClient";
|
|
28
|
+
const commandName = "DeletePackageCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.DeletePackageRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.DeletePackageResultFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeletePackageCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeletePackageCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DeletePackageCommand = DeletePackageCommand;
|
|
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./CreateDomainCommand"), exports);
|
|
|
7
7
|
tslib_1.__exportStar(require("./CreateRepositoryCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./DeleteDomainCommand"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./DeleteDomainPermissionsPolicyCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./DeletePackageCommand"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DeletePackageVersionsCommand"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DeleteRepositoryCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./DeleteRepositoryPermissionsPolicyCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateRepositoryResultFilterSensitiveLog = exports.UpdateRepositoryRequestFilterSensitiveLog = exports.UpdatePackageVersionsStatusResultFilterSensitiveLog = exports.UpdatePackageVersionsStatusRequestFilterSensitiveLog = exports.UntagResourceResultFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResultFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.PutRepositoryPermissionsPolicyResultFilterSensitiveLog = exports.PutRepositoryPermissionsPolicyRequestFilterSensitiveLog = exports.PutPackageOriginConfigurationResultFilterSensitiveLog = exports.PutPackageOriginConfigurationRequestFilterSensitiveLog = exports.PutDomainPermissionsPolicyResultFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DeleteRepositoryResultFilterSensitiveLog = exports.DeleteRepositoryRequestFilterSensitiveLog = exports.DeletePackageVersionsResultFilterSensitiveLog = exports.DeletePackageVersionsRequestFilterSensitiveLog = exports.DeletePackageResultFilterSensitiveLog = exports.PackageSummaryFilterSensitiveLog = exports.PackageOriginConfigurationFilterSensitiveLog = exports.PackageOriginRestrictionsFilterSensitiveLog = exports.DeletePackageRequestFilterSensitiveLog = exports.DeleteDomainPermissionsPolicyResultFilterSensitiveLog = exports.ResourcePolicyFilterSensitiveLog = exports.DeleteDomainPermissionsPolicyRequestFilterSensitiveLog = exports.DeleteDomainResultFilterSensitiveLog = exports.DeleteDomainRequestFilterSensitiveLog = exports.CreateRepositoryResultFilterSensitiveLog = exports.CreateRepositoryRequestFilterSensitiveLog = exports.UpstreamRepositoryFilterSensitiveLog = exports.CreateDomainResultFilterSensitiveLog = exports.DomainDescriptionFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.CopyPackageVersionsResultFilterSensitiveLog = exports.SuccessfulPackageVersionInfoFilterSensitiveLog = exports.PackageVersionErrorFilterSensitiveLog = exports.CopyPackageVersionsRequestFilterSensitiveLog = exports.AssociateExternalConnectionResultFilterSensitiveLog = exports.RepositoryDescriptionFilterSensitiveLog = exports.UpstreamRepositoryInfoFilterSensitiveLog = exports.RepositoryExternalConnectionInfoFilterSensitiveLog = exports.AssociateExternalConnectionRequestFilterSensitiveLog = exports.AssetSummaryFilterSensitiveLog = exports.PackageVersionSortType = exports.PackageVersionOriginType = exports.DomainStatus = exports.PackageVersionStatus = exports.PackageVersionErrorCode = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.ResourceType = exports.ExternalConnectionStatus = exports.PackageFormat = exports.HashAlgorithm = exports.AllowUpstream = exports.AllowPublish = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListRepositoriesInDomainResultFilterSensitiveLog = exports.ListRepositoriesInDomainRequestFilterSensitiveLog = exports.ListRepositoriesResultFilterSensitiveLog = exports.RepositorySummaryFilterSensitiveLog = exports.ListRepositoriesRequestFilterSensitiveLog = exports.ListPackageVersionsResultFilterSensitiveLog = exports.PackageVersionSummaryFilterSensitiveLog = exports.ListPackageVersionsRequestFilterSensitiveLog = exports.ListPackageVersionDependenciesResultFilterSensitiveLog = exports.PackageDependencyFilterSensitiveLog = exports.ListPackageVersionDependenciesRequestFilterSensitiveLog = exports.ListPackageVersionAssetsResultFilterSensitiveLog = exports.ListPackageVersionAssetsRequestFilterSensitiveLog = exports.ListPackagesResultFilterSensitiveLog = exports.ListPackagesRequestFilterSensitiveLog = exports.ListDomainsResultFilterSensitiveLog = exports.DomainSummaryFilterSensitiveLog = exports.ListDomainsRequestFilterSensitiveLog = exports.GetRepositoryPermissionsPolicyResultFilterSensitiveLog = exports.GetRepositoryPermissionsPolicyRequestFilterSensitiveLog = exports.GetRepositoryEndpointResultFilterSensitiveLog = exports.GetRepositoryEndpointRequestFilterSensitiveLog = exports.GetPackageVersionReadmeResultFilterSensitiveLog = exports.GetPackageVersionReadmeRequestFilterSensitiveLog = exports.GetPackageVersionAssetResultFilterSensitiveLog = exports.GetPackageVersionAssetRequestFilterSensitiveLog = exports.GetDomainPermissionsPolicyResultFilterSensitiveLog = exports.GetDomainPermissionsPolicyRequestFilterSensitiveLog = exports.GetAuthorizationTokenResultFilterSensitiveLog = exports.GetAuthorizationTokenRequestFilterSensitiveLog = exports.DisposePackageVersionsResultFilterSensitiveLog = exports.DisposePackageVersionsRequestFilterSensitiveLog = exports.DisassociateExternalConnectionResultFilterSensitiveLog = exports.DisassociateExternalConnectionRequestFilterSensitiveLog = exports.DescribeRepositoryResultFilterSensitiveLog = exports.DescribeRepositoryRequestFilterSensitiveLog = exports.DescribePackageVersionResultFilterSensitiveLog = exports.PackageVersionDescriptionFilterSensitiveLog = exports.PackageVersionOriginFilterSensitiveLog = exports.DomainEntryPointFilterSensitiveLog = exports.LicenseInfoFilterSensitiveLog = exports.DescribePackageVersionRequestFilterSensitiveLog = exports.DescribePackageResultFilterSensitiveLog = exports.PackageDescriptionFilterSensitiveLog = exports.DescribePackageRequestFilterSensitiveLog = exports.DescribeDomainResultFilterSensitiveLog = exports.DescribeDomainRequestFilterSensitiveLog = exports.DeleteRepositoryPermissionsPolicyResultFilterSensitiveLog = exports.DeleteRepositoryPermissionsPolicyRequestFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdateRepositoryResultFilterSensitiveLog = exports.UpdateRepositoryRequestFilterSensitiveLog = exports.UpdatePackageVersionsStatusResultFilterSensitiveLog = exports.UpdatePackageVersionsStatusRequestFilterSensitiveLog = exports.UntagResourceResultFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResultFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.PutRepositoryPermissionsPolicyResultFilterSensitiveLog = exports.PutRepositoryPermissionsPolicyRequestFilterSensitiveLog = exports.PutPackageOriginConfigurationResultFilterSensitiveLog = exports.PutPackageOriginConfigurationRequestFilterSensitiveLog = exports.PutDomainPermissionsPolicyResultFilterSensitiveLog = exports.PutDomainPermissionsPolicyRequestFilterSensitiveLog = exports.ListTagsForResourceResultFilterSensitiveLog = void 0;
|
|
6
6
|
const CodeartifactServiceException_1 = require("./CodeartifactServiceException");
|
|
7
7
|
class AccessDeniedException extends CodeartifactServiceException_1.CodeartifactServiceException {
|
|
8
8
|
constructor(opts) {
|
|
@@ -268,6 +268,26 @@ const DeleteDomainPermissionsPolicyResultFilterSensitiveLog = (obj) => ({
|
|
|
268
268
|
...obj,
|
|
269
269
|
});
|
|
270
270
|
exports.DeleteDomainPermissionsPolicyResultFilterSensitiveLog = DeleteDomainPermissionsPolicyResultFilterSensitiveLog;
|
|
271
|
+
const DeletePackageRequestFilterSensitiveLog = (obj) => ({
|
|
272
|
+
...obj,
|
|
273
|
+
});
|
|
274
|
+
exports.DeletePackageRequestFilterSensitiveLog = DeletePackageRequestFilterSensitiveLog;
|
|
275
|
+
const PackageOriginRestrictionsFilterSensitiveLog = (obj) => ({
|
|
276
|
+
...obj,
|
|
277
|
+
});
|
|
278
|
+
exports.PackageOriginRestrictionsFilterSensitiveLog = PackageOriginRestrictionsFilterSensitiveLog;
|
|
279
|
+
const PackageOriginConfigurationFilterSensitiveLog = (obj) => ({
|
|
280
|
+
...obj,
|
|
281
|
+
});
|
|
282
|
+
exports.PackageOriginConfigurationFilterSensitiveLog = PackageOriginConfigurationFilterSensitiveLog;
|
|
283
|
+
const PackageSummaryFilterSensitiveLog = (obj) => ({
|
|
284
|
+
...obj,
|
|
285
|
+
});
|
|
286
|
+
exports.PackageSummaryFilterSensitiveLog = PackageSummaryFilterSensitiveLog;
|
|
287
|
+
const DeletePackageResultFilterSensitiveLog = (obj) => ({
|
|
288
|
+
...obj,
|
|
289
|
+
});
|
|
290
|
+
exports.DeletePackageResultFilterSensitiveLog = DeletePackageResultFilterSensitiveLog;
|
|
271
291
|
const DeletePackageVersionsRequestFilterSensitiveLog = (obj) => ({
|
|
272
292
|
...obj,
|
|
273
293
|
});
|
|
@@ -304,14 +324,6 @@ const DescribePackageRequestFilterSensitiveLog = (obj) => ({
|
|
|
304
324
|
...obj,
|
|
305
325
|
});
|
|
306
326
|
exports.DescribePackageRequestFilterSensitiveLog = DescribePackageRequestFilterSensitiveLog;
|
|
307
|
-
const PackageOriginRestrictionsFilterSensitiveLog = (obj) => ({
|
|
308
|
-
...obj,
|
|
309
|
-
});
|
|
310
|
-
exports.PackageOriginRestrictionsFilterSensitiveLog = PackageOriginRestrictionsFilterSensitiveLog;
|
|
311
|
-
const PackageOriginConfigurationFilterSensitiveLog = (obj) => ({
|
|
312
|
-
...obj,
|
|
313
|
-
});
|
|
314
|
-
exports.PackageOriginConfigurationFilterSensitiveLog = PackageOriginConfigurationFilterSensitiveLog;
|
|
315
327
|
const PackageDescriptionFilterSensitiveLog = (obj) => ({
|
|
316
328
|
...obj,
|
|
317
329
|
});
|
|
@@ -432,10 +444,6 @@ const ListPackagesRequestFilterSensitiveLog = (obj) => ({
|
|
|
432
444
|
...obj,
|
|
433
445
|
});
|
|
434
446
|
exports.ListPackagesRequestFilterSensitiveLog = ListPackagesRequestFilterSensitiveLog;
|
|
435
|
-
const PackageSummaryFilterSensitiveLog = (obj) => ({
|
|
436
|
-
...obj,
|
|
437
|
-
});
|
|
438
|
-
exports.PackageSummaryFilterSensitiveLog = PackageSummaryFilterSensitiveLog;
|
|
439
447
|
const ListPackagesResultFilterSensitiveLog = (obj) => ({
|
|
440
448
|
...obj,
|
|
441
449
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateRepositoryCommand = exports.deserializeAws_restJson1UpdatePackageVersionsStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = exports.deserializeAws_restJson1PutPackageOriginConfigurationCommand = exports.deserializeAws_restJson1PutDomainPermissionsPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRepositoriesInDomainCommand = exports.deserializeAws_restJson1ListRepositoriesCommand = exports.deserializeAws_restJson1ListPackageVersionsCommand = exports.deserializeAws_restJson1ListPackageVersionDependenciesCommand = exports.deserializeAws_restJson1ListPackageVersionAssetsCommand = exports.deserializeAws_restJson1ListPackagesCommand = exports.deserializeAws_restJson1ListDomainsCommand = exports.deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand = exports.deserializeAws_restJson1GetRepositoryEndpointCommand = exports.deserializeAws_restJson1GetPackageVersionReadmeCommand = exports.deserializeAws_restJson1GetPackageVersionAssetCommand = exports.deserializeAws_restJson1GetDomainPermissionsPolicyCommand = exports.deserializeAws_restJson1GetAuthorizationTokenCommand = exports.deserializeAws_restJson1DisposePackageVersionsCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1DescribePackageVersionCommand = exports.deserializeAws_restJson1DescribePackageCommand = exports.deserializeAws_restJson1DescribeDomainCommand = exports.deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = exports.deserializeAws_restJson1DeleteRepositoryCommand = exports.deserializeAws_restJson1DeletePackageVersionsCommand = exports.deserializeAws_restJson1DeletePackageCommand = exports.deserializeAws_restJson1DeleteDomainPermissionsPolicyCommand = exports.deserializeAws_restJson1DeleteDomainCommand = exports.deserializeAws_restJson1CreateRepositoryCommand = exports.deserializeAws_restJson1CreateDomainCommand = exports.deserializeAws_restJson1CopyPackageVersionsCommand = exports.deserializeAws_restJson1AssociateExternalConnectionCommand = exports.serializeAws_restJson1UpdateRepositoryCommand = exports.serializeAws_restJson1UpdatePackageVersionsStatusCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = exports.serializeAws_restJson1PutPackageOriginConfigurationCommand = exports.serializeAws_restJson1PutDomainPermissionsPolicyCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRepositoriesInDomainCommand = exports.serializeAws_restJson1ListRepositoriesCommand = exports.serializeAws_restJson1ListPackageVersionsCommand = exports.serializeAws_restJson1ListPackageVersionDependenciesCommand = exports.serializeAws_restJson1ListPackageVersionAssetsCommand = exports.serializeAws_restJson1ListPackagesCommand = exports.serializeAws_restJson1ListDomainsCommand = exports.serializeAws_restJson1GetRepositoryPermissionsPolicyCommand = exports.serializeAws_restJson1GetRepositoryEndpointCommand = exports.serializeAws_restJson1GetPackageVersionReadmeCommand = exports.serializeAws_restJson1GetPackageVersionAssetCommand = exports.serializeAws_restJson1GetDomainPermissionsPolicyCommand = exports.serializeAws_restJson1GetAuthorizationTokenCommand = exports.serializeAws_restJson1DisposePackageVersionsCommand = exports.serializeAws_restJson1DisassociateExternalConnectionCommand = exports.serializeAws_restJson1DescribeRepositoryCommand = exports.serializeAws_restJson1DescribePackageVersionCommand = exports.serializeAws_restJson1DescribePackageCommand = exports.serializeAws_restJson1DescribeDomainCommand = exports.serializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = exports.serializeAws_restJson1DeleteRepositoryCommand = exports.serializeAws_restJson1DeletePackageVersionsCommand = exports.serializeAws_restJson1DeletePackageCommand = exports.serializeAws_restJson1DeleteDomainPermissionsPolicyCommand = exports.serializeAws_restJson1DeleteDomainCommand = exports.serializeAws_restJson1CreateRepositoryCommand = exports.serializeAws_restJson1CreateDomainCommand = exports.serializeAws_restJson1CopyPackageVersionsCommand = exports.serializeAws_restJson1AssociateExternalConnectionCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateRepositoryCommand = exports.deserializeAws_restJson1UpdatePackageVersionsStatusCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = exports.deserializeAws_restJson1PutPackageOriginConfigurationCommand = exports.deserializeAws_restJson1PutDomainPermissionsPolicyCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRepositoriesInDomainCommand = exports.deserializeAws_restJson1ListRepositoriesCommand = exports.deserializeAws_restJson1ListPackageVersionsCommand = exports.deserializeAws_restJson1ListPackageVersionDependenciesCommand = exports.deserializeAws_restJson1ListPackageVersionAssetsCommand = exports.deserializeAws_restJson1ListPackagesCommand = exports.deserializeAws_restJson1ListDomainsCommand = exports.deserializeAws_restJson1GetRepositoryPermissionsPolicyCommand = exports.deserializeAws_restJson1GetRepositoryEndpointCommand = exports.deserializeAws_restJson1GetPackageVersionReadmeCommand = exports.deserializeAws_restJson1GetPackageVersionAssetCommand = exports.deserializeAws_restJson1GetDomainPermissionsPolicyCommand = exports.deserializeAws_restJson1GetAuthorizationTokenCommand = exports.deserializeAws_restJson1DisposePackageVersionsCommand = exports.deserializeAws_restJson1DisassociateExternalConnectionCommand = exports.deserializeAws_restJson1DescribeRepositoryCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const CodeartifactServiceException_1 = require("../models/CodeartifactServiceException");
|
|
@@ -165,6 +165,31 @@ const serializeAws_restJson1DeleteDomainPermissionsPolicyCommand = async (input,
|
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
167
|
exports.serializeAws_restJson1DeleteDomainPermissionsPolicyCommand = serializeAws_restJson1DeleteDomainPermissionsPolicyCommand;
|
|
168
|
+
const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
|
|
169
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
170
|
+
const headers = {};
|
|
171
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
|
|
172
|
+
const query = map({
|
|
173
|
+
domain: [, (0, smithy_client_1.expectNonNull)(input.domain, `domain`)],
|
|
174
|
+
"domain-owner": [, input.domainOwner],
|
|
175
|
+
repository: [, (0, smithy_client_1.expectNonNull)(input.repository, `repository`)],
|
|
176
|
+
format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
|
|
177
|
+
namespace: [, input.namespace],
|
|
178
|
+
package: [, (0, smithy_client_1.expectNonNull)(input.package, `package`)],
|
|
179
|
+
});
|
|
180
|
+
let body;
|
|
181
|
+
return new protocol_http_1.HttpRequest({
|
|
182
|
+
protocol,
|
|
183
|
+
hostname,
|
|
184
|
+
port,
|
|
185
|
+
method: "DELETE",
|
|
186
|
+
headers,
|
|
187
|
+
path: resolvedPath,
|
|
188
|
+
query,
|
|
189
|
+
body,
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
exports.serializeAws_restJson1DeletePackageCommand = serializeAws_restJson1DeletePackageCommand;
|
|
168
193
|
const serializeAws_restJson1DeletePackageVersionsCommand = async (input, context) => {
|
|
169
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
170
195
|
const headers = {
|
|
@@ -1242,6 +1267,55 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
|
|
|
1242
1267
|
});
|
|
1243
1268
|
}
|
|
1244
1269
|
};
|
|
1270
|
+
const deserializeAws_restJson1DeletePackageCommand = async (output, context) => {
|
|
1271
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1272
|
+
return deserializeAws_restJson1DeletePackageCommandError(output, context);
|
|
1273
|
+
}
|
|
1274
|
+
const contents = map({
|
|
1275
|
+
$metadata: deserializeMetadata(output),
|
|
1276
|
+
});
|
|
1277
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1278
|
+
if (data.deletedPackage != null) {
|
|
1279
|
+
contents.deletedPackage = deserializeAws_restJson1PackageSummary(data.deletedPackage, context);
|
|
1280
|
+
}
|
|
1281
|
+
return contents;
|
|
1282
|
+
};
|
|
1283
|
+
exports.deserializeAws_restJson1DeletePackageCommand = deserializeAws_restJson1DeletePackageCommand;
|
|
1284
|
+
const deserializeAws_restJson1DeletePackageCommandError = async (output, context) => {
|
|
1285
|
+
const parsedOutput = {
|
|
1286
|
+
...output,
|
|
1287
|
+
body: await parseErrorBody(output.body, context),
|
|
1288
|
+
};
|
|
1289
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1290
|
+
switch (errorCode) {
|
|
1291
|
+
case "AccessDeniedException":
|
|
1292
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1293
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1294
|
+
case "ConflictException":
|
|
1295
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1296
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1297
|
+
case "InternalServerException":
|
|
1298
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1299
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1300
|
+
case "ResourceNotFoundException":
|
|
1301
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1302
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1303
|
+
case "ThrottlingException":
|
|
1304
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1305
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1306
|
+
case "ValidationException":
|
|
1307
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1308
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1309
|
+
default:
|
|
1310
|
+
const parsedBody = parsedOutput.body;
|
|
1311
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1312
|
+
output,
|
|
1313
|
+
parsedBody,
|
|
1314
|
+
exceptionCtor: CodeartifactServiceException_1.CodeartifactServiceException,
|
|
1315
|
+
errorCode,
|
|
1316
|
+
});
|
|
1317
|
+
}
|
|
1318
|
+
};
|
|
1245
1319
|
const deserializeAws_restJson1DeletePackageVersionsCommand = async (output, context) => {
|
|
1246
1320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1247
1321
|
return deserializeAws_restJson1DeletePackageVersionsCommandError(output, context);
|
package/dist-es/Codeartifact.js
CHANGED
|
@@ -5,6 +5,7 @@ import { CreateDomainCommand, } from "./commands/CreateDomainCommand";
|
|
|
5
5
|
import { CreateRepositoryCommand, } from "./commands/CreateRepositoryCommand";
|
|
6
6
|
import { DeleteDomainCommand, } from "./commands/DeleteDomainCommand";
|
|
7
7
|
import { DeleteDomainPermissionsPolicyCommand, } from "./commands/DeleteDomainPermissionsPolicyCommand";
|
|
8
|
+
import { DeletePackageCommand, } from "./commands/DeletePackageCommand";
|
|
8
9
|
import { DeletePackageVersionsCommand, } from "./commands/DeletePackageVersionsCommand";
|
|
9
10
|
import { DeleteRepositoryCommand, } from "./commands/DeleteRepositoryCommand";
|
|
10
11
|
import { DeleteRepositoryPermissionsPolicyCommand, } from "./commands/DeleteRepositoryPermissionsPolicyCommand";
|
|
@@ -120,6 +121,20 @@ export class Codeartifact extends CodeartifactClient {
|
|
|
120
121
|
return this.send(command, optionsOrCb);
|
|
121
122
|
}
|
|
122
123
|
}
|
|
124
|
+
deletePackage(args, optionsOrCb, cb) {
|
|
125
|
+
const command = new DeletePackageCommand(args);
|
|
126
|
+
if (typeof optionsOrCb === "function") {
|
|
127
|
+
this.send(command, optionsOrCb);
|
|
128
|
+
}
|
|
129
|
+
else if (typeof cb === "function") {
|
|
130
|
+
if (typeof optionsOrCb !== "object")
|
|
131
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
return this.send(command, optionsOrCb);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
123
138
|
deletePackageVersions(args, optionsOrCb, cb) {
|
|
124
139
|
const command = new DeletePackageVersionsCommand(args);
|
|
125
140
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DeletePackageRequestFilterSensitiveLog, DeletePackageResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DeletePackageCommand, serializeAws_restJson1DeletePackageCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class DeletePackageCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DeletePackageCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "CodeartifactClient";
|
|
25
|
+
const commandName = "DeletePackageCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: DeletePackageRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: DeletePackageResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1DeletePackageCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1DeletePackageCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./CreateDomainCommand";
|
|
|
4
4
|
export * from "./CreateRepositoryCommand";
|
|
5
5
|
export * from "./DeleteDomainCommand";
|
|
6
6
|
export * from "./DeleteDomainPermissionsPolicyCommand";
|
|
7
|
+
export * from "./DeletePackageCommand";
|
|
7
8
|
export * from "./DeletePackageVersionsCommand";
|
|
8
9
|
export * from "./DeleteRepositoryCommand";
|
|
9
10
|
export * from "./DeleteRepositoryPermissionsPolicyCommand";
|
|
@@ -234,6 +234,21 @@ export const ResourcePolicyFilterSensitiveLog = (obj) => ({
|
|
|
234
234
|
export const DeleteDomainPermissionsPolicyResultFilterSensitiveLog = (obj) => ({
|
|
235
235
|
...obj,
|
|
236
236
|
});
|
|
237
|
+
export const DeletePackageRequestFilterSensitiveLog = (obj) => ({
|
|
238
|
+
...obj,
|
|
239
|
+
});
|
|
240
|
+
export const PackageOriginRestrictionsFilterSensitiveLog = (obj) => ({
|
|
241
|
+
...obj,
|
|
242
|
+
});
|
|
243
|
+
export const PackageOriginConfigurationFilterSensitiveLog = (obj) => ({
|
|
244
|
+
...obj,
|
|
245
|
+
});
|
|
246
|
+
export const PackageSummaryFilterSensitiveLog = (obj) => ({
|
|
247
|
+
...obj,
|
|
248
|
+
});
|
|
249
|
+
export const DeletePackageResultFilterSensitiveLog = (obj) => ({
|
|
250
|
+
...obj,
|
|
251
|
+
});
|
|
237
252
|
export const DeletePackageVersionsRequestFilterSensitiveLog = (obj) => ({
|
|
238
253
|
...obj,
|
|
239
254
|
});
|
|
@@ -261,12 +276,6 @@ export const DescribeDomainResultFilterSensitiveLog = (obj) => ({
|
|
|
261
276
|
export const DescribePackageRequestFilterSensitiveLog = (obj) => ({
|
|
262
277
|
...obj,
|
|
263
278
|
});
|
|
264
|
-
export const PackageOriginRestrictionsFilterSensitiveLog = (obj) => ({
|
|
265
|
-
...obj,
|
|
266
|
-
});
|
|
267
|
-
export const PackageOriginConfigurationFilterSensitiveLog = (obj) => ({
|
|
268
|
-
...obj,
|
|
269
|
-
});
|
|
270
279
|
export const PackageDescriptionFilterSensitiveLog = (obj) => ({
|
|
271
280
|
...obj,
|
|
272
281
|
});
|
|
@@ -357,9 +366,6 @@ export const ListDomainsResultFilterSensitiveLog = (obj) => ({
|
|
|
357
366
|
export const ListPackagesRequestFilterSensitiveLog = (obj) => ({
|
|
358
367
|
...obj,
|
|
359
368
|
});
|
|
360
|
-
export const PackageSummaryFilterSensitiveLog = (obj) => ({
|
|
361
|
-
...obj,
|
|
362
|
-
});
|
|
363
369
|
export const ListPackagesResultFilterSensitiveLog = (obj) => ({
|
|
364
370
|
...obj,
|
|
365
371
|
});
|
|
@@ -155,6 +155,30 @@ export const serializeAws_restJson1DeleteDomainPermissionsPolicyCommand = async
|
|
|
155
155
|
body,
|
|
156
156
|
});
|
|
157
157
|
};
|
|
158
|
+
export const serializeAws_restJson1DeletePackageCommand = async (input, context) => {
|
|
159
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
160
|
+
const headers = {};
|
|
161
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
|
|
162
|
+
const query = map({
|
|
163
|
+
domain: [, __expectNonNull(input.domain, `domain`)],
|
|
164
|
+
"domain-owner": [, input.domainOwner],
|
|
165
|
+
repository: [, __expectNonNull(input.repository, `repository`)],
|
|
166
|
+
format: [, __expectNonNull(input.format, `format`)],
|
|
167
|
+
namespace: [, input.namespace],
|
|
168
|
+
package: [, __expectNonNull(input.package, `package`)],
|
|
169
|
+
});
|
|
170
|
+
let body;
|
|
171
|
+
return new __HttpRequest({
|
|
172
|
+
protocol,
|
|
173
|
+
hostname,
|
|
174
|
+
port,
|
|
175
|
+
method: "DELETE",
|
|
176
|
+
headers,
|
|
177
|
+
path: resolvedPath,
|
|
178
|
+
query,
|
|
179
|
+
body,
|
|
180
|
+
});
|
|
181
|
+
};
|
|
158
182
|
export const serializeAws_restJson1DeletePackageVersionsCommand = async (input, context) => {
|
|
159
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
160
184
|
const headers = {
|
|
@@ -1196,6 +1220,54 @@ const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommandError = async
|
|
|
1196
1220
|
});
|
|
1197
1221
|
}
|
|
1198
1222
|
};
|
|
1223
|
+
export const deserializeAws_restJson1DeletePackageCommand = async (output, context) => {
|
|
1224
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
|
+
return deserializeAws_restJson1DeletePackageCommandError(output, context);
|
|
1226
|
+
}
|
|
1227
|
+
const contents = map({
|
|
1228
|
+
$metadata: deserializeMetadata(output),
|
|
1229
|
+
});
|
|
1230
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1231
|
+
if (data.deletedPackage != null) {
|
|
1232
|
+
contents.deletedPackage = deserializeAws_restJson1PackageSummary(data.deletedPackage, context);
|
|
1233
|
+
}
|
|
1234
|
+
return contents;
|
|
1235
|
+
};
|
|
1236
|
+
const deserializeAws_restJson1DeletePackageCommandError = async (output, context) => {
|
|
1237
|
+
const parsedOutput = {
|
|
1238
|
+
...output,
|
|
1239
|
+
body: await parseErrorBody(output.body, context),
|
|
1240
|
+
};
|
|
1241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1242
|
+
switch (errorCode) {
|
|
1243
|
+
case "AccessDeniedException":
|
|
1244
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1245
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1246
|
+
case "ConflictException":
|
|
1247
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
1248
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1249
|
+
case "InternalServerException":
|
|
1250
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1251
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1252
|
+
case "ResourceNotFoundException":
|
|
1253
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1254
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1255
|
+
case "ThrottlingException":
|
|
1256
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1257
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1258
|
+
case "ValidationException":
|
|
1259
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1260
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1261
|
+
default:
|
|
1262
|
+
const parsedBody = parsedOutput.body;
|
|
1263
|
+
throwDefaultError({
|
|
1264
|
+
output,
|
|
1265
|
+
parsedBody,
|
|
1266
|
+
exceptionCtor: __BaseException,
|
|
1267
|
+
errorCode,
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
};
|
|
1199
1271
|
export const deserializeAws_restJson1DeletePackageVersionsCommand = async (output, context) => {
|
|
1200
1272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1201
1273
|
return deserializeAws_restJson1DeletePackageVersionsCommandError(output, context);
|
|
@@ -6,6 +6,7 @@ import { CreateDomainCommandInput, CreateDomainCommandOutput } from "./commands/
|
|
|
6
6
|
import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand";
|
|
7
7
|
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
|
|
8
8
|
import { DeleteDomainPermissionsPolicyCommandInput, DeleteDomainPermissionsPolicyCommandOutput } from "./commands/DeleteDomainPermissionsPolicyCommand";
|
|
9
|
+
import { DeletePackageCommandInput, DeletePackageCommandOutput } from "./commands/DeletePackageCommand";
|
|
9
10
|
import { DeletePackageVersionsCommandInput, DeletePackageVersionsCommandOutput } from "./commands/DeletePackageVersionsCommand";
|
|
10
11
|
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
|
|
11
12
|
import { DeleteRepositoryPermissionsPolicyCommandInput, DeleteRepositoryPermissionsPolicyCommandOutput } from "./commands/DeleteRepositoryPermissionsPolicyCommand";
|
|
@@ -368,12 +369,19 @@ export declare class Codeartifact extends CodeartifactClient {
|
|
|
368
369
|
deleteDomainPermissionsPolicy(args: DeleteDomainPermissionsPolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDomainPermissionsPolicyCommandOutput>;
|
|
369
370
|
deleteDomainPermissionsPolicy(args: DeleteDomainPermissionsPolicyCommandInput, cb: (err: any, data?: DeleteDomainPermissionsPolicyCommandOutput) => void): void;
|
|
370
371
|
deleteDomainPermissionsPolicy(args: DeleteDomainPermissionsPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDomainPermissionsPolicyCommandOutput) => void): void;
|
|
372
|
+
/**
|
|
373
|
+
* <p>Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the
|
|
374
|
+
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html">DeletePackageVersions</a> API.</p>
|
|
375
|
+
*/
|
|
376
|
+
deletePackage(args: DeletePackageCommandInput, options?: __HttpHandlerOptions): Promise<DeletePackageCommandOutput>;
|
|
377
|
+
deletePackage(args: DeletePackageCommandInput, cb: (err: any, data?: DeletePackageCommandOutput) => void): void;
|
|
378
|
+
deletePackage(args: DeletePackageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePackageCommandOutput) => void): void;
|
|
371
379
|
/**
|
|
372
380
|
* <p> Deletes one or more versions of a package. A deleted package version cannot be restored
|
|
373
381
|
* in your repository. If you want to remove a package version from your repository and be able
|
|
374
382
|
* to restore it later, set its status to <code>Archived</code>. Archived packages cannot be
|
|
375
383
|
* downloaded from a repository and don't show up with list package APIs (for example,
|
|
376
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">
|
|
384
|
+
* <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>
|
|
377
385
|
*/
|
|
378
386
|
deletePackageVersions(args: DeletePackageVersionsCommandInput, options?: __HttpHandlerOptions): Promise<DeletePackageVersionsCommandOutput>;
|
|
379
387
|
deletePackageVersions(args: DeletePackageVersionsCommandInput, cb: (err: any, data?: DeletePackageVersionsCommandOutput) => void): void;
|
|
@@ -608,7 +616,7 @@ export declare class Codeartifact extends CodeartifactClient {
|
|
|
608
616
|
* <p>
|
|
609
617
|
* Returns a list of
|
|
610
618
|
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html">PackageVersionSummary</a>
|
|
611
|
-
* objects for package versions in a repository that match the request parameters.
|
|
619
|
+
* objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling <code>list-package-versions</code> with no <code>--status</code> parameter.
|
|
612
620
|
* </p>
|
|
613
621
|
*/
|
|
614
622
|
listPackageVersions(args: ListPackageVersionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPackageVersionsCommandOutput>;
|
|
@@ -13,6 +13,7 @@ import { CreateDomainCommandInput, CreateDomainCommandOutput } from "./commands/
|
|
|
13
13
|
import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand";
|
|
14
14
|
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "./commands/DeleteDomainCommand";
|
|
15
15
|
import { DeleteDomainPermissionsPolicyCommandInput, DeleteDomainPermissionsPolicyCommandOutput } from "./commands/DeleteDomainPermissionsPolicyCommand";
|
|
16
|
+
import { DeletePackageCommandInput, DeletePackageCommandOutput } from "./commands/DeletePackageCommand";
|
|
16
17
|
import { DeletePackageVersionsCommandInput, DeletePackageVersionsCommandOutput } from "./commands/DeletePackageVersionsCommand";
|
|
17
18
|
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand";
|
|
18
19
|
import { DeleteRepositoryPermissionsPolicyCommandInput, DeleteRepositoryPermissionsPolicyCommandOutput } from "./commands/DeleteRepositoryPermissionsPolicyCommand";
|
|
@@ -44,8 +45,8 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
44
45
|
import { UpdatePackageVersionsStatusCommandInput, UpdatePackageVersionsStatusCommandOutput } from "./commands/UpdatePackageVersionsStatusCommand";
|
|
45
46
|
import { UpdateRepositoryCommandInput, UpdateRepositoryCommandOutput } from "./commands/UpdateRepositoryCommand";
|
|
46
47
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
47
|
-
export declare type ServiceInputTypes = AssociateExternalConnectionCommandInput | CopyPackageVersionsCommandInput | CreateDomainCommandInput | CreateRepositoryCommandInput | DeleteDomainCommandInput | DeleteDomainPermissionsPolicyCommandInput | DeletePackageVersionsCommandInput | DeleteRepositoryCommandInput | DeleteRepositoryPermissionsPolicyCommandInput | DescribeDomainCommandInput | DescribePackageCommandInput | DescribePackageVersionCommandInput | DescribeRepositoryCommandInput | DisassociateExternalConnectionCommandInput | DisposePackageVersionsCommandInput | GetAuthorizationTokenCommandInput | GetDomainPermissionsPolicyCommandInput | GetPackageVersionAssetCommandInput | GetPackageVersionReadmeCommandInput | GetRepositoryEndpointCommandInput | GetRepositoryPermissionsPolicyCommandInput | ListDomainsCommandInput | ListPackageVersionAssetsCommandInput | ListPackageVersionDependenciesCommandInput | ListPackageVersionsCommandInput | ListPackagesCommandInput | ListRepositoriesCommandInput | ListRepositoriesInDomainCommandInput | ListTagsForResourceCommandInput | PutDomainPermissionsPolicyCommandInput | PutPackageOriginConfigurationCommandInput | PutRepositoryPermissionsPolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePackageVersionsStatusCommandInput | UpdateRepositoryCommandInput;
|
|
48
|
-
export declare type ServiceOutputTypes = AssociateExternalConnectionCommandOutput | CopyPackageVersionsCommandOutput | CreateDomainCommandOutput | CreateRepositoryCommandOutput | DeleteDomainCommandOutput | DeleteDomainPermissionsPolicyCommandOutput | DeletePackageVersionsCommandOutput | DeleteRepositoryCommandOutput | DeleteRepositoryPermissionsPolicyCommandOutput | DescribeDomainCommandOutput | DescribePackageCommandOutput | DescribePackageVersionCommandOutput | DescribeRepositoryCommandOutput | DisassociateExternalConnectionCommandOutput | DisposePackageVersionsCommandOutput | GetAuthorizationTokenCommandOutput | GetDomainPermissionsPolicyCommandOutput | GetPackageVersionAssetCommandOutput | GetPackageVersionReadmeCommandOutput | GetRepositoryEndpointCommandOutput | GetRepositoryPermissionsPolicyCommandOutput | ListDomainsCommandOutput | ListPackageVersionAssetsCommandOutput | ListPackageVersionDependenciesCommandOutput | ListPackageVersionsCommandOutput | ListPackagesCommandOutput | ListRepositoriesCommandOutput | ListRepositoriesInDomainCommandOutput | ListTagsForResourceCommandOutput | PutDomainPermissionsPolicyCommandOutput | PutPackageOriginConfigurationCommandOutput | PutRepositoryPermissionsPolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePackageVersionsStatusCommandOutput | UpdateRepositoryCommandOutput;
|
|
48
|
+
export declare type ServiceInputTypes = AssociateExternalConnectionCommandInput | CopyPackageVersionsCommandInput | CreateDomainCommandInput | CreateRepositoryCommandInput | DeleteDomainCommandInput | DeleteDomainPermissionsPolicyCommandInput | DeletePackageCommandInput | DeletePackageVersionsCommandInput | DeleteRepositoryCommandInput | DeleteRepositoryPermissionsPolicyCommandInput | DescribeDomainCommandInput | DescribePackageCommandInput | DescribePackageVersionCommandInput | DescribeRepositoryCommandInput | DisassociateExternalConnectionCommandInput | DisposePackageVersionsCommandInput | GetAuthorizationTokenCommandInput | GetDomainPermissionsPolicyCommandInput | GetPackageVersionAssetCommandInput | GetPackageVersionReadmeCommandInput | GetRepositoryEndpointCommandInput | GetRepositoryPermissionsPolicyCommandInput | ListDomainsCommandInput | ListPackageVersionAssetsCommandInput | ListPackageVersionDependenciesCommandInput | ListPackageVersionsCommandInput | ListPackagesCommandInput | ListRepositoriesCommandInput | ListRepositoriesInDomainCommandInput | ListTagsForResourceCommandInput | PutDomainPermissionsPolicyCommandInput | PutPackageOriginConfigurationCommandInput | PutRepositoryPermissionsPolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePackageVersionsStatusCommandInput | UpdateRepositoryCommandInput;
|
|
49
|
+
export declare type ServiceOutputTypes = AssociateExternalConnectionCommandOutput | CopyPackageVersionsCommandOutput | CreateDomainCommandOutput | CreateRepositoryCommandOutput | DeleteDomainCommandOutput | DeleteDomainPermissionsPolicyCommandOutput | DeletePackageCommandOutput | DeletePackageVersionsCommandOutput | DeleteRepositoryCommandOutput | DeleteRepositoryPermissionsPolicyCommandOutput | DescribeDomainCommandOutput | DescribePackageCommandOutput | DescribePackageVersionCommandOutput | DescribeRepositoryCommandOutput | DisassociateExternalConnectionCommandOutput | DisposePackageVersionsCommandOutput | GetAuthorizationTokenCommandOutput | GetDomainPermissionsPolicyCommandOutput | GetPackageVersionAssetCommandOutput | GetPackageVersionReadmeCommandOutput | GetRepositoryEndpointCommandOutput | GetRepositoryPermissionsPolicyCommandOutput | ListDomainsCommandOutput | ListPackageVersionAssetsCommandOutput | ListPackageVersionDependenciesCommandOutput | ListPackageVersionsCommandOutput | ListPackagesCommandOutput | ListRepositoriesCommandOutput | ListRepositoriesInDomainCommandOutput | ListTagsForResourceCommandOutput | PutDomainPermissionsPolicyCommandOutput | PutPackageOriginConfigurationCommandOutput | PutRepositoryPermissionsPolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePackageVersionsStatusCommandOutput | UpdateRepositoryCommandOutput;
|
|
49
50
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
50
51
|
/**
|
|
51
52
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
5
|
+
import { DeletePackageRequest, DeletePackageResult } from "../models/models_0";
|
|
6
|
+
export interface DeletePackageCommandInput extends DeletePackageRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface DeletePackageCommandOutput extends DeletePackageResult, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Deletes a package and all associated package versions. A deleted package cannot be restored. To delete one or more package versions, use the
|
|
12
|
+
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DeletePackageVersions.html">DeletePackageVersions</a> API.</p>
|
|
13
|
+
* @example
|
|
14
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
+
* ```javascript
|
|
16
|
+
* import { CodeartifactClient, DeletePackageCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
17
|
+
* // const { CodeartifactClient, DeletePackageCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
18
|
+
* const client = new CodeartifactClient(config);
|
|
19
|
+
* const command = new DeletePackageCommand(input);
|
|
20
|
+
* const response = await client.send(command);
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @see {@link DeletePackageCommandInput} for command's `input` shape.
|
|
24
|
+
* @see {@link DeletePackageCommandOutput} for command's `response` shape.
|
|
25
|
+
* @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export declare class DeletePackageCommand extends $Command<DeletePackageCommandInput, DeletePackageCommandOutput, CodeartifactClientResolvedConfig> {
|
|
29
|
+
readonly input: DeletePackageCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: DeletePackageCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeletePackageCommandInput, DeletePackageCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -12,7 +12,7 @@ export interface DeletePackageVersionsCommandOutput extends DeletePackageVersion
|
|
|
12
12
|
* in your repository. If you want to remove a package version from your repository and be able
|
|
13
13
|
* to restore it later, set its status to <code>Archived</code>. Archived packages cannot be
|
|
14
14
|
* downloaded from a repository and don't show up with list package APIs (for example,
|
|
15
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">
|
|
15
|
+
* <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>
|
|
16
16
|
* @example
|
|
17
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
18
18
|
* ```javascript
|
|
@@ -11,7 +11,7 @@ export interface ListPackageVersionsCommandOutput extends ListPackageVersionsRes
|
|
|
11
11
|
* <p>
|
|
12
12
|
* Returns a list of
|
|
13
13
|
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageVersionSummary.html">PackageVersionSummary</a>
|
|
14
|
-
* objects for package versions in a repository that match the request parameters.
|
|
14
|
+
* objects for package versions in a repository that match the request parameters. Package versions of all statuses will be returned by default when calling <code>list-package-versions</code> with no <code>--status</code> parameter.
|
|
15
15
|
* </p>
|
|
16
16
|
* @example
|
|
17
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -4,6 +4,7 @@ export * from "./CreateDomainCommand";
|
|
|
4
4
|
export * from "./CreateRepositoryCommand";
|
|
5
5
|
export * from "./DeleteDomainCommand";
|
|
6
6
|
export * from "./DeleteDomainPermissionsPolicyCommand";
|
|
7
|
+
export * from "./DeletePackageCommand";
|
|
7
8
|
export * from "./DeletePackageVersionsCommand";
|
|
8
9
|
export * from "./DeleteRepositoryCommand";
|
|
9
10
|
export * from "./DeleteRepositoryPermissionsPolicyCommand";
|
|
@@ -854,6 +854,133 @@ export interface DeleteDomainPermissionsPolicyResult {
|
|
|
854
854
|
*/
|
|
855
855
|
policy?: ResourcePolicy;
|
|
856
856
|
}
|
|
857
|
+
export interface DeletePackageRequest {
|
|
858
|
+
/**
|
|
859
|
+
* <p>The name of the domain that contains the package to delete.</p>
|
|
860
|
+
*/
|
|
861
|
+
domain: string | undefined;
|
|
862
|
+
/**
|
|
863
|
+
* <p>
|
|
864
|
+
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
|
|
865
|
+
* dashes or spaces.
|
|
866
|
+
* </p>
|
|
867
|
+
*/
|
|
868
|
+
domainOwner?: string;
|
|
869
|
+
/**
|
|
870
|
+
* <p>The name of the repository that contains the package to delete.</p>
|
|
871
|
+
*/
|
|
872
|
+
repository: string | undefined;
|
|
873
|
+
/**
|
|
874
|
+
* <p>The format of the requested package to delete.</p>
|
|
875
|
+
*/
|
|
876
|
+
format: PackageFormat | string | undefined;
|
|
877
|
+
/**
|
|
878
|
+
* <p>The namespace of the package to delete. The package component that specifies its namespace depends on its type. For example:</p>
|
|
879
|
+
* <ul>
|
|
880
|
+
* <li>
|
|
881
|
+
* <p>
|
|
882
|
+
* The namespace of a Maven package is its <code>groupId</code>. The namespace is required when deleting Maven package versions.
|
|
883
|
+
* </p>
|
|
884
|
+
* </li>
|
|
885
|
+
* <li>
|
|
886
|
+
* <p>
|
|
887
|
+
* The namespace of an npm package is its <code>scope</code>.
|
|
888
|
+
* </p>
|
|
889
|
+
* </li>
|
|
890
|
+
* <li>
|
|
891
|
+
* <p>
|
|
892
|
+
* Python and NuGet packages do not contain corresponding components, packages of those formats do not have a namespace.
|
|
893
|
+
* </p>
|
|
894
|
+
* </li>
|
|
895
|
+
* </ul>
|
|
896
|
+
*/
|
|
897
|
+
namespace?: string;
|
|
898
|
+
/**
|
|
899
|
+
* <p>The name of the package to delete.</p>
|
|
900
|
+
*/
|
|
901
|
+
package: string | undefined;
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* <p>Details about the origin restrictions set on the package.
|
|
905
|
+
* The package origin restrictions determine how new versions of a package
|
|
906
|
+
* can be added to a specific repository.</p>
|
|
907
|
+
*/
|
|
908
|
+
export interface PackageOriginRestrictions {
|
|
909
|
+
/**
|
|
910
|
+
* <p>The package origin configuration that determines if new versions of the package can be published directly to the repository.</p>
|
|
911
|
+
*/
|
|
912
|
+
publish: AllowPublish | string | undefined;
|
|
913
|
+
/**
|
|
914
|
+
* <p>The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.</p>
|
|
915
|
+
*/
|
|
916
|
+
upstream: AllowUpstream | string | undefined;
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* <p>Details about the package origin configuration of a package.</p>
|
|
920
|
+
*/
|
|
921
|
+
export interface PackageOriginConfiguration {
|
|
922
|
+
/**
|
|
923
|
+
* <p>A <code>PackageOriginRestrictions</code> object that contains information
|
|
924
|
+
* about the upstream and publish package origin configuration for the package.</p>
|
|
925
|
+
*/
|
|
926
|
+
restrictions?: PackageOriginRestrictions;
|
|
927
|
+
}
|
|
928
|
+
/**
|
|
929
|
+
* <p>
|
|
930
|
+
* Details about a package, including its format, namespace, and name.
|
|
931
|
+
* </p>
|
|
932
|
+
*/
|
|
933
|
+
export interface PackageSummary {
|
|
934
|
+
/**
|
|
935
|
+
* <p>
|
|
936
|
+
* The format of the package.
|
|
937
|
+
* </p>
|
|
938
|
+
*/
|
|
939
|
+
format?: PackageFormat | string;
|
|
940
|
+
/**
|
|
941
|
+
* <p>The namespace of the package. The package component that specifies its
|
|
942
|
+
* namespace depends on its type. For example:</p>
|
|
943
|
+
* <ul>
|
|
944
|
+
* <li>
|
|
945
|
+
* <p>
|
|
946
|
+
* The namespace of a Maven package is its <code>groupId</code>.
|
|
947
|
+
* </p>
|
|
948
|
+
* </li>
|
|
949
|
+
* <li>
|
|
950
|
+
* <p>
|
|
951
|
+
* The namespace of an npm package is its <code>scope</code>.
|
|
952
|
+
* </p>
|
|
953
|
+
* </li>
|
|
954
|
+
* <li>
|
|
955
|
+
* <p>
|
|
956
|
+
* Python and NuGet packages do not contain a corresponding component, packages
|
|
957
|
+
* of those formats do not have a namespace.
|
|
958
|
+
* </p>
|
|
959
|
+
* </li>
|
|
960
|
+
* </ul>
|
|
961
|
+
*/
|
|
962
|
+
namespace?: string;
|
|
963
|
+
/**
|
|
964
|
+
* <p>
|
|
965
|
+
* The name of the package.
|
|
966
|
+
* </p>
|
|
967
|
+
*/
|
|
968
|
+
package?: string;
|
|
969
|
+
/**
|
|
970
|
+
* <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageOriginConfiguration.html">PackageOriginConfiguration</a>
|
|
971
|
+
* object that contains a <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageOriginRestrictions.html">PackageOriginRestrictions</a> object
|
|
972
|
+
* that contains information about the upstream and publish package origin restrictions.</p>
|
|
973
|
+
*/
|
|
974
|
+
originConfiguration?: PackageOriginConfiguration;
|
|
975
|
+
}
|
|
976
|
+
export interface DeletePackageResult {
|
|
977
|
+
/**
|
|
978
|
+
* <p>
|
|
979
|
+
* Details about a package, including its format, namespace, and name.
|
|
980
|
+
* </p>
|
|
981
|
+
*/
|
|
982
|
+
deletedPackage?: PackageSummary;
|
|
983
|
+
}
|
|
857
984
|
export interface DeletePackageVersionsRequest {
|
|
858
985
|
/**
|
|
859
986
|
* <p>
|
|
@@ -1105,31 +1232,6 @@ export interface DescribePackageRequest {
|
|
|
1105
1232
|
*/
|
|
1106
1233
|
package: string | undefined;
|
|
1107
1234
|
}
|
|
1108
|
-
/**
|
|
1109
|
-
* <p>Details about the origin restrictions set on the package.
|
|
1110
|
-
* The package origin restrictions determine how new versions of a package
|
|
1111
|
-
* can be added to a specific repository.</p>
|
|
1112
|
-
*/
|
|
1113
|
-
export interface PackageOriginRestrictions {
|
|
1114
|
-
/**
|
|
1115
|
-
* <p>The package origin configuration that determines if new versions of the package can be published directly to the repository.</p>
|
|
1116
|
-
*/
|
|
1117
|
-
publish: AllowPublish | string | undefined;
|
|
1118
|
-
/**
|
|
1119
|
-
* <p>The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.</p>
|
|
1120
|
-
*/
|
|
1121
|
-
upstream: AllowUpstream | string | undefined;
|
|
1122
|
-
}
|
|
1123
|
-
/**
|
|
1124
|
-
* <p>Details about the package origin configuration of a package.</p>
|
|
1125
|
-
*/
|
|
1126
|
-
export interface PackageOriginConfiguration {
|
|
1127
|
-
/**
|
|
1128
|
-
* <p>A <code>PackageOriginRestrictions</code> object that contains information
|
|
1129
|
-
* about the upstream and publish package origin configuration for the package.</p>
|
|
1130
|
-
*/
|
|
1131
|
-
restrictions?: PackageOriginRestrictions;
|
|
1132
|
-
}
|
|
1133
1235
|
/**
|
|
1134
1236
|
* <p>Details about a package.</p>
|
|
1135
1237
|
*/
|
|
@@ -2023,8 +2125,8 @@ export interface ListPackagesRequest {
|
|
|
2023
2125
|
*/
|
|
2024
2126
|
format?: PackageFormat | string;
|
|
2025
2127
|
/**
|
|
2026
|
-
* <p>The namespace
|
|
2027
|
-
*
|
|
2128
|
+
* <p>The namespace used to filter requested packages. Only packages with the provided namespace will be returned.
|
|
2129
|
+
* The package component that specifies its namespace depends on its type. For example:</p>
|
|
2028
2130
|
* <ul>
|
|
2029
2131
|
* <li>
|
|
2030
2132
|
* <p>
|
|
@@ -2076,56 +2178,6 @@ export interface ListPackagesRequest {
|
|
|
2076
2178
|
*/
|
|
2077
2179
|
upstream?: AllowUpstream | string;
|
|
2078
2180
|
}
|
|
2079
|
-
/**
|
|
2080
|
-
* <p>
|
|
2081
|
-
* Details about a package, including its format, namespace, and name. The
|
|
2082
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackages.html">ListPackages</a>
|
|
2083
|
-
* operation returns a list of <code>PackageSummary</code> objects.
|
|
2084
|
-
* </p>
|
|
2085
|
-
*/
|
|
2086
|
-
export interface PackageSummary {
|
|
2087
|
-
/**
|
|
2088
|
-
* <p>
|
|
2089
|
-
* The format of the package.
|
|
2090
|
-
* </p>
|
|
2091
|
-
*/
|
|
2092
|
-
format?: PackageFormat | string;
|
|
2093
|
-
/**
|
|
2094
|
-
* <p>The namespace of the package. The package component that specifies its
|
|
2095
|
-
* namespace depends on its type. For example:</p>
|
|
2096
|
-
* <ul>
|
|
2097
|
-
* <li>
|
|
2098
|
-
* <p>
|
|
2099
|
-
* The namespace of a Maven package is its <code>groupId</code>.
|
|
2100
|
-
* </p>
|
|
2101
|
-
* </li>
|
|
2102
|
-
* <li>
|
|
2103
|
-
* <p>
|
|
2104
|
-
* The namespace of an npm package is its <code>scope</code>.
|
|
2105
|
-
* </p>
|
|
2106
|
-
* </li>
|
|
2107
|
-
* <li>
|
|
2108
|
-
* <p>
|
|
2109
|
-
* Python and NuGet packages do not contain a corresponding component, packages
|
|
2110
|
-
* of those formats do not have a namespace.
|
|
2111
|
-
* </p>
|
|
2112
|
-
* </li>
|
|
2113
|
-
* </ul>
|
|
2114
|
-
*/
|
|
2115
|
-
namespace?: string;
|
|
2116
|
-
/**
|
|
2117
|
-
* <p>
|
|
2118
|
-
* The name of the package.
|
|
2119
|
-
* </p>
|
|
2120
|
-
*/
|
|
2121
|
-
package?: string;
|
|
2122
|
-
/**
|
|
2123
|
-
* <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageOriginConfiguration.html">PackageOriginConfiguration</a>
|
|
2124
|
-
* object that contains a <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageOriginRestrictions.html">PackageOriginRestrictions</a> object
|
|
2125
|
-
* that contains information about the upstream and publish package origin restrictions.</p>
|
|
2126
|
-
*/
|
|
2127
|
-
originConfiguration?: PackageOriginConfiguration;
|
|
2128
|
-
}
|
|
2129
2181
|
export interface ListPackagesResult {
|
|
2130
2182
|
/**
|
|
2131
2183
|
* <p>
|
|
@@ -2380,26 +2432,9 @@ export interface PackageDependency {
|
|
|
2380
2432
|
*/
|
|
2381
2433
|
package?: string;
|
|
2382
2434
|
/**
|
|
2383
|
-
* <p> The type of a package dependency. The possible values depend on the package type
|
|
2384
|
-
*
|
|
2385
|
-
*
|
|
2386
|
-
* <p>npm: <code>regular</code>, <code>dev</code>, <code>peer</code>, <code>optional</code>
|
|
2387
|
-
* </p>
|
|
2388
|
-
* </li>
|
|
2389
|
-
* <li>
|
|
2390
|
-
* <p>maven: <code>optional</code>, <code>parent</code>, <code>compile</code>, <code>runtime</code>, <code>test</code>, <code>system</code>, <code>provided</code>.</p>
|
|
2391
|
-
* <note>
|
|
2392
|
-
* <p>Note that <code>parent</code> is not a regular Maven dependency type; instead this is extracted from the <code><parent></code> element if one is defined in the package version's POM file.</p>
|
|
2393
|
-
* </note>
|
|
2394
|
-
* </li>
|
|
2395
|
-
* <li>
|
|
2396
|
-
* <p>nuget: The <code>dependencyType</code> field is never set for NuGet packages.</p>
|
|
2397
|
-
* </li>
|
|
2398
|
-
* <li>
|
|
2399
|
-
* <p>pypi: <code>Requires-Dist</code>
|
|
2400
|
-
* </p>
|
|
2401
|
-
* </li>
|
|
2402
|
-
* </ul>
|
|
2435
|
+
* <p> The type of a package dependency. The possible values depend on the package type.
|
|
2436
|
+
* Example types are <code>compile</code>, <code>runtime</code>, and <code>test</code> for Maven
|
|
2437
|
+
* packages, and <code>dev</code>, <code>prod</code>, and <code>optional</code> for npm packages. </p>
|
|
2403
2438
|
*/
|
|
2404
2439
|
dependencyType?: string;
|
|
2405
2440
|
/**
|
|
@@ -3188,6 +3223,26 @@ export declare const ResourcePolicyFilterSensitiveLog: (obj: ResourcePolicy) =>
|
|
|
3188
3223
|
* @internal
|
|
3189
3224
|
*/
|
|
3190
3225
|
export declare const DeleteDomainPermissionsPolicyResultFilterSensitiveLog: (obj: DeleteDomainPermissionsPolicyResult) => any;
|
|
3226
|
+
/**
|
|
3227
|
+
* @internal
|
|
3228
|
+
*/
|
|
3229
|
+
export declare const DeletePackageRequestFilterSensitiveLog: (obj: DeletePackageRequest) => any;
|
|
3230
|
+
/**
|
|
3231
|
+
* @internal
|
|
3232
|
+
*/
|
|
3233
|
+
export declare const PackageOriginRestrictionsFilterSensitiveLog: (obj: PackageOriginRestrictions) => any;
|
|
3234
|
+
/**
|
|
3235
|
+
* @internal
|
|
3236
|
+
*/
|
|
3237
|
+
export declare const PackageOriginConfigurationFilterSensitiveLog: (obj: PackageOriginConfiguration) => any;
|
|
3238
|
+
/**
|
|
3239
|
+
* @internal
|
|
3240
|
+
*/
|
|
3241
|
+
export declare const PackageSummaryFilterSensitiveLog: (obj: PackageSummary) => any;
|
|
3242
|
+
/**
|
|
3243
|
+
* @internal
|
|
3244
|
+
*/
|
|
3245
|
+
export declare const DeletePackageResultFilterSensitiveLog: (obj: DeletePackageResult) => any;
|
|
3191
3246
|
/**
|
|
3192
3247
|
* @internal
|
|
3193
3248
|
*/
|
|
@@ -3224,14 +3279,6 @@ export declare const DescribeDomainResultFilterSensitiveLog: (obj: DescribeDomai
|
|
|
3224
3279
|
* @internal
|
|
3225
3280
|
*/
|
|
3226
3281
|
export declare const DescribePackageRequestFilterSensitiveLog: (obj: DescribePackageRequest) => any;
|
|
3227
|
-
/**
|
|
3228
|
-
* @internal
|
|
3229
|
-
*/
|
|
3230
|
-
export declare const PackageOriginRestrictionsFilterSensitiveLog: (obj: PackageOriginRestrictions) => any;
|
|
3231
|
-
/**
|
|
3232
|
-
* @internal
|
|
3233
|
-
*/
|
|
3234
|
-
export declare const PackageOriginConfigurationFilterSensitiveLog: (obj: PackageOriginConfiguration) => any;
|
|
3235
3282
|
/**
|
|
3236
3283
|
* @internal
|
|
3237
3284
|
*/
|
|
@@ -3352,10 +3399,6 @@ export declare const ListDomainsResultFilterSensitiveLog: (obj: ListDomainsResul
|
|
|
3352
3399
|
* @internal
|
|
3353
3400
|
*/
|
|
3354
3401
|
export declare const ListPackagesRequestFilterSensitiveLog: (obj: ListPackagesRequest) => any;
|
|
3355
|
-
/**
|
|
3356
|
-
* @internal
|
|
3357
|
-
*/
|
|
3358
|
-
export declare const PackageSummaryFilterSensitiveLog: (obj: PackageSummary) => any;
|
|
3359
3402
|
/**
|
|
3360
3403
|
* @internal
|
|
3361
3404
|
*/
|
|
@@ -6,6 +6,7 @@ import { CreateDomainCommandInput, CreateDomainCommandOutput } from "../commands
|
|
|
6
6
|
import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "../commands/CreateRepositoryCommand";
|
|
7
7
|
import { DeleteDomainCommandInput, DeleteDomainCommandOutput } from "../commands/DeleteDomainCommand";
|
|
8
8
|
import { DeleteDomainPermissionsPolicyCommandInput, DeleteDomainPermissionsPolicyCommandOutput } from "../commands/DeleteDomainPermissionsPolicyCommand";
|
|
9
|
+
import { DeletePackageCommandInput, DeletePackageCommandOutput } from "../commands/DeletePackageCommand";
|
|
9
10
|
import { DeletePackageVersionsCommandInput, DeletePackageVersionsCommandOutput } from "../commands/DeletePackageVersionsCommand";
|
|
10
11
|
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "../commands/DeleteRepositoryCommand";
|
|
11
12
|
import { DeleteRepositoryPermissionsPolicyCommandInput, DeleteRepositoryPermissionsPolicyCommandOutput } from "../commands/DeleteRepositoryPermissionsPolicyCommand";
|
|
@@ -42,6 +43,7 @@ export declare const serializeAws_restJson1CreateDomainCommand: (input: CreateDo
|
|
|
42
43
|
export declare const serializeAws_restJson1CreateRepositoryCommand: (input: CreateRepositoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
43
44
|
export declare const serializeAws_restJson1DeleteDomainCommand: (input: DeleteDomainCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
45
|
export declare const serializeAws_restJson1DeleteDomainPermissionsPolicyCommand: (input: DeleteDomainPermissionsPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
|
+
export declare const serializeAws_restJson1DeletePackageCommand: (input: DeletePackageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
47
|
export declare const serializeAws_restJson1DeletePackageVersionsCommand: (input: DeletePackageVersionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
48
|
export declare const serializeAws_restJson1DeleteRepositoryCommand: (input: DeleteRepositoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
49
|
export declare const serializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand: (input: DeleteRepositoryPermissionsPolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -78,6 +80,7 @@ export declare const deserializeAws_restJson1CreateDomainCommand: (output: __Htt
|
|
|
78
80
|
export declare const deserializeAws_restJson1CreateRepositoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateRepositoryCommandOutput>;
|
|
79
81
|
export declare const deserializeAws_restJson1DeleteDomainCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDomainCommandOutput>;
|
|
80
82
|
export declare const deserializeAws_restJson1DeleteDomainPermissionsPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteDomainPermissionsPolicyCommandOutput>;
|
|
83
|
+
export declare const deserializeAws_restJson1DeletePackageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePackageCommandOutput>;
|
|
81
84
|
export declare const deserializeAws_restJson1DeletePackageVersionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeletePackageVersionsCommandOutput>;
|
|
82
85
|
export declare const deserializeAws_restJson1DeleteRepositoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteRepositoryCommandOutput>;
|
|
83
86
|
export declare const deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteRepositoryPermissionsPolicyCommandOutput>;
|
|
@@ -24,6 +24,10 @@ import {
|
|
|
24
24
|
DeleteDomainPermissionsPolicyCommandInput,
|
|
25
25
|
DeleteDomainPermissionsPolicyCommandOutput,
|
|
26
26
|
} from "./commands/DeleteDomainPermissionsPolicyCommand";
|
|
27
|
+
import {
|
|
28
|
+
DeletePackageCommandInput,
|
|
29
|
+
DeletePackageCommandOutput,
|
|
30
|
+
} from "./commands/DeletePackageCommand";
|
|
27
31
|
import {
|
|
28
32
|
DeletePackageVersionsCommandInput,
|
|
29
33
|
DeletePackageVersionsCommandOutput,
|
|
@@ -223,6 +227,19 @@ export declare class Codeartifact extends CodeartifactClient {
|
|
|
223
227
|
options: __HttpHandlerOptions,
|
|
224
228
|
cb: (err: any, data?: DeleteDomainPermissionsPolicyCommandOutput) => void
|
|
225
229
|
): void;
|
|
230
|
+
deletePackage(
|
|
231
|
+
args: DeletePackageCommandInput,
|
|
232
|
+
options?: __HttpHandlerOptions
|
|
233
|
+
): Promise<DeletePackageCommandOutput>;
|
|
234
|
+
deletePackage(
|
|
235
|
+
args: DeletePackageCommandInput,
|
|
236
|
+
cb: (err: any, data?: DeletePackageCommandOutput) => void
|
|
237
|
+
): void;
|
|
238
|
+
deletePackage(
|
|
239
|
+
args: DeletePackageCommandInput,
|
|
240
|
+
options: __HttpHandlerOptions,
|
|
241
|
+
cb: (err: any, data?: DeletePackageCommandOutput) => void
|
|
242
|
+
): void;
|
|
226
243
|
deletePackageVersions(
|
|
227
244
|
args: DeletePackageVersionsCommandInput,
|
|
228
245
|
options?: __HttpHandlerOptions
|
|
@@ -69,6 +69,10 @@ import {
|
|
|
69
69
|
DeleteDomainPermissionsPolicyCommandInput,
|
|
70
70
|
DeleteDomainPermissionsPolicyCommandOutput,
|
|
71
71
|
} from "./commands/DeleteDomainPermissionsPolicyCommand";
|
|
72
|
+
import {
|
|
73
|
+
DeletePackageCommandInput,
|
|
74
|
+
DeletePackageCommandOutput,
|
|
75
|
+
} from "./commands/DeletePackageCommand";
|
|
72
76
|
import {
|
|
73
77
|
DeletePackageVersionsCommandInput,
|
|
74
78
|
DeletePackageVersionsCommandOutput,
|
|
@@ -201,6 +205,7 @@ export declare type ServiceInputTypes =
|
|
|
201
205
|
| CreateRepositoryCommandInput
|
|
202
206
|
| DeleteDomainCommandInput
|
|
203
207
|
| DeleteDomainPermissionsPolicyCommandInput
|
|
208
|
+
| DeletePackageCommandInput
|
|
204
209
|
| DeletePackageVersionsCommandInput
|
|
205
210
|
| DeleteRepositoryCommandInput
|
|
206
211
|
| DeleteRepositoryPermissionsPolicyCommandInput
|
|
@@ -238,6 +243,7 @@ export declare type ServiceOutputTypes =
|
|
|
238
243
|
| CreateRepositoryCommandOutput
|
|
239
244
|
| DeleteDomainCommandOutput
|
|
240
245
|
| DeleteDomainPermissionsPolicyCommandOutput
|
|
246
|
+
| DeletePackageCommandOutput
|
|
241
247
|
| DeletePackageVersionsCommandOutput
|
|
242
248
|
| DeleteRepositoryCommandOutput
|
|
243
249
|
| DeleteRepositoryPermissionsPolicyCommandOutput
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
CodeartifactClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../CodeartifactClient";
|
|
14
|
+
import { DeletePackageRequest, DeletePackageResult } from "../models/models_0";
|
|
15
|
+
export interface DeletePackageCommandInput extends DeletePackageRequest {}
|
|
16
|
+
export interface DeletePackageCommandOutput
|
|
17
|
+
extends DeletePackageResult,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
export declare class DeletePackageCommand extends $Command<
|
|
20
|
+
DeletePackageCommandInput,
|
|
21
|
+
DeletePackageCommandOutput,
|
|
22
|
+
CodeartifactClientResolvedConfig
|
|
23
|
+
> {
|
|
24
|
+
readonly input: DeletePackageCommandInput;
|
|
25
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
26
|
+
constructor(input: DeletePackageCommandInput);
|
|
27
|
+
resolveMiddleware(
|
|
28
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
29
|
+
configuration: CodeartifactClientResolvedConfig,
|
|
30
|
+
options?: __HttpHandlerOptions
|
|
31
|
+
): Handler<DeletePackageCommandInput, DeletePackageCommandOutput>;
|
|
32
|
+
private serialize;
|
|
33
|
+
private deserialize;
|
|
34
|
+
}
|
|
@@ -4,6 +4,7 @@ export * from "./CreateDomainCommand";
|
|
|
4
4
|
export * from "./CreateRepositoryCommand";
|
|
5
5
|
export * from "./DeleteDomainCommand";
|
|
6
6
|
export * from "./DeleteDomainPermissionsPolicyCommand";
|
|
7
|
+
export * from "./DeletePackageCommand";
|
|
7
8
|
export * from "./DeletePackageVersionsCommand";
|
|
8
9
|
export * from "./DeleteRepositoryCommand";
|
|
9
10
|
export * from "./DeleteRepositoryPermissionsPolicyCommand";
|
|
@@ -227,6 +227,30 @@ export interface ResourcePolicy {
|
|
|
227
227
|
export interface DeleteDomainPermissionsPolicyResult {
|
|
228
228
|
policy?: ResourcePolicy;
|
|
229
229
|
}
|
|
230
|
+
export interface DeletePackageRequest {
|
|
231
|
+
domain: string | undefined;
|
|
232
|
+
domainOwner?: string;
|
|
233
|
+
repository: string | undefined;
|
|
234
|
+
format: PackageFormat | string | undefined;
|
|
235
|
+
namespace?: string;
|
|
236
|
+
package: string | undefined;
|
|
237
|
+
}
|
|
238
|
+
export interface PackageOriginRestrictions {
|
|
239
|
+
publish: AllowPublish | string | undefined;
|
|
240
|
+
upstream: AllowUpstream | string | undefined;
|
|
241
|
+
}
|
|
242
|
+
export interface PackageOriginConfiguration {
|
|
243
|
+
restrictions?: PackageOriginRestrictions;
|
|
244
|
+
}
|
|
245
|
+
export interface PackageSummary {
|
|
246
|
+
format?: PackageFormat | string;
|
|
247
|
+
namespace?: string;
|
|
248
|
+
package?: string;
|
|
249
|
+
originConfiguration?: PackageOriginConfiguration;
|
|
250
|
+
}
|
|
251
|
+
export interface DeletePackageResult {
|
|
252
|
+
deletedPackage?: PackageSummary;
|
|
253
|
+
}
|
|
230
254
|
export interface DeletePackageVersionsRequest {
|
|
231
255
|
domain: string | undefined;
|
|
232
256
|
domainOwner?: string;
|
|
@@ -273,13 +297,6 @@ export interface DescribePackageRequest {
|
|
|
273
297
|
namespace?: string;
|
|
274
298
|
package: string | undefined;
|
|
275
299
|
}
|
|
276
|
-
export interface PackageOriginRestrictions {
|
|
277
|
-
publish: AllowPublish | string | undefined;
|
|
278
|
-
upstream: AllowUpstream | string | undefined;
|
|
279
|
-
}
|
|
280
|
-
export interface PackageOriginConfiguration {
|
|
281
|
-
restrictions?: PackageOriginRestrictions;
|
|
282
|
-
}
|
|
283
300
|
export interface PackageDescription {
|
|
284
301
|
format?: PackageFormat | string;
|
|
285
302
|
namespace?: string;
|
|
@@ -460,12 +477,6 @@ export interface ListPackagesRequest {
|
|
|
460
477
|
publish?: AllowPublish | string;
|
|
461
478
|
upstream?: AllowUpstream | string;
|
|
462
479
|
}
|
|
463
|
-
export interface PackageSummary {
|
|
464
|
-
format?: PackageFormat | string;
|
|
465
|
-
namespace?: string;
|
|
466
|
-
package?: string;
|
|
467
|
-
originConfiguration?: PackageOriginConfiguration;
|
|
468
|
-
}
|
|
469
480
|
export interface ListPackagesResult {
|
|
470
481
|
packages?: PackageSummary[];
|
|
471
482
|
nextToken?: string;
|
|
@@ -709,6 +720,21 @@ export declare const ResourcePolicyFilterSensitiveLog: (
|
|
|
709
720
|
export declare const DeleteDomainPermissionsPolicyResultFilterSensitiveLog: (
|
|
710
721
|
obj: DeleteDomainPermissionsPolicyResult
|
|
711
722
|
) => any;
|
|
723
|
+
export declare const DeletePackageRequestFilterSensitiveLog: (
|
|
724
|
+
obj: DeletePackageRequest
|
|
725
|
+
) => any;
|
|
726
|
+
export declare const PackageOriginRestrictionsFilterSensitiveLog: (
|
|
727
|
+
obj: PackageOriginRestrictions
|
|
728
|
+
) => any;
|
|
729
|
+
export declare const PackageOriginConfigurationFilterSensitiveLog: (
|
|
730
|
+
obj: PackageOriginConfiguration
|
|
731
|
+
) => any;
|
|
732
|
+
export declare const PackageSummaryFilterSensitiveLog: (
|
|
733
|
+
obj: PackageSummary
|
|
734
|
+
) => any;
|
|
735
|
+
export declare const DeletePackageResultFilterSensitiveLog: (
|
|
736
|
+
obj: DeletePackageResult
|
|
737
|
+
) => any;
|
|
712
738
|
export declare const DeletePackageVersionsRequestFilterSensitiveLog: (
|
|
713
739
|
obj: DeletePackageVersionsRequest
|
|
714
740
|
) => any;
|
|
@@ -736,12 +762,6 @@ export declare const DescribeDomainResultFilterSensitiveLog: (
|
|
|
736
762
|
export declare const DescribePackageRequestFilterSensitiveLog: (
|
|
737
763
|
obj: DescribePackageRequest
|
|
738
764
|
) => any;
|
|
739
|
-
export declare const PackageOriginRestrictionsFilterSensitiveLog: (
|
|
740
|
-
obj: PackageOriginRestrictions
|
|
741
|
-
) => any;
|
|
742
|
-
export declare const PackageOriginConfigurationFilterSensitiveLog: (
|
|
743
|
-
obj: PackageOriginConfiguration
|
|
744
|
-
) => any;
|
|
745
765
|
export declare const PackageDescriptionFilterSensitiveLog: (
|
|
746
766
|
obj: PackageDescription
|
|
747
767
|
) => any;
|
|
@@ -830,9 +850,6 @@ export declare const ListDomainsResultFilterSensitiveLog: (
|
|
|
830
850
|
export declare const ListPackagesRequestFilterSensitiveLog: (
|
|
831
851
|
obj: ListPackagesRequest
|
|
832
852
|
) => any;
|
|
833
|
-
export declare const PackageSummaryFilterSensitiveLog: (
|
|
834
|
-
obj: PackageSummary
|
|
835
|
-
) => any;
|
|
836
853
|
export declare const ListPackagesResultFilterSensitiveLog: (
|
|
837
854
|
obj: ListPackagesResult
|
|
838
855
|
) => any;
|
|
@@ -30,6 +30,10 @@ import {
|
|
|
30
30
|
DeleteDomainPermissionsPolicyCommandInput,
|
|
31
31
|
DeleteDomainPermissionsPolicyCommandOutput,
|
|
32
32
|
} from "../commands/DeleteDomainPermissionsPolicyCommand";
|
|
33
|
+
import {
|
|
34
|
+
DeletePackageCommandInput,
|
|
35
|
+
DeletePackageCommandOutput,
|
|
36
|
+
} from "../commands/DeletePackageCommand";
|
|
33
37
|
import {
|
|
34
38
|
DeletePackageVersionsCommandInput,
|
|
35
39
|
DeletePackageVersionsCommandOutput,
|
|
@@ -174,6 +178,10 @@ export declare const serializeAws_restJson1DeleteDomainPermissionsPolicyCommand:
|
|
|
174
178
|
input: DeleteDomainPermissionsPolicyCommandInput,
|
|
175
179
|
context: __SerdeContext
|
|
176
180
|
) => Promise<__HttpRequest>;
|
|
181
|
+
export declare const serializeAws_restJson1DeletePackageCommand: (
|
|
182
|
+
input: DeletePackageCommandInput,
|
|
183
|
+
context: __SerdeContext
|
|
184
|
+
) => Promise<__HttpRequest>;
|
|
177
185
|
export declare const serializeAws_restJson1DeletePackageVersionsCommand: (
|
|
178
186
|
input: DeletePackageVersionsCommandInput,
|
|
179
187
|
context: __SerdeContext
|
|
@@ -318,6 +326,10 @@ export declare const deserializeAws_restJson1DeleteDomainPermissionsPolicyComman
|
|
|
318
326
|
output: __HttpResponse,
|
|
319
327
|
context: __SerdeContext
|
|
320
328
|
) => Promise<DeleteDomainPermissionsPolicyCommandOutput>;
|
|
329
|
+
export declare const deserializeAws_restJson1DeletePackageCommand: (
|
|
330
|
+
output: __HttpResponse,
|
|
331
|
+
context: __SerdeContext
|
|
332
|
+
) => Promise<DeletePackageCommandOutput>;
|
|
321
333
|
export declare const deserializeAws_restJson1DeletePackageVersionsCommand: (
|
|
322
334
|
output: __HttpResponse,
|
|
323
335
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeartifact",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeartifact Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.262.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.262.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.259.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.261.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.257.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.257.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.257.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@aws-sdk/node-config-provider": "3.259.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.257.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.257.0",
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
+
"@aws-sdk/smithy-client": "3.261.0",
|
|
43
43
|
"@aws-sdk/types": "3.257.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.257.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.261.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.261.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.257.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.257.0",
|
|
52
52
|
"@aws-sdk/util-stream-browser": "3.258.0",
|