@aws-sdk/client-appsync 3.40.0 → 3.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/AppSync.js +120 -0
  4. package/dist-cjs/commands/AssociateApiCommand.js +36 -0
  5. package/dist-cjs/commands/CreateDomainNameCommand.js +36 -0
  6. package/dist-cjs/commands/DeleteDomainNameCommand.js +36 -0
  7. package/dist-cjs/commands/DisassociateApiCommand.js +36 -0
  8. package/dist-cjs/commands/GetApiAssociationCommand.js +36 -0
  9. package/dist-cjs/commands/GetDomainNameCommand.js +36 -0
  10. package/dist-cjs/commands/ListDomainNamesCommand.js +36 -0
  11. package/dist-cjs/commands/UpdateDomainNameCommand.js +36 -0
  12. package/dist-cjs/commands/index.js +8 -0
  13. package/dist-cjs/endpoints.js +9 -0
  14. package/dist-cjs/models/models_0.js +136 -21
  15. package/dist-cjs/protocols/Aws_restJson1.js +911 -93
  16. package/dist-es/AppSync.js +120 -0
  17. package/dist-es/commands/AssociateApiCommand.js +39 -0
  18. package/dist-es/commands/CreateDomainNameCommand.js +39 -0
  19. package/dist-es/commands/DeleteDomainNameCommand.js +39 -0
  20. package/dist-es/commands/DisassociateApiCommand.js +39 -0
  21. package/dist-es/commands/GetApiAssociationCommand.js +39 -0
  22. package/dist-es/commands/GetDomainNameCommand.js +39 -0
  23. package/dist-es/commands/ListDomainNamesCommand.js +39 -0
  24. package/dist-es/commands/UpdateDomainNameCommand.js +39 -0
  25. package/dist-es/commands/index.js +8 -0
  26. package/dist-es/endpoints.js +9 -0
  27. package/dist-es/models/models_0.js +90 -12
  28. package/dist-es/protocols/Aws_restJson1.js +1039 -84
  29. package/dist-types/AppSync.d.ts +60 -5
  30. package/dist-types/AppSyncClient.d.ts +10 -2
  31. package/dist-types/commands/AssociateApiCommand.d.ts +35 -0
  32. package/dist-types/commands/CreateApiCacheCommand.d.ts +1 -1
  33. package/dist-types/commands/CreateApiKeyCommand.d.ts +2 -3
  34. package/dist-types/commands/CreateDataSourceCommand.d.ts +1 -1
  35. package/dist-types/commands/CreateDomainNameCommand.d.ts +35 -0
  36. package/dist-types/commands/CreateFunctionCommand.d.ts +2 -2
  37. package/dist-types/commands/CreateGraphqlApiCommand.d.ts +1 -1
  38. package/dist-types/commands/CreateResolverCommand.d.ts +2 -2
  39. package/dist-types/commands/CreateTypeCommand.d.ts +1 -1
  40. package/dist-types/commands/DeleteApiCacheCommand.d.ts +1 -1
  41. package/dist-types/commands/DeleteApiKeyCommand.d.ts +1 -1
  42. package/dist-types/commands/DeleteDataSourceCommand.d.ts +1 -1
  43. package/dist-types/commands/DeleteDomainNameCommand.d.ts +35 -0
  44. package/dist-types/commands/DeleteFunctionCommand.d.ts +1 -1
  45. package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +1 -1
  46. package/dist-types/commands/DeleteResolverCommand.d.ts +1 -1
  47. package/dist-types/commands/DeleteTypeCommand.d.ts +1 -1
  48. package/dist-types/commands/DisassociateApiCommand.d.ts +35 -0
  49. package/dist-types/commands/FlushApiCacheCommand.d.ts +1 -1
  50. package/dist-types/commands/GetApiAssociationCommand.d.ts +35 -0
  51. package/dist-types/commands/GetApiCacheCommand.d.ts +1 -1
  52. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -1
  53. package/dist-types/commands/GetDomainNameCommand.d.ts +35 -0
  54. package/dist-types/commands/GetFunctionCommand.d.ts +1 -1
  55. package/dist-types/commands/GetGraphqlApiCommand.d.ts +1 -1
  56. package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +1 -1
  57. package/dist-types/commands/GetResolverCommand.d.ts +1 -1
  58. package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +1 -1
  59. package/dist-types/commands/GetTypeCommand.d.ts +1 -1
  60. package/dist-types/commands/ListApiKeysCommand.d.ts +1 -1
  61. package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -1
  62. package/dist-types/commands/ListDomainNamesCommand.d.ts +35 -0
  63. package/dist-types/commands/ListFunctionsCommand.d.ts +1 -1
  64. package/dist-types/commands/ListGraphqlApisCommand.d.ts +1 -1
  65. package/dist-types/commands/ListResolversByFunctionCommand.d.ts +1 -1
  66. package/dist-types/commands/ListResolversCommand.d.ts +1 -1
  67. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  68. package/dist-types/commands/ListTypesCommand.d.ts +1 -1
  69. package/dist-types/commands/StartSchemaCreationCommand.d.ts +1 -1
  70. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  71. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  72. package/dist-types/commands/UpdateApiCacheCommand.d.ts +1 -1
  73. package/dist-types/commands/UpdateApiKeyCommand.d.ts +2 -2
  74. package/dist-types/commands/UpdateDataSourceCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateDomainNameCommand.d.ts +35 -0
  76. package/dist-types/commands/UpdateFunctionCommand.d.ts +1 -1
  77. package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +1 -1
  78. package/dist-types/commands/UpdateResolverCommand.d.ts +1 -1
  79. package/dist-types/commands/UpdateTypeCommand.d.ts +1 -1
  80. package/dist-types/commands/index.d.ts +8 -0
  81. package/dist-types/models/models_0.d.ts +554 -255
  82. package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
  83. package/dist-types/ts3.4/AppSync.d.ts +40 -0
  84. package/dist-types/ts3.4/AppSyncClient.d.ts +10 -2
  85. package/dist-types/ts3.4/commands/AssociateApiCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/CreateDomainNameCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/DeleteDomainNameCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/DisassociateApiCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/GetApiAssociationCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/GetDomainNameCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/ListDomainNamesCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/UpdateDomainNameCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  94. package/dist-types/ts3.4/models/models_0.d.ts +203 -30
  95. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  96. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-appsync
