@aws-sdk/client-appsync 3.458.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 +16 -0
  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 +1 -1
package/README.md CHANGED
@@ -427,6 +427,14 @@ GetDataSource
427
427
 
428
428
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/GetDataSourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetDataSourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetDataSourceCommandOutput/)
429
429
 
430
+ </details>
431
+ <details>
432
+ <summary>
433
+ GetDataSourceIntrospection
434
+ </summary>
435
+
436
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/GetDataSourceIntrospectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetDataSourceIntrospectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetDataSourceIntrospectionCommandOutput/)
437
+
430
438
  </details>
431
439
  <details>
432
440
  <summary>
@@ -579,6 +587,14 @@ ListTypesByAssociation
579
587
 
580
588
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/ListTypesByAssociationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListTypesByAssociationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListTypesByAssociationCommandOutput/)
581
589
 
590
+ </details>
591
+ <details>
592
+ <summary>
593
+ StartDataSourceIntrospection
594
+ </summary>
595
+
596
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/StartDataSourceIntrospectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/StartDataSourceIntrospectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/StartDataSourceIntrospectionCommandOutput/)
597
+
582
598
  </details>
583
599
  <details>
584
600
  <summary>
@@ -31,6 +31,7 @@ const FlushApiCacheCommand_1 = require("./commands/FlushApiCacheCommand");
31
31
  const GetApiAssociationCommand_1 = require("./commands/GetApiAssociationCommand");
32
32
  const GetApiCacheCommand_1 = require("./commands/GetApiCacheCommand");
33
33
  const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
34
+ const GetDataSourceIntrospectionCommand_1 = require("./commands/GetDataSourceIntrospectionCommand");
34
35
  const GetDomainNameCommand_1 = require("./commands/GetDomainNameCommand");
35
36
  const GetFunctionCommand_1 = require("./commands/GetFunctionCommand");
36
37
  const GetGraphqlApiCommand_1 = require("./commands/GetGraphqlApiCommand");
@@ -50,6 +51,7 @@ const ListSourceApiAssociationsCommand_1 = require("./commands/ListSourceApiAsso
50
51
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
51
52
  const ListTypesByAssociationCommand_1 = require("./commands/ListTypesByAssociationCommand");
52
53
  const ListTypesCommand_1 = require("./commands/ListTypesCommand");
54
+ const StartDataSourceIntrospectionCommand_1 = require("./commands/StartDataSourceIntrospectionCommand");
53
55
  const StartSchemaCreationCommand_1 = require("./commands/StartSchemaCreationCommand");
54
56
  const StartSchemaMergeCommand_1 = require("./commands/StartSchemaMergeCommand");
55
57
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
@@ -92,6 +94,7 @@ const commands = {
92
94
  GetApiAssociationCommand: GetApiAssociationCommand_1.GetApiAssociationCommand,
93
95
  GetApiCacheCommand: GetApiCacheCommand_1.GetApiCacheCommand,
94
96
  GetDataSourceCommand: GetDataSourceCommand_1.GetDataSourceCommand,
97
+ GetDataSourceIntrospectionCommand: GetDataSourceIntrospectionCommand_1.GetDataSourceIntrospectionCommand,
95
98
  GetDomainNameCommand: GetDomainNameCommand_1.GetDomainNameCommand,
96
99
  GetFunctionCommand: GetFunctionCommand_1.GetFunctionCommand,
97
100
  GetGraphqlApiCommand: GetGraphqlApiCommand_1.GetGraphqlApiCommand,
@@ -111,6 +114,7 @@ const commands = {
111
114
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
112
115
  ListTypesCommand: ListTypesCommand_1.ListTypesCommand,
113
116
  ListTypesByAssociationCommand: ListTypesByAssociationCommand_1.ListTypesByAssociationCommand,
117
+ StartDataSourceIntrospectionCommand: StartDataSourceIntrospectionCommand_1.StartDataSourceIntrospectionCommand,
114
118
  StartSchemaCreationCommand: StartSchemaCreationCommand_1.StartSchemaCreationCommand,
115
119
  StartSchemaMergeCommand: StartSchemaMergeCommand_1.StartSchemaMergeCommand,
116
120
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDataSourceIntrospectionCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class GetDataSourceIntrospectionCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDataSourceIntrospectionCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "AppSyncClient";
29
+ const commandName = "GetDataSourceIntrospectionCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSDeepdishControlPlaneService",
38
+ operation: "GetDataSourceIntrospection",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_GetDataSourceIntrospectionCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_GetDataSourceIntrospectionCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetDataSourceIntrospectionCommand = GetDataSourceIntrospectionCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartDataSourceIntrospectionCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class StartDataSourceIntrospectionCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartDataSourceIntrospectionCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "AppSyncClient";
29
+ const commandName = "StartDataSourceIntrospectionCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSDeepdishControlPlaneService",
38
+ operation: "StartDataSourceIntrospection",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_StartDataSourceIntrospectionCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_StartDataSourceIntrospectionCommand)(output, context);
49
+ }
50
+ }
51
+ exports.StartDataSourceIntrospectionCommand = StartDataSourceIntrospectionCommand;
@@ -29,6 +29,7 @@ tslib_1.__exportStar(require("./FlushApiCacheCommand"), exports);
29
29
  tslib_1.__exportStar(require("./GetApiAssociationCommand"), exports);
