aws-sdk-appsync 1.21.0 → 1.26.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.
@@ -14,6 +14,10 @@ module Aws::AppSync
14
14
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
15
15
  AdditionalAuthenticationProvider = Shapes::StructureShape.new(name: 'AdditionalAuthenticationProvider')
16
16
  AdditionalAuthenticationProviders = Shapes::ListShape.new(name: 'AdditionalAuthenticationProviders')
17
+ ApiCache = Shapes::StructureShape.new(name: 'ApiCache')
18
+ ApiCacheStatus = Shapes::StringShape.new(name: 'ApiCacheStatus')
19
+ ApiCacheType = Shapes::StringShape.new(name: 'ApiCacheType')
20
+ ApiCachingBehavior = Shapes::StringShape.new(name: 'ApiCachingBehavior')
17
21
  ApiKey = Shapes::StructureShape.new(name: 'ApiKey')
18
22
  ApiKeyLimitExceededException = Shapes::StructureShape.new(name: 'ApiKeyLimitExceededException')
19
23
  ApiKeyValidityOutOfBoundsException = Shapes::StructureShape.new(name: 'ApiKeyValidityOutOfBoundsException')
@@ -27,8 +31,14 @@ module Aws::AppSync
27
31
  Blob = Shapes::BlobShape.new(name: 'Blob')
28
32
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
29
33
  BooleanValue = Shapes::BooleanShape.new(name: 'BooleanValue')
34
+ CachingConfig = Shapes::StructureShape.new(name: 'CachingConfig')
35
+ CachingKeys = Shapes::ListShape.new(name: 'CachingKeys')
30
36
  CognitoUserPoolConfig = Shapes::StructureShape.new(name: 'CognitoUserPoolConfig')
31
37
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
38
+ ConflictDetectionType = Shapes::StringShape.new(name: 'ConflictDetectionType')
39
+ ConflictHandlerType = Shapes::StringShape.new(name: 'ConflictHandlerType')
40
+ CreateApiCacheRequest = Shapes::StructureShape.new(name: 'CreateApiCacheRequest')
41
+ CreateApiCacheResponse = Shapes::StructureShape.new(name: 'CreateApiCacheResponse')
32
42
  CreateApiKeyRequest = Shapes::StructureShape.new(name: 'CreateApiKeyRequest')
33
43
  CreateApiKeyResponse = Shapes::StructureShape.new(name: 'CreateApiKeyResponse')
34
44
  CreateDataSourceRequest = Shapes::StructureShape.new(name: 'CreateDataSourceRequest')
@@ -45,6 +55,8 @@ module Aws::AppSync
45
55
  DataSourceType = Shapes::StringShape.new(name: 'DataSourceType')
46
56
  DataSources = Shapes::ListShape.new(name: 'DataSources')
47
57
  DefaultAction = Shapes::StringShape.new(name: 'DefaultAction')
58
+ DeleteApiCacheRequest = Shapes::StructureShape.new(name: 'DeleteApiCacheRequest')
59
+ DeleteApiCacheResponse = Shapes::StructureShape.new(name: 'DeleteApiCacheResponse')
48
60
  DeleteApiKeyRequest = Shapes::StructureShape.new(name: 'DeleteApiKeyRequest')
49
61
  DeleteApiKeyResponse = Shapes::StructureShape.new(name: 'DeleteApiKeyResponse')
50
62
  DeleteDataSourceRequest = Shapes::StructureShape.new(name: 'DeleteDataSourceRequest')
@@ -57,13 +69,18 @@ module Aws::AppSync
57
69
  DeleteResolverResponse = Shapes::StructureShape.new(name: 'DeleteResolverResponse')
58
70
  DeleteTypeRequest = Shapes::StructureShape.new(name: 'DeleteTypeRequest')
59
71
  DeleteTypeResponse = Shapes::StructureShape.new(name: 'DeleteTypeResponse')
