@aws-sdk/client-appsync 3.454.0 → 3.459.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/README.md +76 -60
  2. package/dist-cjs/AppSync.js +4 -0
  3. package/dist-cjs/commands/GetDataSourceIntrospectionCommand.js +51 -0
  4. package/dist-cjs/commands/StartDataSourceIntrospectionCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +6 -1
  7. package/dist-cjs/protocols/Aws_restJson1.js +182 -3
  8. package/dist-es/AppSync.js +4 -0
  9. package/dist-es/commands/GetDataSourceIntrospectionCommand.js +47 -0
  10. package/dist-es/commands/StartDataSourceIntrospectionCommand.js +47 -0
  11. package/dist-es/commands/index.js +2 -0
  12. package/dist-es/models/models_0.js +5 -0
  13. package/dist-es/protocols/Aws_restJson1.js +176 -1
  14. package/dist-types/AppSync.d.ts +14 -0
  15. package/dist-types/AppSyncClient.d.ts +4 -2
  16. package/dist-types/commands/GetDataSourceIntrospectionCommand.d.ts +135 -0
  17. package/dist-types/commands/StartDataSourceIntrospectionCommand.d.ts +94 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/models/models_0.d.ts +270 -0
  20. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  21. package/dist-types/ts3.4/AppSync.d.ts +34 -0
  22. package/dist-types/ts3.4/AppSyncClient.d.ts +12 -0
  23. package/dist-types/ts3.4/commands/GetDataSourceIntrospectionCommand.d.ts +42 -0
  24. package/dist-types/ts3.4/commands/StartDataSourceIntrospectionCommand.d.ts +42 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +58 -0
  27. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  28. package/package.json +3 -3
@@ -2933,6 +2933,64 @@ export interface GetDataSourceResponse {
2933
2933
  */
2934
2934
  dataSource?: DataSource;
2935
2935
  }
2936
+ /**
2937
+ * @public
2938
+ */
2939
+ export interface GetDataSourceIntrospectionRequest {
2940
+ /**
2941
+ * @public
2942
+ * <p>The introspection ID. Each introspection contains a unique ID that can be used to reference the
2943
+ * instrospection record.</p>
2944
+ */
2945
+ introspectionId: string | undefined;
2946
+ /**
2947
+ * @public
2948
+ * <p>A boolean flag that determines whether SDL should be generated for introspected types or not. If set to
2949
+ * <code>true</code>, each model will contain an <code>sdl</code> property that contains the SDL for that type.
2950
+ * The SDL only contains the type data and no additional metadata or directives. </p>
2951
+ */
2952
+ includeModelsSDL?: boolean;
2953
+ /**
2954
+ * @public
2955
+ * <p>Determines the number of types to be returned in a single response before paginating. This value is
2956
+ * typically taken from <code>nextToken</code> value from the previous response.</p>
2957
+ */
2958
+ nextToken?: string;
2959
+ /**
2960
+ * @public
2961
+ * <p>The maximum number of introspected types that will be returned in a single response.</p>
2962
+ */
2963
+ maxResults?: number;
2964
+ }
2965
+ /**
2966
+ * @public
2967
+ * <p>The index that was retrieved from the introspected data.</p>
2968
+ */
2969
+ export interface DataSourceIntrospectionModelIndex {
2970
+ /**
2971
+ * @public
2972
+ * <p>The name of the index.</p>
2973
+ */
2974
+ name?: string;
2975
+ /**
2976
+ * @public
2977
+ * <p>The fields of the index.</p>
2978
+ */
2979
+ fields?: string[];
2980
+ }
2981
+ /**
2982
+ * @public
2983
+ * @enum
2984
+ */
2985
+ export declare const DataSourceIntrospectionStatus: {
2986
+ readonly FAILED: "FAILED";
2987
+ readonly PROCESSING: "PROCESSING";
2988
+ readonly SUCCESS: "SUCCESS";
2989
+ };
2990
+ /**
2991
+ * @public
2992
+ */
2993
+ export type DataSourceIntrospectionStatus = (typeof DataSourceIntrospectionStatus)[keyof typeof DataSourceIntrospectionStatus];
2936
2994
  /**
2937
2995
  * @public
2938
2996
  */
