@aws-sdk/client-codecommit 3.391.0 → 3.398.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 (130) hide show
  1. package/README.md +30 -32
  2. package/dist-cjs/CodeCommit.js +2 -0
  3. package/dist-cjs/CodeCommitClient.js +4 -2
  4. package/dist-cjs/commands/ListFileCommitHistoryCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +1 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/extensionConfiguration.js +2 -0
  8. package/dist-cjs/models/models_0.js +1 -27
  9. package/dist-cjs/models/models_1.js +27 -1
  10. package/dist-cjs/pagination/ListFileCommitHistoryPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_json1_1.js +85 -6
  13. package/dist-cjs/runtimeConfig.shared.js +1 -0
  14. package/dist-cjs/runtimeExtensions.js +16 -0
  15. package/dist-es/CodeCommit.js +2 -0
  16. package/dist-es/CodeCommitClient.js +4 -2
  17. package/dist-es/commands/ListFileCommitHistoryCommand.js +42 -0
  18. package/dist-es/commands/index.js +1 -0
  19. package/dist-es/endpoint/ruleset.js +3 -3
  20. package/dist-es/extensionConfiguration.js +1 -0
  21. package/dist-es/models/models_0.js +0 -24
  22. package/dist-es/models/models_1.js +24 -0
  23. package/dist-es/pagination/ListFileCommitHistoryPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_json1_1.js +79 -2
  26. package/dist-es/runtimeConfig.shared.js +1 -0
  27. package/dist-es/runtimeExtensions.js +12 -0
  28. package/dist-types/CodeCommit.d.ts +100 -109
  29. package/dist-types/CodeCommitClient.d.ts +102 -112
  30. package/dist-types/commands/AssociateApprovalRuleTemplateWithRepositoryCommand.d.ts +4 -6
  31. package/dist-types/commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand.d.ts +3 -4
  32. package/dist-types/commands/BatchDescribeMergeConflictsCommand.d.ts +12 -13
  33. package/dist-types/commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand.d.ts +3 -4
  34. package/dist-types/commands/BatchGetCommitsCommand.d.ts +1 -2
  35. package/dist-types/commands/BatchGetRepositoriesCommand.d.ts +2 -3
  36. package/dist-types/commands/CreateApprovalRuleTemplateCommand.d.ts +7 -9
  37. package/dist-types/commands/CreateBranchCommand.d.ts +3 -3
  38. package/dist-types/commands/CreateCommitCommand.d.ts +6 -7
  39. package/dist-types/commands/CreatePullRequestCommand.d.ts +4 -5
  40. package/dist-types/commands/CreateRepositoryCommand.d.ts +2 -3
  41. package/dist-types/commands/CreateUnreferencedMergeCommitCommand.d.ts +8 -9
  42. package/dist-types/commands/DeleteApprovalRuleTemplateCommand.d.ts +2 -3
  43. package/dist-types/commands/DeleteBranchCommand.d.ts +1 -2
  44. package/dist-types/commands/DeleteFileCommand.d.ts +1 -2
  45. package/dist-types/commands/DeleteRepositoryCommand.d.ts +2 -3
  46. package/dist-types/commands/DescribeMergeConflictsCommand.d.ts +12 -13
  47. package/dist-types/commands/DescribePullRequestEventsCommand.d.ts +7 -7
  48. package/dist-types/commands/DisassociateApprovalRuleTemplateFromRepositoryCommand.d.ts +4 -6
  49. package/dist-types/commands/GetApprovalRuleTemplateCommand.d.ts +3 -4
  50. package/dist-types/commands/GetBlobCommand.d.ts +3 -4
  51. package/dist-types/commands/GetBranchCommand.d.ts +1 -2
  52. package/dist-types/commands/GetCommentCommand.d.ts +1 -1
  53. package/dist-types/commands/GetCommentsForComparedCommitCommand.d.ts +3 -4
  54. package/dist-types/commands/GetCommentsForPullRequestCommand.d.ts +3 -4
  55. package/dist-types/commands/GetCommitCommand.d.ts +1 -2
  56. package/dist-types/commands/GetDifferencesCommand.d.ts +2 -3
  57. package/dist-types/commands/GetFileCommand.d.ts +4 -5
  58. package/dist-types/commands/GetFolderCommand.d.ts +3 -4
  59. package/dist-types/commands/GetMergeCommitCommand.d.ts +3 -4
  60. package/dist-types/commands/GetMergeConflictsCommand.d.ts +12 -13
  61. package/dist-types/commands/GetMergeOptionsCommand.d.ts +4 -5
  62. package/dist-types/commands/GetPullRequestApprovalStatesCommand.d.ts +1 -1
  63. package/dist-types/commands/GetPullRequestCommand.d.ts +2 -2
  64. package/dist-types/commands/GetRepositoryCommand.d.ts +2 -4
  65. package/dist-types/commands/GetRepositoryTriggersCommand.d.ts +2 -3
  66. package/dist-types/commands/ListApprovalRuleTemplatesCommand.d.ts +2 -2
  67. package/dist-types/commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand.d.ts +1 -2
  68. package/dist-types/commands/ListBranchesCommand.d.ts +1 -2
  69. package/dist-types/commands/ListFileCommitHistoryCommand.d.ts +153 -0
  70. package/dist-types/commands/ListPullRequestsCommand.d.ts +5 -5
  71. package/dist-types/commands/ListRepositoriesCommand.d.ts +2 -2
  72. package/dist-types/commands/ListRepositoriesForApprovalRuleTemplateCommand.d.ts +3 -4
  73. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -8
  74. package/dist-types/commands/MergeBranchesByFastForwardCommand.d.ts +1 -2
  75. package/dist-types/commands/MergeBranchesBySquashCommand.d.ts +6 -7
  76. package/dist-types/commands/MergeBranchesByThreeWayCommand.d.ts +6 -7
  77. package/dist-types/commands/MergePullRequestByFastForwardCommand.d.ts +3 -4
  78. package/dist-types/commands/MergePullRequestBySquashCommand.d.ts +8 -9
  79. package/dist-types/commands/MergePullRequestByThreeWayCommand.d.ts +8 -9
  80. package/dist-types/commands/OverridePullRequestApprovalRulesCommand.d.ts +1 -1
  81. package/dist-types/commands/PostCommentForComparedCommitCommand.d.ts +4 -5
  82. package/dist-types/commands/PostCommentForPullRequestCommand.d.ts +4 -5
  83. package/dist-types/commands/PostCommentReplyCommand.d.ts +1 -1
  84. package/dist-types/commands/PutCommentReactionCommand.d.ts +1 -1
  85. package/dist-types/commands/PutFileCommand.d.ts +3 -4
  86. package/dist-types/commands/PutRepositoryTriggersCommand.d.ts +4 -5
  87. package/dist-types/commands/TagResourceCommand.d.ts +8 -9
  88. package/dist-types/commands/TestRepositoryTriggersCommand.d.ts +4 -5
  89. package/dist-types/commands/UntagResourceCommand.d.ts +7 -9
  90. package/dist-types/commands/UpdateApprovalRuleTemplateContentCommand.d.ts +3 -4
  91. package/dist-types/commands/UpdateApprovalRuleTemplateDescriptionCommand.d.ts +5 -7
  92. package/dist-types/commands/UpdateApprovalRuleTemplateNameCommand.d.ts +4 -5
  93. package/dist-types/commands/UpdateCommentCommand.d.ts +1 -1
  94. package/dist-types/commands/UpdateDefaultBranchCommand.d.ts +2 -3
  95. package/dist-types/commands/UpdatePullRequestApprovalStateCommand.d.ts +1 -1
  96. package/dist-types/commands/UpdatePullRequestDescriptionCommand.d.ts +2 -2
  97. package/dist-types/commands/UpdatePullRequestStatusCommand.d.ts +3 -3
  98. package/dist-types/commands/UpdatePullRequestTitleCommand.d.ts +2 -2
  99. package/dist-types/commands/UpdateRepositoryDescriptionCommand.d.ts +2 -3
  100. package/dist-types/commands/UpdateRepositoryNameCommand.d.ts +4 -5
  101. package/dist-types/commands/index.d.ts +1 -0
  102. package/dist-types/extensionConfiguration.d.ts +6 -0
  103. package/dist-types/index.d.ts +93 -109
  104. package/dist-types/models/models_0.d.ts +153 -114
  105. package/dist-types/models/models_1.d.ts +68 -30
  106. package/dist-types/pagination/ListFileCommitHistoryPaginator.d.ts +7 -0
  107. package/dist-types/pagination/index.d.ts +1 -0
  108. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  109. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  110. package/dist-types/runtimeConfig.d.ts +1 -0
  111. package/dist-types/runtimeConfig.native.d.ts +1 -0
  112. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  113. package/dist-types/runtimeExtensions.d.ts +17 -0
  114. package/dist-types/ts3.4/CodeCommit.d.ts +17 -0
  115. package/dist-types/ts3.4/CodeCommitClient.d.ts +9 -0
  116. package/dist-types/ts3.4/commands/ListFileCommitHistoryCommand.d.ts +42 -0
  117. package/dist-types/ts3.4/commands/ListPullRequestsCommand.d.ts +2 -4
  118. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  119. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -0
  120. package/dist-types/ts3.4/models/models_0.d.ts +17 -18
  121. package/dist-types/ts3.4/models/models_1.d.ts +18 -0
  122. package/dist-types/ts3.4/pagination/ListFileCommitHistoryPaginator.d.ts +11 -0
  123. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  124. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
  125. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
  126. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
  127. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  128. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  129. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  130. package/package.json +29 -29
