aws-sdk-appsync 1.0.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.
File without changes
@@ -0,0 +1,14 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::AppSync
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ end
14
+ end
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::AppSync
9
+ class Resource
10
+
11
+ # @param options ({})
12
+ # @option options [Client] :client
13
+ def initialize(options = {})
14
+ @client = options[:client] || Client.new(options)
15
+ end
16
+
17
+ # @return [Client]
18
+ def client
19
+ @client
20
+ end
21
+
22
+ end
23
+ end
@@ -0,0 +1,1474 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::AppSync
9
+ module Types
10
+
11
+ # Describes an API key.
12
+ #
13
+ # @!attribute [rw] id
14
+ # The API key ID.
15
+ # @return [String]
16
+ #
17
+ # @!attribute [rw] description
18
+ # A description of the purpose of the API key.
19
+ # @return [String]
20
+ #
21
+ # @!attribute [rw] expires
22
+ # The time when the API key expires.
23
+ # @return [Integer]
24
+ #
25
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ApiKey AWS API Documentation
26
+ #
27
+ class ApiKey < Struct.new(
28
+ :id,
29
+ :description,
30
+ :expires)
31
+ include Aws::Structure
32
+ end
33
+
34
+ # @note When making an API call, you may pass CreateApiKeyRequest
35
+ # data as a hash:
36
+ #
37
+ # {
38
+ # api_id: "String", # required
39
+ # description: "String",
40
+ # }
41
+ #
42
+ # @!attribute [rw] api_id
43
+ # The ID for your GraphQL API.
44
+ # @return [String]
45
+ #
46
+ # @!attribute [rw] description
47
+ # A description of the purpose of the API key.
48
+ # @return [String]
49
+ #
50
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKeyRequest AWS API Documentation
51
+ #
52
+ class CreateApiKeyRequest < Struct.new(
53
+ :api_id,
54
+ :description)
55
+ include Aws::Structure
56
+ end
57
+
58
+ # @!attribute [rw] api_key
59
+ # The API key.
60
+ # @return [Types::ApiKey]
61
+ #
62
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiKeyResponse AWS API Documentation
63
+ #
64
+ class CreateApiKeyResponse < Struct.new(
65
+ :api_key)
66
+ include Aws::Structure
67
+ end
68
+
69
+ # @note When making an API call, you may pass CreateDataSourceRequest
70
+ # data as a hash:
71
+ #
72
+ # {
73
+ # api_id: "String", # required
74
+ # name: "ResourceName", # required
75
+ # description: "String",
76
+ # type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH
77
+ # service_role_arn: "String",
78
+ # dynamodb_config: {
79
+ # table_name: "String", # required
80
+ # aws_region: "String", # required
81
+ # use_caller_credentials: false,
82
+ # },
83
+ # lambda_config: {
84
+ # lambda_function_arn: "String", # required
85
+ # },
86
+ # elasticsearch_config: {
87
+ # endpoint: "String", # required
88
+ # aws_region: "String", # required
89
+ # },
90
+ # }
91
+ #
92
+ # @!attribute [rw] api_id
93
+ # The API ID for the GraphQL API for the `DataSource`.
94
+ # @return [String]
95
+ #
96
+ # @!attribute [rw] name
97
+ # A user-supplied name for the `DataSource`.
98
+ # @return [String]
99
+ #
100
+ # @!attribute [rw] description
101
+ # A description of the `DataSource`.
102
+ # @return [String]
103
+ #
104
+ # @!attribute [rw] type
105
+ # The type of the `DataSource`.
106
+ # @return [String]
107
+ #
108
+ # @!attribute [rw] service_role_arn
109
+ # The IAM service role ARN for the data source. The system assumes
110
+ # this role when accessing the data source.
111
+ # @return [String]
112
+ #
113
+ # @!attribute [rw] dynamodb_config
114
+ # DynamoDB settings.
115
+ # @return [Types::DynamodbDataSourceConfig]
116
+ #
117
+ # @!attribute [rw] lambda_config
118
+ # AWS Lambda settings.
119
+ # @return [Types::LambdaDataSourceConfig]
120
+ #
121
+ # @!attribute [rw] elasticsearch_config
122
+ # Amazon Elasticsearch settings.
123
+ # @return [Types::ElasticsearchDataSourceConfig]
124
+ #
125
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSourceRequest AWS API Documentation
126
+ #
127
+ class CreateDataSourceRequest < Struct.new(
128
+ :api_id,
129
+ :name,
130
+ :description,
131
+ :type,
132
+ :service_role_arn,
133
+ :dynamodb_config,
134
+ :lambda_config,
135
+ :elasticsearch_config)
136
+ include Aws::Structure
137
+ end
138
+
139
+ # @!attribute [rw] data_source
140
+ # The `DataSource` object.
141
+ # @return [Types::DataSource]
142
+ #
143
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSourceResponse AWS API Documentation
144
+ #
145
+ class CreateDataSourceResponse < Struct.new(
146
+ :data_source)
147
+ include Aws::Structure
148
+ end
149
+
150
+ # @note When making an API call, you may pass CreateGraphqlApiRequest
151
+ # data as a hash:
152
+ #
153
+ # {
154
+ # name: "ResourceName", # required
155
+ # authentication_type: "API_KEY", # required, accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS
156
+ # user_pool_config: {
157
+ # user_pool_id: "String", # required
158
+ # aws_region: "String", # required
159
+ # default_action: "ALLOW", # required, accepts ALLOW, DENY
160
+ # app_id_client_regex: "String",
161
+ # },
162
+ # }
163
+ #
164
+ # @!attribute [rw] name
165
+ # A user-supplied name for the `GraphqlApi`.
166
+ # @return [String]
167
+ #
168
+ # @!attribute [rw] authentication_type
169
+ # The authentication type: API key, IAM, or Amazon Cognito User Pools.
170
+ # @return [String]
171
+ #
172
+ # @!attribute [rw] user_pool_config
173
+ # The Amazon Cognito User Pool configuration.
174
+ # @return [Types::UserPoolConfig]
175
+ #
176
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApiRequest AWS API Documentation
177
+ #
178
+ class CreateGraphqlApiRequest < Struct.new(
179
+ :name,
180
+ :authentication_type,
181
+ :user_pool_config)
182
+ include Aws::Structure
183
+ end
184
+
185
+ # @!attribute [rw] graphql_api
186
+ # The `GraphqlApi`.
187
+ # @return [Types::GraphqlApi]
188
+ #
189
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApiResponse AWS API Documentation
190
+ #
191
+ class CreateGraphqlApiResponse < Struct.new(
192
+ :graphql_api)
193
+ include Aws::Structure
194
+ end
195
+
196
+ # @note When making an API call, you may pass CreateResolverRequest
197
+ # data as a hash:
198
+ #
199
+ # {
200
+ # api_id: "String", # required
201
+ # type_name: "ResourceName", # required
202
+ # field_name: "ResourceName", # required
203
+ # data_source_name: "ResourceName", # required
204
+ # request_mapping_template: "MappingTemplate", # required
205
+ # response_mapping_template: "MappingTemplate",
206
+ # }
207
+ #
208
+ # @!attribute [rw] api_id
209
+ # The ID for the GraphQL API for which the resolver is being created.
210
+ # @return [String]
211
+ #
212
+ # @!attribute [rw] type_name
213
+ # The name of the `Type`.
214
+ # @return [String]
215
+ #
216
+ # @!attribute [rw] field_name
217
+ # The name of the field to attach the resolver to.
218
+ # @return [String]
219
+ #
220
+ # @!attribute [rw] data_source_name
221
+ # The name of the data source for which the resolver is being created.
222
+ # @return [String]
223
+ #
224
+ # @!attribute [rw] request_mapping_template
225
+ # The mapping template to be used for requests.
226
+ #
227
+ # A resolver use a request mapping template to convert a GraphQL
228
+ # expression into a format that a data source can understand. Mapping
229
+ # templates are written in Apache Velocity Template Language (VTL).
230
+ # @return [String]
231
+ #
232
+ # @!attribute [rw] response_mapping_template
233
+ # The mapping template to be used for responses from the data source.
234
+ # @return [String]
235
+ #
236
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolverRequest AWS API Documentation
237
+ #
238
+ class CreateResolverRequest < Struct.new(
239
+ :api_id,
240
+ :type_name,
241
+ :field_name,
242
+ :data_source_name,
243
+ :request_mapping_template,
244
+ :response_mapping_template)
245
+ include Aws::Structure
246
+ end
247
+
248
+ # @!attribute [rw] resolver
249
+ # The `Resolver` object.
250
+ # @return [Types::Resolver]
251
+ #
252
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolverResponse AWS API Documentation
253
+ #
254
+ class CreateResolverResponse < Struct.new(
255
+ :resolver)
256
+ include Aws::Structure
257
+ end
258
+
259
+ # @note When making an API call, you may pass CreateTypeRequest
260
+ # data as a hash:
261
+ #
262
+ # {
263
+ # api_id: "String", # required
264
+ # definition: "String", # required
265
+ # format: "SDL", # required, accepts SDL, JSON
266
+ # }
267
+ #
268
+ # @!attribute [rw] api_id
269
+ # The API ID.
270
+ # @return [String]
271
+ #
272
+ # @!attribute [rw] definition
273
+ # The type definition, in GraphQL Schema Definition Language (SDL)
274
+ # format.
275
+ #
276
+ # For more information, see the [GraphQL SDL documentation][1].
277
+ #
278
+ #
279
+ #
280
+ # [1]: http://graphql.org/learn/schema/
281
+ # @return [String]
282
+ #
283
+ # @!attribute [rw] format
284
+ # The type format: SDL or JSON.
285
+ # @return [String]
286
+ #
287
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateTypeRequest AWS API Documentation
288
+ #
289
+ class CreateTypeRequest < Struct.new(
290
+ :api_id,
291
+ :definition,
292
+ :format)
293
+ include Aws::Structure
294
+ end
295
+
296
+ # @!attribute [rw] type
297
+ # The `Type` object.
298
+ # @return [Types::Type]
299
+ #
300
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateTypeResponse AWS API Documentation
301
+ #
302
+ class CreateTypeResponse < Struct.new(
303
+ :type)
304
+ include Aws::Structure
305
+ end
306
+
307
+ # Describes a data source.
308
+ #
309
+ # @!attribute [rw] data_source_arn
310
+ # The data source ARN.
311
+ # @return [String]
312
+ #
313
+ # @!attribute [rw] name
314
+ # The name of the data source.
315
+ # @return [String]
316
+ #
317
+ # @!attribute [rw] description
318
+ # The description of the data source.
319
+ # @return [String]
320
+ #
321
+ # @!attribute [rw] type
322
+ # The type of the data source.
323
+ # @return [String]
324
+ #
325
+ # @!attribute [rw] service_role_arn
326
+ # The IAM service role ARN for the data source. The system assumes
327
+ # this role when accessing the data source.
328
+ # @return [String]
329
+ #
330
+ # @!attribute [rw] dynamodb_config
331
+ # DynamoDB settings.
332
+ # @return [Types::DynamodbDataSourceConfig]
333
+ #
334
+ # @!attribute [rw] lambda_config
335
+ # Lambda settings.
336
+ # @return [Types::LambdaDataSourceConfig]
337
+ #
338
+ # @!attribute [rw] elasticsearch_config
339
+ # Amazon Elasticsearch settings.
340
+ # @return [Types::ElasticsearchDataSourceConfig]
341
+ #
342
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSource AWS API Documentation
343
+ #
344
+ class DataSource < Struct.new(
345
+ :data_source_arn,
346
+ :name,
347
+ :description,
348
+ :type,
349
+ :service_role_arn,
350
+ :dynamodb_config,
351
+ :lambda_config,
352
+ :elasticsearch_config)
353
+ include Aws::Structure
354
+ end
355
+
356
+ # @note When making an API call, you may pass DeleteApiKeyRequest
357
+ # data as a hash:
358
+ #
359
+ # {
360
+ # api_id: "String", # required
361
+ # id: "String", # required
362
+ # }
363
+ #
364
+ # @!attribute [rw] api_id
365
+ # The API ID.
366
+ # @return [String]
367
+ #
368
+ # @!attribute [rw] id
369
+ # The ID for the API key.
370
+ # @return [String]
371
+ #
372
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKeyRequest AWS API Documentation
373
+ #
374
+ class DeleteApiKeyRequest < Struct.new(
375
+ :api_id,
376
+ :id)
377
+ include Aws::Structure
378
+ end
379
+
380
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteApiKeyResponse AWS API Documentation
381
+ #
382
+ class DeleteApiKeyResponse < Aws::EmptyStructure; end
383
+
384
+ # @note When making an API call, you may pass DeleteDataSourceRequest
385
+ # data as a hash:
386
+ #
387
+ # {
388
+ # api_id: "String", # required
389
+ # name: "ResourceName", # required
390
+ # }
391
+ #
392
+ # @!attribute [rw] api_id
393
+ # The API ID.
394
+ # @return [String]
395
+ #
396
+ # @!attribute [rw] name
397
+ # The name of the data source.
398
+ # @return [String]
399
+ #
400
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSourceRequest AWS API Documentation
401
+ #
402
+ class DeleteDataSourceRequest < Struct.new(
403
+ :api_id,
404
+ :name)
405
+ include Aws::Structure
406
+ end
407
+
408
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteDataSourceResponse AWS API Documentation
409
+ #
410
+ class DeleteDataSourceResponse < Aws::EmptyStructure; end
411
+
412
+ # @note When making an API call, you may pass DeleteGraphqlApiRequest
413
+ # data as a hash:
414
+ #
415
+ # {
416
+ # api_id: "String", # required
417
+ # }
418
+ #
419
+ # @!attribute [rw] api_id
420
+ # The API ID.
421
+ # @return [String]
422
+ #
423
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApiRequest AWS API Documentation
424
+ #
425
+ class DeleteGraphqlApiRequest < Struct.new(
426
+ :api_id)
427
+ include Aws::Structure
428
+ end
429
+
430
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteGraphqlApiResponse AWS API Documentation
431
+ #
432
+ class DeleteGraphqlApiResponse < Aws::EmptyStructure; end
433
+
434
+ # @note When making an API call, you may pass DeleteResolverRequest
435
+ # data as a hash:
436
+ #
437
+ # {
438
+ # api_id: "String", # required
439
+ # type_name: "ResourceName", # required
440
+ # field_name: "ResourceName", # required
441
+ # }
442
+ #
443
+ # @!attribute [rw] api_id
444
+ # The API ID.
445
+ # @return [String]
446
+ #
447
+ # @!attribute [rw] type_name
448
+ # The name of the resolver type.
449
+ # @return [String]
450
+ #
451
+ # @!attribute [rw] field_name
452
+ # The resolver field name.
453
+ # @return [String]
454
+ #
455
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolverRequest AWS API Documentation
456
+ #
457
+ class DeleteResolverRequest < Struct.new(
458
+ :api_id,
459
+ :type_name,
460
+ :field_name)
461
+ include Aws::Structure
462
+ end
463
+
464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteResolverResponse AWS API Documentation
465
+ #
466
+ class DeleteResolverResponse < Aws::EmptyStructure; end
467
+
468
+ # @note When making an API call, you may pass DeleteTypeRequest
469
+ # data as a hash:
470
+ #
471
+ # {
472
+ # api_id: "String", # required
473
+ # type_name: "ResourceName", # required
474
+ # }
475
+ #
476
+ # @!attribute [rw] api_id
477
+ # The API ID.
478
+ # @return [String]
479
+ #
480
+ # @!attribute [rw] type_name
481
+ # The type name.
482
+ # @return [String]
483
+ #
484
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteTypeRequest AWS API Documentation
485
+ #
486
+ class DeleteTypeRequest < Struct.new(
487
+ :api_id,
488
+ :type_name)
489
+ include Aws::Structure
490
+ end
491
+
492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DeleteTypeResponse AWS API Documentation
493
+ #
494
+ class DeleteTypeResponse < Aws::EmptyStructure; end
495
+
496
+ # Describes a DynamoDB data source configuration.
497
+ #
498
+ # @note When making an API call, you may pass DynamodbDataSourceConfig
499
+ # data as a hash:
500
+ #
501
+ # {
502
+ # table_name: "String", # required
503
+ # aws_region: "String", # required
504
+ # use_caller_credentials: false,
505
+ # }
506
+ #
507
+ # @!attribute [rw] table_name
508
+ # The table name.
509
+ # @return [String]
510
+ #
511
+ # @!attribute [rw] aws_region
512
+ # The AWS region.
513
+ # @return [String]
514
+ #
515
+ # @!attribute [rw] use_caller_credentials
516
+ # Set to TRUE to use Amazon Cognito credentials with this data source.
517
+ # @return [Boolean]
518
+ #
519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DynamodbDataSourceConfig AWS API Documentation
520
+ #
521
+ class DynamodbDataSourceConfig < Struct.new(
522
+ :table_name,
523
+ :aws_region,
524
+ :use_caller_credentials)
525
+ include Aws::Structure
526
+ end
527
+
528
+ # Describes an Elasticsearch data source configuration.
529
+ #
530
+ # @note When making an API call, you may pass ElasticsearchDataSourceConfig
531
+ # data as a hash:
532
+ #
533
+ # {
534
+ # endpoint: "String", # required
535
+ # aws_region: "String", # required
536
+ # }
537
+ #
538
+ # @!attribute [rw] endpoint
539
+ # The endpoint.
540
+ # @return [String]
541
+ #
542
+ # @!attribute [rw] aws_region
543
+ # The AWS region.
544
+ # @return [String]
545
+ #
546
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ElasticsearchDataSourceConfig AWS API Documentation
547
+ #
548
+ class ElasticsearchDataSourceConfig < Struct.new(
549
+ :endpoint,
550
+ :aws_region)
551
+ include Aws::Structure
552
+ end
553
+
554
+ # @note When making an API call, you may pass GetDataSourceRequest
555
+ # data as a hash:
556
+ #
557
+ # {
558
+ # api_id: "String", # required
559
+ # name: "ResourceName", # required
560
+ # }
561
+ #
562
+ # @!attribute [rw] api_id
563
+ # The API ID.
564
+ # @return [String]
565
+ #
566
+ # @!attribute [rw] name
567
+ # The name of the data source.
568
+ # @return [String]
569
+ #
570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSourceRequest AWS API Documentation
571
+ #
572
+ class GetDataSourceRequest < Struct.new(
573
+ :api_id,
574
+ :name)
575
+ include Aws::Structure
576
+ end
577
+
578
+ # @!attribute [rw] data_source
579
+ # The `DataSource` object.
580
+ # @return [Types::DataSource]
581
+ #
582
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSourceResponse AWS API Documentation
583
+ #
584
+ class GetDataSourceResponse < Struct.new(
585
+ :data_source)
586
+ include Aws::Structure
587
+ end
588
+
589
+ # @note When making an API call, you may pass GetGraphqlApiRequest
590
+ # data as a hash:
591
+ #
592
+ # {
593
+ # api_id: "String", # required
594
+ # }
595
+ #
596
+ # @!attribute [rw] api_id
597
+ # The API ID for the GraphQL API.
598
+ # @return [String]
599
+ #
600
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApiRequest AWS API Documentation
601
+ #
602
+ class GetGraphqlApiRequest < Struct.new(
603
+ :api_id)
604
+ include Aws::Structure
605
+ end
606
+
607
+ # @!attribute [rw] graphql_api
608
+ # The `GraphqlApi` object.
609
+ # @return [Types::GraphqlApi]
610
+ #
611
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApiResponse AWS API Documentation
612
+ #
613
+ class GetGraphqlApiResponse < Struct.new(
614
+ :graphql_api)
615
+ include Aws::Structure
616
+ end
617
+
618
+ # @note When making an API call, you may pass GetIntrospectionSchemaRequest
619
+ # data as a hash:
620
+ #
621
+ # {
622
+ # api_id: "String", # required
623
+ # format: "SDL", # required, accepts SDL, JSON
624
+ # }
625
+ #
626
+ # @!attribute [rw] api_id
627
+ # The API ID.
628
+ # @return [String]
629
+ #
630
+ # @!attribute [rw] format
631
+ # The schema format: SDL or JSON.
632
+ # @return [String]
633
+ #
634
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchemaRequest AWS API Documentation
635
+ #
636
+ class GetIntrospectionSchemaRequest < Struct.new(
637
+ :api_id,
638
+ :format)
639
+ include Aws::Structure
640
+ end
641
+
642
+ # @!attribute [rw] schema
643
+ # The schema, in GraphQL Schema Definition Language (SDL) format.
644
+ #
645
+ # For more information, see the [GraphQL SDL documentation][1].
646
+ #
647
+ #
648
+ #
649
+ # [1]: http://graphql.org/learn/schema/
650
+ # @return [String]
651
+ #
652
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetIntrospectionSchemaResponse AWS API Documentation
653
+ #
654
+ class GetIntrospectionSchemaResponse < Struct.new(
655
+ :schema)
656
+ include Aws::Structure
657
+ end
658
+
659
+ # @note When making an API call, you may pass GetResolverRequest
660
+ # data as a hash:
661
+ #
662
+ # {
663
+ # api_id: "String", # required
664
+ # type_name: "ResourceName", # required
665
+ # field_name: "ResourceName", # required
666
+ # }
667
+ #
668
+ # @!attribute [rw] api_id
669
+ # The API ID.
670
+ # @return [String]
671
+ #
672
+ # @!attribute [rw] type_name
673
+ # The resolver type name.
674
+ # @return [String]
675
+ #
676
+ # @!attribute [rw] field_name
677
+ # The resolver field name.
678
+ # @return [String]
679
+ #
680
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolverRequest AWS API Documentation
681
+ #
682
+ class GetResolverRequest < Struct.new(
683
+ :api_id,
684
+ :type_name,
685
+ :field_name)
686
+ include Aws::Structure
687
+ end
688
+
689
+ # @!attribute [rw] resolver
690
+ # The `Resolver` object.
691
+ # @return [Types::Resolver]
692
+ #
693
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolverResponse AWS API Documentation
694
+ #
695
+ class GetResolverResponse < Struct.new(
696
+ :resolver)
697
+ include Aws::Structure
698
+ end
699
+
700
+ # @note When making an API call, you may pass GetSchemaCreationStatusRequest
701
+ # data as a hash:
702
+ #
703
+ # {
704
+ # api_id: "String", # required
705
+ # }
706
+ #
707
+ # @!attribute [rw] api_id
708
+ # The API ID.
709
+ # @return [String]
710
+ #
711
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatusRequest AWS API Documentation
712
+ #
713
+ class GetSchemaCreationStatusRequest < Struct.new(
714
+ :api_id)
715
+ include Aws::Structure
716
+ end
717
+
718
+ # @!attribute [rw] status
719
+ # The current state of the schema (PROCESSING, ACTIVE, or DELETING).
720
+ # Once the schema is in the ACTIVE state, you can add data.
721
+ # @return [String]
722
+ #
723
+ # @!attribute [rw] details
724
+ # Detailed information about the status of the schema creation
725
+ # operation.
726
+ # @return [String]
727
+ #
728
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetSchemaCreationStatusResponse AWS API Documentation
729
+ #
730
+ class GetSchemaCreationStatusResponse < Struct.new(
731
+ :status,
732
+ :details)
733
+ include Aws::Structure
734
+ end
735
+
736
+ # @note When making an API call, you may pass GetTypeRequest
737
+ # data as a hash:
738
+ #
739
+ # {
740
+ # api_id: "String", # required
741
+ # type_name: "ResourceName", # required
742
+ # format: "SDL", # required, accepts SDL, JSON
743
+ # }
744
+ #
745
+ # @!attribute [rw] api_id
746
+ # The API ID.
747
+ # @return [String]
748
+ #
749
+ # @!attribute [rw] type_name
750
+ # The type name.
751
+ # @return [String]
752
+ #
753
+ # @!attribute [rw] format
754
+ # The type format: SDL or JSON.
755
+ # @return [String]
756
+ #
757
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetTypeRequest AWS API Documentation
758
+ #
759
+ class GetTypeRequest < Struct.new(
760
+ :api_id,
761
+ :type_name,
762
+ :format)
763
+ include Aws::Structure
764
+ end
765
+
766
+ # @!attribute [rw] type
767
+ # The `Type` object.
768
+ # @return [Types::Type]
769
+ #
770
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetTypeResponse AWS API Documentation
771
+ #
772
+ class GetTypeResponse < Struct.new(
773
+ :type)
774
+ include Aws::Structure
775
+ end
776
+
777
+ # Describes a GraphQL API.
778
+ #
779
+ # @!attribute [rw] name
780
+ # The API name.
781
+ # @return [String]
782
+ #
783
+ # @!attribute [rw] api_id
784
+ # The API ID.
785
+ # @return [String]
786
+ #
787
+ # @!attribute [rw] authentication_type
788
+ # The authentication type.
789
+ # @return [String]
790
+ #
791
+ # @!attribute [rw] user_pool_config
792
+ # The Amazon Cognito User Pool configuration.
793
+ # @return [Types::UserPoolConfig]
794
+ #
795
+ # @!attribute [rw] arn
796
+ # The ARN.
797
+ # @return [String]
798
+ #
799
+ # @!attribute [rw] uris
800
+ # The URIs.
801
+ # @return [Hash<String,String>]
802
+ #
803
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GraphqlApi AWS API Documentation
804
+ #
805
+ class GraphqlApi < Struct.new(
806
+ :name,
807
+ :api_id,
808
+ :authentication_type,
809
+ :user_pool_config,
810
+ :arn,
811
+ :uris)
812
+ include Aws::Structure
813
+ end
814
+
815
+ # Describes a Lambda data source configuration.
816
+ #
817
+ # @note When making an API call, you may pass LambdaDataSourceConfig
818
+ # data as a hash:
819
+ #
820
+ # {
821
+ # lambda_function_arn: "String", # required
822
+ # }
823
+ #
824
+ # @!attribute [rw] lambda_function_arn
825
+ # The ARN for the Lambda function.
826
+ # @return [String]
827
+ #
828
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/LambdaDataSourceConfig AWS API Documentation
829
+ #
830
+ class LambdaDataSourceConfig < Struct.new(
831
+ :lambda_function_arn)
832
+ include Aws::Structure
833
+ end
834
+
835
+ # @note When making an API call, you may pass ListApiKeysRequest
836
+ # data as a hash:
837
+ #
838
+ # {
839
+ # api_id: "String", # required
840
+ # next_token: "PaginationToken",
841
+ # max_results: 1,
842
+ # }
843
+ #
844
+ # @!attribute [rw] api_id
845
+ # The API ID.
846
+ # @return [String]
847
+ #
848
+ # @!attribute [rw] next_token
849
+ # An identifier that was returned from the previous call to this
850
+ # operation, which can be used to return the next set of items in the
851
+ # list.
852
+ # @return [String]
853
+ #
854
+ # @!attribute [rw] max_results
855
+ # The maximum number of results you want the request to return.
856
+ # @return [Integer]
857
+ #
858
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeysRequest AWS API Documentation
859
+ #
860
+ class ListApiKeysRequest < Struct.new(
861
+ :api_id,
862
+ :next_token,
863
+ :max_results)
864
+ include Aws::Structure
865
+ end
866
+
867
+ # @!attribute [rw] api_keys
868
+ # The `ApiKey` objects.
869
+ # @return [Array<Types::ApiKey>]
870
+ #
871
+ # @!attribute [rw] next_token
872
+ # An identifier to be passed in the next request to this operation to
873
+ # return the next set of items in the list.
874
+ # @return [String]
875
+ #
876
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListApiKeysResponse AWS API Documentation
877
+ #
878
+ class ListApiKeysResponse < Struct.new(
879
+ :api_keys,
880
+ :next_token)
881
+ include Aws::Structure
882
+ end
883
+
884
+ # @note When making an API call, you may pass ListDataSourcesRequest
885
+ # data as a hash:
886
+ #
887
+ # {
888
+ # api_id: "String", # required
889
+ # next_token: "PaginationToken",
890
+ # max_results: 1,
891
+ # }
892
+ #
893
+ # @!attribute [rw] api_id
894
+ # The API ID.
895
+ # @return [String]
896
+ #
897
+ # @!attribute [rw] next_token
898
+ # An identifier that was returned from the previous call to this
899
+ # operation, which can be used to return the next set of items in the
900
+ # list.
901
+ # @return [String]
902
+ #
903
+ # @!attribute [rw] max_results
904
+ # The maximum number of results you want the request to return.
905
+ # @return [Integer]
906
+ #
907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSourcesRequest AWS API Documentation
908
+ #
909
+ class ListDataSourcesRequest < Struct.new(
910
+ :api_id,
911
+ :next_token,
912
+ :max_results)
913
+ include Aws::Structure
914
+ end
915
+
916
+ # @!attribute [rw] data_sources
917
+ # The `DataSource` objects.
918
+ # @return [Array<Types::DataSource>]
919
+ #
920
+ # @!attribute [rw] next_token
921
+ # An identifier to be passed in the next request to this operation to
922
+ # return the next set of items in the list.
923
+ # @return [String]
924
+ #
925
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSourcesResponse AWS API Documentation
926
+ #
927
+ class ListDataSourcesResponse < Struct.new(
928
+ :data_sources,
929
+ :next_token)
930
+ include Aws::Structure
931
+ end
932
+
933
+ # @note When making an API call, you may pass ListGraphqlApisRequest
934
+ # data as a hash:
935
+ #
936
+ # {
937
+ # next_token: "PaginationToken",
938
+ # max_results: 1,
939
+ # }
940
+ #
941
+ # @!attribute [rw] next_token
942
+ # An identifier that was returned from the previous call to this
943
+ # operation, which can be used to return the next set of items in the
944
+ # list.
945
+ # @return [String]
946
+ #
947
+ # @!attribute [rw] max_results
948
+ # The maximum number of results you want the request to return.
949
+ # @return [Integer]
950
+ #
951
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApisRequest AWS API Documentation
952
+ #
953
+ class ListGraphqlApisRequest < Struct.new(
954
+ :next_token,
955
+ :max_results)
956
+ include Aws::Structure
957
+ end
958
+
959
+ # @!attribute [rw] graphql_apis
960
+ # The `GraphqlApi` objects.
961
+ # @return [Array<Types::GraphqlApi>]
962
+ #
963
+ # @!attribute [rw] next_token
964
+ # An identifier to be passed in the next request to this operation to
965
+ # return the next set of items in the list.
966
+ # @return [String]
967
+ #
968
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApisResponse AWS API Documentation
969
+ #
970
+ class ListGraphqlApisResponse < Struct.new(
971
+ :graphql_apis,
972
+ :next_token)
973
+ include Aws::Structure
974
+ end
975
+
976
+ # @note When making an API call, you may pass ListResolversRequest
977
+ # data as a hash:
978
+ #
979
+ # {
980
+ # api_id: "String", # required
981
+ # type_name: "String", # required
982
+ # next_token: "PaginationToken",
983
+ # max_results: 1,
984
+ # }
985
+ #
986
+ # @!attribute [rw] api_id
987
+ # The API ID.
988
+ # @return [String]
989
+ #
990
+ # @!attribute [rw] type_name
991
+ # The type name.
992
+ # @return [String]
993
+ #
994
+ # @!attribute [rw] next_token
995
+ # An identifier that was returned from the previous call to this
996
+ # operation, which can be used to return the next set of items in the
997
+ # list.
998
+ # @return [String]
999
+ #
1000
+ # @!attribute [rw] max_results
1001
+ # The maximum number of results you want the request to return.
1002
+ # @return [Integer]
1003
+ #
1004
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversRequest AWS API Documentation
1005
+ #
1006
+ class ListResolversRequest < Struct.new(
1007
+ :api_id,
1008
+ :type_name,
1009
+ :next_token,
1010
+ :max_results)
1011
+ include Aws::Structure
1012
+ end
1013
+
1014
+ # @!attribute [rw] resolvers
1015
+ # The `Resolver` objects.
1016
+ # @return [Array<Types::Resolver>]
1017
+ #
1018
+ # @!attribute [rw] next_token
1019
+ # An identifier to be passed in the next request to this operation to
1020
+ # return the next set of items in the list.
1021
+ # @return [String]
1022
+ #
1023
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversResponse AWS API Documentation
1024
+ #
1025
+ class ListResolversResponse < Struct.new(
1026
+ :resolvers,
1027
+ :next_token)
1028
+ include Aws::Structure
1029
+ end
1030
+
1031
+ # @note When making an API call, you may pass ListTypesRequest
1032
+ # data as a hash:
1033
+ #
1034
+ # {
1035
+ # api_id: "String", # required
1036
+ # format: "SDL", # required, accepts SDL, JSON
1037
+ # next_token: "PaginationToken",
1038
+ # max_results: 1,
1039
+ # }
1040
+ #
1041
+ # @!attribute [rw] api_id
1042
+ # The API ID.
1043
+ # @return [String]
1044
+ #
1045
+ # @!attribute [rw] format
1046
+ # The type format: SDL or JSON.
1047
+ # @return [String]
1048
+ #
1049
+ # @!attribute [rw] next_token
1050
+ # An identifier that was returned from the previous call to this
1051
+ # operation, which can be used to return the next set of items in the
1052
+ # list.
1053
+ # @return [String]
1054
+ #
1055
+ # @!attribute [rw] max_results
1056
+ # The maximum number of results you want the request to return.
1057
+ # @return [Integer]
1058
+ #
1059
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesRequest AWS API Documentation
1060
+ #
1061
+ class ListTypesRequest < Struct.new(
1062
+ :api_id,
1063
+ :format,
1064
+ :next_token,
1065
+ :max_results)
1066
+ include Aws::Structure
1067
+ end
1068
+
1069
+ # @!attribute [rw] types
1070
+ # The `Type` objects.
1071
+ # @return [Array<Types::Type>]
1072
+ #
1073
+ # @!attribute [rw] next_token
1074
+ # An identifier to be passed in the next request to this operation to
1075
+ # return the next set of items in the list.
1076
+ # @return [String]
1077
+ #
1078
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListTypesResponse AWS API Documentation
1079
+ #
1080
+ class ListTypesResponse < Struct.new(
1081
+ :types,
1082
+ :next_token)
1083
+ include Aws::Structure
1084
+ end
1085
+
1086
+ # Describes a resolver.
1087
+ #
1088
+ # @!attribute [rw] type_name
1089
+ # The resolver type name.
1090
+ # @return [String]
1091
+ #
1092
+ # @!attribute [rw] field_name
1093
+ # The resolver field name.
1094
+ # @return [String]
1095
+ #
1096
+ # @!attribute [rw] data_source_name
1097
+ # The resolver data source name.
1098
+ # @return [String]
1099
+ #
1100
+ # @!attribute [rw] resolver_arn
1101
+ # The resolver ARN.
1102
+ # @return [String]
1103
+ #
1104
+ # @!attribute [rw] request_mapping_template
1105
+ # The request mapping template.
1106
+ # @return [String]
1107
+ #
1108
+ # @!attribute [rw] response_mapping_template
1109
+ # The response mapping template.
1110
+ # @return [String]
1111
+ #
1112
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/Resolver AWS API Documentation
1113
+ #
1114
+ class Resolver < Struct.new(
1115
+ :type_name,
1116
+ :field_name,
1117
+ :data_source_name,
1118
+ :resolver_arn,
1119
+ :request_mapping_template,
1120
+ :response_mapping_template)
1121
+ include Aws::Structure
1122
+ end
1123
+
1124
+ # @note When making an API call, you may pass StartSchemaCreationRequest
1125
+ # data as a hash:
1126
+ #
1127
+ # {
1128
+ # api_id: "String", # required
1129
+ # definition: "data", # required
1130
+ # }
1131
+ #
1132
+ # @!attribute [rw] api_id
1133
+ # The API ID.
1134
+ # @return [String]
1135
+ #
1136
+ # @!attribute [rw] definition
1137
+ # The schema definition, in GraphQL schema language format.
1138
+ # @return [String]
1139
+ #
1140
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreationRequest AWS API Documentation
1141
+ #
1142
+ class StartSchemaCreationRequest < Struct.new(
1143
+ :api_id,
1144
+ :definition)
1145
+ include Aws::Structure
1146
+ end
1147
+
1148
+ # @!attribute [rw] status
1149
+ # The current state of the schema (PROCESSING, ACTIVE, or DELETING).
1150
+ # Once the schema is in the ACTIVE state, you can add data.
1151
+ # @return [String]
1152
+ #
1153
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/StartSchemaCreationResponse AWS API Documentation
1154
+ #
1155
+ class StartSchemaCreationResponse < Struct.new(
1156
+ :status)
1157
+ include Aws::Structure
1158
+ end
1159
+
1160
+ # Describes a type.
1161
+ #
1162
+ # @!attribute [rw] name
1163
+ # The type name.
1164
+ # @return [String]
1165
+ #
1166
+ # @!attribute [rw] description
1167
+ # The type description.
1168
+ # @return [String]
1169
+ #
1170
+ # @!attribute [rw] arn
1171
+ # The type ARN.
1172
+ # @return [String]
1173
+ #
1174
+ # @!attribute [rw] definition
1175
+ # The type definition.
1176
+ # @return [String]
1177
+ #
1178
+ # @!attribute [rw] format
1179
+ # The type format: SDL or JSON.
1180
+ # @return [String]
1181
+ #
1182
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/Type AWS API Documentation
1183
+ #
1184
+ class Type < Struct.new(
1185
+ :name,
1186
+ :description,
1187
+ :arn,
1188
+ :definition,
1189
+ :format)
1190
+ include Aws::Structure
1191
+ end
1192
+
1193
+ # @note When making an API call, you may pass UpdateDataSourceRequest
1194
+ # data as a hash:
1195
+ #
1196
+ # {
1197
+ # api_id: "String", # required
1198
+ # name: "ResourceName", # required
1199
+ # description: "String",
1200
+ # type: "AWS_LAMBDA", # required, accepts AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH
1201
+ # service_role_arn: "String",
1202
+ # dynamodb_config: {
1203
+ # table_name: "String", # required
1204
+ # aws_region: "String", # required
1205
+ # use_caller_credentials: false,
1206
+ # },
1207
+ # lambda_config: {
1208
+ # lambda_function_arn: "String", # required
1209
+ # },
1210
+ # elasticsearch_config: {
1211
+ # endpoint: "String", # required
1212
+ # aws_region: "String", # required
1213
+ # },
1214
+ # }
1215
+ #
1216
+ # @!attribute [rw] api_id
1217
+ # The API ID.
1218
+ # @return [String]
1219
+ #
1220
+ # @!attribute [rw] name
1221
+ # The new name for the data source.
1222
+ # @return [String]
1223
+ #
1224
+ # @!attribute [rw] description
1225
+ # The new description for the data source.
1226
+ # @return [String]
1227
+ #
1228
+ # @!attribute [rw] type
1229
+ # The new data source type.
1230
+ # @return [String]
1231
+ #
1232
+ # @!attribute [rw] service_role_arn
1233
+ # The new service role ARN for the data source.
1234
+ # @return [String]
1235
+ #
1236
+ # @!attribute [rw] dynamodb_config
1237
+ # The new DynamoDB configuration.
1238
+ # @return [Types::DynamodbDataSourceConfig]
1239
+ #
1240
+ # @!attribute [rw] lambda_config
1241
+ # The new Lambda configuration.
1242
+ # @return [Types::LambdaDataSourceConfig]
1243
+ #
1244
+ # @!attribute [rw] elasticsearch_config
1245
+ # The new Elasticsearch configuration.
1246
+ # @return [Types::ElasticsearchDataSourceConfig]
1247
+ #
1248
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSourceRequest AWS API Documentation
1249
+ #
1250
+ class UpdateDataSourceRequest < Struct.new(
1251
+ :api_id,
1252
+ :name,
1253
+ :description,
1254
+ :type,
1255
+ :service_role_arn,
1256
+ :dynamodb_config,
1257
+ :lambda_config,
1258
+ :elasticsearch_config)
1259
+ include Aws::Structure
1260
+ end
1261
+
1262
+ # @!attribute [rw] data_source
1263
+ # The updated `DataSource` object.
1264
+ # @return [Types::DataSource]
1265
+ #
1266
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSourceResponse AWS API Documentation
1267
+ #
1268
+ class UpdateDataSourceResponse < Struct.new(
1269
+ :data_source)
1270
+ include Aws::Structure
1271
+ end
1272
+
1273
+ # @note When making an API call, you may pass UpdateGraphqlApiRequest
1274
+ # data as a hash:
1275
+ #
1276
+ # {
1277
+ # api_id: "String", # required
1278
+ # name: "ResourceName", # required
1279
+ # authentication_type: "API_KEY", # accepts API_KEY, AWS_IAM, AMAZON_COGNITO_USER_POOLS
1280
+ # user_pool_config: {
1281
+ # user_pool_id: "String", # required
1282
+ # aws_region: "String", # required
1283
+ # default_action: "ALLOW", # required, accepts ALLOW, DENY
1284
+ # app_id_client_regex: "String",
1285
+ # },
1286
+ # }
1287
+ #
1288
+ # @!attribute [rw] api_id
1289
+ # The API ID.
1290
+ # @return [String]
1291
+ #
1292
+ # @!attribute [rw] name
1293
+ # The new name for the `GraphqlApi` object.
1294
+ # @return [String]
1295
+ #
1296
+ # @!attribute [rw] authentication_type
1297
+ # The new authentication type for the `GraphqlApi` object.
1298
+ # @return [String]
1299
+ #
1300
+ # @!attribute [rw] user_pool_config
1301
+ # The new Amazon Cognito User Pool configuration for the `GraphqlApi`
1302
+ # object.
1303
+ # @return [Types::UserPoolConfig]
1304
+ #
1305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApiRequest AWS API Documentation
1306
+ #
1307
+ class UpdateGraphqlApiRequest < Struct.new(
1308
+ :api_id,
1309
+ :name,
1310
+ :authentication_type,
1311
+ :user_pool_config)
1312
+ include Aws::Structure
1313
+ end
1314
+
1315
+ # @!attribute [rw] graphql_api
1316
+ # The udpated `GraphqlApi` object.
1317
+ # @return [Types::GraphqlApi]
1318
+ #
1319
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApiResponse AWS API Documentation
1320
+ #
1321
+ class UpdateGraphqlApiResponse < Struct.new(
1322
+ :graphql_api)
1323
+ include Aws::Structure
1324
+ end
1325
+
1326
+ # @note When making an API call, you may pass UpdateResolverRequest
1327
+ # data as a hash:
1328
+ #
1329
+ # {
1330
+ # api_id: "String", # required
1331
+ # type_name: "ResourceName", # required
1332
+ # field_name: "ResourceName", # required
1333
+ # data_source_name: "ResourceName", # required
1334
+ # request_mapping_template: "MappingTemplate", # required
1335
+ # response_mapping_template: "MappingTemplate",
1336
+ # }
1337
+ #
1338
+ # @!attribute [rw] api_id
1339
+ # The API ID.
1340
+ # @return [String]
1341
+ #
1342
+ # @!attribute [rw] type_name
1343
+ # The new type name.
1344
+ # @return [String]
1345
+ #
1346
+ # @!attribute [rw] field_name
1347
+ # The new field name.
1348
+ # @return [String]
1349
+ #
1350
+ # @!attribute [rw] data_source_name
1351
+ # The new data source name.
1352
+ # @return [String]
1353
+ #
1354
+ # @!attribute [rw] request_mapping_template
1355
+ # The new request mapping template.
1356
+ # @return [String]
1357
+ #
1358
+ # @!attribute [rw] response_mapping_template
1359
+ # The new response mapping template.
1360
+ # @return [String]
1361
+ #
1362
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolverRequest AWS API Documentation
1363
+ #
1364
+ class UpdateResolverRequest < Struct.new(
1365
+ :api_id,
1366
+ :type_name,
1367
+ :field_name,
1368
+ :data_source_name,
1369
+ :request_mapping_template,
1370
+ :response_mapping_template)
1371
+ include Aws::Structure
1372
+ end
1373
+
1374
+ # @!attribute [rw] resolver
1375
+ # The updated `Resolver` object.
1376
+ # @return [Types::Resolver]
1377
+ #
1378
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolverResponse AWS API Documentation
1379
+ #
1380
+ class UpdateResolverResponse < Struct.new(
1381
+ :resolver)
1382
+ include Aws::Structure
1383
+ end
1384
+
1385
+ # @note When making an API call, you may pass UpdateTypeRequest
1386
+ # data as a hash:
1387
+ #
1388
+ # {
1389
+ # api_id: "String", # required
1390
+ # type_name: "ResourceName", # required
1391
+ # definition: "String",
1392
+ # format: "SDL", # required, accepts SDL, JSON
1393
+ # }
1394
+ #
1395
+ # @!attribute [rw] api_id
1396
+ # The API ID.
1397
+ # @return [String]
1398
+ #
1399
+ # @!attribute [rw] type_name
1400
+ # The new type name.
1401
+ # @return [String]
1402
+ #
1403
+ # @!attribute [rw] definition
1404
+ # The new definition.
1405
+ # @return [String]
1406
+ #
1407
+ # @!attribute [rw] format
1408
+ # The new type format: SDL or JSON.
1409
+ # @return [String]
1410
+ #
1411
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateTypeRequest AWS API Documentation
1412
+ #
1413
+ class UpdateTypeRequest < Struct.new(
1414
+ :api_id,
1415
+ :type_name,
1416
+ :definition,
1417
+ :format)
1418
+ include Aws::Structure
1419
+ end
1420
+
1421
+ # @!attribute [rw] type
1422
+ # The updated `Type` object.
1423
+ # @return [Types::Type]
1424
+ #
1425
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateTypeResponse AWS API Documentation
1426
+ #
1427
+ class UpdateTypeResponse < Struct.new(
1428
+ :type)
1429
+ include Aws::Structure
1430
+ end
1431
+
1432
+ # Describes an Amazon Cognito User Pool configuration.
1433
+ #
1434
+ # @note When making an API call, you may pass UserPoolConfig
1435
+ # data as a hash:
1436
+ #
1437
+ # {
1438
+ # user_pool_id: "String", # required
1439
+ # aws_region: "String", # required
1440
+ # default_action: "ALLOW", # required, accepts ALLOW, DENY
1441
+ # app_id_client_regex: "String",
1442
+ # }
1443
+ #
1444
+ # @!attribute [rw] user_pool_id
1445
+ # The user pool ID.
1446
+ # @return [String]
1447
+ #
1448
+ # @!attribute [rw] aws_region
1449
+ # The AWS region in which the user pool was created.
1450
+ # @return [String]
1451
+ #
1452
+ # @!attribute [rw] default_action
1453
+ # The action that you want your GraphQL API to take when a request
1454
+ # that uses Amazon Cognito User Pool authentication doesn't match the
1455
+ # Amazon Cognito User Pool configuration.
1456
+ # @return [String]
1457
+ #
1458
+ # @!attribute [rw] app_id_client_regex
1459
+ # A regular expression for validating the incoming Amazon Cognito User
1460
+ # Pool app client ID.
1461
+ # @return [String]
1462
+ #
1463
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UserPoolConfig AWS API Documentation
1464
+ #
1465
+ class UserPoolConfig < Struct.new(
1466
+ :user_pool_id,
1467
+ :aws_region,
1468
+ :default_action,
1469
+ :app_id_client_regex)
1470
+ include Aws::Structure
1471
+ end
1472
+
1473
+ end
1474
+ end