@aws-sdk/client-codecommit 3.478.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 (36) 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/protocols/Aws_json1_1.js +110 -5
  8. package/dist-es/CodeCommit.js +2 -0
  9. package/dist-es/commands/UpdateRepositoryEncryptionKeyCommand.js +47 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/models_0.js +32 -24
  12. package/dist-es/models/models_1.js +36 -0
  13. package/dist-es/protocols/Aws_json1_1.js +105 -2
  14. package/dist-types/CodeCommit.d.ts +12 -0
  15. package/dist-types/CodeCommitClient.d.ts +8 -2
  16. package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +9 -0
  17. package/dist-types/commands/CreateRepositoryCommand.d.ts +9 -0
  18. package/dist-types/commands/GetRepositoryCommand.d.ts +1 -0
  19. package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +2 -1
  20. package/dist-types/commands/ListPullRequestsCommand.d.ts +1 -2
  21. package/dist-types/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +115 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/index.d.ts +5 -0
  24. package/dist-types/models/models_0.d.ts +86 -71
  25. package/dist-types/models/models_1.d.ts +122 -1
  26. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  27. package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
  28. package/dist-types/ts3.4/CodeCommitClient.d.ts +6 -0
  29. package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +2 -4
  30. package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +4 -2
  31. package/dist-types/ts3.4/commands/UpdateRepositoryEncryptionKeyCommand.d.ts +42 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +39 -28
  34. package/dist-types/ts3.4/models/models_1.d.ts +45 -0
  35. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  36. package/package.json +1 -1
