@aws-sdk/client-codeartifact 3.128.0 → 3.137.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 +35 -0
- package/README.md +10 -0
- package/dist-cjs/Codeartifact.js +30 -0
- package/dist-cjs/commands/AssociateExternalConnectionCommand.js +2 -2
- package/dist-cjs/commands/CopyPackageVersionsCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainCommand.js +2 -2
- package/dist-cjs/commands/CreateRepositoryCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainPermissionsPolicyCommand.js +2 -2
- package/dist-cjs/commands/DeletePackageVersionsCommand.js +2 -2
- package/dist-cjs/commands/DeleteRepositoryCommand.js +2 -2
- package/dist-cjs/commands/DeleteRepositoryPermissionsPolicyCommand.js +2 -2
- package/dist-cjs/commands/DescribeDomainCommand.js +2 -2
- package/dist-cjs/commands/DescribePackageCommand.js +36 -0
- package/dist-cjs/commands/DescribePackageVersionCommand.js +2 -2
- package/dist-cjs/commands/DescribeRepositoryCommand.js +2 -2
- package/dist-cjs/commands/DisassociateExternalConnectionCommand.js +2 -2
- package/dist-cjs/commands/DisposePackageVersionsCommand.js +2 -2
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +2 -2
- package/dist-cjs/commands/GetDomainPermissionsPolicyCommand.js +2 -2
- package/dist-cjs/commands/GetPackageVersionAssetCommand.js +2 -2
- package/dist-cjs/commands/GetPackageVersionReadmeCommand.js +2 -2
- package/dist-cjs/commands/GetRepositoryEndpointCommand.js +2 -2
- package/dist-cjs/commands/GetRepositoryPermissionsPolicyCommand.js +2 -2
- package/dist-cjs/commands/ListDomainsCommand.js +2 -2
- package/dist-cjs/commands/ListPackageVersionAssetsCommand.js +2 -2
- package/dist-cjs/commands/ListPackageVersionDependenciesCommand.js +2 -2
- package/dist-cjs/commands/ListPackageVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListPackagesCommand.js +2 -2
- package/dist-cjs/commands/ListRepositoriesCommand.js +2 -2
- package/dist-cjs/commands/ListRepositoriesInDomainCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PutDomainPermissionsPolicyCommand.js +2 -2
- package/dist-cjs/commands/PutPackageOriginConfigurationCommand.js +36 -0
- package/dist-cjs/commands/PutRepositoryPermissionsPolicyCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdatePackageVersionsStatusCommand.js +2 -2
- package/dist-cjs/commands/UpdateRepositoryCommand.js +2 -2
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +395 -513
- package/dist-cjs/protocols/Aws_restJson1.js +213 -2
- package/dist-es/Codeartifact.js +30 -0
- package/dist-es/commands/AssociateExternalConnectionCommand.js +3 -3
- package/dist-es/commands/CopyPackageVersionsCommand.js +3 -3
- package/dist-es/commands/CreateDomainCommand.js +3 -3
- package/dist-es/commands/CreateRepositoryCommand.js +3 -3
- package/dist-es/commands/DeleteDomainCommand.js +3 -3
- package/dist-es/commands/DeleteDomainPermissionsPolicyCommand.js +3 -3
- package/dist-es/commands/DeletePackageVersionsCommand.js +3 -3
- package/dist-es/commands/DeleteRepositoryCommand.js +3 -3
- package/dist-es/commands/DeleteRepositoryPermissionsPolicyCommand.js +3 -3
- package/dist-es/commands/DescribeDomainCommand.js +3 -3
- package/dist-es/commands/DescribePackageCommand.js +39 -0
- package/dist-es/commands/DescribePackageVersionCommand.js +3 -3
- package/dist-es/commands/DescribeRepositoryCommand.js +3 -3
- package/dist-es/commands/DisassociateExternalConnectionCommand.js +3 -3
- package/dist-es/commands/DisposePackageVersionsCommand.js +3 -3
- package/dist-es/commands/GetAuthorizationTokenCommand.js +3 -3
- package/dist-es/commands/GetDomainPermissionsPolicyCommand.js +3 -3
- package/dist-es/commands/GetPackageVersionAssetCommand.js +3 -3
- package/dist-es/commands/GetPackageVersionReadmeCommand.js +3 -3
- package/dist-es/commands/GetRepositoryEndpointCommand.js +3 -3
- package/dist-es/commands/GetRepositoryPermissionsPolicyCommand.js +3 -3
- package/dist-es/commands/ListDomainsCommand.js +3 -3
- package/dist-es/commands/ListPackageVersionAssetsCommand.js +3 -3
- package/dist-es/commands/ListPackageVersionDependenciesCommand.js +3 -3
- package/dist-es/commands/ListPackageVersionsCommand.js +3 -3
- package/dist-es/commands/ListPackagesCommand.js +3 -3
- package/dist-es/commands/ListRepositoriesCommand.js +3 -3
- package/dist-es/commands/ListRepositoriesInDomainCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PutDomainPermissionsPolicyCommand.js +3 -3
- package/dist-es/commands/PutPackageOriginConfigurationCommand.js +39 -0
- package/dist-es/commands/PutRepositoryPermissionsPolicyCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdatePackageVersionsStatusCommand.js +3 -3
- package/dist-es/commands/UpdateRepositoryCommand.js +3 -3
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +110 -340
- package/dist-es/protocols/Aws_restJson1.js +247 -2
- package/dist-types/Codeartifact.d.ts +37 -1
- package/dist-types/CodeartifactClient.d.ts +14 -2
- package/dist-types/commands/DescribePackageCommand.d.ts +37 -0
- package/dist-types/commands/GetPackageVersionReadmeCommand.d.ts +3 -1
- package/dist-types/commands/PutPackageOriginConfigurationCommand.d.ts +43 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +770 -669
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/Codeartifact.d.ts +10 -0
- package/dist-types/ts3.4/CodeartifactClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribePackageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutPackageOriginConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +276 -328
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +9 -9
|
@@ -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_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 = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1DisassociateExternalConnectionCommand = exports.deserializeAws_restJson1DescribeRepositoryCommand = exports.deserializeAws_restJson1DescribePackageVersionCommand = exports.deserializeAws_restJson1DescribePackageCommand = exports.deserializeAws_restJson1DescribeDomainCommand = exports.deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand = exports.deserializeAws_restJson1DeleteRepositoryCommand = exports.deserializeAws_restJson1DeletePackageVersionsCommand = 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_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 = 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");
|
|
@@ -262,6 +262,31 @@ const serializeAws_restJson1DescribeDomainCommand = async (input, context) => {
|
|
|
262
262
|
});
|
|
263
263
|
};
|
|
264
264
|
exports.serializeAws_restJson1DescribeDomainCommand = serializeAws_restJson1DescribeDomainCommand;
|
|
265
|
+
const serializeAws_restJson1DescribePackageCommand = async (input, context) => {
|
|
266
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
|
+
const headers = {};
|
|
268
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
|
|
269
|
+
const query = {
|
|
270
|
+
...(input.domain !== undefined && { domain: input.domain }),
|
|
271
|
+
...(input.domainOwner !== undefined && { "domain-owner": input.domainOwner }),
|
|
272
|
+
...(input.repository !== undefined && { repository: input.repository }),
|
|
273
|
+
...(input.format !== undefined && { format: input.format }),
|
|
274
|
+
...(input.namespace !== undefined && { namespace: input.namespace }),
|
|
275
|
+
...(input.package !== undefined && { package: input.package }),
|
|
276
|
+
};
|
|
277
|
+
let body;
|
|
278
|
+
return new protocol_http_1.HttpRequest({
|
|
279
|
+
protocol,
|
|
280
|
+
hostname,
|
|
281
|
+
port,
|
|
282
|
+
method: "GET",
|
|
283
|
+
headers,
|
|
284
|
+
path: resolvedPath,
|
|
285
|
+
query,
|
|
286
|
+
body,
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
exports.serializeAws_restJson1DescribePackageCommand = serializeAws_restJson1DescribePackageCommand;
|
|
265
290
|
const serializeAws_restJson1DescribePackageVersionCommand = async (input, context) => {
|
|
266
291
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
267
292
|
const headers = {};
|
|
@@ -544,6 +569,8 @@ const serializeAws_restJson1ListPackagesCommand = async (input, context) => {
|
|
|
544
569
|
...(input.packagePrefix !== undefined && { "package-prefix": input.packagePrefix }),
|
|
545
570
|
...(input.maxResults !== undefined && { "max-results": input.maxResults.toString() }),
|
|
546
571
|
...(input.nextToken !== undefined && { "next-token": input.nextToken }),
|
|
572
|
+
...(input.publish !== undefined && { publish: input.publish }),
|
|
573
|
+
...(input.upstream !== undefined && { upstream: input.upstream }),
|
|
547
574
|
};
|
|
548
575
|
let body;
|
|
549
576
|
return new protocol_http_1.HttpRequest({
|
|
@@ -628,6 +655,7 @@ const serializeAws_restJson1ListPackageVersionsCommand = async (input, context)
|
|
|
628
655
|
...(input.sortBy !== undefined && { sortBy: input.sortBy }),
|
|
629
656
|
...(input.maxResults !== undefined && { "max-results": input.maxResults.toString() }),
|
|
630
657
|
...(input.nextToken !== undefined && { "next-token": input.nextToken }),
|
|
658
|
+
...(input.originType !== undefined && { originType: input.originType }),
|
|
631
659
|
};
|
|
632
660
|
let body;
|
|
633
661
|
return new protocol_http_1.HttpRequest({
|
|
@@ -733,6 +761,38 @@ const serializeAws_restJson1PutDomainPermissionsPolicyCommand = async (input, co
|
|
|
733
761
|
});
|
|
734
762
|
};
|
|
735
763
|
exports.serializeAws_restJson1PutDomainPermissionsPolicyCommand = serializeAws_restJson1PutDomainPermissionsPolicyCommand;
|
|
764
|
+
const serializeAws_restJson1PutPackageOriginConfigurationCommand = async (input, context) => {
|
|
765
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
766
|
+
const headers = {
|
|
767
|
+
"content-type": "application/json",
|
|
768
|
+
};
|
|
769
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package";
|
|
770
|
+
const query = {
|
|
771
|
+
...(input.domain !== undefined && { domain: input.domain }),
|
|
772
|
+
...(input.domainOwner !== undefined && { "domain-owner": input.domainOwner }),
|
|
773
|
+
...(input.repository !== undefined && { repository: input.repository }),
|
|
774
|
+
...(input.format !== undefined && { format: input.format }),
|
|
775
|
+
...(input.namespace !== undefined && { namespace: input.namespace }),
|
|
776
|
+
...(input.package !== undefined && { package: input.package }),
|
|
777
|
+
};
|
|
778
|
+
let body;
|
|
779
|
+
body = JSON.stringify({
|
|
780
|
+
...(input.restrictions != null && {
|
|
781
|
+
restrictions: serializeAws_restJson1PackageOriginRestrictions(input.restrictions, context),
|
|
782
|
+
}),
|
|
783
|
+
});
|
|
784
|
+
return new protocol_http_1.HttpRequest({
|
|
785
|
+
protocol,
|
|
786
|
+
hostname,
|
|
787
|
+
port,
|
|
788
|
+
method: "POST",
|
|
789
|
+
headers,
|
|
790
|
+
path: resolvedPath,
|
|
791
|
+
query,
|
|
792
|
+
body,
|
|
793
|
+
});
|
|
794
|
+
};
|
|
795
|
+
exports.serializeAws_restJson1PutPackageOriginConfigurationCommand = serializeAws_restJson1PutPackageOriginConfigurationCommand;
|
|
736
796
|
const serializeAws_restJson1PutRepositoryPermissionsPolicyCommand = async (input, context) => {
|
|
737
797
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
738
798
|
const headers = {
|
|
@@ -1420,6 +1480,56 @@ const deserializeAws_restJson1DescribeDomainCommandError = async (output, contex
|
|
|
1420
1480
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1421
1481
|
}
|
|
1422
1482
|
};
|
|
1483
|
+
const deserializeAws_restJson1DescribePackageCommand = async (output, context) => {
|
|
1484
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
+
return deserializeAws_restJson1DescribePackageCommandError(output, context);
|
|
1486
|
+
}
|
|
1487
|
+
const contents = {
|
|
1488
|
+
$metadata: deserializeMetadata(output),
|
|
1489
|
+
package: undefined,
|
|
1490
|
+
};
|
|
1491
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1492
|
+
if (data.package !== undefined && data.package !== null) {
|
|
1493
|
+
contents.package = deserializeAws_restJson1PackageDescription(data.package, context);
|
|
1494
|
+
}
|
|
1495
|
+
return Promise.resolve(contents);
|
|
1496
|
+
};
|
|
1497
|
+
exports.deserializeAws_restJson1DescribePackageCommand = deserializeAws_restJson1DescribePackageCommand;
|
|
1498
|
+
const deserializeAws_restJson1DescribePackageCommandError = async (output, context) => {
|
|
1499
|
+
const parsedOutput = {
|
|
1500
|
+
...output,
|
|
1501
|
+
body: await parseBody(output.body, context),
|
|
1502
|
+
};
|
|
1503
|
+
let response;
|
|
1504
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
+
switch (errorCode) {
|
|
1506
|
+
case "AccessDeniedException":
|
|
1507
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
1508
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1509
|
+
case "InternalServerException":
|
|
1510
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
1511
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1512
|
+
case "ResourceNotFoundException":
|
|
1513
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
1514
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1515
|
+
case "ThrottlingException":
|
|
1516
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
1517
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1518
|
+
case "ValidationException":
|
|
1519
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
1520
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1521
|
+
default:
|
|
1522
|
+
const parsedBody = parsedOutput.body;
|
|
1523
|
+
const $metadata = deserializeMetadata(output);
|
|
1524
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1525
|
+
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
1526
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1527
|
+
$fault: "client",
|
|
1528
|
+
$metadata,
|
|
1529
|
+
});
|
|
1530
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1423
1533
|
const deserializeAws_restJson1DescribePackageVersionCommand = async (output, context) => {
|
|
1424
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1425
1535
|
return deserializeAws_restJson1DescribePackageVersionCommandError(output, context);
|
|
@@ -2504,6 +2614,56 @@ const deserializeAws_restJson1PutDomainPermissionsPolicyCommandError = async (ou
|
|
|
2504
2614
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2505
2615
|
}
|
|
2506
2616
|
};
|
|
2617
|
+
const deserializeAws_restJson1PutPackageOriginConfigurationCommand = async (output, context) => {
|
|
2618
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2619
|
+
return deserializeAws_restJson1PutPackageOriginConfigurationCommandError(output, context);
|
|
2620
|
+
}
|
|
2621
|
+
const contents = {
|
|
2622
|
+
$metadata: deserializeMetadata(output),
|
|
2623
|
+
originConfiguration: undefined,
|
|
2624
|
+
};
|
|
2625
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2626
|
+
if (data.originConfiguration !== undefined && data.originConfiguration !== null) {
|
|
2627
|
+
contents.originConfiguration = deserializeAws_restJson1PackageOriginConfiguration(data.originConfiguration, context);
|
|
2628
|
+
}
|
|
2629
|
+
return Promise.resolve(contents);
|
|
2630
|
+
};
|
|
2631
|
+
exports.deserializeAws_restJson1PutPackageOriginConfigurationCommand = deserializeAws_restJson1PutPackageOriginConfigurationCommand;
|
|
2632
|
+
const deserializeAws_restJson1PutPackageOriginConfigurationCommandError = async (output, context) => {
|
|
2633
|
+
const parsedOutput = {
|
|
2634
|
+
...output,
|
|
2635
|
+
body: await parseBody(output.body, context),
|
|
2636
|
+
};
|
|
2637
|
+
let response;
|
|
2638
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2639
|
+
switch (errorCode) {
|
|
2640
|
+
case "AccessDeniedException":
|
|
2641
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2642
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2643
|
+
case "InternalServerException":
|
|
2644
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2645
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2646
|
+
case "ResourceNotFoundException":
|
|
2647
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2648
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2649
|
+
case "ThrottlingException":
|
|
2650
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2651
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2652
|
+
case "ValidationException":
|
|
2653
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2654
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2655
|
+
default:
|
|
2656
|
+
const parsedBody = parsedOutput.body;
|
|
2657
|
+
const $metadata = deserializeMetadata(output);
|
|
2658
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2659
|
+
response = new CodeartifactServiceException_1.CodeartifactServiceException({
|
|
2660
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2661
|
+
$fault: "client",
|
|
2662
|
+
$metadata,
|
|
2663
|
+
});
|
|
2664
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2665
|
+
}
|
|
2666
|
+
};
|
|
2507
2667
|
const deserializeAws_restJson1PutRepositoryPermissionsPolicyCommand = async (output, context) => {
|
|
2508
2668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2509
2669
|
return deserializeAws_restJson1PutRepositoryPermissionsPolicyCommandError(output, context);
|
|
@@ -2870,6 +3030,12 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2870
3030
|
});
|
|
2871
3031
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2872
3032
|
};
|
|
3033
|
+
const serializeAws_restJson1PackageOriginRestrictions = (input, context) => {
|
|
3034
|
+
return {
|
|
3035
|
+
...(input.publish != null && { publish: input.publish }),
|
|
3036
|
+
...(input.upstream != null && { upstream: input.upstream }),
|
|
3037
|
+
};
|
|
3038
|
+
};
|
|
2873
3039
|
const serializeAws_restJson1PackageVersionList = (input, context) => {
|
|
2874
3040
|
return input
|
|
2875
3041
|
.filter((e) => e != null)
|
|
@@ -2976,6 +3142,12 @@ const deserializeAws_restJson1DomainDescription = (output, context) => {
|
|
|
2976
3142
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
2977
3143
|
};
|
|
2978
3144
|
};
|
|
3145
|
+
const deserializeAws_restJson1DomainEntryPoint = (output, context) => {
|
|
3146
|
+
return {
|
|
3147
|
+
externalConnectionName: (0, smithy_client_1.expectString)(output.externalConnectionName),
|
|
3148
|
+
repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
|
|
3149
|
+
};
|
|
3150
|
+
};
|
|
2979
3151
|
const deserializeAws_restJson1DomainSummary = (output, context) => {
|
|
2980
3152
|
return {
|
|
2981
3153
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
@@ -3035,10 +3207,36 @@ const deserializeAws_restJson1PackageDependencyList = (output, context) => {
|
|
|
3035
3207
|
});
|
|
3036
3208
|
return retVal;
|
|
3037
3209
|
};
|
|
3210
|
+
const deserializeAws_restJson1PackageDescription = (output, context) => {
|
|
3211
|
+
return {
|
|
3212
|
+
format: (0, smithy_client_1.expectString)(output.format),
|
|
3213
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3214
|
+
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3215
|
+
originConfiguration: output.originConfiguration != null
|
|
3216
|
+
? deserializeAws_restJson1PackageOriginConfiguration(output.originConfiguration, context)
|
|
3217
|
+
: undefined,
|
|
3218
|
+
};
|
|
3219
|
+
};
|
|
3220
|
+
const deserializeAws_restJson1PackageOriginConfiguration = (output, context) => {
|
|
3221
|
+
return {
|
|
3222
|
+
restrictions: output.restrictions != null
|
|
3223
|
+
? deserializeAws_restJson1PackageOriginRestrictions(output.restrictions, context)
|
|
3224
|
+
: undefined,
|
|
3225
|
+
};
|
|
3226
|
+
};
|
|
3227
|
+
const deserializeAws_restJson1PackageOriginRestrictions = (output, context) => {
|
|
3228
|
+
return {
|
|
3229
|
+
publish: (0, smithy_client_1.expectString)(output.publish),
|
|
3230
|
+
upstream: (0, smithy_client_1.expectString)(output.upstream),
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
3038
3233
|
const deserializeAws_restJson1PackageSummary = (output, context) => {
|
|
3039
3234
|
return {
|
|
3040
3235
|
format: (0, smithy_client_1.expectString)(output.format),
|
|
3041
3236
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3237
|
+
originConfiguration: output.originConfiguration != null
|
|
3238
|
+
? deserializeAws_restJson1PackageOriginConfiguration(output.originConfiguration, context)
|
|
3239
|
+
: undefined,
|
|
3042
3240
|
package: (0, smithy_client_1.expectString)(output.package),
|
|
3043
3241
|
};
|
|
3044
3242
|
};
|
|
@@ -3060,6 +3258,7 @@ const deserializeAws_restJson1PackageVersionDescription = (output, context) => {
|
|
|
3060
3258
|
homePage: (0, smithy_client_1.expectString)(output.homePage),
|
|
3061
3259
|
licenses: output.licenses != null ? deserializeAws_restJson1LicenseInfoList(output.licenses, context) : undefined,
|
|
3062
3260
|
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
3261
|
+
origin: output.origin != null ? deserializeAws_restJson1PackageVersionOrigin(output.origin, context) : undefined,
|
|
3063
3262
|
packageName: (0, smithy_client_1.expectString)(output.packageName),
|
|
3064
3263
|
publishedTime: output.publishedTime != null
|
|
3065
3264
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.publishedTime)))
|
|
@@ -3088,8 +3287,17 @@ const deserializeAws_restJson1PackageVersionErrorMap = (output, context) => {
|
|
|
3088
3287
|
};
|
|
3089
3288
|
}, {});
|
|
3090
3289
|
};
|
|
3290
|
+
const deserializeAws_restJson1PackageVersionOrigin = (output, context) => {
|
|
3291
|
+
return {
|
|
3292
|
+
domainEntryPoint: output.domainEntryPoint != null
|
|
3293
|
+
? deserializeAws_restJson1DomainEntryPoint(output.domainEntryPoint, context)
|
|
3294
|
+
: undefined,
|
|
3295
|
+
originType: (0, smithy_client_1.expectString)(output.originType),
|
|
3296
|
+
};
|
|
3297
|
+
};
|
|
3091
3298
|
const deserializeAws_restJson1PackageVersionSummary = (output, context) => {
|
|
3092
3299
|
return {
|
|
3300
|
+
origin: output.origin != null ? deserializeAws_restJson1PackageVersionOrigin(output.origin, context) : undefined,
|
|
3093
3301
|
revision: (0, smithy_client_1.expectString)(output.revision),
|
|
3094
3302
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
3095
3303
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
@@ -3249,6 +3457,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3249
3457
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3250
3458
|
const sanitizeErrorCode = (rawValue) => {
|
|
3251
3459
|
let cleanValue = rawValue;
|
|
3460
|
+
if (typeof cleanValue === "number") {
|
|
3461
|
+
cleanValue = cleanValue.toString();
|
|
3462
|
+
}
|
|
3252
3463
|
if (cleanValue.indexOf(":") >= 0) {
|
|
3253
3464
|
cleanValue = cleanValue.split(":")[0];
|
|
3254
3465
|
}
|
package/dist-es/Codeartifact.js
CHANGED
|
@@ -10,6 +10,7 @@ import { DeletePackageVersionsCommand, } from "./commands/DeletePackageVersionsC
|
|
|
10
10
|
import { DeleteRepositoryCommand, } from "./commands/DeleteRepositoryCommand";
|
|
11
11
|
import { DeleteRepositoryPermissionsPolicyCommand, } from "./commands/DeleteRepositoryPermissionsPolicyCommand";
|
|
12
12
|
import { DescribeDomainCommand, } from "./commands/DescribeDomainCommand";
|
|
13
|
+
import { DescribePackageCommand, } from "./commands/DescribePackageCommand";
|
|
13
14
|
import { DescribePackageVersionCommand, } from "./commands/DescribePackageVersionCommand";
|
|
14
15
|
import { DescribeRepositoryCommand, } from "./commands/DescribeRepositoryCommand";
|
|
15
16
|
import { DisassociateExternalConnectionCommand, } from "./commands/DisassociateExternalConnectionCommand";
|
|
@@ -29,6 +30,7 @@ import { ListRepositoriesCommand, } from "./commands/ListRepositoriesCommand";
|
|
|
29
30
|
import { ListRepositoriesInDomainCommand, } from "./commands/ListRepositoriesInDomainCommand";
|
|
30
31
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
31
32
|
import { PutDomainPermissionsPolicyCommand, } from "./commands/PutDomainPermissionsPolicyCommand";
|
|
33
|
+
import { PutPackageOriginConfigurationCommand, } from "./commands/PutPackageOriginConfigurationCommand";
|
|
32
34
|
import { PutRepositoryPermissionsPolicyCommand, } from "./commands/PutRepositoryPermissionsPolicyCommand";
|
|
33
35
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
34
36
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
@@ -179,6 +181,20 @@ var Codeartifact = (function (_super) {
|
|
|
179
181
|
return this.send(command, optionsOrCb);
|
|
180
182
|
}
|
|
181
183
|
};
|
|
184
|
+
Codeartifact.prototype.describePackage = function (args, optionsOrCb, cb) {
|
|
185
|
+
var command = new DescribePackageCommand(args);
|
|
186
|
+
if (typeof optionsOrCb === "function") {
|
|
187
|
+
this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
else if (typeof cb === "function") {
|
|
190
|
+
if (typeof optionsOrCb !== "object")
|
|
191
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
192
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
182
198
|
Codeartifact.prototype.describePackageVersion = function (args, optionsOrCb, cb) {
|
|
183
199
|
var command = new DescribePackageVersionCommand(args);
|
|
184
200
|
if (typeof optionsOrCb === "function") {
|
|
@@ -445,6 +461,20 @@ var Codeartifact = (function (_super) {
|
|
|
445
461
|
return this.send(command, optionsOrCb);
|
|
446
462
|
}
|
|
447
463
|
};
|
|
464
|
+
Codeartifact.prototype.putPackageOriginConfiguration = function (args, optionsOrCb, cb) {
|
|
465
|
+
var command = new PutPackageOriginConfigurationCommand(args);
|
|
466
|
+
if (typeof optionsOrCb === "function") {
|
|
467
|
+
this.send(command, optionsOrCb);
|
|
468
|
+
}
|
|
469
|
+
else if (typeof cb === "function") {
|
|
470
|
+
if (typeof optionsOrCb !== "object")
|
|
471
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
472
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
return this.send(command, optionsOrCb);
|
|
476
|
+
}
|
|
477
|
+
};
|
|
448
478
|
Codeartifact.prototype.putRepositoryPermissionsPolicy = function (args, optionsOrCb, cb) {
|
|
449
479
|
var command = new PutRepositoryPermissionsPolicyCommand(args);
|
|
450
480
|
if (typeof optionsOrCb === "function") {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { AssociateExternalConnectionRequestFilterSensitiveLog, AssociateExternalConnectionResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1AssociateExternalConnectionCommand, serializeAws_restJson1AssociateExternalConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var AssociateExternalConnectionCommand = (function (_super) {
|
|
7
7
|
__extends(AssociateExternalConnectionCommand, _super);
|
|
@@ -20,8 +20,8 @@ var AssociateExternalConnectionCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: AssociateExternalConnectionRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AssociateExternalConnectionResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CopyPackageVersionsRequestFilterSensitiveLog, CopyPackageVersionsResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1CopyPackageVersionsCommand, serializeAws_restJson1CopyPackageVersionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var CopyPackageVersionsCommand = (function (_super) {
|
|
7
7
|
__extends(CopyPackageVersionsCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CopyPackageVersionsCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CopyPackageVersionsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CopyPackageVersionsResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateDomainRequestFilterSensitiveLog, CreateDomainResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1CreateDomainCommand, serializeAws_restJson1CreateDomainCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var CreateDomainCommand = (function (_super) {
|
|
7
7
|
__extends(CreateDomainCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CreateDomainCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CreateDomainRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateDomainResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { CreateRepositoryRequestFilterSensitiveLog, CreateRepositoryResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1CreateRepositoryCommand, serializeAws_restJson1CreateRepositoryCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var CreateRepositoryCommand = (function (_super) {
|
|
7
7
|
__extends(CreateRepositoryCommand, _super);
|
|
@@ -20,8 +20,8 @@ var CreateRepositoryCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: CreateRepositoryRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateRepositoryResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteDomainRequestFilterSensitiveLog, DeleteDomainResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeleteDomainCommand, serializeAws_restJson1DeleteDomainCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeleteDomainCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteDomainCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteDomainCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteDomainRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteDomainResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteDomainPermissionsPolicyRequestFilterSensitiveLog, DeleteDomainPermissionsPolicyResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeleteDomainPermissionsPolicyCommand, serializeAws_restJson1DeleteDomainPermissionsPolicyCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeleteDomainPermissionsPolicyCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteDomainPermissionsPolicyCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteDomainPermissionsPolicyCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteDomainPermissionsPolicyRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteDomainPermissionsPolicyResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeletePackageVersionsRequestFilterSensitiveLog, DeletePackageVersionsResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeletePackageVersionsCommand, serializeAws_restJson1DeletePackageVersionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeletePackageVersionsCommand = (function (_super) {
|
|
7
7
|
__extends(DeletePackageVersionsCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeletePackageVersionsCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeletePackageVersionsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeletePackageVersionsResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteRepositoryRequestFilterSensitiveLog, DeleteRepositoryResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeleteRepositoryCommand, serializeAws_restJson1DeleteRepositoryCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeleteRepositoryCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteRepositoryCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteRepositoryCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteRepositoryRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteRepositoryResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DeleteRepositoryPermissionsPolicyRequestFilterSensitiveLog, DeleteRepositoryPermissionsPolicyResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand, serializeAws_restJson1DeleteRepositoryPermissionsPolicyCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DeleteRepositoryPermissionsPolicyCommand = (function (_super) {
|
|
7
7
|
__extends(DeleteRepositoryPermissionsPolicyCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DeleteRepositoryPermissionsPolicyCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DeleteRepositoryPermissionsPolicyRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DeleteRepositoryPermissionsPolicyResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { DescribeDomainRequestFilterSensitiveLog, DescribeDomainResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
5
|
import { deserializeAws_restJson1DescribeDomainCommand, serializeAws_restJson1DescribeDomainCommand, } from "../protocols/Aws_restJson1";
|
|
6
6
|
var DescribeDomainCommand = (function (_super) {
|
|
7
7
|
__extends(DescribeDomainCommand, _super);
|
|
@@ -20,8 +20,8 @@ var DescribeDomainCommand = (function (_super) {
|
|
|
20
20
|
logger: logger,
|
|
21
21
|
clientName: clientName,
|
|
22
22
|
commandName: commandName,
|
|
23
|
-
inputFilterSensitiveLog:
|
|
24
|
-
outputFilterSensitiveLog:
|
|
23
|
+
inputFilterSensitiveLog: DescribeDomainRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeDomainResultFilterSensitiveLog,
|
|
25
25
|
};
|
|
26
26
|
var requestHandler = configuration.requestHandler;
|
|
27
27
|
return stack.resolve(function (request) {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribePackageRequestFilterSensitiveLog, DescribePackageResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1DescribePackageCommand, serializeAws_restJson1DescribePackageCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var DescribePackageCommand = (function (_super) {
|
|
7
|
+
__extends(DescribePackageCommand, _super);
|
|
8
|
+
function DescribePackageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribePackageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CodeartifactClient";
|
|
18
|
+
var commandName = "DescribePackageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribePackageRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribePackageResultFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribePackageCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1DescribePackageCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribePackageCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1DescribePackageCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribePackageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribePackageCommand };
|