@aws-sdk/client-appsync 3.35.0 → 3.36.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/CHANGELOG.md +13 -0
- package/dist-cjs/AppSync.js +0 -1
- package/dist-cjs/AppSyncClient.js +0 -1
- package/dist-cjs/commands/CreateApiCacheCommand.js +0 -1
- package/dist-cjs/commands/CreateApiKeyCommand.js +0 -1
- package/dist-cjs/commands/CreateDataSourceCommand.js +0 -1
- package/dist-cjs/commands/CreateFunctionCommand.js +0 -1
- package/dist-cjs/commands/CreateGraphqlApiCommand.js +0 -1
- package/dist-cjs/commands/CreateResolverCommand.js +0 -1
- package/dist-cjs/commands/CreateTypeCommand.js +0 -1
- package/dist-cjs/commands/DeleteApiCacheCommand.js +0 -1
- package/dist-cjs/commands/DeleteApiKeyCommand.js +0 -1
- package/dist-cjs/commands/DeleteDataSourceCommand.js +0 -1
- package/dist-cjs/commands/DeleteFunctionCommand.js +0 -1
- package/dist-cjs/commands/DeleteGraphqlApiCommand.js +0 -1
- package/dist-cjs/commands/DeleteResolverCommand.js +0 -1
- package/dist-cjs/commands/DeleteTypeCommand.js +0 -1
- package/dist-cjs/commands/FlushApiCacheCommand.js +0 -1
- package/dist-cjs/commands/GetApiCacheCommand.js +0 -1
- package/dist-cjs/commands/GetDataSourceCommand.js +0 -1
- package/dist-cjs/commands/GetFunctionCommand.js +0 -1
- package/dist-cjs/commands/GetGraphqlApiCommand.js +0 -1
- package/dist-cjs/commands/GetIntrospectionSchemaCommand.js +0 -1
- package/dist-cjs/commands/GetResolverCommand.js +0 -1
- package/dist-cjs/commands/GetSchemaCreationStatusCommand.js +0 -1
- package/dist-cjs/commands/GetTypeCommand.js +0 -1
- package/dist-cjs/commands/ListApiKeysCommand.js +0 -1
- package/dist-cjs/commands/ListDataSourcesCommand.js +0 -1
- package/dist-cjs/commands/ListFunctionsCommand.js +0 -1
- package/dist-cjs/commands/ListGraphqlApisCommand.js +0 -1
- package/dist-cjs/commands/ListResolversByFunctionCommand.js +0 -1
- package/dist-cjs/commands/ListResolversCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListTypesCommand.js +0 -1
- package/dist-cjs/commands/StartSchemaCreationCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateApiCacheCommand.js +0 -1
- package/dist-cjs/commands/UpdateApiKeyCommand.js +0 -1
- package/dist-cjs/commands/UpdateDataSourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateFunctionCommand.js +0 -1
- package/dist-cjs/commands/UpdateGraphqlApiCommand.js +0 -1
- package/dist-cjs/commands/UpdateResolverCommand.js +0 -1
- package/dist-cjs/commands/UpdateTypeCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-es/AppSync.js +0 -1
- package/dist-es/AppSyncClient.js +0 -1
- package/dist-es/commands/CreateApiCacheCommand.js +0 -1
- package/dist-es/commands/CreateApiKeyCommand.js +0 -1
- package/dist-es/commands/CreateDataSourceCommand.js +0 -1
- package/dist-es/commands/CreateFunctionCommand.js +0 -1
- package/dist-es/commands/CreateGraphqlApiCommand.js +0 -1
- package/dist-es/commands/CreateResolverCommand.js +0 -1
- package/dist-es/commands/CreateTypeCommand.js +0 -1
- package/dist-es/commands/DeleteApiCacheCommand.js +0 -1
- package/dist-es/commands/DeleteApiKeyCommand.js +0 -1
- package/dist-es/commands/DeleteDataSourceCommand.js +0 -1
- package/dist-es/commands/DeleteFunctionCommand.js +0 -1
- package/dist-es/commands/DeleteGraphqlApiCommand.js +0 -1
- package/dist-es/commands/DeleteResolverCommand.js +0 -1
- package/dist-es/commands/DeleteTypeCommand.js +0 -1
- package/dist-es/commands/FlushApiCacheCommand.js +0 -1
- package/dist-es/commands/GetApiCacheCommand.js +0 -1
- package/dist-es/commands/GetDataSourceCommand.js +0 -1
- package/dist-es/commands/GetFunctionCommand.js +0 -1
- package/dist-es/commands/GetGraphqlApiCommand.js +0 -1
- package/dist-es/commands/GetIntrospectionSchemaCommand.js +0 -1
- package/dist-es/commands/GetResolverCommand.js +0 -1
- package/dist-es/commands/GetSchemaCreationStatusCommand.js +0 -1
- package/dist-es/commands/GetTypeCommand.js +0 -1
- package/dist-es/commands/ListApiKeysCommand.js +0 -1
- package/dist-es/commands/ListDataSourcesCommand.js +0 -1
- package/dist-es/commands/ListFunctionsCommand.js +0 -1
- package/dist-es/commands/ListGraphqlApisCommand.js +0 -1
- package/dist-es/commands/ListResolversByFunctionCommand.js +0 -1
- package/dist-es/commands/ListResolversCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ListTypesCommand.js +0 -1
- package/dist-es/commands/StartSchemaCreationCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateApiCacheCommand.js +0 -1
- package/dist-es/commands/UpdateApiKeyCommand.js +0 -1
- package/dist-es/commands/UpdateDataSourceCommand.js +0 -1
- package/dist-es/commands/UpdateFunctionCommand.js +0 -1
- package/dist-es/commands/UpdateGraphqlApiCommand.js +0 -1
- package/dist-es/commands/UpdateResolverCommand.js +0 -1
- package/dist-es/commands/UpdateTypeCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/package.json +33 -30
- package/dist-cjs/AppSync.js.map +0 -1
- package/dist-cjs/AppSyncClient.js.map +0 -1
- package/dist-cjs/commands/CreateApiCacheCommand.js.map +0 -1
- package/dist-cjs/commands/CreateApiKeyCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/CreateFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateGraphqlApiCommand.js.map +0 -1
- package/dist-cjs/commands/CreateResolverCommand.js.map +0 -1
- package/dist-cjs/commands/CreateTypeCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApiCacheCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteApiKeyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteGraphqlApiCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteResolverCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteTypeCommand.js.map +0 -1
- package/dist-cjs/commands/FlushApiCacheCommand.js.map +0 -1
- package/dist-cjs/commands/GetApiCacheCommand.js.map +0 -1
- package/dist-cjs/commands/GetDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/GetFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/GetGraphqlApiCommand.js.map +0 -1
- package/dist-cjs/commands/GetIntrospectionSchemaCommand.js.map +0 -1
- package/dist-cjs/commands/GetResolverCommand.js.map +0 -1
- package/dist-cjs/commands/GetSchemaCreationStatusCommand.js.map +0 -1
- package/dist-cjs/commands/GetTypeCommand.js.map +0 -1
- package/dist-cjs/commands/ListApiKeysCommand.js.map +0 -1
- package/dist-cjs/commands/ListDataSourcesCommand.js.map +0 -1
- package/dist-cjs/commands/ListFunctionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListGraphqlApisCommand.js.map +0 -1
- package/dist-cjs/commands/ListResolversByFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/ListResolversCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ListTypesCommand.js.map +0 -1
- package/dist-cjs/commands/StartSchemaCreationCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateApiCacheCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateApiKeyCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDataSourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateFunctionCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateGraphqlApiCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateResolverCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateTypeCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/AppSync.js.map +0 -1
- package/dist-es/AppSyncClient.js.map +0 -1
- package/dist-es/commands/CreateApiCacheCommand.js.map +0 -1
- package/dist-es/commands/CreateApiKeyCommand.js.map +0 -1
- package/dist-es/commands/CreateDataSourceCommand.js.map +0 -1
- package/dist-es/commands/CreateFunctionCommand.js.map +0 -1
- package/dist-es/commands/CreateGraphqlApiCommand.js.map +0 -1
- package/dist-es/commands/CreateResolverCommand.js.map +0 -1
- package/dist-es/commands/CreateTypeCommand.js.map +0 -1
- package/dist-es/commands/DeleteApiCacheCommand.js.map +0 -1
- package/dist-es/commands/DeleteApiKeyCommand.js.map +0 -1
- package/dist-es/commands/DeleteDataSourceCommand.js.map +0 -1
- package/dist-es/commands/DeleteFunctionCommand.js.map +0 -1
- package/dist-es/commands/DeleteGraphqlApiCommand.js.map +0 -1
- package/dist-es/commands/DeleteResolverCommand.js.map +0 -1
- package/dist-es/commands/DeleteTypeCommand.js.map +0 -1
- package/dist-es/commands/FlushApiCacheCommand.js.map +0 -1
- package/dist-es/commands/GetApiCacheCommand.js.map +0 -1
- package/dist-es/commands/GetDataSourceCommand.js.map +0 -1
- package/dist-es/commands/GetFunctionCommand.js.map +0 -1
- package/dist-es/commands/GetGraphqlApiCommand.js.map +0 -1
- package/dist-es/commands/GetIntrospectionSchemaCommand.js.map +0 -1
- package/dist-es/commands/GetResolverCommand.js.map +0 -1
- package/dist-es/commands/GetSchemaCreationStatusCommand.js.map +0 -1
- package/dist-es/commands/GetTypeCommand.js.map +0 -1
- package/dist-es/commands/ListApiKeysCommand.js.map +0 -1
- package/dist-es/commands/ListDataSourcesCommand.js.map +0 -1
- package/dist-es/commands/ListFunctionsCommand.js.map +0 -1
- package/dist-es/commands/ListGraphqlApisCommand.js.map +0 -1
- package/dist-es/commands/ListResolversByFunctionCommand.js.map +0 -1
- package/dist-es/commands/ListResolversCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ListTypesCommand.js.map +0 -1
- package/dist-es/commands/StartSchemaCreationCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateApiCacheCommand.js.map +0 -1
- package/dist-es/commands/UpdateApiKeyCommand.js.map +0 -1
- package/dist-es/commands/UpdateDataSourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateFunctionCommand.js.map +0 -1
- package/dist-es/commands/UpdateGraphqlApiCommand.js.map +0 -1
- package/dist-es/commands/UpdateResolverCommand.js.map +0 -1
- package/dist-es/commands/UpdateTypeCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/AppSync.ts +0 -1430
- package/src/AppSyncClient.ts +0 -375
- package/src/commands/CreateApiCacheCommand.ts +0 -95
- package/src/commands/CreateApiKeyCommand.ts +0 -96
- package/src/commands/CreateDataSourceCommand.ts +0 -95
- package/src/commands/CreateFunctionCommand.ts +0 -97
- package/src/commands/CreateGraphqlApiCommand.ts +0 -95
- package/src/commands/CreateResolverCommand.ts +0 -97
- package/src/commands/CreateTypeCommand.ts +0 -95
- package/src/commands/DeleteApiCacheCommand.ts +0 -95
- package/src/commands/DeleteApiKeyCommand.ts +0 -95
- package/src/commands/DeleteDataSourceCommand.ts +0 -95
- package/src/commands/DeleteFunctionCommand.ts +0 -95
- package/src/commands/DeleteGraphqlApiCommand.ts +0 -95
- package/src/commands/DeleteResolverCommand.ts +0 -95
- package/src/commands/DeleteTypeCommand.ts +0 -95
- package/src/commands/FlushApiCacheCommand.ts +0 -95
- package/src/commands/GetApiCacheCommand.ts +0 -95
- package/src/commands/GetDataSourceCommand.ts +0 -95
- package/src/commands/GetFunctionCommand.ts +0 -95
- package/src/commands/GetGraphqlApiCommand.ts +0 -95
- package/src/commands/GetIntrospectionSchemaCommand.ts +0 -95
- package/src/commands/GetResolverCommand.ts +0 -95
- package/src/commands/GetSchemaCreationStatusCommand.ts +0 -95
- package/src/commands/GetTypeCommand.ts +0 -91
- package/src/commands/ListApiKeysCommand.ts +0 -101
- package/src/commands/ListDataSourcesCommand.ts +0 -95
- package/src/commands/ListFunctionsCommand.ts +0 -95
- package/src/commands/ListGraphqlApisCommand.ts +0 -95
- package/src/commands/ListResolversByFunctionCommand.ts +0 -95
- package/src/commands/ListResolversCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ListTypesCommand.ts +0 -95
- package/src/commands/StartSchemaCreationCommand.ts +0 -97
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateApiCacheCommand.ts +0 -95
- package/src/commands/UpdateApiKeyCommand.ts +0 -95
- package/src/commands/UpdateDataSourceCommand.ts +0 -95
- package/src/commands/UpdateFunctionCommand.ts +0 -95
- package/src/commands/UpdateGraphqlApiCommand.ts +0 -95
- package/src/commands/UpdateResolverCommand.ts +0 -95
- package/src/commands/UpdateTypeCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -44
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -3799
- package/src/protocols/Aws_restJson1.ts +0 -6249
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
package/src/AppSyncClient.ts
DELETED
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EndpointsInputConfig,
|
|
3
|
-
EndpointsResolvedConfig,
|
|
4
|
-
RegionInputConfig,
|
|
5
|
-
RegionResolvedConfig,
|
|
6
|
-
resolveEndpointsConfig,
|
|
7
|
-
resolveRegionConfig,
|
|
8
|
-
} from "@aws-sdk/config-resolver";
|
|
9
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
10
|
-
import {
|
|
11
|
-
getHostHeaderPlugin,
|
|
12
|
-
HostHeaderInputConfig,
|
|
13
|
-
HostHeaderResolvedConfig,
|
|
14
|
-
resolveHostHeaderConfig,
|
|
15
|
-
} from "@aws-sdk/middleware-host-header";
|
|
16
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
17
|
-
import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
18
|
-
import {
|
|
19
|
-
AwsAuthInputConfig,
|
|
20
|
-
AwsAuthResolvedConfig,
|
|
21
|
-
getAwsAuthPlugin,
|
|
22
|
-
resolveAwsAuthConfig,
|
|
23
|
-
} from "@aws-sdk/middleware-signing";
|
|
24
|
-
import {
|
|
25
|
-
getUserAgentPlugin,
|
|
26
|
-
resolveUserAgentConfig,
|
|
27
|
-
UserAgentInputConfig,
|
|
28
|
-
UserAgentResolvedConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
30
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
31
|
-
import {
|
|
32
|
-
Client as __Client,
|
|
33
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
34
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
35
|
-
} from "@aws-sdk/smithy-client";
|
|
36
|
-
import {
|
|
37
|
-
Credentials as __Credentials,
|
|
38
|
-
Decoder as __Decoder,
|
|
39
|
-
Encoder as __Encoder,
|
|
40
|
-
Hash as __Hash,
|
|
41
|
-
HashConstructor as __HashConstructor,
|
|
42
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
43
|
-
Logger as __Logger,
|
|
44
|
-
Provider as __Provider,
|
|
45
|
-
Provider,
|
|
46
|
-
RegionInfoProvider,
|
|
47
|
-
StreamCollector as __StreamCollector,
|
|
48
|
-
UrlParser as __UrlParser,
|
|
49
|
-
UserAgent as __UserAgent,
|
|
50
|
-
} from "@aws-sdk/types";
|
|
51
|
-
|
|
52
|
-
import { CreateApiCacheCommandInput, CreateApiCacheCommandOutput } from "./commands/CreateApiCacheCommand";
|
|
53
|
-
import { CreateApiKeyCommandInput, CreateApiKeyCommandOutput } from "./commands/CreateApiKeyCommand";
|
|
54
|
-
import { CreateDataSourceCommandInput, CreateDataSourceCommandOutput } from "./commands/CreateDataSourceCommand";
|
|
55
|
-
import { CreateFunctionCommandInput, CreateFunctionCommandOutput } from "./commands/CreateFunctionCommand";
|
|
56
|
-
import { CreateGraphqlApiCommandInput, CreateGraphqlApiCommandOutput } from "./commands/CreateGraphqlApiCommand";
|
|
57
|
-
import { CreateResolverCommandInput, CreateResolverCommandOutput } from "./commands/CreateResolverCommand";
|
|
58
|
-
import { CreateTypeCommandInput, CreateTypeCommandOutput } from "./commands/CreateTypeCommand";
|
|
59
|
-
import { DeleteApiCacheCommandInput, DeleteApiCacheCommandOutput } from "./commands/DeleteApiCacheCommand";
|
|
60
|
-
import { DeleteApiKeyCommandInput, DeleteApiKeyCommandOutput } from "./commands/DeleteApiKeyCommand";
|
|
61
|
-
import { DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput } from "./commands/DeleteDataSourceCommand";
|
|
62
|
-
import { DeleteFunctionCommandInput, DeleteFunctionCommandOutput } from "./commands/DeleteFunctionCommand";
|
|
63
|
-
import { DeleteGraphqlApiCommandInput, DeleteGraphqlApiCommandOutput } from "./commands/DeleteGraphqlApiCommand";
|
|
64
|
-
import { DeleteResolverCommandInput, DeleteResolverCommandOutput } from "./commands/DeleteResolverCommand";
|
|
65
|
-
import { DeleteTypeCommandInput, DeleteTypeCommandOutput } from "./commands/DeleteTypeCommand";
|
|
66
|
-
import { FlushApiCacheCommandInput, FlushApiCacheCommandOutput } from "./commands/FlushApiCacheCommand";
|
|
67
|
-
import { GetApiCacheCommandInput, GetApiCacheCommandOutput } from "./commands/GetApiCacheCommand";
|
|
68
|
-
import { GetDataSourceCommandInput, GetDataSourceCommandOutput } from "./commands/GetDataSourceCommand";
|
|
69
|
-
import { GetFunctionCommandInput, GetFunctionCommandOutput } from "./commands/GetFunctionCommand";
|
|
70
|
-
import { GetGraphqlApiCommandInput, GetGraphqlApiCommandOutput } from "./commands/GetGraphqlApiCommand";
|
|
71
|
-
import {
|
|
72
|
-
GetIntrospectionSchemaCommandInput,
|
|
73
|
-
GetIntrospectionSchemaCommandOutput,
|
|
74
|
-
} from "./commands/GetIntrospectionSchemaCommand";
|
|
75
|
-
import { GetResolverCommandInput, GetResolverCommandOutput } from "./commands/GetResolverCommand";
|
|
76
|
-
import {
|
|
77
|
-
GetSchemaCreationStatusCommandInput,
|
|
78
|
-
GetSchemaCreationStatusCommandOutput,
|
|
79
|
-
} from "./commands/GetSchemaCreationStatusCommand";
|
|
80
|
-
import { GetTypeCommandInput, GetTypeCommandOutput } from "./commands/GetTypeCommand";
|
|
81
|
-
import { ListApiKeysCommandInput, ListApiKeysCommandOutput } from "./commands/ListApiKeysCommand";
|
|
82
|
-
import { ListDataSourcesCommandInput, ListDataSourcesCommandOutput } from "./commands/ListDataSourcesCommand";
|
|
83
|
-
import { ListFunctionsCommandInput, ListFunctionsCommandOutput } from "./commands/ListFunctionsCommand";
|
|
84
|
-
import { ListGraphqlApisCommandInput, ListGraphqlApisCommandOutput } from "./commands/ListGraphqlApisCommand";
|
|
85
|
-
import {
|
|
86
|
-
ListResolversByFunctionCommandInput,
|
|
87
|
-
ListResolversByFunctionCommandOutput,
|
|
88
|
-
} from "./commands/ListResolversByFunctionCommand";
|
|
89
|
-
import { ListResolversCommandInput, ListResolversCommandOutput } from "./commands/ListResolversCommand";
|
|
90
|
-
import {
|
|
91
|
-
ListTagsForResourceCommandInput,
|
|
92
|
-
ListTagsForResourceCommandOutput,
|
|
93
|
-
} from "./commands/ListTagsForResourceCommand";
|
|
94
|
-
import { ListTypesCommandInput, ListTypesCommandOutput } from "./commands/ListTypesCommand";
|
|
95
|
-
import {
|
|
96
|
-
StartSchemaCreationCommandInput,
|
|
97
|
-
StartSchemaCreationCommandOutput,
|
|
98
|
-
} from "./commands/StartSchemaCreationCommand";
|
|
99
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
100
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
101
|
-
import { UpdateApiCacheCommandInput, UpdateApiCacheCommandOutput } from "./commands/UpdateApiCacheCommand";
|
|
102
|
-
import { UpdateApiKeyCommandInput, UpdateApiKeyCommandOutput } from "./commands/UpdateApiKeyCommand";
|
|
103
|
-
import { UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput } from "./commands/UpdateDataSourceCommand";
|
|
104
|
-
import { UpdateFunctionCommandInput, UpdateFunctionCommandOutput } from "./commands/UpdateFunctionCommand";
|
|
105
|
-
import { UpdateGraphqlApiCommandInput, UpdateGraphqlApiCommandOutput } from "./commands/UpdateGraphqlApiCommand";
|
|
106
|
-
import { UpdateResolverCommandInput, UpdateResolverCommandOutput } from "./commands/UpdateResolverCommand";
|
|
107
|
-
import { UpdateTypeCommandInput, UpdateTypeCommandOutput } from "./commands/UpdateTypeCommand";
|
|
108
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
109
|
-
|
|
110
|
-
export type ServiceInputTypes =
|
|
111
|
-
| CreateApiCacheCommandInput
|
|
112
|
-
| CreateApiKeyCommandInput
|
|
113
|
-
| CreateDataSourceCommandInput
|
|
114
|
-
| CreateFunctionCommandInput
|
|
115
|
-
| CreateGraphqlApiCommandInput
|
|
116
|
-
| CreateResolverCommandInput
|
|
117
|
-
| CreateTypeCommandInput
|
|
118
|
-
| DeleteApiCacheCommandInput
|
|
119
|
-
| DeleteApiKeyCommandInput
|
|
120
|
-
| DeleteDataSourceCommandInput
|
|
121
|
-
| DeleteFunctionCommandInput
|
|
122
|
-
| DeleteGraphqlApiCommandInput
|
|
123
|
-
| DeleteResolverCommandInput
|
|
124
|
-
| DeleteTypeCommandInput
|
|
125
|
-
| FlushApiCacheCommandInput
|
|
126
|
-
| GetApiCacheCommandInput
|
|
127
|
-
| GetDataSourceCommandInput
|
|
128
|
-
| GetFunctionCommandInput
|
|
129
|
-
| GetGraphqlApiCommandInput
|
|
130
|
-
| GetIntrospectionSchemaCommandInput
|
|
131
|
-
| GetResolverCommandInput
|
|
132
|
-
| GetSchemaCreationStatusCommandInput
|
|
133
|
-
| GetTypeCommandInput
|
|
134
|
-
| ListApiKeysCommandInput
|
|
135
|
-
| ListDataSourcesCommandInput
|
|
136
|
-
| ListFunctionsCommandInput
|
|
137
|
-
| ListGraphqlApisCommandInput
|
|
138
|
-
| ListResolversByFunctionCommandInput
|
|
139
|
-
| ListResolversCommandInput
|
|
140
|
-
| ListTagsForResourceCommandInput
|
|
141
|
-
| ListTypesCommandInput
|
|
142
|
-
| StartSchemaCreationCommandInput
|
|
143
|
-
| TagResourceCommandInput
|
|
144
|
-
| UntagResourceCommandInput
|
|
145
|
-
| UpdateApiCacheCommandInput
|
|
146
|
-
| UpdateApiKeyCommandInput
|
|
147
|
-
| UpdateDataSourceCommandInput
|
|
148
|
-
| UpdateFunctionCommandInput
|
|
149
|
-
| UpdateGraphqlApiCommandInput
|
|
150
|
-
| UpdateResolverCommandInput
|
|
151
|
-
| UpdateTypeCommandInput;
|
|
152
|
-
|
|
153
|
-
export type ServiceOutputTypes =
|
|
154
|
-
| CreateApiCacheCommandOutput
|
|
155
|
-
| CreateApiKeyCommandOutput
|
|
156
|
-
| CreateDataSourceCommandOutput
|
|
157
|
-
| CreateFunctionCommandOutput
|
|
158
|
-
| CreateGraphqlApiCommandOutput
|
|
159
|
-
| CreateResolverCommandOutput
|
|
160
|
-
| CreateTypeCommandOutput
|
|
161
|
-
| DeleteApiCacheCommandOutput
|
|
162
|
-
| DeleteApiKeyCommandOutput
|
|
163
|
-
| DeleteDataSourceCommandOutput
|
|
164
|
-
| DeleteFunctionCommandOutput
|
|
165
|
-
| DeleteGraphqlApiCommandOutput
|
|
166
|
-
| DeleteResolverCommandOutput
|
|
167
|
-
| DeleteTypeCommandOutput
|
|
168
|
-
| FlushApiCacheCommandOutput
|
|
169
|
-
| GetApiCacheCommandOutput
|
|
170
|
-
| GetDataSourceCommandOutput
|
|
171
|
-
| GetFunctionCommandOutput
|
|
172
|
-
| GetGraphqlApiCommandOutput
|
|
173
|
-
| GetIntrospectionSchemaCommandOutput
|
|
174
|
-
| GetResolverCommandOutput
|
|
175
|
-
| GetSchemaCreationStatusCommandOutput
|
|
176
|
-
| GetTypeCommandOutput
|
|
177
|
-
| ListApiKeysCommandOutput
|
|
178
|
-
| ListDataSourcesCommandOutput
|
|
179
|
-
| ListFunctionsCommandOutput
|
|
180
|
-
| ListGraphqlApisCommandOutput
|
|
181
|
-
| ListResolversByFunctionCommandOutput
|
|
182
|
-
| ListResolversCommandOutput
|
|
183
|
-
| ListTagsForResourceCommandOutput
|
|
184
|
-
| ListTypesCommandOutput
|
|
185
|
-
| StartSchemaCreationCommandOutput
|
|
186
|
-
| TagResourceCommandOutput
|
|
187
|
-
| UntagResourceCommandOutput
|
|
188
|
-
| UpdateApiCacheCommandOutput
|
|
189
|
-
| UpdateApiKeyCommandOutput
|
|
190
|
-
| UpdateDataSourceCommandOutput
|
|
191
|
-
| UpdateFunctionCommandOutput
|
|
192
|
-
| UpdateGraphqlApiCommandOutput
|
|
193
|
-
| UpdateResolverCommandOutput
|
|
194
|
-
| UpdateTypeCommandOutput;
|
|
195
|
-
|
|
196
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
197
|
-
/**
|
|
198
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
199
|
-
*/
|
|
200
|
-
requestHandler?: __HttpHandler;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
204
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
205
|
-
* @internal
|
|
206
|
-
*/
|
|
207
|
-
sha256?: __HashConstructor;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
211
|
-
* @internal
|
|
212
|
-
*/
|
|
213
|
-
urlParser?: __UrlParser;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* A function that can calculate the length of a request body.
|
|
217
|
-
* @internal
|
|
218
|
-
*/
|
|
219
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* A function that converts a stream into an array of bytes.
|
|
223
|
-
* @internal
|
|
224
|
-
*/
|
|
225
|
-
streamCollector?: __StreamCollector;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
229
|
-
* @internal
|
|
230
|
-
*/
|
|
231
|
-
base64Decoder?: __Decoder;
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
235
|
-
* @internal
|
|
236
|
-
*/
|
|
237
|
-
base64Encoder?: __Encoder;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
241
|
-
* @internal
|
|
242
|
-
*/
|
|
243
|
-
utf8Decoder?: __Decoder;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
247
|
-
* @internal
|
|
248
|
-
*/
|
|
249
|
-
utf8Encoder?: __Encoder;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The runtime environment.
|
|
253
|
-
* @internal
|
|
254
|
-
*/
|
|
255
|
-
runtime?: string;
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
259
|
-
* trait of an operation.
|
|
260
|
-
*/
|
|
261
|
-
disableHostPrefix?: boolean;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
265
|
-
*/
|
|
266
|
-
maxAttempts?: number | __Provider<number>;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Specifies which retry algorithm to use.
|
|
270
|
-
*/
|
|
271
|
-
retryMode?: string | __Provider<string>;
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Optional logger for logging debug/info/warn/error.
|
|
275
|
-
*/
|
|
276
|
-
logger?: __Logger;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Unique service identifier.
|
|
280
|
-
* @internal
|
|
281
|
-
*/
|
|
282
|
-
serviceId?: string;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* The AWS region to which this client will send requests
|
|
286
|
-
*/
|
|
287
|
-
region?: string | __Provider<string>;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* Default credentials provider; Not available in browser runtime.
|
|
291
|
-
* @internal
|
|
292
|
-
*/
|
|
293
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
297
|
-
* @internal
|
|
298
|
-
*/
|
|
299
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
303
|
-
* @internal
|
|
304
|
-
*/
|
|
305
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
type AppSyncClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
309
|
-
ClientDefaults &
|
|
310
|
-
RegionInputConfig &
|
|
311
|
-
EndpointsInputConfig &
|
|
312
|
-
RetryInputConfig &
|
|
313
|
-
HostHeaderInputConfig &
|
|
314
|
-
AwsAuthInputConfig &
|
|
315
|
-
UserAgentInputConfig;
|
|
316
|
-
/**
|
|
317
|
-
* The configuration interface of AppSyncClient class constructor that set the region, credentials and other options.
|
|
318
|
-
*/
|
|
319
|
-
export interface AppSyncClientConfig extends AppSyncClientConfigType {}
|
|
320
|
-
|
|
321
|
-
type AppSyncClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
322
|
-
Required<ClientDefaults> &
|
|
323
|
-
RegionResolvedConfig &
|
|
324
|
-
EndpointsResolvedConfig &
|
|
325
|
-
RetryResolvedConfig &
|
|
326
|
-
HostHeaderResolvedConfig &
|
|
327
|
-
AwsAuthResolvedConfig &
|
|
328
|
-
UserAgentResolvedConfig;
|
|
329
|
-
/**
|
|
330
|
-
* The resolved configuration interface of AppSyncClient class. This is resolved and normalized from the {@link AppSyncClientConfig | constructor configuration interface}.
|
|
331
|
-
*/
|
|
332
|
-
export interface AppSyncClientResolvedConfig extends AppSyncClientResolvedConfigType {}
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* <p>AppSync provides API actions for creating and interacting with data
|
|
336
|
-
* sources using GraphQL from your application.</p>
|
|
337
|
-
*/
|
|
338
|
-
export class AppSyncClient extends __Client<
|
|
339
|
-
__HttpHandlerOptions,
|
|
340
|
-
ServiceInputTypes,
|
|
341
|
-
ServiceOutputTypes,
|
|
342
|
-
AppSyncClientResolvedConfig
|
|
343
|
-
> {
|
|
344
|
-
/**
|
|
345
|
-
* The resolved configuration of AppSyncClient class. This is resolved and normalized from the {@link AppSyncClientConfig | constructor configuration interface}.
|
|
346
|
-
*/
|
|
347
|
-
readonly config: AppSyncClientResolvedConfig;
|
|
348
|
-
|
|
349
|
-
constructor(configuration: AppSyncClientConfig) {
|
|
350
|
-
const _config_0 = __getRuntimeConfig(configuration);
|
|
351
|
-
const _config_1 = resolveRegionConfig(_config_0);
|
|
352
|
-
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
353
|
-
const _config_3 = resolveRetryConfig(_config_2);
|
|
354
|
-
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
355
|
-
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
356
|
-
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
357
|
-
super(_config_6);
|
|
358
|
-
this.config = _config_6;
|
|
359
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
360
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
361
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
362
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
363
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
364
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
369
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
370
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
371
|
-
*/
|
|
372
|
-
destroy(): void {
|
|
373
|
-
super.destroy();
|
|
374
|
-
}
|
|
375
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
|
|
15
|
-
import { CreateApiCacheRequest, CreateApiCacheResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1CreateApiCacheCommand,
|
|
18
|
-
serializeAws_restJson1CreateApiCacheCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface CreateApiCacheCommandInput extends CreateApiCacheRequest {}
|
|
22
|
-
export interface CreateApiCacheCommandOutput extends CreateApiCacheResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a cache for the GraphQL API.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { AppSyncClient, CreateApiCacheCommand } from "@aws-sdk/client-appsync"; // ES Modules import
|
|
30
|
-
* // const { AppSyncClient, CreateApiCacheCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
|
|
31
|
-
* const client = new AppSyncClient(config);
|
|
32
|
-
* const command = new CreateApiCacheCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateApiCacheCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateApiCacheCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link AppSyncClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateApiCacheCommand extends $Command<
|
|
42
|
-
CreateApiCacheCommandInput,
|
|
43
|
-
CreateApiCacheCommandOutput,
|
|
44
|
-
AppSyncClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateApiCacheCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: AppSyncClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<CreateApiCacheCommandInput, CreateApiCacheCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "AppSyncClient";
|
|
69
|
-
const commandName = "CreateApiCacheCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateApiCacheRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateApiCacheResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: CreateApiCacheCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1CreateApiCacheCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateApiCacheCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1CreateApiCacheCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
|
|
15
|
-
import { CreateApiKeyRequest, CreateApiKeyResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1CreateApiKeyCommand,
|
|
18
|
-
serializeAws_restJson1CreateApiKeyCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface CreateApiKeyCommandInput extends CreateApiKeyRequest {}
|
|
22
|
-
export interface CreateApiKeyCommandOutput extends CreateApiKeyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a unique key that you can distribute to clients who are executing your
|
|
26
|
-
* API.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { AppSyncClient, CreateApiKeyCommand } from "@aws-sdk/client-appsync"; // ES Modules import
|
|
31
|
-
* // const { AppSyncClient, CreateApiKeyCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
|
|
32
|
-
* const client = new AppSyncClient(config);
|
|
33
|
-
* const command = new CreateApiKeyCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link CreateApiKeyCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link CreateApiKeyCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link AppSyncClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class CreateApiKeyCommand extends $Command<
|
|
43
|
-
CreateApiKeyCommandInput,
|
|
44
|
-
CreateApiKeyCommandOutput,
|
|
45
|
-
AppSyncClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: CreateApiKeyCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: AppSyncClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<CreateApiKeyCommandInput, CreateApiKeyCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "AppSyncClient";
|
|
70
|
-
const commandName = "CreateApiKeyCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: CreateApiKeyRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: CreateApiKeyResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: CreateApiKeyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1CreateApiKeyCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateApiKeyCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1CreateApiKeyCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
|
|
15
|
-
import { CreateDataSourceRequest, CreateDataSourceResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1CreateDataSourceCommand,
|
|
18
|
-
serializeAws_restJson1CreateDataSourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface CreateDataSourceCommandInput extends CreateDataSourceRequest {}
|
|
22
|
-
export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Creates a <code>DataSource</code> object.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { AppSyncClient, CreateDataSourceCommand } from "@aws-sdk/client-appsync"; // ES Modules import
|
|
30
|
-
* // const { AppSyncClient, CreateDataSourceCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
|
|
31
|
-
* const client = new AppSyncClient(config);
|
|
32
|
-
* const command = new CreateDataSourceCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link CreateDataSourceCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link CreateDataSourceCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link AppSyncClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class CreateDataSourceCommand extends $Command<
|
|
42
|
-
CreateDataSourceCommandInput,
|
|
43
|
-
CreateDataSourceCommandOutput,
|
|
44
|
-
AppSyncClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: CreateDataSourceCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: AppSyncClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<CreateDataSourceCommandInput, CreateDataSourceCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "AppSyncClient";
|
|
69
|
-
const commandName = "CreateDataSourceCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: CreateDataSourceRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: CreateDataSourceResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: CreateDataSourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1CreateDataSourceCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateDataSourceCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1CreateDataSourceCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|