@@ -3649,6 +3707,66 @@ export interface ListTypesByAssociationResponse {
3649
3707
  */
3650
3708
  nextToken?: string;
3651
3709
  }
3710
+ /**
3711
+ * @public
3712
+ * <p>Contains the metadata required to introspect the RDS cluster.</p>
3713
+ */
3714
+ export interface RdsDataApiConfig {
3715
+ /**
3716
+ * @public
3717
+ * <p>The resource ARN of the RDS cluster.</p>
3718
+ */
3719
+ resourceArn: string | undefined;
3720
+ /**
3721
+ * @public
3722
+ * <p>The secret's ARN that was obtained from Secrets Manager. A secret consists of secret information, the secret
3723
+ * value, plus metadata about the secret. A secret value can be a string or binary. It typically includes the ARN,
3724
+ * secret name and description, policies, tags, encryption key from the Key Management Service, and key rotation
3725
+ * data.</p>
3726
+ */
3727
+ secretArn: string | undefined;
3728
+ /**
3729
+ * @public
3730
+ * <p>The name of the database in the cluster.</p>
3731
+ */
3732
+ databaseName: string | undefined;
3733
+ }
3734
+ /**
3735
+ * @public
3736
+ */
3737
+ export interface StartDataSourceIntrospectionRequest {
3738
+ /**
3739
+ * @public
3740
+ * <p>The <code>rdsDataApiConfig</code> object data.</p>
3741
+ */
3742
+ rdsDataApiConfig?: RdsDataApiConfig;
3743
+ }
3744
+ /**
3745
+ * @public
3746
+ */
3747
+ export interface StartDataSourceIntrospectionResponse {
3748
+ /**
3749
+ * @public
3750
+ * <p>The introspection ID. Each introspection contains a unique ID that can be used to reference the
3751
+ * instrospection record.</p>
3752
+ */
3753
+ introspectionId?: string;
3754
+ /**
3755
+ * @public
3756
+ * <p>The status of the introspection during creation. By default, when a new instrospection has been created, the
3757
+ * status will be set to <code>PROCESSING</code>. Once the operation has been completed, the status will change to
3758
+ * <code>SUCCESS</code> or <code>FAILED</code> depending on how the data was parsed. A <code>FAILED</code>
3759
+ * operation will return an error and its details as an <code>introspectionStatusDetail</code>.</p>
3760
+ */
3761
+ introspectionStatus?: DataSourceIntrospectionStatus;
3762
+ /**
3763
+ * @public
3764
+ * <p>The error detail field. When a <code>FAILED</code>
3765
+ * <code>introspectionStatus</code> is returned, the <code>introspectionStatusDetail</code> will also return the
3766
+ * exact error that was generated during the operation.</p>
3767
+ */
3768
+ introspectionStatusDetail?: string;
3769
+ }
3652
3770
  /**
3653
3771
  * @public
3654
3772
  */
@@ -4336,3 +4454,155 @@ export interface UpdateTypeResponse {
4336
4454
  */
4337
4455
  type?: Type;
4338
4456
  }