72
+ DeltaSyncConfig = Shapes::StructureShape.new(name: 'DeltaSyncConfig')
60
73
  DynamodbDataSourceConfig = Shapes::StructureShape.new(name: 'DynamodbDataSourceConfig')
61
74
  ElasticsearchDataSourceConfig = Shapes::StructureShape.new(name: 'ElasticsearchDataSourceConfig')
62
75
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
63
76
  FieldLogLevel = Shapes::StringShape.new(name: 'FieldLogLevel')
77
+ FlushApiCacheRequest = Shapes::StructureShape.new(name: 'FlushApiCacheRequest')
78
+ FlushApiCacheResponse = Shapes::StructureShape.new(name: 'FlushApiCacheResponse')
64
79
  FunctionConfiguration = Shapes::StructureShape.new(name: 'FunctionConfiguration')
65
80
  Functions = Shapes::ListShape.new(name: 'Functions')
66
81
  FunctionsIds = Shapes::ListShape.new(name: 'FunctionsIds')
82
+ GetApiCacheRequest = Shapes::StructureShape.new(name: 'GetApiCacheRequest')
83
+ GetApiCacheResponse = Shapes::StructureShape.new(name: 'GetApiCacheResponse')
67
84
  GetDataSourceRequest = Shapes::StructureShape.new(name: 'GetDataSourceRequest')
68
85
  GetDataSourceResponse = Shapes::StructureShape.new(name: 'GetDataSourceResponse')
69
86
  GetFunctionRequest = Shapes::StructureShape.new(name: 'GetFunctionRequest')
@@ -83,6 +100,7 @@ module Aws::AppSync
83
100
  GraphqlApis = Shapes::ListShape.new(name: 'GraphqlApis')
84
101
  HttpDataSourceConfig = Shapes::StructureShape.new(name: 'HttpDataSourceConfig')
85
102
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
103
+ LambdaConflictHandlerConfig = Shapes::StructureShape.new(name: 'LambdaConflictHandlerConfig')
86
104
  LambdaDataSourceConfig = Shapes::StructureShape.new(name: 'LambdaDataSourceConfig')
87
105
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
88
106
  ListApiKeysRequest = Shapes::StructureShape.new(name: 'ListApiKeysRequest')
@@ -123,6 +141,7 @@ module Aws::AppSync
123
141
  StartSchemaCreationRequest = Shapes::StructureShape.new(name: 'StartSchemaCreationRequest')
124
142
  StartSchemaCreationResponse = Shapes::StructureShape.new(name: 'StartSchemaCreationResponse')
125
143
  String = Shapes::StringShape.new(name: 'String')
144
+ SyncConfig = Shapes::StructureShape.new(name: 'SyncConfig')
126
145
  TagKey = Shapes::StringShape.new(name: 'TagKey')
127
146
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
128
147
  TagMap = Shapes::MapShape.new(name: 'TagMap')
@@ -135,6 +154,8 @@ module Aws::AppSync
135
154
  UnauthorizedException = Shapes::StructureShape.new(name: 'UnauthorizedException')
136
155
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
137
156
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
157
+ UpdateApiCacheRequest = Shapes::StructureShape.new(name: 'UpdateApiCacheRequest')
158
+ UpdateApiCacheResponse = Shapes::StructureShape.new(name: 'UpdateApiCacheResponse')
138
159
  UpdateApiKeyRequest = Shapes::StructureShape.new(name: 'UpdateApiKeyRequest')
139
160
  UpdateApiKeyResponse = Shapes::StructureShape.new(name: 'UpdateApiKeyResponse')
140
161
  UpdateDataSourceRequest = Shapes::StructureShape.new(name: 'UpdateDataSourceRequest')
@@ -159,6 +180,14 @@ module Aws::AppSync
159
180
 
160
181
  AdditionalAuthenticationProviders.member = Shapes::ShapeRef.new(shape: AdditionalAuthenticationProvider)