30
30
  tslib_1.__exportStar(require("./GetApiCacheCommand"), exports);
31
31
  tslib_1.__exportStar(require("./GetDataSourceCommand"), exports);
32
+ tslib_1.__exportStar(require("./GetDataSourceIntrospectionCommand"), exports);
32
33
  tslib_1.__exportStar(require("./GetDomainNameCommand"), exports);
33
34
  tslib_1.__exportStar(require("./GetFunctionCommand"), exports);
34
35
  tslib_1.__exportStar(require("./GetGraphqlApiCommand"), exports);
@@ -48,6 +49,7 @@ tslib_1.__exportStar(require("./ListSourceApiAssociationsCommand"), exports);
48
49
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
49
50
  tslib_1.__exportStar(require("./ListTypesByAssociationCommand"), exports);
50
51
  tslib_1.__exportStar(require("./ListTypesCommand"), exports);
52
+ tslib_1.__exportStar(require("./StartDataSourceIntrospectionCommand"), exports);
51
53
  tslib_1.__exportStar(require("./StartSchemaCreationCommand"), exports);
52
54
  tslib_1.__exportStar(require("./StartSchemaMergeCommand"), exports);
53
55
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Ownership = exports.SchemaStatus = exports.GraphQLSchemaException = exports.OutputType = exports.TypeDefinitionFormat = exports.ResolverKind = exports.GraphQLApiVisibility = exports.DefaultAction = exports.FieldLogLevel = exports.GraphQLApiType = exports.ConflictHandlerType = exports.ConflictDetectionType = exports.DataSourceType = exports.RelationalDatabaseSourceType = exports.AuthorizationType = exports.UnauthorizedException = exports.LimitExceededException = exports.ConcurrentModificationException = exports.SourceApiAssociationStatus = exports.MergeType = exports.NotFoundException = exports.InternalFailureException = exports.BadRequestException = exports.BadRequestReason = exports.RuntimeName = exports.ApiLimitExceededException = exports.ApiKeyValidityOutOfBoundsException = exports.ApiKeyLimitExceededException = exports.ApiCacheType = exports.ApiCacheStatus = exports.ApiCachingBehavior = exports.AssociationStatus = exports.AuthenticationType = exports.AccessDeniedException = void 0;
3
+ exports.Ownership = exports.SchemaStatus = exports.GraphQLSchemaException = exports.OutputType = exports.DataSourceIntrospectionStatus = exports.TypeDefinitionFormat = exports.ResolverKind = exports.GraphQLApiVisibility = exports.DefaultAction = exports.FieldLogLevel = exports.GraphQLApiType = exports.ConflictHandlerType = exports.ConflictDetectionType = exports.DataSourceType = exports.RelationalDatabaseSourceType = exports.AuthorizationType = exports.UnauthorizedException = exports.LimitExceededException = exports.ConcurrentModificationException = exports.SourceApiAssociationStatus = exports.MergeType = exports.NotFoundException = exports.InternalFailureException = exports.BadRequestException = exports.BadRequestReason = exports.RuntimeName = exports.ApiLimitExceededException = exports.ApiKeyValidityOutOfBoundsException = exports.ApiKeyLimitExceededException = exports.ApiCacheType = exports.ApiCacheStatus = exports.ApiCachingBehavior = exports.AssociationStatus = exports.AuthenticationType = exports.AccessDeniedException = void 0;
4
4
  const AppSyncServiceException_1 = require("./AppSyncServiceException");