20
+
21
+
22
+
23
+
24
+
25
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-appsync
28
+
29
+
30
+
31
+
32
+
33
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
34
+
35
+
36
+ ### Features
37
+
38
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
39
+
40
+
41
+
42
+
43
+
6
44
  # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
45
 
8
46
 
package/README.md CHANGED
@@ -25,16 +25,16 @@ using your favorite package manager:
25
25
 
26
26
  The AWS SDK is modulized by clients and commands.
27
27
  To send a request, you only need to import the `AppSyncClient` and
28
- the commands you need, for example `CreateApiCacheCommand`:
28
+ the commands you need, for example `AssociateApiCommand`:
29
29
 
30
30
  ```js
31
31
  // ES5 example
32
- const { AppSyncClient, CreateApiCacheCommand } = require("@aws-sdk/client-appsync");
32
+ const { AppSyncClient, AssociateApiCommand } = require("@aws-sdk/client-appsync");
33
33
  ```
34
34
 
35
35
  ```ts
36
36
  // ES6+ example
37
- import { AppSyncClient, CreateApiCacheCommand } from "@aws-sdk/client-appsync";
37
+ import { AppSyncClient, AssociateApiCommand } from "@aws-sdk/client-appsync";
38
38
  ```
39
39
 
40
40
  ### Usage
@@ -53,7 +53,7 @@ const client = new AppSyncClient({ region: "REGION" });
53
53
  const params = {
54
54
  /** input parameters */
55
55
  };
56
- const command = new CreateApiCacheCommand(params);
56
+ const command = new AssociateApiCommand(params);
57
57
  ```
58
58
 
59
59
  #### Async/await
@@ -132,7 +132,7 @@ const client = new AWS.AppSync({ region: "REGION" });
132
132
 
133
133
  // async/await.
134
134
  try {
135
- const data = await client.createApiCache(params);
135
+ const data = await client.associateApi(params);
136
136
  // process data.
137
137
  } catch (error) {
138
138
  // error handling.
@@ -140,7 +140,7 @@ try {
140
140
 
141
141
  // Promises.
142
142
  client
143
- .createApiCache(params)
143
+ .associateApi(params)
144
144
  .then((data) => {
145
145
  // process data.
146
146
  })
@@ -149,7 +149,7 @@ client
149
149
  });
150
150
 
151
151
  // callbacks.
152
- client.createApiCache(params, (err, data) => {
152
+ client.associateApi(params, (err, data) => {
153
153
  // proccess err and data.
154
154
  });
155
155
  ```