161
182
 
183
+ ApiCache.add_member(:ttl, Shapes::ShapeRef.new(shape: Long, location_name: "ttl"))
184
+ ApiCache.add_member(:api_caching_behavior, Shapes::ShapeRef.new(shape: ApiCachingBehavior, location_name: "apiCachingBehavior"))
185
+ ApiCache.add_member(:transit_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "transitEncryptionEnabled"))
186
+ ApiCache.add_member(:at_rest_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "atRestEncryptionEnabled"))
187
+ ApiCache.add_member(:type, Shapes::ShapeRef.new(shape: ApiCacheType, location_name: "type"))
188
+ ApiCache.add_member(:status, Shapes::ShapeRef.new(shape: ApiCacheStatus, location_name: "status"))
189
+ ApiCache.struct_class = Types::ApiCache
190
+
162
191
  ApiKey.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
163
192
  ApiKey.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
164
193
  ApiKey.add_member(:expires, Shapes::ShapeRef.new(shape: Long, location_name: "expires"))
@@ -186,6 +215,12 @@ module Aws::AppSync
186
215
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
187
216
  BadRequestException.struct_class = Types::BadRequestException
188
217
 
218
+ CachingConfig.add_member(:ttl, Shapes::ShapeRef.new(shape: Long, location_name: "ttl"))
219
+ CachingConfig.add_member(:caching_keys, Shapes::ShapeRef.new(shape: CachingKeys, location_name: "cachingKeys"))
220
+ CachingConfig.struct_class = Types::CachingConfig
221
+
222
+ CachingKeys.member = Shapes::ShapeRef.new(shape: String)
223
+
189
224
  CognitoUserPoolConfig.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "userPoolId"))
190
225
  CognitoUserPoolConfig.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsRegion"))
191
226
  CognitoUserPoolConfig.add_member(:app_id_client_regex, Shapes::ShapeRef.new(shape: String, location_name: "appIdClientRegex"))
@@ -194,6 +229,17 @@ module Aws::AppSync
194
229
  ConcurrentModificationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
195
230
  ConcurrentModificationException.struct_class = Types::ConcurrentModificationException
196
231
 
232
+ CreateApiCacheRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
233
+ CreateApiCacheRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "ttl"))
234
+ CreateApiCacheRequest.add_member(:transit_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "transitEncryptionEnabled"))
235
+ CreateApiCacheRequest.add_member(:at_rest_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "atRestEncryptionEnabled"))
236
+ CreateApiCacheRequest.add_member(:api_caching_behavior, Shapes::ShapeRef.new(shape: ApiCachingBehavior, required: true, location_name: "apiCachingBehavior"))
237
+ CreateApiCacheRequest.add_member(:type, Shapes::ShapeRef.new(shape: ApiCacheType, required: true, location_name: "type"))
238
+ CreateApiCacheRequest.struct_class = Types::CreateApiCacheRequest
239
+
240
+ CreateApiCacheResponse.add_member(:api_cache, Shapes::ShapeRef.new(shape: ApiCache, location_name: "apiCache"))
241
+ CreateApiCacheResponse.struct_class = Types::CreateApiCacheResponse
242
+
197
243
  CreateApiKeyRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
198
244
  CreateApiKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
199
245
  CreateApiKeyRequest.add_member(:expires, Shapes::ShapeRef.new(shape: Long, location_name: "expires"))
@@ -236,6 +282,7 @@ module Aws::AppSync
236
282
  CreateGraphqlApiRequest.add_member(:open_id_connect_config, Shapes::ShapeRef.new(shape: OpenIDConnectConfig, location_name: "openIDConnectConfig"))
237
283
  CreateGraphqlApiRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
238
284
  CreateGraphqlApiRequest.add_member(:additional_authentication_providers, Shapes::ShapeRef.new(shape: AdditionalAuthenticationProviders, location_name: "additionalAuthenticationProviders"))
