Skip to content

Commit a680861

Browse files
author
awstools
committed
feat(client-appsync): This release adds support for AppSync Event APIs.
1 parent 5f4e338 commit a680861

File tree

85 files changed

+14814
-10306
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+14814
-10306
lines changed

clients/client-appsync/README.md

+90-10
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
AWS SDK for JavaScript AppSync Client for Node.js, Browser and React Native.
88

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>
1111

1212
## Installing
1313

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
1515
using your favorite package manager:
1616

1717
- `npm install @aws-sdk/client-appsync`
@@ -24,16 +24,16 @@ using your favorite package manager:
2424

2525
The AWS SDK is modulized by clients and commands.
2626
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`:
2828

2929
```js
3030
// ES5 example
31-
const { AppSyncClient, ListApiKeysCommand } = require("@aws-sdk/client-appsync");
31+
const { AppSyncClient, ListApisCommand } = require("@aws-sdk/client-appsync");
3232
```
3333

3434
```ts
3535
// ES6+ example
36-
import { AppSyncClient, ListApiKeysCommand } from "@aws-sdk/client-appsync";
36+
import { AppSyncClient, ListApisCommand } from "@aws-sdk/client-appsync";
3737
```
3838

3939
### Usage
@@ -52,7 +52,7 @@ const client = new AppSyncClient({ region: "REGION" });
5252
const params = {
5353
/** input parameters */
5454
};
55-
const command = new ListApiKeysCommand(params);
55+
const command = new ListApisCommand(params);
5656
```
5757

5858
#### Async/await
@@ -131,15 +131,15 @@ const client = new AWS.AppSync({ region: "REGION" });
131131

132132
// async/await.
133133
try {
134-
const data = await client.listApiKeys(params);
134+
const data = await client.listApis(params);
135135
// process data.
136136
} catch (error) {
137137
// error handling.
138138
}
139139

140140
// Promises.
141141
client
142-
.listApiKeys(params)
142+
.listApis(params)
143143
.then((data) => {
144144
// process data.
145145
})
@@ -148,7 +148,7 @@ client
148148
});
149149

150150
// callbacks.
151-
client.listApiKeys(params, (err, data) => {
151+
client.listApis(params, (err, data) => {
152152
// process err and data.
153153
});
154154
```
@@ -227,6 +227,14 @@ AssociateSourceGraphqlApi
227227

228228
[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/)
229229

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+
230238
</details>
231239
<details>
232240
<summary>
@@ -243,6 +251,14 @@ CreateApiKey
243251

244252
[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/)
245253

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+
246262
</details>
247263
<details>
248264
<summary>
@@ -291,6 +307,14 @@ CreateType
291307

292308
[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/)
293309

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+
294318
</details>
295319
<details>
296320
<summary>
@@ -307,6 +331,14 @@ DeleteApiKey
307331

308332
[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/)
309333

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+
310342
</details>
311343
<details>
312344
<summary>
@@ -403,6 +435,14 @@ FlushApiCache
403435

404436
[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/)
405437

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+
406446
</details>
407447
<details>
408448
<summary>
@@ -419,6 +459,14 @@ GetApiCache
419459

420460
[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/)
421461

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+
422470
</details>
423471
<details>
424472
<summary>
@@ -515,6 +563,22 @@ ListApiKeys
515563

516564
[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/)
517565

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+
518582
</details>
519583
<details>
520584
<summary>
@@ -643,6 +707,14 @@ UntagResource
643707

644708
[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/)
645709

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+
646718
</details>
647719
<details>
648720
<summary>
@@ -659,6 +731,14 @@ UpdateApiKey
659731

660732
[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/)
661733

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+
662742
</details>
663743
<details>
664744
<summary>

0 commit comments

Comments
 (0)