@@ -2,9 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AppSync = void 0;
4
4
  const AppSyncClient_1 = require("./AppSyncClient");
5
+ const AssociateApiCommand_1 = require("./commands/AssociateApiCommand");
5
6
  const CreateApiCacheCommand_1 = require("./commands/CreateApiCacheCommand");
6
7
  const CreateApiKeyCommand_1 = require("./commands/CreateApiKeyCommand");
7
8
  const CreateDataSourceCommand_1 = require("./commands/CreateDataSourceCommand");
9
+ const CreateDomainNameCommand_1 = require("./commands/CreateDomainNameCommand");
8
10
  const CreateFunctionCommand_1 = require("./commands/CreateFunctionCommand");
9
11
  const CreateGraphqlApiCommand_1 = require("./commands/CreateGraphqlApiCommand");
10
12
  const CreateResolverCommand_1 = require("./commands/CreateResolverCommand");
@@ -12,13 +14,17 @@ const CreateTypeCommand_1 = require("./commands/CreateTypeCommand");
12
14
  const DeleteApiCacheCommand_1 = require("./commands/DeleteApiCacheCommand");
13
15
  const DeleteApiKeyCommand_1 = require("./commands/DeleteApiKeyCommand");
14
16
  const DeleteDataSourceCommand_1 = require("./commands/DeleteDataSourceCommand");
17
+ const DeleteDomainNameCommand_1 = require("./commands/DeleteDomainNameCommand");
15
18
  const DeleteFunctionCommand_1 = require("./commands/DeleteFunctionCommand");
16
19
  const DeleteGraphqlApiCommand_1 = require("./commands/DeleteGraphqlApiCommand");
17
20
  const DeleteResolverCommand_1 = require("./commands/DeleteResolverCommand");
18
21
  const DeleteTypeCommand_1 = require("./commands/DeleteTypeCommand");
22
+ const DisassociateApiCommand_1 = require("./commands/DisassociateApiCommand");
19
23
  const FlushApiCacheCommand_1 = require("./commands/FlushApiCacheCommand");
24
+ const GetApiAssociationCommand_1 = require("./commands/GetApiAssociationCommand");
20
25
  const GetApiCacheCommand_1 = require("./commands/GetApiCacheCommand");
21
26
  const GetDataSourceCommand_1 = require("./commands/GetDataSourceCommand");
27
+ const GetDomainNameCommand_1 = require("./commands/GetDomainNameCommand");
22
28
  const GetFunctionCommand_1 = require("./commands/GetFunctionCommand");
23
29
  const GetGraphqlApiCommand_1 = require("./commands/GetGraphqlApiCommand");
24
30
  const GetIntrospectionSchemaCommand_1 = require("./commands/GetIntrospectionSchemaCommand");