5
5
  class AccessDeniedException extends AppSyncServiceException_1.AppSyncServiceException {
6
6
  constructor(opts) {
@@ -245,6 +245,11 @@ exports.TypeDefinitionFormat = {
245
245
  JSON: "JSON",
246
246
  SDL: "SDL",
247
247
  };
248
+ exports.DataSourceIntrospectionStatus = {
249
+ FAILED: "FAILED",
250
+ PROCESSING: "PROCESSING",
251
+ SUCCESS: "SUCCESS",
252
+ };
248
253
  exports.OutputType = {
249
254
  JSON: "JSON",
250
255
  SDL: "SDL",
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_TagResourceCommand = exports.se_StartSchemaMergeCommand = exports.se_StartSchemaCreationCommand = exports.se_ListTypesByAssociationCommand = exports.se_ListTypesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSourceApiAssociationsCommand = exports.se_ListResolversByFunctionCommand = exports.se_ListResolversCommand = exports.se_ListGraphqlApisCommand = exports.se_ListFunctionsCommand = exports.se_ListDomainNamesCommand = exports.se_ListDataSourcesCommand = exports.se_ListApiKeysCommand = exports.se_GetTypeCommand = exports.se_GetSourceApiAssociationCommand = exports.se_GetSchemaCreationStatusCommand = exports.se_GetResolverCommand = exports.se_GetIntrospectionSchemaCommand = exports.se_GetGraphqlApiCommand = exports.se_GetFunctionCommand = exports.se_GetDomainNameCommand = exports.se_GetDataSourceCommand = exports.se_GetApiCacheCommand = exports.se_GetApiAssociationCommand = exports.se_FlushApiCacheCommand = exports.se_EvaluateMappingTemplateCommand = exports.se_EvaluateCodeCommand = exports.se_DisassociateSourceGraphqlApiCommand = exports.se_DisassociateMergedGraphqlApiCommand = exports.se_DisassociateApiCommand = exports.se_DeleteTypeCommand = exports.se_DeleteResolverCommand = exports.se_DeleteGraphqlApiCommand = exports.se_DeleteFunctionCommand = exports.se_DeleteDomainNameCommand = exports.se_DeleteDataSourceCommand = exports.se_DeleteApiKeyCommand = exports.se_DeleteApiCacheCommand = exports.se_CreateTypeCommand = exports.se_CreateResolverCommand = exports.se_CreateGraphqlApiCommand = exports.se_CreateFunctionCommand = exports.se_CreateDomainNameCommand = exports.se_CreateDataSourceCommand = exports.se_CreateApiKeyCommand = exports.se_CreateApiCacheCommand = exports.se_AssociateSourceGraphqlApiCommand = exports.se_AssociateMergedGraphqlApiCommand = exports.se_AssociateApiCommand = void 0;
4
- exports.de_ListFunctionsCommand = exports.de_ListDomainNamesCommand = exports.de_ListDataSourcesCommand = exports.de_ListApiKeysCommand = exports.de_GetTypeCommand = exports.de_GetSourceApiAssociationCommand = exports.de_GetSchemaCreationStatusCommand = exports.de_GetResolverCommand = exports.de_GetIntrospectionSchemaCommand = exports.de_GetGraphqlApiCommand = exports.de_GetFunctionCommand = exports.de_GetDomainNameCommand = exports.de_GetDataSourceCommand = exports.de_GetApiCacheCommand = exports.de_GetApiAssociationCommand = exports.de_FlushApiCacheCommand = exports.de_EvaluateMappingTemplateCommand = exports.de_EvaluateCodeCommand = exports.de_DisassociateSourceGraphqlApiCommand = exports.de_DisassociateMergedGraphqlApiCommand = exports.de_DisassociateApiCommand = exports.de_DeleteTypeCommand = exports.de_DeleteResolverCommand = exports.de_DeleteGraphqlApiCommand = exports.de_DeleteFunctionCommand = exports.de_DeleteDomainNameCommand = exports.de_DeleteDataSourceCommand = exports.de_DeleteApiKeyCommand = exports.de_DeleteApiCacheCommand = exports.de_CreateTypeCommand = exports.de_CreateResolverCommand = exports.de_CreateGraphqlApiCommand = exports.de_CreateFunctionCommand = exports.de_CreateDomainNameCommand = exports.de_CreateDataSourceCommand = exports.de_CreateApiKeyCommand = exports.de_CreateApiCacheCommand = exports.de_AssociateSourceGraphqlApiCommand = exports.de_AssociateMergedGraphqlApiCommand = exports.de_AssociateApiCommand = exports.se_UpdateTypeCommand = exports.se_UpdateSourceApiAssociationCommand = exports.se_UpdateResolverCommand = exports.se_UpdateGraphqlApiCommand = exports.se_UpdateFunctionCommand = exports.se_UpdateDomainNameCommand = exports.se_UpdateDataSourceCommand = exports.se_UpdateApiKeyCommand = exports.se_UpdateApiCacheCommand = exports.se_UntagResourceCommand = void 0;
5
- exports.de_UpdateTypeCommand = exports.de_UpdateSourceApiAssociationCommand = exports.de_UpdateResolverCommand = exports.de_UpdateGraphqlApiCommand = exports.de_UpdateFunctionCommand = exports.de_UpdateDomainNameCommand = exports.de_UpdateDataSourceCommand = exports.de_UpdateApiKeyCommand = exports.de_UpdateApiCacheCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartSchemaMergeCommand = exports.de_StartSchemaCreationCommand = exports.de_ListTypesByAssociationCommand = exports.de_ListTypesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceApiAssociationsCommand = exports.de_ListResolversByFunctionCommand = exports.de_ListResolversCommand = exports.de_ListGraphqlApisCommand = void 0;
3
+ exports.se_StartSchemaCreationCommand = exports.se_StartDataSourceIntrospectionCommand = exports.se_ListTypesByAssociationCommand = exports.se_ListTypesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSourceApiAssociationsCommand = exports.se_ListResolversByFunctionCommand = exports.se_ListResolversCommand = exports.se_ListGraphqlApisCommand = exports.se_ListFunctionsCommand = exports.se_ListDomainNamesCommand = exports.se_ListDataSourcesCommand = exports.se_ListApiKeysCommand = exports.se_GetTypeCommand = exports.se_GetSourceApiAssociationCommand = exports.se_GetSchemaCreationStatusCommand = exports.se_GetResolverCommand = exports.se_GetIntrospectionSchemaCommand = exports.se_GetGraphqlApiCommand = exports.se_GetFunctionCommand = exports.se_GetDomainNameCommand = exports.se_GetDataSourceIntrospectionCommand = exports.se_GetDataSourceCommand = exports.se_GetApiCacheCommand = exports.se_GetApiAssociationCommand = exports.se_FlushApiCacheCommand = exports.se_EvaluateMappingTemplateCommand = exports.se_EvaluateCodeCommand = exports.se_DisassociateSourceGraphqlApiCommand = exports.se_DisassociateMergedGraphqlApiCommand = exports.se_DisassociateApiCommand = exports.se_DeleteTypeCommand = exports.se_DeleteResolverCommand = exports.se_DeleteGraphqlApiCommand = exports.se_DeleteFunctionCommand = exports.se_DeleteDomainNameCommand = exports.se_DeleteDataSourceCommand = exports.se_DeleteApiKeyCommand = exports.se_DeleteApiCacheCommand = exports.se_CreateTypeCommand = exports.se_CreateResolverCommand = exports.se_CreateGraphqlApiCommand = exports.se_CreateFunctionCommand = exports.se_CreateDomainNameCommand = exports.se_CreateDataSourceCommand = exports.se_CreateApiKeyCommand = exports.se_CreateApiCacheCommand = exports.se_AssociateSourceGraphqlApiCommand = exports.se_AssociateMergedGraphqlApiCommand = exports.se_AssociateApiCommand = void 0;
4
+ exports.de_ListApiKeysCommand = exports.de_GetTypeCommand = exports.de_GetSourceApiAssociationCommand = exports.de_GetSchemaCreationStatusCommand = exports.de_GetResolverCommand = exports.de_GetIntrospectionSchemaCommand = exports.de_GetGraphqlApiCommand = exports.de_GetFunctionCommand = exports.de_GetDomainNameCommand = exports.de_GetDataSourceIntrospectionCommand = exports.de_GetDataSourceCommand = exports.de_GetApiCacheCommand = exports.de_GetApiAssociationCommand = exports.de_FlushApiCacheCommand = exports.de_EvaluateMappingTemplateCommand = exports.de_EvaluateCodeCommand = exports.de_DisassociateSourceGraphqlApiCommand = exports.de_DisassociateMergedGraphqlApiCommand = exports.de_DisassociateApiCommand = exports.de_DeleteTypeCommand = exports.de_DeleteResolverCommand = exports.de_DeleteGraphqlApiCommand = exports.de_DeleteFunctionCommand = exports.de_DeleteDomainNameCommand = exports.de_DeleteDataSourceCommand = exports.de_DeleteApiKeyCommand = exports.de_DeleteApiCacheCommand = exports.de_CreateTypeCommand = exports.de_CreateResolverCommand = exports.de_CreateGraphqlApiCommand = exports.de_CreateFunctionCommand = exports.de_CreateDomainNameCommand = exports.de_CreateDataSourceCommand = exports.de_CreateApiKeyCommand = exports.de_CreateApiCacheCommand = exports.de_AssociateSourceGraphqlApiCommand = exports.de_AssociateMergedGraphqlApiCommand = exports.de_AssociateApiCommand = exports.se_UpdateTypeCommand = exports.se_UpdateSourceApiAssociationCommand = exports.se_UpdateResolverCommand = exports.se_UpdateGraphqlApiCommand = exports.se_UpdateFunctionCommand = exports.se_UpdateDomainNameCommand = exports.se_UpdateDataSourceCommand = exports.se_UpdateApiKeyCommand = exports.se_UpdateApiCacheCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartSchemaMergeCommand = void 0;
5
+ exports.de_UpdateTypeCommand = exports.de_UpdateSourceApiAssociationCommand = exports.de_UpdateResolverCommand = exports.de_UpdateGraphqlApiCommand = exports.de_UpdateFunctionCommand = exports.de_UpdateDomainNameCommand = exports.de_UpdateDataSourceCommand = exports.de_UpdateApiKeyCommand = exports.de_UpdateApiCacheCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartSchemaMergeCommand = exports.de_StartSchemaCreationCommand = exports.de_StartDataSourceIntrospectionCommand = exports.de_ListTypesByAssociationCommand = exports.de_ListTypesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceApiAssociationsCommand = exports.de_ListResolversByFunctionCommand = exports.de_ListResolversCommand = exports.de_ListGraphqlApisCommand = exports.de_ListFunctionsCommand = exports.de_ListDomainNamesCommand = exports.de_ListDataSourcesCommand = void 0;
6
6
  const protocol_http_1 = require("@smithy/protocol-http");
7
7
  const smithy_client_1 = require("@smithy/smithy-client");
8
8
  const AppSyncServiceException_1 = require("../models/AppSyncServiceException");
@@ -620,6 +620,30 @@ const se_GetDataSourceCommand = async (input, context) => {
620
620
  });
621
621
  };
622
622
  exports.se_GetDataSourceCommand = se_GetDataSourceCommand;
623
+ const se_GetDataSourceIntrospectionCommand = async (input, context) => {
624
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
625
+ const headers = {};
626
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
627
+ "/v1/datasources/introspections/{introspectionId}";
628
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "introspectionId", () => input.introspectionId, "{introspectionId}", false);
629
+ const query = (0, smithy_client_1.map)({
630
+ includeModelsSDL: [() => input.includeModelsSDL !== void 0, () => input.includeModelsSDL.toString()],
631
+ nextToken: [, input.nextToken],
632
+ maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
633
+ });
634
+ let body;
635
+ return new protocol_http_1.HttpRequest({
636
+ protocol,
637
+ hostname,
638
+ port,
639
+ method: "GET",
640
+ headers,
641
+ path: resolvedPath,
642
+ query,
643
+ body,
644
+ });
645
+ };
646
+ exports.se_GetDataSourceIntrospectionCommand = se_GetDataSourceIntrospectionCommand;
623
647
  const se_GetDomainNameCommand = async (input, context) => {
624
648
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
625
649
  const headers = {};
@@ -1017,6 +1041,27 @@ const se_ListTypesByAssociationCommand = async (input, context) => {
1017
1041
  });