@@ -56,7 +56,7 @@ export interface GetDifferencesCommandOutput extends GetDifferencesOutput, __Met
56
56
  * // path: "STRING_VALUE",
57
57
  * // mode: "STRING_VALUE",
58
58
  * // },
59
- * // changeType: "STRING_VALUE",
59
+ * // changeType: "A" || "M" || "D",
60
60
  * // },
61
61
  * // ],
62
62
  * // NextToken: "STRING_VALUE",
@@ -108,8 +108,7 @@ export interface GetDifferencesCommandOutput extends GetDifferencesOutput, __Met
108
108
  *
109
109
  * @throws {@link InvalidRepositoryNameException} (client fault)
110
110
  * <p>A specified repository name is not valid.</p>
111
- *
112
- * <note>
111
+ * <note>
113
112
  * <p>This exception occurs only when a specified repository name is not valid. Other
114
113
  * exceptions occur when a required repository parameter is missing, or when a
115
114
  * specified repository does not exist.</p>
@@ -41,7 +41,7 @@ export interface GetFileCommandOutput extends GetFileOutput, __MetadataBearer {
41
41
  * // commitId: "STRING_VALUE", // required
42
42
  * // blobId: "STRING_VALUE", // required
43
43
  * // filePath: "STRING_VALUE", // required
44
- * // fileMode: "STRING_VALUE", // required
44
+ * // fileMode: "EXECUTABLE" || "NORMAL" || "SYMLINK", // required
45
45
  * // fileSize: Number("long"), // required
46
46
  * // fileContent: "BLOB_VALUE", // required
47
47
  * // };
@@ -77,8 +77,8 @@ export interface GetFileCommandOutput extends GetFileOutput, __MetadataBearer {
77
77
  * full path, and extension.</p>
78
78
  *
79
79
  * @throws {@link FileTooLargeException} (client fault)
80
- * <p>The specified file exceeds the file size limit for AWS CodeCommit. For more information about limits in AWS CodeCommit, see
81
- * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html">AWS CodeCommit User Guide</a>.</p>
80
+ * <p>The specified file exceeds the file size limit for CodeCommit. For more information about limits in CodeCommit, see
81
+ * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html">Quotas</a> in the <i>CodeCommit User Guide</i>.</p>
82
82
  *
83
83
  * @throws {@link InvalidCommitException} (client fault)
84
84
  * <p>The specified commit is not valid.</p>
@@ -88,8 +88,7 @@ export interface GetFileCommandOutput extends GetFileOutput, __MetadataBearer {
88
88
  *
89
89
  * @throws {@link InvalidRepositoryNameException} (client fault)
90
90
  * <p>A specified repository name is not valid.</p>
91
- *
92
- * <note>
91
+ * <note>
93
92
  * <p>This exception occurs only when a specified repository name is not valid. Other
94
93
  * exceptions occur when a required repository parameter is missing, or when a
95
94
  * specified repository does not exist.</p>
@@ -53,7 +53,7 @@ export interface GetFolderCommandOutput extends GetFolderOutput, __MetadataBeare
53
53
  * // blobId: "STRING_VALUE",
54
54
  * // absolutePath: "STRING_VALUE",
55
55
  * // relativePath: "STRING_VALUE",
56
- * // fileMode: "STRING_VALUE",
56
+ * // fileMode: "EXECUTABLE" || "NORMAL" || "SYMLINK",
57
57
  * // },
58
58
  * // ],
59
59
  * // symbolicLinks: [ // SymbolicLinkList
@@ -61,7 +61,7 @@ export interface GetFolderCommandOutput extends GetFolderOutput, __MetadataBeare
61
61
  * // blobId: "STRING_VALUE",
62
62
  * // absolutePath: "STRING_VALUE",
63
63
  * // relativePath: "STRING_VALUE",
64
- * // fileMode: "STRING_VALUE",
64
+ * // fileMode: "EXECUTABLE" || "NORMAL" || "SYMLINK",
65
65
  * // },
66
66
  * // ],
67
67
  * // subModules: [ // SubModuleList
@@ -111,8 +111,7 @@ export interface GetFolderCommandOutput extends GetFolderOutput, __MetadataBeare
111
111
  *
112
112
  * @throws {@link InvalidRepositoryNameException} (client fault)
113
113
  * <p>A specified repository name is not valid.</p>
114
- *
115
- * <note>
114
+ * <note>
116
115
  * <p>This exception occurs only when a specified repository name is not valid. Other
117
116
  * exceptions occur when a required repository parameter is missing, or when a
118
117
  * specified repository does not exist.</p>
@@ -34,8 +34,8 @@ export interface GetMergeCommitCommandOutput extends GetMergeCommitOutput, __Met
34
34
  * repositoryName: "STRING_VALUE", // required
35
35
  * sourceCommitSpecifier: "STRING_VALUE", // required
36
36
  * destinationCommitSpecifier: "STRING_VALUE", // required
37
- * conflictDetailLevel: "STRING_VALUE",
38
- * conflictResolutionStrategy: "STRING_VALUE",
37
+ * conflictDetailLevel: "FILE_LEVEL" || "LINE_LEVEL",
38
+ * conflictResolutionStrategy: "NONE" || "ACCEPT_SOURCE" || "ACCEPT_DESTINATION" || "AUTOMERGE",
39
39
  * };
40
40
  * const command = new GetMergeCommitCommand(input);
41
41
  * const response = await client.send(command);
@@ -86,8 +86,7 @@ export interface GetMergeCommitCommandOutput extends GetMergeCommitOutput, __Met
86
86
  *
87
87
  * @throws {@link InvalidRepositoryNameException} (client fault)
88
88
  * <p>A specified repository name is not valid.</p>
89
- *
90
- * <note>
89
+ * <note>
91
90
  * <p>This exception occurs only when a specified repository name is not valid. Other
92
91
  * exceptions occur when a required repository parameter is missing, or when a
93
92
  * specified repository does not exist.</p>
@@ -34,10 +34,10 @@ export interface GetMergeConflictsCommandOutput extends GetMergeConflictsOutput,
34
34
  * repositoryName: "STRING_VALUE", // required
35
35
  * destinationCommitSpecifier: "STRING_VALUE", // required
36
36
  * sourceCommitSpecifier: "STRING_VALUE", // required
37
- * mergeOption: "STRING_VALUE", // required
38
- * conflictDetailLevel: "STRING_VALUE",
37
+ * mergeOption: "FAST_FORWARD_MERGE" || "SQUASH_MERGE" || "THREE_WAY_MERGE", // required
38
+ * conflictDetailLevel: "FILE_LEVEL" || "LINE_LEVEL",
39
39
  * maxConflictFiles: Number("int"),
40
- * conflictResolutionStrategy: "STRING_VALUE",
40
+ * conflictResolutionStrategy: "NONE" || "ACCEPT_SOURCE" || "ACCEPT_DESTINATION" || "AUTOMERGE",
41
41
  * nextToken: "STRING_VALUE",
42
42
  * };
43
43
  * const command = new GetMergeConflictsCommand(input);
@@ -56,14 +56,14 @@ export interface GetMergeConflictsCommandOutput extends GetMergeConflictsOutput,
56
56
  * // base: Number("long"),
57
57
  * // },
58
58
  * // fileModes: { // FileModes
59
- * // source: "STRING_VALUE",
60
- * // destination: "STRING_VALUE",
61
- * // base: "STRING_VALUE",
59
+ * // source: "EXECUTABLE" || "NORMAL" || "SYMLINK",
60
+ * // destination: "EXECUTABLE" || "NORMAL" || "SYMLINK",
61
+ * // base: "EXECUTABLE" || "NORMAL" || "SYMLINK",
62
62
  * // },
63
63
  * // objectTypes: { // ObjectTypes
64
- * // source: "STRING_VALUE",
65
- * // destination: "STRING_VALUE",
66
- * // base: "STRING_VALUE",
64
+ * // source: "FILE" || "DIRECTORY" || "GIT_LINK" || "SYMBOLIC_LINK",
65
+ * // destination: "FILE" || "DIRECTORY" || "GIT_LINK" || "SYMBOLIC_LINK",
66
+ * // base: "FILE" || "DIRECTORY" || "GIT_LINK" || "SYMBOLIC_LINK",
67
67
  * // },
68
68
  * // numberOfConflicts: Number("int"),
69
69
  * // isBinaryFile: { // IsBinaryFile
@@ -75,8 +75,8 @@ export interface GetMergeConflictsCommandOutput extends GetMergeConflictsOutput,
75
75
  * // fileModeConflict: true || false,
76
76
  * // objectTypeConflict: true || false,
77
77
  * // mergeOperations: { // MergeOperations
78
- * // source: "STRING_VALUE",
79
- * // destination: "STRING_VALUE",
78
+ * // source: "A" || "M" || "D",
79
+ * // destination: "A" || "M" || "D",
80
80
  * // },
81
81
  * // },
82
82
  * // ],
@@ -135,8 +135,7 @@ export interface GetMergeConflictsCommandOutput extends GetMergeConflictsOutput,
135
135
  *
136
136
  * @throws {@link InvalidRepositoryNameException} (client fault)
137
137
  * <p>A specified repository name is not valid.</p>
138
- *
139
- * <note>
138
+ * <note>
140
139
  * <p>This exception occurs only when a specified repository name is not valid. Other
141
140
  * exceptions occur when a required repository parameter is missing, or when a
142
141
  * specified repository does not exist.</p>
@@ -36,14 +36,14 @@ export interface GetMergeOptionsCommandOutput extends GetMergeOptionsOutput, __M
36
36
  * repositoryName: "STRING_VALUE", // required
37
37
  * sourceCommitSpecifier: "STRING_VALUE", // required
38
38
  * destinationCommitSpecifier: "STRING_VALUE", // required
39
- * conflictDetailLevel: "STRING_VALUE",
40
- * conflictResolutionStrategy: "STRING_VALUE",
39
+ * conflictDetailLevel: "FILE_LEVEL" || "LINE_LEVEL",
40
+ * conflictResolutionStrategy: "NONE" || "ACCEPT_SOURCE" || "ACCEPT_DESTINATION" || "AUTOMERGE",
41
41
  * };
