aws-sdk-appsync 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-appsync.rb +1 -1
- data/lib/aws-sdk-appsync/client.rb +23 -7
- data/lib/aws-sdk-appsync/client_api.rb +7 -0
- data/lib/aws-sdk-appsync/types.rb +51 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13544e371fab2ac876c6f9700a6077d9024ca82a
|
4
|
+
data.tar.gz: 1ca441213149f11b37b379fe4635559b8ad5b6ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f935f654be935266878ecfd52c018b22b5672f1ec5fa5e6c551dae2c1a995cc0fac9ac2e1f172ac53560c310db689e24901c9130a675897b276d3c5572ec62a1
|
7
|
+
data.tar.gz: e78a6dee1e12058ae0e984dc897a3630b2a3c4f26be59d10523b2a5f20b769f0bb4b08ea0d4a3e3675684fe0f6a1b2f11f5a6fd41b66585f0e0d0fdfdd6a7922
|
data/lib/aws-sdk-appsync.rb
CHANGED
@@ -225,6 +225,9 @@ module Aws::AppSync
|
|
225
225
|
# @option params [Types::ElasticsearchDataSourceConfig] :elasticsearch_config
|
226
226
|
# Amazon Elasticsearch settings.
|
227
227
|
#
|
228
|
+
# @option params [Types::HttpDataSourceConfig] :http_config
|
229
|
+
# Http endpoint settings.
|
230
|
+
#
|
228
231
|
# @return [Types::CreateDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
229
232
|
#
|
230
233
|
# * {Types::CreateDataSourceResponse#data_source #data_source} => Types::DataSource
|
@@ -235,7 +238,7 @@ module Aws::AppSync
|
|
235
238
|
# api_id: "String", # required
|
236
239
|
# name: "ResourceName", # required
|
237
240
|
# description: "String",
|
238
|
-
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE
|
241
|
+
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE, HTTP
|
239
242
|
# service_role_arn: "String",
|
240
243
|
# dynamodb_config: {
|
241
244
|
# table_name: "String", # required
|
@@ -249,6 +252,9 @@ module Aws::AppSync
|
|
249
252
|
# endpoint: "String", # required
|
250
253
|
# aws_region: "String", # required
|
251
254
|
# },
|
255
|
+
# http_config: {
|
256
|
+
# endpoint: "String",
|
257
|
+
# },
|
252
258
|
# })
|
253
259
|
#
|
254
260
|
# @example Response structure
|
@@ -256,7 +262,7 @@ module Aws::AppSync
|
|
256
262
|
# resp.data_source.data_source_arn #=> String
|
257
263
|
# resp.data_source.name #=> String
|
258
264
|
# resp.data_source.description #=> String
|
259
|
-
# resp.data_source.type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE"
|
265
|
+
# resp.data_source.type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE", "HTTP"
|
260
266
|
# resp.data_source.service_role_arn #=> String
|
261
267
|
# resp.data_source.dynamodb_config.table_name #=> String
|
262
268
|
# resp.data_source.dynamodb_config.aws_region #=> String
|
@@ -264,6 +270,7 @@ module Aws::AppSync
|
|
264
270
|
# resp.data_source.lambda_config.lambda_function_arn #=> String
|
265
271
|
# resp.data_source.elasticsearch_config.endpoint #=> String
|
266
272
|
# resp.data_source.elasticsearch_config.aws_region #=> String
|
273
|
+
# resp.data_source.http_config.endpoint #=> String
|
267
274
|
#
|
268
275
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource AWS API Documentation
|
269
276
|
#
|
@@ -607,7 +614,7 @@ module Aws::AppSync
|
|
607
614
|
# resp.data_source.data_source_arn #=> String
|
608
615
|
# resp.data_source.name #=> String
|
609
616
|
# resp.data_source.description #=> String
|
610
|
-
# resp.data_source.type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE"
|
617
|
+
# resp.data_source.type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE", "HTTP"
|
611
618
|
# resp.data_source.service_role_arn #=> String
|
612
619
|
# resp.data_source.dynamodb_config.table_name #=> String
|
613
620
|
# resp.data_source.dynamodb_config.aws_region #=> String
|
@@ -615,6 +622,7 @@ module Aws::AppSync
|
|
615
622
|
# resp.data_source.lambda_config.lambda_function_arn #=> String
|
616
623
|
# resp.data_source.elasticsearch_config.endpoint #=> String
|
617
624
|
# resp.data_source.elasticsearch_config.aws_region #=> String
|
625
|
+
# resp.data_source.http_config.endpoint #=> String
|
618
626
|
#
|
619
627
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource AWS API Documentation
|
620
628
|
#
|
@@ -893,7 +901,7 @@ module Aws::AppSync
|
|
893
901
|
# resp.data_sources[0].data_source_arn #=> String
|
894
902
|
# resp.data_sources[0].name #=> String
|
895
903
|
# resp.data_sources[0].description #=> String
|
896
|
-
# resp.data_sources[0].type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE"
|
904
|
+
# resp.data_sources[0].type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE", "HTTP"
|
897
905
|
# resp.data_sources[0].service_role_arn #=> String
|
898
906
|
# resp.data_sources[0].dynamodb_config.table_name #=> String
|
899
907
|
# resp.data_sources[0].dynamodb_config.aws_region #=> String
|
@@ -901,6 +909,7 @@ module Aws::AppSync
|
|
901
909
|
# resp.data_sources[0].lambda_config.lambda_function_arn #=> String
|
902
910
|
# resp.data_sources[0].elasticsearch_config.endpoint #=> String
|
903
911
|
# resp.data_sources[0].elasticsearch_config.aws_region #=> String
|
912
|
+
# resp.data_sources[0].http_config.endpoint #=> String
|
904
913
|
# resp.next_token #=> String
|
905
914
|
#
|
906
915
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources AWS API Documentation
|
@@ -1167,6 +1176,9 @@ module Aws::AppSync
|
|
1167
1176
|
# @option params [Types::ElasticsearchDataSourceConfig] :elasticsearch_config
|
1168
1177
|
# The new Elasticsearch configuration.
|
1169
1178
|
#
|
1179
|
+
# @option params [Types::HttpDataSourceConfig] :http_config
|
1180
|
+
# The new http endpoint configuration
|
1181
|
+
#
|
1170
1182
|
# @return [Types::UpdateDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1171
1183
|
#
|
1172
1184
|
# * {Types::UpdateDataSourceResponse#data_source #data_source} => Types::DataSource
|
@@ -1177,7 +1189,7 @@ module Aws::AppSync
|
|
1177
1189
|
# api_id: "String", # required
|
1178
1190
|
# name: "ResourceName", # required
|
1179
1191
|
# description: "String",
|
1180
|
-
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE
|
1192
|
+
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE, HTTP
|
1181
1193
|
# service_role_arn: "String",
|
1182
1194
|
# dynamodb_config: {
|
1183
1195
|
# table_name: "String", # required
|
@@ -1191,6 +1203,9 @@ module Aws::AppSync
|
|
1191
1203
|
# endpoint: "String", # required
|
1192
1204
|
# aws_region: "String", # required
|
1193
1205
|
# },
|
1206
|
+
# http_config: {
|
1207
|
+
# endpoint: "String",
|
1208
|
+
# },
|
1194
1209
|
# })
|
1195
1210
|
#
|
1196
1211
|
# @example Response structure
|
@@ -1198,7 +1213,7 @@ module Aws::AppSync
|
|
1198
1213
|
# resp.data_source.data_source_arn #=> String
|
1199
1214
|
# resp.data_source.name #=> String
|
1200
1215
|
# resp.data_source.description #=> String
|
1201
|
-
# resp.data_source.type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE"
|
1216
|
+
# resp.data_source.type #=> String, one of "AWS_LAMBDA", "AMAZON_DYNAMODB", "AMAZON_ELASTICSEARCH", "NONE", "HTTP"
|
1202
1217
|
# resp.data_source.service_role_arn #=> String
|
1203
1218
|
# resp.data_source.dynamodb_config.table_name #=> String
|
1204
1219
|
# resp.data_source.dynamodb_config.aws_region #=> String
|
@@ -1206,6 +1221,7 @@ module Aws::AppSync
|
|
1206
1221
|
# resp.data_source.lambda_config.lambda_function_arn #=> String
|
1207
1222
|
# resp.data_source.elasticsearch_config.endpoint #=> String
|
1208
1223
|
# resp.data_source.elasticsearch_config.aws_region #=> String
|
1224
|
+
# resp.data_source.http_config.endpoint #=> String
|
1209
1225
|
#
|
1210
1226
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource AWS API Documentation
|
1211
1227
|
#
|
@@ -1404,7 +1420,7 @@ module Aws::AppSync
|
|
1404
1420
|
params: params,
|
1405
1421
|
config: config)
|
1406
1422
|
context[:gem_name] = 'aws-sdk-appsync'
|
1407
|
-
context[:gem_version] = '1.
|
1423
|
+
context[:gem_version] = '1.4.0'
|
1408
1424
|
Seahorse::Client::Request.new(handlers, context)
|
1409
1425
|
end
|
1410
1426
|
|
@@ -64,6 +64,7 @@ module Aws::AppSync
|
|
64
64
|
GraphQLSchemaException = Shapes::StructureShape.new(name: 'GraphQLSchemaException')
|
65
65
|
GraphqlApi = Shapes::StructureShape.new(name: 'GraphqlApi')
|
66
66
|
GraphqlApis = Shapes::ListShape.new(name: 'GraphqlApis')
|
67
|
+
HttpDataSourceConfig = Shapes::StructureShape.new(name: 'HttpDataSourceConfig')
|
67
68
|
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
68
69
|
LambdaDataSourceConfig = Shapes::StructureShape.new(name: 'LambdaDataSourceConfig')
|
69
70
|
LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
|
@@ -132,6 +133,7 @@ module Aws::AppSync
|
|
132
133
|
CreateDataSourceRequest.add_member(:dynamodb_config, Shapes::ShapeRef.new(shape: DynamodbDataSourceConfig, location_name: "dynamodbConfig"))
|
133
134
|
CreateDataSourceRequest.add_member(:lambda_config, Shapes::ShapeRef.new(shape: LambdaDataSourceConfig, location_name: "lambdaConfig"))
|
134
135
|
CreateDataSourceRequest.add_member(:elasticsearch_config, Shapes::ShapeRef.new(shape: ElasticsearchDataSourceConfig, location_name: "elasticsearchConfig"))
|
136
|
+
CreateDataSourceRequest.add_member(:http_config, Shapes::ShapeRef.new(shape: HttpDataSourceConfig, location_name: "httpConfig"))
|
135
137
|
CreateDataSourceRequest.struct_class = Types::CreateDataSourceRequest
|
136
138
|
|
137
139
|
CreateDataSourceResponse.add_member(:data_source, Shapes::ShapeRef.new(shape: DataSource, location_name: "dataSource"))
|
@@ -174,6 +176,7 @@ module Aws::AppSync
|
|
174
176
|
DataSource.add_member(:dynamodb_config, Shapes::ShapeRef.new(shape: DynamodbDataSourceConfig, location_name: "dynamodbConfig"))
|
175
177
|
DataSource.add_member(:lambda_config, Shapes::ShapeRef.new(shape: LambdaDataSourceConfig, location_name: "lambdaConfig"))
|
176
178
|
DataSource.add_member(:elasticsearch_config, Shapes::ShapeRef.new(shape: ElasticsearchDataSourceConfig, location_name: "elasticsearchConfig"))
|
179
|
+
DataSource.add_member(:http_config, Shapes::ShapeRef.new(shape: HttpDataSourceConfig, location_name: "httpConfig"))
|
177
180
|
DataSource.struct_class = Types::DataSource
|
178
181
|
|
179
182
|
DataSources.member = Shapes::ShapeRef.new(shape: DataSource)
|
@@ -274,6 +277,9 @@ module Aws::AppSync
|
|
274
277
|
|
275
278
|
GraphqlApis.member = Shapes::ShapeRef.new(shape: GraphqlApi)
|
276
279
|
|
280
|
+
HttpDataSourceConfig.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, location_name: "endpoint"))
|
281
|
+
HttpDataSourceConfig.struct_class = Types::HttpDataSourceConfig
|
282
|
+
|
277
283
|
LambdaDataSourceConfig.add_member(:lambda_function_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "lambdaFunctionArn"))
|
278
284
|
LambdaDataSourceConfig.struct_class = Types::LambdaDataSourceConfig
|
279
285
|
|
@@ -379,6 +385,7 @@ module Aws::AppSync
|
|
379
385
|
UpdateDataSourceRequest.add_member(:dynamodb_config, Shapes::ShapeRef.new(shape: DynamodbDataSourceConfig, location_name: "dynamodbConfig"))
|
380
386
|
UpdateDataSourceRequest.add_member(:lambda_config, Shapes::ShapeRef.new(shape: LambdaDataSourceConfig, location_name: "lambdaConfig"))
|
381
387
|
UpdateDataSourceRequest.add_member(:elasticsearch_config, Shapes::ShapeRef.new(shape: ElasticsearchDataSourceConfig, location_name: "elasticsearchConfig"))
|
388
|
+
UpdateDataSourceRequest.add_member(:http_config, Shapes::ShapeRef.new(shape: HttpDataSourceConfig, location_name: "httpConfig"))
|
382
389
|
UpdateDataSourceRequest.struct_class = Types::UpdateDataSourceRequest
|
383
390
|
|
384
391
|
UpdateDataSourceResponse.add_member(:data_source, Shapes::ShapeRef.new(shape: DataSource, location_name: "dataSource"))
|
@@ -120,7 +120,7 @@ module Aws::AppSync
|
|
120
120
|
# api_id: "String", # required
|
121
121
|
# name: "ResourceName", # required
|
122
122
|
# description: "String",
|
123
|
-
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE
|
123
|
+
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE, HTTP
|
124
124
|
# service_role_arn: "String",
|
125
125
|
# dynamodb_config: {
|
126
126
|
# table_name: "String", # required
|
@@ -134,6 +134,9 @@ module Aws::AppSync
|
|
134
134
|
# endpoint: "String", # required
|
135
135
|
# aws_region: "String", # required
|
136
136
|
# },
|
137
|
+
# http_config: {
|
138
|
+
# endpoint: "String",
|
139
|
+
# },
|
137
140
|
# }
|
138
141
|
#
|
139
142
|
# @!attribute [rw] api_id
|
@@ -169,6 +172,10 @@ module Aws::AppSync
|
|
169
172
|
# Amazon Elasticsearch settings.
|
170
173
|
# @return [Types::ElasticsearchDataSourceConfig]
|
171
174
|
#
|
175
|
+
# @!attribute [rw] http_config
|
176
|
+
# Http endpoint settings.
|
177
|
+
# @return [Types::HttpDataSourceConfig]
|
178
|
+
#
|
172
179
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSourceRequest AWS API Documentation
|
173
180
|
#
|
174
181
|
class CreateDataSourceRequest < Struct.new(
|
@@ -179,7 +186,8 @@ module Aws::AppSync
|
|
179
186
|
:service_role_arn,
|
180
187
|
:dynamodb_config,
|
181
188
|
:lambda_config,
|
182
|
-
:elasticsearch_config
|
189
|
+
:elasticsearch_config,
|
190
|
+
:http_config)
|
183
191
|
include Aws::Structure
|
184
192
|
end
|
185
193
|
|
@@ -400,6 +408,8 @@ module Aws::AppSync
|
|
400
408
|
# you wish to invoke a GraphQL operation without connecting to a
|
401
409
|
# data source, such as performing data transformation with resolvers
|
402
410
|
# or triggering a subscription to be invoked from a mutation.
|
411
|
+
#
|
412
|
+
# * **HTTP**\: The data source is an HTTP endpoint.
|
403
413
|
# @return [String]
|
404
414
|
#
|
405
415
|
# @!attribute [rw] service_role_arn
|
@@ -419,6 +429,10 @@ module Aws::AppSync
|
|
419
429
|
# Amazon Elasticsearch settings.
|
420
430
|
# @return [Types::ElasticsearchDataSourceConfig]
|
421
431
|
#
|
432
|
+
# @!attribute [rw] http_config
|
433
|
+
# Http endpoint settings.
|
434
|
+
# @return [Types::HttpDataSourceConfig]
|
435
|
+
#
|
422
436
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSource AWS API Documentation
|
423
437
|
#
|
424
438
|
class DataSource < Struct.new(
|
@@ -429,7 +443,8 @@ module Aws::AppSync
|
|
429
443
|
:service_role_arn,
|
430
444
|
:dynamodb_config,
|
431
445
|
:lambda_config,
|
432
|
-
:elasticsearch_config
|
446
|
+
:elasticsearch_config,
|
447
|
+
:http_config)
|
433
448
|
include Aws::Structure
|
434
449
|
end
|
435
450
|
|
@@ -902,6 +917,29 @@ module Aws::AppSync
|
|
902
917
|
include Aws::Structure
|
903
918
|
end
|
904
919
|
|
920
|
+
# Describes a Http data source configuration.
|
921
|
+
#
|
922
|
+
# @note When making an API call, you may pass HttpDataSourceConfig
|
923
|
+
# data as a hash:
|
924
|
+
#
|
925
|
+
# {
|
926
|
+
# endpoint: "String",
|
927
|
+
# }
|
928
|
+
#
|
929
|
+
# @!attribute [rw] endpoint
|
930
|
+
# The Http url endpoint. You can either specify the domain name or ip
|
931
|
+
# and port combination and the url scheme must be http(s). If the port
|
932
|
+
# is not specified, AWS AppSync will use the default port 80 for http
|
933
|
+
# endpoint and port 443 for https endpoints.
|
934
|
+
# @return [String]
|
935
|
+
#
|
936
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/HttpDataSourceConfig AWS API Documentation
|
937
|
+
#
|
938
|
+
class HttpDataSourceConfig < Struct.new(
|
939
|
+
:endpoint)
|
940
|
+
include Aws::Structure
|
941
|
+
end
|
942
|
+
|
905
943
|
# Describes a Lambda data source configuration.
|
906
944
|
#
|
907
945
|
# @note When making an API call, you may pass LambdaDataSourceConfig
|
@@ -1429,7 +1467,7 @@ module Aws::AppSync
|
|
1429
1467
|
# api_id: "String", # required
|
1430
1468
|
# name: "ResourceName", # required
|
1431
1469
|
# description: "String",
|
1432
|
-
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE
|
1470
|
+
# type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, NONE, HTTP
|
1433
1471
|
# service_role_arn: "String",
|
1434
1472
|
# dynamodb_config: {
|
1435
1473
|
# table_name: "String", # required
|
@@ -1443,6 +1481,9 @@ module Aws::AppSync
|
|
1443
1481
|
# endpoint: "String", # required
|
1444
1482
|
# aws_region: "String", # required
|
1445
1483
|
# },
|
1484
|
+
# http_config: {
|
1485
|
+
# endpoint: "String",
|
1486
|
+
# },
|
1446
1487
|
# }
|
1447
1488
|
#
|
1448
1489
|
# @!attribute [rw] api_id
|
@@ -1477,6 +1518,10 @@ module Aws::AppSync
|
|
1477
1518
|
# The new Elasticsearch configuration.
|
1478
1519
|
# @return [Types::ElasticsearchDataSourceConfig]
|
1479
1520
|
#
|
1521
|
+
# @!attribute [rw] http_config
|
1522
|
+
# The new http endpoint configuration
|
1523
|
+
# @return [Types::HttpDataSourceConfig]
|
1524
|
+
#
|
1480
1525
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSourceRequest AWS API Documentation
|
1481
1526
|
#
|
1482
1527
|
class UpdateDataSourceRequest < Struct.new(
|
@@ -1487,7 +1532,8 @@ module Aws::AppSync
|
|
1487
1532
|
:service_role_arn,
|
1488
1533
|
:dynamodb_config,
|
1489
1534
|
:lambda_config,
|
1490
|
-
:elasticsearch_config
|
1535
|
+
:elasticsearch_config,
|
1536
|
+
:http_config)
|
1491
1537
|
include Aws::Structure
|
1492
1538
|
end
|
1493
1539
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-appsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|