@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.
Files changed (92) hide show
  1. package/README.md +13 -0
  2. package/dist-cjs/CodeCommit.js +2 -0
  3. package/dist-cjs/commands/UpdateRepositoryEncryptionKeyCommand.js +51 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +38 -30
  6. package/dist-cjs/models/models_1.js +40 -1
  7. package/dist-cjs/pagination/DescribeMergeConflictsPaginator.js +2 -24
  8. package/dist-cjs/pagination/DescribePullRequestEventsPaginator.js +2 -24
  9. package/dist-cjs/pagination/GetCommentReactionsPaginator.js +2 -24
  10. package/dist-cjs/pagination/GetCommentsForComparedCommitPaginator.js +2 -24
  11. package/dist-cjs/pagination/GetCommentsForPullRequestPaginator.js +2 -24
  12. package/dist-cjs/pagination/GetDifferencesPaginator.js +2 -24
  13. package/dist-cjs/pagination/GetMergeConflictsPaginator.js +2 -24
  14. package/dist-cjs/pagination/ListApprovalRuleTemplatesPaginator.js +2 -24
  15. package/dist-cjs/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -24
  16. package/dist-cjs/pagination/ListBranchesPaginator.js +2 -23
  17. package/dist-cjs/pagination/ListFileCommitHistoryPaginator.js +2 -24
  18. package/dist-cjs/pagination/ListPullRequestsPaginator.js +2 -24
  19. package/dist-cjs/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -24
  20. package/dist-cjs/pagination/ListRepositoriesPaginator.js +2 -23
  21. package/dist-cjs/protocols/Aws_json1_1.js +110 -5
  22. package/dist-es/CodeCommit.js +2 -0
  23. package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +47 -0
  24. package/dist-es/commands/index.js +1 -0
  25. package/dist-es/models/models_0.js +32 -24
  26. package/dist-es/models/models_1.js +36 -0
  27. package/dist-es/pagination/DescribeMergeConflictsPaginator.js +2 -23
  28. package/dist-es/pagination/DescribePullRequestEventsPaginator.js +2 -23
  29. package/dist-es/pagination/GetCommentReactionsPaginator.js +2 -23
  30. package/dist-es/pagination/GetCommentsForComparedCommitPaginator.js +2 -23
  31. package/dist-es/pagination/GetCommentsForPullRequestPaginator.js +2 -23
  32. package/dist-es/pagination/GetDifferencesPaginator.js +2 -23
  33. package/dist-es/pagination/GetMergeConflictsPaginator.js +2 -23
  34. package/dist-es/pagination/ListApprovalRuleTemplatesPaginator.js +2 -23
  35. package/dist-es/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -23
  36. package/dist-es/pagination/ListBranchesPaginator.js +2 -22
  37. package/dist-es/pagination/ListFileCommitHistoryPaginator.js +2 -23
  38. package/dist-es/pagination/ListPullRequestsPaginator.js +2 -23
  39. package/dist-es/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -23
  40. package/dist-es/pagination/ListRepositoriesPaginator.js +2 -22
  41. package/dist-es/protocols/Aws_json1_1.js +105 -2
  42. package/dist-types/CodeCommit.d.ts +12 -0
  43. package/dist-types/CodeCommitClient.d.ts +8 -2
  44. package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +9 -0
  45. package/dist-types/commands/CreateRepositoryCommand.d.ts +9 -0
  46. package/dist-types/commands/GetRepositoryCommand.d.ts +1 -0
  47. package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +2 -1
  48. package/dist-types/commands/ListPullRequestsCommand.d.ts +1 -2
  49. package/dist-types/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +115 -0
  50. package/dist-types/commands/index.d.ts +1 -0
  51. package/dist-types/index.d.ts +5 -0
  52. package/dist-types/models/models_0.d.ts +86 -71
  53. package/dist-types/models/models_1.d.ts +122 -1
  54. package/dist-types/pagination/DescribeMergeConflictsPaginator.d.ts +1 -1
  55. package/dist-types/pagination/DescribePullRequestEventsPaginator.d.ts +1 -1
  56. package/dist-types/pagination/GetCommentReactionsPaginator.d.ts +1 -1
  57. package/dist-types/pagination/GetCommentsForComparedCommitPaginator.d.ts +1 -1
  58. package/dist-types/pagination/GetCommentsForPullRequestPaginator.d.ts +1 -1
  59. package/dist-types/pagination/GetDifferencesPaginator.d.ts +1 -1
  60. package/dist-types/pagination/GetMergeConflictsPaginator.d.ts +1 -1
  61. package/dist-types/pagination/ListApprovalRuleTemplatesPaginator.d.ts +1 -1
  62. package/dist-types/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +1 -1
  63. package/dist-types/pagination/ListBranchesPaginator.d.ts +1 -1
  64. package/dist-types/pagination/ListFileCommitHistoryPaginator.d.ts +1 -1
  65. package/dist-types/pagination/ListPullRequestsPaginator.d.ts +1 -1
  66. package/dist-types/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +1 -1
  67. package/dist-types/pagination/ListRepositoriesPaginator.d.ts +1 -1
  68. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  69. package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
  70. package/dist-types/ts3.4/CodeCommitClient.d.ts +6 -0
  71. package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +4 -2
  73. package/dist-types/ts3.4/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  75. package/dist-types/ts3.4/models/models_0.d.ts +39 -28
  76. package/dist-types/ts3.4/models/models_1.d.ts +45 -0
  77. package/dist-types/ts3.4/pagination/DescribeMergeConflictsPaginator.d.ts +3 -3
  78. package/dist-types/ts3.4/pagination/DescribePullRequestEventsPaginator.d.ts +3 -3
  79. package/dist-types/ts3.4/pagination/GetCommentReactionsPaginator.d.ts +3 -3
  80. package/dist-types/ts3.4/pagination/GetCommentsForComparedCommitPaginator.d.ts +3 -3
  81. package/dist-types/ts3.4/pagination/GetCommentsForPullRequestPaginator.d.ts +3 -3
  82. package/dist-types/ts3.4/pagination/GetDifferencesPaginator.d.ts +3 -3
  83. package/dist-types/ts3.4/pagination/GetMergeConflictsPaginator.d.ts +3 -3
  84. package/dist-types/ts3.4/pagination/ListApprovalRuleTemplatesPaginator.d.ts +3 -3
  85. package/dist-types/ts3.4/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +3 -3
  86. package/dist-types/ts3.4/pagination/ListBranchesPaginator.d.ts +3 -3
  87. package/dist-types/ts3.4/pagination/ListFileCommitHistoryPaginator.d.ts +3 -3
  88. package/dist-types/ts3.4/pagination/ListPullRequestsPaginator.d.ts +3 -3
  89. package/dist-types/ts3.4/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +3 -3
  90. package/dist-types/ts3.4/pagination/ListRepositoriesPaginator.d.ts +3 -3
  91. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  92. package/package.json +6 -5