1018
1042
  };
1019
1043
  exports.se_ListTypesByAssociationCommand = se_ListTypesByAssociationCommand;
1044
+ const se_StartDataSourceIntrospectionCommand = async (input, context) => {
1045
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1046
+ const headers = {
1047
+ "content-type": "application/json",
1048
+ };
1049
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/datasources/introspections";
1050
+ let body;
1051
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1052
+ rdsDataApiConfig: (_) => (0, smithy_client_1._json)(_),
1053
+ }));
1054
+ return new protocol_http_1.HttpRequest({
1055
+ protocol,
1056
+ hostname,
1057
+ port,
1058
+ method: "POST",
1059
+ headers,
1060
+ path: resolvedPath,
1061
+ body,
1062
+ });
1063
+ };
1064
+ exports.se_StartDataSourceIntrospectionCommand = se_StartDataSourceIntrospectionCommand;
1020
1065
  const se_StartSchemaCreationCommand = async (input, context) => {
1021
1066
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1022
1067
  const headers = {
@@ -2589,6 +2634,49 @@ const de_GetDataSourceCommandError = async (output, context) => {
2589
2634
  });
2590
2635
  }
2591
2636
  };
2637
+ const de_GetDataSourceIntrospectionCommand = async (output, context) => {
2638
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2639
+ return de_GetDataSourceIntrospectionCommandError(output, context);
2640
+ }
2641
+ const contents = (0, smithy_client_1.map)({
2642
+ $metadata: deserializeMetadata(output),
2643
+ });
2644
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2645
+ const doc = (0, smithy_client_1.take)(data, {
2646
+ introspectionId: smithy_client_1.expectString,
2647
+ introspectionResult: (_) => de_DataSourceIntrospectionResult(_, context),
2648
+ introspectionStatus: smithy_client_1.expectString,
2649
+ introspectionStatusDetail: smithy_client_1.expectString,
2650
+ });
2651
+ Object.assign(contents, doc);
2652
+ return contents;
2653
+ };
2654
+ exports.de_GetDataSourceIntrospectionCommand = de_GetDataSourceIntrospectionCommand;
2655
+ const de_GetDataSourceIntrospectionCommandError = async (output, context) => {
2656
+ const parsedOutput = {
2657
+ ...output,
2658
+ body: await parseErrorBody(output.body, context),
2659
+ };
2660
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2661
+ switch (errorCode) {
2662
+ case "BadRequestException":
2663
+ case "com.amazonaws.appsync#BadRequestException":
2664
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
2665
+ case "InternalFailureException":
2666
+ case "com.amazonaws.appsync#InternalFailureException":
2667
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
2668
+ case "NotFoundException":
2669
+ case "com.amazonaws.appsync#NotFoundException":
2670
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
2671
+ default:
2672
+ const parsedBody = parsedOutput.body;
2673
+ return throwDefaultError({
2674
+ output,
2675
+ parsedBody,
2676
+ errorCode,
2677
+ });
2678
+ }
2679
+ };
2592
2680
  const de_GetDomainNameCommand = async (output, context) => {
2593
2681
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2594
2682
  return de_GetDomainNameCommandError(output, context);
@@ -3420,6 +3508,51 @@ const de_ListTypesByAssociationCommandError = async (output, context) => {
3420
3508
  });
