aws-sdk-appsync 1.53.0 → 1.55.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6bb3b1213c9276ebaa27df3de7501459ffe5f3c59efe049d6a4fc70cf12837c
4
- data.tar.gz: 349661d189e4505c276b3a7b93bb0c21d21d79eca547e6ad5da5f5b0a03d7786
3
+ metadata.gz: 7afda6f6928ee3b39ff7d9afeba5d41574d681060ff951481394fc5764e3f9c3
4
+ data.tar.gz: efacad4a3bd6f7b6b87ae9364a0af4302975b1c1bfaf687c49d412794941c465
5
5
  SHA512:
6
- metadata.gz: bc4e4858a3c3aa4e1f9097e286d02dccb6a7991e7ffdb5c6622e85b8c5045200503bff14dffa9f9eddb52c60a72928006f2b54b0f860c4ecda3e6b59512f4ac5
7
- data.tar.gz: 4d1abe6238982bf4dde0a9a433e40c40d800b034caace6851970911c7f1f8a609fb99b6806a8d5ac828f83a0797c041bd4a4fd7571358a93a4c01177d4f43cce
6
+ metadata.gz: 64122af77659d98b4665391308d30bfc48b38b3366c65669e81031197f0b534306560180241068a594d43416c27c671cd2802252cf26d39ed6ce0b95dc0440c5
7
+ data.tar.gz: 39825b2ec0088328fd9728a7c520665ece841e9e7531f7bc4dcf8c41c7764b3e4ec0ebee72638811f13e54aad307c0fc5d66be20bf1650d72c90fed33dc05250
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.55.0 (2022-11-17)
5
+ ------------------
6
+
7
+ * Feature - This release introduces the APPSYNC_JS runtime, and adds support for JavaScript in AppSync functions and AppSync pipeline resolvers.
8
+
9
+ 1.54.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.53.0 (2022-07-26)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.53.0
1
+ 1.55.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:appsync)
@@ -79,8 +79,9 @@ module Aws::AppSync
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::AppSync::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::AppSync
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::AppSync
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::AppSync::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::AppSync::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -731,9 +748,10 @@ module Aws::AppSync
731
748
  # @option params [String] :response_mapping_template
732
749
  # The `Function` response mapping template.
733
750
  #
734
- # @option params [required, String] :function_version
751
+ # @option params [String] :function_version
735
752
  # The `version` of the request mapping template. Currently, the
736
- # supported value is 2018-05-29.
753
+ # supported value is 2018-05-29. Note that when using VTL and mapping
754
+ # templates, the `functionVersion` is required.
737
755
  #
738
756
  # @option params [Types::SyncConfig] :sync_config
739
757
  # Describes a Sync configuration for a resolver.
@@ -744,6 +762,16 @@ module Aws::AppSync
744
762
  # @option params [Integer] :max_batch_size
745
763
  # The maximum batching size for a resolver.
746
764
  #
765
+ # @option params [Types::AppSyncRuntime] :runtime
766
+ # Describes a runtime used by an AWS AppSync pipeline resolver or AWS
767
+ # AppSync function. Specifies the name and version of the runtime to
768
+ # use. Note that if a runtime is specified, code must also be specified.
769
+ #
770
+ # @option params [String] :code
771
+ # The `function` code that contains the request and response functions.
772
+ # When code is used, the `runtime` is required. The `runtime` value must
773
+ # be `APPSYNC_JS`.
774
+ #
747
775
  # @return [Types::CreateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
748
776
  #
749
777
  # * {Types::CreateFunctionResponse#function_configuration #function_configuration} => Types::FunctionConfiguration
@@ -757,7 +785,7 @@ module Aws::AppSync
757
785
  # data_source_name: "ResourceName", # required
758
786
  # request_mapping_template: "MappingTemplate",
759
787
  # response_mapping_template: "MappingTemplate",
760
- # function_version: "String", # required
788
+ # function_version: "String",
761
789
  # sync_config: {
762
790
  # conflict_handler: "OPTIMISTIC_CONCURRENCY", # accepts OPTIMISTIC_CONCURRENCY, LAMBDA, AUTOMERGE, NONE
763
791
  # conflict_detection: "VERSION", # accepts VERSION, NONE
@@ -766,6 +794,11 @@ module Aws::AppSync
766
794
  # },
767
795
  # },
768
796
  # max_batch_size: 1,
797
+ # runtime: {
798
+ # name: "APPSYNC_JS", # required, accepts APPSYNC_JS
799
+ # runtime_version: "String", # required
800
+ # },
801
+ # code: "Code",
769
802
  # })
770
803
  #
771
804
  # @example Response structure
@@ -782,6 +815,9 @@ module Aws::AppSync
782
815
  # resp.function_configuration.sync_config.conflict_detection #=> String, one of "VERSION", "NONE"
783
816
  # resp.function_configuration.sync_config.lambda_conflict_handler_config.lambda_conflict_handler_arn #=> String