@@ -0,0 +1,115 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient";
5
+ import { UpdateRepositoryEncryptionKeyInput, UpdateRepositoryEncryptionKeyOutput } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateRepositoryEncryptionKeyCommand}.
14
+ */
15
+ export interface UpdateRepositoryEncryptionKeyCommandInput extends UpdateRepositoryEncryptionKeyInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateRepositoryEncryptionKeyCommand}.
21
+ */
22
+ export interface UpdateRepositoryEncryptionKeyCommandOutput extends UpdateRepositoryEncryptionKeyOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CodeCommitClient, UpdateRepositoryEncryptionKeyCommand } from "@aws-sdk/client-codecommit"; // ES Modules import
31
+ * // const { CodeCommitClient, UpdateRepositoryEncryptionKeyCommand } = require("@aws-sdk/client-codecommit"); // CommonJS import
32
+ * const client = new CodeCommitClient(config);
33
+ * const input = { // UpdateRepositoryEncryptionKeyInput
34
+ * repositoryName: "STRING_VALUE", // required
35
+ * kmsKeyId: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new UpdateRepositoryEncryptionKeyCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // UpdateRepositoryEncryptionKeyOutput
40
+ * // repositoryId: "STRING_VALUE",
41
+ * // kmsKeyId: "STRING_VALUE",
42
+ * // originalKmsKeyId: "STRING_VALUE",
43
+ * // };
44
+ *
45
+ * ```
46
+ *
47
+ * @param UpdateRepositoryEncryptionKeyCommandInput - {@link UpdateRepositoryEncryptionKeyCommandInput}
48
+ * @returns {@link UpdateRepositoryEncryptionKeyCommandOutput}
49
+ * @see {@link UpdateRepositoryEncryptionKeyCommandInput} for command's `input` shape.
50
+ * @see {@link UpdateRepositoryEncryptionKeyCommandOutput} for command's `response` shape.
51
+ * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape.
52
+ *
53
+ * @throws {@link EncryptionIntegrityChecksFailedException} (server fault)
54
+ * <p>An encryption integrity check failed.</p>
55
+ *
56
+ * @throws {@link EncryptionKeyAccessDeniedException} (client fault)
57
+ * <p>An encryption key could not be accessed.</p>
58
+ *
59
+ * @throws {@link EncryptionKeyDisabledException} (client fault)
60
+ * <p>The encryption key is disabled.</p>
61
+ *
62
+ * @throws {@link EncryptionKeyInvalidIdException} (client fault)
63
+ * <p>The Key Management Service encryption key is not valid.</p>
64
+ *
65
+ * @throws {@link EncryptionKeyInvalidUsageException} (client fault)
66
+ * <p>A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or the key was not
67
+ * in a valid state to support the operation.</p>
68
+ *
69
+ * @throws {@link EncryptionKeyNotFoundException} (client fault)
70
+ * <p>No encryption key was found.</p>
71
+ *
72
+ * @throws {@link EncryptionKeyRequiredException} (client fault)
73
+ * <p>A KMS encryption key ID is required but was not specified.</p>
74
+ *
75
+ * @throws {@link EncryptionKeyUnavailableException} (client fault)
76
+ * <p>The encryption key is not available.</p>
77
+ *
78
+ * @throws {@link InvalidRepositoryNameException} (client fault)
79
+ * <p>A specified repository name is not valid.</p>
80
+ * <note>
81
+ * <p>This exception occurs only when a specified repository name is not valid. Other
82
+ * exceptions occur when a required repository parameter is missing, or when a
83
+ * specified repository does not exist.</p>
84
+ * </note>
85
+ *
86
+ * @throws {@link RepositoryDoesNotExistException} (client fault)
87
+ * <p>The specified repository does not exist.</p>
88
+ *
89
+ * @throws {@link RepositoryNameRequiredException} (client fault)
90
+ * <p>A repository name is required, but was not specified.</p>
91
+ *
92
+ * @throws {@link CodeCommitServiceException}
93
+ * <p>Base exception class for all service exceptions from CodeCommit service.</p>
94
+ *
95
+ */
96
+ export declare class UpdateRepositoryEncryptionKeyCommand extends $Command<UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput, CodeCommitClientResolvedConfig> {
97
+ readonly input: UpdateRepositoryEncryptionKeyCommandInput;
98
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
99
+ /**
100
+ * @public
101
+ */
102
+ constructor(input: UpdateRepositoryEncryptionKeyCommandInput);
103
+ /**
104
+ * @internal
105
+ */
106
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput>;
107
+ /**
108
+ * @internal
109
+ */
110
+ private serialize;
111
+ /**
112
+ * @internal
113
+ */
114
+ private deserialize;
115
+ }
@@ -75,4 +75,5 @@ export * from "./UpdatePullRequestDescriptionCommand";
75
75
  export * from "./UpdatePullRequestStatusCommand";
76
76
  export * from "./UpdatePullRequestTitleCommand";
77
77
  export * from "./UpdateRepositoryDescriptionCommand";
78
+ export * from "./UpdateRepositoryEncryptionKeyCommand";
78
79
  export * from "./UpdateRepositoryNameCommand";
@@ -31,6 +31,11 @@
31
31
  * </li>
32
32
  * <li>
33
33
  * <p>
34
+ * <a>UpdateRepositoryEncryptionKey</a>, which updates the Key Management Service encryption key used
35
+ * to encrypt and decrypt a repository.</p>
36
+ * </li>
37
+ * <li>
38
+ * <p>
34
39
  * <a>UpdateRepositoryName</a>, which changes the name of the
35
40
  * repository. If you change the name of a repository, no other users of that
36
41
  * repository can access it until you send them the new HTTPS or SSH URL to
@@ -1372,6 +1372,48 @@ export interface BatchGetRepositoriesInput {
1372
1372
  */
1373
1373
  repositoryNames: string[] | undefined;
1374
1374
  }
1375
+ /**
1376
+ * @public
1377
+ * @enum
1378
+ */
1379
+ export declare const BatchGetRepositoriesErrorCodeEnum: {
1380
+ readonly ENCRYPTION_INTEGRITY_CHECKS_FAILED_EXCEPTION: "EncryptionIntegrityChecksFailedException";
1381
+ readonly ENCRYPTION_KEY_ACCESS_DENIED_EXCEPTION: "EncryptionKeyAccessDeniedException";
1382
+ readonly ENCRYPTION_KEY_DISABLED_EXCEPTION: "EncryptionKeyDisabledException";
1383
+ readonly ENCRYPTION_KEY_NOT_FOUND_EXCEPTION: "EncryptionKeyNotFoundException";
1384
+ readonly ENCRYPTION_KEY_UNAVAILABLE_EXCEPTION: "EncryptionKeyUnavailableException";
1385
+ readonly REPOSITORY_DOES_NOT_EXIST_EXCEPTION: "RepositoryDoesNotExistException";
1386
+ };
1387
+ /**
1388
+ * @public
1389
+ */
1390
+ export type BatchGetRepositoriesErrorCodeEnum = (typeof BatchGetRepositoriesErrorCodeEnum)[keyof typeof BatchGetRepositoriesErrorCodeEnum];
1391
+ /**
1392
+ * @public
1393
+ * <p>Returns information about errors in a BatchGetRepositories operation.</p>
1394
+ */
1395
+ export interface BatchGetRepositoriesError {
1396
+ /**
1397
+ * @public
1398
+ * <p>The ID of a repository that either could not be found or was not in a valid state.</p>
1399
+ */
1400
+ repositoryId?: string;
1401
+ /**
1402
+ * @public
1403
+ * <p>The name of a repository that either could not be found or was not in a valid state.</p>
1404
+ */
1405
+ repositoryName?: string;
1406
+ /**
1407
+ * @public
1408
+ * <p>An error code that specifies the type of failure.</p>
1409
+ */
1410
+ errorCode?: BatchGetRepositoriesErrorCodeEnum;
1411
+ /**
1412
+ * @public
1413
+ * <p>An error message that provides detail about why the repository either was not found or was not in a valid state.</p>
1414
+ */
1415
+ errorMessage?: string;
1416
+ }
1375
1417
  /**
1376
1418
  * @public
1377
1419
  * <p>Information about a repository.</p>
@@ -1427,6 +1469,11 @@ export interface RepositoryMetadata {
1427
1469
  * <p>The Amazon Resource Name (ARN) of the repository.</p>
1428
1470
  */
1429
1471
  Arn?: string;
1472
+ /**
1473
+ * @public
1474
+ * <p>The ID of the Key Management Service encryption key used to encrypt and decrypt the repository.</p>
1475
+ */
1476
+ kmsKeyId?: string;
1430
1477
  }
1431
1478
  /**
1432
1479
  * @public
@@ -1443,6 +1490,11 @@ export interface BatchGetRepositoriesOutput {
1443
1490
  * <p>Returns a list of repository names for which information could not be found.</p>
1444
1491
  */
1445
1492
  repositoriesNotFound?: string[];
1493
+ /**
1494
+ * @public
1495
+ * <p>Returns information about any errors returned when attempting to retrieve information about the repositories.</p>
1496
+ */
1497
+ errors?: BatchGetRepositoriesError[];
1446
1498
  }
1447
1499
  /**
1448
1500
  * @public
@@ -2913,6 +2965,15 @@ export interface CreateRepositoryInput {
2913
2965
  * <p>One or more tag key-value pairs to use when tagging this repository.</p>
2914
2966
  */
2915
2967
  tags?: Record<string, string>;
2968
+ /**
2969
+ * @public
2970
+ * <p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to
2971
+ * programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see
2972
+ * <a href="https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId">KeyId</a> in the Decrypt API description in
2973
+ * the <i>Key Management Service API Reference</i>.</p>
2974
+ * <p>If no key is specified, the default <code>aws/codecommit</code> Amazon Web Services managed key is used.</p>
2975
+ */
2976
+ kmsKeyId?: string;
2916
2977
  }
2917
2978
  /**
2918
2979
  * @public
@@ -2925,6 +2986,31 @@ export interface CreateRepositoryOutput {
2925
2986
  */
2926
2987
  repositoryMetadata?: RepositoryMetadata;
2927
2988
  }
2989
+ /**
2990
+ * @public
2991
+ * <p>The Key Management Service encryption key is not valid.</p>
2992
+ */
2993
+ export declare class EncryptionKeyInvalidIdException extends __BaseException {
2994
+ readonly name: "EncryptionKeyInvalidIdException";
2995
+ readonly $fault: "client";
2996
+ /**
2997
+ * @internal
2998
+ */
2999
+ constructor(opts: __ExceptionOptionType<EncryptionKeyInvalidIdException, __BaseException>);
3000
+ }
3001
+ /**
3002
+ * @public
3003
+ * <p>A KMS encryption key was used to try and encrypt or decrypt a repository, but either the repository or the key was not
3004
+ * in a valid state to support the operation.</p>
3005
+ */
3006
+ export declare class EncryptionKeyInvalidUsageException extends __BaseException {
3007
+ readonly name: "EncryptionKeyInvalidUsageException";
3008
+ readonly $fault: "client";
3009
+ /**
3010
+ * @internal
3011
+ */
3012
+ constructor(opts: __ExceptionOptionType<EncryptionKeyInvalidUsageException, __BaseException>);
3013
+ }
2928
3014
  /**
2929
3015
  * @public
2930
3016
  * <p>The specified repository description is not valid.</p>
@@ -5463,74 +5549,3 @@ export interface FileVersion {
5463
5549
  */
5464
5550
  revisionChildren?: string[];
5465
5551
  }
5466
- /**
5467
- * @public
5468
- */
5469
- export interface ListFileCommitHistoryResponse {
5470
- /**
5471
- * @public
5472
- * <p>An array of FileVersion objects that form a directed acyclic graph (DAG) of the changes to the file made by the commits that changed the file.</p>
5473
- */
5474
- revisionDag: FileVersion[] | undefined;
5475
- /**
5476
- * @public
5477
- * <p>An enumeration token that can be used to return the next batch of results.</p>
5478
- */
5479
- nextToken?: string;
5480
- }
5481
- /**
5482
- * @public
5483
- * <p>The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again.</p>
5484
- */
5485
- export declare class InvalidAuthorArnException extends __BaseException {
5486
- readonly name: "InvalidAuthorArnException";
5487
- readonly $fault: "client";
5488
- /**
5489
- * @internal
5490
- */
5491
- constructor(opts: __ExceptionOptionType<InvalidAuthorArnException, __BaseException>);
5492
- }
5493
- /**
5494
- * @public
5495
- * <p>The pull request status is not valid. The only valid values are <code>OPEN</code> and <code>CLOSED</code>.</p>
5496
- */
5497
- export declare class InvalidPullRequestStatusException extends __BaseException {
5498
- readonly name: "InvalidPullRequestStatusException";
5499
- readonly $fault: "client";
5500
- /**
5501
- * @internal
5502
- */
5503
- constructor(opts: __ExceptionOptionType<InvalidPullRequestStatusException, __BaseException>);
5504
- }
5505
- /**
5506
- * @public
5507
- */
5508
- export interface ListPullRequestsInput {
5509
- /**
5510
- * @public
5511
- * <p>The name of the repository for which you want to list pull requests.</p>
5512
- */
5513
- repositoryName: string | undefined;
5514
- /**
5515
- * @public
5516
- * <p>Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results
5517
- * to pull requests created by that user.</p>
5518
- */
5519
- authorArn?: string;
5520
- /**
5521
- * @public
5522
- * <p>Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.</p>
5523
- */
5524
- pullRequestStatus?: PullRequestStatusEnum;
5525
- /**
5526
- * @public
5527
- * <p>An enumeration token that, when provided in a request, returns the next batch of the
5528
- * results.</p>
5529
- */
5530
- nextToken?: string;
5531
- /**
5532
- * @public
5533
- * <p>A non-zero, non-negative integer used to limit the number of returned results.</p>
5534
- */
5535
- maxResults?: number;
5536
- }
@@ -1,6 +1,77 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { CodeCommitServiceException as __BaseException } from "./CodeCommitServiceException";
3
- import { ApprovalRule, ApprovalRuleTemplate, ApprovalState, Comment, ConflictDetailLevelTypeEnum, ConflictResolution, ConflictResolutionStrategyTypeEnum, FileModeTypeEnum, Location, OverrideStatus, PullRequest, PullRequestStatusEnum, RepositoryTrigger } from "./models_0";
3
+ import { ApprovalRule, ApprovalRuleTemplate, ApprovalState, Comment, ConflictDetailLevelTypeEnum, ConflictResolution, ConflictResolutionStrategyTypeEnum, FileModeTypeEnum, FileVersion, Location, OverrideStatus, PullRequest, PullRequestStatusEnum, RepositoryTrigger } from "./models_0";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface ListFileCommitHistoryResponse {
8
+ /**
9
+ * @public
10
+ * <p>An array of FileVersion objects that form a directed acyclic graph (DAG) of the changes to the file made by the commits that changed the file.</p>
11
+ */
12
+ revisionDag: FileVersion[] | undefined;
13
+ /**
14
+ * @public
15
+ * <p>An enumeration token that can be used to return the next batch of results.</p>
16
+ */
17
+ nextToken?: string;
18
+ }
19
+ /**
20
+ * @public
21
+ * <p>The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of the pull request, and then try again.</p>
22
+ */
23
+ export declare class InvalidAuthorArnException extends __BaseException {
24
+ readonly name: "InvalidAuthorArnException";
25
+ readonly $fault: "client";
26
+ /**
27
+ * @internal
28
+ */
29
+ constructor(opts: __ExceptionOptionType<InvalidAuthorArnException, __BaseException>);
30
+ }
31
+ /**
32
+ * @public
33
+ * <p>The pull request status is not valid. The only valid values are <code>OPEN</code> and <code>CLOSED</code>.</p>
34
+ */
35
+ export declare class InvalidPullRequestStatusException extends __BaseException {
36
+ readonly name: "InvalidPullRequestStatusException";
37
+ readonly $fault: "client";
38
+ /**
39
+ * @internal
40
+ */
41
+ constructor(opts: __ExceptionOptionType<InvalidPullRequestStatusException, __BaseException>);
42
+ }
43
+ /**
44
+ * @public
45
+ */
46
+ export interface ListPullRequestsInput {
47
+ /**
48
+ * @public
49
+ * <p>The name of the repository for which you want to list pull requests.</p>
50
+ */
51
+ repositoryName: string | undefined;
52
+ /**
53
+ * @public
54
+ * <p>Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results
55
+ * to pull requests created by that user.</p>
56
+ */
57
+ authorArn?: string;
58
+ /**
59
+ * @public
60
+ * <p>Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.</p>
61
+ */
62
+ pullRequestStatus?: PullRequestStatusEnum;
63
+ /**
64
+ * @public
65
+ * <p>An enumeration token that, when provided in a request, returns the next batch of the
66
+ * results.</p>
67
+ */
68
+ nextToken?: string;
69
+ /**
70
+ * @public
71
+ * <p>A non-zero, non-negative integer used to limit the number of returned results.</p>
72
+ */
73
+ maxResults?: number;
74
+ }
4
75
  /**
5
76
  * @public
6
77
  */
@@ -1841,6 +1912,56 @@ export interface UpdateRepositoryDescriptionInput {
1841
1912
  */
1842
1913
  repositoryDescription?: string;
1843
1914
  }
1915
+ /**
1916
+ * @public
1917
+ * <p>A KMS encryption key ID is required but was not specified.</p>
1918
+ */
1919
+ export declare class EncryptionKeyRequiredException extends __BaseException {
1920
+ readonly name: "EncryptionKeyRequiredException";
1921
+ readonly $fault: "client";
1922
+ /**
1923
+ * @internal
1924
+ */
1925
+ constructor(opts: __ExceptionOptionType<EncryptionKeyRequiredException, __BaseException>);
1926
+ }
1927
+ /**
1928
+ * @public
1929
+ */
1930
+ export interface UpdateRepositoryEncryptionKeyInput {
1931
+ /**
1932
+ * @public
1933
+ * <p>The name of the repository for which you want to update the KMS encryption key used to encrypt and decrypt the repository.</p>
1934
+ */
1935
+ repositoryName: string | undefined;
1936
+ /**
1937
+ * @public
1938
+ * <p>The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to
1939
+ * programmatically retrieve a key ID. For more information about acceptable values for keyID, see
1940
+ * <a href="https://docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId">KeyId</a> in the Decrypt API description in
1941
+ * the <i>Key Management Service API Reference</i>.</p>
1942
+ */
1943
+ kmsKeyId: string | undefined;
1944
+ }
1945
+ /**
1946
+ * @public
1947
+ */
1948
+ export interface UpdateRepositoryEncryptionKeyOutput {
1949
+ /**
1950
+ * @public
1951
+ * <p>The ID of the repository.</p>
1952
+ */
1953
+ repositoryId?: string;
1954
+ /**
1955
+ * @public
1956
+ * <p>The ID of the encryption key.</p>
1957
+ */
1958
+ kmsKeyId?: string;
1959
+ /**
1960
+ * @public
1961
+ * <p>The ID of the encryption key formerly used to encrypt and decrypt the repository.</p>
1962
+ */
1963
+ originalKmsKeyId?: string;
1964
+ }
1844
1965
  /**
1845
1966
  * @public
1846
1967
  * <p>Represents the input of an update repository description operation.</p>
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateDescribeMergeConflicts(config: CodeCommitPaginationConfiguration, input: DescribeMergeConflictsCommandInput, ...additionalArguments: any): Paginator<DescribeMergeConflictsCommandOutput>;
7
+ export declare const paginateDescribeMergeConflicts: (config: CodeCommitPaginationConfiguration, input: DescribeMergeConflictsCommandInput, ...rest: any[]) => Paginator<DescribeMergeConflictsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateDescribePullRequestEvents(config: CodeCommitPaginationConfiguration, input: DescribePullRequestEventsCommandInput, ...additionalArguments: any): Paginator<DescribePullRequestEventsCommandOutput>;
7
+ export declare const paginateDescribePullRequestEvents: (config: CodeCommitPaginationConfiguration, input: DescribePullRequestEventsCommandInput, ...rest: any[]) => Paginator<DescribePullRequestEventsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateGetCommentReactions(config: CodeCommitPaginationConfiguration, input: GetCommentReactionsCommandInput, ...additionalArguments: any): Paginator<GetCommentReactionsCommandOutput>;
7
+ export declare const paginateGetCommentReactions: (config: CodeCommitPaginationConfiguration, input: GetCommentReactionsCommandInput, ...rest: any[]) => Paginator<GetCommentReactionsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateGetCommentsForComparedCommit(config: CodeCommitPaginationConfiguration, input: GetCommentsForComparedCommitCommandInput, ...additionalArguments: any): Paginator<GetCommentsForComparedCommitCommandOutput>;
7
+ export declare const paginateGetCommentsForComparedCommit: (config: CodeCommitPaginationConfiguration, input: GetCommentsForComparedCommitCommandInput, ...rest: any[]) => Paginator<GetCommentsForComparedCommitCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateGetCommentsForPullRequest(config: CodeCommitPaginationConfiguration, input: GetCommentsForPullRequestCommandInput, ...additionalArguments: any): Paginator<GetCommentsForPullRequestCommandOutput>;
7
+ export declare const paginateGetCommentsForPullRequest: (config: CodeCommitPaginationConfiguration, input: GetCommentsForPullRequestCommandInput, ...rest: any[]) => Paginator<GetCommentsForPullRequestCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateGetDifferences(config: CodeCommitPaginationConfiguration, input: GetDifferencesCommandInput, ...additionalArguments: any): Paginator<GetDifferencesCommandOutput>;
7
+ export declare const paginateGetDifferences: (config: CodeCommitPaginationConfiguration, input: GetDifferencesCommandInput, ...rest: any[]) => Paginator<GetDifferencesCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateGetMergeConflicts(config: CodeCommitPaginationConfiguration, input: GetMergeConflictsCommandInput, ...additionalArguments: any): Paginator<GetMergeConflictsCommandOutput>;
7
+ export declare const paginateGetMergeConflicts: (config: CodeCommitPaginationConfiguration, input: GetMergeConflictsCommandInput, ...rest: any[]) => Paginator<GetMergeConflictsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListApprovalRuleTemplates(config: CodeCommitPaginationConfiguration, input: ListApprovalRuleTemplatesCommandInput, ...additionalArguments: any): Paginator<ListApprovalRuleTemplatesCommandOutput>;
7
+ export declare const paginateListApprovalRuleTemplates: (config: CodeCommitPaginationConfiguration, input: ListApprovalRuleTemplatesCommandInput, ...rest: any[]) => Paginator<ListApprovalRuleTemplatesCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAssociatedApprovalRuleTemplatesForRepository(config: CodeCommitPaginationConfiguration, input: ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput, ...additionalArguments: any): Paginator<ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput>;
7
+ export declare const paginateListAssociatedApprovalRuleTemplatesForRepository: (config: CodeCommitPaginationConfiguration, input: ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput, ...rest: any[]) => Paginator<ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListBranches(config: CodeCommitPaginationConfiguration, input: ListBranchesCommandInput, ...additionalArguments: any): Paginator<ListBranchesCommandOutput>;
7
+ export declare const paginateListBranches: (config: CodeCommitPaginationConfiguration, input: ListBranchesCommandInput, ...rest: any[]) => Paginator<ListBranchesCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListFileCommitHistory(config: CodeCommitPaginationConfiguration, input: ListFileCommitHistoryCommandInput, ...additionalArguments: any): Paginator<ListFileCommitHistoryCommandOutput>;
7
+ export declare const paginateListFileCommitHistory: (config: CodeCommitPaginationConfiguration, input: ListFileCommitHistoryCommandInput, ...rest: any[]) => Paginator<ListFileCommitHistoryCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListPullRequests(config: CodeCommitPaginationConfiguration, input: ListPullRequestsCommandInput, ...additionalArguments: any): Paginator<ListPullRequestsCommandOutput>;
7
+ export declare const paginateListPullRequests: (config: CodeCommitPaginationConfiguration, input: ListPullRequestsCommandInput, ...rest: any[]) => Paginator<ListPullRequestsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListRepositoriesForApprovalRuleTemplate(config: CodeCommitPaginationConfiguration, input: ListRepositoriesForApprovalRuleTemplateCommandInput, ...additionalArguments: any): Paginator<ListRepositoriesForApprovalRuleTemplateCommandOutput>;
7
+ export declare const paginateListRepositoriesForApprovalRuleTemplate: (config: CodeCommitPaginationConfiguration, input: ListRepositoriesForApprovalRuleTemplateCommandInput, ...rest: any[]) => Paginator<ListRepositoriesForApprovalRuleTemplateCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCommitPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListRepositories(config: CodeCommitPaginationConfiguration, input: ListRepositoriesCommandInput, ...additionalArguments: any): Paginator<ListRepositoriesCommandOutput>;
7
+ export declare const paginateListRepositories: (config: CodeCommitPaginationConfiguration, input: ListRepositoriesCommandInput, ...rest: any[]) => Paginator<ListRepositoriesCommandOutput>;
@@ -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
  /**
82
83
  * serializeAws_json1_1AssociateApprovalRuleTemplateWithRepositoryCommand
@@ -386,6 +387,10 @@ export declare const se_UpdatePullRequestTitleCommand: (input: UpdatePullRequest
386
387
  * serializeAws_json1_1UpdateRepositoryDescriptionCommand
387
388
  */
388
389
  export declare const se_UpdateRepositoryDescriptionCommand: (input: UpdateRepositoryDescriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
390
+ /**
391
+ * serializeAws_json1_1UpdateRepositoryEncryptionKeyCommand
392
+ */
393
+ export declare const se_UpdateRepositoryEncryptionKeyCommand: (input: UpdateRepositoryEncryptionKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
389
394
  /**
390
395
  * serializeAws_json1_1UpdateRepositoryNameCommand
391
396
  */
@@ -698,6 +703,10 @@ export declare const de_UpdatePullRequestTitleCommand: (output: __HttpResponse,
698
703
  * deserializeAws_json1_1UpdateRepositoryDescriptionCommand
699
704
  */
700
705
  export declare const de_UpdateRepositoryDescriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateRepositoryDescriptionCommandOutput>;
706
+ /**
707
+ * deserializeAws_json1_1UpdateRepositoryEncryptionKeyCommand
708
+ */
709
+ export declare const de_UpdateRepositoryEncryptionKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateRepositoryEncryptionKeyCommandOutput>;
701
710
  /**
702
711
  * deserializeAws_json1_1UpdateRepositoryNameCommand
703
712
  */
@@ -308,6 +308,10 @@ import {
308
308
  UpdateRepositoryDescriptionCommandInput,
309
309
  UpdateRepositoryDescriptionCommandOutput,
310
310
  } from "./commands/UpdateRepositoryDescriptionCommand";
311
+ import {
312
+ UpdateRepositoryEncryptionKeyCommandInput,
313
+ UpdateRepositoryEncryptionKeyCommandOutput,
314
+ } from "./commands/UpdateRepositoryEncryptionKeyCommand";
311
315
  import {
312
316
  UpdateRepositoryNameCommandInput,
313
317
  UpdateRepositoryNameCommandOutput,
@@ -1368,6 +1372,19 @@ export interface CodeCommit {
1368
1372
  options: __HttpHandlerOptions,
1369
1373
  cb: (err: any, data?: UpdateRepositoryDescriptionCommandOutput) => void
1370
1374
  ): void;
1375
+ updateRepositoryEncryptionKey(
1376
+ args: UpdateRepositoryEncryptionKeyCommandInput,
1377
+ options?: __HttpHandlerOptions
1378
+ ): Promise<UpdateRepositoryEncryptionKeyCommandOutput>;
1379
+ updateRepositoryEncryptionKey(
1380
+ args: UpdateRepositoryEncryptionKeyCommandInput,
1381
+ cb: (err: any, data?: UpdateRepositoryEncryptionKeyCommandOutput) => void
1382
+ ): void;
1383
+ updateRepositoryEncryptionKey(
1384
+ args: UpdateRepositoryEncryptionKeyCommandInput,
1385
+ options: __HttpHandlerOptions,
1386
+ cb: (err: any, data?: UpdateRepositoryEncryptionKeyCommandOutput) => void
1387
+ ): void;
1371
1388
  updateRepositoryName(
1372
1389
  args: UpdateRepositoryNameCommandInput,
1373
1390
  options?: __HttpHandlerOptions
@@ -353,6 +353,10 @@ import {
353
353
  UpdateRepositoryDescriptionCommandInput,
354
354
  UpdateRepositoryDescriptionCommandOutput,
355
355
  } from "./commands/UpdateRepositoryDescriptionCommand";
356
+ import {
357
+ UpdateRepositoryEncryptionKeyCommandInput,
358
+ UpdateRepositoryEncryptionKeyCommandOutput,
359
+ } from "./commands/UpdateRepositoryEncryptionKeyCommand";
356
360
  import {
357
361
  UpdateRepositoryNameCommandInput,
358
362
  UpdateRepositoryNameCommandOutput,
@@ -442,6 +446,7 @@ export type ServiceInputTypes =
442
446
  | UpdatePullRequestStatusCommandInput
443
447
  | UpdatePullRequestTitleCommandInput
444
448
  | UpdateRepositoryDescriptionCommandInput
449
+ | UpdateRepositoryEncryptionKeyCommandInput
445
450
  | UpdateRepositoryNameCommandInput;
446
451
  export type ServiceOutputTypes =
447
452
  | AssociateApprovalRuleTemplateWithRepositoryCommandOutput
@@ -521,6 +526,7 @@ export type ServiceOutputTypes =
521
526
  | UpdatePullRequestStatusCommandOutput
522
527
  | UpdatePullRequestTitleCommandOutput
523
528
  | UpdateRepositoryDescriptionCommandOutput
529
+ | UpdateRepositoryEncryptionKeyCommandOutput
524
530
  | UpdateRepositoryNameCommandOutput;
525
531
  export interface ClientDefaults
526
532
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {