@aws-sdk/client-appsync 3.782.0 → 3.796.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/dist-cjs/index.js CHANGED
@@ -96,7 +96,9 @@ __export(index_exports, {
96
96
  GraphQLApiType: () => GraphQLApiType,
97
97
  GraphQLApiVisibility: () => GraphQLApiVisibility,
98
98
  GraphQLSchemaException: () => GraphQLSchemaException,
99
+ HandlerBehavior: () => HandlerBehavior,
99
100
  InternalFailureException: () => InternalFailureException,
101
+ InvokeType: () => InvokeType,
100
102
  LimitExceededException: () => LimitExceededException,
101
103
  ListApiKeysCommand: () => ListApiKeysCommand,
102
104
  ListApisCommand: () => ListApisCommand,
@@ -634,6 +636,14 @@ var ConflictException = class _ConflictException extends AppSyncServiceException
634
636
  Object.setPrototypeOf(this, _ConflictException.prototype);
635
637
  }
636
638
  };
639
+ var HandlerBehavior = {
640
+ CODE: "CODE",
641
+ DIRECT: "DIRECT"
642
+ };
643
+ var InvokeType = {
644
+ EVENT: "EVENT",
645
+ REQUEST_RESPONSE: "REQUEST_RESPONSE"
646
+ };
637
647
  var DataSourceLevelMetricsConfig = {
638
648
  DISABLED: "DISABLED",
639
649
  ENABLED: "ENABLED"
@@ -869,6 +879,7 @@ var se_CreateChannelNamespaceCommand = /* @__PURE__ */ __name(async (input, cont
869
879
  body = JSON.stringify(
870
880
  (0, import_smithy_client.take)(input, {
871
881
  codeHandlers: [],
882
+ handlerConfigs: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "handlerConfigs"),
872
883
  name: [],
873
884
  publishAuthModes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "publishAuthModes"),
874
885
  subscribeAuthModes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "subscribeAuthModes"),
@@ -1668,6 +1679,7 @@ var se_UpdateChannelNamespaceCommand = /* @__PURE__ */ __name(async (input, cont
1668
1679
  body = JSON.stringify(
1669
1680
  (0, import_smithy_client.take)(input, {
1670
1681
  codeHandlers: [],
1682
+ handlerConfigs: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "handlerConfigs"),
1671
1683
  publishAuthModes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "publishAuthModes"),
1672
1684
  subscribeAuthModes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "subscribeAuthModes")
1673
1685
  })
@@ -3093,6 +3105,7 @@ var de_ChannelNamespace = /* @__PURE__ */ __name((output, context) => {
3093
3105
  channelNamespaceArn: import_smithy_client.expectString,
3094
3106
  codeHandlers: import_smithy_client.expectString,
3095
3107
  created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "created"),
3108
+ handlerConfigs: import_smithy_client._json,
3096
3109
  lastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastModified"),
3097
3110
  name: import_smithy_client.expectString,
3098
3111
  publishAuthModes: import_smithy_client._json,
@@ -4534,6 +4547,8 @@ var paginateListTypes = (0, import_core.createPaginator)(AppSyncClient, ListType
4534
4547
  AuthorizationType,
4535
4548
  ServiceQuotaExceededException,
4536
4549
  ConflictException,
4550
+ HandlerBehavior,
4551
+ InvokeType,
4537
4552
  DataSourceLevelMetricsConfig,
4538
4553
  RelationalDatabaseSourceType,
4539
4554
  DataSourceType,
@@ -222,6 +222,14 @@ export class ConflictException extends __BaseException {
222
222
  Object.setPrototypeOf(this, ConflictException.prototype);
223
223
  }
224
224
  }
225
+ export const HandlerBehavior = {
226
+ CODE: "CODE",
227
+ DIRECT: "DIRECT",
228
+ };
229
+ export const InvokeType = {
230
+ EVENT: "EVENT",
231
+ REQUEST_RESPONSE: "REQUEST_RESPONSE",
232
+ };
225
233
  export const DataSourceLevelMetricsConfig = {
226
234
  DISABLED: "DISABLED",
227
235
  ENABLED: "ENABLED",
@@ -109,6 +109,7 @@ export const se_CreateChannelNamespaceCommand = async (input, context) => {
109
109
  let body;
110
110
  body = JSON.stringify(take(input, {
111
111
  codeHandlers: [],
112
+ handlerConfigs: (_) => _json(_),
112
113
  name: [],
113
114
  publishAuthModes: (_) => _json(_),
114
115
  subscribeAuthModes: (_) => _json(_),
@@ -876,6 +877,7 @@ export const se_UpdateChannelNamespaceCommand = async (input, context) => {
876
877
  let body;
877
878
  body = JSON.stringify(take(input, {
878
879
  codeHandlers: [],
880
+ handlerConfigs: (_) => _json(_),
879
881
  publishAuthModes: (_) => _json(_),
880
882
  subscribeAuthModes: (_) => _json(_),
881
883
  }));
@@ -2288,6 +2290,7 @@ const de_ChannelNamespace = (output, context) => {
2288
2290
  channelNamespaceArn: __expectString,
2289
2291
  codeHandlers: __expectString,
2290
2292
  created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2293
+ handlerConfigs: _json,
2291
2294
  lastModified: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2292
2295
  name: __expectString,
2293
2296
  publishAuthModes: _json,
@@ -51,6 +51,26 @@ declare const CreateChannelNamespaceCommand_base: {
51
51
  * tags: { // TagMap
52
52
  * "<keys>": "STRING_VALUE",
53
53
  * },
54
+ * handlerConfigs: { // HandlerConfigs
55
+ * onPublish: { // HandlerConfig
56
+ * behavior: "CODE" || "DIRECT", // required
57
+ * integration: { // Integration
58
+ * dataSourceName: "STRING_VALUE", // required
59
+ * lambdaConfig: { // LambdaConfig
60
+ * invokeType: "REQUEST_RESPONSE" || "EVENT",
61
+ * },
62
+ * },
63
+ * },
64
+ * onSubscribe: {
65
+ * behavior: "CODE" || "DIRECT", // required
66
+ * integration: {
67
+ * dataSourceName: "STRING_VALUE", // required
68
+ * lambdaConfig: {
69
+ * invokeType: "REQUEST_RESPONSE" || "EVENT",
70
+ * },
71
+ * },
72
+ * },
73
+ * },
54
74
  * };
55
75
  * const command = new CreateChannelNamespaceCommand(input);
56
76
  * const response = await client.send(command);
@@ -75,6 +95,26 @@ declare const CreateChannelNamespaceCommand_base: {
75
95
  * // channelNamespaceArn: "STRING_VALUE",
76
96
  * // created: new Date("TIMESTAMP"),
77
97
  * // lastModified: new Date("TIMESTAMP"),
98
+ * // handlerConfigs: { // HandlerConfigs
99
+ * // onPublish: { // HandlerConfig
100
+ * // behavior: "CODE" || "DIRECT", // required
101
+ * // integration: { // Integration
102
+ * // dataSourceName: "STRING_VALUE", // required
103
+ * // lambdaConfig: { // LambdaConfig
104
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
105
+ * // },
106
+ * // },
107
+ * // },
108
+ * // onSubscribe: {
109
+ * // behavior: "CODE" || "DIRECT", // required
110
+ * // integration: {
111
+ * // dataSourceName: "STRING_VALUE", // required
112
+ * // lambdaConfig: {
113
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
114
+ * // },
115
+ * // },
116
+ * // },
117
+ * // },
78
118
  * // },
79
119
  * // };
80
120
  *
@@ -61,6 +61,26 @@ declare const GetChannelNamespaceCommand_base: {
61
61
  * // channelNamespaceArn: "STRING_VALUE",
62
62
  * // created: new Date("TIMESTAMP"),
63
63
  * // lastModified: new Date("TIMESTAMP"),
64
+ * // handlerConfigs: { // HandlerConfigs
65
+ * // onPublish: { // HandlerConfig
66
+ * // behavior: "CODE" || "DIRECT", // required
67
+ * // integration: { // Integration
68
+ * // dataSourceName: "STRING_VALUE", // required
69
+ * // lambdaConfig: { // LambdaConfig
70
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
71
+ * // },
72
+ * // },
73
+ * // },
74
+ * // onSubscribe: {
75
+ * // behavior: "CODE" || "DIRECT", // required
76
+ * // integration: {
77
+ * // dataSourceName: "STRING_VALUE", // required
78
+ * // lambdaConfig: {
79
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
80
+ * // },
81
+ * // },
82
+ * // },
83
+ * // },
64
84
  * // },
65
85
  * // };
66
86
  *
@@ -66,6 +66,26 @@ declare const ListChannelNamespacesCommand_base: {
66
66
  * // channelNamespaceArn: "STRING_VALUE",
67
67
  * // created: new Date("TIMESTAMP"),
68
68
  * // lastModified: new Date("TIMESTAMP"),
69
+ * // handlerConfigs: { // HandlerConfigs
70
+ * // onPublish: { // HandlerConfig
71
+ * // behavior: "CODE" || "DIRECT", // required
72
+ * // integration: { // Integration
73
+ * // dataSourceName: "STRING_VALUE", // required
74
+ * // lambdaConfig: { // LambdaConfig
75
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
76
+ * // },
77
+ * // },
78
+ * // },
79
+ * // onSubscribe: {
80
+ * // behavior: "CODE" || "DIRECT", // required
81
+ * // integration: {
82
+ * // dataSourceName: "STRING_VALUE", // required
83
+ * // lambdaConfig: {
84
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
85
+ * // },
86
+ * // },
87
+ * // },
88
+ * // },
69
89
  * // },
70
90
  * // ],
71
91
  * // nextToken: "STRING_VALUE",
@@ -48,6 +48,26 @@ declare const UpdateChannelNamespaceCommand_base: {
48
48
  * },
49
49
  * ],
50
50
  * codeHandlers: "STRING_VALUE",
51
+ * handlerConfigs: { // HandlerConfigs
52
+ * onPublish: { // HandlerConfig
53
+ * behavior: "CODE" || "DIRECT", // required
54
+ * integration: { // Integration
55
+ * dataSourceName: "STRING_VALUE", // required
56
+ * lambdaConfig: { // LambdaConfig
57
+ * invokeType: "REQUEST_RESPONSE" || "EVENT",
58
+ * },
59
+ * },
60
+ * },
61
+ * onSubscribe: {
62
+ * behavior: "CODE" || "DIRECT", // required
63
+ * integration: {
64
+ * dataSourceName: "STRING_VALUE", // required
65
+ * lambdaConfig: {
66
+ * invokeType: "REQUEST_RESPONSE" || "EVENT",
67
+ * },
68
+ * },
69
+ * },
70
+ * },
51
71
  * };
52
72
  * const command = new UpdateChannelNamespaceCommand(input);
53
73
  * const response = await client.send(command);
@@ -72,6 +92,26 @@ declare const UpdateChannelNamespaceCommand_base: {
72
92
  * // channelNamespaceArn: "STRING_VALUE",
73
93
  * // created: new Date("TIMESTAMP"),
74
94
  * // lastModified: new Date("TIMESTAMP"),
95
+ * // handlerConfigs: { // HandlerConfigs
96
+ * // onPublish: { // HandlerConfig
97
+ * // behavior: "CODE" || "DIRECT", // required
98
+ * // integration: { // Integration
99
+ * // dataSourceName: "STRING_VALUE", // required
100
+ * // lambdaConfig: { // LambdaConfig
101
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
102
+ * // },
103
+ * // },
104
+ * // },
105
+ * // onSubscribe: {
106
+ * // behavior: "CODE" || "DIRECT", // required
107
+ * // integration: {
108
+ * // dataSourceName: "STRING_VALUE", // required
109
+ * // lambdaConfig: {
110
+ * // invokeType: "REQUEST_RESPONSE" || "EVENT",
111
+ * // },
112
+ * // },
113
+ * // },
114
+ * // },
75
115
  * // },
76
116
  * // };
77
117
  *
@@ -1473,6 +1473,89 @@ export declare class ConflictException extends __BaseException {
1473
1473
  */
1474
1474
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1475
1475
  }
1476
+ /**
1477
+ * @public
1478
+ * @enum
1479
+ */
1480
+ export declare const HandlerBehavior: {
1481
+ readonly CODE: "CODE";
1482
+ readonly DIRECT: "DIRECT";
1483
+ };
1484
+ /**
1485
+ * @public
1486
+ */
1487
+ export type HandlerBehavior = (typeof HandlerBehavior)[keyof typeof HandlerBehavior];
1488
+ /**
1489
+ * @public
1490
+ * @enum
1491
+ */
1492
+ export declare const InvokeType: {
1493
+ readonly EVENT: "EVENT";
1494
+ readonly REQUEST_RESPONSE: "REQUEST_RESPONSE";
1495
+ };
1496
+ /**
1497
+ * @public
1498
+ */
1499
+ export type InvokeType = (typeof InvokeType)[keyof typeof InvokeType];
1500
+ /**
1501
+ * <p>The configuration for a Lambda data source.</p>
1502
+ * @public
1503
+ */
1504
+ export interface LambdaConfig {
1505
+ /**
1506
+ * <p>The invocation type for a Lambda data source.</p>
1507
+ * @public
1508
+ */
1509
+ invokeType?: InvokeType | undefined;
1510
+ }
1511
+ /**
1512
+ * <p>The integration data source configuration for the handler.</p>
1513
+ * @public
1514
+ */
1515
+ export interface Integration {
1516
+ /**
1517
+ * <p>The unique name of the data source that has been configured on the API.</p>
1518
+ * @public
1519
+ */
1520
+ dataSourceName: string | undefined;
1521
+ /**
1522
+ * <p>The configuration for a Lambda data source.</p>
1523
+ * @public
1524
+ */
1525
+ lambdaConfig?: LambdaConfig | undefined;
1526
+ }
1527
+ /**
1528
+ * <p>The configuration for a handler.</p>
1529
+ * @public
1530
+ */
1531
+ export interface HandlerConfig {
1532
+ /**
1533
+ * <p>The behavior for the handler.</p>
1534
+ * @public
1535
+ */
1536
+ behavior: HandlerBehavior | undefined;
1537
+ /**
1538
+ * <p>The integration data source configuration for the handler.</p>
1539
+ * @public
1540
+ */
1541
+ integration: Integration | undefined;
1542
+ }
1543
+ /**
1544
+ * <p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>
1545
+ * @public
1546
+ */
1547
+ export interface HandlerConfigs {
1548
+ /**
1549
+ * <p>The configuration for the <code>OnPublish</code> handler.</p>
1550
+ * @public
1551
+ */
1552
+ onPublish?: HandlerConfig | undefined;
1553
+ /**
1554
+ * <p>The configuration for the <code>OnSubscribe</code> handler.</p>
1555
+ * @public
1556
+ */
1557
+ onSubscribe?: HandlerConfig | undefined;
1558
+ }
1476
1559
  /**
1477
1560
  * @public
1478
1561
  */
@@ -1513,6 +1596,11 @@ export interface CreateChannelNamespaceRequest {
1513
1596
  * @public
1514
1597
  */
1515
1598
  tags?: Record<string, string> | undefined;
1599
+ /**
1600
+ * <p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>
1601
+ * @public
1602
+ */
1603
+ handlerConfigs?: HandlerConfigs | undefined;
1516
1604
  }
1517
1605
  /**
1518
1606
  * <p>Describes a channel namespace associated with an <code>Api</code>. The
@@ -1571,6 +1659,11 @@ export interface ChannelNamespace {
1571
1659
  * @public
1572
1660
  */
1573
1661
  lastModified?: Date | undefined;
1662
+ /**
1663
+ * <p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>
1664
+ * @public
1665
+ */
1666
+ handlerConfigs?: HandlerConfigs | undefined;
1574
1667
  }
1575
1668
  /**
1576
1669
  * @public
@@ -5215,6 +5308,11 @@ export interface UpdateChannelNamespaceRequest {
5215
5308
  * @public
5216
5309
  */
5217
5310
  codeHandlers?: string | undefined;
5311
+ /**
5312
+ * <p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>
5313
+ * @public
5314
+ */
5315
+ handlerConfigs?: HandlerConfigs | undefined;
5218
5316
  }
5219
5317
  /**
5220
5318
  * @public
@@ -358,6 +358,32 @@ export declare class ConflictException extends __BaseException {
358
358
  readonly $fault: "client";
359
359
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
360
360
  }
361
+ export declare const HandlerBehavior: {
362
+ readonly CODE: "CODE";
363
+ readonly DIRECT: "DIRECT";
364
+ };
365
+ export type HandlerBehavior =
366
+ (typeof HandlerBehavior)[keyof typeof HandlerBehavior];
367
+ export declare const InvokeType: {
368
+ readonly EVENT: "EVENT";
369
+ readonly REQUEST_RESPONSE: "REQUEST_RESPONSE";
370
+ };
371
+ export type InvokeType = (typeof InvokeType)[keyof typeof InvokeType];
372
+ export interface LambdaConfig {
373
+ invokeType?: InvokeType | undefined;
374
+ }
375
+ export interface Integration {
376
+ dataSourceName: string | undefined;
377
+ lambdaConfig?: LambdaConfig | undefined;
378
+ }
379
+ export interface HandlerConfig {
380
+ behavior: HandlerBehavior | undefined;
381
+ integration: Integration | undefined;
382
+ }
383
+ export interface HandlerConfigs {
384
+ onPublish?: HandlerConfig | undefined;
385
+ onSubscribe?: HandlerConfig | undefined;
386
+ }
361
387
  export interface CreateChannelNamespaceRequest {
362
388
  apiId: string | undefined;
363
389
  name: string | undefined;
@@ -365,6 +391,7 @@ export interface CreateChannelNamespaceRequest {
365
391
  publishAuthModes?: AuthMode[] | undefined;
366
392
  codeHandlers?: string | undefined;
367
393
  tags?: Record<string, string> | undefined;
394
+ handlerConfigs?: HandlerConfigs | undefined;
368
395
  }
369
396
  export interface ChannelNamespace {
370
397
  apiId?: string | undefined;
@@ -376,6 +403,7 @@ export interface ChannelNamespace {
376
403
  channelNamespaceArn?: string | undefined;
377
404
  created?: Date | undefined;
378
405
  lastModified?: Date | undefined;
406
+ handlerConfigs?: HandlerConfigs | undefined;
379
407
  }
380
408
  export interface CreateChannelNamespaceResponse {
381
409
  channelNamespace?: ChannelNamespace | undefined;
@@ -1181,6 +1209,7 @@ export interface UpdateChannelNamespaceRequest {
1181
1209
  subscribeAuthModes?: AuthMode[] | undefined;
1182
1210
  publishAuthModes?: AuthMode[] | undefined;
1183
1211
  codeHandlers?: string | undefined;
1212
+ handlerConfigs?: HandlerConfigs | undefined;
1184
1213
  }
1185
1214
  export interface UpdateChannelNamespaceResponse {
1186
1215
  channelNamespace?: ChannelNamespace | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appsync",
3
3
  "description": "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
4
- "version": "3.782.0",
4
+ "version": "3.796.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-appsync",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.775.0",
24
- "@aws-sdk/credential-provider-node": "3.782.0",
23
+ "@aws-sdk/core": "3.796.0",
24
+ "@aws-sdk/credential-provider-node": "3.796.0",
25
25
  "@aws-sdk/middleware-host-header": "3.775.0",
26
26
  "@aws-sdk/middleware-logger": "3.775.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
- "@aws-sdk/middleware-user-agent": "3.782.0",
28
+ "@aws-sdk/middleware-user-agent": "3.796.0",
29
29
  "@aws-sdk/region-config-resolver": "3.775.0",
30
30
  "@aws-sdk/types": "3.775.0",
31
- "@aws-sdk/util-endpoints": "3.782.0",
31
+ "@aws-sdk/util-endpoints": "3.787.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.775.0",
33
- "@aws-sdk/util-user-agent-node": "3.782.0",
33
+ "@aws-sdk/util-user-agent-node": "3.796.0",
34
34
  "@smithy/config-resolver": "^4.1.0",
35
35
  "@smithy/core": "^3.2.0",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",