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 CodeStarconnections extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: CodeStarconnections.Types.ClientConfiguration)
|
13 | config: Config & CodeStarconnections.Types.ClientConfiguration;
|
14 | /**
|
15 | * 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.
|
16 | */
|
17 | createConnection(params: CodeStarconnections.Types.CreateConnectionInput, callback?: (err: AWSError, data: CodeStarconnections.Types.CreateConnectionOutput) => void): Request<CodeStarconnections.Types.CreateConnectionOutput, AWSError>;
|
18 | /**
|
19 | * 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.
|
20 | */
|
21 | createConnection(callback?: (err: AWSError, data: CodeStarconnections.Types.CreateConnectionOutput) => void): Request<CodeStarconnections.Types.CreateConnectionOutput, AWSError>;
|
22 | /**
|
23 | * The connection to be deleted.
|
24 | */
|
25 | deleteConnection(params: CodeStarconnections.Types.DeleteConnectionInput, callback?: (err: AWSError, data: CodeStarconnections.Types.DeleteConnectionOutput) => void): Request<CodeStarconnections.Types.DeleteConnectionOutput, AWSError>;
|
26 | /**
|
27 | * The connection to be deleted.
|
28 | */
|
29 | deleteConnection(callback?: (err: AWSError, data: CodeStarconnections.Types.DeleteConnectionOutput) => void): Request<CodeStarconnections.Types.DeleteConnectionOutput, AWSError>;
|
30 | /**
|
31 | * Returns the connection ARN and details such as status, owner, and provider type.
|
32 | */
|
33 | getConnection(params: CodeStarconnections.Types.GetConnectionInput, callback?: (err: AWSError, data: CodeStarconnections.Types.GetConnectionOutput) => void): Request<CodeStarconnections.Types.GetConnectionOutput, AWSError>;
|
34 | /**
|
35 | * Returns the connection ARN and details such as status, owner, and provider type.
|
36 | */
|
37 | getConnection(callback?: (err: AWSError, data: CodeStarconnections.Types.GetConnectionOutput) => void): Request<CodeStarconnections.Types.GetConnectionOutput, AWSError>;
|
38 | /**
|
39 | * Lists the connections associated with your account.
|
40 | */
|
41 | listConnections(params: CodeStarconnections.Types.ListConnectionsInput, callback?: (err: AWSError, data: CodeStarconnections.Types.ListConnectionsOutput) => void): Request<CodeStarconnections.Types.ListConnectionsOutput, AWSError>;
|
42 | /**
|
43 | * Lists the connections associated with your account.
|
44 | */
|
45 | listConnections(callback?: (err: AWSError, data: CodeStarconnections.Types.ListConnectionsOutput) => void): Request<CodeStarconnections.Types.ListConnectionsOutput, AWSError>;
|
46 | }
|
47 | declare namespace CodeStarconnections {
|
48 | export type AccountId = string;
|
49 | export interface Connection {
|
50 | |
51 |
|
52 |
|
53 | ConnectionName?: ConnectionName;
|
54 | |
55 |
|
56 |
|
57 | ConnectionArn?: ConnectionArn;
|
58 | |
59 |
|
60 |
|
61 | ProviderType?: ProviderType;
|
62 | |
63 |
|
64 |
|
65 | OwnerAccountId?: AccountId;
|
66 | |
67 |
|
68 |
|
69 | ConnectionStatus?: ConnectionStatus;
|
70 | }
|
71 | export type ConnectionArn = string;
|
72 | export type ConnectionList = Connection[];
|
73 | export type ConnectionName = string;
|
74 | export type ConnectionStatus = "PENDING"|"AVAILABLE"|"ERROR"|string;
|
75 | export interface CreateConnectionInput {
|
76 | |
77 |
|
78 |
|
79 | ProviderType: ProviderType;
|
80 | |
81 |
|
82 |
|
83 | ConnectionName: ConnectionName;
|
84 | }
|
85 | export interface CreateConnectionOutput {
|
86 | |
87 |
|
88 |
|
89 | ConnectionArn: ConnectionArn;
|
90 | }
|
91 | export interface DeleteConnectionInput {
|
92 | |
93 |
|
94 |
|
95 | ConnectionArn: ConnectionArn;
|
96 | }
|
97 | export interface DeleteConnectionOutput {
|
98 | }
|
99 | export interface GetConnectionInput {
|
100 | |
101 |
|
102 |
|
103 | ConnectionArn: ConnectionArn;
|
104 | }
|
105 | export interface GetConnectionOutput {
|
106 | |
107 |
|
108 |
|
109 | Connection?: Connection;
|
110 | }
|
111 | export interface ListConnectionsInput {
|
112 | |
113 |
|
114 |
|
115 | ProviderTypeFilter?: ProviderType;
|
116 | |
117 |
|
118 |
|
119 | MaxResults?: MaxResults;
|
120 | |
121 |
|
122 |
|
123 | NextToken?: NextToken;
|
124 | }
|
125 | export interface ListConnectionsOutput {
|
126 | |
127 |
|
128 |
|
129 | Connections?: ConnectionList;
|
130 | |
131 |
|
132 |
|
133 | NextToken?: NextToken;
|
134 | }
|
135 | export type MaxResults = number;
|
136 | export type NextToken = string;
|
137 | export type ProviderType = "Bitbucket"|string;
|
138 | |
139 |
|
140 |
|
141 | export type apiVersion = "2019-12-01"|"latest"|string;
|
142 | export interface ClientApiVersions {
|
143 | |
144 |
|
145 |
|
146 | apiVersion?: apiVersion;
|
147 | }
|
148 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
149 | |
150 |
|
151 |
|
152 | export import Types = CodeStarconnections;
|
153 | }
|
154 | export = CodeStarconnections;
|