784
817
  # resp.function_configuration.max_batch_size #=> Integer
818
+ # resp.function_configuration.runtime.name #=> String, one of "APPSYNC_JS"
819
+ # resp.function_configuration.runtime.runtime_version #=> String
820
+ # resp.function_configuration.code #=> String
785
821
  #
786
822
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateFunction AWS API Documentation
787
823
  #
@@ -985,6 +1021,16 @@ module Aws::AppSync
985
1021
  # @option params [Integer] :max_batch_size
986
1022
  # The maximum batching size for a resolver.
987
1023
  #
1024
+ # @option params [Types::AppSyncRuntime] :runtime
1025
+ # Describes a runtime used by an AWS AppSync pipeline resolver or AWS
1026
+ # AppSync function. Specifies the name and version of the runtime to
1027
+ # use. Note that if a runtime is specified, code must also be specified.
1028
+ #
1029
+ # @option params [String] :code
1030
+ # The `resolver` code that contains the request and response functions.
1031
+ # When code is used, the `runtime` is required. The `runtime` value must
1032
+ # be `APPSYNC_JS`.
1033
+ #
988
1034
  # @return [Types::CreateResolverResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
989
1035
  #
990
1036
  # * {Types::CreateResolverResponse#resolver #resolver} => Types::Resolver
@@ -1014,6 +1060,11 @@ module Aws::AppSync
1014
1060
  # caching_keys: ["String"],
1015
1061
  # },
1016
1062
  # max_batch_size: 1,
1063
+ # runtime: {
1064
+ # name: "APPSYNC_JS", # required, accepts APPSYNC_JS
1065
+ # runtime_version: "String", # required
1066
+ # },
1067
+ # code: "Code",
1017
1068
  # })
1018
1069
  #
1019
1070
  # @example Response structure
@@ -1034,6 +1085,9 @@ module Aws::AppSync
1034
1085
  # resp.resolver.caching_config.caching_keys #=> Array
1035
1086
  # resp.resolver.caching_config.caching_keys[0] #=> String
1036
1087
  # resp.resolver.max_batch_size #=> Integer
1088
+ # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
1089
+ # resp.resolver.runtime.runtime_version #=> String
1090
+ # resp.resolver.code #=> String
1037
1091
  #
1038
1092
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver AWS API Documentation
1039
1093
  #
@@ -1313,6 +1367,72 @@ module Aws::AppSync
1313
1367
  req.send_request(options)
1314
1368
  end
1315
1369
 
1370
+ # Evaluates the given code and returns the response. The code definition
1371
+ # requirements depend on the specified runtime. For `APPSYNC_JS`
1372
+ # runtimes, the code defines the request and response functions. The
1373
+ # request function takes the incoming request after a GraphQL operation
1374
+ # is parsed and converts it into a request configuration for the
1375
+ # selected data source operation. The response function interprets
1376
+ # responses from the data source and maps it to the shape of the GraphQL
1377
+ # field output type.
1378
+ #
1379
+ # @option params [required, Types::AppSyncRuntime] :runtime
1380
+ # The runtime to be used when evaluating the code. Currently, only the
1381
+ # `APPSYNC_JS` runtime is supported.
1382
+ #
1383
+ # @option params [required, String] :code
1384
+ # The code definition to be evaluated. Note that `code` and `runtime`
1385
+ # are both required for this action. The `runtime` value must be
1386
+ # `APPSYNC_JS`.
1387
+ #
1388
+ # @option params [required, String] :context
1389
+ # The map that holds all of the contextual information for your resolver
1390
+ # invocation. A `context` is required for this action.
1391
+ #
1392
+ # @option params [String] :function
1393
+ # The function within the code to be evaluated. If provided, the valid
1394
+ # values are `request` and `response`.
1395
+ #
1396
+ # @return [Types::EvaluateCodeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1397
+ #
1398
+ # * {Types::EvaluateCodeResponse#evaluation_result #evaluation_result} => String
1399
+ # * {Types::EvaluateCodeResponse#error #error} => Types::EvaluateCodeErrorDetail
1400
+ # * {Types::EvaluateCodeResponse#logs #logs} => Array<String>
1401
+ #
1402
+ # @example Request syntax with placeholder values
1403
+ #
1404
+ # resp = client.evaluate_code({
1405
+ # runtime: { # required
1406
+ # name: "APPSYNC_JS", # required, accepts APPSYNC_JS
1407
+ # runtime_version: "String", # required
1408
+ # },
1409
+ # code: "Code", # required
1410
+ # context: "Context", # required
1411
+ # function: "String",
1412
+ # })
1413
+ #
1414
+ # @example Response structure
1415
+ #
1416
+ # resp.evaluation_result #=> String
1417
+ # resp.error.message #=> String
1418
+ # resp.error.code_errors #=> Array
1419
+ # resp.error.code_errors[0].error_type #=> String
1420
+ # resp.error.code_errors[0].value #=> String
1421
+ # resp.error.code_errors[0].location.line #=> Integer
1422
+ # resp.error.code_errors[0].location.column #=> Integer
1423
+ # resp.error.code_errors[0].location.span #=> Integer
1424
+ # resp.logs #=> Array
1425
+ # resp.logs[0] #=> String
1426
+ #
1427
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateCode AWS API Documentation
1428
+ #
1429
+ # @overload evaluate_code(params = {})
1430
+ # @param [Hash] params ({})
1431
+ def evaluate_code(params = {}, options = {})
1432
+ req = build_request(:evaluate_code, params)
1433
+ req.send_request(options)
1434
+ end
1435
+
1316
1436
  # Evaluates a given template and returns the response. The mapping
1317
1437
  # template can be a request or response template.
1318
1438
  #
@@ -1336,6 +1456,7 @@ module Aws::AppSync
1336
1456
  #
1337
1457
  # * {Types::EvaluateMappingTemplateResponse#evaluation_result #evaluation_result} => String
1338
1458
  # * {Types::EvaluateMappingTemplateResponse#error #error} => Types::ErrorDetail
1459
+ # * {Types::EvaluateMappingTemplateResponse#logs #logs} => Array<String>
1339
1460
  #
1340
1461
  # @example Request syntax with placeholder values
1341
1462
  #
@@ -1348,6 +1469,8 @@ module Aws::AppSync
1348
1469
  #
1349
1470
  # resp.evaluation_result #=> String
1350
1471
  # resp.error.message #=> String
1472
+ # resp.logs #=> Array
1473
+ # resp.logs[0] #=> String
1351
1474
  #
1352
1475
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EvaluateMappingTemplate AWS API Documentation
1353
1476
  #
@@ -1567,6 +1690,9 @@ module Aws::AppSync
1567
1690
  # resp.function_configuration.sync_config.conflict_detection #=> String, one of "VERSION", "NONE"
1568
1691
  # resp.function_configuration.sync_config.lambda_conflict_handler_config.lambda_conflict_handler_arn #=> String
1569
1692
  # resp.function_configuration.max_batch_size #=> Integer
1693
+ # resp.function_configuration.runtime.name #=> String, one of "APPSYNC_JS"
1694
+ # resp.function_configuration.runtime.runtime_version #=> String
1695
+ # resp.function_configuration.code #=> String
1570
1696
  #
1571
1697
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetFunction AWS API Documentation
1572
1698
  #
@@ -1718,6 +1844,9 @@ module Aws::AppSync
1718
1844
  # resp.resolver.caching_config.caching_keys #=> Array
1719
1845
  # resp.resolver.caching_config.caching_keys[0] #=> String
1720
1846
  # resp.resolver.max_batch_size #=> Integer
1847
+ # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
1848
+ # resp.resolver.runtime.runtime_version #=> String
1849
+ # resp.resolver.code #=> String
1721
1850
  #
1722
1851
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver AWS API Documentation
1723
1852
  #
@@ -1996,6 +2125,9 @@ module Aws::AppSync
1996
2125
  # resp.functions[0].sync_config.conflict_detection #=> String, one of "VERSION", "NONE"
1997
2126
  # resp.functions[0].sync_config.lambda_conflict_handler_config.lambda_conflict_handler_arn #=> String
1998
2127
  # resp.functions[0].max_batch_size #=> Integer
2128
+ # resp.functions[0].runtime.name #=> String, one of "APPSYNC_JS"
2129
+ # resp.functions[0].runtime.runtime_version #=> String
2130
+ # resp.functions[0].code #=> String
1999
2131
  # resp.next_token #=> String
2000
2132
  #
2001
2133
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListFunctions AWS API Documentation
@@ -2128,6 +2260,9 @@ module Aws::AppSync
2128
2260
  # resp.resolvers[0].caching_config.caching_keys #=> Array
2129
2261
  # resp.resolvers[0].caching_config.caching_keys[0] #=> String
2130
2262
  # resp.resolvers[0].max_batch_size #=> Integer
2263
+ # resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
2264
+ # resp.resolvers[0].runtime.runtime_version #=> String
2265
+ # resp.resolvers[0].code #=> String
2131
2266
  # resp.next_token #=> String
2132
2267
  #
2133
2268
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers AWS API Documentation
@@ -2188,6 +2323,9 @@ module Aws::AppSync
2188
2323
  # resp.resolvers[0].caching_config.caching_keys #=> Array
2189
2324
  # resp.resolvers[0].caching_config.caching_keys[0] #=> String
2190
2325
  # resp.resolvers[0].max_batch_size #=> Integer
2326
+ # resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
2327
+ # resp.resolvers[0].runtime.runtime_version #=> String
2328
+ # resp.resolvers[0].code #=> String
2191
2329
  # resp.next_token #=> String