42
42
  * const command = new GetMergeOptionsCommand(input);
43
43
  * const response = await client.send(command);
44
44
  * // { // GetMergeOptionsOutput
45
45
  * // mergeOptions: [ // MergeOptions // required
46
- * // "STRING_VALUE",
46
+ * // "FAST_FORWARD_MERGE" || "SQUASH_MERGE" || "THREE_WAY_MERGE",
47
47
  * // ],
48
48
  * // sourceCommitId: "STRING_VALUE", // required
49
49
  * // destinationCommitId: "STRING_VALUE", // required
@@ -90,8 +90,7 @@ export interface GetMergeOptionsCommandOutput extends GetMergeOptionsOutput, __M
90
90
  *
91
91
  * @throws {@link InvalidRepositoryNameException} (client fault)
92
92
  * <p>A specified repository name is not valid.</p>
93
- *
94
- * <note>
93
+ * <note>
95
94
  * <p>This exception occurs only when a specified repository name is not valid. Other
96
95
  * exceptions occur when a required repository parameter is missing, or when a
97
96
  * specified repository does not exist.</p>
@@ -41,7 +41,7 @@ export interface GetPullRequestApprovalStatesCommandOutput extends GetPullReques
41
41
  * // approvals: [ // ApprovalList
42
42
  * // { // Approval
