6
6
7
7
AWS SDK for JavaScript AppSync Client for Node.js, Browser and React Native.
8
8
9
- <p >AppSync provides API actions for creating and interacting with data sources using GraphQL
10
- from your application.</p >
9
+ <p >AppSync provides API actions for creating and interacting with data
10
+ sources using GraphQL from your application.</p >
11
11
12
12
## Installing
13
13
14
- To install the this package, simply type add or install @aws-sdk/client-appsync
14
+ To install this package, simply type add or install @aws-sdk/client-appsync
15
15
using your favorite package manager:
16
16
17
17
- ` npm install @aws-sdk/client-appsync `
@@ -24,16 +24,16 @@ using your favorite package manager:
24
24
25
25
The AWS SDK is modulized by clients and commands.
26
26
To send a request, you only need to import the ` AppSyncClient ` and
27
- the commands you need, for example ` ListApiKeysCommand ` :
27
+ the commands you need, for example ` ListApisCommand ` :
28
28
29
29
``` js
30
30
// ES5 example
31
- const { AppSyncClient , ListApiKeysCommand } = require (" @aws-sdk/client-appsync" );
31
+ const { AppSyncClient , ListApisCommand } = require (" @aws-sdk/client-appsync" );
32
32
```
33
33
34
34
``` ts
35
35
// ES6+ example
36
- import { AppSyncClient , ListApiKeysCommand } from " @aws-sdk/client-appsync" ;
36
+ import { AppSyncClient , ListApisCommand } from " @aws-sdk/client-appsync" ;
37
37
```
38
38
39
39
### Usage
@@ -52,7 +52,7 @@ const client = new AppSyncClient({ region: "REGION" });
52
52
const params = {
53
53
/** input parameters */
54
54
};
55
- const command = new ListApiKeysCommand (params);
55
+ const command = new ListApisCommand (params);
56
56
```
57
57
58
58
#### Async/await
@@ -131,15 +131,15 @@ const client = new AWS.AppSync({ region: "REGION" });
131
131
132
132
// async/await.
133
133
try {
134
- const data = await client .listApiKeys (params );
134
+ const data = await client .listApis (params );
135
135
// process data.
136
136
} catch (error ) {
137
137
// error handling.
138
138
}
139
139
140
140
// Promises.
141
141
client
142
- .listApiKeys (params )
142
+ .listApis (params )
143
143
.then ((data ) => {
144
144
// process data.
145
145
})
@@ -148,7 +148,7 @@ client
148
148
});
149
149
150
150
// callbacks.
151
- client .listApiKeys (params , (err , data ) => {
151
+ client .listApis (params , (err , data ) => {
152
152
// process err and data.
153
153
});
154
154
```
@@ -227,6 +227,14 @@ AssociateSourceGraphqlApi
227
227
228
228
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/AssociateSourceGraphqlApiCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/AssociateSourceGraphqlApiCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/AssociateSourceGraphqlApiCommandOutput/ )
229
229
230
+ </details >
231
+ <details >
232
+ <summary >
233
+ CreateApi
234
+ </summary >
235
+
236
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/CreateApiCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateApiCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateApiCommandOutput/ )
237
+
230
238
</details >
231
239
<details >
232
240
<summary >
@@ -243,6 +251,14 @@ CreateApiKey
243
251
244
252
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/CreateApiKeyCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateApiKeyCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateApiKeyCommandOutput/ )
245
253
254
+ </details >
255
+ <details >
256
+ <summary >
257
+ CreateChannelNamespace
258
+ </summary >
259
+
260
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/CreateChannelNamespaceCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateChannelNamespaceCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateChannelNamespaceCommandOutput/ )
261
+
246
262
</details >
247
263
<details >
248
264
<summary >
@@ -291,6 +307,14 @@ CreateType
291
307
292
308
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/CreateTypeCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateTypeCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/CreateTypeCommandOutput/ )
293
309
310
+ </details >
311
+ <details >
312
+ <summary >
313
+ DeleteApi
314
+ </summary >
315
+
316
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/DeleteApiCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/DeleteApiCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/DeleteApiCommandOutput/ )
317
+
294
318
</details >
295
319
<details >
296
320
<summary >
@@ -307,6 +331,14 @@ DeleteApiKey
307
331
308
332
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/DeleteApiKeyCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/DeleteApiKeyCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/DeleteApiKeyCommandOutput/ )
309
333
334
+ </details >
335
+ <details >
336
+ <summary >
337
+ DeleteChannelNamespace
338
+ </summary >
339
+
340
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/DeleteChannelNamespaceCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/DeleteChannelNamespaceCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/DeleteChannelNamespaceCommandOutput/ )
341
+
310
342
</details >
311
343
<details >
312
344
<summary >
@@ -403,6 +435,14 @@ FlushApiCache
403
435
404
436
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/FlushApiCacheCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/FlushApiCacheCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/FlushApiCacheCommandOutput/ )
405
437
438
+ </details >
439
+ <details >
440
+ <summary >
441
+ GetApi
442
+ </summary >
443
+
444
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/GetApiCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetApiCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetApiCommandOutput/ )
445
+
406
446
</details >
407
447
<details >
408
448
<summary >
@@ -419,6 +459,14 @@ GetApiCache
419
459
420
460
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/GetApiCacheCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetApiCacheCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetApiCacheCommandOutput/ )
421
461
462
+ </details >
463
+ <details >
464
+ <summary >
465
+ GetChannelNamespace
466
+ </summary >
467
+
468
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/GetChannelNamespaceCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetChannelNamespaceCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/GetChannelNamespaceCommandOutput/ )
469
+
422
470
</details >
423
471
<details >
424
472
<summary >
@@ -515,6 +563,22 @@ ListApiKeys
515
563
516
564
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/ListApiKeysCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListApiKeysCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListApiKeysCommandOutput/ )
517
565
566
+ </details >
567
+ <details >
568
+ <summary >
569
+ ListApis
570
+ </summary >
571
+
572
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/ListApisCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListApisCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListApisCommandOutput/ )
573
+
574
+ </details >
575
+ <details >
576
+ <summary >
577
+ ListChannelNamespaces
578
+ </summary >
579
+
580
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/ListChannelNamespacesCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListChannelNamespacesCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/ListChannelNamespacesCommandOutput/ )
581
+
518
582
</details >
519
583
<details >
520
584
<summary >
@@ -643,6 +707,14 @@ UntagResource
643
707
644
708
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/UntagResourceCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UntagResourceCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UntagResourceCommandOutput/ )
645
709
710
+ </details >
711
+ <details >
712
+ <summary >
713
+ UpdateApi
714
+ </summary >
715
+
716
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/UpdateApiCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UpdateApiCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UpdateApiCommandOutput/ )
717
+
646
718
</details >
647
719
<details >
648
720
<summary >
@@ -659,6 +731,14 @@ UpdateApiKey
659
731
660
732
[ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/UpdateApiKeyCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UpdateApiKeyCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UpdateApiKeyCommandOutput/ )
661
733
734
+ </details >
735
+ <details >
736
+ <summary >
737
+ UpdateChannelNamespace
738
+ </summary >
739
+
740
+ [ Command API Reference] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/appsync/command/UpdateChannelNamespaceCommand/ ) / [ Input] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UpdateChannelNamespaceCommandInput/ ) / [ Output] ( https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-appsync/Interface/UpdateChannelNamespaceCommandOutput/ )
741
+
662
742
</details >
663
743
<details >
664
744
<summary >
0 commit comments