3421
3509
  }
3422
3510
  };
3511
+ const de_StartDataSourceIntrospectionCommand = async (output, context) => {
3512
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3513
+ return de_StartDataSourceIntrospectionCommandError(output, context);
3514
+ }
3515
+ const contents = (0, smithy_client_1.map)({
3516
+ $metadata: deserializeMetadata(output),
3517
+ });
3518
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3519
+ const doc = (0, smithy_client_1.take)(data, {
3520
+ introspectionId: smithy_client_1.expectString,
3521
+ introspectionStatus: smithy_client_1.expectString,
3522
+ introspectionStatusDetail: smithy_client_1.expectString,
3523
+ });
3524
+ Object.assign(contents, doc);
3525
+ return contents;
3526
+ };
3527
+ exports.de_StartDataSourceIntrospectionCommand = de_StartDataSourceIntrospectionCommand;
3528
+ const de_StartDataSourceIntrospectionCommandError = async (output, context) => {
3529
+ const parsedOutput = {
3530
+ ...output,
3531
+ body: await parseErrorBody(output.body, context),
3532
+ };
3533
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3534
+ switch (errorCode) {
3535
+ case "BadRequestException":
3536
+ case "com.amazonaws.appsync#BadRequestException":
3537
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
3538
+ case "InternalFailureException":
3539
+ case "com.amazonaws.appsync#InternalFailureException":
3540
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
3541
+ case "NotFoundException":
3542
+ case "com.amazonaws.appsync#NotFoundException":
3543
+ throw await de_NotFoundExceptionRes(parsedOutput, context);
3544
+ case "UnauthorizedException":
3545
+ case "com.amazonaws.appsync#UnauthorizedException":
3546
+ throw await de_UnauthorizedExceptionRes(parsedOutput, context);
3547
+ default:
3548
+ const parsedBody = parsedOutput.body;
3549
+ return throwDefaultError({
3550
+ output,
3551
+ parsedBody,
3552
+ errorCode,
3553
+ });
3554
+ }
3555
+ };
3423
3556
  const de_StartSchemaCreationCommand = async (output, context) => {
3424
3557
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3425
3558
  return de_StartSchemaCreationCommandError(output, context);
@@ -4165,6 +4298,52 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
4165
4298
  });
