Skip to content

Commit 594da7c

Browse files
author
AWS
committed
AWS AppSync Update: Add data source support to Event APIs
1 parent 157f16c commit 594da7c

File tree

2 files changed

+90
-1
lines changed

2 files changed

+90
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS AppSync",
4+
"contributor": "",
5+
"description": "Add data source support to Event APIs"
6+
}

services/appsync/src/main/resources/codegen-resources/service-2.json

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,10 @@
17991799
"lastModified":{
18001800
"shape":"Timestamp",
18011801
"documentation":"<p>The date and time that the <code>ChannelNamespace</code> was last changed.</p>"
1802+
},
1803+
"handlerConfigs":{
1804+
"shape":"HandlerConfigs",
1805+
"documentation":"<p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>"
18021806
}
18031807
},
18041808
"documentation":"<p>Describes a channel namespace associated with an <code>Api</code>. The <code>ChannelNamespace</code> contains the definitions for code handlers for the <code>Api</code>.</p>"
@@ -2077,7 +2081,11 @@
20772081
"shape":"Code",
20782082
"documentation":"<p>The event handler functions that run custom business logic to process published events and subscribe requests.</p>"
20792083
},
2080-
"tags":{"shape":"TagMap"}
2084+
"tags":{"shape":"TagMap"},
2085+
"handlerConfigs":{
2086+
"shape":"HandlerConfigs",
2087+
"documentation":"<p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>"
2088+
}
20812089
}
20822090
},
20832091
"CreateChannelNamespaceResponse":{
@@ -3978,6 +3986,45 @@
39783986
"type":"list",
39793987
"member":{"shape":"GraphqlApi"}
39803988
},
3989+
"HandlerBehavior":{
3990+
"type":"string",
3991+
"enum":[
3992+
"CODE",
3993+
"DIRECT"
3994+
]
3995+
},
3996+
"HandlerConfig":{
3997+
"type":"structure",
3998+
"required":[
3999+
"behavior",
4000+
"integration"
4001+
],
4002+
"members":{
4003+
"behavior":{
4004+
"shape":"HandlerBehavior",
4005+
"documentation":"<p>The behavior for the handler.</p>"
4006+
},
4007+
"integration":{
4008+
"shape":"Integration",
4009+
"documentation":"<p>The integration data source configuration for the handler.</p>"
4010+
}
4011+
},
4012+
"documentation":"<p>The configuration for a handler.</p>"
4013+
},
4014+
"HandlerConfigs":{
4015+
"type":"structure",
4016+
"members":{
4017+
"onPublish":{
4018+
"shape":"HandlerConfig",
4019+
"documentation":"<p>The configuration for the <code>OnPublish</code> handler.</p>"
4020+
},
4021+
"onSubscribe":{
4022+
"shape":"HandlerConfig",
4023+
"documentation":"<p>The configuration for the <code>OnSubscribe</code> handler.</p>"
4024+
}
4025+
},
4026+
"documentation":"<p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>"
4027+
},
39814028
"HttpDataSourceConfig":{
39824029
"type":"structure",
39834030
"members":{
@@ -3992,6 +4039,21 @@
39924039
},
39934040
"documentation":"<p>Describes an HTTP data source configuration.</p>"
39944041
},
4042+
"Integration":{
4043+
"type":"structure",
4044+
"required":["dataSourceName"],
4045+
"members":{
4046+
"dataSourceName":{
4047+
"shape":"String",
4048+
"documentation":"<p>The unique name of the data source that has been configured on the API.</p>"
4049+
},
4050+
"lambdaConfig":{
4051+
"shape":"LambdaConfig",
4052+
"documentation":"<p>The configuration for a Lambda data source.</p>"
4053+
}
4054+
},
4055+
"documentation":"<p>The integration data source configuration for the handler.</p>"
4056+
},
39954057
"InternalFailureException":{
39964058
"type":"structure",
39974059
"members":{
@@ -4002,6 +4064,13 @@
40024064
"exception":true,
40034065
"fault":true
40044066
},
4067+
"InvokeType":{
4068+
"type":"string",
4069+
"enum":[
4070+
"REQUEST_RESPONSE",
4071+
"EVENT"
4072+
]
4073+
},
40054074
"LambdaAuthorizerConfig":{
40064075
"type":"structure",
40074076
"required":["authorizerUri"],
@@ -4021,6 +4090,16 @@
40214090
},
40224091
"documentation":"<p>A <code>LambdaAuthorizerConfig</code> specifies how to authorize AppSync API access when using the <code>AWS_LAMBDA</code> authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.</p>"
40234092
},
4093+
"LambdaConfig":{
4094+
"type":"structure",
4095+
"members":{
4096+
"invokeType":{
4097+
"shape":"InvokeType",
4098+
"documentation":"<p>The invocation type for a Lambda data source.</p>"
4099+
}
4100+
},
4101+
"documentation":"<p>The configuration for a Lambda data source.</p>"
4102+
},
40244103
"LambdaConflictHandlerConfig":{
40254104
"type":"structure",
40264105
"members":{
@@ -5451,6 +5530,10 @@
54515530
"codeHandlers":{
54525531
"shape":"Code",
54535532
"documentation":"<p>The event handler functions that run custom business logic to process published events and subscribe requests.</p>"
5533+
},
5534+
"handlerConfigs":{
5535+
"shape":"HandlerConfigs",
5536+
"documentation":"<p>The configuration for the <code>OnPublish</code> and <code>OnSubscribe</code> handlers.</p>"
54545537
}
54555538
}
54565539
},

0 commit comments

Comments
 (0)