2192
2330
  #
2193
2331
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction AWS API Documentation
@@ -2696,9 +2834,10 @@ module Aws::AppSync
2696
2834
  # @option params [String] :response_mapping_template
2697
2835
  # The `Function` request mapping template.
2698
2836
  #
2699
- # @option params [required, String] :function_version
2837
+ # @option params [String] :function_version
2700
2838
  # The `version` of the request mapping template. Currently, the
2701
- # supported value is 2018-05-29.
2839
+ # supported value is 2018-05-29. Note that when using VTL and mapping
2840
+ # templates, the `functionVersion` is required.
2702
2841
  #
2703
2842
  # @option params [Types::SyncConfig] :sync_config
2704
2843
  # Describes a Sync configuration for a resolver.
@@ -2709,6 +2848,16 @@ module Aws::AppSync
2709
2848
  # @option params [Integer] :max_batch_size
2710
2849
  # The maximum batching size for a resolver.
2711
2850
  #
2851
+ # @option params [Types::AppSyncRuntime] :runtime
2852
+ # Describes a runtime used by an AWS AppSync pipeline resolver or AWS
2853
+ # AppSync function. Specifies the name and version of the runtime to
2854
+ # use. Note that if a runtime is specified, code must also be specified.
2855
+ #
2856
+ # @option params [String] :code
2857
+ # The `function` code that contains the request and response functions.
2858
+ # When code is used, the `runtime` is required. The `runtime` value must
2859
+ # be `APPSYNC_JS`.
2860
+ #
2712
2861
  # @return [Types::UpdateFunctionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2713
2862
  #
2714
2863
  # * {Types::UpdateFunctionResponse#function_configuration #function_configuration} => Types::FunctionConfiguration
@@ -2723,7 +2872,7 @@ module Aws::AppSync
2723
2872
  # data_source_name: "ResourceName", # required
2724
2873
  # request_mapping_template: "MappingTemplate",
2725
2874
  # response_mapping_template: "MappingTemplate",
2726
- # function_version: "String", # required
2875
+ # function_version: "String",
2727
2876
  # sync_config: {
2728
2877
  # conflict_handler: "OPTIMISTIC_CONCURRENCY", # accepts OPTIMISTIC_CONCURRENCY, LAMBDA, AUTOMERGE, NONE
2729
2878
  # conflict_detection: "VERSION", # accepts VERSION, NONE
@@ -2732,6 +2881,11 @@ module Aws::AppSync
2732
2881
  # },
2733
2882
  # },
2734
2883
  # max_batch_size: 1,
2884
+ # runtime: {
2885
+ # name: "APPSYNC_JS", # required, accepts APPSYNC_JS
2886
+ # runtime_version: "String", # required
2887
+ # },
2888
+ # code: "Code",
2735
2889
  # })
2736
2890
  #
2737
2891
  # @example Response structure
@@ -2748,6 +2902,9 @@ module Aws::AppSync
2748
2902
  # resp.function_configuration.sync_config.conflict_detection #=> String, one of "VERSION", "NONE"
2749
2903
  # resp.function_configuration.sync_config.lambda_conflict_handler_config.lambda_conflict_handler_arn #=> String
2750
2904
  # resp.function_configuration.max_batch_size #=> Integer
2905
+ # resp.function_configuration.runtime.name #=> String, one of "APPSYNC_JS"
2906
+ # resp.function_configuration.runtime.runtime_version #=> String
2907
+ # resp.function_configuration.code #=> String
2751
2908
  #
2752
2909
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateFunction AWS API Documentation
2753
2910
  #
@@ -2945,6 +3102,16 @@ module Aws::AppSync
2945
3102
  # @option params [Integer] :max_batch_size
2946
3103
  # The maximum batching size for a resolver.
2947
3104
  #
3105
+ # @option params [Types::AppSyncRuntime] :runtime
3106
+ # Describes a runtime used by an AWS AppSync pipeline resolver or AWS
3107
+ # AppSync function. Specifies the name and version of the runtime to
3108
+ # use. Note that if a runtime is specified, code must also be specified.
3109
+ #
3110
+ # @option params [String] :code
3111
+ # The `resolver` code that contains the request and response functions.
3112
+ # When code is used, the `runtime` is required. The `runtime` value must
3113
+ # be `APPSYNC_JS`.
3114
+ #
2948
3115
  # @return [Types::UpdateResolverResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2949
3116
  #
2950
3117
  # * {Types::UpdateResolverResponse#resolver #resolver} => Types::Resolver
@@ -2974,6 +3141,11 @@ module Aws::AppSync
2974
3141
  # caching_keys: ["String"],
2975
3142
  # },
2976
3143
  # max_batch_size: 1,
3144
+ # runtime: {
3145
+ # name: "APPSYNC_JS", # required, accepts APPSYNC_JS
3146
+ # runtime_version: "String", # required
3147
+ # },
3148
+ # code: "Code",
2977
3149
  # })
