@aws-sdk/client-codeartifact 3.282.0 → 3.288.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/README.md +16 -0
- package/dist-cjs/Codeartifact.js +15 -0
- package/dist-cjs/commands/PublishPackageVersionCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +10 -1
- package/dist-cjs/pagination/ListDomainsPaginator.js +1 -8
- package/dist-cjs/pagination/ListPackageVersionAssetsPaginator.js +1 -8
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +1 -8
- package/dist-cjs/pagination/ListPackagesPaginator.js +1 -8
- package/dist-cjs/pagination/ListRepositoriesInDomainPaginator.js +1 -8
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +106 -2
- package/dist-es/Codeartifact.js +15 -0
- package/dist-es/commands/PublishPackageVersionCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/pagination/ListDomainsPaginator.js +1 -8
- package/dist-es/pagination/ListPackageVersionAssetsPaginator.js +1 -8
- package/dist-es/pagination/ListPackageVersionsPaginator.js +1 -8
- package/dist-es/pagination/ListPackagesPaginator.js +1 -8
- package/dist-es/pagination/ListRepositoriesInDomainPaginator.js +1 -8
- package/dist-es/pagination/ListRepositoriesPaginator.js +1 -8
- package/dist-es/protocols/Aws_restJson1.js +102 -0
- package/dist-types/Codeartifact.d.ts +20 -1
- package/dist-types/CodeartifactClient.d.ts +11 -2
- package/dist-types/commands/DeletePackageVersionsCommand.d.ts +1 -1
- package/dist-types/commands/PublishPackageVersionCommand.d.ts +58 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +194 -10
- package/dist-types/pagination/Interfaces.d.ts +1 -2
- 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/PublishPackageVersionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +29 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +1 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +9 -9
|
@@ -30,6 +30,7 @@ export var HashAlgorithm;
|
|
|
30
30
|
})(HashAlgorithm || (HashAlgorithm = {}));
|
|
31
31
|
export var PackageFormat;
|
|
32
32
|
(function (PackageFormat) {
|
|
33
|
+
PackageFormat["GENERIC"] = "generic";
|
|
33
34
|
PackageFormat["MAVEN"] = "maven";
|
|
34
35
|
PackageFormat["NPM"] = "npm";
|
|
35
36
|
PackageFormat["NUGET"] = "nuget";
|
|
@@ -414,6 +415,12 @@ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
|
414
415
|
export const ListTagsForResourceResultFilterSensitiveLog = (obj) => ({
|
|
415
416
|
...obj,
|
|
416
417
|
});
|
|
418
|
+
export const PublishPackageVersionRequestFilterSensitiveLog = (obj) => ({
|
|
419
|
+
...obj,
|
|
420
|
+
});
|
|
421
|
+
export const PublishPackageVersionResultFilterSensitiveLog = (obj) => ({
|
|
422
|
+
...obj,
|
|
423
|
+
});
|
|
417
424
|
export const PutDomainPermissionsPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
418
425
|
...obj,
|
|
419
426
|
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Codeartifact } from "../Codeartifact";
|
|
2
1
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
3
2
|
import { ListDomainsCommand } from "../commands/ListDomainsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListDomainsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listDomains(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListDomains(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListDomains(config, input, ...additionalArguments
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeartifactClient) {
|
|
13
|
+
if (config.client instanceof CodeartifactClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Codeartifact } from "../Codeartifact";
|
|
2
1
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
3
2
|
import { ListPackageVersionAssetsCommand, } from "../commands/ListPackageVersionAssetsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListPackageVersionAssetsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listPackageVersionAssets(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListPackageVersionAssets(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListPackageVersionAssets(config, input, ...additi
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeartifactClient) {
|
|
13
|
+
if (config.client instanceof CodeartifactClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Codeartifact } from "../Codeartifact";
|
|
2
1
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
3
2
|
import { ListPackageVersionsCommand, } from "../commands/ListPackageVersionsCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListPackageVersionsCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listPackageVersions(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListPackageVersions(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListPackageVersions(config, input, ...additionalA
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeartifactClient) {
|
|
13
|
+
if (config.client instanceof CodeartifactClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Codeartifact } from "../Codeartifact";
|
|
2
1
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
3
2
|
import { ListPackagesCommand, } from "../commands/ListPackagesCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListPackagesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listPackages(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListPackages(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListPackages(config, input, ...additionalArgument
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeartifactClient) {
|
|
13
|
+
if (config.client instanceof CodeartifactClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Codeartifact } from "../Codeartifact";
|
|
2
1
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
3
2
|
import { ListRepositoriesInDomainCommand, } from "../commands/ListRepositoriesInDomainCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListRepositoriesInDomainCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listRepositoriesInDomain(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListRepositoriesInDomain(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListRepositoriesInDomain(config, input, ...additi
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeartifactClient) {
|
|
13
|
+
if (config.client instanceof CodeartifactClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Codeartifact } from "../Codeartifact";
|
|
2
1
|
import { CodeartifactClient } from "../CodeartifactClient";
|
|
3
2
|
import { ListRepositoriesCommand, } from "../commands/ListRepositoriesCommand";
|
|
4
3
|
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
4
|
return await client.send(new ListRepositoriesCommand(input), ...args);
|
|
6
5
|
};
|
|
7
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.listRepositories(input, ...args);
|
|
9
|
-
};
|
|
10
6
|
export async function* paginateListRepositories(config, input, ...additionalArguments) {
|
|
11
7
|
let token = config.startingToken || undefined;
|
|
12
8
|
let hasNext = true;
|
|
@@ -14,10 +10,7 @@ export async function* paginateListRepositories(config, input, ...additionalArgu
|
|
|
14
10
|
while (hasNext) {
|
|
15
11
|
input.nextToken = token;
|
|
16
12
|
input["maxResults"] = config.pageSize;
|
|
17
|
-
if (config.client instanceof
|
|
18
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
-
}
|
|
20
|
-
else if (config.client instanceof CodeartifactClient) {
|
|
13
|
+
if (config.client instanceof CodeartifactClient) {
|
|
21
14
|
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
15
|
}
|
|
23
16
|
else {
|
|
@@ -728,6 +728,39 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
728
728
|
body,
|
|
729
729
|
});
|
|
730
730
|
};
|
|
731
|
+
export const serializeAws_restJson1PublishPackageVersionCommand = async (input, context) => {
|
|
732
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
733
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
734
|
+
"content-type": "application/octet-stream",
|
|
735
|
+
"x-amz-content-sha256": input.assetSHA256,
|
|
736
|
+
});
|
|
737
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/package/version/publish";
|
|
738
|
+
const query = map({
|
|
739
|
+
domain: [, __expectNonNull(input.domain, `domain`)],
|
|
740
|
+
"domain-owner": [, input.domainOwner],
|
|
741
|
+
repository: [, __expectNonNull(input.repository, `repository`)],
|
|
742
|
+
format: [, __expectNonNull(input.format, `format`)],
|
|
743
|
+
namespace: [, input.namespace],
|
|
744
|
+
package: [, __expectNonNull(input.package, `package`)],
|
|
745
|
+
version: [, __expectNonNull(input.packageVersion, `packageVersion`)],
|
|
746
|
+
asset: [, __expectNonNull(input.assetName, `assetName`)],
|
|
747
|
+
unfinished: [() => input.unfinished !== void 0, () => input.unfinished.toString()],
|
|
748
|
+
});
|
|
749
|
+
let body;
|
|
750
|
+
if (input.assetContent !== undefined) {
|
|
751
|
+
body = input.assetContent;
|
|
752
|
+
}
|
|
753
|
+
return new __HttpRequest({
|
|
754
|
+
protocol,
|
|
755
|
+
hostname,
|
|
756
|
+
port,
|
|
757
|
+
method: "POST",
|
|
758
|
+
headers,
|
|
759
|
+
path: resolvedPath,
|
|
760
|
+
query,
|
|
761
|
+
body,
|
|
762
|
+
});
|
|
763
|
+
};
|
|
731
764
|
export const serializeAws_restJson1PutDomainPermissionsPolicyCommand = async (input, context) => {
|
|
732
765
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
733
766
|
const headers = {
|
|
@@ -2407,6 +2440,75 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2407
2440
|
});
|
|
2408
2441
|
}
|
|
2409
2442
|
};
|
|
2443
|
+
export const deserializeAws_restJson1PublishPackageVersionCommand = async (output, context) => {
|
|
2444
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2445
|
+
return deserializeAws_restJson1PublishPackageVersionCommandError(output, context);
|
|
2446
|
+
}
|
|
2447
|
+
const contents = map({
|
|
2448
|
+
$metadata: deserializeMetadata(output),
|
|
2449
|
+
});
|
|
2450
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2451
|
+
if (data.asset != null) {
|
|
2452
|
+
contents.asset = deserializeAws_restJson1AssetSummary(data.asset, context);
|
|
2453
|
+
}
|
|
2454
|
+
if (data.format != null) {
|
|
2455
|
+
contents.format = __expectString(data.format);
|
|
2456
|
+
}
|
|
2457
|
+
if (data.namespace != null) {
|
|
2458
|
+
contents.namespace = __expectString(data.namespace);
|
|
2459
|
+
}
|
|
2460
|
+
if (data.package != null) {
|
|
2461
|
+
contents.package = __expectString(data.package);
|
|
2462
|
+
}
|
|
2463
|
+
if (data.status != null) {
|
|
2464
|
+
contents.status = __expectString(data.status);
|
|
2465
|
+
}
|
|
2466
|
+
if (data.version != null) {
|
|
2467
|
+
contents.version = __expectString(data.version);
|
|
2468
|
+
}
|
|
2469
|
+
if (data.versionRevision != null) {
|
|
2470
|
+
contents.versionRevision = __expectString(data.versionRevision);
|
|
2471
|
+
}
|
|
2472
|
+
return contents;
|
|
2473
|
+
};
|
|
2474
|
+
const deserializeAws_restJson1PublishPackageVersionCommandError = async (output, context) => {
|
|
2475
|
+
const parsedOutput = {
|
|
2476
|
+
...output,
|
|
2477
|
+
body: await parseErrorBody(output.body, context),
|
|
2478
|
+
};
|
|
2479
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2480
|
+
switch (errorCode) {
|
|
2481
|
+
case "AccessDeniedException":
|
|
2482
|
+
case "com.amazonaws.codeartifact#AccessDeniedException":
|
|
2483
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2484
|
+
case "ConflictException":
|
|
2485
|
+
case "com.amazonaws.codeartifact#ConflictException":
|
|
2486
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2487
|
+
case "InternalServerException":
|
|
2488
|
+
case "com.amazonaws.codeartifact#InternalServerException":
|
|
2489
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2490
|
+
case "ResourceNotFoundException":
|
|
2491
|
+
case "com.amazonaws.codeartifact#ResourceNotFoundException":
|
|
2492
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2493
|
+
case "ServiceQuotaExceededException":
|
|
2494
|
+
case "com.amazonaws.codeartifact#ServiceQuotaExceededException":
|
|
2495
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2496
|
+
case "ThrottlingException":
|
|
2497
|
+
case "com.amazonaws.codeartifact#ThrottlingException":
|
|
2498
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2499
|
+
case "ValidationException":
|
|
2500
|
+
case "com.amazonaws.codeartifact#ValidationException":
|
|
2501
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2502
|
+
default:
|
|
2503
|
+
const parsedBody = parsedOutput.body;
|
|
2504
|
+
throwDefaultError({
|
|
2505
|
+
output,
|
|
2506
|
+
parsedBody,
|
|
2507
|
+
exceptionCtor: __BaseException,
|
|
2508
|
+
errorCode,
|
|
2509
|
+
});
|
|
2510
|
+
}
|
|
2511
|
+
};
|
|
2410
2512
|
export const deserializeAws_restJson1PutDomainPermissionsPolicyCommand = async (output, context) => {
|
|
2411
2513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2412
2514
|
return deserializeAws_restJson1PutDomainPermissionsPolicyCommandError(output, context);
|
|
@@ -30,6 +30,7 @@ import { ListPackageVersionsCommandInput, ListPackageVersionsCommandOutput } fro
|
|
|
30
30
|
import { ListRepositoriesCommandInput, ListRepositoriesCommandOutput } from "./commands/ListRepositoriesCommand";
|
|
31
31
|
import { ListRepositoriesInDomainCommandInput, ListRepositoriesInDomainCommandOutput } from "./commands/ListRepositoriesInDomainCommand";
|
|
32
32
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
33
|
+
import { PublishPackageVersionCommandInput, PublishPackageVersionCommandOutput } from "./commands/PublishPackageVersionCommand";
|
|
33
34
|
import { PutDomainPermissionsPolicyCommandInput, PutDomainPermissionsPolicyCommandOutput } from "./commands/PutDomainPermissionsPolicyCommand";
|
|
34
35
|
import { PutPackageOriginConfigurationCommandInput, PutPackageOriginConfigurationCommandOutput } from "./commands/PutPackageOriginConfigurationCommand";
|
|
35
36
|
import { PutRepositoryPermissionsPolicyCommandInput, PutRepositoryPermissionsPolicyCommandOutput } from "./commands/PutRepositoryPermissionsPolicyCommand";
|
|
@@ -155,6 +156,10 @@ import { UpdateRepositoryCommandInput, UpdateRepositoryCommandOutput } from "./c
|
|
|
155
156
|
* </li>
|
|
156
157
|
* <li>
|
|
157
158
|
* <p>
|
|
159
|
+
* <code>DeletePackage</code>: Deletes a package and all associated package versions.</p>
|
|
160
|
+
* </li>
|
|
161
|
+
* <li>
|
|
162
|
+
* <p>
|
|
158
163
|
* <code>DeletePackageVersions</code>: Deletes versions of a package. After a package has
|
|
159
164
|
* been deleted, it can be republished, but its assets and metadata cannot be restored
|
|
160
165
|
* because they have been permanently removed from storage.</p>
|
|
@@ -283,6 +288,10 @@ import { UpdateRepositoryCommandInput, UpdateRepositoryCommandOutput } from "./c
|
|
|
283
288
|
* </li>
|
|
284
289
|
* <li>
|
|
285
290
|
* <p>
|
|
291
|
+
* <code>PublishPackageVersion</code>: Creates a new package version containing one or more assets.</p>
|
|
292
|
+
* </li>
|
|
293
|
+
* <li>
|
|
294
|
+
* <p>
|
|
286
295
|
* <code>PutDomainPermissionsPolicy</code>: Attaches a resource policy to a domain.</p>
|
|
287
296
|
* </li>
|
|
288
297
|
* <li>
|
|
@@ -381,7 +390,7 @@ export declare class Codeartifact extends CodeartifactClient {
|
|
|
381
390
|
* in your repository. If you want to remove a package version from your repository and be able
|
|
382
391
|
* to restore it later, set its status to <code>Archived</code>. Archived packages cannot be
|
|
383
392
|
* downloaded from a repository and don't show up with list package APIs (for example,
|
|
384
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">
|
|
393
|
+
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a>), but you can restore them using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionsStatus</a>. </p>
|
|
385
394
|
*/
|
|
386
395
|
deletePackageVersions(args: DeletePackageVersionsCommandInput, options?: __HttpHandlerOptions): Promise<DeletePackageVersionsCommandOutput>;
|
|
387
396
|
deletePackageVersions(args: DeletePackageVersionsCommandInput, cb: (err: any, data?: DeletePackageVersionsCommandOutput) => void): void;
|
|
@@ -650,6 +659,16 @@ export declare class Codeartifact extends CodeartifactClient {
|
|
|
650
659
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
651
660
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
652
661
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
662
|
+
/**
|
|
663
|
+
* <p>Creates a new package version containing one or more assets (or files).</p>
|
|
664
|
+
* <p>The <code>unfinished</code> flag can be used to keep the package version in the <code>Unfinished</code> state until all of it’s assets have been uploaded (see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status">Package version status</a> in the <i>CodeArtifact user guide</i>). To set the package version’s status to <code>Published</code>, omit the <code>unfinished</code> flag when uploading the final asset, or set the status using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionStatus</a>. Once a package version’s status is set to <code>Published</code>, it cannot change back to <code>Unfinished</code>.</p>
|
|
665
|
+
* <note>
|
|
666
|
+
* <p>Only generic packages can be published using this API.</p>
|
|
667
|
+
* </note>
|
|
668
|
+
*/
|
|
669
|
+
publishPackageVersion(args: PublishPackageVersionCommandInput, options?: __HttpHandlerOptions): Promise<PublishPackageVersionCommandOutput>;
|
|
670
|
+
publishPackageVersion(args: PublishPackageVersionCommandInput, cb: (err: any, data?: PublishPackageVersionCommandOutput) => void): void;
|
|
671
|
+
publishPackageVersion(args: PublishPackageVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PublishPackageVersionCommandOutput) => void): void;
|
|
653
672
|
/**
|
|
654
673
|
* <p>
|
|
655
674
|
* Sets a resource policy on a domain that specifies permissions to access it.
|
|
@@ -37,6 +37,7 @@ import { ListPackageVersionsCommandInput, ListPackageVersionsCommandOutput } fro
|
|
|
37
37
|
import { ListRepositoriesCommandInput, ListRepositoriesCommandOutput } from "./commands/ListRepositoriesCommand";
|
|
38
38
|
import { ListRepositoriesInDomainCommandInput, ListRepositoriesInDomainCommandOutput } from "./commands/ListRepositoriesInDomainCommand";
|
|
39
39
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
40
|
+
import { PublishPackageVersionCommandInput, PublishPackageVersionCommandOutput } from "./commands/PublishPackageVersionCommand";
|
|
40
41
|
import { PutDomainPermissionsPolicyCommandInput, PutDomainPermissionsPolicyCommandOutput } from "./commands/PutDomainPermissionsPolicyCommand";
|
|
41
42
|
import { PutPackageOriginConfigurationCommandInput, PutPackageOriginConfigurationCommandOutput } from "./commands/PutPackageOriginConfigurationCommand";
|
|
42
43
|
import { PutRepositoryPermissionsPolicyCommandInput, PutRepositoryPermissionsPolicyCommandOutput } from "./commands/PutRepositoryPermissionsPolicyCommand";
|
|
@@ -45,8 +46,8 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
45
46
|
import { UpdatePackageVersionsStatusCommandInput, UpdatePackageVersionsStatusCommandOutput } from "./commands/UpdatePackageVersionsStatusCommand";
|
|
46
47
|
import { UpdateRepositoryCommandInput, UpdateRepositoryCommandOutput } from "./commands/UpdateRepositoryCommand";
|
|
47
48
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
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
|
+
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 | PublishPackageVersionCommandInput | PutDomainPermissionsPolicyCommandInput | PutPackageOriginConfigurationCommandInput | PutRepositoryPermissionsPolicyCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdatePackageVersionsStatusCommandInput | UpdateRepositoryCommandInput;
|
|
50
|
+
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 | PublishPackageVersionCommandOutput | PutDomainPermissionsPolicyCommandOutput | PutPackageOriginConfigurationCommandOutput | PutRepositoryPermissionsPolicyCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdatePackageVersionsStatusCommandOutput | UpdateRepositoryCommandOutput;
|
|
50
51
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
51
52
|
/**
|
|
52
53
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -282,6 +283,10 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
|
|
|
282
283
|
* </li>
|
|
283
284
|
* <li>
|
|
284
285
|
* <p>
|
|
286
|
+
* <code>DeletePackage</code>: Deletes a package and all associated package versions.</p>
|
|
287
|
+
* </li>
|
|
288
|
+
* <li>
|
|
289
|
+
* <p>
|
|
285
290
|
* <code>DeletePackageVersions</code>: Deletes versions of a package. After a package has
|
|
286
291
|
* been deleted, it can be republished, but its assets and metadata cannot be restored
|
|
287
292
|
* because they have been permanently removed from storage.</p>
|
|
@@ -410,6 +415,10 @@ export interface CodeartifactClientResolvedConfig extends CodeartifactClientReso
|
|
|
410
415
|
* </li>
|
|
411
416
|
* <li>
|
|
412
417
|
* <p>
|
|
418
|
+
* <code>PublishPackageVersion</code>: Creates a new package version containing one or more assets.</p>
|
|
419
|
+
* </li>
|
|
420
|
+
* <li>
|
|
421
|
+
* <p>
|
|
413
422
|
* <code>PutDomainPermissionsPolicy</code>: Attaches a resource policy to a domain.</p>
|
|
414
423
|
* </li>
|
|
415
424
|
* <li>
|
|
@@ -18,7 +18,7 @@ export interface DeletePackageVersionsCommandOutput extends DeletePackageVersion
|
|
|
18
18
|
* in your repository. If you want to remove a package version from your repository and be able
|
|
19
19
|
* to restore it later, set its status to <code>Archived</code>. Archived packages cannot be
|
|
20
20
|
* downloaded from a repository and don't show up with list package APIs (for example,
|
|
21
|
-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">
|
|
21
|
+
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a>), but you can restore them using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionsStatus</a>. </p>
|
|
22
22
|
* @example
|
|
23
23
|
* Use a bare-bones client and the command you need to make an API call.
|
|
24
24
|
* ```javascript
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
5
|
+
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
|
|
6
|
+
import { PublishPackageVersionRequest, PublishPackageVersionResult } from "../models/models_0";
|
|
7
|
+
/**
|
|
8
|
+
* The input for {@link PublishPackageVersionCommand}.
|
|
9
|
+
*/
|
|
10
|
+
declare type PublishPackageVersionCommandInputType = Omit<PublishPackageVersionRequest, "assetContent"> & {
|
|
11
|
+
/**
|
|
12
|
+
* For *`PublishPackageVersionRequest["assetContent"]`*, see {@link PublishPackageVersionRequest.assetContent}.
|
|
13
|
+
*/
|
|
14
|
+
assetContent: PublishPackageVersionRequest["assetContent"] | string | Uint8Array | Buffer;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* This interface extends from `PublishPackageVersionRequest` interface. There are more parameters than `assetContent` defined in {@link PublishPackageVersionRequest}
|
|
18
|
+
*/
|
|
19
|
+
export interface PublishPackageVersionCommandInput extends PublishPackageVersionCommandInputType {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The output of {@link PublishPackageVersionCommand}.
|
|
23
|
+
*/
|
|
24
|
+
export interface PublishPackageVersionCommandOutput extends PublishPackageVersionResult, __MetadataBearer {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a new package version containing one or more assets (or files).</p>
|
|
28
|
+
* <p>The <code>unfinished</code> flag can be used to keep the package version in the <code>Unfinished</code> state until all of it’s assets have been uploaded (see <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/packages-overview.html#package-version-status.html#package-version-status">Package version status</a> in the <i>CodeArtifact user guide</i>). To set the package version’s status to <code>Published</code>, omit the <code>unfinished</code> flag when uploading the final asset, or set the status using <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_UpdatePackageVersionsStatus.html">UpdatePackageVersionStatus</a>. Once a package version’s status is set to <code>Published</code>, it cannot change back to <code>Unfinished</code>.</p>
|
|
29
|
+
* <note>
|
|
30
|
+
* <p>Only generic packages can be published using this API.</p>
|
|
31
|
+
* </note>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { CodeartifactClient, PublishPackageVersionCommand } from "@aws-sdk/client-codeartifact"; // ES Modules import
|
|
36
|
+
* // const { CodeartifactClient, PublishPackageVersionCommand } = require("@aws-sdk/client-codeartifact"); // CommonJS import
|
|
37
|
+
* const client = new CodeartifactClient(config);
|
|
38
|
+
* const command = new PublishPackageVersionCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link PublishPackageVersionCommandInput} for command's `input` shape.
|
|
43
|
+
* @see {@link PublishPackageVersionCommandOutput} for command's `response` shape.
|
|
44
|
+
* @see {@link CodeartifactClientResolvedConfig | config} for CodeartifactClient's `config` shape.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
export declare class PublishPackageVersionCommand extends $Command<PublishPackageVersionCommandInput, PublishPackageVersionCommandOutput, CodeartifactClientResolvedConfig> {
|
|
48
|
+
readonly input: PublishPackageVersionCommandInput;
|
|
49
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
50
|
+
constructor(input: PublishPackageVersionCommandInput);
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeartifactClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PublishPackageVersionCommandInput, PublishPackageVersionCommandOutput>;
|
|
55
|
+
private serialize;
|
|
56
|
+
private deserialize;
|
|
57
|
+
}
|
|
58
|
+
export {};
|
|
@@ -28,6 +28,7 @@ export * from "./ListPackagesCommand";
|
|
|
28
28
|
export * from "./ListRepositoriesCommand";
|
|
29
29
|
export * from "./ListRepositoriesInDomainCommand";
|
|
30
30
|
export * from "./ListTagsForResourceCommand";
|
|
31
|
+
export * from "./PublishPackageVersionCommand";
|
|
31
32
|
export * from "./PutDomainPermissionsPolicyCommand";
|
|
32
33
|
export * from "./PutPackageOriginConfigurationCommand";
|
|
33
34
|
export * from "./PutRepositoryPermissionsPolicyCommand";
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|