285
+ CreateGraphqlApiRequest.add_member(:xray_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "xrayEnabled"))
239
286
  CreateGraphqlApiRequest.struct_class = Types::CreateGraphqlApiRequest
240
287
 
241
288
  CreateGraphqlApiResponse.add_member(:graphql_api, Shapes::ShapeRef.new(shape: GraphqlApi, location_name: "graphqlApi"))
@@ -249,6 +296,8 @@ module Aws::AppSync
249
296
  CreateResolverRequest.add_member(:response_mapping_template, Shapes::ShapeRef.new(shape: MappingTemplate, location_name: "responseMappingTemplate"))
250
297
  CreateResolverRequest.add_member(:kind, Shapes::ShapeRef.new(shape: ResolverKind, location_name: "kind"))
251
298
  CreateResolverRequest.add_member(:pipeline_config, Shapes::ShapeRef.new(shape: PipelineConfig, location_name: "pipelineConfig"))
299
+ CreateResolverRequest.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
300
+ CreateResolverRequest.add_member(:caching_config, Shapes::ShapeRef.new(shape: CachingConfig, location_name: "cachingConfig"))
252
301
  CreateResolverRequest.struct_class = Types::CreateResolverRequest
253
302
 
254
303
  CreateResolverResponse.add_member(:resolver, Shapes::ShapeRef.new(shape: Resolver, location_name: "resolver"))
@@ -276,6 +325,11 @@ module Aws::AppSync
276
325
 
277
326
  DataSources.member = Shapes::ShapeRef.new(shape: DataSource)
278
327
 
328
+ DeleteApiCacheRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
329
+ DeleteApiCacheRequest.struct_class = Types::DeleteApiCacheRequest
330
+
331
+ DeleteApiCacheResponse.struct_class = Types::DeleteApiCacheResponse
332
+
279
333
  DeleteApiKeyRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
280
334
  DeleteApiKeyRequest.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "id"))
281
335
  DeleteApiKeyRequest.struct_class = Types::DeleteApiKeyRequest
@@ -312,15 +366,27 @@ module Aws::AppSync
312
366
 
313
367
  DeleteTypeResponse.struct_class = Types::DeleteTypeResponse
314
368
 
369
+ DeltaSyncConfig.add_member(:base_table_ttl, Shapes::ShapeRef.new(shape: Long, location_name: "baseTableTTL"))
370
+ DeltaSyncConfig.add_member(:delta_sync_table_name, Shapes::ShapeRef.new(shape: String, location_name: "deltaSyncTableName"))
371
+ DeltaSyncConfig.add_member(:delta_sync_table_ttl, Shapes::ShapeRef.new(shape: Long, location_name: "deltaSyncTableTTL"))
372
+ DeltaSyncConfig.struct_class = Types::DeltaSyncConfig
373
+
315
374
  DynamodbDataSourceConfig.add_member(:table_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "tableName"))
316
375
  DynamodbDataSourceConfig.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsRegion"))
317
376
  DynamodbDataSourceConfig.add_member(:use_caller_credentials, Shapes::ShapeRef.new(shape: Boolean, location_name: "useCallerCredentials"))
377
+ DynamodbDataSourceConfig.add_member(:delta_sync_config, Shapes::ShapeRef.new(shape: DeltaSyncConfig, location_name: "deltaSyncConfig"))
378
+ DynamodbDataSourceConfig.add_member(:versioned, Shapes::ShapeRef.new(shape: Boolean, location_name: "versioned"))
318
379
  DynamodbDataSourceConfig.struct_class = Types::DynamodbDataSourceConfig
319
380
 
320
381
  ElasticsearchDataSourceConfig.add_member(:endpoint, Shapes::ShapeRef.new(shape: String, required: true, location_name: "endpoint"))
321
382
  ElasticsearchDataSourceConfig.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsRegion"))
