@aws-sdk/client-appsync 3.337.0 → 3.339.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.
- package/README.md +72 -0
- package/dist-cjs/AppSync.js +18 -0
- package/dist-cjs/AppSyncClient.js +2 -1
- package/dist-cjs/commands/AssociateApiCommand.js +2 -1
- package/dist-cjs/commands/AssociateMergedGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/AssociateSourceGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/CreateApiCacheCommand.js +2 -1
- package/dist-cjs/commands/CreateApiKeyCommand.js +2 -1
- package/dist-cjs/commands/CreateDataSourceCommand.js +2 -1
- package/dist-cjs/commands/CreateDomainNameCommand.js +2 -1
- package/dist-cjs/commands/CreateFunctionCommand.js +2 -1
- package/dist-cjs/commands/CreateGraphqlApiCommand.js +2 -1
- package/dist-cjs/commands/CreateResolverCommand.js +2 -1
- package/dist-cjs/commands/CreateTypeCommand.js +2 -1
- package/dist-cjs/commands/DeleteApiCacheCommand.js +2 -1
- package/dist-cjs/commands/DeleteApiKeyCommand.js +2 -1
- package/dist-cjs/commands/DeleteDataSourceCommand.js +2 -1
- package/dist-cjs/commands/DeleteDomainNameCommand.js +2 -1
- package/dist-cjs/commands/DeleteFunctionCommand.js +2 -1
- package/dist-cjs/commands/DeleteGraphqlApiCommand.js +2 -1
- package/dist-cjs/commands/DeleteResolverCommand.js +2 -1
- package/dist-cjs/commands/DeleteTypeCommand.js +2 -1
- package/dist-cjs/commands/DisassociateApiCommand.js +2 -1
- package/dist-cjs/commands/DisassociateMergedGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/DisassociateSourceGraphqlApiCommand.js +46 -0
- package/dist-cjs/commands/EvaluateCodeCommand.js +2 -1
- package/dist-cjs/commands/EvaluateMappingTemplateCommand.js +2 -1
- package/dist-cjs/commands/FlushApiCacheCommand.js +2 -1
- package/dist-cjs/commands/GetApiAssociationCommand.js +2 -1
- package/dist-cjs/commands/GetApiCacheCommand.js +2 -1
- package/dist-cjs/commands/GetDataSourceCommand.js +2 -1
- package/dist-cjs/commands/GetDomainNameCommand.js +2 -1
- package/dist-cjs/commands/GetFunctionCommand.js +2 -1
- package/dist-cjs/commands/GetGraphqlApiCommand.js +2 -1
- package/dist-cjs/commands/GetIntrospectionSchemaCommand.js +2 -1
- package/dist-cjs/commands/GetResolverCommand.js +2 -1
- package/dist-cjs/commands/GetSchemaCreationStatusCommand.js +2 -1
- package/dist-cjs/commands/GetSourceApiAssociationCommand.js +46 -0
- package/dist-cjs/commands/GetTypeCommand.js +2 -1
- package/dist-cjs/commands/ListApiKeysCommand.js +2 -1
- package/dist-cjs/commands/ListDataSourcesCommand.js +2 -1
- package/dist-cjs/commands/ListDomainNamesCommand.js +2 -1
- package/dist-cjs/commands/ListFunctionsCommand.js +2 -1
- package/dist-cjs/commands/ListGraphqlApisCommand.js +2 -1
- package/dist-cjs/commands/ListResolversByFunctionCommand.js +2 -1
- package/dist-cjs/commands/ListResolversCommand.js +2 -1
- package/dist-cjs/commands/ListSourceApiAssociationsCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -1
- package/dist-cjs/commands/ListTypesByAssociationCommand.js +46 -0
- package/dist-cjs/commands/ListTypesCommand.js +2 -1
- package/dist-cjs/commands/StartSchemaCreationCommand.js +2 -1
- package/dist-cjs/commands/StartSchemaMergeCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +2 -1
- package/dist-cjs/commands/UntagResourceCommand.js +2 -1
- package/dist-cjs/commands/UpdateApiCacheCommand.js +2 -1
- package/dist-cjs/commands/UpdateApiKeyCommand.js +2 -1
- package/dist-cjs/commands/UpdateDataSourceCommand.js +2 -1
- package/dist-cjs/commands/UpdateDomainNameCommand.js +2 -1
- package/dist-cjs/commands/UpdateFunctionCommand.js +2 -1
- package/dist-cjs/commands/UpdateGraphqlApiCommand.js +2 -1
- package/dist-cjs/commands/UpdateResolverCommand.js +2 -1
- package/dist-cjs/commands/UpdateSourceApiAssociationCommand.js +46 -0
- package/dist-cjs/commands/UpdateTypeCommand.js +2 -1
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/index.js +1 -1
- package/dist-cjs/models/AppSyncServiceException.js +2 -1
- package/dist-cjs/models/models_0.js +35 -13
- package/dist-cjs/protocols/Aws_restJson1.js +652 -16
- package/dist-es/AppSync.js +18 -0
- package/dist-es/AppSyncClient.js +1 -0
- package/dist-es/commands/AssociateApiCommand.js +1 -0
- package/dist-es/commands/AssociateMergedGraphqlApiCommand.js +42 -0
- package/dist-es/commands/AssociateSourceGraphqlApiCommand.js +42 -0
- package/dist-es/commands/CreateApiCacheCommand.js +1 -0
- package/dist-es/commands/CreateApiKeyCommand.js +1 -0
- package/dist-es/commands/CreateDataSourceCommand.js +1 -0
- package/dist-es/commands/CreateDomainNameCommand.js +1 -0
- package/dist-es/commands/CreateFunctionCommand.js +1 -0
- package/dist-es/commands/CreateGraphqlApiCommand.js +1 -0
- package/dist-es/commands/CreateResolverCommand.js +1 -0
- package/dist-es/commands/CreateTypeCommand.js +1 -0
- package/dist-es/commands/DeleteApiCacheCommand.js +1 -0
- package/dist-es/commands/DeleteApiKeyCommand.js +1 -0
- package/dist-es/commands/DeleteDataSourceCommand.js +1 -0
- package/dist-es/commands/DeleteDomainNameCommand.js +1 -0
- package/dist-es/commands/DeleteFunctionCommand.js +1 -0
- package/dist-es/commands/DeleteGraphqlApiCommand.js +1 -0
- package/dist-es/commands/DeleteResolverCommand.js +1 -0
- package/dist-es/commands/DeleteTypeCommand.js +1 -0
- package/dist-es/commands/DisassociateApiCommand.js +1 -0
- package/dist-es/commands/DisassociateMergedGraphqlApiCommand.js +42 -0
- package/dist-es/commands/DisassociateSourceGraphqlApiCommand.js +42 -0
- package/dist-es/commands/EvaluateCodeCommand.js +1 -0
- package/dist-es/commands/EvaluateMappingTemplateCommand.js +1 -0
- package/dist-es/commands/FlushApiCacheCommand.js +1 -0
- package/dist-es/commands/GetApiAssociationCommand.js +1 -0
- package/dist-es/commands/GetApiCacheCommand.js +1 -0
- package/dist-es/commands/GetDataSourceCommand.js +1 -0
- package/dist-es/commands/GetDomainNameCommand.js +1 -0
- package/dist-es/commands/GetFunctionCommand.js +1 -0
- package/dist-es/commands/GetGraphqlApiCommand.js +1 -0
- package/dist-es/commands/GetIntrospectionSchemaCommand.js +1 -0
- package/dist-es/commands/GetResolverCommand.js +1 -0
- package/dist-es/commands/GetSchemaCreationStatusCommand.js +1 -0
- package/dist-es/commands/GetSourceApiAssociationCommand.js +42 -0
- package/dist-es/commands/GetTypeCommand.js +1 -0
- package/dist-es/commands/ListApiKeysCommand.js +1 -0
- package/dist-es/commands/ListDataSourcesCommand.js +1 -0
- package/dist-es/commands/ListDomainNamesCommand.js +1 -0
- package/dist-es/commands/ListFunctionsCommand.js +1 -0
- package/dist-es/commands/ListGraphqlApisCommand.js +1 -0
- package/dist-es/commands/ListResolversByFunctionCommand.js +1 -0
- package/dist-es/commands/ListResolversCommand.js +1 -0
- package/dist-es/commands/ListSourceApiAssociationsCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +1 -0
- package/dist-es/commands/ListTypesByAssociationCommand.js +42 -0
- package/dist-es/commands/ListTypesCommand.js +1 -0
- package/dist-es/commands/StartSchemaCreationCommand.js +1 -0
- package/dist-es/commands/StartSchemaMergeCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +1 -0
- package/dist-es/commands/UntagResourceCommand.js +1 -0
- package/dist-es/commands/UpdateApiCacheCommand.js +1 -0
- package/dist-es/commands/UpdateApiKeyCommand.js +1 -0
- package/dist-es/commands/UpdateDataSourceCommand.js +1 -0
- package/dist-es/commands/UpdateDomainNameCommand.js +1 -0
- package/dist-es/commands/UpdateFunctionCommand.js +1 -0
- package/dist-es/commands/UpdateGraphqlApiCommand.js +1 -0
- package/dist-es/commands/UpdateResolverCommand.js +1 -0
- package/dist-es/commands/UpdateSourceApiAssociationCommand.js +42 -0
- package/dist-es/commands/UpdateTypeCommand.js +1 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/index.js +1 -1
- package/dist-es/models/AppSyncServiceException.js +1 -0
- package/dist-es/models/models_0.js +32 -10
- package/dist-es/protocols/Aws_restJson1.js +632 -14
- package/dist-types/AppSync.d.ts +63 -0
- package/dist-types/AppSyncClient.d.ts +14 -5
- package/dist-types/commands/AssociateApiCommand.d.ts +4 -0
- package/dist-types/commands/AssociateMergedGraphqlApiCommand.d.ts +113 -0
- package/dist-types/commands/AssociateSourceGraphqlApiCommand.d.ts +113 -0
- package/dist-types/commands/CreateApiCacheCommand.d.ts +4 -0
- package/dist-types/commands/CreateApiKeyCommand.d.ts +4 -0
- package/dist-types/commands/CreateDataSourceCommand.d.ts +4 -0
- package/dist-types/commands/CreateDomainNameCommand.d.ts +4 -0
- package/dist-types/commands/CreateFunctionCommand.d.ts +4 -0
- package/dist-types/commands/CreateGraphqlApiCommand.d.ts +11 -0
- package/dist-types/commands/CreateResolverCommand.d.ts +4 -0
- package/dist-types/commands/CreateTypeCommand.d.ts +4 -0
- package/dist-types/commands/DeleteApiCacheCommand.d.ts +4 -0
- package/dist-types/commands/DeleteApiKeyCommand.d.ts +4 -0
- package/dist-types/commands/DeleteDataSourceCommand.d.ts +4 -0
- package/dist-types/commands/DeleteDomainNameCommand.d.ts +4 -0
- package/dist-types/commands/DeleteFunctionCommand.d.ts +4 -0
- package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +4 -0
- package/dist-types/commands/DeleteResolverCommand.d.ts +4 -0
- package/dist-types/commands/DeleteTypeCommand.d.ts +4 -0
- package/dist-types/commands/DisassociateApiCommand.d.ts +4 -0
- package/dist-types/commands/DisassociateMergedGraphqlApiCommand.d.ts +93 -0
- package/dist-types/commands/DisassociateSourceGraphqlApiCommand.d.ts +93 -0
- package/dist-types/commands/EvaluateCodeCommand.d.ts +4 -0
- package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +4 -0
- package/dist-types/commands/FlushApiCacheCommand.d.ts +4 -0
- package/dist-types/commands/GetApiAssociationCommand.d.ts +4 -0
- package/dist-types/commands/GetApiCacheCommand.d.ts +4 -0
- package/dist-types/commands/GetDataSourceCommand.d.ts +4 -0
- package/dist-types/commands/GetDomainNameCommand.d.ts +4 -0
- package/dist-types/commands/GetFunctionCommand.d.ts +4 -0
- package/dist-types/commands/GetGraphqlApiCommand.d.ts +8 -0
- package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +4 -0
- package/dist-types/commands/GetResolverCommand.d.ts +4 -0
- package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +4 -0
- package/dist-types/commands/GetSourceApiAssociationCommand.d.ts +102 -0
- package/dist-types/commands/GetTypeCommand.d.ts +4 -0
- package/dist-types/commands/ListApiKeysCommand.d.ts +4 -0
- package/dist-types/commands/ListDataSourcesCommand.d.ts +4 -0
- package/dist-types/commands/ListDomainNamesCommand.d.ts +4 -0
- package/dist-types/commands/ListFunctionsCommand.d.ts +4 -0
- package/dist-types/commands/ListGraphqlApisCommand.d.ts +10 -0
- package/dist-types/commands/ListResolversByFunctionCommand.d.ts +4 -0
- package/dist-types/commands/ListResolversCommand.d.ts +4 -0
- package/dist-types/commands/ListSourceApiAssociationsCommand.d.ts +100 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -0
- package/dist-types/commands/ListTypesByAssociationCommand.d.ts +104 -0
- package/dist-types/commands/ListTypesCommand.d.ts +4 -0
- package/dist-types/commands/StartSchemaCreationCommand.d.ts +4 -0
- package/dist-types/commands/StartSchemaMergeCommand.d.ts +92 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateApiCacheCommand.d.ts +4 -0
- package/dist-types/commands/UpdateApiKeyCommand.d.ts +4 -0
- package/dist-types/commands/UpdateDataSourceCommand.d.ts +4 -0
- package/dist-types/commands/UpdateDomainNameCommand.d.ts +4 -0
- package/dist-types/commands/UpdateFunctionCommand.d.ts +4 -0
- package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +10 -0
- package/dist-types/commands/UpdateResolverCommand.d.ts +4 -0
- package/dist-types/commands/UpdateSourceApiAssociationCommand.d.ts +110 -0
- package/dist-types/commands/UpdateTypeCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/index.d.ts +7 -1
- package/dist-types/models/AppSyncServiceException.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +516 -39
- package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
- package/dist-types/ts3.4/AppSync.d.ts +153 -0
- package/dist-types/ts3.4/AppSyncClient.d.ts +57 -3
- package/dist-types/ts3.4/commands/AssociateApiCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/AssociateMergedGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/AssociateSourceGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateApiCacheCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateApiKeyCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateDataSourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateDomainNameCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateFunctionCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateGraphqlApiCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateResolverCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/CreateTypeCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteApiCacheCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteApiKeyCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteDomainNameCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteFunctionCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteGraphqlApiCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteResolverCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DeleteTypeCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DisassociateApiCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/DisassociateMergedGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DisassociateSourceGraphqlApiCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/EvaluateCodeCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/EvaluateMappingTemplateCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/FlushApiCacheCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetApiAssociationCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetApiCacheCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetDomainNameCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetFunctionCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetGraphqlApiCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetIntrospectionSchemaCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetResolverCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetSchemaCreationStatusCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetSourceApiAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetTypeCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListApiKeysCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListDomainNamesCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListFunctionsCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListGraphqlApisCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListResolversByFunctionCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListResolversCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListSourceApiAssociationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/ListTypesByAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListTypesCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/StartSchemaCreationCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/StartSchemaMergeCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateApiCacheCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateApiKeyCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateDomainNameCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateFunctionCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateGraphqlApiCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateResolverCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/UpdateSourceApiAssociationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateTypeCommand.d.ts +1 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +1 -1
- package/dist-types/ts3.4/models/AppSyncServiceException.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +163 -24
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/package.json +28 -28
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpdateTypeCommand = exports.de_UpdateResolverCommand = void 0;
|
|
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;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
8
|
const AppSyncServiceException_1 = require("../models/AppSyncServiceException");
|
|
@@ -30,6 +30,56 @@ const se_AssociateApiCommand = async (input, context) => {
|
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
exports.se_AssociateApiCommand = se_AssociateApiCommand;
|
|
33
|
+
const se_AssociateMergedGraphqlApiCommand = async (input, context) => {
|
|
34
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
|
+
const headers = {
|
|
36
|
+
"content-type": "application/json",
|
|
37
|
+
};
|
|
38
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
39
|
+
"/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations";
|
|
40
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
|
|
41
|
+
let body;
|
|
42
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
|
+
description: [],
|
|
44
|
+
mergedApiIdentifier: [],
|
|
45
|
+
sourceApiAssociationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
46
|
+
}));
|
|
47
|
+
return new protocol_http_1.HttpRequest({
|
|
48
|
+
protocol,
|
|
49
|
+
hostname,
|
|
50
|
+
port,
|
|
51
|
+
method: "POST",
|
|
52
|
+
headers,
|
|
53
|
+
path: resolvedPath,
|
|
54
|
+
body,
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
exports.se_AssociateMergedGraphqlApiCommand = se_AssociateMergedGraphqlApiCommand;
|
|
58
|
+
const se_AssociateSourceGraphqlApiCommand = async (input, context) => {
|
|
59
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
60
|
+
const headers = {
|
|
61
|
+
"content-type": "application/json",
|
|
62
|
+
};
|
|
63
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
64
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations";
|
|
65
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
66
|
+
let body;
|
|
67
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
68
|
+
description: [],
|
|
69
|
+
sourceApiAssociationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
70
|
+
sourceApiIdentifier: [],
|
|
71
|
+
}));
|
|
72
|
+
return new protocol_http_1.HttpRequest({
|
|
73
|
+
protocol,
|
|
74
|
+
hostname,
|
|
75
|
+
port,
|
|
76
|
+
method: "POST",
|
|
77
|
+
headers,
|
|
78
|
+
path: resolvedPath,
|
|
79
|
+
body,
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
exports.se_AssociateSourceGraphqlApiCommand = se_AssociateSourceGraphqlApiCommand;
|
|
33
83
|
const se_CreateApiCacheCommand = async (input, context) => {
|
|
34
84
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
85
|
const headers = {
|
|
@@ -174,11 +224,14 @@ const se_CreateGraphqlApiCommand = async (input, context) => {
|
|
|
174
224
|
let body;
|
|
175
225
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
176
226
|
additionalAuthenticationProviders: (_) => (0, smithy_client_1._json)(_),
|
|
227
|
+
apiType: [],
|
|
177
228
|
authenticationType: [],
|
|
178
229
|
lambdaAuthorizerConfig: (_) => (0, smithy_client_1._json)(_),
|
|
179
230
|
logConfig: (_) => (0, smithy_client_1._json)(_),
|
|
231
|
+
mergedApiExecutionRoleArn: [],
|
|
180
232
|
name: [],
|
|
181
233
|
openIDConnectConfig: (_) => (0, smithy_client_1._json)(_),
|
|
234
|
+
ownerContact: [],
|
|
182
235
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
183
236
|
userPoolConfig: (_) => (0, smithy_client_1._json)(_),
|
|
184
237
|
visibility: [],
|
|
@@ -413,6 +466,44 @@ const se_DisassociateApiCommand = async (input, context) => {
|
|
|
413
466
|
});
|
|
414
467
|
};
|
|
415
468
|
exports.se_DisassociateApiCommand = se_DisassociateApiCommand;
|
|
469
|
+
const se_DisassociateMergedGraphqlApiCommand = async (input, context) => {
|
|
470
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
471
|
+
const headers = {};
|
|
472
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
473
|
+
"/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}";
|
|
474
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sourceApiIdentifier", () => input.sourceApiIdentifier, "{sourceApiIdentifier}", false);
|
|
475
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
476
|
+
let body;
|
|
477
|
+
return new protocol_http_1.HttpRequest({
|
|
478
|
+
protocol,
|
|
479
|
+
hostname,
|
|
480
|
+
port,
|
|
481
|
+
method: "DELETE",
|
|
482
|
+
headers,
|
|
483
|
+
path: resolvedPath,
|
|
484
|
+
body,
|
|
485
|
+
});
|
|
486
|
+
};
|
|
487
|
+
exports.se_DisassociateMergedGraphqlApiCommand = se_DisassociateMergedGraphqlApiCommand;
|
|
488
|
+
const se_DisassociateSourceGraphqlApiCommand = async (input, context) => {
|
|
489
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
490
|
+
const headers = {};
|
|
491
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
492
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
|
|
493
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
494
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
495
|
+
let body;
|
|
496
|
+
return new protocol_http_1.HttpRequest({
|
|
497
|
+
protocol,
|
|
498
|
+
hostname,
|
|
499
|
+
port,
|
|
500
|
+
method: "DELETE",
|
|
501
|
+
headers,
|
|
502
|
+
path: resolvedPath,
|
|
503
|
+
body,
|
|
504
|
+
});
|
|
505
|
+
};
|
|
506
|
+
exports.se_DisassociateSourceGraphqlApiCommand = se_DisassociateSourceGraphqlApiCommand;
|
|
416
507
|
const se_EvaluateCodeCommand = async (input, context) => {
|
|
417
508
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
418
509
|
const headers = {
|
|
@@ -640,6 +731,25 @@ const se_GetSchemaCreationStatusCommand = async (input, context) => {
|
|
|
640
731
|
});
|
|
641
732
|
};
|
|
642
733
|
exports.se_GetSchemaCreationStatusCommand = se_GetSchemaCreationStatusCommand;
|
|
734
|
+
const se_GetSourceApiAssociationCommand = async (input, context) => {
|
|
735
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
736
|
+
const headers = {};
|
|
737
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
738
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
|
|
739
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
740
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
741
|
+
let body;
|
|
742
|
+
return new protocol_http_1.HttpRequest({
|
|
743
|
+
protocol,
|
|
744
|
+
hostname,
|
|
745
|
+
port,
|
|
746
|
+
method: "GET",
|
|
747
|
+
headers,
|
|
748
|
+
path: resolvedPath,
|
|
749
|
+
body,
|
|
750
|
+
});
|
|
751
|
+
};
|
|
752
|
+
exports.se_GetSourceApiAssociationCommand = se_GetSourceApiAssociationCommand;
|
|
643
753
|
const se_GetTypeCommand = async (input, context) => {
|
|
644
754
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
645
755
|
const headers = {};
|
|
@@ -756,6 +866,8 @@ const se_ListGraphqlApisCommand = async (input, context) => {
|
|
|
756
866
|
const query = (0, smithy_client_1.map)({
|
|
757
867
|
nextToken: [, input.nextToken],
|
|
758
868
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
869
|
+
apiType: [, input.apiType],
|
|
870
|
+
owner: [, input.owner],
|
|
759
871
|
});
|
|
760
872
|
let body;
|
|
761
873
|
return new protocol_http_1.HttpRequest({
|
|
@@ -818,6 +930,28 @@ const se_ListResolversByFunctionCommand = async (input, context) => {
|
|
|
818
930
|
});
|
|
819
931
|
};
|
|
820
932
|
exports.se_ListResolversByFunctionCommand = se_ListResolversByFunctionCommand;
|
|
933
|
+
const se_ListSourceApiAssociationsCommand = async (input, context) => {
|
|
934
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
935
|
+
const headers = {};
|
|
936
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/sourceApiAssociations";
|
|
937
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
938
|
+
const query = (0, smithy_client_1.map)({
|
|
939
|
+
nextToken: [, input.nextToken],
|
|
940
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
941
|
+
});
|
|
942
|
+
let body;
|
|
943
|
+
return new protocol_http_1.HttpRequest({
|
|
944
|
+
protocol,
|
|
945
|
+
hostname,
|
|
946
|
+
port,
|
|
947
|
+
method: "GET",
|
|
948
|
+
headers,
|
|
949
|
+
path: resolvedPath,
|
|
950
|
+
query,
|
|
951
|
+
body,
|
|
952
|
+
});
|
|
953
|
+
};
|
|
954
|
+
exports.se_ListSourceApiAssociationsCommand = se_ListSourceApiAssociationsCommand;
|
|
821
955
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
822
956
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
823
957
|
const headers = {};
|
|
@@ -858,6 +992,31 @@ const se_ListTypesCommand = async (input, context) => {
|
|
|
858
992
|
});
|
|
859
993
|
};
|
|
860
994
|
exports.se_ListTypesCommand = se_ListTypesCommand;
|
|
995
|
+
const se_ListTypesByAssociationCommand = async (input, context) => {
|
|
996
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
997
|
+
const headers = {};
|
|
998
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
999
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types";
|
|
1000
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
1001
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
1002
|
+
const query = (0, smithy_client_1.map)({
|
|
1003
|
+
format: [, (0, smithy_client_1.expectNonNull)(input.format, `format`)],
|
|
1004
|
+
nextToken: [, input.nextToken],
|
|
1005
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1006
|
+
});
|
|
1007
|
+
let body;
|
|
1008
|
+
return new protocol_http_1.HttpRequest({
|
|
1009
|
+
protocol,
|
|
1010
|
+
hostname,
|
|
1011
|
+
port,
|
|
1012
|
+
method: "GET",
|
|
1013
|
+
headers,
|
|
1014
|
+
path: resolvedPath,
|
|
1015
|
+
query,
|
|
1016
|
+
body,
|
|
1017
|
+
});
|
|
1018
|
+
};
|
|
1019
|
+
exports.se_ListTypesByAssociationCommand = se_ListTypesByAssociationCommand;
|
|
861
1020
|
const se_StartSchemaCreationCommand = async (input, context) => {
|
|
862
1021
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
863
1022
|
const headers = {
|
|
@@ -880,6 +1039,25 @@ const se_StartSchemaCreationCommand = async (input, context) => {
|
|
|
880
1039
|
});
|
|
881
1040
|
};
|
|
882
1041
|
exports.se_StartSchemaCreationCommand = se_StartSchemaCreationCommand;
|
|
1042
|
+
const se_StartSchemaMergeCommand = async (input, context) => {
|
|
1043
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1044
|
+
const headers = {};
|
|
1045
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1046
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge";
|
|
1047
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
1048
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
1049
|
+
let body;
|
|
1050
|
+
return new protocol_http_1.HttpRequest({
|
|
1051
|
+
protocol,
|
|
1052
|
+
hostname,
|
|
1053
|
+
port,
|
|
1054
|
+
method: "POST",
|
|
1055
|
+
headers,
|
|
1056
|
+
path: resolvedPath,
|
|
1057
|
+
body,
|
|
1058
|
+
});
|
|
1059
|
+
};
|
|
1060
|
+
exports.se_StartSchemaMergeCommand = se_StartSchemaMergeCommand;
|
|
883
1061
|
const se_TagResourceCommand = async (input, context) => {
|
|
884
1062
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
885
1063
|
const headers = {
|
|
@@ -1073,8 +1251,10 @@ const se_UpdateGraphqlApiCommand = async (input, context) => {
|
|
|
1073
1251
|
authenticationType: [],
|
|
1074
1252
|
lambdaAuthorizerConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1075
1253
|
logConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1254
|
+
mergedApiExecutionRoleArn: [],
|
|
1076
1255
|
name: [],
|
|
1077
1256
|
openIDConnectConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1257
|
+
ownerContact: [],
|
|
1078
1258
|
userPoolConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1079
1259
|
xrayEnabled: [],
|
|
1080
1260
|
}));
|
|
@@ -1123,6 +1303,31 @@ const se_UpdateResolverCommand = async (input, context) => {
|
|
|
1123
1303
|
});
|
|
1124
1304
|
};
|
|
1125
1305
|
exports.se_UpdateResolverCommand = se_UpdateResolverCommand;
|
|
1306
|
+
const se_UpdateSourceApiAssociationCommand = async (input, context) => {
|
|
1307
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1308
|
+
const headers = {
|
|
1309
|
+
"content-type": "application/json",
|
|
1310
|
+
};
|
|
1311
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1312
|
+
"/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}";
|
|
1313
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "associationId", () => input.associationId, "{associationId}", false);
|
|
1314
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "mergedApiIdentifier", () => input.mergedApiIdentifier, "{mergedApiIdentifier}", false);
|
|
1315
|
+
let body;
|
|
1316
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1317
|
+
description: [],
|
|
1318
|
+
sourceApiAssociationConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1319
|
+
}));
|
|
1320
|
+
return new protocol_http_1.HttpRequest({
|
|
1321
|
+
protocol,
|
|
1322
|
+
hostname,
|
|
1323
|
+
port,
|
|
1324
|
+
method: "POST",
|
|
1325
|
+
headers,
|
|
1326
|
+
path: resolvedPath,
|
|
1327
|
+
body,
|
|
1328
|
+
});
|
|
1329
|
+
};
|
|
1330
|
+
exports.se_UpdateSourceApiAssociationCommand = se_UpdateSourceApiAssociationCommand;
|
|
1126
1331
|
const se_UpdateTypeCommand = async (input, context) => {
|
|
1127
1332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1128
1333
|
const headers = {
|
|
@@ -1190,6 +1395,104 @@ const de_AssociateApiCommandError = async (output, context) => {
|
|
|
1190
1395
|
});
|
|
1191
1396
|
}
|
|
1192
1397
|
};
|
|
1398
|
+
const de_AssociateMergedGraphqlApiCommand = async (output, context) => {
|
|
1399
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1400
|
+
return de_AssociateMergedGraphqlApiCommandError(output, context);
|
|
1401
|
+
}
|
|
1402
|
+
const contents = (0, smithy_client_1.map)({
|
|
1403
|
+
$metadata: deserializeMetadata(output),
|
|
1404
|
+
});
|
|
1405
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1406
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1407
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
1408
|
+
});
|
|
1409
|
+
Object.assign(contents, doc);
|
|
1410
|
+
return contents;
|
|
1411
|
+
};
|
|
1412
|
+
exports.de_AssociateMergedGraphqlApiCommand = de_AssociateMergedGraphqlApiCommand;
|
|
1413
|
+
const de_AssociateMergedGraphqlApiCommandError = async (output, context) => {
|
|
1414
|
+
const parsedOutput = {
|
|
1415
|
+
...output,
|
|
1416
|
+
body: await parseErrorBody(output.body, context),
|
|
1417
|
+
};
|
|
1418
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1419
|
+
switch (errorCode) {
|
|
1420
|
+
case "BadRequestException":
|
|
1421
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
1422
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1423
|
+
case "ConcurrentModificationException":
|
|
1424
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1425
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1426
|
+
case "InternalFailureException":
|
|
1427
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
1428
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1429
|
+
case "LimitExceededException":
|
|
1430
|
+
case "com.amazonaws.appsync#LimitExceededException":
|
|
1431
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1432
|
+
case "NotFoundException":
|
|
1433
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
1434
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1435
|
+
case "UnauthorizedException":
|
|
1436
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1437
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1438
|
+
default:
|
|
1439
|
+
const parsedBody = parsedOutput.body;
|
|
1440
|
+
return throwDefaultError({
|
|
1441
|
+
output,
|
|
1442
|
+
parsedBody,
|
|
1443
|
+
errorCode,
|
|
1444
|
+
});
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
const de_AssociateSourceGraphqlApiCommand = async (output, context) => {
|
|
1448
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
|
+
return de_AssociateSourceGraphqlApiCommandError(output, context);
|
|
1450
|
+
}
|
|
1451
|
+
const contents = (0, smithy_client_1.map)({
|
|
1452
|
+
$metadata: deserializeMetadata(output),
|
|
1453
|
+
});
|
|
1454
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1455
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1456
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
1457
|
+
});
|
|
1458
|
+
Object.assign(contents, doc);
|
|
1459
|
+
return contents;
|
|
1460
|
+
};
|
|
1461
|
+
exports.de_AssociateSourceGraphqlApiCommand = de_AssociateSourceGraphqlApiCommand;
|
|
1462
|
+
const de_AssociateSourceGraphqlApiCommandError = async (output, context) => {
|
|
1463
|
+
const parsedOutput = {
|
|
1464
|
+
...output,
|
|
1465
|
+
body: await parseErrorBody(output.body, context),
|
|
1466
|
+
};
|
|
1467
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
+
switch (errorCode) {
|
|
1469
|
+
case "BadRequestException":
|
|
1470
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
1471
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1472
|
+
case "ConcurrentModificationException":
|
|
1473
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
1474
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1475
|
+
case "InternalFailureException":
|
|
1476
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
1477
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1478
|
+
case "LimitExceededException":
|
|
1479
|
+
case "com.amazonaws.appsync#LimitExceededException":
|
|
1480
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1481
|
+
case "NotFoundException":
|
|
1482
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
1483
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1484
|
+
case "UnauthorizedException":
|
|
1485
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
1486
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1487
|
+
default:
|
|
1488
|
+
const parsedBody = parsedOutput.body;
|
|
1489
|
+
return throwDefaultError({
|
|
1490
|
+
output,
|
|
1491
|
+
parsedBody,
|
|
1492
|
+
errorCode,
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1495
|
+
};
|
|
1193
1496
|
const de_CreateApiCacheCommand = async (output, context) => {
|
|
1194
1497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1195
1498
|
return de_CreateApiCacheCommandError(output, context);
|
|
@@ -1933,42 +2236,134 @@ const de_DisassociateApiCommandError = async (output, context) => {
|
|
|
1933
2236
|
});
|
|
1934
2237
|
}
|
|
1935
2238
|
};
|
|
1936
|
-
const
|
|
2239
|
+
const de_DisassociateMergedGraphqlApiCommand = async (output, context) => {
|
|
1937
2240
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1938
|
-
return
|
|
2241
|
+
return de_DisassociateMergedGraphqlApiCommandError(output, context);
|
|
1939
2242
|
}
|
|
1940
2243
|
const contents = (0, smithy_client_1.map)({
|
|
1941
2244
|
$metadata: deserializeMetadata(output),
|
|
1942
2245
|
});
|
|
1943
2246
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1944
2247
|
const doc = (0, smithy_client_1.take)(data, {
|
|
1945
|
-
|
|
1946
|
-
evaluationResult: smithy_client_1.expectString,
|
|
1947
|
-
logs: smithy_client_1._json,
|
|
2248
|
+
sourceApiAssociationStatus: smithy_client_1.expectString,
|
|
1948
2249
|
});
|
|
1949
2250
|
Object.assign(contents, doc);
|
|
1950
2251
|
return contents;
|
|
1951
2252
|
};
|
|
1952
|
-
exports.
|
|
1953
|
-
const
|
|
2253
|
+
exports.de_DisassociateMergedGraphqlApiCommand = de_DisassociateMergedGraphqlApiCommand;
|
|
2254
|
+
const de_DisassociateMergedGraphqlApiCommandError = async (output, context) => {
|
|
1954
2255
|
const parsedOutput = {
|
|
1955
2256
|
...output,
|
|
1956
2257
|
body: await parseErrorBody(output.body, context),
|
|
1957
2258
|
};
|
|
1958
2259
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1959
2260
|
switch (errorCode) {
|
|
1960
|
-
case "AccessDeniedException":
|
|
1961
|
-
case "com.amazonaws.appsync#AccessDeniedException":
|
|
1962
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1963
2261
|
case "BadRequestException":
|
|
1964
2262
|
case "com.amazonaws.appsync#BadRequestException":
|
|
1965
2263
|
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2264
|
+
case "ConcurrentModificationException":
|
|
2265
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2266
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1966
2267
|
case "InternalFailureException":
|
|
1967
2268
|
case "com.amazonaws.appsync#InternalFailureException":
|
|
1968
2269
|
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
2270
|
+
case "NotFoundException":
|
|
2271
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
2272
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2273
|
+
case "UnauthorizedException":
|
|
2274
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2275
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2276
|
+
default:
|
|
2277
|
+
const parsedBody = parsedOutput.body;
|
|
2278
|
+
return throwDefaultError({
|
|
2279
|
+
output,
|
|
2280
|
+
parsedBody,
|
|
2281
|
+
errorCode,
|
|
2282
|
+
});
|
|
2283
|
+
}
|
|
2284
|
+
};
|
|
2285
|
+
const de_DisassociateSourceGraphqlApiCommand = async (output, context) => {
|
|
2286
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2287
|
+
return de_DisassociateSourceGraphqlApiCommandError(output, context);
|
|
2288
|
+
}
|
|
2289
|
+
const contents = (0, smithy_client_1.map)({
|
|
2290
|
+
$metadata: deserializeMetadata(output),
|
|
2291
|
+
});
|
|
2292
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2293
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2294
|
+
sourceApiAssociationStatus: smithy_client_1.expectString,
|
|
2295
|
+
});
|
|
2296
|
+
Object.assign(contents, doc);
|
|
2297
|
+
return contents;
|
|
2298
|
+
};
|
|
2299
|
+
exports.de_DisassociateSourceGraphqlApiCommand = de_DisassociateSourceGraphqlApiCommand;
|
|
2300
|
+
const de_DisassociateSourceGraphqlApiCommandError = async (output, context) => {
|
|
2301
|
+
const parsedOutput = {
|
|
2302
|
+
...output,
|
|
2303
|
+
body: await parseErrorBody(output.body, context),
|
|
2304
|
+
};
|
|
2305
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2306
|
+
switch (errorCode) {
|
|
2307
|
+
case "BadRequestException":
|
|
2308
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
2309
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2310
|
+
case "ConcurrentModificationException":
|
|
2311
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
2312
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
2313
|
+
case "InternalFailureException":
|
|
2314
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
2315
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2316
|
+
case "NotFoundException":
|
|
2317
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
2318
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2319
|
+
case "UnauthorizedException":
|
|
2320
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2321
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2322
|
+
default:
|
|
2323
|
+
const parsedBody = parsedOutput.body;
|
|
2324
|
+
return throwDefaultError({
|
|
2325
|
+
output,
|
|
2326
|
+
parsedBody,
|
|
2327
|
+
errorCode,
|
|
2328
|
+
});
|
|
2329
|
+
}
|
|
2330
|
+
};
|
|
2331
|
+
const de_EvaluateCodeCommand = async (output, context) => {
|
|
2332
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2333
|
+
return de_EvaluateCodeCommandError(output, context);
|
|
2334
|
+
}
|
|
2335
|
+
const contents = (0, smithy_client_1.map)({
|
|
2336
|
+
$metadata: deserializeMetadata(output),
|
|
2337
|
+
});
|
|
2338
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2339
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2340
|
+
error: smithy_client_1._json,
|
|
2341
|
+
evaluationResult: smithy_client_1.expectString,
|
|
2342
|
+
logs: smithy_client_1._json,
|
|
2343
|
+
});
|
|
2344
|
+
Object.assign(contents, doc);
|
|
2345
|
+
return contents;
|
|
2346
|
+
};
|
|
2347
|
+
exports.de_EvaluateCodeCommand = de_EvaluateCodeCommand;
|
|
2348
|
+
const de_EvaluateCodeCommandError = async (output, context) => {
|
|
2349
|
+
const parsedOutput = {
|
|
2350
|
+
...output,
|
|
2351
|
+
body: await parseErrorBody(output.body, context),
|
|
2352
|
+
};
|
|
2353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
+
switch (errorCode) {
|
|
2355
|
+
case "AccessDeniedException":
|
|
2356
|
+
case "com.amazonaws.appsync#AccessDeniedException":
|
|
2357
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2358
|
+
case "BadRequestException":
|
|
2359
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
2360
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2361
|
+
case "InternalFailureException":
|
|
2362
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
2363
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2364
|
+
default:
|
|
2365
|
+
const parsedBody = parsedOutput.body;
|
|
2366
|
+
return throwDefaultError({
|
|
1972
2367
|
output,
|
|
1973
2368
|
parsedBody,
|
|
1974
2369
|
errorCode,
|
|
@@ -2447,6 +2842,49 @@ const de_GetSchemaCreationStatusCommandError = async (output, context) => {
|
|
|
2447
2842
|
});
|
|
2448
2843
|
}
|
|
2449
2844
|
};
|
|
2845
|
+
const de_GetSourceApiAssociationCommand = async (output, context) => {
|
|
2846
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2847
|
+
return de_GetSourceApiAssociationCommandError(output, context);
|
|
2848
|
+
}
|
|
2849
|
+
const contents = (0, smithy_client_1.map)({
|
|
2850
|
+
$metadata: deserializeMetadata(output),
|
|
2851
|
+
});
|
|
2852
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2853
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2854
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
2855
|
+
});
|
|
2856
|
+
Object.assign(contents, doc);
|
|
2857
|
+
return contents;
|
|
2858
|
+
};
|
|
2859
|
+
exports.de_GetSourceApiAssociationCommand = de_GetSourceApiAssociationCommand;
|
|
2860
|
+
const de_GetSourceApiAssociationCommandError = async (output, context) => {
|
|
2861
|
+
const parsedOutput = {
|
|
2862
|
+
...output,
|
|
2863
|
+
body: await parseErrorBody(output.body, context),
|
|
2864
|
+
};
|
|
2865
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2866
|
+
switch (errorCode) {
|
|
2867
|
+
case "BadRequestException":
|
|
2868
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
2869
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2870
|
+
case "InternalFailureException":
|
|
2871
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
2872
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
2873
|
+
case "NotFoundException":
|
|
2874
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
2875
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2876
|
+
case "UnauthorizedException":
|
|
2877
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
2878
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
2879
|
+
default:
|
|
2880
|
+
const parsedBody = parsedOutput.body;
|
|
2881
|
+
return throwDefaultError({
|
|
2882
|
+
output,
|
|
2883
|
+
parsedBody,
|
|
2884
|
+
errorCode,
|
|
2885
|
+
});
|
|
2886
|
+
}
|
|
2887
|
+
};
|
|
2450
2888
|
const de_GetTypeCommand = async (output, context) => {
|
|
2451
2889
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2452
2890
|
return de_GetTypeCommandError(output, context);
|
|
@@ -2795,6 +3233,50 @@ const de_ListResolversByFunctionCommandError = async (output, context) => {
|
|
|
2795
3233
|
});
|
|
2796
3234
|
}
|
|
2797
3235
|
};
|
|
3236
|
+
const de_ListSourceApiAssociationsCommand = async (output, context) => {
|
|
3237
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3238
|
+
return de_ListSourceApiAssociationsCommandError(output, context);
|
|
3239
|
+
}
|
|
3240
|
+
const contents = (0, smithy_client_1.map)({
|
|
3241
|
+
$metadata: deserializeMetadata(output),
|
|
3242
|
+
});
|
|
3243
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3244
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3245
|
+
nextToken: smithy_client_1.expectString,
|
|
3246
|
+
sourceApiAssociationSummaries: smithy_client_1._json,
|
|
3247
|
+
});
|
|
3248
|
+
Object.assign(contents, doc);
|
|
3249
|
+
return contents;
|
|
3250
|
+
};
|
|
3251
|
+
exports.de_ListSourceApiAssociationsCommand = de_ListSourceApiAssociationsCommand;
|
|
3252
|
+
const de_ListSourceApiAssociationsCommandError = async (output, context) => {
|
|
3253
|
+
const parsedOutput = {
|
|
3254
|
+
...output,
|
|
3255
|
+
body: await parseErrorBody(output.body, context),
|
|
3256
|
+
};
|
|
3257
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3258
|
+
switch (errorCode) {
|
|
3259
|
+
case "BadRequestException":
|
|
3260
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3261
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3262
|
+
case "InternalFailureException":
|
|
3263
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3264
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3265
|
+
case "NotFoundException":
|
|
3266
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3267
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3268
|
+
case "UnauthorizedException":
|
|
3269
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3270
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3271
|
+
default:
|
|
3272
|
+
const parsedBody = parsedOutput.body;
|
|
3273
|
+
return throwDefaultError({
|
|
3274
|
+
output,
|
|
3275
|
+
parsedBody,
|
|
3276
|
+
errorCode,
|
|
3277
|
+
});
|
|
3278
|
+
}
|
|
3279
|
+
};
|
|
2798
3280
|
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2799
3281
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2800
3282
|
return de_ListTagsForResourceCommandError(output, context);
|
|
@@ -2891,6 +3373,53 @@ const de_ListTypesCommandError = async (output, context) => {
|
|
|
2891
3373
|
});
|
|
2892
3374
|
}
|
|
2893
3375
|
};
|
|
3376
|
+
const de_ListTypesByAssociationCommand = async (output, context) => {
|
|
3377
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3378
|
+
return de_ListTypesByAssociationCommandError(output, context);
|
|
3379
|
+
}
|
|
3380
|
+
const contents = (0, smithy_client_1.map)({
|
|
3381
|
+
$metadata: deserializeMetadata(output),
|
|
3382
|
+
});
|
|
3383
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3384
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3385
|
+
nextToken: smithy_client_1.expectString,
|
|
3386
|
+
types: smithy_client_1._json,
|
|
3387
|
+
});
|
|
3388
|
+
Object.assign(contents, doc);
|
|
3389
|
+
return contents;
|
|
3390
|
+
};
|
|
3391
|
+
exports.de_ListTypesByAssociationCommand = de_ListTypesByAssociationCommand;
|
|
3392
|
+
const de_ListTypesByAssociationCommandError = async (output, context) => {
|
|
3393
|
+
const parsedOutput = {
|
|
3394
|
+
...output,
|
|
3395
|
+
body: await parseErrorBody(output.body, context),
|
|
3396
|
+
};
|
|
3397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3398
|
+
switch (errorCode) {
|
|
3399
|
+
case "BadRequestException":
|
|
3400
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3401
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3402
|
+
case "ConcurrentModificationException":
|
|
3403
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3404
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3405
|
+
case "InternalFailureException":
|
|
3406
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3407
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3408
|
+
case "NotFoundException":
|
|
3409
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3410
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3411
|
+
case "UnauthorizedException":
|
|
3412
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3413
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3414
|
+
default:
|
|
3415
|
+
const parsedBody = parsedOutput.body;
|
|
3416
|
+
return throwDefaultError({
|
|
3417
|
+
output,
|
|
3418
|
+
parsedBody,
|
|
3419
|
+
errorCode,
|
|
3420
|
+
});
|
|
3421
|
+
}
|
|
3422
|
+
};
|
|
2894
3423
|
const de_StartSchemaCreationCommand = async (output, context) => {
|
|
2895
3424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2896
3425
|
return de_StartSchemaCreationCommandError(output, context);
|
|
@@ -2937,6 +3466,52 @@ const de_StartSchemaCreationCommandError = async (output, context) => {
|
|
|
2937
3466
|
});
|
|
2938
3467
|
}
|
|
2939
3468
|
};
|
|
3469
|
+
const de_StartSchemaMergeCommand = async (output, context) => {
|
|
3470
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3471
|
+
return de_StartSchemaMergeCommandError(output, context);
|
|
3472
|
+
}
|
|
3473
|
+
const contents = (0, smithy_client_1.map)({
|
|
3474
|
+
$metadata: deserializeMetadata(output),
|
|
3475
|
+
});
|
|
3476
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3477
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3478
|
+
sourceApiAssociationStatus: smithy_client_1.expectString,
|
|
3479
|
+
});
|
|
3480
|
+
Object.assign(contents, doc);
|
|
3481
|
+
return contents;
|
|
3482
|
+
};
|
|
3483
|
+
exports.de_StartSchemaMergeCommand = de_StartSchemaMergeCommand;
|
|
3484
|
+
const de_StartSchemaMergeCommandError = async (output, context) => {
|
|
3485
|
+
const parsedOutput = {
|
|
3486
|
+
...output,
|
|
3487
|
+
body: await parseErrorBody(output.body, context),
|
|
3488
|
+
};
|
|
3489
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3490
|
+
switch (errorCode) {
|
|
3491
|
+
case "BadRequestException":
|
|
3492
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3493
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3494
|
+
case "ConcurrentModificationException":
|
|
3495
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3496
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3497
|
+
case "InternalFailureException":
|
|
3498
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3499
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3500
|
+
case "NotFoundException":
|
|
3501
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3502
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3503
|
+
case "UnauthorizedException":
|
|
3504
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3505
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3506
|
+
default:
|
|
3507
|
+
const parsedBody = parsedOutput.body;
|
|
3508
|
+
return throwDefaultError({
|
|
3509
|
+
output,
|
|
3510
|
+
parsedBody,
|
|
3511
|
+
errorCode,
|
|
3512
|
+
});
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
2940
3515
|
const de_TagResourceCommand = async (output, context) => {
|
|
2941
3516
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2942
3517
|
return de_TagResourceCommandError(output, context);
|
|
@@ -3352,6 +3927,52 @@ const de_UpdateResolverCommandError = async (output, context) => {
|
|
|
3352
3927
|
});
|
|
3353
3928
|
}
|
|
3354
3929
|
};
|
|
3930
|
+
const de_UpdateSourceApiAssociationCommand = async (output, context) => {
|
|
3931
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3932
|
+
return de_UpdateSourceApiAssociationCommandError(output, context);
|
|
3933
|
+
}
|
|
3934
|
+
const contents = (0, smithy_client_1.map)({
|
|
3935
|
+
$metadata: deserializeMetadata(output),
|
|
3936
|
+
});
|
|
3937
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3938
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3939
|
+
sourceApiAssociation: (_) => de_SourceApiAssociation(_, context),
|
|
3940
|
+
});
|
|
3941
|
+
Object.assign(contents, doc);
|
|
3942
|
+
return contents;
|
|
3943
|
+
};
|
|
3944
|
+
exports.de_UpdateSourceApiAssociationCommand = de_UpdateSourceApiAssociationCommand;
|
|
3945
|
+
const de_UpdateSourceApiAssociationCommandError = async (output, context) => {
|
|
3946
|
+
const parsedOutput = {
|
|
3947
|
+
...output,
|
|
3948
|
+
body: await parseErrorBody(output.body, context),
|
|
3949
|
+
};
|
|
3950
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3951
|
+
switch (errorCode) {
|
|
3952
|
+
case "BadRequestException":
|
|
3953
|
+
case "com.amazonaws.appsync#BadRequestException":
|
|
3954
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3955
|
+
case "ConcurrentModificationException":
|
|
3956
|
+
case "com.amazonaws.appsync#ConcurrentModificationException":
|
|
3957
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
3958
|
+
case "InternalFailureException":
|
|
3959
|
+
case "com.amazonaws.appsync#InternalFailureException":
|
|
3960
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
3961
|
+
case "NotFoundException":
|
|
3962
|
+
case "com.amazonaws.appsync#NotFoundException":
|
|
3963
|
+
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3964
|
+
case "UnauthorizedException":
|
|
3965
|
+
case "com.amazonaws.appsync#UnauthorizedException":
|
|
3966
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
3967
|
+
default:
|
|
3968
|
+
const parsedBody = parsedOutput.body;
|
|
3969
|
+
return throwDefaultError({
|
|
3970
|
+
output,
|
|
3971
|
+
parsedBody,
|
|
3972
|
+
errorCode,
|
|
3973
|
+
});
|
|
3974
|
+
}
|
|
3975
|
+
};
|
|
3355
3976
|
const de_UpdateTypeCommand = async (output, context) => {
|
|
3356
3977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3357
3978
|
return de_UpdateTypeCommandError(output, context);
|
|
@@ -3544,6 +4165,21 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
3544
4165
|
});
|
|
3545
4166
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3546
4167
|
};
|
|
4168
|
+
const de_SourceApiAssociation = (output, context) => {
|
|
4169
|
+
return (0, smithy_client_1.take)(output, {
|
|
4170
|
+
associationArn: smithy_client_1.expectString,
|
|
4171
|
+
associationId: smithy_client_1.expectString,
|
|
4172
|
+
description: smithy_client_1.expectString,
|
|
4173
|
+
lastSuccessfulMergeDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4174
|
+
mergedApiArn: smithy_client_1.expectString,
|
|
4175
|
+
mergedApiId: smithy_client_1.expectString,
|
|
4176
|
+
sourceApiArn: smithy_client_1.expectString,
|
|
4177
|
+
sourceApiAssociationConfig: smithy_client_1._json,
|
|
4178
|
+
sourceApiAssociationStatus: smithy_client_1.expectString,
|
|
4179
|
+
sourceApiAssociationStatusDetail: smithy_client_1.expectString,
|
|
4180
|
+
sourceApiId: smithy_client_1.expectString,
|
|
4181
|
+
});
|
|
4182
|
+
};
|
|
3547
4183
|
const deserializeMetadata = (output) => ({
|
|
3548
4184
|
httpStatusCode: output.statusCode,
|
|
3549
4185
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|