codestarconnections.d.ts
10.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
import {Request} from '../lib/request';
import {Response} from '../lib/response';
import {AWSError} from '../lib/error';
import {Service} from '../lib/service';
import {ServiceConfigurationOptions} from '../lib/service';
import {ConfigBase as Config} from '../lib/config';
interface Blob {}
declare class CodeStarconnections extends Service {
/**
* Constructs a service object. This object has one method for each API operation.
*/
constructor(options?: CodeStarconnections.Types.ClientConfiguration)
config: Config & CodeStarconnections.Types.ClientConfiguration;
/**
* Creates a connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.
*/
createConnection(params: CodeStarconnections.Types.CreateConnectionInput, callback?: (err: AWSError, data: CodeStarconnections.Types.CreateConnectionOutput) => void): Request<CodeStarconnections.Types.CreateConnectionOutput, AWSError>;
/**
* Creates a connection that can then be given to other AWS services like CodePipeline so that it can access third-party code repositories. The connection is in pending status until the third-party connection handshake is completed from the console.
*/
createConnection(callback?: (err: AWSError, data: CodeStarconnections.Types.CreateConnectionOutput) => void): Request<CodeStarconnections.Types.CreateConnectionOutput, AWSError>;
/**
* The connection to be deleted.
*/
deleteConnection(params: CodeStarconnections.Types.DeleteConnectionInput, callback?: (err: AWSError, data: CodeStarconnections.Types.DeleteConnectionOutput) => void): Request<CodeStarconnections.Types.DeleteConnectionOutput, AWSError>;
/**
* The connection to be deleted.
*/
deleteConnection(callback?: (err: AWSError, data: CodeStarconnections.Types.DeleteConnectionOutput) => void): Request<CodeStarconnections.Types.DeleteConnectionOutput, AWSError>;
/**
* Returns the connection ARN and details such as status, owner, and provider type.
*/
getConnection(params: CodeStarconnections.Types.GetConnectionInput, callback?: (err: AWSError, data: CodeStarconnections.Types.GetConnectionOutput) => void): Request<CodeStarconnections.Types.GetConnectionOutput, AWSError>;
/**
* Returns the connection ARN and details such as status, owner, and provider type.
*/
getConnection(callback?: (err: AWSError, data: CodeStarconnections.Types.GetConnectionOutput) => void): Request<CodeStarconnections.Types.GetConnectionOutput, AWSError>;
/**
* Lists the connections associated with your account.
*/
listConnections(params: CodeStarconnections.Types.ListConnectionsInput, callback?: (err: AWSError, data: CodeStarconnections.Types.ListConnectionsOutput) => void): Request<CodeStarconnections.Types.ListConnectionsOutput, AWSError>;
/**
* Lists the connections associated with your account.
*/
listConnections(callback?: (err: AWSError, data: CodeStarconnections.Types.ListConnectionsOutput) => void): Request<CodeStarconnections.Types.ListConnectionsOutput, AWSError>;
/**
* Gets the set of key-value pairs (metadata) that are used to manage the resource.
*/
listTagsForResource(params: CodeStarconnections.Types.ListTagsForResourceInput, callback?: (err: AWSError, data: CodeStarconnections.Types.ListTagsForResourceOutput) => void): Request<CodeStarconnections.Types.ListTagsForResourceOutput, AWSError>;
/**
* Gets the set of key-value pairs (metadata) that are used to manage the resource.
*/
listTagsForResource(callback?: (err: AWSError, data: CodeStarconnections.Types.ListTagsForResourceOutput) => void): Request<CodeStarconnections.Types.ListTagsForResourceOutput, AWSError>;
/**
* Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
*/
tagResource(params: CodeStarconnections.Types.TagResourceInput, callback?: (err: AWSError, data: CodeStarconnections.Types.TagResourceOutput) => void): Request<CodeStarconnections.Types.TagResourceOutput, AWSError>;
/**
* Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
*/
tagResource(callback?: (err: AWSError, data: CodeStarconnections.Types.TagResourceOutput) => void): Request<CodeStarconnections.Types.TagResourceOutput, AWSError>;
/**
* Removes tags from an AWS resource.
*/
untagResource(params: CodeStarconnections.Types.UntagResourceInput, callback?: (err: AWSError, data: CodeStarconnections.Types.UntagResourceOutput) => void): Request<CodeStarconnections.Types.UntagResourceOutput, AWSError>;
/**
* Removes tags from an AWS resource.
*/
untagResource(callback?: (err: AWSError, data: CodeStarconnections.Types.UntagResourceOutput) => void): Request<CodeStarconnections.Types.UntagResourceOutput, AWSError>;
}
declare namespace CodeStarconnections {
export type AccountId = string;
export type AmazonResourceName = string;
export interface Connection {
/**
* The name of the connection. Connection names must be unique in an AWS user account.
*/
ConnectionName?: ConnectionName;
/**
* The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between AWS services. The ARN is never reused if the connection is deleted.
*/
ConnectionArn?: ConnectionArn;
/**
* The name of the external provider where your third-party code repository is configured. Currently, the valid provider type is Bitbucket.
*/
ProviderType?: ProviderType;
/**
* The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
*/
OwnerAccountId?: AccountId;
/**
* The current status of the connection.
*/
ConnectionStatus?: ConnectionStatus;
}
export type ConnectionArn = string;
export type ConnectionList = Connection[];
export type ConnectionName = string;
export type ConnectionStatus = "PENDING"|"AVAILABLE"|"ERROR"|string;
export interface CreateConnectionInput {
/**
* The name of the external provider where your third-party code repository is configured. Currently, the valid provider type is Bitbucket.
*/
ProviderType: ProviderType;
/**
* The name of the connection to be created. The name must be unique in the calling AWS account.
*/
ConnectionName: ConnectionName;
/**
* The key-value pair to use when tagging the resource.
*/
Tags?: TagList;
}
export interface CreateConnectionOutput {
/**
* The Amazon Resource Name (ARN) of the connection to be created. The ARN is used as the connection reference when the connection is shared between AWS services. The ARN is never reused if the connection is deleted.
*/
ConnectionArn: ConnectionArn;
/**
* Specifies the tags applied to the resource.
*/
Tags?: TagList;
}
export interface DeleteConnectionInput {
/**
* The Amazon Resource Name (ARN) of the connection to be deleted. The ARN is never reused if the connection is deleted.
*/
ConnectionArn: ConnectionArn;
}
export interface DeleteConnectionOutput {
}
export interface GetConnectionInput {
/**
* The Amazon Resource Name (ARN) of a connection.
*/
ConnectionArn: ConnectionArn;
}
export interface GetConnectionOutput {
/**
* The connection details, such as status, owner, and provider type.
*/
Connection?: Connection;
}
export interface ListConnectionsInput {
/**
* Filters the list of connections to those associated with a specified provider, such as Bitbucket.
*/
ProviderTypeFilter?: ProviderType;
/**
* The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value.
*/
MaxResults?: MaxResults;
/**
* The token that was returned from the previous ListConnections call, which can be used to return the next set of connections in the list.
*/
NextToken?: NextToken;
}
export interface ListConnectionsOutput {
/**
* A list of connections and the details for each connection, such as status, owner, and provider type.
*/
Connections?: ConnectionList;
/**
* A token that can be used in the next ListConnections call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.
*/
NextToken?: NextToken;
}
export interface ListTagsForResourceInput {
/**
* The Amazon Resource Name (ARN) of the resource for which you want to get information about tags, if any.
*/
ResourceArn: AmazonResourceName;
}
export interface ListTagsForResourceOutput {
/**
* A list of tag key and value pairs associated with the specified resource.
*/
Tags?: TagList;
}
export type MaxResults = number;
export type NextToken = string;
export type ProviderType = "Bitbucket"|string;
export interface Tag {
/**
* The tag's key.
*/
Key: TagKey;
/**
* The tag's value.
*/
Value: TagValue;
}
export type TagKey = string;
export type TagKeyList = TagKey[];
export type TagList = Tag[];
export interface TagResourceInput {
/**
* The Amazon Resource Name (ARN) of the resource to which you want to add or update tags.
*/
ResourceArn: AmazonResourceName;
/**
* The tags you want to modify or add to the resource.
*/
Tags: TagList;
}
export interface TagResourceOutput {
}
export type TagValue = string;
export interface UntagResourceInput {
/**
* The Amazon Resource Name (ARN) of the resource to remove tags from.
*/
ResourceArn: AmazonResourceName;
/**
* The list of keys for the tags to be removed from the resource.
*/
TagKeys: TagKeyList;
}
export interface UntagResourceOutput {
}
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2019-12-01"|"latest"|string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
apiVersion?: apiVersion;
}
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
/**
* Contains interfaces for use with the CodeStarconnections client.
*/
export import Types = CodeStarconnections;
}
export = CodeStarconnections;