@aws-sdk/client-codecommit 3.477.0 → 3.479.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 +13 -0
- package/dist-cjs/CodeCommit.js +2 -0
- package/dist-cjs/commands/UpdateRepositoryEncryptionKeyCommand.js +51 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +38 -30
- package/dist-cjs/models/models_1.js +40 -1
- package/dist-cjs/pagination/DescribeMergeConflictsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePullRequestEventsPaginator.js +2 -24
- package/dist-cjs/pagination/GetCommentReactionsPaginator.js +2 -24
- package/dist-cjs/pagination/GetCommentsForComparedCommitPaginator.js +2 -24
- package/dist-cjs/pagination/GetCommentsForPullRequestPaginator.js +2 -24
- package/dist-cjs/pagination/GetDifferencesPaginator.js +2 -24
- package/dist-cjs/pagination/GetMergeConflictsPaginator.js +2 -24
- package/dist-cjs/pagination/ListApprovalRuleTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListBranchesPaginator.js +2 -23
- package/dist-cjs/pagination/ListFileCommitHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListPullRequestsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -24
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +2 -23
- package/dist-cjs/protocols/Aws_json1_1.js +110 -5
- package/dist-es/CodeCommit.js +2 -0
- package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +47 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +32 -24
- package/dist-es/models/models_1.js +36 -0
- package/dist-es/pagination/DescribeMergeConflictsPaginator.js +2 -23
- package/dist-es/pagination/DescribePullRequestEventsPaginator.js +2 -23
- package/dist-es/pagination/GetCommentReactionsPaginator.js +2 -23
- package/dist-es/pagination/GetCommentsForComparedCommitPaginator.js +2 -23
- package/dist-es/pagination/GetCommentsForPullRequestPaginator.js +2 -23
- package/dist-es/pagination/GetDifferencesPaginator.js +2 -23
- package/dist-es/pagination/GetMergeConflictsPaginator.js +2 -23
- package/dist-es/pagination/ListApprovalRuleTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -23
- package/dist-es/pagination/ListBranchesPaginator.js +2 -22
- package/dist-es/pagination/ListFileCommitHistoryPaginator.js +2 -23
- package/dist-es/pagination/ListPullRequestsPaginator.js +2 -23
- package/dist-es/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -23
- package/dist-es/pagination/ListRepositoriesPaginator.js +2 -22
- package/dist-es/protocols/Aws_json1_1.js +105 -2
- package/dist-types/CodeCommit.d.ts +12 -0
- package/dist-types/CodeCommitClient.d.ts +8 -2
- package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +9 -0
- package/dist-types/commands/CreateRepositoryCommand.d.ts +9 -0
- package/dist-types/commands/GetRepositoryCommand.d.ts +1 -0
- package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +2 -1
- package/dist-types/commands/ListPullRequestsCommand.d.ts +1 -2
- package/dist-types/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +115 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +86 -71
- package/dist-types/models/models_1.d.ts +122 -1
- package/dist-types/pagination/DescribeMergeConflictsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePullRequestEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCommentReactionsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCommentsForComparedCommitPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCommentsForPullRequestPaginator.d.ts +1 -1
- package/dist-types/pagination/GetDifferencesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetMergeConflictsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListApprovalRuleTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBranchesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFileCommitHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPullRequestsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +1 -1
- package/dist-types/pagination/ListRepositoriesPaginator.d.ts +1 -1
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
- package/dist-types/ts3.4/CodeCommitClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +39 -28
- package/dist-types/ts3.4/models/models_1.d.ts +45 -0
- package/dist-types/ts3.4/pagination/DescribeMergeConflictsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePullRequestEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCommentReactionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCommentsForComparedCommitPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCommentsForPullRequestPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetDifferencesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetMergeConflictsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListApprovalRuleTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBranchesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFileCommitHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPullRequestsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRepositoriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +6 -5
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { GetDifferencesCommand, } from "../commands/GetDifferencesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetDifferencesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetDifferences(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetDifferences = createPaginator(CodeCommitClient, GetDifferencesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { GetMergeConflictsCommand, } from "../commands/GetMergeConflictsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetMergeConflictsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetMergeConflicts(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxConflictFiles"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateGetMergeConflicts = createPaginator(CodeCommitClient, GetMergeConflictsCommand, "nextToken", "nextToken", "maxConflictFiles");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { ListApprovalRuleTemplatesCommand, } from "../commands/ListApprovalRuleTemplatesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListApprovalRuleTemplatesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListApprovalRuleTemplates(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListApprovalRuleTemplates = createPaginator(CodeCommitClient, ListApprovalRuleTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { ListAssociatedApprovalRuleTemplatesForRepositoryCommand, } from "../commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAssociatedApprovalRuleTemplatesForRepositoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAssociatedApprovalRuleTemplatesForRepository(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAssociatedApprovalRuleTemplatesForRepository = createPaginator(CodeCommitClient, ListAssociatedApprovalRuleTemplatesForRepositoryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { ListBranchesCommand, } from "../commands/ListBranchesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListBranchesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListBranches(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof CodeCommitClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListBranches = createPaginator(CodeCommitClient, ListBranchesCommand, "nextToken", "nextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { ListFileCommitHistoryCommand, } from "../commands/ListFileCommitHistoryCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListFileCommitHistoryCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListFileCommitHistory(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListFileCommitHistory = createPaginator(CodeCommitClient, ListFileCommitHistoryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { ListPullRequestsCommand, } from "../commands/ListPullRequestsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListPullRequestsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListPullRequests(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListPullRequests = createPaginator(CodeCommitClient, ListPullRequestsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { ListRepositoriesForApprovalRuleTemplateCommand, } from "../commands/ListRepositoriesForApprovalRuleTemplateCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRepositoriesForApprovalRuleTemplateCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRepositoriesForApprovalRuleTemplate(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
input["maxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.nextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListRepositoriesForApprovalRuleTemplate = createPaginator(CodeCommitClient, ListRepositoriesForApprovalRuleTemplateCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { ListRepositoriesCommand, } from "../commands/ListRepositoriesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListRepositoriesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListRepositories(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.nextToken = token;
|
|
12
|
-
if (config.client instanceof CodeCommitClient) {
|
|
13
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
17
|
-
}
|
|
18
|
-
yield page;
|
|
19
|
-
const prevToken = token;
|
|
20
|
-
token = page.nextToken;
|
|
21
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
22
|
-
}
|
|
23
|
-
return undefined;
|
|
24
|
-
}
|
|
4
|
+
export const paginateListRepositories = createPaginator(CodeCommitClient, ListRepositoriesCommand, "nextToken", "nextToken", "");
|
|
@@ -2,8 +2,8 @@ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CodeCommitServiceException as __BaseException } from "../models/CodeCommitServiceException";
|
|
5
|
-
import { ActorDoesNotExistException, ApprovalRuleContentRequiredException, ApprovalRuleDoesNotExistException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleNameRequiredException, ApprovalRuleTemplateContentRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateInUseException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateNameRequiredException, ApprovalStateRequiredException, AuthorDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, BlobIdDoesNotExistException, BlobIdRequiredException, BranchDoesNotExistException, BranchNameExistsException, BranchNameIsTagNameException, BranchNameRequiredException, CannotDeleteApprovalRuleFromTemplateException, CannotModifyApprovalRuleFromTemplateException, ClientRequestTokenRequiredException, CommentDeletedException, CommentDoesNotExistException, CommentIdRequiredException, CommitDoesNotExistException, CommitIdDoesNotExistException, CommitIdRequiredException, CommitIdsLimitExceededException, CommitIdsListRequiredException, CommitMessageLengthExceededException, CommitRequiredException, ConcurrentReferenceUpdateException, DefaultBranchCannotBeDeletedException, DirectoryNameConflictsWithFileNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileContentAndSourceFileSpecifiedException, FileContentSizeLimitExceededException, FileDoesNotExistException, FileEntryRequiredException, FileModeRequiredException, FileNameConflictsWithDirectoryNameException, FilePathConflictsWithSubmodulePathException, FileTooLargeException, FolderContentSizeLimitExceededException, FolderDoesNotExistException, IdempotencyParameterMismatchException, InvalidActorArnException, InvalidApprovalRuleContentException, InvalidApprovalRuleNameException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, InvalidApprovalRuleTemplateNameException,
|
|
6
|
-
import { CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentNotCreatedByCallerException, FileContentRequiredException, InvalidApprovalStateException, InvalidFileLocationException, InvalidFilePositionException, InvalidOrderException, InvalidOverrideStatusException, InvalidPullRequestStatusUpdateException, InvalidReactionValueException, InvalidRelativeFileVersionEnumException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerCustomDataException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerEventsException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerRegionException, InvalidResourceArnException, InvalidRuleContentSha256Exception, InvalidSortByException, InvalidTagKeysListException, InvalidTargetBranchException, MaximumBranchesExceededException, MaximumNumberOfApprovalsExceededException, MaximumRepositoryTriggersExceededException, OverrideAlreadySetException, OverrideStatusRequiredException, PullRequestApprovalRulesNotSatisfiedException, PullRequestCannotBeApprovedByAuthorException, PullRequestStatusRequiredException, ReactionLimitExceededException, ReactionValueRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerEventsListRequiredException, RepositoryTriggerNameRequiredException, RepositoryTriggersListRequiredException, ResourceArnRequiredException, SameFileContentException, TagKeysListRequiredException, TagsMapRequiredException, TipOfSourceReferenceIsDifferentException, } from "../models/models_1";
|
|
5
|
+
import { ActorDoesNotExistException, ApprovalRuleContentRequiredException, ApprovalRuleDoesNotExistException, ApprovalRuleNameAlreadyExistsException, ApprovalRuleNameRequiredException, ApprovalRuleTemplateContentRequiredException, ApprovalRuleTemplateDoesNotExistException, ApprovalRuleTemplateInUseException, ApprovalRuleTemplateNameAlreadyExistsException, ApprovalRuleTemplateNameRequiredException, ApprovalStateRequiredException, AuthorDoesNotExistException, BeforeCommitIdAndAfterCommitIdAreSameException, BlobIdDoesNotExistException, BlobIdRequiredException, BranchDoesNotExistException, BranchNameExistsException, BranchNameIsTagNameException, BranchNameRequiredException, CannotDeleteApprovalRuleFromTemplateException, CannotModifyApprovalRuleFromTemplateException, ClientRequestTokenRequiredException, CommentDeletedException, CommentDoesNotExistException, CommentIdRequiredException, CommitDoesNotExistException, CommitIdDoesNotExistException, CommitIdRequiredException, CommitIdsLimitExceededException, CommitIdsListRequiredException, CommitMessageLengthExceededException, CommitRequiredException, ConcurrentReferenceUpdateException, DefaultBranchCannotBeDeletedException, DirectoryNameConflictsWithFileNameException, EncryptionIntegrityChecksFailedException, EncryptionKeyAccessDeniedException, EncryptionKeyDisabledException, EncryptionKeyInvalidIdException, EncryptionKeyInvalidUsageException, EncryptionKeyNotFoundException, EncryptionKeyUnavailableException, FileContentAndSourceFileSpecifiedException, FileContentSizeLimitExceededException, FileDoesNotExistException, FileEntryRequiredException, FileModeRequiredException, FileNameConflictsWithDirectoryNameException, FilePathConflictsWithSubmodulePathException, FileTooLargeException, FolderContentSizeLimitExceededException, FolderDoesNotExistException, IdempotencyParameterMismatchException, InvalidActorArnException, InvalidApprovalRuleContentException, InvalidApprovalRuleNameException, InvalidApprovalRuleTemplateContentException, InvalidApprovalRuleTemplateDescriptionException, InvalidApprovalRuleTemplateNameException, InvalidBlobIdException, InvalidBranchNameException, InvalidClientRequestTokenException, InvalidCommentIdException, InvalidCommitException, InvalidCommitIdException, InvalidConflictDetailLevelException, InvalidConflictResolutionException, InvalidConflictResolutionStrategyException, InvalidContinuationTokenException, InvalidDeletionParameterException, InvalidDescriptionException, InvalidDestinationCommitSpecifierException, InvalidEmailException, InvalidFileModeException, InvalidMaxConflictFilesException, InvalidMaxMergeHunksException, InvalidMaxResultsException, InvalidMergeOptionException, InvalidParentCommitIdException, InvalidPathException, InvalidPullRequestEventTypeException, InvalidPullRequestIdException, InvalidReactionUserArnException, InvalidReferenceNameException, InvalidReplacementContentException, InvalidReplacementTypeException, InvalidRepositoryDescriptionException, InvalidRepositoryNameException, InvalidRevisionIdException, InvalidSourceCommitSpecifierException, InvalidSystemTagUsageException, InvalidTagsMapException, InvalidTargetException, InvalidTargetsException, InvalidTitleException, ManualMergeRequiredException, MaximumConflictResolutionEntriesExceededException, MaximumFileContentToLoadExceededException, MaximumFileEntriesExceededException, MaximumItemsToCompareExceededException, MaximumOpenPullRequestsExceededException, MaximumRepositoryNamesExceededException, MaximumRuleTemplatesAssociatedWithRepositoryException, MergeOptionRequiredException, MultipleConflictResolutionEntriesException, MultipleRepositoriesInPullRequestException, NameLengthExceededException, NoChangeException, NumberOfRulesExceededException, NumberOfRuleTemplatesExceededException, ParentCommitDoesNotExistException, ParentCommitIdOutdatedException, ParentCommitIdRequiredException, PathDoesNotExistException, PathRequiredException, PullRequestAlreadyClosedException, PullRequestDoesNotExistException, PullRequestIdRequiredException, PutFileEntryConflictException, ReferenceDoesNotExistException, ReferenceNameRequiredException, ReferenceTypeNotSupportedException, ReplacementContentRequiredException, ReplacementTypeRequiredException, RepositoryDoesNotExistException, RepositoryLimitExceededException, RepositoryNameExistsException, RepositoryNameRequiredException, RepositoryNamesRequiredException, RepositoryNotAssociatedWithPullRequestException, RestrictedSourceFileException, RevisionIdRequiredException, RevisionNotCurrentException, SamePathRequestException, SourceAndDestinationAreSameException, SourceFileOrContentRequiredException, TagPolicyException, TargetRequiredException, TargetsRequiredException, TipsDivergenceExceededException, TitleRequiredException, TooManyTagsException, } from "../models/models_0";
|
|
6
|
+
import { CommentContentRequiredException, CommentContentSizeLimitExceededException, CommentNotCreatedByCallerException, EncryptionKeyRequiredException, FileContentRequiredException, InvalidApprovalStateException, InvalidAuthorArnException, InvalidFileLocationException, InvalidFilePositionException, InvalidOrderException, InvalidOverrideStatusException, InvalidPullRequestStatusException, InvalidPullRequestStatusUpdateException, InvalidReactionValueException, InvalidRelativeFileVersionEnumException, InvalidRepositoryTriggerBranchNameException, InvalidRepositoryTriggerCustomDataException, InvalidRepositoryTriggerDestinationArnException, InvalidRepositoryTriggerEventsException, InvalidRepositoryTriggerNameException, InvalidRepositoryTriggerRegionException, InvalidResourceArnException, InvalidRuleContentSha256Exception, InvalidSortByException, InvalidTagKeysListException, InvalidTargetBranchException, MaximumBranchesExceededException, MaximumNumberOfApprovalsExceededException, MaximumRepositoryTriggersExceededException, OverrideAlreadySetException, OverrideStatusRequiredException, PullRequestApprovalRulesNotSatisfiedException, PullRequestCannotBeApprovedByAuthorException, PullRequestStatusRequiredException, ReactionLimitExceededException, ReactionValueRequiredException, RepositoryTriggerBranchNameListRequiredException, RepositoryTriggerDestinationArnRequiredException, RepositoryTriggerEventsListRequiredException, RepositoryTriggerNameRequiredException, RepositoryTriggersListRequiredException, ResourceArnRequiredException, SameFileContentException, TagKeysListRequiredException, TagsMapRequiredException, TipOfSourceReferenceIsDifferentException, } from "../models/models_1";
|
|
7
7
|
export const se_AssociateApprovalRuleTemplateWithRepositoryCommand = async (input, context) => {
|
|
8
8
|
const headers = sharedHeaders("AssociateApprovalRuleTemplateWithRepository");
|
|
9
9
|
let body;
|
|
@@ -466,6 +466,12 @@ export const se_UpdateRepositoryDescriptionCommand = async (input, context) => {
|
|
|
466
466
|
body = JSON.stringify(_json(input));
|
|
467
467
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
468
468
|
};
|
|
469
|
+
export const se_UpdateRepositoryEncryptionKeyCommand = async (input, context) => {
|
|
470
|
+
const headers = sharedHeaders("UpdateRepositoryEncryptionKey");
|
|
471
|
+
let body;
|
|
472
|
+
body = JSON.stringify(_json(input));
|
|
473
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
474
|
+
};
|
|
469
475
|
export const se_UpdateRepositoryNameCommand = async (input, context) => {
|
|
470
476
|
const headers = sharedHeaders("UpdateRepositoryName");
|
|
471
477
|
let body;
|
|
@@ -1324,6 +1330,12 @@ const de_CreateRepositoryCommandError = async (output, context) => {
|
|
|
1324
1330
|
case "EncryptionKeyDisabledException":
|
|
1325
1331
|
case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
|
|
1326
1332
|
throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
|
|
1333
|
+
case "EncryptionKeyInvalidIdException":
|
|
1334
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidIdException":
|
|
1335
|
+
throw await de_EncryptionKeyInvalidIdExceptionRes(parsedOutput, context);
|
|
1336
|
+
case "EncryptionKeyInvalidUsageException":
|
|
1337
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidUsageException":
|
|
1338
|
+
throw await de_EncryptionKeyInvalidUsageExceptionRes(parsedOutput, context);
|
|
1327
1339
|
case "EncryptionKeyNotFoundException":
|
|
1328
1340
|
case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
|
|
1329
1341
|
throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -5915,6 +5927,68 @@ const de_UpdateRepositoryDescriptionCommandError = async (output, context) => {
|
|
|
5915
5927
|
});
|
|
5916
5928
|
}
|
|
5917
5929
|
};
|
|
5930
|
+
export const de_UpdateRepositoryEncryptionKeyCommand = async (output, context) => {
|
|
5931
|
+
if (output.statusCode >= 300) {
|
|
5932
|
+
return de_UpdateRepositoryEncryptionKeyCommandError(output, context);
|
|
5933
|
+
}
|
|
5934
|
+
const data = await parseBody(output.body, context);
|
|
5935
|
+
let contents = {};
|
|
5936
|
+
contents = _json(data);
|
|
5937
|
+
const response = {
|
|
5938
|
+
$metadata: deserializeMetadata(output),
|
|
5939
|
+
...contents,
|
|
5940
|
+
};
|
|
5941
|
+
return response;
|
|
5942
|
+
};
|
|
5943
|
+
const de_UpdateRepositoryEncryptionKeyCommandError = async (output, context) => {
|
|
5944
|
+
const parsedOutput = {
|
|
5945
|
+
...output,
|
|
5946
|
+
body: await parseErrorBody(output.body, context),
|
|
5947
|
+
};
|
|
5948
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5949
|
+
switch (errorCode) {
|
|
5950
|
+
case "EncryptionIntegrityChecksFailedException":
|
|
5951
|
+
case "com.amazonaws.codecommit#EncryptionIntegrityChecksFailedException":
|
|
5952
|
+
throw await de_EncryptionIntegrityChecksFailedExceptionRes(parsedOutput, context);
|
|
5953
|
+
case "EncryptionKeyAccessDeniedException":
|
|
5954
|
+
case "com.amazonaws.codecommit#EncryptionKeyAccessDeniedException":
|
|
5955
|
+
throw await de_EncryptionKeyAccessDeniedExceptionRes(parsedOutput, context);
|
|
5956
|
+
case "EncryptionKeyDisabledException":
|
|
5957
|
+
case "com.amazonaws.codecommit#EncryptionKeyDisabledException":
|
|
5958
|
+
throw await de_EncryptionKeyDisabledExceptionRes(parsedOutput, context);
|
|
5959
|
+
case "EncryptionKeyInvalidIdException":
|
|
5960
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidIdException":
|
|
5961
|
+
throw await de_EncryptionKeyInvalidIdExceptionRes(parsedOutput, context);
|
|
5962
|
+
case "EncryptionKeyInvalidUsageException":
|
|
5963
|
+
case "com.amazonaws.codecommit#EncryptionKeyInvalidUsageException":
|
|
5964
|
+
throw await de_EncryptionKeyInvalidUsageExceptionRes(parsedOutput, context);
|
|
5965
|
+
case "EncryptionKeyNotFoundException":
|
|
5966
|
+
case "com.amazonaws.codecommit#EncryptionKeyNotFoundException":
|
|
5967
|
+
throw await de_EncryptionKeyNotFoundExceptionRes(parsedOutput, context);
|
|
5968
|
+
case "EncryptionKeyRequiredException":
|
|
5969
|
+
case "com.amazonaws.codecommit#EncryptionKeyRequiredException":
|
|
5970
|
+
throw await de_EncryptionKeyRequiredExceptionRes(parsedOutput, context);
|
|
5971
|
+
case "EncryptionKeyUnavailableException":
|
|
5972
|
+
case "com.amazonaws.codecommit#EncryptionKeyUnavailableException":
|
|
5973
|
+
throw await de_EncryptionKeyUnavailableExceptionRes(parsedOutput, context);
|
|
5974
|
+
case "InvalidRepositoryNameException":
|
|
5975
|
+
case "com.amazonaws.codecommit#InvalidRepositoryNameException":
|
|
5976
|
+
throw await de_InvalidRepositoryNameExceptionRes(parsedOutput, context);
|
|
5977
|
+
case "RepositoryDoesNotExistException":
|
|
5978
|
+
case "com.amazonaws.codecommit#RepositoryDoesNotExistException":
|
|
5979
|
+
throw await de_RepositoryDoesNotExistExceptionRes(parsedOutput, context);
|
|
5980
|
+
case "RepositoryNameRequiredException":
|
|
5981
|
+
case "com.amazonaws.codecommit#RepositoryNameRequiredException":
|
|
5982
|
+
throw await de_RepositoryNameRequiredExceptionRes(parsedOutput, context);
|
|
5983
|
+
default:
|
|
5984
|
+
const parsedBody = parsedOutput.body;
|
|
5985
|
+
return throwDefaultError({
|
|
5986
|
+
output,
|
|
5987
|
+
parsedBody,
|
|
5988
|
+
errorCode,
|
|
5989
|
+
});
|
|
5990
|
+
}
|
|
5991
|
+
};
|
|
5918
5992
|
export const de_UpdateRepositoryNameCommand = async (output, context) => {
|
|
5919
5993
|
if (output.statusCode >= 300) {
|
|
5920
5994
|
return de_UpdateRepositoryNameCommandError(output, context);
|
|
@@ -6322,6 +6396,24 @@ const de_EncryptionKeyDisabledExceptionRes = async (parsedOutput, context) => {
|
|
|
6322
6396
|
});
|
|
6323
6397
|
return __decorateServiceException(exception, body);
|
|
6324
6398
|
};
|
|
6399
|
+
const de_EncryptionKeyInvalidIdExceptionRes = async (parsedOutput, context) => {
|
|
6400
|
+
const body = parsedOutput.body;
|
|
6401
|
+
const deserialized = _json(body);
|
|
6402
|
+
const exception = new EncryptionKeyInvalidIdException({
|
|
6403
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6404
|
+
...deserialized,
|
|
6405
|
+
});
|
|
6406
|
+
return __decorateServiceException(exception, body);
|
|
6407
|
+
};
|
|
6408
|
+
const de_EncryptionKeyInvalidUsageExceptionRes = async (parsedOutput, context) => {
|
|
6409
|
+
const body = parsedOutput.body;
|
|
6410
|
+
const deserialized = _json(body);
|
|
6411
|
+
const exception = new EncryptionKeyInvalidUsageException({
|
|
6412
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6413
|
+
...deserialized,
|
|
6414
|
+
});
|
|
6415
|
+
return __decorateServiceException(exception, body);
|
|
6416
|
+
};
|
|
6325
6417
|
const de_EncryptionKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
6326
6418
|
const body = parsedOutput.body;
|
|
6327
6419
|
const deserialized = _json(body);
|
|
@@ -6331,6 +6423,15 @@ const de_EncryptionKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
6331
6423
|
});
|
|
6332
6424
|
return __decorateServiceException(exception, body);
|
|
6333
6425
|
};
|
|
6426
|
+
const de_EncryptionKeyRequiredExceptionRes = async (parsedOutput, context) => {
|
|
6427
|
+
const body = parsedOutput.body;
|
|
6428
|
+
const deserialized = _json(body);
|
|
6429
|
+
const exception = new EncryptionKeyRequiredException({
|
|
6430
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
6431
|
+
...deserialized,
|
|
6432
|
+
});
|
|
6433
|
+
return __decorateServiceException(exception, body);
|
|
6434
|
+
};
|
|
6334
6435
|
const de_EncryptionKeyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
6335
6436
|
const body = parsedOutput.body;
|
|
6336
6437
|
const deserialized = _json(body);
|
|
@@ -7825,6 +7926,7 @@ const de_ApprovalRuleTemplate = (output, context) => {
|
|
|
7825
7926
|
};
|
|
7826
7927
|
const de_BatchGetRepositoriesOutput = (output, context) => {
|
|
7827
7928
|
return take(output, {
|
|
7929
|
+
errors: _json,
|
|
7828
7930
|
repositories: (_) => de_RepositoryMetadataList(_, context),
|
|
7829
7931
|
repositoriesNotFound: _json,
|
|
7830
7932
|
});
|
|
@@ -8057,6 +8159,7 @@ const de_RepositoryMetadata = (output, context) => {
|
|
|
8057
8159
|
cloneUrlSsh: __expectString,
|
|
8058
8160
|
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8059
8161
|
defaultBranch: __expectString,
|
|
8162
|
+
kmsKeyId: __expectString,
|
|
8060
8163
|
lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
8061
8164
|
repositoryDescription: __expectString,
|
|
8062
8165
|
repositoryId: __expectString,
|
|
@@ -77,6 +77,7 @@ import { UpdatePullRequestDescriptionCommandInput, UpdatePullRequestDescriptionC
|
|
|
77
77
|
import { UpdatePullRequestStatusCommandInput, UpdatePullRequestStatusCommandOutput } from "./commands/UpdatePullRequestStatusCommand";
|
|
78
78
|
import { UpdatePullRequestTitleCommandInput, UpdatePullRequestTitleCommandOutput } from "./commands/UpdatePullRequestTitleCommand";
|
|
79
79
|
import { UpdateRepositoryDescriptionCommandInput, UpdateRepositoryDescriptionCommandOutput } from "./commands/UpdateRepositoryDescriptionCommand";
|
|
80
|
+
import { UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput } from "./commands/UpdateRepositoryEncryptionKeyCommand";
|
|
80
81
|
import { UpdateRepositoryNameCommandInput, UpdateRepositoryNameCommandOutput } from "./commands/UpdateRepositoryNameCommand";
|
|
81
82
|
export interface CodeCommit {
|
|
82
83
|
/**
|
|
@@ -541,6 +542,12 @@ export interface CodeCommit {
|
|
|
541
542
|
updateRepositoryDescription(args: UpdateRepositoryDescriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRepositoryDescriptionCommandOutput>;
|
|
542
543
|
updateRepositoryDescription(args: UpdateRepositoryDescriptionCommandInput, cb: (err: any, data?: UpdateRepositoryDescriptionCommandOutput) => void): void;
|
|
543
544
|
updateRepositoryDescription(args: UpdateRepositoryDescriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRepositoryDescriptionCommandOutput) => void): void;
|
|
545
|
+
/**
|
|
546
|
+
* @see {@link UpdateRepositoryEncryptionKeyCommand}
|
|
547
|
+
*/
|
|
548
|
+
updateRepositoryEncryptionKey(args: UpdateRepositoryEncryptionKeyCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRepositoryEncryptionKeyCommandOutput>;
|
|
549
|
+
updateRepositoryEncryptionKey(args: UpdateRepositoryEncryptionKeyCommandInput, cb: (err: any, data?: UpdateRepositoryEncryptionKeyCommandOutput) => void): void;
|
|
550
|
+
updateRepositoryEncryptionKey(args: UpdateRepositoryEncryptionKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRepositoryEncryptionKeyCommandOutput) => void): void;
|
|
544
551
|
/**
|
|
545
552
|
* @see {@link UpdateRepositoryNameCommand}
|
|
546
553
|
*/
|
|
@@ -582,6 +589,11 @@ export interface CodeCommit {
|
|
|
582
589
|
* </li>
|
|
583
590
|
* <li>
|
|
584
591
|
* <p>
|
|
592
|
+
* <a>UpdateRepositoryEncryptionKey</a>, which updates the Key Management Service encryption key used
|
|
593
|
+
* to encrypt and decrypt a repository.</p>
|
|
594
|
+
* </li>
|
|
595
|
+
* <li>
|
|
596
|
+
* <p>
|
|
585
597
|
* <a>UpdateRepositoryName</a>, which changes the name of the
|
|
586
598
|
* repository. If you change the name of a repository, no other users of that
|
|
587
599
|
* repository can access it until you send them the new HTTPS or SSH URL to
|
|
@@ -85,6 +85,7 @@ import { UpdatePullRequestDescriptionCommandInput, UpdatePullRequestDescriptionC
|
|
|
85
85
|
import { UpdatePullRequestStatusCommandInput, UpdatePullRequestStatusCommandOutput } from "./commands/UpdatePullRequestStatusCommand";
|
|
86
86
|
import { UpdatePullRequestTitleCommandInput, UpdatePullRequestTitleCommandOutput } from "./commands/UpdatePullRequestTitleCommand";
|
|
87
87
|
import { UpdateRepositoryDescriptionCommandInput, UpdateRepositoryDescriptionCommandOutput } from "./commands/UpdateRepositoryDescriptionCommand";
|
|
88
|
+
import { UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput } from "./commands/UpdateRepositoryEncryptionKeyCommand";
|
|
88
89
|
import { UpdateRepositoryNameCommandInput, UpdateRepositoryNameCommandOutput } from "./commands/UpdateRepositoryNameCommand";
|
|
89
90
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
90
91
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -92,11 +93,11 @@ export { __Client };
|
|
|
92
93
|
/**
|
|
93
94
|
* @public
|
|
94
95
|
*/
|
|
95
|
-
export type ServiceInputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandInput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput | BatchDescribeMergeConflictsCommandInput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandInput | BatchGetCommitsCommandInput | BatchGetRepositoriesCommandInput | CreateApprovalRuleTemplateCommandInput | CreateBranchCommandInput | CreateCommitCommandInput | CreatePullRequestApprovalRuleCommandInput | CreatePullRequestCommandInput | CreateRepositoryCommandInput | CreateUnreferencedMergeCommitCommandInput | DeleteApprovalRuleTemplateCommandInput | DeleteBranchCommandInput | DeleteCommentContentCommandInput | DeleteFileCommandInput | DeletePullRequestApprovalRuleCommandInput | DeleteRepositoryCommandInput | DescribeMergeConflictsCommandInput | DescribePullRequestEventsCommandInput | DisassociateApprovalRuleTemplateFromRepositoryCommandInput | EvaluatePullRequestApprovalRulesCommandInput | GetApprovalRuleTemplateCommandInput | GetBlobCommandInput | GetBranchCommandInput | GetCommentCommandInput | GetCommentReactionsCommandInput | GetCommentsForComparedCommitCommandInput | GetCommentsForPullRequestCommandInput | GetCommitCommandInput | GetDifferencesCommandInput | GetFileCommandInput | GetFolderCommandInput | GetMergeCommitCommandInput | GetMergeConflictsCommandInput | GetMergeOptionsCommandInput | GetPullRequestApprovalStatesCommandInput | GetPullRequestCommandInput | GetPullRequestOverrideStateCommandInput | GetRepositoryCommandInput | GetRepositoryTriggersCommandInput | ListApprovalRuleTemplatesCommandInput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput | ListBranchesCommandInput | ListFileCommitHistoryCommandInput | ListPullRequestsCommandInput | ListRepositoriesCommandInput | ListRepositoriesForApprovalRuleTemplateCommandInput | ListTagsForResourceCommandInput | MergeBranchesByFastForwardCommandInput | MergeBranchesBySquashCommandInput | MergeBranchesByThreeWayCommandInput | MergePullRequestByFastForwardCommandInput | MergePullRequestBySquashCommandInput | MergePullRequestByThreeWayCommandInput | OverridePullRequestApprovalRulesCommandInput | PostCommentForComparedCommitCommandInput | PostCommentForPullRequestCommandInput | PostCommentReplyCommandInput | PutCommentReactionCommandInput | PutFileCommandInput | PutRepositoryTriggersCommandInput | TagResourceCommandInput | TestRepositoryTriggersCommandInput | UntagResourceCommandInput | UpdateApprovalRuleTemplateContentCommandInput | UpdateApprovalRuleTemplateDescriptionCommandInput | UpdateApprovalRuleTemplateNameCommandInput | UpdateCommentCommandInput | UpdateDefaultBranchCommandInput | UpdatePullRequestApprovalRuleContentCommandInput | UpdatePullRequestApprovalStateCommandInput | UpdatePullRequestDescriptionCommandInput | UpdatePullRequestStatusCommandInput | UpdatePullRequestTitleCommandInput | UpdateRepositoryDescriptionCommandInput | UpdateRepositoryNameCommandInput;
|
|
96
|
+
export type ServiceInputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandInput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput | BatchDescribeMergeConflictsCommandInput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandInput | BatchGetCommitsCommandInput | BatchGetRepositoriesCommandInput | CreateApprovalRuleTemplateCommandInput | CreateBranchCommandInput | CreateCommitCommandInput | CreatePullRequestApprovalRuleCommandInput | CreatePullRequestCommandInput | CreateRepositoryCommandInput | CreateUnreferencedMergeCommitCommandInput | DeleteApprovalRuleTemplateCommandInput | DeleteBranchCommandInput | DeleteCommentContentCommandInput | DeleteFileCommandInput | DeletePullRequestApprovalRuleCommandInput | DeleteRepositoryCommandInput | DescribeMergeConflictsCommandInput | DescribePullRequestEventsCommandInput | DisassociateApprovalRuleTemplateFromRepositoryCommandInput | EvaluatePullRequestApprovalRulesCommandInput | GetApprovalRuleTemplateCommandInput | GetBlobCommandInput | GetBranchCommandInput | GetCommentCommandInput | GetCommentReactionsCommandInput | GetCommentsForComparedCommitCommandInput | GetCommentsForPullRequestCommandInput | GetCommitCommandInput | GetDifferencesCommandInput | GetFileCommandInput | GetFolderCommandInput | GetMergeCommitCommandInput | GetMergeConflictsCommandInput | GetMergeOptionsCommandInput | GetPullRequestApprovalStatesCommandInput | GetPullRequestCommandInput | GetPullRequestOverrideStateCommandInput | GetRepositoryCommandInput | GetRepositoryTriggersCommandInput | ListApprovalRuleTemplatesCommandInput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput | ListBranchesCommandInput | ListFileCommitHistoryCommandInput | ListPullRequestsCommandInput | ListRepositoriesCommandInput | ListRepositoriesForApprovalRuleTemplateCommandInput | ListTagsForResourceCommandInput | MergeBranchesByFastForwardCommandInput | MergeBranchesBySquashCommandInput | MergeBranchesByThreeWayCommandInput | MergePullRequestByFastForwardCommandInput | MergePullRequestBySquashCommandInput | MergePullRequestByThreeWayCommandInput | OverridePullRequestApprovalRulesCommandInput | PostCommentForComparedCommitCommandInput | PostCommentForPullRequestCommandInput | PostCommentReplyCommandInput | PutCommentReactionCommandInput | PutFileCommandInput | PutRepositoryTriggersCommandInput | TagResourceCommandInput | TestRepositoryTriggersCommandInput | UntagResourceCommandInput | UpdateApprovalRuleTemplateContentCommandInput | UpdateApprovalRuleTemplateDescriptionCommandInput | UpdateApprovalRuleTemplateNameCommandInput | UpdateCommentCommandInput | UpdateDefaultBranchCommandInput | UpdatePullRequestApprovalRuleContentCommandInput | UpdatePullRequestApprovalStateCommandInput | UpdatePullRequestDescriptionCommandInput | UpdatePullRequestStatusCommandInput | UpdatePullRequestTitleCommandInput | UpdateRepositoryDescriptionCommandInput | UpdateRepositoryEncryptionKeyCommandInput | UpdateRepositoryNameCommandInput;
|
|
96
97
|
/**
|
|
97
98
|
* @public
|
|
98
99
|
*/
|
|
99
|
-
export type ServiceOutputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandOutput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput | BatchDescribeMergeConflictsCommandOutput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput | BatchGetCommitsCommandOutput | BatchGetRepositoriesCommandOutput | CreateApprovalRuleTemplateCommandOutput | CreateBranchCommandOutput | CreateCommitCommandOutput | CreatePullRequestApprovalRuleCommandOutput | CreatePullRequestCommandOutput | CreateRepositoryCommandOutput | CreateUnreferencedMergeCommitCommandOutput | DeleteApprovalRuleTemplateCommandOutput | DeleteBranchCommandOutput | DeleteCommentContentCommandOutput | DeleteFileCommandOutput | DeletePullRequestApprovalRuleCommandOutput | DeleteRepositoryCommandOutput | DescribeMergeConflictsCommandOutput | DescribePullRequestEventsCommandOutput | DisassociateApprovalRuleTemplateFromRepositoryCommandOutput | EvaluatePullRequestApprovalRulesCommandOutput | GetApprovalRuleTemplateCommandOutput | GetBlobCommandOutput | GetBranchCommandOutput | GetCommentCommandOutput | GetCommentReactionsCommandOutput | GetCommentsForComparedCommitCommandOutput | GetCommentsForPullRequestCommandOutput | GetCommitCommandOutput | GetDifferencesCommandOutput | GetFileCommandOutput | GetFolderCommandOutput | GetMergeCommitCommandOutput | GetMergeConflictsCommandOutput | GetMergeOptionsCommandOutput | GetPullRequestApprovalStatesCommandOutput | GetPullRequestCommandOutput | GetPullRequestOverrideStateCommandOutput | GetRepositoryCommandOutput | GetRepositoryTriggersCommandOutput | ListApprovalRuleTemplatesCommandOutput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput | ListBranchesCommandOutput | ListFileCommitHistoryCommandOutput | ListPullRequestsCommandOutput | ListRepositoriesCommandOutput | ListRepositoriesForApprovalRuleTemplateCommandOutput | ListTagsForResourceCommandOutput | MergeBranchesByFastForwardCommandOutput | MergeBranchesBySquashCommandOutput | MergeBranchesByThreeWayCommandOutput | MergePullRequestByFastForwardCommandOutput | MergePullRequestBySquashCommandOutput | MergePullRequestByThreeWayCommandOutput | OverridePullRequestApprovalRulesCommandOutput | PostCommentForComparedCommitCommandOutput | PostCommentForPullRequestCommandOutput | PostCommentReplyCommandOutput | PutCommentReactionCommandOutput | PutFileCommandOutput | PutRepositoryTriggersCommandOutput | TagResourceCommandOutput | TestRepositoryTriggersCommandOutput | UntagResourceCommandOutput | UpdateApprovalRuleTemplateContentCommandOutput | UpdateApprovalRuleTemplateDescriptionCommandOutput | UpdateApprovalRuleTemplateNameCommandOutput | UpdateCommentCommandOutput | UpdateDefaultBranchCommandOutput | UpdatePullRequestApprovalRuleContentCommandOutput | UpdatePullRequestApprovalStateCommandOutput | UpdatePullRequestDescriptionCommandOutput | UpdatePullRequestStatusCommandOutput | UpdatePullRequestTitleCommandOutput | UpdateRepositoryDescriptionCommandOutput | UpdateRepositoryNameCommandOutput;
|
|
100
|
+
export type ServiceOutputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandOutput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput | BatchDescribeMergeConflictsCommandOutput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput | BatchGetCommitsCommandOutput | BatchGetRepositoriesCommandOutput | CreateApprovalRuleTemplateCommandOutput | CreateBranchCommandOutput | CreateCommitCommandOutput | CreatePullRequestApprovalRuleCommandOutput | CreatePullRequestCommandOutput | CreateRepositoryCommandOutput | CreateUnreferencedMergeCommitCommandOutput | DeleteApprovalRuleTemplateCommandOutput | DeleteBranchCommandOutput | DeleteCommentContentCommandOutput | DeleteFileCommandOutput | DeletePullRequestApprovalRuleCommandOutput | DeleteRepositoryCommandOutput | DescribeMergeConflictsCommandOutput | DescribePullRequestEventsCommandOutput | DisassociateApprovalRuleTemplateFromRepositoryCommandOutput | EvaluatePullRequestApprovalRulesCommandOutput | GetApprovalRuleTemplateCommandOutput | GetBlobCommandOutput | GetBranchCommandOutput | GetCommentCommandOutput | GetCommentReactionsCommandOutput | GetCommentsForComparedCommitCommandOutput | GetCommentsForPullRequestCommandOutput | GetCommitCommandOutput | GetDifferencesCommandOutput | GetFileCommandOutput | GetFolderCommandOutput | GetMergeCommitCommandOutput | GetMergeConflictsCommandOutput | GetMergeOptionsCommandOutput | GetPullRequestApprovalStatesCommandOutput | GetPullRequestCommandOutput | GetPullRequestOverrideStateCommandOutput | GetRepositoryCommandOutput | GetRepositoryTriggersCommandOutput | ListApprovalRuleTemplatesCommandOutput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput | ListBranchesCommandOutput | ListFileCommitHistoryCommandOutput | ListPullRequestsCommandOutput | ListRepositoriesCommandOutput | ListRepositoriesForApprovalRuleTemplateCommandOutput | ListTagsForResourceCommandOutput | MergeBranchesByFastForwardCommandOutput | MergeBranchesBySquashCommandOutput | MergeBranchesByThreeWayCommandOutput | MergePullRequestByFastForwardCommandOutput | MergePullRequestBySquashCommandOutput | MergePullRequestByThreeWayCommandOutput | OverridePullRequestApprovalRulesCommandOutput | PostCommentForComparedCommitCommandOutput | PostCommentForPullRequestCommandOutput | PostCommentReplyCommandOutput | PutCommentReactionCommandOutput | PutFileCommandOutput | PutRepositoryTriggersCommandOutput | TagResourceCommandOutput | TestRepositoryTriggersCommandOutput | UntagResourceCommandOutput | UpdateApprovalRuleTemplateContentCommandOutput | UpdateApprovalRuleTemplateDescriptionCommandOutput | UpdateApprovalRuleTemplateNameCommandOutput | UpdateCommentCommandOutput | UpdateDefaultBranchCommandOutput | UpdatePullRequestApprovalRuleContentCommandOutput | UpdatePullRequestApprovalStateCommandOutput | UpdatePullRequestDescriptionCommandOutput | UpdatePullRequestStatusCommandOutput | UpdatePullRequestTitleCommandOutput | UpdateRepositoryDescriptionCommandOutput | UpdateRepositoryEncryptionKeyCommandOutput | UpdateRepositoryNameCommandOutput;
|
|
100
101
|
/**
|
|
101
102
|
* @public
|
|
102
103
|
*/
|
|
@@ -262,6 +263,11 @@ export interface CodeCommitClientResolvedConfig extends CodeCommitClientResolved
|
|
|
262
263
|
* </li>
|
|
263
264
|
* <li>
|
|
264
265
|
* <p>
|
|
266
|
+
* <a>UpdateRepositoryEncryptionKey</a>, which updates the Key Management Service encryption key used
|
|
267
|
+
* to encrypt and decrypt a repository.</p>
|
|
268
|
+
* </li>
|
|
269
|
+
* <li>
|
|
270
|
+
* <p>
|
|
265
271
|
* <a>UpdateRepositoryName</a>, which changes the name of the
|
|
266
272
|
* repository. If you change the name of a repository, no other users of that
|
|
267
273
|
* repository can access it until you send them the new HTTPS or SSH URL to
|
|
@@ -57,11 +57,20 @@ export interface BatchGetRepositoriesCommandOutput extends BatchGetRepositoriesO
|
|
|
57
57
|
* // cloneUrlHttp: "STRING_VALUE",
|
|
58
58
|
* // cloneUrlSsh: "STRING_VALUE",
|
|
59
59
|
* // Arn: "STRING_VALUE",
|
|
60
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
60
61
|
* // },
|
|
61
62
|
* // ],
|
|
62
63
|
* // repositoriesNotFound: [ // RepositoryNotFoundList
|
|
63
64
|
* // "STRING_VALUE",
|
|
64
65
|
* // ],
|
|
66
|
+
* // errors: [ // BatchGetRepositoriesErrorsList
|
|
67
|
+
* // { // BatchGetRepositoriesError
|
|
68
|
+
* // repositoryId: "STRING_VALUE",
|
|
69
|
+
* // repositoryName: "STRING_VALUE",
|
|
70
|
+
* // errorCode: "EncryptionIntegrityChecksFailedException" || "EncryptionKeyAccessDeniedException" || "EncryptionKeyDisabledException" || "EncryptionKeyNotFoundException" || "EncryptionKeyUnavailableException" || "RepositoryDoesNotExistException",
|
|
71
|
+
* // errorMessage: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
65
74
|
* // };
|
|
66
75
|
*
|
|
67
76
|
* ```
|
|
@@ -36,6 +36,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryOutput, _
|
|
|
36
36
|
* tags: { // TagsMap
|
|
37
37
|
* "<keys>": "STRING_VALUE",
|
|
38
38
|
* },
|
|
39
|
+
* kmsKeyId: "STRING_VALUE",
|
|
39
40
|
* };
|
|
40
41
|
* const command = new CreateRepositoryCommand(input);
|
|
41
42
|
* const response = await client.send(command);
|
|
@@ -51,6 +52,7 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryOutput, _
|
|
|
51
52
|
* // cloneUrlHttp: "STRING_VALUE",
|
|
52
53
|
* // cloneUrlSsh: "STRING_VALUE",
|
|
53
54
|
* // Arn: "STRING_VALUE",
|
|
55
|
+
* // kmsKeyId: "STRING_VALUE",
|
|
54
56
|
* // },
|
|
55
57
|
* // };
|
|
56
58
|
*
|
|
@@ -71,6 +73,13 @@ export interface CreateRepositoryCommandOutput extends CreateRepositoryOutput, _
|
|
|
71
73
|
* @throws {@link EncryptionKeyDisabledException} (client fault)
|
|
72
74
|
* <p>The encryption key is disabled.</p>
|
|
73
75
|
*
|
|
76
|
+
* @throws {@link EncryptionKeyInvalidIdException} (client fault)
|
|
77
|
+
* <p>The Key Management Service encryption key is not valid.</p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link EncryptionKeyInvalidUsageException} (client fault)
|
|
80
|
+
* <p>A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or the key was not
|
|
81
|
+
* in a valid state to support the operation.</p>
|
|
82
|
+
*
|
|
74
83
|
* @throws {@link EncryptionKeyNotFoundException} (client fault)
|
|
75
84
|
* <p>No encryption key was found.</p>
|
|
76
85
|
*
|
|
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient";
|
|
5
|
-
import { ListFileCommitHistoryRequest
|
|
5
|
+
import { ListFileCommitHistoryRequest } from "../models/models_0";
|
|
6
|
+
import { ListFileCommitHistoryResponse } from "../models/models_1";
|
|
6
7
|
/**
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
@@ -2,8 +2,7 @@ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
|
2
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
3
|
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
4
|
import { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient";
|
|
5
|
-
import { ListPullRequestsInput } from "../models/
|
|
6
|
-
import { ListPullRequestsOutput } from "../models/models_1";
|
|
5
|
+
import { ListPullRequestsInput, ListPullRequestsOutput } from "../models/models_1";
|
|
7
6
|
/**
|
|
8
7
|
* @public
|
|
9
8
|
*/
|