43
43
  * // userArn: "STRING_VALUE",
44
- * // approvalState: "STRING_VALUE",
44
+ * // approvalState: "APPROVE" || "REVOKE",
45
45
  * // },
46
46
  * // ],
47
47
  * // };
@@ -42,7 +42,7 @@ export interface GetPullRequestCommandOutput extends GetPullRequestOutput, __Met
42
42
  * // description: "STRING_VALUE",
43
43
  * // lastActivityDate: new Date("TIMESTAMP"),
44
44
  * // creationDate: new Date("TIMESTAMP"),
45
- * // pullRequestStatus: "STRING_VALUE",
45
+ * // pullRequestStatus: "OPEN" || "CLOSED",
46
46
  * // authorArn: "STRING_VALUE",
47
47
  * // pullRequestTargets: [ // PullRequestTargetList
48
48
  * // { // PullRequestTarget
@@ -56,7 +56,7 @@ export interface GetPullRequestCommandOutput extends GetPullRequestOutput, __Met
56
56
  * // isMerged: true || false,
57
57
  * // mergedBy: "STRING_VALUE",
58
58
  * // mergeCommitId: "STRING_VALUE",
59
- * // mergeOption: "STRING_VALUE",
59
+ * // mergeOption: "FAST_FORWARD_MERGE" || "SQUASH_MERGE" || "THREE_WAY_MERGE",
60
60
  * // },
