aws-sdk-appsync 1.71.0 → 1.73.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-appsync/client.rb +242 -1
- data/lib/aws-sdk-appsync/client_api.rb +77 -0
- data/lib/aws-sdk-appsync/endpoints.rb +28 -0
- data/lib/aws-sdk-appsync/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-appsync/types.rb +374 -12
- data/lib/aws-sdk-appsync.rb +1 -1
- data/sig/client.rbs +45 -8
- data/sig/types.rbs +40 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f8b5688c41b634120795f68330f945b6fcec5b81689323419147c799e6e9a13
|
4
|
+
data.tar.gz: 4f1809de0cc414dc3891c53f1e1b533817e6656bbde5cb31a65a89e5c7782e47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cbe199c82ec407aaa706906f50b2aab431d960bcf4f70f2453380b32882b92cf4fcbc2e1846cfd6a982d668bcd96f17e99d1b12289dc3dfc530054affbd7096
|
7
|
+
data.tar.gz: 54ddb1aba3c705227b30d48b996ebbf0f87853ca0aa3840854f07636ff583fd2301b92a9690a1ef7919484c054d14c57fc2e8e7c57edeea193009c1fdc057892
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.73.0 (2024-02-12)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Adds support for new options on GraphqlAPIs, Resolvers and Data Sources for emitting Amazon CloudWatch metrics for enhanced monitoring of AppSync APIs.
|
8
|
+
|
9
|
+
1.72.0 (2024-02-06)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Support for environment variables in AppSync GraphQL APIs
|
13
|
+
|
4
14
|
1.71.0 (2024-01-26)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.73.0
|
@@ -611,6 +611,19 @@ module Aws::AppSync
|
|
611
611
|
#
|
612
612
|
# * **R4\_8XLARGE**: A r4.8xlarge instance type.
|
613
613
|
#
|
614
|
+
# @option params [String] :health_metrics_config
|
615
|
+
# Controls how cache health metrics will be emitted to CloudWatch. Cache
|
616
|
+
# health metrics include:
|
617
|
+
#
|
618
|
+
# * NetworkBandwidthOutAllowanceExceeded: The number of times a
|
619
|
+
# specified GraphQL operation was called.
|
620
|
+
#
|
621
|
+
# * EngineCPUUtilization: The number of GraphQL errors that occurred
|
622
|
+
# during a specified GraphQL operation.
|
623
|
+
#
|
624
|
+
# Metrics will be recorded by API ID. You can set the value to `ENABLED`
|
625
|
+
# or `DISABLED`.
|
626
|
+
#
|
614
627
|
# @return [Types::CreateApiCacheResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
615
628
|
#
|
616
629
|
# * {Types::CreateApiCacheResponse#api_cache #api_cache} => Types::ApiCache
|
@@ -624,6 +637,7 @@ module Aws::AppSync
|
|
624
637
|
# at_rest_encryption_enabled: false,
|
625
638
|
# api_caching_behavior: "FULL_REQUEST_CACHING", # required, accepts FULL_REQUEST_CACHING, PER_RESOLVER_CACHING
|
626
639
|
# type: "T2_SMALL", # required, accepts T2_SMALL, T2_MEDIUM, R4_LARGE, R4_XLARGE, R4_2XLARGE, R4_4XLARGE, R4_8XLARGE, SMALL, MEDIUM, LARGE, XLARGE, LARGE_2X, LARGE_4X, LARGE_8X, LARGE_12X
|
640
|
+
# health_metrics_config: "ENABLED", # accepts ENABLED, DISABLED
|
627
641
|
# })
|
628
642
|
#
|
629
643
|
# @example Response structure
|
@@ -634,6 +648,7 @@ module Aws::AppSync
|
|
634
648
|
# resp.api_cache.at_rest_encryption_enabled #=> Boolean
|
635
649
|
# resp.api_cache.type #=> String, one of "T2_SMALL", "T2_MEDIUM", "R4_LARGE", "R4_XLARGE", "R4_2XLARGE", "R4_4XLARGE", "R4_8XLARGE", "SMALL", "MEDIUM", "LARGE", "XLARGE", "LARGE_2X", "LARGE_4X", "LARGE_8X", "LARGE_12X"
|
636
650
|
# resp.api_cache.status #=> String, one of "AVAILABLE", "CREATING", "DELETING", "MODIFYING", "FAILED"
|
651
|
+
# resp.api_cache.health_metrics_config #=> String, one of "ENABLED", "DISABLED"
|
637
652
|
#
|
638
653
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache AWS API Documentation
|
639
654
|
#
|
@@ -732,6 +747,16 @@ module Aws::AppSync
|
|
732
747
|
# @option params [Types::EventBridgeDataSourceConfig] :event_bridge_config
|
733
748
|
# Amazon EventBridge settings.
|
734
749
|
#
|
750
|
+
# @option params [String] :metrics_config
|
751
|
+
# Enables or disables enhanced data source metrics for specified data
|
752
|
+
# sources. Note that `metricsConfig` won't be used unless the
|
753
|
+
# `dataSourceLevelMetricsBehavior` value is set to
|
754
|
+
# `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior` is
|
755
|
+
# set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead, `metricsConfig`
|
756
|
+
# will be ignored. However, you can still set its value.
|
757
|
+
#
|
758
|
+
# `metricsConfig` can be `ENABLED` or `DISABLED`.
|
759
|
+
#
|
735
760
|
# @return [Types::CreateDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
736
761
|
#
|
737
762
|
# * {Types::CreateDataSourceResponse#data_source #data_source} => Types::DataSource
|
@@ -789,6 +814,7 @@ module Aws::AppSync
|
|
789
814
|
# event_bridge_config: {
|
790
815
|
# event_bus_arn: "String", # required
|
791
816
|
# },
|
817
|
+
# metrics_config: "ENABLED", # accepts ENABLED, DISABLED
|
792
818
|
# })
|
793
819
|
#
|
794
820
|
# @example Response structure
|
@@ -821,6 +847,7 @@ module Aws::AppSync
|
|
821
847
|
# resp.data_source.relational_database_config.rds_http_endpoint_config.schema #=> String
|
822
848
|
# resp.data_source.relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
|
823
849
|
# resp.data_source.event_bridge_config.event_bus_arn #=> String
|
850
|
+
# resp.data_source.metrics_config #=> String, one of "ENABLED", "DISABLED"
|
824
851
|
#
|
825
852
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource AWS API Documentation
|
826
853
|
#
|
@@ -1065,6 +1092,9 @@ module Aws::AppSync
|
|
1065
1092
|
# and `10000`. This field will produce a limit error if the operation
|
1066
1093
|
# falls out of bounds.
|
1067
1094
|
#
|
1095
|
+
# @option params [Types::EnhancedMetricsConfig] :enhanced_metrics_config
|
1096
|
+
# The `enhancedMetricsConfig` object.
|
1097
|
+
#
|
1068
1098
|
# @return [Types::CreateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1069
1099
|
#
|
1070
1100
|
# * {Types::CreateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
|
@@ -1128,6 +1158,11 @@ module Aws::AppSync
|
|
1128
1158
|
# introspection_config: "ENABLED", # accepts ENABLED, DISABLED
|
1129
1159
|
# query_depth_limit: 1,
|
1130
1160
|
# resolver_count_limit: 1,
|
1161
|
+
# enhanced_metrics_config: {
|
1162
|
+
# resolver_level_metrics_behavior: "FULL_REQUEST_RESOLVER_METRICS", # required, accepts FULL_REQUEST_RESOLVER_METRICS, PER_RESOLVER_METRICS
|
1163
|
+
# data_source_level_metrics_behavior: "FULL_REQUEST_DATA_SOURCE_METRICS", # required, accepts FULL_REQUEST_DATA_SOURCE_METRICS, PER_DATA_SOURCE_METRICS
|
1164
|
+
# operation_level_metrics_config: "ENABLED", # required, accepts ENABLED, DISABLED
|
1165
|
+
# },
|
1131
1166
|
# })
|
1132
1167
|
#
|
1133
1168
|
# @example Response structure
|
@@ -1178,6 +1213,9 @@ module Aws::AppSync
|
|
1178
1213
|
# resp.graphql_api.introspection_config #=> String, one of "ENABLED", "DISABLED"
|
1179
1214
|
# resp.graphql_api.query_depth_limit #=> Integer
|
1180
1215
|
# resp.graphql_api.resolver_count_limit #=> Integer
|
1216
|
+
# resp.graphql_api.enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
|
1217
|
+
# resp.graphql_api.enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
|
1218
|
+
# resp.graphql_api.enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
|
1181
1219
|
#
|
1182
1220
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi AWS API Documentation
|
1183
1221
|
#
|
@@ -1255,6 +1293,16 @@ module Aws::AppSync
|
|
1255
1293
|
# When code is used, the `runtime` is required. The `runtime` value must
|
1256
1294
|
# be `APPSYNC_JS`.
|
1257
1295
|
#
|
1296
|
+
# @option params [String] :metrics_config
|
1297
|
+
# Enables or disables enhanced resolver metrics for specified resolvers.
|
1298
|
+
# Note that `metricsConfig` won't be used unless the
|
1299
|
+
# `resolverLevelMetricsBehavior` value is set to `PER_RESOLVER_METRICS`.
|
1300
|
+
# If the `resolverLevelMetricsBehavior` is set to
|
1301
|
+
# `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
|
1302
|
+
# ignored. However, you can still set its value.
|
1303
|
+
#
|
1304
|
+
# `metricsConfig` can be `ENABLED` or `DISABLED`.
|
1305
|
+
#
|
1258
1306
|
# @return [Types::CreateResolverResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1259
1307
|
#
|
1260
1308
|
# * {Types::CreateResolverResponse#resolver #resolver} => Types::Resolver
|
@@ -1289,6 +1337,7 @@ module Aws::AppSync
|
|
1289
1337
|
# runtime_version: "String", # required
|
1290
1338
|
# },
|
1291
1339
|
# code: "Code",
|
1340
|
+
# metrics_config: "ENABLED", # accepts ENABLED, DISABLED
|
1292
1341
|
# })
|
1293
1342
|
#
|
1294
1343
|
# @example Response structure
|
@@ -1312,6 +1361,7 @@ module Aws::AppSync
|
|
1312
1361
|
# resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
|
1313
1362
|
# resp.resolver.runtime.runtime_version #=> String
|
1314
1363
|
# resp.resolver.code #=> String
|
1364
|
+
# resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
|
1315
1365
|
#
|
1316
1366
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver AWS API Documentation
|
1317
1367
|
#
|
@@ -1857,6 +1907,7 @@ module Aws::AppSync
|
|
1857
1907
|
# resp.api_cache.at_rest_encryption_enabled #=> Boolean
|
1858
1908
|
# resp.api_cache.type #=> String, one of "T2_SMALL", "T2_MEDIUM", "R4_LARGE", "R4_XLARGE", "R4_2XLARGE", "R4_4XLARGE", "R4_8XLARGE", "SMALL", "MEDIUM", "LARGE", "XLARGE", "LARGE_2X", "LARGE_4X", "LARGE_8X", "LARGE_12X"
|
1859
1909
|
# resp.api_cache.status #=> String, one of "AVAILABLE", "CREATING", "DELETING", "MODIFYING", "FAILED"
|
1910
|
+
# resp.api_cache.health_metrics_config #=> String, one of "ENABLED", "DISABLED"
|
1860
1911
|
#
|
1861
1912
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache AWS API Documentation
|
1862
1913
|
#
|
@@ -1916,6 +1967,7 @@ module Aws::AppSync
|
|
1916
1967
|
# resp.data_source.relational_database_config.rds_http_endpoint_config.schema #=> String
|
1917
1968
|
# resp.data_source.relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
|
1918
1969
|
# resp.data_source.event_bridge_config.event_bus_arn #=> String
|
1970
|
+
# resp.data_source.metrics_config #=> String, one of "ENABLED", "DISABLED"
|
1919
1971
|
#
|
1920
1972
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource AWS API Documentation
|
1921
1973
|
#
|
@@ -2141,6 +2193,9 @@ module Aws::AppSync
|
|
2141
2193
|
# resp.graphql_api.introspection_config #=> String, one of "ENABLED", "DISABLED"
|
2142
2194
|
# resp.graphql_api.query_depth_limit #=> Integer
|
2143
2195
|
# resp.graphql_api.resolver_count_limit #=> Integer
|
2196
|
+
# resp.graphql_api.enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
|
2197
|
+
# resp.graphql_api.enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
|
2198
|
+
# resp.graphql_api.enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
|
2144
2199
|
#
|
2145
2200
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi AWS API Documentation
|
2146
2201
|
#
|
@@ -2151,6 +2206,37 @@ module Aws::AppSync
|
|
2151
2206
|
req.send_request(options)
|
2152
2207
|
end
|
2153
2208
|
|
2209
|
+
# Retrieves the list of environmental variable key-value pairs
|
2210
|
+
# associated with an API by its ID value.
|
2211
|
+
#
|
2212
|
+
# @option params [required, String] :api_id
|
2213
|
+
# The ID of the API from which the environmental variable list will be
|
2214
|
+
# retrieved.
|
2215
|
+
#
|
2216
|
+
# @return [Types::GetGraphqlApiEnvironmentVariablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2217
|
+
#
|
2218
|
+
# * {Types::GetGraphqlApiEnvironmentVariablesResponse#environment_variables #environment_variables} => Hash<String,String>
|
2219
|
+
#
|
2220
|
+
# @example Request syntax with placeholder values
|
2221
|
+
#
|
2222
|
+
# resp = client.get_graphql_api_environment_variables({
|
2223
|
+
# api_id: "String", # required
|
2224
|
+
# })
|
2225
|
+
#
|
2226
|
+
# @example Response structure
|
2227
|
+
#
|
2228
|
+
# resp.environment_variables #=> Hash
|
2229
|
+
# resp.environment_variables["EnvironmentVariableKey"] #=> String
|
2230
|
+
#
|
2231
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApiEnvironmentVariables AWS API Documentation
|
2232
|
+
#
|
2233
|
+
# @overload get_graphql_api_environment_variables(params = {})
|
2234
|
+
# @param [Hash] params ({})
|
2235
|
+
def get_graphql_api_environment_variables(params = {}, options = {})
|
2236
|
+
req = build_request(:get_graphql_api_environment_variables, params)
|
2237
|
+
req.send_request(options)
|
2238
|
+
end
|
2239
|
+
|
2154
2240
|
# Retrieves the introspection schema for a GraphQL API.
|
2155
2241
|
#
|
2156
2242
|
# @option params [required, String] :api_id
|
@@ -2232,6 +2318,7 @@ module Aws::AppSync
|
|
2232
2318
|
# resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
|
2233
2319
|
# resp.resolver.runtime.runtime_version #=> String
|
2234
2320
|
# resp.resolver.code #=> String
|
2321
|
+
# resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
|
2235
2322
|
#
|
2236
2323
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver AWS API Documentation
|
2237
2324
|
#
|
@@ -2467,6 +2554,7 @@ module Aws::AppSync
|
|
2467
2554
|
# resp.data_sources[0].relational_database_config.rds_http_endpoint_config.schema #=> String
|
2468
2555
|
# resp.data_sources[0].relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
|
2469
2556
|
# resp.data_sources[0].event_bridge_config.event_bus_arn #=> String
|
2557
|
+
# resp.data_sources[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
|
2470
2558
|
# resp.next_token #=> String
|
2471
2559
|
#
|
2472
2560
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources AWS API Documentation
|
@@ -2654,6 +2742,9 @@ module Aws::AppSync
|
|
2654
2742
|
# resp.graphql_apis[0].introspection_config #=> String, one of "ENABLED", "DISABLED"
|
2655
2743
|
# resp.graphql_apis[0].query_depth_limit #=> Integer
|
2656
2744
|
# resp.graphql_apis[0].resolver_count_limit #=> Integer
|
2745
|
+
# resp.graphql_apis[0].enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
|
2746
|
+
# resp.graphql_apis[0].enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
|
2747
|
+
# resp.graphql_apis[0].enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
|
2657
2748
|
# resp.next_token #=> String
|
2658
2749
|
#
|
2659
2750
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis AWS API Documentation
|
@@ -2717,6 +2808,7 @@ module Aws::AppSync
|
|
2717
2808
|
# resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
|
2718
2809
|
# resp.resolvers[0].runtime.runtime_version #=> String
|
2719
2810
|
# resp.resolvers[0].code #=> String
|
2811
|
+
# resp.resolvers[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
|
2720
2812
|
# resp.next_token #=> String
|
2721
2813
|
#
|
2722
2814
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers AWS API Documentation
|
@@ -2780,6 +2872,7 @@ module Aws::AppSync
|
|
2780
2872
|
# resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
|
2781
2873
|
# resp.resolvers[0].runtime.runtime_version #=> String
|
2782
2874
|
# resp.resolvers[0].code #=> String
|
2875
|
+
# resp.resolvers[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
|
2783
2876
|
# resp.next_token #=> String
|
2784
2877
|
#
|
2785
2878
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction AWS API Documentation
|
@@ -2974,6 +3067,104 @@ module Aws::AppSync
|
|
2974
3067
|
req.send_request(options)
|
2975
3068
|
end
|
2976
3069
|
|
3070
|
+
# Creates a list of environmental variables in an API by its ID value.
|
3071
|
+
#
|
3072
|
+
# When creating an environmental variable, it must follow the
|
3073
|
+
# constraints below:
|
3074
|
+
#
|
3075
|
+
# * Both JavaScript and VTL templates support environmental variables.
|
3076
|
+
#
|
3077
|
+
# * Environmental variables are not evaluated before function
|
3078
|
+
# invocation.
|
3079
|
+
#
|
3080
|
+
# * Environmental variables only support string values.
|
3081
|
+
#
|
3082
|
+
# * Any defined value in an environmental variable is considered a
|
3083
|
+
# string literal and not expanded.
|
3084
|
+
#
|
3085
|
+
# * Variable evaluations should ideally be performed in the function
|
3086
|
+
# code.
|
3087
|
+
#
|
3088
|
+
# When creating an environmental variable key-value pair, it must follow
|
3089
|
+
# the additional constraints below:
|
3090
|
+
#
|
3091
|
+
# * Keys must begin with a letter.
|
3092
|
+
#
|
3093
|
+
# * Keys must be at least two characters long.
|
3094
|
+
#
|
3095
|
+
# * Keys can only contain letters, numbers, and the underscore character
|
3096
|
+
# (\_).
|
3097
|
+
#
|
3098
|
+
# * Values can be up to 512 characters long.
|
3099
|
+
#
|
3100
|
+
# * You can configure up to 50 key-value pairs in a GraphQL API.
|
3101
|
+
#
|
3102
|
+
# You can create a list of environmental variables by adding it to the
|
3103
|
+
# `environmentVariables` payload as a list in the format
|
3104
|
+
# `\{"key1":"value1","key2":"value2", …\}`. Note that each call of the
|
3105
|
+
# `PutGraphqlApiEnvironmentVariables` action will result in the
|
3106
|
+
# overwriting of the existing environmental variable list of that API.
|
3107
|
+
# This means the existing environmental variables will be lost. To avoid
|
3108
|
+
# this, you must include all existing and new environmental variables in
|
3109
|
+
# the list each time you call this action.
|
3110
|
+
#
|
3111
|
+
# @option params [required, String] :api_id
|
3112
|
+
# The ID of the API to which the environmental variable list will be
|
3113
|
+
# written.
|
3114
|
+
#
|
3115
|
+
# @option params [required, Hash<String,String>] :environment_variables
|
3116
|
+
# The list of environmental variables to add to the API.
|
3117
|
+
#
|
3118
|
+
# When creating an environmental variable key-value pair, it must follow
|
3119
|
+
# the additional constraints below:
|
3120
|
+
#
|
3121
|
+
# * Keys must begin with a letter.
|
3122
|
+
#
|
3123
|
+
# * Keys must be at least two characters long.
|
3124
|
+
#
|
3125
|
+
# * Keys can only contain letters, numbers, and the underscore character
|
3126
|
+
# (\_).
|
3127
|
+
#
|
3128
|
+
# * Values can be up to 512 characters long.
|
3129
|
+
#
|
3130
|
+
# * You can configure up to 50 key-value pairs in a GraphQL API.
|
3131
|
+
#
|
3132
|
+
# You can create a list of environmental variables by adding it to the
|
3133
|
+
# `environmentVariables` payload as a list in the format
|
3134
|
+
# `\{"key1":"value1","key2":"value2", …\}`. Note that each call of the
|
3135
|
+
# `PutGraphqlApiEnvironmentVariables` action will result in the
|
3136
|
+
# overwriting of the existing environmental variable list of that API.
|
3137
|
+
# This means the existing environmental variables will be lost. To avoid
|
3138
|
+
# this, you must include all existing and new environmental variables in
|
3139
|
+
# the list each time you call this action.
|
3140
|
+
#
|
3141
|
+
# @return [Types::PutGraphqlApiEnvironmentVariablesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3142
|
+
#
|
3143
|
+
# * {Types::PutGraphqlApiEnvironmentVariablesResponse#environment_variables #environment_variables} => Hash<String,String>
|
3144
|
+
#
|
3145
|
+
# @example Request syntax with placeholder values
|
3146
|
+
#
|
3147
|
+
# resp = client.put_graphql_api_environment_variables({
|
3148
|
+
# api_id: "String", # required
|
3149
|
+
# environment_variables: { # required
|
3150
|
+
# "EnvironmentVariableKey" => "EnvironmentVariableValue",
|
3151
|
+
# },
|
3152
|
+
# })
|
3153
|
+
#
|
3154
|
+
# @example Response structure
|
3155
|
+
#
|
3156
|
+
# resp.environment_variables #=> Hash
|
3157
|
+
# resp.environment_variables["EnvironmentVariableKey"] #=> String
|
3158
|
+
#
|
3159
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/PutGraphqlApiEnvironmentVariables AWS API Documentation
|
3160
|
+
#
|
3161
|
+
# @overload put_graphql_api_environment_variables(params = {})
|
3162
|
+
# @param [Hash] params ({})
|
3163
|
+
def put_graphql_api_environment_variables(params = {}, options = {})
|
3164
|
+
req = build_request(:put_graphql_api_environment_variables, params)
|
3165
|
+
req.send_request(options)
|
3166
|
+
end
|
3167
|
+
|
2977
3168
|
# Creates a new introspection. Returns the `introspectionId` of the new
|
2978
3169
|
# introspection after its creation.
|
2979
3170
|
#
|
@@ -3196,6 +3387,19 @@ module Aws::AppSync
|
|
3196
3387
|
#
|
3197
3388
|
# * **R4\_8XLARGE**: A r4.8xlarge instance type.
|
3198
3389
|
#
|
3390
|
+
# @option params [String] :health_metrics_config
|
3391
|
+
# Controls how cache health metrics will be emitted to CloudWatch. Cache
|
3392
|
+
# health metrics include:
|
3393
|
+
#
|
3394
|
+
# * NetworkBandwidthOutAllowanceExceeded: The number of times a
|
3395
|
+
# specified GraphQL operation was called.
|
3396
|
+
#
|
3397
|
+
# * EngineCPUUtilization: The number of GraphQL errors that occurred
|
3398
|
+
# during a specified GraphQL operation.
|
3399
|
+
#
|
3400
|
+
# Metrics will be recorded by API ID. You can set the value to `ENABLED`
|
3401
|
+
# or `DISABLED`.
|
3402
|
+
#
|
3199
3403
|
# @return [Types::UpdateApiCacheResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3200
3404
|
#
|
3201
3405
|
# * {Types::UpdateApiCacheResponse#api_cache #api_cache} => Types::ApiCache
|
@@ -3207,6 +3411,7 @@ module Aws::AppSync
|
|
3207
3411
|
# ttl: 1, # required
|
3208
3412
|
# api_caching_behavior: "FULL_REQUEST_CACHING", # required, accepts FULL_REQUEST_CACHING, PER_RESOLVER_CACHING
|
3209
3413
|
# type: "T2_SMALL", # required, accepts T2_SMALL, T2_MEDIUM, R4_LARGE, R4_XLARGE, R4_2XLARGE, R4_4XLARGE, R4_8XLARGE, SMALL, MEDIUM, LARGE, XLARGE, LARGE_2X, LARGE_4X, LARGE_8X, LARGE_12X
|
3414
|
+
# health_metrics_config: "ENABLED", # accepts ENABLED, DISABLED
|
3210
3415
|
# })
|
3211
3416
|
#
|
3212
3417
|
# @example Response structure
|
@@ -3217,6 +3422,7 @@ module Aws::AppSync
|
|
3217
3422
|
# resp.api_cache.at_rest_encryption_enabled #=> Boolean
|
3218
3423
|
# resp.api_cache.type #=> String, one of "T2_SMALL", "T2_MEDIUM", "R4_LARGE", "R4_XLARGE", "R4_2XLARGE", "R4_4XLARGE", "R4_8XLARGE", "SMALL", "MEDIUM", "LARGE", "XLARGE", "LARGE_2X", "LARGE_4X", "LARGE_8X", "LARGE_12X"
|
3219
3424
|
# resp.api_cache.status #=> String, one of "AVAILABLE", "CREATING", "DELETING", "MODIFYING", "FAILED"
|
3425
|
+
# resp.api_cache.health_metrics_config #=> String, one of "ENABLED", "DISABLED"
|
3220
3426
|
#
|
3221
3427
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache AWS API Documentation
|
3222
3428
|
#
|
@@ -3316,6 +3522,16 @@ module Aws::AppSync
|
|
3316
3522
|
# @option params [Types::EventBridgeDataSourceConfig] :event_bridge_config
|
3317
3523
|
# The new Amazon EventBridge settings.
|
3318
3524
|
#
|
3525
|
+
# @option params [String] :metrics_config
|
3526
|
+
# Enables or disables enhanced data source metrics for specified data
|
3527
|
+
# sources. Note that `metricsConfig` won't be used unless the
|
3528
|
+
# `dataSourceLevelMetricsBehavior` value is set to
|
3529
|
+
# `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior` is
|
3530
|
+
# set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead, `metricsConfig`
|
3531
|
+
# will be ignored. However, you can still set its value.
|
3532
|
+
#
|
3533
|
+
# `metricsConfig` can be `ENABLED` or `DISABLED`.
|
3534
|
+
#
|
3319
3535
|
# @return [Types::UpdateDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3320
3536
|
#
|
3321
3537
|
# * {Types::UpdateDataSourceResponse#data_source #data_source} => Types::DataSource
|
@@ -3373,6 +3589,7 @@ module Aws::AppSync
|
|
3373
3589
|
# event_bridge_config: {
|
3374
3590
|
# event_bus_arn: "String", # required
|
3375
3591
|
# },
|
3592
|
+
# metrics_config: "ENABLED", # accepts ENABLED, DISABLED
|
3376
3593
|
# })
|
3377
3594
|
#
|
3378
3595
|
# @example Response structure
|
@@ -3405,6 +3622,7 @@ module Aws::AppSync
|
|
3405
3622
|
# resp.data_source.relational_database_config.rds_http_endpoint_config.schema #=> String
|
3406
3623
|
# resp.data_source.relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
|
3407
3624
|
# resp.data_source.event_bridge_config.event_bus_arn #=> String
|
3625
|
+
# resp.data_source.metrics_config #=> String, one of "ENABLED", "DISABLED"
|
3408
3626
|
#
|
3409
3627
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource AWS API Documentation
|
3410
3628
|
#
|
@@ -3634,6 +3852,9 @@ module Aws::AppSync
|
|
3634
3852
|
# and `10000`. This field will produce a limit error if the operation
|
3635
3853
|
# falls out of bounds.
|
3636
3854
|
#
|
3855
|
+
# @option params [Types::EnhancedMetricsConfig] :enhanced_metrics_config
|
3856
|
+
# The `enhancedMetricsConfig` object.
|
3857
|
+
#
|
3637
3858
|
# @return [Types::UpdateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3638
3859
|
#
|
3639
3860
|
# * {Types::UpdateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
|
@@ -3693,6 +3914,11 @@ module Aws::AppSync
|
|
3693
3914
|
# introspection_config: "ENABLED", # accepts ENABLED, DISABLED
|
3694
3915
|
# query_depth_limit: 1,
|
3695
3916
|
# resolver_count_limit: 1,
|
3917
|
+
# enhanced_metrics_config: {
|
3918
|
+
# resolver_level_metrics_behavior: "FULL_REQUEST_RESOLVER_METRICS", # required, accepts FULL_REQUEST_RESOLVER_METRICS, PER_RESOLVER_METRICS
|
3919
|
+
# data_source_level_metrics_behavior: "FULL_REQUEST_DATA_SOURCE_METRICS", # required, accepts FULL_REQUEST_DATA_SOURCE_METRICS, PER_DATA_SOURCE_METRICS
|
3920
|
+
# operation_level_metrics_config: "ENABLED", # required, accepts ENABLED, DISABLED
|
3921
|
+
# },
|
3696
3922
|
# })
|
3697
3923
|
#
|
3698
3924
|
# @example Response structure
|
@@ -3743,6 +3969,9 @@ module Aws::AppSync
|
|
3743
3969
|
# resp.graphql_api.introspection_config #=> String, one of "ENABLED", "DISABLED"
|
3744
3970
|
# resp.graphql_api.query_depth_limit #=> Integer
|
3745
3971
|
# resp.graphql_api.resolver_count_limit #=> Integer
|
3972
|
+
# resp.graphql_api.enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
|
3973
|
+
# resp.graphql_api.enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
|
3974
|
+
# resp.graphql_api.enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
|
3746
3975
|
#
|
3747
3976
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi AWS API Documentation
|
3748
3977
|
#
|
@@ -3816,6 +4045,16 @@ module Aws::AppSync
|
|
3816
4045
|
# When code is used, the `runtime` is required. The `runtime` value must
|
3817
4046
|
# be `APPSYNC_JS`.
|
3818
4047
|
#
|
4048
|
+
# @option params [String] :metrics_config
|
4049
|
+
# Enables or disables enhanced resolver metrics for specified resolvers.
|
4050
|
+
# Note that `metricsConfig` won't be used unless the
|
4051
|
+
# `resolverLevelMetricsBehavior` value is set to `PER_RESOLVER_METRICS`.
|
4052
|
+
# If the `resolverLevelMetricsBehavior` is set to
|
4053
|
+
# `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
|
4054
|
+
# ignored. However, you can still set its value.
|
4055
|
+
#
|
4056
|
+
# `metricsConfig` can be `ENABLED` or `DISABLED`.
|
4057
|
+
#
|
3819
4058
|
# @return [Types::UpdateResolverResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3820
4059
|
#
|
3821
4060
|
# * {Types::UpdateResolverResponse#resolver #resolver} => Types::Resolver
|
@@ -3850,6 +4089,7 @@ module Aws::AppSync
|
|
3850
4089
|
# runtime_version: "String", # required
|
3851
4090
|
# },
|
3852
4091
|
# code: "Code",
|
4092
|
+
# metrics_config: "ENABLED", # accepts ENABLED, DISABLED
|
3853
4093
|
# })
|
3854
4094
|
#
|
3855
4095
|
# @example Response structure
|
@@ -3873,6 +4113,7 @@ module Aws::AppSync
|
|
3873
4113
|
# resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
|
3874
4114
|
# resp.resolver.runtime.runtime_version #=> String
|
3875
4115
|
# resp.resolver.code #=> String
|
4116
|
+
# resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
|
3876
4117
|
#
|
3877
4118
|
# @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver AWS API Documentation
|
3878
4119
|
#
|
@@ -3998,7 +4239,7 @@ module Aws::AppSync
|
|
3998
4239
|
params: params,
|
3999
4240
|
config: config)
|
4000
4241
|
context[:gem_name] = 'aws-sdk-appsync'
|
4001
|
-
context[:gem_version] = '1.
|
4242
|
+
context[:gem_version] = '1.73.0'
|
4002
4243
|
Seahorse::Client::Request.new(handlers, context)
|
4003
4244
|
end
|
4004
4245
|
|