@@ -27,6 +33,7 @@ const GetSchemaCreationStatusCommand_1 = require("./commands/GetSchemaCreationSt
27
33
  const GetTypeCommand_1 = require("./commands/GetTypeCommand");
28
34
  const ListApiKeysCommand_1 = require("./commands/ListApiKeysCommand");
29
35
  const ListDataSourcesCommand_1 = require("./commands/ListDataSourcesCommand");
36
+ const ListDomainNamesCommand_1 = require("./commands/ListDomainNamesCommand");
30
37
  const ListFunctionsCommand_1 = require("./commands/ListFunctionsCommand");
31
38
  const ListGraphqlApisCommand_1 = require("./commands/ListGraphqlApisCommand");
32
39
  const ListResolversByFunctionCommand_1 = require("./commands/ListResolversByFunctionCommand");
@@ -39,11 +46,26 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
39
46
  const UpdateApiCacheCommand_1 = require("./commands/UpdateApiCacheCommand");
40
47
  const UpdateApiKeyCommand_1 = require("./commands/UpdateApiKeyCommand");
41
48
  const UpdateDataSourceCommand_1 = require("./commands/UpdateDataSourceCommand");
49
+ const UpdateDomainNameCommand_1 = require("./commands/UpdateDomainNameCommand");
42
50
  const UpdateFunctionCommand_1 = require("./commands/UpdateFunctionCommand");
43
51
  const UpdateGraphqlApiCommand_1 = require("./commands/UpdateGraphqlApiCommand");
44
52
  const UpdateResolverCommand_1 = require("./commands/UpdateResolverCommand");
45
53
  const UpdateTypeCommand_1 = require("./commands/UpdateTypeCommand");
46
54
  class AppSync extends AppSyncClient_1.AppSyncClient {
55
+ associateApi(args, optionsOrCb, cb) {
56
+ const command = new AssociateApiCommand_1.AssociateApiCommand(args);
57
+ if (typeof optionsOrCb === "function") {
58
+ this.send(command, optionsOrCb);
59
+ }
60
+ else if (typeof cb === "function") {
61
+ if (typeof optionsOrCb !== "object")
62
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ this.send(command, optionsOrCb || {}, cb);
64
+ }
65
+ else {
66
+ return this.send(command, optionsOrCb);
67
+ }
68
+ }
47
69
  createApiCache(args, optionsOrCb, cb) {
48
70
  const command = new CreateApiCacheCommand_1.CreateApiCacheCommand(args);
49
71
  if (typeof optionsOrCb === "function") {
@@ -86,6 +108,20 @@ class AppSync extends AppSyncClient_1.AppSyncClient {
86
108
  return this.send(command, optionsOrCb);
87
109
  }
88
110
  }
111
+ createDomainName(args, optionsOrCb, cb) {
112
+ const command = new CreateDomainNameCommand_1.CreateDomainNameCommand(args);
113
+ if (typeof optionsOrCb === "function") {
114
+ this.send(command, optionsOrCb);
115
+ }
116
+ else if (typeof cb === "function") {
117
+ if (typeof optionsOrCb !== "object")
118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
119
+ this.send(command, optionsOrCb || {}, cb);
120
+ }
121
+ else {
122
+ return this.send(command, optionsOrCb);
123
+ }
124
+ }
89
125
  createFunction(args, optionsOrCb, cb) {
90
126
  const command = new CreateFunctionCommand_1.CreateFunctionCommand(args);
91
127
  if (typeof optionsOrCb === "function") {
@@ -184,6 +220,20 @@ class AppSync extends AppSyncClient_1.AppSyncClient {
184
220
  return this.send(command, optionsOrCb);
185
221
  }
186
222
  }
223
+ deleteDomainName(args, optionsOrCb, cb) {
224
+ const command = new DeleteDomainNameCommand_1.DeleteDomainNameCommand(args);
225
+ if (typeof optionsOrCb === "function") {
226
+ this.send(command, optionsOrCb);
227
+ }
228
+ else if (typeof cb === "function") {
229
+ if (typeof optionsOrCb !== "object")
230
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
231
+ this.send(command, optionsOrCb || {}, cb);
232
+ }
233
+ else {
234
+ return this.send(command, optionsOrCb);
235
+ }
236
+ }
187
237
  deleteFunction(args, optionsOrCb, cb) {
188
238
  const command = new DeleteFunctionCommand_1.DeleteFunctionCommand(args);
189
239
  if (typeof optionsOrCb === "function") {
@@ -240,6 +290,20 @@ class AppSync extends AppSyncClient_1.AppSyncClient {
240
290
  return this.send(command, optionsOrCb);
241
291
  }
242
292
  }
293
+ disassociateApi(args, optionsOrCb, cb) {
294
+ const command = new DisassociateApiCommand_1.DisassociateApiCommand(args);
295
+ if (typeof optionsOrCb === "function") {
296
+ this.send(command, optionsOrCb);
297
+ }
298
+ else if (typeof cb === "function") {
299
+ if (typeof optionsOrCb !== "object")
300
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
301
+ this.send(command, optionsOrCb || {}, cb);
302
+ }
303
+ else {
304
+ return this.send(command, optionsOrCb);
305
+ }
306
+ }
243
307
  flushApiCache(args, optionsOrCb, cb) {
244
308
  const command = new FlushApiCacheCommand_1.FlushApiCacheCommand(args);
245
309
  if (typeof optionsOrCb === "function") {
@@ -254,6 +318,20 @@ class AppSync extends AppSyncClient_1.AppSyncClient {
254
318
  return this.send(command, optionsOrCb);
255
319
  }
256
320
  }
321
+ getApiAssociation(args, optionsOrCb, cb) {
322
+ const command = new GetApiAssociationCommand_1.GetApiAssociationCommand(args);
323
+ if (typeof optionsOrCb === "function") {
324
+ this.send(command, optionsOrCb);
325
+ }
326
+ else if (typeof cb === "function") {
327
+ if (typeof optionsOrCb !== "object")
328
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
329
+ this.send(command, optionsOrCb || {}, cb);
330
+ }
331
+ else {
332
+ return this.send(command, optionsOrCb);
333
+ }
334
+ }
257
335
  getApiCache(args, optionsOrCb, cb) {
258
336
  const command = new GetApiCacheCommand_1.GetApiCacheCommand(args);
259
337
  if (typeof optionsOrCb === "function") {
@@ -282,6 +360,20 @@ class AppSync extends AppSyncClient_1.AppSyncClient {
282
360
  return this.send(command, optionsOrCb);
283
361
  }
284
362
  }
363
+ getDomainName(args, optionsOrCb, cb) {
364
+ const command = new GetDomainNameCommand_1.GetDomainNameCommand(args);
365
+ if (typeof optionsOrCb === "function") {
366
+ this.send(command, optionsOrCb);
367
+ }
368
+ else if (typeof cb === "function") {
369
+ if (typeof optionsOrCb !== "object")
370
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
371
+ this.send(command, optionsOrCb || {}, cb);
372
+ }
373
+ else {
374
+ return this.send(command, optionsOrCb);
375
+ }
376
+ }
285
377
  getFunction(args, optionsOrCb, cb) {
286
378
  const command = new GetFunctionCommand_1.GetFunctionCommand(args);
287
379
  if (typeof optionsOrCb === "function") {
@@ -394,6 +486,20 @@ class AppSync extends AppSyncClient_1.AppSyncClient {
394
486
  return this.send(command, optionsOrCb);
395
487
  }
396
488
  }
489
+ listDomainNames(args, optionsOrCb, cb) {
490
+ const command = new ListDomainNamesCommand_1.ListDomainNamesCommand(args);
491
+ if (typeof optionsOrCb === "function") {
492
+ this.send(command, optionsOrCb);
493
+ }
494
+ else if (typeof cb === "function") {
495
+ if (typeof optionsOrCb !== "object")
496
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
497
+ this.send(command, optionsOrCb || {}, cb);
498
+ }
499
+ else {
500
+ return this.send(command, optionsOrCb);
501
+ }
502
+ }
397
503
  listFunctions(args, optionsOrCb, cb) {
398
504
  const command = new ListFunctionsCommand_1.ListFunctionsCommand(args);
399
505
  if (typeof optionsOrCb === "function") {
@@ -562,6 +668,20 @@ class AppSync extends AppSyncClient_1.AppSyncClient {
562
668
  return this.send(command, optionsOrCb);
563
669
  }
564
670
  }
671
+ updateDomainName(args, optionsOrCb, cb) {
672
+ const command = new UpdateDomainNameCommand_1.UpdateDomainNameCommand(args);
673
+ if (typeof optionsOrCb === "function") {
674
+ this.send(command, optionsOrCb);
675
+ }
676
+ else if (typeof cb === "function") {
677
+ if (typeof optionsOrCb !== "object")
678
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
679
+ this.send(command, optionsOrCb || {}, cb);
680
+ }
681
+ else {
682
+ return this.send(command, optionsOrCb);
683
+ }
684
+ }
565
685
  updateFunction(args, optionsOrCb, cb) {
566
686
  const command = new UpdateFunctionCommand_1.UpdateFunctionCommand(args);
567
687
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociateApiCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class AssociateApiCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "AssociateApiCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociateApiRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociateApiResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1AssociateApiCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1AssociateApiCommand(output, context);
34
+ }
35
+ }
36
+ exports.AssociateApiCommand = AssociateApiCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateDomainNameCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateDomainNameCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "CreateDomainNameCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateDomainNameRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateDomainNameResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1CreateDomainNameCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1CreateDomainNameCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateDomainNameCommand = CreateDomainNameCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteDomainNameCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DeleteDomainNameCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "DeleteDomainNameCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteDomainNameRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DeleteDomainNameResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DeleteDomainNameCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DeleteDomainNameCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteDomainNameCommand = DeleteDomainNameCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisassociateApiCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class DisassociateApiCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "DisassociateApiCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DisassociateApiRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DisassociateApiResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1DisassociateApiCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1DisassociateApiCommand(output, context);
34
+ }
35
+ }
36
+ exports.DisassociateApiCommand = DisassociateApiCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetApiAssociationCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetApiAssociationCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "GetApiAssociationCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetApiAssociationRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetApiAssociationResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1GetApiAssociationCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1GetApiAssociationCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetApiAssociationCommand = GetApiAssociationCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetDomainNameCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class GetDomainNameCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "GetDomainNameCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.GetDomainNameRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.GetDomainNameResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1GetDomainNameCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1GetDomainNameCommand(output, context);
34
+ }
35
+ }
36
+ exports.GetDomainNameCommand = GetDomainNameCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListDomainNamesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class ListDomainNamesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "ListDomainNamesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListDomainNamesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListDomainNamesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1ListDomainNamesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1ListDomainNamesCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListDomainNamesCommand = ListDomainNamesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateDomainNameCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class UpdateDomainNameCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "AppSyncClient";
18
+ const commandName = "UpdateDomainNameCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateDomainNameRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateDomainNameResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_restJson1_1.serializeAws_restJson1UpdateDomainNameCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_restJson1_1.deserializeAws_restJson1UpdateDomainNameCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateDomainNameCommand = UpdateDomainNameCommand;
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./AssociateApiCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateApiCacheCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateApiKeyCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateDataSourceCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateDomainNameCommand"), exports);
7
9
  tslib_1.__exportStar(require("./CreateFunctionCommand"), exports);
8
10
  tslib_1.__exportStar(require("./CreateGraphqlApiCommand"), exports);
9
11
  tslib_1.__exportStar(require("./CreateResolverCommand"), exports);
@@ -11,13 +13,17 @@ tslib_1.__exportStar(require("./CreateTypeCommand"), exports);
11
13
  tslib_1.__exportStar(require("./DeleteApiCacheCommand"), exports);
12
14
  tslib_1.__exportStar(require("./DeleteApiKeyCommand"), exports);
13
15
  tslib_1.__exportStar(require("./DeleteDataSourceCommand"), exports);
16
+ tslib_1.__exportStar(require("./DeleteDomainNameCommand"), exports);
14
17
  tslib_1.__exportStar(require("./DeleteFunctionCommand"), exports);
15
18
  tslib_1.__exportStar(require("./DeleteGraphqlApiCommand"), exports);
16
19
  tslib_1.__exportStar(require("./DeleteResolverCommand"), exports);
17
20
  tslib_1.__exportStar(require("./DeleteTypeCommand"), exports);
21
+ tslib_1.__exportStar(require("./DisassociateApiCommand"), exports);
18
22
  tslib_1.__exportStar(require("./FlushApiCacheCommand"), exports);
23
+ tslib_1.__exportStar(require("./GetApiAssociationCommand"), exports);
19
24
  tslib_1.__exportStar(require("./GetApiCacheCommand"), exports);
20
25
  tslib_1.__exportStar(require("./GetDataSourceCommand"), exports);
26
+ tslib_1.__exportStar(require("./GetDomainNameCommand"), exports);
21
27
  tslib_1.__exportStar(require("./GetFunctionCommand"), exports);
22
28
  tslib_1.__exportStar(require("./GetGraphqlApiCommand"), exports);
23
29
  tslib_1.__exportStar(require("./GetIntrospectionSchemaCommand"), exports);
@@ -26,6 +32,7 @@ tslib_1.__exportStar(require("./GetSchemaCreationStatusCommand"), exports);
26
32
  tslib_1.__exportStar(require("./GetTypeCommand"), exports);
27
33
  tslib_1.__exportStar(require("./ListApiKeysCommand"), exports);
28
34
  tslib_1.__exportStar(require("./ListDataSourcesCommand"), exports);
35
+ tslib_1.__exportStar(require("./ListDomainNamesCommand"), exports);
29
36
  tslib_1.__exportStar(require("./ListFunctionsCommand"), exports);
30
37
  tslib_1.__exportStar(require("./ListGraphqlApisCommand"), exports);
31
38
  tslib_1.__exportStar(require("./ListResolversByFunctionCommand"), exports);
@@ -38,6 +45,7 @@ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
38
45
  tslib_1.__exportStar(require("./UpdateApiCacheCommand"), exports);
39
46
  tslib_1.__exportStar(require("./UpdateApiKeyCommand"), exports);
40
47
  tslib_1.__exportStar(require("./UpdateDataSourceCommand"), exports);
48
+ tslib_1.__exportStar(require("./UpdateDomainNameCommand"), exports);
41
49
  tslib_1.__exportStar(require("./UpdateFunctionCommand"), exports);
42
50
  tslib_1.__exportStar(require("./UpdateGraphqlApiCommand"), exports);
43
51
  tslib_1.__exportStar(require("./UpdateResolverCommand"), exports);