4457
+ /**
4458
+ * @public
4459
+ * <p>Represents the type data for each field retrieved from the introspection.</p>
4460
+ */
4461
+ export interface DataSourceIntrospectionModelFieldType {
4462
+ /**
4463
+ * @public
4464
+ * <p>Specifies the classification of data. For example, this could be set to values like <code>Scalar</code> or
4465
+ * <code>NonNull</code> to indicate a fundamental property of the field.</p>
4466
+ * <p>Valid values include:</p>
4467
+ * <ul>
4468
+ * <li>
4469
+ * <p>
4470
+ * <code>Scalar</code>: Indicates the value is a primitive type (scalar).</p>
4471
+ * </li>
4472
+ * <li>
4473
+ * <p>
4474
+ * <code>NonNull</code>: Indicates the field cannot be <code>null</code>.</p>
4475
+ * </li>
4476
+ * <li>
4477
+ * <p>
4478
+ * <code>List</code>: Indicates the field contains a list.</p>
4479
+ * </li>
4480
+ * </ul>
4481
+ */
4482
+ kind?: string;
4483
+ /**
4484
+ * @public
4485
+ * <p>The name of the data type that represents the field. For example, <code>String</code> is a valid
4486
+ * <code>name</code> value.</p>
4487
+ */
4488
+ name?: string;
4489
+ /**
4490
+ * @public
4491
+ * <p>The <code>DataSourceIntrospectionModelFieldType</code> object data. The <code>type</code> is only present if
4492
+ * <code>DataSourceIntrospectionModelFieldType.kind</code> is set to <code>NonNull</code> or <code>List</code>. </p>
4493
+ * <p>The <code>type</code> typically contains its own <code>kind</code> and <code>name</code> fields to represent
4494
+ * the actual type data. For instance, <code>type</code> could contain a <code>kind</code> value of
4495
+ * <code>Scalar</code> with a <code>name</code> value of <code>String</code>. The values <code>Scalar</code>
4496
+ * and <code>String</code> will be collectively stored in the <code>values</code> field.</p>
4497
+ */
4498
+ type?: DataSourceIntrospectionModelFieldType;
4499
+ /**
4500
+ * @public
4501
+ * <p>The values of the <code>type</code> field. This field represents the AppSync data type equivalent of the
4502
+ * introspected field.</p>
4503
+ */
4504
+ values?: string[];
4505
+ }
4506
+ /**
4507
+ * @public
4508
+ * <p>Represents the fields that were retrieved from the introspected data.</p>
4509
+ */
4510
+ export interface DataSourceIntrospectionModelField {
4511
+ /**
4512
+ * @public
4513
+ * <p>The name of the field that was retrieved from the introspected data.</p>
4514
+ */
4515
+ name?: string;
4516
+ /**
4517
+ * @public
4518
+ * <p>The <code>DataSourceIntrospectionModelFieldType</code> object data.</p>
4519
+ */
4520
+ type?: DataSourceIntrospectionModelFieldType;
4521
+ /**
4522
+ * @public
4523
+ * <p>The length value of the introspected field.</p>
4524
+ */
4525
+ length?: number;
4526
+ }
4527
+ /**
4528
+ * @public
4529
+ * <p>Contains the introspected data that was retrieved from the data source.</p>
4530
+ */
4531
+ export interface DataSourceIntrospectionModel {
4532
+ /**
4533
+ * @public
4534
+ * <p>The name of the model. For example, this could be the name of a single table in a database.</p>
4535
+ */
4536
+ name?: string;
4537
+ /**
4538
+ * @public
4539
+ * <p>The <code>DataSourceIntrospectionModelField</code> object data.</p>
4540
+ */
4541
+ fields?: DataSourceIntrospectionModelField[];
4542
+ /**
4543
+ * @public
4544
+ * <p>The primary key stored as a <code>DataSourceIntrospectionModelIndex</code> object.</p>
4545
+ */
4546
+ primaryKey?: DataSourceIntrospectionModelIndex;
4547
+ /**
4548
+ * @public
4549
+ * <p>The array of <code>DataSourceIntrospectionModelIndex</code> objects.</p>
4550
+ */
4551
+ indexes?: DataSourceIntrospectionModelIndex[];
4552
+ /**
4553
+ * @public
4554
+ * <p>Contains the output of the SDL that was generated from the introspected types. This is controlled by the
4555
+ * <code>includeModelsSDL</code> parameter of the <code>GetDataSourceIntrospection</code> operation.</p>
4556
+ */
4557
+ sdl?: string;
4558
+ }
4559
+ /**
4560
+ * @public
4561
+ * <p>Represents the output of a <code>DataSourceIntrospectionResult</code>. This is the populated result of a
4562
+ * <code>GetDataSourceIntrospection</code> operation.</p>
4563
+ */
4564
+ export interface DataSourceIntrospectionResult {
4565
+ /**
4566
+ * @public
4567
+ * <p>The array of <code>DataSourceIntrospectionModel</code> objects.</p>
4568
+ */
4569
+ models?: DataSourceIntrospectionModel[];
4570
+ /**
4571
+ * @public
4572
+ * <p>Determines the number of types to be returned in a single response before paginating. This value is
4573
+ * typically taken from <code>nextToken</code> value from the previous response.</p>
4574
+ */
4575
+ nextToken?: string;
4576
+ }
4577
+ /**
4578
+ * @public
4579
+ */
4580
+ export interface GetDataSourceIntrospectionResponse {
4581
+ /**
4582
+ * @public
4583
+ * <p>The introspection ID. Each introspection contains a unique ID that can be used to reference the
4584
+ * instrospection record.</p>
4585
+ */
4586
+ introspectionId?: string;
4587
+ /**
4588
+ * @public
4589
+ * <p>The status of the introspection during retrieval. By default, when a new instrospection is being retrieved,
4590
+ * the status will be set to <code>PROCESSING</code>. Once the operation has been completed, the status will
4591
+ * change to <code>SUCCESS</code> or <code>FAILED</code> depending on how the data was parsed. A
4592
+ * <code>FAILED</code> operation will return an error and its details as an
4593
+ * <code>introspectionStatusDetail</code>.</p>
4594
+ */
4595
+ introspectionStatus?: DataSourceIntrospectionStatus;
4596
+ /**
4597
+ * @public
4598
+ * <p>The error detail field. When a <code>FAILED</code>
4599
+ * <code>introspectionStatus</code> is returned, the <code>introspectionStatusDetail</code> will also return the
4600
+ * exact error that was generated during the operation.</p>
4601
+ */
4602
+ introspectionStatusDetail?: string;
4603
+ /**
4604
+ * @public
4605
+ * <p>The <code>DataSourceIntrospectionResult</code> object data.</p>
4606
+ */
4607
+ introspectionResult?: DataSourceIntrospectionResult;
4608
+ }
@@ -28,6 +28,7 @@ import { FlushApiCacheCommandInput, FlushApiCacheCommandOutput } from "../comman
28
28
  import { GetApiAssociationCommandInput, GetApiAssociationCommandOutput } from "../commands/GetApiAssociationCommand";