322
383
  ElasticsearchDataSourceConfig.struct_class = Types::ElasticsearchDataSourceConfig
323
384
 
385
+ FlushApiCacheRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
386
+ FlushApiCacheRequest.struct_class = Types::FlushApiCacheRequest
387
+
388
+ FlushApiCacheResponse.struct_class = Types::FlushApiCacheResponse
389
+
324
390
  FunctionConfiguration.add_member(:function_id, Shapes::ShapeRef.new(shape: String, location_name: "functionId"))
325
391
  FunctionConfiguration.add_member(:function_arn, Shapes::ShapeRef.new(shape: String, location_name: "functionArn"))
326
392
  FunctionConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, location_name: "name"))
@@ -335,6 +401,12 @@ module Aws::AppSync
335
401
 
336
402
  FunctionsIds.member = Shapes::ShapeRef.new(shape: String)
337
403
 
404
+ GetApiCacheRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
405
+ GetApiCacheRequest.struct_class = Types::GetApiCacheRequest
406
+
407
+ GetApiCacheResponse.add_member(:api_cache, Shapes::ShapeRef.new(shape: ApiCache, location_name: "apiCache"))
408
+ GetApiCacheResponse.struct_class = Types::GetApiCacheResponse
409
+
338
410
  GetDataSourceRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
339
411
  GetDataSourceRequest.add_member(:name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location: "uri", location_name: "name"))
340
412
  GetDataSourceRequest.struct_class = Types::GetDataSourceRequest
@@ -401,6 +473,7 @@ module Aws::AppSync
401
473
  GraphqlApi.add_member(:uris, Shapes::ShapeRef.new(shape: MapOfStringToString, location_name: "uris"))
402
474
  GraphqlApi.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
403
475
  GraphqlApi.add_member(:additional_authentication_providers, Shapes::ShapeRef.new(shape: AdditionalAuthenticationProviders, location_name: "additionalAuthenticationProviders"))
476
+ GraphqlApi.add_member(:xray_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "xrayEnabled"))
404
477
  GraphqlApi.struct_class = Types::GraphqlApi
405
478
 
406
479
  GraphqlApis.member = Shapes::ShapeRef.new(shape: GraphqlApi)
@@ -412,6 +485,9 @@ module Aws::AppSync
412
485
  InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
413
486
  InternalFailureException.struct_class = Types::InternalFailureException
414
487
 
488
+ LambdaConflictHandlerConfig.add_member(:lambda_conflict_handler_arn, Shapes::ShapeRef.new(shape: String, location_name: "lambdaConflictHandlerArn"))
489
+ LambdaConflictHandlerConfig.struct_class = Types::LambdaConflictHandlerConfig
490
+
415
491
  LambdaDataSourceConfig.add_member(:lambda_function_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "lambdaFunctionArn"))
416
492
  LambdaDataSourceConfig.struct_class = Types::LambdaDataSourceConfig
417
493
 
@@ -528,6 +604,8 @@ module Aws::AppSync
528
604
  Resolver.add_member(:response_mapping_template, Shapes::ShapeRef.new(shape: MappingTemplate, location_name: "responseMappingTemplate"))
529
605
  Resolver.add_member(:kind, Shapes::ShapeRef.new(shape: ResolverKind, location_name: "kind"))
530
606
  Resolver.add_member(:pipeline_config, Shapes::ShapeRef.new(shape: PipelineConfig, location_name: "pipelineConfig"))
607
+ Resolver.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
608
+ Resolver.add_member(:caching_config, Shapes::ShapeRef.new(shape: CachingConfig, location_name: "cachingConfig"))
531
609
  Resolver.struct_class = Types::Resolver
532
610
 
533
611
  Resolvers.member = Shapes::ShapeRef.new(shape: Resolver)
@@ -539,6 +617,11 @@ module Aws::AppSync
539
617
  StartSchemaCreationResponse.add_member(:status, Shapes::ShapeRef.new(shape: SchemaStatus, location_name: "status"))