61
61
  * // },
62
62
  * // ],
@@ -24,8 +24,7 @@ export interface GetRepositoryCommandOutput extends GetRepositoryOutput, __Metad
24
24
  /**
25
25
  * @public
26
26
  * <p>Returns information about a repository.</p>
27
- *
28
- * <note>
27
+ * <note>
29
28
  * <p>The description field for a repository accepts all HTML characters and all valid
30
29
  * Unicode characters. Applications that do not HTML-encode the description and display
31
30
  * it in a webpage can expose users to potentially malicious code. Make sure that you
@@ -83,8 +82,7 @@ export interface GetRepositoryCommandOutput extends GetRepositoryOutput, __Metad
83
82
  *
84
83
  * @throws {@link InvalidRepositoryNameException} (client fault)
85
84
  * <p>A specified repository name is not valid.</p>
86
- *
87
- * <note>
85
+ * <note>
88
86
  * <p>This exception occurs only when a specified repository name is not valid. Other
89
87
  * exceptions occur when a required repository parameter is missing, or when a
90
88
  * specified repository does not exist.</p>
@@ -46,7 +46,7 @@ export interface GetRepositoryTriggersCommandOutput extends GetRepositoryTrigger
46
46
  * // "STRING_VALUE",
47
47
  * // ],
48
48
  * // events: [ // RepositoryTriggerEventList // required
49
- * // "STRING_VALUE",
49
+ * // "all" || "updateReference" || "createReference" || "deleteReference",
50
50
  * // ],
51
51
  * // },
52
52
  * // ],
@@ -77,8 +77,7 @@ export interface GetRepositoryTriggersCommandOutput extends GetRepositoryTrigger
77
77
  *
78
78
  * @throws {@link InvalidRepositoryNameException} (client fault)
79
79
  * <p>A specified repository name is not valid.</p>
80
- *
81
- * <note>
80
+ * <note>
82
81
  * <p>This exception occurs only when a specified repository name is not valid. Other
83
82
  * exceptions occur when a required repository parameter is missing, or when a
84
83
  * specified repository does not exist.</p>
@@ -23,8 +23,8 @@ export interface ListApprovalRuleTemplatesCommandOutput extends ListApprovalRule
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Lists all approval rule templates in the specified AWS Region in your AWS account. If
27
- * an AWS Region is not specified, the AWS Region where you are signed in is used.</p>
26
+ * <p>Lists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If
27
+ * an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -75,8 +75,7 @@ export interface ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput e
75
75
  *
76
76
  * @throws {@link InvalidRepositoryNameException} (client fault)
77
77
  * <p>A specified repository name is not valid.</p>
78
- *
79
- * <note>
78
+ * <note>
80
79
  * <p>This exception occurs only when a specified repository name is not valid. Other
81
80
  * exceptions occur when a required repository parameter is missing, or when a
82
81
  * specified repository does not exist.</p>
@@ -71,8 +71,7 @@ export interface ListBranchesCommandOutput extends ListBranchesOutput, __Metadat
71
71
  *
72
72
  * @throws {@link InvalidRepositoryNameException} (client fault)
73
73
  * <p>A specified repository name is not valid.</p>
74
- *
75
- * <note>
74
+ * <note>
76
75
  * <p>This exception occurs only when a specified repository name is not valid. Other
77
76
  * exceptions occur when a required repository parameter is missing, or when a
78
77
  * specified repository does not exist.</p>
@@ -0,0 +1,153 @@
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 { ListFileCommitHistoryRequest, ListFileCommitHistoryResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListFileCommitHistoryCommand}.
14
+ */
15
+ export interface ListFileCommitHistoryCommandInput extends ListFileCommitHistoryRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListFileCommitHistoryCommand}.
21
+ */
22
+ export interface ListFileCommitHistoryCommandOutput extends ListFileCommitHistoryResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves a list of commits and changes to a specified file.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CodeCommitClient, ListFileCommitHistoryCommand } from "@aws-sdk/client-codecommit"; // ES Modules import
31
+ * // const { CodeCommitClient, ListFileCommitHistoryCommand } = require("@aws-sdk/client-codecommit"); // CommonJS import
32
+ * const client = new CodeCommitClient(config);
33
+ * const input = { // ListFileCommitHistoryRequest
34
+ * repositoryName: "STRING_VALUE", // required
35
+ * commitSpecifier: "STRING_VALUE",
36
+ * filePath: "STRING_VALUE", // required
37
+ * maxResults: Number("int"),
38
+ * nextToken: "STRING_VALUE",
39
+ * };
40
+ * const command = new ListFileCommitHistoryCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListFileCommitHistoryResponse
43
+ * // revisionDag: [ // RevisionDag // required
44
+ * // { // FileVersion
45
+ * // commit: { // Commit
46
+ * // commitId: "STRING_VALUE",
47
+ * // treeId: "STRING_VALUE",
48
+ * // parents: [ // ParentList
49
+ * // "STRING_VALUE",
50
+ * // ],
51
+ * // message: "STRING_VALUE",
52
+ * // author: { // UserInfo
53
+ * // name: "STRING_VALUE",
54
+ * // email: "STRING_VALUE",
55
+ * // date: "STRING_VALUE",
56
+ * // },
57
+ * // committer: {
58
+ * // name: "STRING_VALUE",
59
+ * // email: "STRING_VALUE",
60
+ * // date: "STRING_VALUE",
61
+ * // },
62
+ * // additionalData: "STRING_VALUE",
63
+ * // },
64
+ * // blobId: "STRING_VALUE",
65
+ * // path: "STRING_VALUE",
66
+ * // revisionChildren: [ // RevisionChildren
67
+ * // "STRING_VALUE",
68
+ * // ],
69
+ * // },
70
+ * // ],
71
+ * // nextToken: "STRING_VALUE",
72
+ * // };
73
+ *
74
+ * ```
75
+ *
76
+ * @param ListFileCommitHistoryCommandInput - {@link ListFileCommitHistoryCommandInput}
77
+ * @returns {@link ListFileCommitHistoryCommandOutput}
78
+ * @see {@link ListFileCommitHistoryCommandInput} for command's `input` shape.
79
+ * @see {@link ListFileCommitHistoryCommandOutput} for command's `response` shape.
80
+ * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape.
81
+ *
82
+ * @throws {@link CommitDoesNotExistException} (client fault)
83
+ * <p>The specified commit does not exist or no commit was specified, and the specified repository has no default branch.</p>
84
+ *
85
+ * @throws {@link CommitRequiredException} (client fault)
86
+ * <p>A commit was not specified.</p>
87
+ *
88
+ * @throws {@link EncryptionIntegrityChecksFailedException} (server fault)
89
+ * <p>An encryption integrity check failed.</p>
90
+ *
91
+ * @throws {@link EncryptionKeyAccessDeniedException} (client fault)
92
+ * <p>An encryption key could not be accessed.</p>
93
+ *
94
+ * @throws {@link EncryptionKeyDisabledException} (client fault)
95
+ * <p>The encryption key is disabled.</p>
96
+ *
97
+ * @throws {@link EncryptionKeyNotFoundException} (client fault)
98
+ * <p>No encryption key was found.</p>
99
+ *
100
+ * @throws {@link EncryptionKeyUnavailableException} (client fault)
101
+ * <p>The encryption key is not available.</p>
102
+ *
103
+ * @throws {@link InvalidCommitException} (client fault)
104
+ * <p>The specified commit is not valid.</p>
105
+ *
106
+ * @throws {@link InvalidContinuationTokenException} (client fault)
107
+ * <p>The specified continuation token is not valid.</p>
108
+ *
109
+ * @throws {@link InvalidMaxResultsException} (client fault)
110
+ * <p>The specified number of maximum results is not valid.</p>
111
+ *
112
+ * @throws {@link InvalidRepositoryNameException} (client fault)
113
+ * <p>A specified repository name is not valid.</p>
114
+ * <note>
115
+ * <p>This exception occurs only when a specified repository name is not valid. Other
116
+ * exceptions occur when a required repository parameter is missing, or when a
117
+ * specified repository does not exist.</p>
118
+ * </note>
119
+ *
120
+ * @throws {@link RepositoryDoesNotExistException} (client fault)
121
+ * <p>The specified repository does not exist.</p>
122
+ *
123
+ * @throws {@link RepositoryNameRequiredException} (client fault)
124
+ * <p>A repository name is required, but was not specified.</p>
125
+ *
126
+ * @throws {@link TipsDivergenceExceededException} (client fault)
127
+ * <p>The divergence between the tips of the provided commit specifiers is too great to determine whether there might be
128
+ * any merge conflicts. Locally compare the specifiers using <code>git diff</code> or a diff tool.</p>
129
+ *
130
+ * @throws {@link CodeCommitServiceException}
131
+ * <p>Base exception class for all service exceptions from CodeCommit service.</p>
132
+ *
133
+ */
134
+ export declare class ListFileCommitHistoryCommand extends $Command<ListFileCommitHistoryCommandInput, ListFileCommitHistoryCommandOutput, CodeCommitClientResolvedConfig> {
135
+ readonly input: ListFileCommitHistoryCommandInput;
136
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
137
+ /**
138
+ * @public
139
+ */
140
+ constructor(input: ListFileCommitHistoryCommandInput);
141
+ /**
142
+ * @internal
143
+ */
144
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CodeCommitClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListFileCommitHistoryCommandInput, ListFileCommitHistoryCommandOutput>;
145
+ /**
146
+ * @internal
147
+ */
148
+ private serialize;
149
+ /**
150
+ * @internal
151
+ */
152
+ private deserialize;
153
+ }
@@ -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 { ListPullRequestsInput, ListPullRequestsOutput } from "../models/models_0";
5
+ import { ListPullRequestsInput } from "../models/models_0";
6
+ import { ListPullRequestsOutput } from "../models/models_1";
6
7
  /**
7
8
  * @public
8
9
  */
@@ -34,7 +35,7 @@ export interface ListPullRequestsCommandOutput extends ListPullRequestsOutput, _
34
35
  * const input = { // ListPullRequestsInput
35
36
  * repositoryName: "STRING_VALUE", // required
36
37
  * authorArn: "STRING_VALUE",
37
- * pullRequestStatus: "STRING_VALUE",
38
+ * pullRequestStatus: "OPEN" || "CLOSED",
38
39
  * nextToken: "STRING_VALUE",
39
40
  * maxResults: Number("int"),
40
41
  * };
@@ -56,7 +57,7 @@ export interface ListPullRequestsCommandOutput extends ListPullRequestsOutput, _
56
57
  * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape.
57
58
  *
58
59
  * @throws {@link AuthorDoesNotExistException} (client fault)
59
- * <p>The specified Amazon Resource Name (ARN) does not exist in the AWS account.</p>
60
+ * <p>The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.</p>
60
61
  *
61
62
  * @throws {@link EncryptionIntegrityChecksFailedException} (server fault)
62
63
  * <p>An encryption integrity check failed.</p>
@@ -87,8 +88,7 @@ export interface ListPullRequestsCommandOutput extends ListPullRequestsOutput, _
87
88
  *
88
89
  * @throws {@link InvalidRepositoryNameException} (client fault)
89
90
  * <p>A specified repository name is not valid.</p>
90
- *
91
- * <note>
91
+ * <note>
92
92
  * <p>This exception occurs only when a specified repository name is not valid. Other
93
93
  * exceptions occur when a required repository parameter is missing, or when a
94
94
  * specified repository does not exist.</p>
@@ -32,8 +32,8 @@ export interface ListRepositoriesCommandOutput extends ListRepositoriesOutput, _
32
32
  * const client = new CodeCommitClient(config);
33
33
  * const input = { // ListRepositoriesInput
34
34
  * nextToken: "STRING_VALUE",
35
- * sortBy: "STRING_VALUE",
36
- * order: "STRING_VALUE",
35
+ * sortBy: "repositoryName" || "lastModifiedDate",
36
+ * order: "ascending" || "descending",
37
37
  * };
38
38
  * const command = new ListRepositoriesCommand(input);
39
39
  * const response = await client.send(command);
@@ -53,7 +53,7 @@ export interface ListRepositoriesForApprovalRuleTemplateCommandOutput extends Li
53
53
  * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape.
54
54
  *
55
55
  * @throws {@link ApprovalRuleTemplateDoesNotExistException} (client fault)
56
- * <p>The specified approval rule template does not exist. Verify that the name is correct and that you are signed in to the AWS Region where the template
56
+ * <p>The specified approval rule template does not exist. Verify that the name is correct and that you are signed in to the Amazon Web Services Region where the template
57
57
  * was created, and then try again.</p>
58
58
  *
59
59
  * @throws {@link ApprovalRuleTemplateNameRequiredException} (client fault)
@@ -76,9 +76,8 @@ export interface ListRepositoriesForApprovalRuleTemplateCommandOutput extends Li
76
76
  *
77
77
  * @throws {@link InvalidApprovalRuleTemplateNameException} (client fault)
78
78
  * <p>The name of the approval rule template is not valid. Template names must be between 1
79
- * and 100 valid characters in length. For more information about limits in AWS CodeCommit,
80
- * see <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html">AWS
81
- * CodeCommit User Guide</a>.</p>
79
+ * and 100 valid characters in length. For more information about limits in CodeCommit,
80
+ * see <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html">Quotas</a> in the <i>CodeCommit User Guide</i>.</p>
82
81
  *
83
82
  * @throws {@link InvalidContinuationTokenException} (client fault)
84
83
  * <p>The specified continuation token is not valid.</p>
@@ -23,8 +23,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS
27
- * CodeCommit. For a list of valid resources in AWS CodeCommit, see <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a> in the<i> AWS CodeCommit User
26
+ * <p>Gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a> in the<i> CodeCommit User
28
27
  * Guide</i>.</p>
29
28
  * @example
30
29
  * Use a bare-bones client and the command you need to make an API call.
@@ -55,25 +54,24 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
55
54
  *
56
55
  * @throws {@link InvalidRepositoryNameException} (client fault)
57
56
  * <p>A specified repository name is not valid.</p>
58
- *
59
- * <note>
57
+ * <note>
60
58
  * <p>This exception occurs only when a specified repository name is not valid. Other
61
59
  * exceptions occur when a required repository parameter is missing, or when a
62
60
  * specified repository does not exist.</p>
63
61
  * </note>
64
62
  *
65
63
  * @throws {@link InvalidResourceArnException} (client fault)
66
- * <p>The value for the resource ARN is not valid. For more information about resources in AWS CodeCommit, see
64
+ * <p>The value for the resource ARN is not valid. For more information about resources in CodeCommit, see
67
65
  * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a>
68
- * in the AWS CodeCommit User Guide.</p>
66
+ * in the CodeCommit User Guide.</p>
69
67
  *
70
68
  * @throws {@link RepositoryDoesNotExistException} (client fault)
71
69
  * <p>The specified repository does not exist.</p>
72
70
  *
73
71
  * @throws {@link ResourceArnRequiredException} (client fault)
74
- * <p>A valid Amazon Resource Name (ARN) for an AWS CodeCommit resource is required. For a list of valid resources in AWS CodeCommit, see
72
+ * <p>A valid Amazon Resource Name (ARN) for an CodeCommit resource is required. For a list of valid resources in CodeCommit, see
75
73
  * <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/auth-and-access-control-iam-access-control-identity-based.html#arn-formats">CodeCommit Resources and Operations</a>
76
- * in the AWS CodeCommit User Guide.</p>
74
+ * in the CodeCommit User Guide.</p>
77
75
  *
78
76
  * @throws {@link CodeCommitServiceException}
79
77
  * <p>Base exception class for all service exceptions from CodeCommit service.</p>
@@ -93,8 +93,7 @@ export interface MergeBranchesByFastForwardCommandOutput extends MergeBranchesBy
93
93
  *
94
94
  * @throws {@link InvalidRepositoryNameException} (client fault)
95
95
  * <p>A specified repository name is not valid.</p>
96
- *
97
- * <note>
96
+ * <note>
98
97
  * <p>This exception occurs only when a specified repository name is not valid. Other
99
98
  * exceptions occur when a required repository parameter is missing, or when a
100
99
  * specified repository does not exist.</p>
@@ -35,8 +35,8 @@ export interface MergeBranchesBySquashCommandOutput extends MergeBranchesBySquas
35
35
  * sourceCommitSpecifier: "STRING_VALUE", // required
36
36
  * destinationCommitSpecifier: "STRING_VALUE", // required
37
37
  * targetBranch: "STRING_VALUE",
38
- * conflictDetailLevel: "STRING_VALUE",
39
- * conflictResolutionStrategy: "STRING_VALUE",
38
+ * conflictDetailLevel: "FILE_LEVEL" || "LINE_LEVEL",
39
+ * conflictResolutionStrategy: "NONE" || "ACCEPT_SOURCE" || "ACCEPT_DESTINATION" || "AUTOMERGE",
40
40
  * authorName: "STRING_VALUE",
41
41
  * email: "STRING_VALUE",
42
42
  * commitMessage: "STRING_VALUE",
@@ -45,9 +45,9 @@ export interface MergeBranchesBySquashCommandOutput extends MergeBranchesBySquas
45
45
  * replaceContents: [ // ReplaceContentEntries
46
46
  * { // ReplaceContentEntry
47
47
  * filePath: "STRING_VALUE", // required
48
- * replacementType: "STRING_VALUE", // required
48
+ * replacementType: "KEEP_BASE" || "KEEP_SOURCE" || "KEEP_DESTINATION" || "USE_NEW_CONTENT", // required
49
49
  * content: "BLOB_VALUE",
50
- * fileMode: "STRING_VALUE",
50
+ * fileMode: "EXECUTABLE" || "NORMAL" || "SYMLINK",
51
51
  * },
52
52
  * ],
53
53
  * deleteFiles: [ // DeleteFileEntries
@@ -58,7 +58,7 @@ export interface MergeBranchesBySquashCommandOutput extends MergeBranchesBySquas
58
58
  * setFileModes: [ // SetFileModeEntries
59
59
  * { // SetFileModeEntry
60
60
  * filePath: "STRING_VALUE", // required
61
- * fileMode: "STRING_VALUE", // required
61
+ * fileMode: "EXECUTABLE" || "NORMAL" || "SYMLINK", // required
62
62
  * },
63
63
  * ],
64
64
  * },
@@ -162,8 +162,7 @@ export interface MergeBranchesBySquashCommandOutput extends MergeBranchesBySquas
162
162
  *
163
163
  * @throws {@link InvalidRepositoryNameException} (client fault)
164
164
  * <p>A specified repository name is not valid.</p>
165
- *
166
- * <note>
165
+ * <note>
167
166
  * <p>This exception occurs only when a specified repository name is not valid. Other
168
167
  * exceptions occur when a required repository parameter is missing, or when a
169
168
  * specified repository does not exist.</p>