2978
3150
  #
2979
3151
  # @example Response structure
@@ -2994,6 +3166,9 @@ module Aws::AppSync
2994
3166
  # resp.resolver.caching_config.caching_keys #=> Array
2995
3167
  # resp.resolver.caching_config.caching_keys[0] #=> String
2996
3168
  # resp.resolver.max_batch_size #=> Integer
3169
+ # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
3170
+ # resp.resolver.runtime.runtime_version #=> String
3171
+ # resp.resolver.code #=> String
2997
3172
  #
2998
3173
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver AWS API Documentation
2999
3174
  #
@@ -3061,7 +3236,7 @@ module Aws::AppSync
3061
3236
  params: params,
3062
3237
  config: config)
3063
3238
  context[:gem_name] = 'aws-sdk-appsync'
3064
- context[:gem_version] = '1.53.0'
3239
+ context[:gem_version] = '1.55.0'
3065
3240
  Seahorse::Client::Request.new(handlers, context)
3066
3241
  end
3067
3242
 
@@ -26,6 +26,7 @@ module Aws::AppSync
26
26
  ApiKeyValidityOutOfBoundsException = Shapes::StructureShape.new(name: 'ApiKeyValidityOutOfBoundsException')
27
27
  ApiKeys = Shapes::ListShape.new(name: 'ApiKeys')
28
28
  ApiLimitExceededException = Shapes::StructureShape.new(name: 'ApiLimitExceededException')
29
+ AppSyncRuntime = Shapes::StructureShape.new(name: 'AppSyncRuntime')
29
30
  AssociateApiRequest = Shapes::StructureShape.new(name: 'AssociateApiRequest')
30
31
  AssociateApiResponse = Shapes::StructureShape.new(name: 'AssociateApiResponse')
31
32
  AssociationStatus = Shapes::StringShape.new(name: 'AssociationStatus')
@@ -33,13 +34,22 @@ module Aws::AppSync
33
34
  AuthorizationConfig = Shapes::StructureShape.new(name: 'AuthorizationConfig')
34
35
  AuthorizationType = Shapes::StringShape.new(name: 'AuthorizationType')
35
36
  AwsIamConfig = Shapes::StructureShape.new(name: 'AwsIamConfig')
37
+ BadRequestDetail = Shapes::StructureShape.new(name: 'BadRequestDetail')
36
38
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
39
+ BadRequestReason = Shapes::StringShape.new(name: 'BadRequestReason')
37
40
  Blob = Shapes::BlobShape.new(name: 'Blob')
38
41
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
39
42
  BooleanValue = Shapes::BooleanShape.new(name: 'BooleanValue')
40
43
  CachingConfig = Shapes::StructureShape.new(name: 'CachingConfig')
41
44
  CachingKeys = Shapes::ListShape.new(name: 'CachingKeys')
42
45
  CertificateArn = Shapes::StringShape.new(name: 'CertificateArn')
46
+ Code = Shapes::StringShape.new(name: 'Code')
47
+ CodeError = Shapes::StructureShape.new(name: 'CodeError')
48
+ CodeErrorColumn = Shapes::IntegerShape.new(name: 'CodeErrorColumn')
49
+ CodeErrorLine = Shapes::IntegerShape.new(name: 'CodeErrorLine')
50
+ CodeErrorLocation = Shapes::StructureShape.new(name: 'CodeErrorLocation')
51
+ CodeErrorSpan = Shapes::IntegerShape.new(name: 'CodeErrorSpan')
52
+ CodeErrors = Shapes::ListShape.new(name: 'CodeErrors')
43
53
  CognitoUserPoolConfig = Shapes::StructureShape.new(name: 'CognitoUserPoolConfig')
44
54
  ConcurrentModificationException = Shapes::StructureShape.new(name: 'ConcurrentModificationException')
45
55
  ConflictDetectionType = Shapes::StringShape.new(name: 'ConflictDetectionType')
@@ -92,6 +102,9 @@ module Aws::AppSync
92
102
  ElasticsearchDataSourceConfig = Shapes::StructureShape.new(name: 'ElasticsearchDataSourceConfig')
93
103
  ErrorDetail = Shapes::StructureShape.new(name: 'ErrorDetail')
94
104
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
105
+ EvaluateCodeErrorDetail = Shapes::StructureShape.new(name: 'EvaluateCodeErrorDetail')
106
+ EvaluateCodeRequest = Shapes::StructureShape.new(name: 'EvaluateCodeRequest')
107
+ EvaluateCodeResponse = Shapes::StructureShape.new(name: 'EvaluateCodeResponse')
95
108
  EvaluateMappingTemplateRequest = Shapes::StructureShape.new(name: 'EvaluateMappingTemplateRequest')