540
618
  StartSchemaCreationResponse.struct_class = Types::StartSchemaCreationResponse
541
619
 
620
+ SyncConfig.add_member(:conflict_handler, Shapes::ShapeRef.new(shape: ConflictHandlerType, location_name: "conflictHandler"))
621
+ SyncConfig.add_member(:conflict_detection, Shapes::ShapeRef.new(shape: ConflictDetectionType, location_name: "conflictDetection"))
622
+ SyncConfig.add_member(:lambda_conflict_handler_config, Shapes::ShapeRef.new(shape: LambdaConflictHandlerConfig, location_name: "lambdaConflictHandlerConfig"))
623
+ SyncConfig.struct_class = Types::SyncConfig
624
+
542
625
  TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
543
626
 
544
627
  TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
@@ -568,6 +651,15 @@ module Aws::AppSync
568
651
 
569
652
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
570
653
 
654
+ UpdateApiCacheRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
655
+ UpdateApiCacheRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "ttl"))
656
+ UpdateApiCacheRequest.add_member(:api_caching_behavior, Shapes::ShapeRef.new(shape: ApiCachingBehavior, required: true, location_name: "apiCachingBehavior"))
657
+ UpdateApiCacheRequest.add_member(:type, Shapes::ShapeRef.new(shape: ApiCacheType, required: true, location_name: "type"))
658
+ UpdateApiCacheRequest.struct_class = Types::UpdateApiCacheRequest
659
+
660
+ UpdateApiCacheResponse.add_member(:api_cache, Shapes::ShapeRef.new(shape: ApiCache, location_name: "apiCache"))
661
+ UpdateApiCacheResponse.struct_class = Types::UpdateApiCacheResponse
662
+
571
663
  UpdateApiKeyRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
572
664
  UpdateApiKeyRequest.add_member(:id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "id"))
573
665
  UpdateApiKeyRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
@@ -612,6 +704,7 @@ module Aws::AppSync
612
704
  UpdateGraphqlApiRequest.add_member(:user_pool_config, Shapes::ShapeRef.new(shape: UserPoolConfig, location_name: "userPoolConfig"))
613
705
  UpdateGraphqlApiRequest.add_member(:open_id_connect_config, Shapes::ShapeRef.new(shape: OpenIDConnectConfig, location_name: "openIDConnectConfig"))
614
706
  UpdateGraphqlApiRequest.add_member(:additional_authentication_providers, Shapes::ShapeRef.new(shape: AdditionalAuthenticationProviders, location_name: "additionalAuthenticationProviders"))
707
+ UpdateGraphqlApiRequest.add_member(:xray_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "xrayEnabled"))
615
708
  UpdateGraphqlApiRequest.struct_class = Types::UpdateGraphqlApiRequest
616
709
 
617
710
  UpdateGraphqlApiResponse.add_member(:graphql_api, Shapes::ShapeRef.new(shape: GraphqlApi, location_name: "graphqlApi"))
@@ -625,6 +718,8 @@ module Aws::AppSync
625
718
  UpdateResolverRequest.add_member(:response_mapping_template, Shapes::ShapeRef.new(shape: MappingTemplate, location_name: "responseMappingTemplate"))
626
719
  UpdateResolverRequest.add_member(:kind, Shapes::ShapeRef.new(shape: ResolverKind, location_name: "kind"))
627
720
  UpdateResolverRequest.add_member(:pipeline_config, Shapes::ShapeRef.new(shape: PipelineConfig, location_name: "pipelineConfig"))
721
+ UpdateResolverRequest.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
722
+ UpdateResolverRequest.add_member(:caching_config, Shapes::ShapeRef.new(shape: CachingConfig, location_name: "cachingConfig"))
628
723
  UpdateResolverRequest.struct_class = Types::UpdateResolverRequest
629
724
 