4166
4299
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4167
4300
  };
4301
+ const de_DataSourceIntrospectionModel = (output, context) => {
4302
+ return (0, smithy_client_1.take)(output, {
4303
+ fields: (_) => de_DataSourceIntrospectionModelFields(_, context),
4304
+ indexes: smithy_client_1._json,
4305
+ name: smithy_client_1.expectString,
4306
+ primaryKey: smithy_client_1._json,
4307
+ sdl: smithy_client_1.expectString,
4308
+ });
4309
+ };
4310
+ const de_DataSourceIntrospectionModelField = (output, context) => {
4311
+ return (0, smithy_client_1.take)(output, {
4312
+ length: smithy_client_1.expectLong,
4313
+ name: smithy_client_1.expectString,
4314
+ type: (_) => de_DataSourceIntrospectionModelFieldType(_, context),
4315
+ });
4316
+ };
4317
+ const de_DataSourceIntrospectionModelFields = (output, context) => {
4318
+ const retVal = (output || [])
4319
+ .filter((e) => e != null)
4320
+ .map((entry) => {
4321
+ return de_DataSourceIntrospectionModelField(entry, context);
4322
+ });
4323
+ return retVal;
4324
+ };
4325
+ const de_DataSourceIntrospectionModelFieldType = (output, context) => {
4326
+ return (0, smithy_client_1.take)(output, {
4327
+ kind: smithy_client_1.expectString,
4328
+ name: smithy_client_1.expectString,
4329
+ type: (_) => de_DataSourceIntrospectionModelFieldType(_, context),
4330
+ values: smithy_client_1._json,
4331
+ });
4332
+ };
4333
+ const de_DataSourceIntrospectionModels = (output, context) => {
4334
+ const retVal = (output || [])
4335
+ .filter((e) => e != null)
4336
+ .map((entry) => {
4337
+ return de_DataSourceIntrospectionModel(entry, context);
4338
+ });
4339
+ return retVal;
4340
+ };
4341
+ const de_DataSourceIntrospectionResult = (output, context) => {
4342
+ return (0, smithy_client_1.take)(output, {
4343
+ models: (_) => de_DataSourceIntrospectionModels(_, context),
4344
+ nextToken: smithy_client_1.expectString,
4345
+ });
4346
+ };
4168
4347
  const de_SourceApiAssociation = (output, context) => {
4169
4348
  return (0, smithy_client_1.take)(output, {
4170
4349
  associationArn: smithy_client_1.expectString,
@@ -28,6 +28,7 @@ import { FlushApiCacheCommand, } from "./commands/FlushApiCacheCommand";
28
28
  import { GetApiAssociationCommand, } from "./commands/GetApiAssociationCommand";
29
29
  import { GetApiCacheCommand } from "./commands/GetApiCacheCommand";
30
30
  import { GetDataSourceCommand, } from "./commands/GetDataSourceCommand";
31
+ import { GetDataSourceIntrospectionCommand, } from "./commands/GetDataSourceIntrospectionCommand";
31
32
  import { GetDomainNameCommand, } from "./commands/GetDomainNameCommand";
32
33
  import { GetFunctionCommand } from "./commands/GetFunctionCommand";
33
34
  import { GetGraphqlApiCommand, } from "./commands/GetGraphqlApiCommand";
@@ -47,6 +48,7 @@ import { ListSourceApiAssociationsCommand, } from "./commands/ListSourceApiAssoc
47
48
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
48
49
  import { ListTypesByAssociationCommand, } from "./commands/ListTypesByAssociationCommand";
49
50
  import { ListTypesCommand } from "./commands/ListTypesCommand";
51
+ import { StartDataSourceIntrospectionCommand, } from "./commands/StartDataSourceIntrospectionCommand";
50
52
  import { StartSchemaCreationCommand, } from "./commands/StartSchemaCreationCommand";
51
53
  import { StartSchemaMergeCommand, } from "./commands/StartSchemaMergeCommand";
52
54
  import { TagResourceCommand } from "./commands/TagResourceCommand";
@@ -89,6 +91,7 @@ const commands = {
89
91
  GetApiAssociationCommand,
90
92
  GetApiCacheCommand,
91
93
  GetDataSourceCommand,
94
+ GetDataSourceIntrospectionCommand,
92
95
  GetDomainNameCommand,
93
96
  GetFunctionCommand,
94
97
  GetGraphqlApiCommand,
@@ -108,6 +111,7 @@ const commands = {
108
111
  ListTagsForResourceCommand,
109
112
  ListTypesCommand,
110
113
  ListTypesByAssociationCommand,
114
+ StartDataSourceIntrospectionCommand,
111
115
  StartSchemaCreationCommand,
112
116
  StartSchemaMergeCommand,
113
117
  TagResourceCommand,
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_GetDataSourceIntrospectionCommand, se_GetDataSourceIntrospectionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetDataSourceIntrospectionCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetDataSourceIntrospectionCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "AppSyncClient";
26
+ const commandName = "GetDataSourceIntrospectionCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSDeepdishControlPlaneService",
35
+ operation: "GetDataSourceIntrospection",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_GetDataSourceIntrospectionCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_GetDataSourceIntrospectionCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_StartDataSourceIntrospectionCommand, se_StartDataSourceIntrospectionCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StartDataSourceIntrospectionCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, StartDataSourceIntrospectionCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "AppSyncClient";
26
+ const commandName = "StartDataSourceIntrospectionCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSDeepdishControlPlaneService",
35
+ operation: "StartDataSourceIntrospection",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_StartDataSourceIntrospectionCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_StartDataSourceIntrospectionCommand(output, context);
46
+ }
47
+ }
@@ -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";
@@ -232,6 +232,11 @@ export const TypeDefinitionFormat = {
232
232
  JSON: "JSON",
233
233
  SDL: "SDL",
234
234
  };
235
+ export const DataSourceIntrospectionStatus = {
236
+ FAILED: "FAILED",
237
+ PROCESSING: "PROCESSING",
238
+ SUCCESS: "SUCCESS",
239
+ };
235
240
  export const OutputType = {
236
241
  JSON: "JSON",
237
242
  SDL: "SDL",