1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class CodeGuruReviewer extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: CodeGuruReviewer.Types.ClientConfiguration)
|
13 | config: Config & CodeGuruReviewer.Types.ClientConfiguration;
|
14 | /**
|
15 | * Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request. You can view recommendations in the AWS CodeCommit repository. You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
|
16 | */
|
17 | associateRepository(params: CodeGuruReviewer.Types.AssociateRepositoryRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.AssociateRepositoryResponse) => void): Request<CodeGuruReviewer.Types.AssociateRepositoryResponse, AWSError>;
|
18 | /**
|
19 | * Associates an AWS CodeCommit repository with Amazon CodeGuru Reviewer. When you associate an AWS CodeCommit repository with Amazon CodeGuru Reviewer, Amazon CodeGuru Reviewer will provide recommendations for each pull request. You can view recommendations in the AWS CodeCommit repository. You can associate a GitHub repository using the Amazon CodeGuru Reviewer console.
|
20 | */
|
21 | associateRepository(callback?: (err: AWSError, data: CodeGuruReviewer.Types.AssociateRepositoryResponse) => void): Request<CodeGuruReviewer.Types.AssociateRepositoryResponse, AWSError>;
|
22 | /**
|
23 | * Describes a repository association.
|
24 | */
|
25 | describeRepositoryAssociation(params: CodeGuruReviewer.Types.DescribeRepositoryAssociationRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.DescribeRepositoryAssociationResponse) => void): Request<CodeGuruReviewer.Types.DescribeRepositoryAssociationResponse, AWSError>;
|
26 | /**
|
27 | * Describes a repository association.
|
28 | */
|
29 | describeRepositoryAssociation(callback?: (err: AWSError, data: CodeGuruReviewer.Types.DescribeRepositoryAssociationResponse) => void): Request<CodeGuruReviewer.Types.DescribeRepositoryAssociationResponse, AWSError>;
|
30 | /**
|
31 | * Removes the association between Amazon CodeGuru Reviewer and a repository.
|
32 | */
|
33 | disassociateRepository(params: CodeGuruReviewer.Types.DisassociateRepositoryRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.DisassociateRepositoryResponse) => void): Request<CodeGuruReviewer.Types.DisassociateRepositoryResponse, AWSError>;
|
34 | /**
|
35 | * Removes the association between Amazon CodeGuru Reviewer and a repository.
|
36 | */
|
37 | disassociateRepository(callback?: (err: AWSError, data: CodeGuruReviewer.Types.DisassociateRepositoryResponse) => void): Request<CodeGuruReviewer.Types.DisassociateRepositoryResponse, AWSError>;
|
38 | /**
|
39 | * Lists repository associations. You can optionally filter on one or more of the following recommendation properties: provider types, states, names, and owners.
|
40 | */
|
41 | listRepositoryAssociations(params: CodeGuruReviewer.Types.ListRepositoryAssociationsRequest, callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListRepositoryAssociationsResponse) => void): Request<CodeGuruReviewer.Types.ListRepositoryAssociationsResponse, AWSError>;
|
42 | /**
|
43 | * Lists repository associations. You can optionally filter on one or more of the following recommendation properties: provider types, states, names, and owners.
|
44 | */
|
45 | listRepositoryAssociations(callback?: (err: AWSError, data: CodeGuruReviewer.Types.ListRepositoryAssociationsResponse) => void): Request<CodeGuruReviewer.Types.ListRepositoryAssociationsResponse, AWSError>;
|
46 | }
|
47 | declare namespace CodeGuruReviewer {
|
48 | export type Arn = string;
|
49 | export interface AssociateRepositoryRequest {
|
50 | |
51 |
|
52 |
|
53 | Repository: Repository;
|
54 | |
55 |
|
56 |
|
57 | ClientRequestToken?: ClientRequestToken;
|
58 | }
|
59 | export interface AssociateRepositoryResponse {
|
60 | |
61 |
|
62 |
|
63 | RepositoryAssociation?: RepositoryAssociation;
|
64 | }
|
65 | export type AssociationId = string;
|
66 | export type ClientRequestToken = string;
|
67 | export interface CodeCommitRepository {
|
68 | |
69 |
|
70 |
|
71 | Name: Name;
|
72 | }
|
73 | export interface DescribeRepositoryAssociationRequest {
|
74 | |
75 |
|
76 |
|
77 | AssociationArn: Arn;
|
78 | }
|
79 | export interface DescribeRepositoryAssociationResponse {
|
80 | |
81 |
|
82 |
|
83 | RepositoryAssociation?: RepositoryAssociation;
|
84 | }
|
85 | export interface DisassociateRepositoryRequest {
|
86 | |
87 |
|
88 |
|
89 | AssociationArn: Arn;
|
90 | }
|
91 | export interface DisassociateRepositoryResponse {
|
92 | |
93 |
|
94 |
|
95 | RepositoryAssociation?: RepositoryAssociation;
|
96 | }
|
97 | export interface ListRepositoryAssociationsRequest {
|
98 | |
99 |
|
100 |
|
101 | ProviderTypes?: ProviderTypes;
|
102 | |
103 |
|
104 |
|
105 | States?: RepositoryAssociationStates;
|
106 | |
107 |
|
108 |
|
109 | Names?: Names;
|
110 | |
111 |
|
112 |
|
113 | Owners?: Owners;
|
114 | |
115 |
|
116 |
|
117 | MaxResults?: MaxResults;
|
118 | |
119 |
|
120 |
|
121 | NextToken?: NextToken;
|
122 | }
|
123 | export interface ListRepositoryAssociationsResponse {
|
124 | |
125 |
|
126 |
|
127 | RepositoryAssociationSummaries?: RepositoryAssociationSummaries;
|
128 | |
129 |
|
130 |
|
131 | NextToken?: NextToken;
|
132 | }
|
133 | export type MaxResults = number;
|
134 | export type Name = string;
|
135 | export type Names = Name[];
|
136 | export type NextToken = string;
|
137 | export type Owner = string;
|
138 | export type Owners = Owner[];
|
139 | export type ProviderType = "CodeCommit"|"GitHub"|string;
|
140 | export type ProviderTypes = ProviderType[];
|
141 | export interface Repository {
|
142 | |
143 |
|
144 |
|
145 | CodeCommit?: CodeCommitRepository;
|
146 | }
|
147 | export interface RepositoryAssociation {
|
148 | |
149 |
|
150 |
|
151 | AssociationId?: AssociationId;
|
152 | |
153 |
|
154 |
|
155 | AssociationArn?: Arn;
|
156 | |
157 |
|
158 |
|
159 | Name?: Name;
|
160 | |
161 |
|
162 |
|
163 | Owner?: Owner;
|
164 | |
165 |
|
166 |
|
167 | ProviderType?: ProviderType;
|
168 | |
169 |
|
170 |
|
171 | State?: RepositoryAssociationState;
|
172 | |
173 |
|
174 |
|
175 | StateReason?: StateReason;
|
176 | |
177 |
|
178 |
|
179 | LastUpdatedTimeStamp?: TimeStamp;
|
180 | |
181 |
|
182 |
|
183 | CreatedTimeStamp?: TimeStamp;
|
184 | }
|
185 | export type RepositoryAssociationState = "Associated"|"Associating"|"Failed"|"Disassociating"|string;
|
186 | export type RepositoryAssociationStates = RepositoryAssociationState[];
|
187 | export type RepositoryAssociationSummaries = RepositoryAssociationSummary[];
|
188 | export interface RepositoryAssociationSummary {
|
189 | |
190 |
|
191 |
|
192 | AssociationArn?: Arn;
|
193 | |
194 |
|
195 |
|
196 | LastUpdatedTimeStamp?: TimeStamp;
|
197 | |
198 |
|
199 |
|
200 | AssociationId?: AssociationId;
|
201 | |
202 |
|
203 |
|
204 | Name?: Name;
|
205 | |
206 |
|
207 |
|
208 | Owner?: Owner;
|
209 | |
210 |
|
211 |
|
212 | ProviderType?: ProviderType;
|
213 | |
214 |
|
215 |
|
216 | State?: RepositoryAssociationState;
|
217 | }
|
218 | export type StateReason = string;
|
219 | export type TimeStamp = Date;
|
220 | |
221 |
|
222 |
|
223 | export type apiVersion = "2019-09-19"|"latest"|string;
|
224 | export interface ClientApiVersions {
|
225 | |
226 |
|
227 |
|
228 | apiVersion?: apiVersion;
|
229 | }
|
230 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
231 | |
232 |
|
233 |
|
234 | export import Types = CodeGuruReviewer;
|
235 | }
|
236 | export = CodeGuruReviewer;
|