630
725
  UpdateResolverResponse.add_member(:resolver, Shapes::ShapeRef.new(shape: Resolver, location_name: "resolver"))
@@ -664,6 +759,19 @@ module Aws::AppSync
664
759
  "uid" => "appsync-2017-07-25",
665
760
  }
666
761
 
762
+ api.add_operation(:create_api_cache, Seahorse::Model::Operation.new.tap do |o|
763
+ o.name = "CreateApiCache"
764
+ o.http_method = "POST"
765
+ o.http_request_uri = "/v1/apis/{apiId}/ApiCaches"
766
+ o.input = Shapes::ShapeRef.new(shape: CreateApiCacheRequest)
767
+ o.output = Shapes::ShapeRef.new(shape: CreateApiCacheResponse)
768
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
769
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
770
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
771
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
772
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
773
+ end)
774
+
667
775
  api.add_operation(:create_api_key, Seahorse::Model::Operation.new.tap do |o|
668
776
  o.name = "CreateApiKey"
669
777
  o.http_method = "POST"
@@ -744,6 +852,19 @@ module Aws::AppSync
744
852
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
745
853
  end)
746
854
 
855
+ api.add_operation(:delete_api_cache, Seahorse::Model::Operation.new.tap do |o|
856
+ o.name = "DeleteApiCache"
857
+ o.http_method = "DELETE"
858
+ o.http_request_uri = "/v1/apis/{apiId}/ApiCaches"
859
+ o.input = Shapes::ShapeRef.new(shape: DeleteApiCacheRequest)
860
+ o.output = Shapes::ShapeRef.new(shape: DeleteApiCacheResponse)
861
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
862
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
863
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
864
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
865
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
866
+ end)
867
+
747
868
  api.add_operation(:delete_api_key, Seahorse::Model::Operation.new.tap do |o|
748
869
  o.name = "DeleteApiKey"
749
870
  o.http_method = "DELETE"
@@ -820,6 +941,32 @@ module Aws::AppSync
820
941
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
821
942
  end)
822
943
 
944
+ api.add_operation(:flush_api_cache, Seahorse::Model::Operation.new.tap do |o|
945
+ o.name = "FlushApiCache"
946
+ o.http_method = "DELETE"
947
+ o.http_request_uri = "/v1/apis/{apiId}/FlushCache"
948
+ o.input = Shapes::ShapeRef.new(shape: FlushApiCacheRequest)
949
+ o.output = Shapes::ShapeRef.new(shape: FlushApiCacheResponse)
950
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
951
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
952
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
953
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
954
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
955
+ end)
956
+
957
+ api.add_operation(:get_api_cache, Seahorse::Model::Operation.new.tap do |o|
958
+ o.name = "GetApiCache"
959
+ o.http_method = "GET"
960
+ o.http_request_uri = "/v1/apis/{apiId}/ApiCaches"
961
+ o.input = Shapes::ShapeRef.new(shape: GetApiCacheRequest)
962
+ o.output = Shapes::ShapeRef.new(shape: GetApiCacheResponse)
963
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
964
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
965
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
966
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
967
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
968
+ end)
969
+
823
970
  api.add_operation(:get_data_source, Seahorse::Model::Operation.new.tap do |o|
824
971
  o.name = "GetDataSource"
825
972
  o.http_method = "GET"
@@ -1044,6 +1191,19 @@ module Aws::AppSync
1044
1191
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1045
1192
  end)
1046
1193
 