96
109
  EvaluateMappingTemplateResponse = Shapes::StructureShape.new(name: 'EvaluateMappingTemplateResponse')
97
110
  EvaluationResult = Shapes::StringShape.new(name: 'EvaluationResult')
@@ -149,6 +162,7 @@ module Aws::AppSync
149
162
  ListTypesRequest = Shapes::StructureShape.new(name: 'ListTypesRequest')
150
163
  ListTypesResponse = Shapes::StructureShape.new(name: 'ListTypesResponse')
151
164
  LogConfig = Shapes::StructureShape.new(name: 'LogConfig')
165
+ Logs = Shapes::ListShape.new(name: 'Logs')
152
166
  Long = Shapes::IntegerShape.new(name: 'Long')
153
167
  MapOfStringToString = Shapes::MapShape.new(name: 'MapOfStringToString')
154
168
  MappingTemplate = Shapes::StringShape.new(name: 'MappingTemplate')
@@ -168,6 +182,7 @@ module Aws::AppSync
168
182
  Resolvers = Shapes::ListShape.new(name: 'Resolvers')
169
183
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
170
184
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
185
+ RuntimeName = Shapes::StringShape.new(name: 'RuntimeName')
171
186
  SchemaStatus = Shapes::StringShape.new(name: 'SchemaStatus')
172
187
  StartSchemaCreationRequest = Shapes::StructureShape.new(name: 'StartSchemaCreationRequest')
173
188
  StartSchemaCreationResponse = Shapes::StructureShape.new(name: 'StartSchemaCreationResponse')
@@ -247,6 +262,10 @@ module Aws::AppSync
247
262
  ApiLimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
248
263
  ApiLimitExceededException.struct_class = Types::ApiLimitExceededException
249
264
 
265
+ AppSyncRuntime.add_member(:name, Shapes::ShapeRef.new(shape: RuntimeName, required: true, location_name: "name"))
266
+ AppSyncRuntime.add_member(:runtime_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "runtimeVersion"))
267
+ AppSyncRuntime.struct_class = Types::AppSyncRuntime
268
+
250
269
  AssociateApiRequest.add_member(:domain_name, Shapes::ShapeRef.new(shape: DomainName, required: true, location: "uri", location_name: "domainName"))
251
270
  AssociateApiRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "apiId"))
252
271
  AssociateApiRequest.struct_class = Types::AssociateApiRequest
@@ -262,7 +281,12 @@ module Aws::AppSync
262
281
  AwsIamConfig.add_member(:signing_service_name, Shapes::ShapeRef.new(shape: String, location_name: "signingServiceName"))
263
282
  AwsIamConfig.struct_class = Types::AwsIamConfig
264
283
 
284
+ BadRequestDetail.add_member(:code_errors, Shapes::ShapeRef.new(shape: CodeErrors, location_name: "codeErrors"))
285
+ BadRequestDetail.struct_class = Types::BadRequestDetail
286
+
265
287
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
288
+ BadRequestException.add_member(:reason, Shapes::ShapeRef.new(shape: BadRequestReason, location_name: "reason"))
289
+ BadRequestException.add_member(:detail, Shapes::ShapeRef.new(shape: BadRequestDetail, location_name: "detail"))
266
290
  BadRequestException.struct_class = Types::BadRequestException
267
291
 
268
292
  CachingConfig.add_member(:ttl, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "ttl"))
@@ -271,6 +295,18 @@ module Aws::AppSync
271
295
 
272
296
  CachingKeys.member = Shapes::ShapeRef.new(shape: String)
273
297
 
298
+ CodeError.add_member(:error_type, Shapes::ShapeRef.new(shape: String, location_name: "errorType"))
299
+ CodeError.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
300
+ CodeError.add_member(:location, Shapes::ShapeRef.new(shape: CodeErrorLocation, location_name: "location"))
301
+ CodeError.struct_class = Types::CodeError
302
+
303
+ CodeErrorLocation.add_member(:line, Shapes::ShapeRef.new(shape: CodeErrorLine, location_name: "line"))
304
+ CodeErrorLocation.add_member(:column, Shapes::ShapeRef.new(shape: CodeErrorColumn, location_name: "column"))
305
+ CodeErrorLocation.add_member(:span, Shapes::ShapeRef.new(shape: CodeErrorSpan, location_name: "span"))
306
+ CodeErrorLocation.struct_class = Types::CodeErrorLocation
307
+
308
+ CodeErrors.member = Shapes::ShapeRef.new(shape: CodeError)
309
+
274
310
  CognitoUserPoolConfig.add_member(:user_pool_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "userPoolId"))
275
311
  CognitoUserPoolConfig.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsRegion"))
276
312
  CognitoUserPoolConfig.add_member(:app_id_client_regex, Shapes::ShapeRef.new(shape: String, location_name: "appIdClientRegex"))
@@ -328,9 +364,11 @@ module Aws::AppSync
328
364
  CreateFunctionRequest.add_member(:data_source_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "dataSourceName"))