@@ -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>
@@ -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>> {
@@ -11,10 +11,8 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../CodeCommitClient";
14
- import {
15
- ListFileCommitHistoryRequest,
16
- ListFileCommitHistoryResponse,
17
- } from "../models/models_0";
14
+ import { ListFileCommitHistoryRequest } from "../models/models_0";
15
+ import { ListFileCommitHistoryResponse } from "../models/models_1";
18
16
  export { __MetadataBearer, $Command };
19
17
  export interface ListFileCommitHistoryCommandInput
20
18
  extends ListFileCommitHistoryRequest {}
@@ -11,8 +11,10 @@ import {
11
11
  ServiceInputTypes,
12
12
  ServiceOutputTypes,
13
13
  } from "../CodeCommitClient";
14
- import { ListPullRequestsInput } from "../models/models_0";
15
- import { ListPullRequestsOutput } from "../models/models_1";
14
+ import {
15
+ ListPullRequestsInput,
16
+ ListPullRequestsOutput,
17
+ } from "../models/models_1";
16
18
  export { __MetadataBearer, $Command };
17
19
  export interface ListPullRequestsCommandInput extends ListPullRequestsInput {}
18
20
  export interface ListPullRequestsCommandOutput
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CodeCommitClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CodeCommitClient";
14
+ import {
15
+ UpdateRepositoryEncryptionKeyInput,
16
+ UpdateRepositoryEncryptionKeyOutput,
17
+ } from "../models/models_1";
18
+ export { __MetadataBearer, $Command };
19
+ export interface UpdateRepositoryEncryptionKeyCommandInput
20
+ extends UpdateRepositoryEncryptionKeyInput {}
21
+ export interface UpdateRepositoryEncryptionKeyCommandOutput
22
+ extends UpdateRepositoryEncryptionKeyOutput,
23
+ __MetadataBearer {}
24
+ export declare class UpdateRepositoryEncryptionKeyCommand extends $Command<
25
+ UpdateRepositoryEncryptionKeyCommandInput,
26
+ UpdateRepositoryEncryptionKeyCommandOutput,
27
+ CodeCommitClientResolvedConfig
28
+ > {
29
+ readonly input: UpdateRepositoryEncryptionKeyCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: UpdateRepositoryEncryptionKeyCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: CodeCommitClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ UpdateRepositoryEncryptionKeyCommandInput,
38
+ UpdateRepositoryEncryptionKeyCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -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";
@@ -584,6 +584,22 @@ export declare class CommitIdsListRequiredException extends __BaseException {
584
584
  export interface BatchGetRepositoriesInput {
585
585
  repositoryNames: string[] | undefined;
586
586
  }
587
+ export declare const BatchGetRepositoriesErrorCodeEnum: {
588
+ readonly ENCRYPTION_INTEGRITY_CHECKS_FAILED_EXCEPTION: "EncryptionIntegrityChecksFailedException";
589
+ readonly ENCRYPTION_KEY_ACCESS_DENIED_EXCEPTION: "EncryptionKeyAccessDeniedException";
590
+ readonly ENCRYPTION_KEY_DISABLED_EXCEPTION: "EncryptionKeyDisabledException";
591
+ readonly ENCRYPTION_KEY_NOT_FOUND_EXCEPTION: "EncryptionKeyNotFoundException";
592
+ readonly ENCRYPTION_KEY_UNAVAILABLE_EXCEPTION: "EncryptionKeyUnavailableException";
593
+ readonly REPOSITORY_DOES_NOT_EXIST_EXCEPTION: "RepositoryDoesNotExistException";
594
+ };
595
+ export type BatchGetRepositoriesErrorCodeEnum =
596
+ (typeof BatchGetRepositoriesErrorCodeEnum)[keyof typeof BatchGetRepositoriesErrorCodeEnum];
597
+ export interface BatchGetRepositoriesError {
598
+ repositoryId?: string;
599
+ repositoryName?: string;
600
+ errorCode?: BatchGetRepositoriesErrorCodeEnum;
601
+ errorMessage?: string;
602
+ }
587
603
  export interface RepositoryMetadata {
588
604
  accountId?: string;
589
605
  repositoryId?: string;
@@ -595,10 +611,12 @@ export interface RepositoryMetadata {
595
611
  cloneUrlHttp?: string;
596
612
  cloneUrlSsh?: string;
597
613
  Arn?: string;
614
+ kmsKeyId?: string;
598
615
  }
599
616
  export interface BatchGetRepositoriesOutput {
600
617
  repositories?: RepositoryMetadata[];
601
618
  repositoriesNotFound?: string[];
619
+ errors?: BatchGetRepositoriesError[];
602
620
  }
603
621
  export declare class BeforeCommitIdAndAfterCommitIdAreSameException extends __BaseException {
604
622
  readonly name: "BeforeCommitIdAndAfterCommitIdAreSameException";
@@ -1266,10 +1284,31 @@ export interface CreateRepositoryInput {
1266
1284
  repositoryName: string | undefined;
1267
1285
  repositoryDescription?: string;
1268
1286
  tags?: Record<string, string>;
1287
+ kmsKeyId?: string;
1269
1288
  }
1270
1289
  export interface CreateRepositoryOutput {
1271
1290
  repositoryMetadata?: RepositoryMetadata;
1272
1291
  }
1292
+ export declare class EncryptionKeyInvalidIdException extends __BaseException {
1293
+ readonly name: "EncryptionKeyInvalidIdException";
1294
+ readonly $fault: "client";
1295
+ constructor(
1296
+ opts: __ExceptionOptionType<
1297
+ EncryptionKeyInvalidIdException,
1298
+ __BaseException
1299
+ >
1300
+ );
1301
+ }
1302
+ export declare class EncryptionKeyInvalidUsageException extends __BaseException {
1303
+ readonly name: "EncryptionKeyInvalidUsageException";
1304
+ readonly $fault: "client";
1305
+ constructor(
1306
+ opts: __ExceptionOptionType<
1307
+ EncryptionKeyInvalidUsageException,
1308
+ __BaseException
1309
+ >
1310
+ );
1311
+ }
1273
1312
  export declare class InvalidRepositoryDescriptionException extends __BaseException {
1274
1313
  readonly name: "InvalidRepositoryDescriptionException";
1275
1314
  readonly $fault: "client";
@@ -2061,31 +2100,3 @@ export interface FileVersion {
2061
2100
  path?: string;
2062
2101
  revisionChildren?: string[];
2063
2102
  }
2064
- export interface ListFileCommitHistoryResponse {
2065
- revisionDag: FileVersion[] | undefined;
2066
- nextToken?: string;
2067
- }
2068
- export declare class InvalidAuthorArnException extends __BaseException {
2069
- readonly name: "InvalidAuthorArnException";
2070
- readonly $fault: "client";
2071
- constructor(
2072
- opts: __ExceptionOptionType<InvalidAuthorArnException, __BaseException>
2073
- );
2074
- }
2075
- export declare class InvalidPullRequestStatusException extends __BaseException {
2076
- readonly name: "InvalidPullRequestStatusException";
2077
- readonly $fault: "client";
2078
- constructor(
2079
- opts: __ExceptionOptionType<
2080
- InvalidPullRequestStatusException,
2081
- __BaseException
2082
- >
2083
- );
2084
- }
2085
- export interface ListPullRequestsInput {
2086
- repositoryName: string | undefined;
2087
- authorArn?: string;
2088
- pullRequestStatus?: PullRequestStatusEnum;
2089
- nextToken?: string;
2090
- maxResults?: number;
2091
- }
@@ -9,12 +9,41 @@ import {
9
9
  ConflictResolution,
10
10
  ConflictResolutionStrategyTypeEnum,
11
11
  FileModeTypeEnum,
12
+ FileVersion,
12
13
  Location,
13
14
  OverrideStatus,
14
15
  PullRequest,
15
16
  PullRequestStatusEnum,
16
17
  RepositoryTrigger,
17
18
  } from "./models_0";
19
+ export interface ListFileCommitHistoryResponse {
20
+ revisionDag: FileVersion[] | undefined;
21
+ nextToken?: string;
22
+ }
23
+ export declare class InvalidAuthorArnException extends __BaseException {
24
+ readonly name: "InvalidAuthorArnException";
25
+ readonly $fault: "client";
26
+ constructor(
27
+ opts: __ExceptionOptionType<InvalidAuthorArnException, __BaseException>
28
+ );
29
+ }
30
+ export declare class InvalidPullRequestStatusException extends __BaseException {
31
+ readonly name: "InvalidPullRequestStatusException";
32
+ readonly $fault: "client";
33
+ constructor(
34
+ opts: __ExceptionOptionType<
35
+ InvalidPullRequestStatusException,
36
+ __BaseException
37
+ >
38
+ );
39
+ }
40
+ export interface ListPullRequestsInput {
41
+ repositoryName: string | undefined;
42
+ authorArn?: string;
43
+ pullRequestStatus?: PullRequestStatusEnum;
44
+ nextToken?: string;
45
+ maxResults?: number;
46
+ }
18
47
  export interface ListPullRequestsOutput {
19
48
  pullRequestIds: string[] | undefined;
20
49
  nextToken?: string;
@@ -685,6 +714,22 @@ export interface UpdateRepositoryDescriptionInput {
685
714
  repositoryName: string | undefined;
686
715
  repositoryDescription?: string;
687
716
  }
717
+ export declare class EncryptionKeyRequiredException extends __BaseException {
718
+ readonly name: "EncryptionKeyRequiredException";
719
+ readonly $fault: "client";
720
+ constructor(
721
+ opts: __ExceptionOptionType<EncryptionKeyRequiredException, __BaseException>
722
+ );
723
+ }
724
+ export interface UpdateRepositoryEncryptionKeyInput {
725
+ repositoryName: string | undefined;
726
+ kmsKeyId: string | undefined;
727
+ }
728
+ export interface UpdateRepositoryEncryptionKeyOutput {
729
+ repositoryId?: string;
730
+ kmsKeyId?: string;
731
+ originalKmsKeyId?: string;
732
+ }
688
733
  export interface UpdateRepositoryNameInput {
689
734
  oldName: string | undefined;
690
735
  newName: string | undefined;