UNPKG

30.7 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {WaiterConfiguration} from '../lib/service';
6import {ServiceConfigurationOptions} from '../lib/service';
7import {ConfigBase as Config} from '../lib/config';
8interface Blob {}
9declare class Schemas extends Service {
10 /**
11 * Constructs a service object. This object has one method for each API operation.
12 */
13 constructor(options?: Schemas.Types.ClientConfiguration)
14 config: Config & Schemas.Types.ClientConfiguration;
15 /**
16 * Creates a discoverer.
17 */
18 createDiscoverer(params: Schemas.Types.CreateDiscovererRequest, callback?: (err: AWSError, data: Schemas.Types.CreateDiscovererResponse) => void): Request<Schemas.Types.CreateDiscovererResponse, AWSError>;
19 /**
20 * Creates a discoverer.
21 */
22 createDiscoverer(callback?: (err: AWSError, data: Schemas.Types.CreateDiscovererResponse) => void): Request<Schemas.Types.CreateDiscovererResponse, AWSError>;
23 /**
24 * Creates a registry.
25 */
26 createRegistry(params: Schemas.Types.CreateRegistryRequest, callback?: (err: AWSError, data: Schemas.Types.CreateRegistryResponse) => void): Request<Schemas.Types.CreateRegistryResponse, AWSError>;
27 /**
28 * Creates a registry.
29 */
30 createRegistry(callback?: (err: AWSError, data: Schemas.Types.CreateRegistryResponse) => void): Request<Schemas.Types.CreateRegistryResponse, AWSError>;
31 /**
32 * Creates a schema definition.
33 */
34 createSchema(params: Schemas.Types.CreateSchemaRequest, callback?: (err: AWSError, data: Schemas.Types.CreateSchemaResponse) => void): Request<Schemas.Types.CreateSchemaResponse, AWSError>;
35 /**
36 * Creates a schema definition.
37 */
38 createSchema(callback?: (err: AWSError, data: Schemas.Types.CreateSchemaResponse) => void): Request<Schemas.Types.CreateSchemaResponse, AWSError>;
39 /**
40 * Deletes a discoverer.
41 */
42 deleteDiscoverer(params: Schemas.Types.DeleteDiscovererRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
43 /**
44 * Deletes a discoverer.
45 */
46 deleteDiscoverer(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
47 /**
48 * Deletes a Registry.
49 */
50 deleteRegistry(params: Schemas.Types.DeleteRegistryRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
51 /**
52 * Deletes a Registry.
53 */
54 deleteRegistry(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
55 /**
56 * Delete a schema definition.
57 */
58 deleteSchema(params: Schemas.Types.DeleteSchemaRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
59 /**
60 * Delete a schema definition.
61 */
62 deleteSchema(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
63 /**
64 * Delete the schema version definition
65 */
66 deleteSchemaVersion(params: Schemas.Types.DeleteSchemaVersionRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
67 /**
68 * Delete the schema version definition
69 */
70 deleteSchemaVersion(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
71 /**
72 * Describe the code binding URI.
73 */
74 describeCodeBinding(params: Schemas.Types.DescribeCodeBindingRequest, callback?: (err: AWSError, data: Schemas.Types.DescribeCodeBindingResponse) => void): Request<Schemas.Types.DescribeCodeBindingResponse, AWSError>;
75 /**
76 * Describe the code binding URI.
77 */
78 describeCodeBinding(callback?: (err: AWSError, data: Schemas.Types.DescribeCodeBindingResponse) => void): Request<Schemas.Types.DescribeCodeBindingResponse, AWSError>;
79 /**
80 * Describes the discoverer.
81 */
82 describeDiscoverer(params: Schemas.Types.DescribeDiscovererRequest, callback?: (err: AWSError, data: Schemas.Types.DescribeDiscovererResponse) => void): Request<Schemas.Types.DescribeDiscovererResponse, AWSError>;
83 /**
84 * Describes the discoverer.
85 */
86 describeDiscoverer(callback?: (err: AWSError, data: Schemas.Types.DescribeDiscovererResponse) => void): Request<Schemas.Types.DescribeDiscovererResponse, AWSError>;
87 /**
88 * Describes the registry.
89 */
90 describeRegistry(params: Schemas.Types.DescribeRegistryRequest, callback?: (err: AWSError, data: Schemas.Types.DescribeRegistryResponse) => void): Request<Schemas.Types.DescribeRegistryResponse, AWSError>;
91 /**
92 * Describes the registry.
93 */
94 describeRegistry(callback?: (err: AWSError, data: Schemas.Types.DescribeRegistryResponse) => void): Request<Schemas.Types.DescribeRegistryResponse, AWSError>;
95 /**
96 * Retrieve the schema definition.
97 */
98 describeSchema(params: Schemas.Types.DescribeSchemaRequest, callback?: (err: AWSError, data: Schemas.Types.DescribeSchemaResponse) => void): Request<Schemas.Types.DescribeSchemaResponse, AWSError>;
99 /**
100 * Retrieve the schema definition.
101 */
102 describeSchema(callback?: (err: AWSError, data: Schemas.Types.DescribeSchemaResponse) => void): Request<Schemas.Types.DescribeSchemaResponse, AWSError>;
103 /**
104 * Get the code binding source URI.
105 */
106 getCodeBindingSource(params: Schemas.Types.GetCodeBindingSourceRequest, callback?: (err: AWSError, data: Schemas.Types.GetCodeBindingSourceResponse) => void): Request<Schemas.Types.GetCodeBindingSourceResponse, AWSError>;
107 /**
108 * Get the code binding source URI.
109 */
110 getCodeBindingSource(callback?: (err: AWSError, data: Schemas.Types.GetCodeBindingSourceResponse) => void): Request<Schemas.Types.GetCodeBindingSourceResponse, AWSError>;
111 /**
112 * Get the discovered schema that was generated based on sampled events.
113 */
114 getDiscoveredSchema(params: Schemas.Types.GetDiscoveredSchemaRequest, callback?: (err: AWSError, data: Schemas.Types.GetDiscoveredSchemaResponse) => void): Request<Schemas.Types.GetDiscoveredSchemaResponse, AWSError>;
115 /**
116 * Get the discovered schema that was generated based on sampled events.
117 */
118 getDiscoveredSchema(callback?: (err: AWSError, data: Schemas.Types.GetDiscoveredSchemaResponse) => void): Request<Schemas.Types.GetDiscoveredSchemaResponse, AWSError>;
119 /**
120 * List the discoverers.
121 */
122 listDiscoverers(params: Schemas.Types.ListDiscoverersRequest, callback?: (err: AWSError, data: Schemas.Types.ListDiscoverersResponse) => void): Request<Schemas.Types.ListDiscoverersResponse, AWSError>;
123 /**
124 * List the discoverers.
125 */
126 listDiscoverers(callback?: (err: AWSError, data: Schemas.Types.ListDiscoverersResponse) => void): Request<Schemas.Types.ListDiscoverersResponse, AWSError>;
127 /**
128 * List the registries.
129 */
130 listRegistries(params: Schemas.Types.ListRegistriesRequest, callback?: (err: AWSError, data: Schemas.Types.ListRegistriesResponse) => void): Request<Schemas.Types.ListRegistriesResponse, AWSError>;
131 /**
132 * List the registries.
133 */
134 listRegistries(callback?: (err: AWSError, data: Schemas.Types.ListRegistriesResponse) => void): Request<Schemas.Types.ListRegistriesResponse, AWSError>;
135 /**
136 * Provides a list of the schema versions and related information.
137 */
138 listSchemaVersions(params: Schemas.Types.ListSchemaVersionsRequest, callback?: (err: AWSError, data: Schemas.Types.ListSchemaVersionsResponse) => void): Request<Schemas.Types.ListSchemaVersionsResponse, AWSError>;
139 /**
140 * Provides a list of the schema versions and related information.
141 */
142 listSchemaVersions(callback?: (err: AWSError, data: Schemas.Types.ListSchemaVersionsResponse) => void): Request<Schemas.Types.ListSchemaVersionsResponse, AWSError>;
143 /**
144 * List the schemas.
145 */
146 listSchemas(params: Schemas.Types.ListSchemasRequest, callback?: (err: AWSError, data: Schemas.Types.ListSchemasResponse) => void): Request<Schemas.Types.ListSchemasResponse, AWSError>;
147 /**
148 * List the schemas.
149 */
150 listSchemas(callback?: (err: AWSError, data: Schemas.Types.ListSchemasResponse) => void): Request<Schemas.Types.ListSchemasResponse, AWSError>;
151 /**
152 * Get tags for resource.
153 */
154 listTagsForResource(params: Schemas.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Schemas.Types.ListTagsForResourceResponse) => void): Request<Schemas.Types.ListTagsForResourceResponse, AWSError>;
155 /**
156 * Get tags for resource.
157 */
158 listTagsForResource(callback?: (err: AWSError, data: Schemas.Types.ListTagsForResourceResponse) => void): Request<Schemas.Types.ListTagsForResourceResponse, AWSError>;
159 /**
160 *
161 */
162 lockServiceLinkedRole(params: Schemas.Types.LockServiceLinkedRoleRequest, callback?: (err: AWSError, data: Schemas.Types.LockServiceLinkedRoleResponse) => void): Request<Schemas.Types.LockServiceLinkedRoleResponse, AWSError>;
163 /**
164 *
165 */
166 lockServiceLinkedRole(callback?: (err: AWSError, data: Schemas.Types.LockServiceLinkedRoleResponse) => void): Request<Schemas.Types.LockServiceLinkedRoleResponse, AWSError>;
167 /**
168 * Put code binding URI
169 */
170 putCodeBinding(params: Schemas.Types.PutCodeBindingRequest, callback?: (err: AWSError, data: Schemas.Types.PutCodeBindingResponse) => void): Request<Schemas.Types.PutCodeBindingResponse, AWSError>;
171 /**
172 * Put code binding URI
173 */
174 putCodeBinding(callback?: (err: AWSError, data: Schemas.Types.PutCodeBindingResponse) => void): Request<Schemas.Types.PutCodeBindingResponse, AWSError>;
175 /**
176 * Search the schemas
177 */
178 searchSchemas(params: Schemas.Types.SearchSchemasRequest, callback?: (err: AWSError, data: Schemas.Types.SearchSchemasResponse) => void): Request<Schemas.Types.SearchSchemasResponse, AWSError>;
179 /**
180 * Search the schemas
181 */
182 searchSchemas(callback?: (err: AWSError, data: Schemas.Types.SearchSchemasResponse) => void): Request<Schemas.Types.SearchSchemasResponse, AWSError>;
183 /**
184 * Starts the discoverer
185 */
186 startDiscoverer(params: Schemas.Types.StartDiscovererRequest, callback?: (err: AWSError, data: Schemas.Types.StartDiscovererResponse) => void): Request<Schemas.Types.StartDiscovererResponse, AWSError>;
187 /**
188 * Starts the discoverer
189 */
190 startDiscoverer(callback?: (err: AWSError, data: Schemas.Types.StartDiscovererResponse) => void): Request<Schemas.Types.StartDiscovererResponse, AWSError>;
191 /**
192 * Stops the discoverer
193 */
194 stopDiscoverer(params: Schemas.Types.StopDiscovererRequest, callback?: (err: AWSError, data: Schemas.Types.StopDiscovererResponse) => void): Request<Schemas.Types.StopDiscovererResponse, AWSError>;
195 /**
196 * Stops the discoverer
197 */
198 stopDiscoverer(callback?: (err: AWSError, data: Schemas.Types.StopDiscovererResponse) => void): Request<Schemas.Types.StopDiscovererResponse, AWSError>;
199 /**
200 * Add tags to a resource.
201 */
202 tagResource(params: Schemas.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
203 /**
204 * Add tags to a resource.
205 */
206 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
207 /**
208 *
209 */
210 unlockServiceLinkedRole(params: Schemas.Types.UnlockServiceLinkedRoleRequest, callback?: (err: AWSError, data: Schemas.Types.UnlockServiceLinkedRoleResponse) => void): Request<Schemas.Types.UnlockServiceLinkedRoleResponse, AWSError>;
211 /**
212 *
213 */
214 unlockServiceLinkedRole(callback?: (err: AWSError, data: Schemas.Types.UnlockServiceLinkedRoleResponse) => void): Request<Schemas.Types.UnlockServiceLinkedRoleResponse, AWSError>;
215 /**
216 * Removes tags from a resource.
217 */
218 untagResource(params: Schemas.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
219 /**
220 * Removes tags from a resource.
221 */
222 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
223 /**
224 * Updates the discoverer
225 */
226 updateDiscoverer(params: Schemas.Types.UpdateDiscovererRequest, callback?: (err: AWSError, data: Schemas.Types.UpdateDiscovererResponse) => void): Request<Schemas.Types.UpdateDiscovererResponse, AWSError>;
227 /**
228 * Updates the discoverer
229 */
230 updateDiscoverer(callback?: (err: AWSError, data: Schemas.Types.UpdateDiscovererResponse) => void): Request<Schemas.Types.UpdateDiscovererResponse, AWSError>;
231 /**
232 * Updates a registry.
233 */
234 updateRegistry(params: Schemas.Types.UpdateRegistryRequest, callback?: (err: AWSError, data: Schemas.Types.UpdateRegistryResponse) => void): Request<Schemas.Types.UpdateRegistryResponse, AWSError>;
235 /**
236 * Updates a registry.
237 */
238 updateRegistry(callback?: (err: AWSError, data: Schemas.Types.UpdateRegistryResponse) => void): Request<Schemas.Types.UpdateRegistryResponse, AWSError>;
239 /**
240 * Updates the schema definition
241 */
242 updateSchema(params: Schemas.Types.UpdateSchemaRequest, callback?: (err: AWSError, data: Schemas.Types.UpdateSchemaResponse) => void): Request<Schemas.Types.UpdateSchemaResponse, AWSError>;
243 /**
244 * Updates the schema definition
245 */
246 updateSchema(callback?: (err: AWSError, data: Schemas.Types.UpdateSchemaResponse) => void): Request<Schemas.Types.UpdateSchemaResponse, AWSError>;
247 /**
248 * Waits for the codeBindingExists state by periodically calling the underlying Schemas.describeCodeBindingoperation every 2 seconds (at most 30 times). Wait until code binding is generated
249 */
250 waitFor(state: "codeBindingExists", params: Schemas.Types.DescribeCodeBindingRequest & {$waiter?: WaiterConfiguration}, callback?: (err: AWSError, data: Schemas.Types.DescribeCodeBindingResponse) => void): Request<Schemas.Types.DescribeCodeBindingResponse, AWSError>;
251 /**
252 * Waits for the codeBindingExists state by periodically calling the underlying Schemas.describeCodeBindingoperation every 2 seconds (at most 30 times). Wait until code binding is generated
253 */
254 waitFor(state: "codeBindingExists", callback?: (err: AWSError, data: Schemas.Types.DescribeCodeBindingResponse) => void): Request<Schemas.Types.DescribeCodeBindingResponse, AWSError>;
255}
256declare namespace Schemas {
257 export type CodeGenerationStatus = "CREATE_IN_PROGRESS"|"CREATE_COMPLETE"|"CREATE_FAILED"|string;
258 export interface CreateDiscovererRequest {
259 /**
260 * A description for the discoverer.
261 */
262 Description?: __stringMin0Max256;
263 /**
264 * The ARN of the event bus.
265 */
266 SourceArn: __stringMin20Max1600;
267 /**
268 * Tags associated with the resource.
269 */
270 Tags?: Tags;
271 }
272 export interface CreateDiscovererResponse {
273 /**
274 * The description of the discoverer.
275 */
276 Description?: __string;
277 /**
278 * The ARN of the discoverer.
279 */
280 DiscovererArn?: __string;
281 /**
282 * The ID of the discoverer.
283 */
284 DiscovererId?: __string;
285 /**
286 * The ARN of the event bus.
287 */
288 SourceArn?: __string;
289 /**
290 * The state of the discoverer.
291 */
292 State?: DiscovererState;
293 /**
294 * Tags associated with the resource.
295 */
296 Tags?: Tags;
297 }
298 export interface CreateRegistryRequest {
299 /**
300 * A description of the registry to be created.
301 */
302 Description?: __stringMin0Max256;
303 RegistryName: __string;
304 /**
305 * Tags to associate with the registry.
306 */
307 Tags?: Tags;
308 }
309 export interface CreateRegistryResponse {
310 /**
311 * The description of the registry.
312 */
313 Description?: __string;
314 /**
315 * The ARN of the registry.
316 */
317 RegistryArn?: __string;
318 /**
319 * The name of the registry.
320 */
321 RegistryName?: __string;
322 /**
323 * Tags associated with the registry.
324 */
325 Tags?: Tags;
326 }
327 export interface CreateSchemaRequest {
328 Content: __stringMin1Max100000;
329 /**
330 * A description of the schema.
331 */
332 Description?: __stringMin0Max256;
333 RegistryName: __string;
334 SchemaName: __string;
335 /**
336 * Tags associated with the schema.
337 */
338 Tags?: Tags;
339 Type: Type;
340 }
341 export interface CreateSchemaResponse {
342 /**
343 * The description of the schema.
344 */
345 Description?: __string;
346 /**
347 * The date and time that schema was modified.
348 */
349 LastModified?: __timestampIso8601;
350 /**
351 * The ARN of the schema.
352 */
353 SchemaArn?: __string;
354 /**
355 * The name of the schema.
356 */
357 SchemaName?: __string;
358 /**
359 * The version number of the schema
360 */
361 SchemaVersion?: __string;
362 Tags?: Tags;
363 /**
364 * The type of the schema.
365 */
366 Type?: __string;
367 /**
368 * The date the schema version was created.
369 */
370 VersionCreatedDate?: __timestampIso8601;
371 }
372 export interface DeleteDiscovererRequest {
373 DiscovererId: __string;
374 }
375 export interface DeleteRegistryRequest {
376 RegistryName: __string;
377 }
378 export interface DeleteSchemaRequest {
379 RegistryName: __string;
380 SchemaName: __string;
381 }
382 export interface DeleteSchemaVersionRequest {
383 RegistryName: __string;
384 SchemaName: __string;
385 SchemaVersion: __string;
386 }
387 export interface DescribeCodeBindingRequest {
388 Language: __string;
389 RegistryName: __string;
390 SchemaName: __string;
391 SchemaVersion?: __string;
392 }
393 export interface DescribeCodeBindingResponse {
394 /**
395 * The time and date that the code binding was created.
396 */
397 CreationDate?: __timestampIso8601;
398 /**
399 * The date and time that code bindings were modified.
400 */
401 LastModified?: __timestampIso8601;
402 /**
403 * The version number of the schema.
404 */
405 SchemaVersion?: __string;
406 /**
407 * The current status of code binding generation.
408 */
409 Status?: CodeGenerationStatus;
410 }
411 export interface DescribeDiscovererRequest {
412 DiscovererId: __string;
413 }
414 export interface DescribeDiscovererResponse {
415 /**
416 * The description of the discoverer.
417 */
418 Description?: __string;
419 /**
420 * The ARN of the discoverer.
421 */
422 DiscovererArn?: __string;
423 /**
424 * The ID of the discoverer.
425 */
426 DiscovererId?: __string;
427 /**
428 * The ARN of the event bus.
429 */
430 SourceArn?: __string;
431 /**
432 * The state of the discoverer.
433 */
434 State?: DiscovererState;
435 /**
436 * Tags associated with the resource.
437 */
438 Tags?: Tags;
439 }
440 export interface DescribeRegistryRequest {
441 RegistryName: __string;
442 }
443 export interface DescribeRegistryResponse {
444 /**
445 * The description of the registry.
446 */
447 Description?: __string;
448 /**
449 * The ARN of the registry.
450 */
451 RegistryArn?: __string;
452 /**
453 * The name of the registry.
454 */
455 RegistryName?: __string;
456 /**
457 * Tags associated with the registry.
458 */
459 Tags?: Tags;
460 }
461 export interface DescribeSchemaRequest {
462 RegistryName: __string;
463 SchemaName: __string;
464 SchemaVersion?: __string;
465 }
466 export interface DescribeSchemaResponse {
467 Content?: __string;
468 /**
469 * The description of the schema.
470 */
471 Description?: __string;
472 /**
473 * The date and time that schema was modified.
474 */
475 LastModified?: __timestampIso8601;
476 /**
477 * The ARN of the schema.
478 */
479 SchemaArn?: __string;
480 /**
481 * The name of the schema.
482 */
483 SchemaName?: __string;
484 /**
485 * The version number of the schema
486 */
487 SchemaVersion?: __string;
488 /**
489 * Tags associated with the resource.
490 */
491 Tags?: Tags;
492 /**
493 * The type of the schema.
494 */
495 Type?: __string;
496 /**
497 * The date the schema version was created.
498 */
499 VersionCreatedDate?: __timestampIso8601;
500 }
501 export type DiscovererState = "STARTED"|"STOPPED"|string;
502 export interface DiscovererSummary {
503 /**
504 * The ARN of the discoverer.
505 */
506 DiscovererArn?: __string;
507 /**
508 * The ID of the discoverer.
509 */
510 DiscovererId?: __string;
511 /**
512 * The ARN of the event bus.
513 */
514 SourceArn?: __string;
515 State?: DiscovererState;
516 /**
517 * Tags associated with the resource.
518 */
519 Tags?: Tags;
520 }
521 export interface GetCodeBindingSourceRequest {
522 Language: __string;
523 RegistryName: __string;
524 SchemaName: __string;
525 SchemaVersion?: __string;
526 }
527 export interface GetCodeBindingSourceResponse {
528 Body?: Body;
529 }
530 export interface GetDiscoveredSchemaRequest {
531 /**
532 * An array of strings that
533 */
534 Events: __listOfGetDiscoveredSchemaVersionItemInput;
535 /**
536 * The type of event.
537 */
538 Type: Type;
539 }
540 export interface GetDiscoveredSchemaResponse {
541 Content?: __string;
542 }
543 export type GetDiscoveredSchemaVersionItemInput = string;
544 export interface ListDiscoverersRequest {
545 DiscovererIdPrefix?: __string;
546 Limit?: __integer;
547 NextToken?: __string;
548 SourceArnPrefix?: __string;
549 }
550 export interface ListDiscoverersResponse {
551 /**
552 * An array of DiscovererSummary information.
553 */
554 Discoverers?: __listOfDiscovererSummary;
555 /**
556 * The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
557 */
558 NextToken?: __string;
559 }
560 export interface ListRegistriesRequest {
561 Limit?: __integer;
562 NextToken?: __string;
563 RegistryNamePrefix?: __string;
564 Scope?: __string;
565 }
566 export interface ListRegistriesResponse {
567 /**
568 * The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
569 */
570 NextToken?: __string;
571 /**
572 * An array of registry summaries.
573 */
574 Registries?: __listOfRegistrySummary;
575 }
576 export interface ListSchemaVersionsRequest {
577 Limit?: __integer;
578 NextToken?: __string;
579 RegistryName: __string;
580 SchemaName: __string;
581 }
582 export interface ListSchemaVersionsResponse {
583 /**
584 * The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
585 */
586 NextToken?: __string;
587 /**
588 * An array of schema version summaries.
589 */
590 SchemaVersions?: __listOfSchemaVersionSummary;
591 }
592 export interface ListSchemasRequest {
593 Limit?: __integer;
594 NextToken?: __string;
595 RegistryName: __string;
596 SchemaNamePrefix?: __string;
597 }
598 export interface ListSchemasResponse {
599 /**
600 * The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
601 */
602 NextToken?: __string;
603 /**
604 * An array of schema summaries.
605 */
606 Schemas?: __listOfSchemaSummary;
607 }
608 export interface ListTagsForResourceRequest {
609 ResourceArn: __string;
610 }
611 export interface ListTagsForResourceResponse {
612 Tags: Tags;
613 }
614 export interface LockServiceLinkedRoleRequest {
615 RoleArn: __stringMin1Max1600;
616 Timeout: __integerMin1Max29000;
617 }
618 export interface LockServiceLinkedRoleResponse {
619 CanBeDeleted?: __boolean;
620 ReasonOfFailure?: __stringMin1Max1600;
621 RelatedResources?: __listOfDiscovererSummary;
622 }
623 export interface PutCodeBindingRequest {
624 Language: __string;
625 RegistryName: __string;
626 SchemaName: __string;
627 SchemaVersion?: __string;
628 }
629 export interface PutCodeBindingResponse {
630 /**
631 * The time and date that the code binding was created.
632 */
633 CreationDate?: __timestampIso8601;
634 /**
635 * The date and time that code bindings were modified.
636 */
637 LastModified?: __timestampIso8601;
638 /**
639 * The version number of the schema.
640 */
641 SchemaVersion?: __string;
642 /**
643 * The current status of code binding generation.
644 */
645 Status?: CodeGenerationStatus;
646 }
647 export interface RegistrySummary {
648 /**
649 * The ARN of the registry.
650 */
651 RegistryArn?: __string;
652 /**
653 * The name of the registry.
654 */
655 RegistryName?: __string;
656 /**
657 * Tags associated with the registry.
658 */
659 Tags?: Tags;
660 }
661 export interface SchemaSummary {
662 /**
663 * The date and time that schema was modified.
664 */
665 LastModified?: __timestampIso8601;
666 /**
667 * The ARN of the schema.
668 */
669 SchemaArn?: __string;
670 /**
671 * The name of the schema.
672 */
673 SchemaName?: __string;
674 /**
675 * Tags associated with the schema.
676 */
677 Tags?: Tags;
678 /**
679 * The number of versions available for the schema.
680 */
681 VersionCount?: __long;
682 }
683 export interface SchemaVersionSummary {
684 /**
685 * The ARN of the schema version.
686 */
687 SchemaArn?: __string;
688 /**
689 * The name of the schema.
690 */
691 SchemaName?: __string;
692 /**
693 * The version number of the schema.
694 */
695 SchemaVersion?: __string;
696 }
697 export interface SearchSchemaSummary {
698 /**
699 * The name of the registry.
700 */
701 RegistryName?: __string;
702 /**
703 * The ARN of the schema.
704 */
705 SchemaArn?: __string;
706 /**
707 * The name of the schema.
708 */
709 SchemaName?: __string;
710 /**
711 * An array of schema version summaries.
712 */
713 SchemaVersions?: __listOfSearchSchemaVersionSummary;
714 }
715 export interface SearchSchemaVersionSummary {
716 CreatedDate?: __timestampIso8601;
717 /**
718 * The version number of the schema
719 */
720 SchemaVersion?: __string;
721 }
722 export interface SearchSchemasRequest {
723 Keywords: __string;
724 Limit?: __integer;
725 NextToken?: __string;
726 RegistryName: __string;
727 }
728 export interface SearchSchemasResponse {
729 /**
730 * The token that specifies the next page of results to return. To request the first page, leave NextToken empty. The token will expire in 24 hours, and cannot be shared with other accounts.
731 */
732 NextToken?: __string;
733 /**
734 * An array of SearchSchemaSummary information.
735 */
736 Schemas?: __listOfSearchSchemaSummary;
737 }
738 export interface StartDiscovererRequest {
739 DiscovererId: __string;
740 }
741 export interface StartDiscovererResponse {
742 /**
743 * The ID of the discoverer.
744 */
745 DiscovererId?: __string;
746 /**
747 * The state of the discoverer.
748 */
749 State?: DiscovererState;
750 }
751 export interface StopDiscovererRequest {
752 DiscovererId: __string;
753 }
754 export interface StopDiscovererResponse {
755 /**
756 * The ID of the discoverer.
757 */
758 DiscovererId?: __string;
759 /**
760 * The state of the discoverer.
761 */
762 State?: DiscovererState;
763 }
764 export interface TagResourceRequest {
765 ResourceArn: __string;
766 Tags: Tags;
767 }
768 export type Tags = {[key: string]: __string};
769 export type Type = "OpenApi3"|string;
770 export interface UnlockServiceLinkedRoleRequest {
771 RoleArn: __stringMin1Max1600;
772 }
773 export interface UnlockServiceLinkedRoleResponse {
774 }
775 export interface UntagResourceRequest {
776 ResourceArn: __string;
777 TagKeys: __listOf__string;
778 }
779 export interface UpdateDiscovererRequest {
780 /**
781 * The description of the discoverer to update.
782 */
783 Description?: __stringMin0Max256;
784 DiscovererId: __string;
785 }
786 export interface UpdateDiscovererResponse {
787 /**
788 * The description of the discoverer.
789 */
790 Description?: __string;
791 /**
792 * The ARN of the discoverer.
793 */
794 DiscovererArn?: __string;
795 /**
796 * The ID of the discoverer.
797 */
798 DiscovererId?: __string;
799 /**
800 * The ARN of the event bus.
801 */
802 SourceArn?: __string;
803 /**
804 * The state of the discoverer.
805 */
806 State?: DiscovererState;
807 /**
808 * Tags associated with the resource.
809 */
810 Tags?: Tags;
811 }
812 export interface UpdateRegistryRequest {
813 /**
814 * The description of the registry to update.
815 */
816 Description?: __stringMin0Max256;
817 RegistryName: __string;
818 }
819 export interface UpdateRegistryResponse {
820 /**
821 * The description of the registry.
822 */
823 Description?: __string;
824 /**
825 * The ARN of the registry.
826 */
827 RegistryArn?: __string;
828 /**
829 * The name of the registry.
830 */
831 RegistryName?: __string;
832 /**
833 * Tags associated with the registry.
834 */
835 Tags?: Tags;
836 }
837 export interface UpdateSchemaRequest {
838 /**
839 * The ID of the client token.
840 */
841 ClientTokenId?: __stringMin0Max36;
842 /**
843 * The source of the schema definition.
844 */
845 Content?: __stringMin1Max100000;
846 /**
847 * The description of the schema.
848 */
849 Description?: __stringMin0Max256;
850 RegistryName: __string;
851 SchemaName: __string;
852 /**
853 * The schema type for the events schema.
854 */
855 Type?: Type;
856 }
857 export interface UpdateSchemaResponse {
858 /**
859 * The description of the schema.
860 */
861 Description?: __string;
862 /**
863 * The date and time that schema was modified.
864 */
865 LastModified?: __timestampIso8601;
866 /**
867 * The ARN of the schema.
868 */
869 SchemaArn?: __string;
870 /**
871 * The name of the schema.
872 */
873 SchemaName?: __string;
874 /**
875 * The version number of the schema
876 */
877 SchemaVersion?: __string;
878 Tags?: Tags;
879 /**
880 * The type of the schema.
881 */
882 Type?: __string;
883 /**
884 * The date the schema version was created.
885 */
886 VersionCreatedDate?: __timestampIso8601;
887 }
888 export type __boolean = boolean;
889 export type __integer = number;
890 export type __integerMin1Max29000 = number;
891 export type __listOfDiscovererSummary = DiscovererSummary[];
892 export type __listOfGetDiscoveredSchemaVersionItemInput = GetDiscoveredSchemaVersionItemInput[];
893 export type __listOfRegistrySummary = RegistrySummary[];
894 export type __listOfSchemaSummary = SchemaSummary[];
895 export type __listOfSchemaVersionSummary = SchemaVersionSummary[];
896 export type __listOfSearchSchemaSummary = SearchSchemaSummary[];
897 export type __listOfSearchSchemaVersionSummary = SearchSchemaVersionSummary[];
898 export type __listOf__string = __string[];
899 export type __long = number;
900 export type __string = string;
901 export type __stringMin0Max256 = string;
902 export type __stringMin0Max36 = string;
903 export type __stringMin1Max100000 = string;
904 export type __stringMin1Max1600 = string;
905 export type __stringMin20Max1600 = string;
906 export type __timestampIso8601 = Date;
907 export type Body = Buffer|Uint8Array|Blob|string;
908 /**
909 * 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.
910 */
911 export type apiVersion = "2019-12-02"|"latest"|string;
912 export interface ClientApiVersions {
913 /**
914 * 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.
915 */
916 apiVersion?: apiVersion;
917 }
918 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
919 /**
920 * Contains interfaces for use with the Schemas client.
921 */
922 export import Types = Schemas;
923}
924export = Schemas;