329
365
  CreateFunctionRequest.add_member(:request_mapping_template, Shapes::ShapeRef.new(shape: MappingTemplate, location_name: "requestMappingTemplate"))
330
366
  CreateFunctionRequest.add_member(:response_mapping_template, Shapes::ShapeRef.new(shape: MappingTemplate, location_name: "responseMappingTemplate"))
331
- CreateFunctionRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "functionVersion"))
367
+ CreateFunctionRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: String, location_name: "functionVersion"))
332
368
  CreateFunctionRequest.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
333
369
  CreateFunctionRequest.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
370
+ CreateFunctionRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
371
+ CreateFunctionRequest.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
334
372
  CreateFunctionRequest.struct_class = Types::CreateFunctionRequest
335
373
 
336
374
  CreateFunctionResponse.add_member(:function_configuration, Shapes::ShapeRef.new(shape: FunctionConfiguration, location_name: "functionConfiguration"))
@@ -361,6 +399,8 @@ module Aws::AppSync
361
399
  CreateResolverRequest.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
362
400
  CreateResolverRequest.add_member(:caching_config, Shapes::ShapeRef.new(shape: CachingConfig, location_name: "cachingConfig"))
363
401
  CreateResolverRequest.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
402
+ CreateResolverRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
403
+ CreateResolverRequest.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
364
404
  CreateResolverRequest.struct_class = Types::CreateResolverRequest
365
405
 
366
406
  CreateResolverResponse.add_member(:resolver, Shapes::ShapeRef.new(shape: Resolver, location_name: "resolver"))
@@ -468,12 +508,28 @@ module Aws::AppSync
468
508
  ErrorDetail.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
469
509
  ErrorDetail.struct_class = Types::ErrorDetail
470
510
 
511
+ EvaluateCodeErrorDetail.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
512
+ EvaluateCodeErrorDetail.add_member(:code_errors, Shapes::ShapeRef.new(shape: CodeErrors, location_name: "codeErrors"))
513
+ EvaluateCodeErrorDetail.struct_class = Types::EvaluateCodeErrorDetail
514
+
515
+ EvaluateCodeRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, required: true, location_name: "runtime"))
516
+ EvaluateCodeRequest.add_member(:code, Shapes::ShapeRef.new(shape: Code, required: true, location_name: "code"))
517
+ EvaluateCodeRequest.add_member(:context, Shapes::ShapeRef.new(shape: Context, required: true, location_name: "context"))
518
+ EvaluateCodeRequest.add_member(:function, Shapes::ShapeRef.new(shape: String, location_name: "function"))
519
+ EvaluateCodeRequest.struct_class = Types::EvaluateCodeRequest
520
+
521
+ EvaluateCodeResponse.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: EvaluationResult, location_name: "evaluationResult"))
522
+ EvaluateCodeResponse.add_member(:error, Shapes::ShapeRef.new(shape: EvaluateCodeErrorDetail, location_name: "error"))
523
+ EvaluateCodeResponse.add_member(:logs, Shapes::ShapeRef.new(shape: Logs, location_name: "logs"))
524
+ EvaluateCodeResponse.struct_class = Types::EvaluateCodeResponse
525
+
471
526
  EvaluateMappingTemplateRequest.add_member(:template, Shapes::ShapeRef.new(shape: Template, required: true, location_name: "template"))
472
527
  EvaluateMappingTemplateRequest.add_member(:context, Shapes::ShapeRef.new(shape: Context, required: true, location_name: "context"))
473
528
  EvaluateMappingTemplateRequest.struct_class = Types::EvaluateMappingTemplateRequest
474
529
 
475
530
  EvaluateMappingTemplateResponse.add_member(:evaluation_result, Shapes::ShapeRef.new(shape: EvaluationResult, location_name: "evaluationResult"))
476
531
  EvaluateMappingTemplateResponse.add_member(:error, Shapes::ShapeRef.new(shape: ErrorDetail, location_name: "error"))
532
+ EvaluateMappingTemplateResponse.add_member(:logs, Shapes::ShapeRef.new(shape: Logs, location_name: "logs"))
477
533
  EvaluateMappingTemplateResponse.struct_class = Types::EvaluateMappingTemplateResponse
478
534
 
479
535
  FlushApiCacheRequest.add_member(:api_id, Shapes::ShapeRef.new(shape: String, required: true, location: "uri", location_name: "apiId"))
@@ -491,6 +547,8 @@ module Aws::AppSync
491
547
  FunctionConfiguration.add_member(:function_version, Shapes::ShapeRef.new(shape: String, location_name: "functionVersion"))
492
548
  FunctionConfiguration.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
493
549
  FunctionConfiguration.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
550
+ FunctionConfiguration.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
551
+ FunctionConfiguration.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
494
552
  FunctionConfiguration.struct_class = Types::FunctionConfiguration