1194
+ api.add_operation(:update_api_cache, Seahorse::Model::Operation.new.tap do |o|
1195
+ o.name = "UpdateApiCache"
1196
+ o.http_method = "POST"
1197
+ o.http_request_uri = "/v1/apis/{apiId}/ApiCaches/update"
1198
+ o.input = Shapes::ShapeRef.new(shape: UpdateApiCacheRequest)
1199
+ o.output = Shapes::ShapeRef.new(shape: UpdateApiCacheResponse)
1200
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1201
+ o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
1202
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1203
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1204
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1205
+ end)
1206
+
1047
1207
  api.add_operation(:update_api_key, Seahorse::Model::Operation.new.tap do |o|
1048
1208
  o.name = "UpdateApiKey"
1049
1209
  o.http_method = "POST"
@@ -6,6 +6,39 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::AppSync
9
+
10
+ # When AppSync returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::AppSync::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all AppSync errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::AppSync::Errors::ServiceError
18
+ # # rescues all AppSync API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ # * {AccessDeniedException}
29
+ # * {ApiKeyLimitExceededException}
30
+ # * {ApiKeyValidityOutOfBoundsException}
31
+ # * {ApiLimitExceededException}
32
+ # * {BadRequestException}
33
+ # * {ConcurrentModificationException}
34
+ # * {GraphQLSchemaException}
35
+ # * {InternalFailureException}
36
+ # * {LimitExceededException}
37
+ # * {NotFoundException}
38
+ # * {UnauthorizedException}
39
+ #
40
+ # Additionally, error classes are dynamically generated for service errors based on the error code
41
+ # if they are not defined above.
9
42
  module Errors
10
43
 
11
44
  extend Aws::Errors::DynamicErrors
@@ -23,7 +56,6 @@ module Aws::AppSync
23
56
  def message
24
57
  @message || @data[:message]
25
58
  end
26
-
27
59
  end
28
60
 
29
61
  class ApiKeyLimitExceededException < ServiceError
@@ -39,7 +71,6 @@ module Aws::AppSync
39
71
  def message
40
72
  @message || @data[:message]
41
73
  end
42
-
43
74
  end
44
75
 
45
76
  class ApiKeyValidityOutOfBoundsException < ServiceError
@@ -55,7 +86,6 @@ module Aws::AppSync
55
86
  def message
56
87
  @message || @data[:message]
57
88
  end
58
-
59
89
  end
60
90
 
61
91
  class ApiLimitExceededException < ServiceError
@@ -71,7 +101,6 @@ module Aws::AppSync
71
101
  def message
72
102
  @message || @data[:message]
73
103
  end
74
-
75
104
  end
76
105
 
77
106
  class BadRequestException < ServiceError
@@ -87,7 +116,6 @@ module Aws::AppSync
87
116
  def message
88
117
  @message || @data[:message]
89
118
  end
90
-
91
119
  end
92
120
 
93
121
  class ConcurrentModificationException < ServiceError
@@ -103,7 +131,6 @@ module Aws::AppSync
103
131
  def message
104
132
  @message || @data[:message]
105
133
  end
106
-
107
134
  end
108
135
 
109
136
  class GraphQLSchemaException < ServiceError
@@ -119,7 +146,6 @@ module Aws::AppSync
119
146
  def message
120
147
  @message || @data[:message]
121
148
  end
122
-
123
149
  end
124
150
 
125
151
  class InternalFailureException < ServiceError
@@ -135,7 +161,6 @@ module Aws::AppSync
135
161
  def message
136
162
  @message || @data[:message]
137
163
  end
138
-
139
164
  end
140
165
 
141
166
  class LimitExceededException < ServiceError
@@ -151,7 +176,6 @@ module Aws::AppSync
151
176
  def message
152
177
  @message || @data[:message]
153
178
  end
154
-
155
179
  end
156
180
 
157
181
  class NotFoundException < ServiceError
@@ -167,7 +191,6 @@ module Aws::AppSync
167
191
  def message
168
192
  @message || @data[:message]
169
193
  end
170
-
171
194
  end
172
195
 
173
196
  class UnauthorizedException < ServiceError
@@ -183,7 +206,6 @@ module Aws::AppSync
183
206
  def message
184
207
  @message || @data[:message]
185
208
  end
186
-
187
209
  end
188
210
 
189
211
  end