Skip to content

Commit 7255fdb

Browse files
author
cibot
committed
Definitions Update connectors
1 parent 6d754b3 commit 7255fdb

File tree

1 file changed

+180
-17
lines changed

1 file changed

+180
-17
lines changed

alsdkdefs/apis/connectors/connectors.v1.yaml

Lines changed: 180 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ paths:
4646
in: path
4747
required: true
4848
description: Integration Connection ID
49+
- schema:
50+
type: boolean
51+
name: x-errorinfo
52+
in: header
53+
description: enforce modern error response format
4954
post:
5055
summary: Send notification to a given connection
5156
operationId: send_notification
@@ -68,9 +73,17 @@ paths:
6873
'403':
6974
description: Forbidden
7075
'404':
71-
description: Not Found
76+
description: Connection Not Found
77+
content:
78+
application/json:
79+
schema:
80+
$ref: '#/components/schemas/ConnectionNotFoundError'
7281
'410':
73-
description: Deleted
82+
description: Connection Deleted
83+
content:
84+
application/json:
85+
schema:
86+
$ref: '#/components/schemas/ConnectionDeletedError'
7487
security:
7588
- aims_request_authorizer: []
7689
x-amazon-apigateway-integration:
@@ -109,6 +122,11 @@ paths:
109122
in: path
110123
required: true
111124
description: Integration Connection ID
125+
- schema:
126+
type: boolean
127+
name: x-errorinfo
128+
in: header
129+
description: enforce modern error response format
112130
get:
113131
summary: Get Existing Connection Information
114132
tags: []
@@ -125,9 +143,17 @@ paths:
125143
'403':
126144
description: Forbidden
127145
'404':
128-
description: Not Found
146+
description: Connection Not Found
147+
content:
148+
application/json:
149+
schema:
150+
$ref: '#/components/schemas/ConnectionNotFoundError'
129151
'410':
130-
description: Deleted
152+
description: Connection Deleted
153+
content:
154+
application/json:
155+
schema:
156+
$ref: '#/components/schemas/ConnectionDeletedError'
131157
operationId: get_connection
132158
description: Returns Connection Information
133159
security:
@@ -176,12 +202,26 @@ paths:
176202
type: string
177203
modified:
178204
$ref: '#/components/schemas/ChangeRecord'
205+
'400':
206+
description: Bad Request
207+
content:
208+
application/json:
209+
schema:
210+
$ref: '#/components/schemas/ValidationError'
179211
'403':
180212
description: Forbidden
181213
'404':
182-
description: Not Found
214+
description: Connection Not Found
215+
content:
216+
application/json:
217+
schema:
218+
$ref: '#/components/schemas/ConnectionNotFoundError'
183219
'410':
184-
description: Deleted
220+
description: Connection Deleted
221+
content:
222+
application/json:
223+
schema:
224+
$ref: '#/components/schemas/ConnectionDeletedError'
185225
security:
186226
- aims_request_authorizer: []
187227
x-amazon-apigateway-integration:
@@ -211,6 +251,11 @@ paths:
211251
in: path
212252
required: true
213253
description: Integration Connection ID
254+
- schema:
255+
type: boolean
256+
name: x-errorinfo
257+
in: header
258+
description: enforce modern error response format
214259
get:
215260
summary: Get existing connection Information by its ID
216261
tags: []
@@ -228,9 +273,17 @@ paths:
228273
'403':
229274
description: Forbidden
230275
'404':
231-
description: Not Found
276+
description: Connection Not Found
277+
content:
278+
application/json:
279+
schema:
280+
$ref: '#/components/schemas/ConnectionNotFoundError'
232281
'410':
233-
description: Deleted
282+
description: Connection Deleted
283+
content:
284+
application/json:
285+
schema:
286+
$ref: '#/components/schemas/ConnectionDeletedError'
234287
operationId: get_connection_by_id
235288
description: Returns Connection Information
236289
security:
@@ -247,6 +300,11 @@ paths:
247300
in: path
248301
required: true
249302
description: AIMS Account ID
303+
- schema:
304+
type: boolean
305+
name: x-errorinfo
306+
in: header
307+
description: enforce modern error response format
250308
get:
251309
summary: List all account's connections
252310
tags: []
@@ -294,12 +352,14 @@ paths:
294352
oneOf:
295353
- $ref: '#/components/schemas/WebhookConnection'
296354
- $ref: '#/components/schemas/EmailConnection'
355+
'400':
356+
description: Bad Request
357+
content:
358+
application/json:
359+
schema:
360+
$ref: '#/components/schemas/ValidationError'
297361
'403':
298362
description: Forbidden
299-
'404':
300-
description: Not Found
301-
'409':
302-
description: Conflict
303363
security:
304364
- aims_request_authorizer: []
305365
x-amazon-apigateway-integration:
@@ -337,6 +397,11 @@ paths:
337397
in: path
338398
required: true
339399
description: Connection Target ID
400+
- schema:
401+
type: boolean
402+
name: x-errorinfo
403+
in: header
404+
description: enforce modern error response format
340405
get:
341406
summary: Get Existing Connection Target Information
342407
tags: []
@@ -351,7 +416,11 @@ paths:
351416
'403':
352417
description: Forbidden
353418
'404':
354-
description: Not Found
419+
description: Connection Target Not Found
420+
content:
421+
application/json:
422+
schema:
423+
$ref: '#/components/schemas/ConnectionTargetNotFoundError'
355424
operationId: get_connection_target
356425
description: Returns Connection Target Information
357426
security:
@@ -386,7 +455,11 @@ paths:
386455
'403':
387456
description: Forbidden
388457
'404':
389-
description: Not Found
458+
description: Connection Target Not Found
459+
content:
460+
application/json:
461+
schema:
462+
$ref: '#/components/schemas/ConnectionTargetNotFoundError'
390463
security:
391464
- aims_request_authorizer: []
392465
x-amazon-apigateway-integration:
@@ -414,6 +487,11 @@ paths:
414487
in: path
415488
required: true
416489
description: AIMS Account ID
490+
- schema:
491+
type: boolean
492+
name: x-errorinfo
493+
in: header
494+
description: enforce modern error response format
417495
get:
418496
summary: List all account's connection targets
419497
tags: []
@@ -448,10 +526,14 @@ paths:
448526
application/json:
449527
schema:
450528
type: object
529+
'400':
530+
description: Bad Request
531+
content:
532+
application/json:
533+
schema:
534+
$ref: '#/components/schemas/ValidationError'
451535
'403':
452536
description: Forbidden
453-
'404':
454-
description: Not Found
455537
security:
456538
- aims_request_authorizer: []
457539
x-amazon-apigateway-integration:
@@ -537,7 +619,11 @@ paths:
537619
'403':
538620
description: Forbidden
539621
'404':
540-
description: Not Found
622+
description: Connection Target Not Found
623+
content:
624+
application/json:
625+
schema:
626+
$ref: '#/components/schemas/ConnectionTargetNotFoundError'
541627
operationId: get_connection_target_full
542628
description: Returns Connection Target Full Information
543629
security:
@@ -835,6 +921,12 @@ paths:
835921
type: array
836922
items:
837923
$ref: '#/components/schemas/ConnectionTarget'
924+
'409':
925+
description: Conflict
926+
content:
927+
application/json:
928+
schema:
929+
$ref: '#/components/schemas/MigrationError'
838930
description: Migrates accounts connections to connection targets
839931
security:
840932
- aims_request_authorizer: []
@@ -1388,6 +1480,77 @@ components:
13881480
routing_key:
13891481
type: string
13901482
description: Connection Target schema
1483+
ConnectionNotFoundError:
1484+
title: ConnectionNotFoundError
1485+
properties:
1486+
errorinfo:
1487+
type: object
1488+
properties:
1489+
code:
1490+
type: string
1491+
enum:
1492+
- connection_not_found
1493+
error_id:
1494+
type: string
1495+
description:
1496+
type: string
1497+
ConnectionDeletedError:
1498+
title: ConnectionDeletedError
1499+
properties:
1500+
errorinfo:
1501+
type: object
1502+
properties:
1503+
code:
1504+
type: string
1505+
enum:
1506+
- connection_deleted
1507+
error_id:
1508+
type: string
1509+
description:
1510+
type: string
1511+
ConnectionTargetNotFoundError:
1512+
title: ConnectionTargetNotFoundError
1513+
properties:
1514+
errorinfo:
1515+
type: object
1516+
properties:
1517+
code:
1518+
type: string
1519+
enum:
1520+
- connection_target_not_found
1521+
error_id:
1522+
type: string
1523+
description:
1524+
type: string
1525+
MigrationError:
1526+
title: MigrationError
1527+
properties:
1528+
errorinfo:
1529+
type: object
1530+
properties:
1531+
code:
1532+
type: string
1533+
enum:
1534+
- already_migrated
1535+
- migration_conflict
1536+
error_id:
1537+
type: string
1538+
description:
1539+
type: string
1540+
ValidationError:
1541+
title: ValidationError
1542+
properties:
1543+
errorinfo:
1544+
type: object
1545+
properties:
1546+
code:
1547+
type: string
1548+
enum:
1549+
- invalid_object
1550+
error_id:
1551+
type: string
1552+
description:
1553+
type: string
13911554
securitySchemes:
13921555
aims_request_authorizer:
13931556
type: apiKey

0 commit comments

Comments
 (0)