495
553
 
496
554
  Functions.member = Shapes::ShapeRef.new(shape: FunctionConfiguration)
@@ -693,6 +751,8 @@ module Aws::AppSync
693
751
  LogConfig.add_member(:exclude_verbose_content, Shapes::ShapeRef.new(shape: Boolean, location_name: "excludeVerboseContent"))
694
752
  LogConfig.struct_class = Types::LogConfig
695
753
 
754
+ Logs.member = Shapes::ShapeRef.new(shape: String)
755
+
696
756
  MapOfStringToString.key = Shapes::ShapeRef.new(shape: String)
697
757
  MapOfStringToString.value = Shapes::ShapeRef.new(shape: String)
698
758
 
@@ -734,6 +794,8 @@ module Aws::AppSync
734
794
  Resolver.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
735
795
  Resolver.add_member(:caching_config, Shapes::ShapeRef.new(shape: CachingConfig, location_name: "cachingConfig"))
736
796
  Resolver.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
797
+ Resolver.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
798
+ Resolver.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
737
799
  Resolver.struct_class = Types::Resolver
738
800
 
739
801
  Resolvers.member = Shapes::ShapeRef.new(shape: Resolver)
@@ -827,9 +889,11 @@ module Aws::AppSync
827
889
  UpdateFunctionRequest.add_member(:data_source_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "dataSourceName"))
828
890
  UpdateFunctionRequest.add_member(:request_mapping_template, Shapes::ShapeRef.new(shape: MappingTemplate, location_name: "requestMappingTemplate"))
829
891
  UpdateFunctionRequest.add_member(:response_mapping_template, Shapes::ShapeRef.new(shape: MappingTemplate, location_name: "responseMappingTemplate"))
830
- UpdateFunctionRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "functionVersion"))
892
+ UpdateFunctionRequest.add_member(:function_version, Shapes::ShapeRef.new(shape: String, location_name: "functionVersion"))
831
893
  UpdateFunctionRequest.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
832
894
  UpdateFunctionRequest.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
895
+ UpdateFunctionRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
896
+ UpdateFunctionRequest.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
833
897
  UpdateFunctionRequest.struct_class = Types::UpdateFunctionRequest
834
898
 
835
899
  UpdateFunctionResponse.add_member(:function_configuration, Shapes::ShapeRef.new(shape: FunctionConfiguration, location_name: "functionConfiguration"))
@@ -860,6 +924,8 @@ module Aws::AppSync
860
924
  UpdateResolverRequest.add_member(:sync_config, Shapes::ShapeRef.new(shape: SyncConfig, location_name: "syncConfig"))
861
925
  UpdateResolverRequest.add_member(:caching_config, Shapes::ShapeRef.new(shape: CachingConfig, location_name: "cachingConfig"))
862
926
  UpdateResolverRequest.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
927
+ UpdateResolverRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
928
+ UpdateResolverRequest.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
863
929
  UpdateResolverRequest.struct_class = Types::UpdateResolverRequest
864
930
 
865
931
  UpdateResolverResponse.add_member(:resolver, Shapes::ShapeRef.new(shape: Resolver, location_name: "resolver"))
@@ -1000,6 +1066,7 @@ module Aws::AppSync
1000
1066
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1001
1067
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1002
1068
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1069
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1003
1070
  end)
1004
1071
 
1005
1072
  api.add_operation(:create_type, Seahorse::Model::Operation.new.tap do |o|
@@ -1102,6 +1169,7 @@ module Aws::AppSync
1102
1169
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1103
1170
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1104
1171
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1172
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1105
1173
  end)
1106
1174
 
1107
1175
  api.add_operation(:delete_type, Seahorse::Model::Operation.new.tap do |o|
@@ -1130,6 +1198,17 @@ module Aws::AppSync
1130
1198
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1131
1199
  end)
1132
1200
 
1201
+ api.add_operation(:evaluate_code, Seahorse::Model::Operation.new.tap do |o|
1202
+ o.name = "EvaluateCode"
1203
+ o.http_method = "POST"
1204
+ o.http_request_uri = "/v1/dataplane-evaluatecode"
1205
+ o.input = Shapes::ShapeRef.new(shape: EvaluateCodeRequest)
1206
+ o.output = Shapes::ShapeRef.new(shape: EvaluateCodeResponse)
1207
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1208
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1209
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1210
+ end)
1211
+
1133
1212
  api.add_operation(:evaluate_mapping_template, Seahorse::Model::Operation.new.tap do |o|
1134
1213
  o.name = "EvaluateMappingTemplate"
1135
1214
  o.http_method = "POST"
@@ -1515,6 +1594,7 @@ module Aws::AppSync
1515
1594
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1516
1595
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1517
1596
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1597
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1518
1598
  end)
1519
1599
 
1520
1600
  api.add_operation(:update_type, Seahorse::Model::Operation.new.tap do |o|