29
29
  import { GetApiCacheCommandInput, GetApiCacheCommandOutput } from "../commands/GetApiCacheCommand";
30
30
  import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "../commands/GetDataSourceCommand";
31
+ import { GetDataSourceIntrospectionCommandInput, GetDataSourceIntrospectionCommandOutput } from "../commands/GetDataSourceIntrospectionCommand";
31
32
  import { GetDomainNameCommandInput, GetDomainNameCommandOutput } from "../commands/GetDomainNameCommand";
32
33
  import { GetFunctionCommandInput, GetFunctionCommandOutput } from "../commands/GetFunctionCommand";
33
34
  import { GetGraphqlApiCommandInput, GetGraphqlApiCommandOutput } from "../commands/GetGraphqlApiCommand";
@@ -47,6 +48,7 @@ import { ListSourceApiAssociationsCommandInput, ListSourceApiAssociationsCommand
47
48
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
48
49
  import { ListTypesByAssociationCommandInput, ListTypesByAssociationCommandOutput } from "../commands/ListTypesByAssociationCommand";
49
50
  import { ListTypesCommandInput, ListTypesCommandOutput } from "../commands/ListTypesCommand";
51
+ import { StartDataSourceIntrospectionCommandInput, StartDataSourceIntrospectionCommandOutput } from "../commands/StartDataSourceIntrospectionCommand";
50
52
  import { StartSchemaCreationCommandInput, StartSchemaCreationCommandOutput } from "../commands/StartSchemaCreationCommand";
51
53
  import { StartSchemaMergeCommandInput, StartSchemaMergeCommandOutput } from "../commands/StartSchemaMergeCommand";
52
54
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
@@ -172,6 +174,10 @@ export declare const se_GetApiCacheCommand: (input: GetApiCacheCommandInput, con
172
174
  * serializeAws_restJson1GetDataSourceCommand
173
175
  */
174
176
  export declare const se_GetDataSourceCommand: (input: GetDataSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
177
+ /**
178
+ * serializeAws_restJson1GetDataSourceIntrospectionCommand
179
+ */
180
+ export declare const se_GetDataSourceIntrospectionCommand: (input: GetDataSourceIntrospectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
175
181
  /**
176
182
  * serializeAws_restJson1GetDomainNameCommand
177
183
  */
@@ -248,6 +254,10 @@ export declare const se_ListTypesCommand: (input: ListTypesCommandInput, context
248
254
  * serializeAws_restJson1ListTypesByAssociationCommand
249
255
  */
250
256
  export declare const se_ListTypesByAssociationCommand: (input: ListTypesByAssociationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
257
+ /**
258
+ * serializeAws_restJson1StartDataSourceIntrospectionCommand
259
+ */
260
+ export declare const se_StartDataSourceIntrospectionCommand: (input: StartDataSourceIntrospectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
251
261
  /**
252
262
  * serializeAws_restJson1StartSchemaCreationCommand
253
263
  */
@@ -412,6 +422,10 @@ export declare const de_GetApiCacheCommand: (output: __HttpResponse, context: __
412
422
  * deserializeAws_restJson1GetDataSourceCommand
413
423
  */
414
424
  export declare const de_GetDataSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataSourceCommandOutput>;
425
+ /**
426
+ * deserializeAws_restJson1GetDataSourceIntrospectionCommand
427
+ */
428
+ export declare const de_GetDataSourceIntrospectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDataSourceIntrospectionCommandOutput>;
415
429
  /**
416
430
  * deserializeAws_restJson1GetDomainNameCommand
417
431
  */
@@ -488,6 +502,10 @@ export declare const de_ListTypesCommand: (output: __HttpResponse, context: __Se
488
502
  * deserializeAws_restJson1ListTypesByAssociationCommand
489
503
  */
490
504
  export declare const de_ListTypesByAssociationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTypesByAssociationCommandOutput>;
505
+ /**
506
+ * deserializeAws_restJson1StartDataSourceIntrospectionCommand
507
+ */
508
+ export declare const de_StartDataSourceIntrospectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDataSourceIntrospectionCommandOutput>;
491
509
  /**
492
510
  * deserializeAws_restJson1StartSchemaCreationCommand
493
511
  */
@@ -112,6 +112,10 @@ import {
112
112
  GetDataSourceCommandInput,
113
113
  GetDataSourceCommandOutput,
114
114
  } from "./commands/GetDataSourceCommand";
115
+ import {
116
+ GetDataSourceIntrospectionCommandInput,
117
+ GetDataSourceIntrospectionCommandOutput,
118
+ } from "./commands/GetDataSourceIntrospectionCommand";
115
119
  import {
116
120
  GetDomainNameCommandInput,
117
121
  GetDomainNameCommandOutput,
@@ -188,6 +192,10 @@ import {
188
192
  ListTypesCommandInput,
189
193
  ListTypesCommandOutput,
190
194
  } from "./commands/ListTypesCommand";
195
+ import {
196
+ StartDataSourceIntrospectionCommandInput,
197
+ StartDataSourceIntrospectionCommandOutput,
198
+ } from "./commands/StartDataSourceIntrospectionCommand";
191
199
  import {
192
200
  StartSchemaCreationCommandInput,
193
201
  StartSchemaCreationCommandOutput,
@@ -605,6 +613,19 @@ export interface AppSync {
605
613
  options: __HttpHandlerOptions,
606
614
  cb: (err: any, data?: GetDataSourceCommandOutput) => void
607
615
  ): void;
616
+ getDataSourceIntrospection(
617
+ args: GetDataSourceIntrospectionCommandInput,
618
+ options?: __HttpHandlerOptions
619
+ ): Promise<GetDataSourceIntrospectionCommandOutput>;
620
+ getDataSourceIntrospection(
621
+ args: GetDataSourceIntrospectionCommandInput,
622
+ cb: (err: any, data?: GetDataSourceIntrospectionCommandOutput) => void
623
+ ): void;
624
+ getDataSourceIntrospection(
625
+ args: GetDataSourceIntrospectionCommandInput,
626
+ options: __HttpHandlerOptions,
627
+ cb: (err: any, data?: GetDataSourceIntrospectionCommandOutput) => void
628
+ ): void;
608
629
  getDomainName(
609
630
  args: GetDomainNameCommandInput,
610
631
  options?: __HttpHandlerOptions
@@ -852,6 +873,19 @@ export interface AppSync {
852
873
  options: __HttpHandlerOptions,
853
874
  cb: (err: any, data?: ListTypesByAssociationCommandOutput) => void
854
875
  ): void;
876
+ startDataSourceIntrospection(
877
+ args: StartDataSourceIntrospectionCommandInput,
878
+ options?: __HttpHandlerOptions
879
+ ): Promise<StartDataSourceIntrospectionCommandOutput>;
880
+ startDataSourceIntrospection(
881
+ args: StartDataSourceIntrospectionCommandInput,
882
+ cb: (err: any, data?: StartDataSourceIntrospectionCommandOutput) => void
883
+ ): void;
884
+ startDataSourceIntrospection(
885
+ args: StartDataSourceIntrospectionCommandInput,
886
+ options: __HttpHandlerOptions,
887
+ cb: (err: any, data?: StartDataSourceIntrospectionCommandOutput) => void
888
+ ): void;
855
889
  startSchemaCreation(
856
890
  args: StartSchemaCreationCommandInput,
857
891
  options?: __HttpHandlerOptions
@@ -157,6 +157,10 @@ import {
157
157
  GetDataSourceCommandInput,
158
158
  GetDataSourceCommandOutput,
159
159
  } from "./commands/GetDataSourceCommand";
160
+ import {
161
+ GetDataSourceIntrospectionCommandInput,
162
+ GetDataSourceIntrospectionCommandOutput,
163
+ } from "./commands/GetDataSourceIntrospectionCommand";
160
164
  import {
161
165
  GetDomainNameCommandInput,
162
166
  GetDomainNameCommandOutput,
@@ -233,6 +237,10 @@ import {
233
237
  ListTypesCommandInput,
234
238
  ListTypesCommandOutput,
235
239
  } from "./commands/ListTypesCommand";
240
+ import {
241
+ StartDataSourceIntrospectionCommandInput,
242
+ StartDataSourceIntrospectionCommandOutput,
243
+ } from "./commands/StartDataSourceIntrospectionCommand";
236
244
  import {
237
245
  StartSchemaCreationCommandInput,
238
246
  StartSchemaCreationCommandOutput,
@@ -321,6 +329,7 @@ export type ServiceInputTypes =
321
329
  | GetApiAssociationCommandInput
322
330
  | GetApiCacheCommandInput
323
331
  | GetDataSourceCommandInput
332
+ | GetDataSourceIntrospectionCommandInput
324
333
  | GetDomainNameCommandInput
325
334
  | GetFunctionCommandInput
326
335
  | GetGraphqlApiCommandInput
@@ -340,6 +349,7 @@ export type ServiceInputTypes =
340
349
  | ListTagsForResourceCommandInput
341
350
  | ListTypesByAssociationCommandInput
342
351
  | ListTypesCommandInput
352
+ | StartDataSourceIntrospectionCommandInput
343
353
  | StartSchemaCreationCommandInput
344
354
  | StartSchemaMergeCommandInput
345
355
  | TagResourceCommandInput
@@ -382,6 +392,7 @@ export type ServiceOutputTypes =
382
392
  | GetApiAssociationCommandOutput
383
393
  | GetApiCacheCommandOutput
384
394
  | GetDataSourceCommandOutput
395
+ | GetDataSourceIntrospectionCommandOutput
385
396
  | GetDomainNameCommandOutput
386
397
  | GetFunctionCommandOutput
387
398
  | GetGraphqlApiCommandOutput
@@ -401,6 +412,7 @@ export type ServiceOutputTypes =
401
412
  | ListTagsForResourceCommandOutput
402
413
  | ListTypesByAssociationCommandOutput
403
414
  | ListTypesCommandOutput
415
+ | StartDataSourceIntrospectionCommandOutput
404
416
  | StartSchemaCreationCommandOutput
405
417
  | StartSchemaMergeCommandOutput
406
418
  | TagResourceCommandOutput
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ AppSyncClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AppSyncClient";
14
+ import {
15
+ GetDataSourceIntrospectionRequest,
16
+ GetDataSourceIntrospectionResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetDataSourceIntrospectionCommandInput
20
+ extends GetDataSourceIntrospectionRequest {}
21
+ export interface GetDataSourceIntrospectionCommandOutput
22
+ extends GetDataSourceIntrospectionResponse,
23
+ __MetadataBearer {}
24
+ export declare class GetDataSourceIntrospectionCommand extends $Command<
25
+ GetDataSourceIntrospectionCommandInput,
26
+ GetDataSourceIntrospectionCommandOutput,
27
+ AppSyncClientResolvedConfig
28
+ > {
29
+ readonly input: GetDataSourceIntrospectionCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetDataSourceIntrospectionCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: AppSyncClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ GetDataSourceIntrospectionCommandInput,
38
+ GetDataSourceIntrospectionCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ AppSyncClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AppSyncClient";
14
+ import {
15
+ StartDataSourceIntrospectionRequest,
16
+ StartDataSourceIntrospectionResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface StartDataSourceIntrospectionCommandInput
20
+ extends StartDataSourceIntrospectionRequest {}
21
+ export interface StartDataSourceIntrospectionCommandOutput
22
+ extends StartDataSourceIntrospectionResponse,
23
+ __MetadataBearer {}
24
+ export declare class StartDataSourceIntrospectionCommand extends $Command<
25
+ StartDataSourceIntrospectionCommandInput,
26
+ StartDataSourceIntrospectionCommandOutput,
27
+ AppSyncClientResolvedConfig
28
+ > {
29
+ readonly input: StartDataSourceIntrospectionCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: StartDataSourceIntrospectionCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: AppSyncClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ StartDataSourceIntrospectionCommandInput,
38
+ StartDataSourceIntrospectionCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -26,6 +26,7 @@ export * from "./FlushApiCacheCommand";
26
26
  export * from "./GetApiAssociationCommand";
27
27
  export * from "./GetApiCacheCommand";
28
28
  export * from "./GetDataSourceCommand";
29
+ export * from "./GetDataSourceIntrospectionCommand";
29
30
  export * from "./GetDomainNameCommand";
30
31
  export * from "./GetFunctionCommand";
31
32
  export * from "./GetGraphqlApiCommand";
@@ -45,6 +46,7 @@ export * from "./ListSourceApiAssociationsCommand";
45
46
  export * from "./ListTagsForResourceCommand";
46
47
  export * from "./ListTypesByAssociationCommand";
47
48
  export * from "./ListTypesCommand";
49
+ export * from "./StartDataSourceIntrospectionCommand";
48
50
  export * from "./StartSchemaCreationCommand";
49
51
  export * from "./StartSchemaMergeCommand";
50
52
  export * from "./TagResourceCommand";
@@ -684,6 +684,23 @@ export interface GetDataSourceRequest {
684
684
  export interface GetDataSourceResponse {
685
685
  dataSource?: DataSource;
686
686
  }
687
+ export interface GetDataSourceIntrospectionRequest {
688
+ introspectionId: string | undefined;
689
+ includeModelsSDL?: boolean;
690
+ nextToken?: string;
691
+ maxResults?: number;
692
+ }
693
+ export interface DataSourceIntrospectionModelIndex {
694
+ name?: string;
695
+ fields?: string[];
696
+ }
697
+ export declare const DataSourceIntrospectionStatus: {
698
+ readonly FAILED: "FAILED";
699
+ readonly PROCESSING: "PROCESSING";
700
+ readonly SUCCESS: "SUCCESS";
701
+ };
702
+ export type DataSourceIntrospectionStatus =
703
+ (typeof DataSourceIntrospectionStatus)[keyof typeof DataSourceIntrospectionStatus];
687
704
  export interface GetDomainNameRequest {
688
705
  domainName: string | undefined;
689
706
  }
@@ -877,6 +894,19 @@ export interface ListTypesByAssociationResponse {
877
894
  types?: Type[];
878
895
  nextToken?: string;
879
896
  }
897
+ export interface RdsDataApiConfig {
898
+ resourceArn: string | undefined;
899
+ secretArn: string | undefined;
900
+ databaseName: string | undefined;
901
+ }
902
+ export interface StartDataSourceIntrospectionRequest {
903
+ rdsDataApiConfig?: RdsDataApiConfig;
904
+ }
905
+ export interface StartDataSourceIntrospectionResponse {
906
+ introspectionId?: string;
907
+ introspectionStatus?: DataSourceIntrospectionStatus;
908
+ introspectionStatusDetail?: string;
909
+ }
880
910
  export interface StartSchemaCreationRequest {
881
911
  apiId: string | undefined;
882
912
  definition: Uint8Array | undefined;
@@ -1012,3 +1042,31 @@ export interface UpdateTypeRequest {
1012
1042
  export interface UpdateTypeResponse {
1013
1043
  type?: Type;
1014
1044
  }
1045
+ export interface DataSourceIntrospectionModelFieldType {
1046
+ kind?: string;
1047
+ name?: string;
1048
+ type?: DataSourceIntrospectionModelFieldType;
1049
+ values?: string[];
1050
+ }
1051
+ export interface DataSourceIntrospectionModelField {
1052
+ name?: string;
1053
+ type?: DataSourceIntrospectionModelFieldType;
1054
+ length?: number;
1055
+ }
1056
+ export interface DataSourceIntrospectionModel {
1057
+ name?: string;
1058
+ fields?: DataSourceIntrospectionModelField[];
1059
+ primaryKey?: DataSourceIntrospectionModelIndex;
1060
+ indexes?: DataSourceIntrospectionModelIndex[];
1061
+ sdl?: string;
1062
+ }
1063
+ export interface DataSourceIntrospectionResult {
1064
+ models?: DataSourceIntrospectionModel[];
1065
+ nextToken?: string;
1066
+ }
1067
+ export interface GetDataSourceIntrospectionResponse {
1068
+ introspectionId?: string;
1069
+ introspectionStatus?: DataSourceIntrospectionStatus;
1070
+ introspectionStatusDetail?: string;
1071
+ introspectionResult?: DataSourceIntrospectionResult;
1072
+ }