aws-sdk-appsync 1.72.0 → 1.74.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b20be619f0a3cd655e0110ebb06c720a42eed94364ab9f9603ff1e2c99f7cbcf
4
- data.tar.gz: 7f2f342dc0d0e3cb50e588571546c10d2680b23ddab2d2a166b94c8c8bf2cda5
3
+ metadata.gz: 17478279d7c0cb170e6fad4d58408712ba849bc6e1b7145b7e78574acbe5c904
4
+ data.tar.gz: b4fd3cd8b6e01fedfe590b14a6d14b6c3bb9d6c40d610f62ae301891828915f2
5
5
  SHA512:
6
- metadata.gz: e5098d28d8fb00135f14769c58119e51a661266c2038444301ab042fff8a91db364105928901ac484cb1fe303941d61d1dd0bdb90c9b2b2d3085bfe5bde77997
7
- data.tar.gz: e432b6dd4b507dba0eb1ebd9ad4318d64c9fb8140c3098cc0db0da11e1c062320535e7347f957a4bfda192e619cb733908d98356c6852ee8849dfc8b70a3d6a1
6
+ metadata.gz: 1d5159ddf44bc6fb43e30effb22ed22cf4c263e6f670190977071078b04543e82d35806d5894e7e57b3b02b7a98f8c6b777544f5a3c0d325c80b4fd7a9fac702
7
+ data.tar.gz: f0a9d9283c02004931afcafce60b366b16f8e5cb977935423853c649d8022115fe5afef66c65ca3bba1f3dd7576d29578aeba067b39910a7b568cfedfa19e84f
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.74.0 (2024-02-23)
5
+ ------------------
6
+
7
+ * Feature - Documentation only updates for AppSync
8
+
9
+ 1.73.0 (2024-02-12)
10
+ ------------------
11
+
12
+ * Feature - Adds support for new options on GraphqlAPIs, Resolvers and Data Sources for emitting Amazon CloudWatch metrics for enhanced monitoring of AppSync APIs.
13
+
4
14
  1.72.0 (2024-02-06)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.72.0
1
+ 1.74.0
@@ -611,6 +611,21 @@ 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 network packets dropped
619
+ # because the throughput exceeded the aggregated bandwidth limit. This
620
+ # is useful for diagnosing bottlenecks in a cache configuration.
621
+ #
622
+ # * EngineCPUUtilization: The CPU utilization (percentage) allocated to
623
+ # the Redis process. This is useful for diagnosing bottlenecks in a
624
+ # cache configuration.
625
+ #
626
+ # Metrics will be recorded by API ID. You can set the value to `ENABLED`
627
+ # or `DISABLED`.
628
+ #
614
629
  # @return [Types::CreateApiCacheResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
615
630
  #
616
631
  # * {Types::CreateApiCacheResponse#api_cache #api_cache} => Types::ApiCache
@@ -624,6 +639,7 @@ module Aws::AppSync
624
639
  # at_rest_encryption_enabled: false,
625
640
  # api_caching_behavior: "FULL_REQUEST_CACHING", # required, accepts FULL_REQUEST_CACHING, PER_RESOLVER_CACHING
626
641
  # 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
642
+ # health_metrics_config: "ENABLED", # accepts ENABLED, DISABLED
627
643
  # })
628
644
  #
629
645
  # @example Response structure
@@ -634,6 +650,7 @@ module Aws::AppSync
634
650
  # resp.api_cache.at_rest_encryption_enabled #=> Boolean
635
651
  # 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
652
  # resp.api_cache.status #=> String, one of "AVAILABLE", "CREATING", "DELETING", "MODIFYING", "FAILED"
653
+ # resp.api_cache.health_metrics_config #=> String, one of "ENABLED", "DISABLED"
637
654
  #
638
655
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCache AWS API Documentation
639
656
  #
@@ -732,6 +749,16 @@ module Aws::AppSync
732
749
  # @option params [Types::EventBridgeDataSourceConfig] :event_bridge_config
733
750
  # Amazon EventBridge settings.
734
751
  #
752
+ # @option params [String] :metrics_config
753
+ # Enables or disables enhanced data source metrics for specified data
754
+ # sources. Note that `metricsConfig` won't be used unless the
755
+ # `dataSourceLevelMetricsBehavior` value is set to
756
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior` is
757
+ # set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead, `metricsConfig`
758
+ # will be ignored. However, you can still set its value.
759
+ #
760
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
761
+ #
735
762
  # @return [Types::CreateDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
736
763
  #
737
764
  # * {Types::CreateDataSourceResponse#data_source #data_source} => Types::DataSource
@@ -789,6 +816,7 @@ module Aws::AppSync
789
816
  # event_bridge_config: {
790
817
  # event_bus_arn: "String", # required
791
818
  # },
819
+ # metrics_config: "ENABLED", # accepts ENABLED, DISABLED
792
820
  # })
793
821
  #
794
822
  # @example Response structure
@@ -821,6 +849,7 @@ module Aws::AppSync
821
849
  # resp.data_source.relational_database_config.rds_http_endpoint_config.schema #=> String
822
850
  # resp.data_source.relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
823
851
  # resp.data_source.event_bridge_config.event_bus_arn #=> String
852
+ # resp.data_source.metrics_config #=> String, one of "ENABLED", "DISABLED"
824
853
  #
825
854
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSource AWS API Documentation
826
855
  #
@@ -1065,6 +1094,9 @@ module Aws::AppSync
1065
1094
  # and `10000`. This field will produce a limit error if the operation
1066
1095
  # falls out of bounds.
1067
1096
  #
1097
+ # @option params [Types::EnhancedMetricsConfig] :enhanced_metrics_config
1098
+ # The `enhancedMetricsConfig` object.
1099
+ #
1068
1100
  # @return [Types::CreateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1069
1101
  #
1070
1102
  # * {Types::CreateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
@@ -1128,6 +1160,11 @@ module Aws::AppSync
1128
1160
  # introspection_config: "ENABLED", # accepts ENABLED, DISABLED
1129
1161
  # query_depth_limit: 1,
1130
1162
  # resolver_count_limit: 1,
1163
+ # enhanced_metrics_config: {
1164
+ # resolver_level_metrics_behavior: "FULL_REQUEST_RESOLVER_METRICS", # required, accepts FULL_REQUEST_RESOLVER_METRICS, PER_RESOLVER_METRICS
1165
+ # data_source_level_metrics_behavior: "FULL_REQUEST_DATA_SOURCE_METRICS", # required, accepts FULL_REQUEST_DATA_SOURCE_METRICS, PER_DATA_SOURCE_METRICS
1166
+ # operation_level_metrics_config: "ENABLED", # required, accepts ENABLED, DISABLED
1167
+ # },
1131
1168
  # })
1132
1169
  #
1133
1170
  # @example Response structure
@@ -1178,6 +1215,9 @@ module Aws::AppSync
1178
1215
  # resp.graphql_api.introspection_config #=> String, one of "ENABLED", "DISABLED"
1179
1216
  # resp.graphql_api.query_depth_limit #=> Integer
1180
1217
  # resp.graphql_api.resolver_count_limit #=> Integer
1218
+ # resp.graphql_api.enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
1219
+ # resp.graphql_api.enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
1220
+ # resp.graphql_api.enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
1181
1221
  #
1182
1222
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApi AWS API Documentation
1183
1223
  #
@@ -1255,6 +1295,16 @@ module Aws::AppSync
1255
1295
  # When code is used, the `runtime` is required. The `runtime` value must
1256
1296
  # be `APPSYNC_JS`.
1257
1297
  #
1298
+ # @option params [String] :metrics_config
1299
+ # Enables or disables enhanced resolver metrics for specified resolvers.
1300
+ # Note that `metricsConfig` won't be used unless the
1301
+ # `resolverLevelMetricsBehavior` value is set to `PER_RESOLVER_METRICS`.
1302
+ # If the `resolverLevelMetricsBehavior` is set to
1303
+ # `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
1304
+ # ignored. However, you can still set its value.
1305
+ #
1306
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
1307
+ #
1258
1308
  # @return [Types::CreateResolverResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1259
1309
  #
1260
1310
  # * {Types::CreateResolverResponse#resolver #resolver} => Types::Resolver
@@ -1289,6 +1339,7 @@ module Aws::AppSync
1289
1339
  # runtime_version: "String", # required
1290
1340
  # },
1291
1341
  # code: "Code",
1342
+ # metrics_config: "ENABLED", # accepts ENABLED, DISABLED
1292
1343
  # })
1293
1344
  #
1294
1345
  # @example Response structure
@@ -1312,6 +1363,7 @@ module Aws::AppSync
1312
1363
  # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
1313
1364
  # resp.resolver.runtime.runtime_version #=> String
1314
1365
  # resp.resolver.code #=> String
1366
+ # resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
1315
1367
  #
1316
1368
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolver AWS API Documentation
1317
1369
  #
@@ -1857,6 +1909,7 @@ module Aws::AppSync
1857
1909
  # resp.api_cache.at_rest_encryption_enabled #=> Boolean
1858
1910
  # 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
1911
  # resp.api_cache.status #=> String, one of "AVAILABLE", "CREATING", "DELETING", "MODIFYING", "FAILED"
1912
+ # resp.api_cache.health_metrics_config #=> String, one of "ENABLED", "DISABLED"
1860
1913
  #
1861
1914
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetApiCache AWS API Documentation
1862
1915
  #
@@ -1916,6 +1969,7 @@ module Aws::AppSync
1916
1969
  # resp.data_source.relational_database_config.rds_http_endpoint_config.schema #=> String
1917
1970
  # resp.data_source.relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
1918
1971
  # resp.data_source.event_bridge_config.event_bus_arn #=> String
1972
+ # resp.data_source.metrics_config #=> String, one of "ENABLED", "DISABLED"
1919
1973
  #
1920
1974
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetDataSource AWS API Documentation
1921
1975
  #
@@ -2141,6 +2195,9 @@ module Aws::AppSync
2141
2195
  # resp.graphql_api.introspection_config #=> String, one of "ENABLED", "DISABLED"
2142
2196
  # resp.graphql_api.query_depth_limit #=> Integer
2143
2197
  # resp.graphql_api.resolver_count_limit #=> Integer
2198
+ # resp.graphql_api.enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
2199
+ # resp.graphql_api.enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
2200
+ # resp.graphql_api.enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
2144
2201
  #
2145
2202
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetGraphqlApi AWS API Documentation
2146
2203
  #
@@ -2263,6 +2320,7 @@ module Aws::AppSync
2263
2320
  # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
2264
2321
  # resp.resolver.runtime.runtime_version #=> String
2265
2322
  # resp.resolver.code #=> String
2323
+ # resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
2266
2324
  #
2267
2325
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver AWS API Documentation
2268
2326
  #
@@ -2498,6 +2556,7 @@ module Aws::AppSync
2498
2556
  # resp.data_sources[0].relational_database_config.rds_http_endpoint_config.schema #=> String
2499
2557
  # resp.data_sources[0].relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
2500
2558
  # resp.data_sources[0].event_bridge_config.event_bus_arn #=> String
2559
+ # resp.data_sources[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
2501
2560
  # resp.next_token #=> String
2502
2561
  #
2503
2562
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources AWS API Documentation
@@ -2685,6 +2744,9 @@ module Aws::AppSync
2685
2744
  # resp.graphql_apis[0].introspection_config #=> String, one of "ENABLED", "DISABLED"
2686
2745
  # resp.graphql_apis[0].query_depth_limit #=> Integer
2687
2746
  # resp.graphql_apis[0].resolver_count_limit #=> Integer
2747
+ # resp.graphql_apis[0].enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
2748
+ # resp.graphql_apis[0].enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
2749
+ # resp.graphql_apis[0].enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
2688
2750
  # resp.next_token #=> String
2689
2751
  #
2690
2752
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis AWS API Documentation
@@ -2748,6 +2810,7 @@ module Aws::AppSync
2748
2810
  # resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
2749
2811
  # resp.resolvers[0].runtime.runtime_version #=> String
2750
2812
  # resp.resolvers[0].code #=> String
2813
+ # resp.resolvers[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
2751
2814
  # resp.next_token #=> String
2752
2815
  #
2753
2816
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers AWS API Documentation
@@ -2811,6 +2874,7 @@ module Aws::AppSync
2811
2874
  # resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
2812
2875
  # resp.resolvers[0].runtime.runtime_version #=> String
2813
2876
  # resp.resolvers[0].code #=> String
2877
+ # resp.resolvers[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
2814
2878
  # resp.next_token #=> String
2815
2879
  #
2816
2880
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction AWS API Documentation
@@ -3325,6 +3389,21 @@ module Aws::AppSync
3325
3389
  #
3326
3390
  # * **R4\_8XLARGE**: A r4.8xlarge instance type.
3327
3391
  #
3392
+ # @option params [String] :health_metrics_config
3393
+ # Controls how cache health metrics will be emitted to CloudWatch. Cache
3394
+ # health metrics include:
3395
+ #
3396
+ # * NetworkBandwidthOutAllowanceExceeded: The network packets dropped
3397
+ # because the throughput exceeded the aggregated bandwidth limit. This
3398
+ # is useful for diagnosing bottlenecks in a cache configuration.
3399
+ #
3400
+ # * EngineCPUUtilization: The CPU utilization (percentage) allocated to
3401
+ # the Redis process. This is useful for diagnosing bottlenecks in a
3402
+ # cache configuration.
3403
+ #
3404
+ # Metrics will be recorded by API ID. You can set the value to `ENABLED`
3405
+ # or `DISABLED`.
3406
+ #
3328
3407
  # @return [Types::UpdateApiCacheResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3329
3408
  #
3330
3409
  # * {Types::UpdateApiCacheResponse#api_cache #api_cache} => Types::ApiCache
@@ -3336,6 +3415,7 @@ module Aws::AppSync
3336
3415
  # ttl: 1, # required
3337
3416
  # api_caching_behavior: "FULL_REQUEST_CACHING", # required, accepts FULL_REQUEST_CACHING, PER_RESOLVER_CACHING
3338
3417
  # 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
3418
+ # health_metrics_config: "ENABLED", # accepts ENABLED, DISABLED
3339
3419
  # })
3340
3420
  #
3341
3421
  # @example Response structure
@@ -3346,6 +3426,7 @@ module Aws::AppSync
3346
3426
  # resp.api_cache.at_rest_encryption_enabled #=> Boolean
3347
3427
  # 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"
3348
3428
  # resp.api_cache.status #=> String, one of "AVAILABLE", "CREATING", "DELETING", "MODIFYING", "FAILED"
3429
+ # resp.api_cache.health_metrics_config #=> String, one of "ENABLED", "DISABLED"
3349
3430
  #
3350
3431
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache AWS API Documentation
3351
3432
  #
@@ -3445,6 +3526,16 @@ module Aws::AppSync
3445
3526
  # @option params [Types::EventBridgeDataSourceConfig] :event_bridge_config
3446
3527
  # The new Amazon EventBridge settings.
3447
3528
  #
3529
+ # @option params [String] :metrics_config
3530
+ # Enables or disables enhanced data source metrics for specified data
3531
+ # sources. Note that `metricsConfig` won't be used unless the
3532
+ # `dataSourceLevelMetricsBehavior` value is set to
3533
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior` is
3534
+ # set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead, `metricsConfig`
3535
+ # will be ignored. However, you can still set its value.
3536
+ #
3537
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
3538
+ #
3448
3539
  # @return [Types::UpdateDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3449
3540
  #
3450
3541
  # * {Types::UpdateDataSourceResponse#data_source #data_source} => Types::DataSource
@@ -3502,6 +3593,7 @@ module Aws::AppSync
3502
3593
  # event_bridge_config: {
3503
3594
  # event_bus_arn: "String", # required
3504
3595
  # },
3596
+ # metrics_config: "ENABLED", # accepts ENABLED, DISABLED
3505
3597
  # })
3506
3598
  #
3507
3599
  # @example Response structure
@@ -3534,6 +3626,7 @@ module Aws::AppSync
3534
3626
  # resp.data_source.relational_database_config.rds_http_endpoint_config.schema #=> String
3535
3627
  # resp.data_source.relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
3536
3628
  # resp.data_source.event_bridge_config.event_bus_arn #=> String
3629
+ # resp.data_source.metrics_config #=> String, one of "ENABLED", "DISABLED"
3537
3630
  #
3538
3631
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource AWS API Documentation
3539
3632
  #
@@ -3763,6 +3856,9 @@ module Aws::AppSync
3763
3856
  # and `10000`. This field will produce a limit error if the operation
3764
3857
  # falls out of bounds.
3765
3858
  #
3859
+ # @option params [Types::EnhancedMetricsConfig] :enhanced_metrics_config
3860
+ # The `enhancedMetricsConfig` object.
3861
+ #
3766
3862
  # @return [Types::UpdateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3767
3863
  #
3768
3864
  # * {Types::UpdateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
@@ -3822,6 +3918,11 @@ module Aws::AppSync
3822
3918
  # introspection_config: "ENABLED", # accepts ENABLED, DISABLED
3823
3919
  # query_depth_limit: 1,
3824
3920
  # resolver_count_limit: 1,
3921
+ # enhanced_metrics_config: {
3922
+ # resolver_level_metrics_behavior: "FULL_REQUEST_RESOLVER_METRICS", # required, accepts FULL_REQUEST_RESOLVER_METRICS, PER_RESOLVER_METRICS
3923
+ # data_source_level_metrics_behavior: "FULL_REQUEST_DATA_SOURCE_METRICS", # required, accepts FULL_REQUEST_DATA_SOURCE_METRICS, PER_DATA_SOURCE_METRICS
3924
+ # operation_level_metrics_config: "ENABLED", # required, accepts ENABLED, DISABLED
3925
+ # },
3825
3926
  # })
3826
3927
  #
3827
3928
  # @example Response structure
@@ -3872,6 +3973,9 @@ module Aws::AppSync
3872
3973
  # resp.graphql_api.introspection_config #=> String, one of "ENABLED", "DISABLED"
3873
3974
  # resp.graphql_api.query_depth_limit #=> Integer
3874
3975
  # resp.graphql_api.resolver_count_limit #=> Integer
3976
+ # resp.graphql_api.enhanced_metrics_config.resolver_level_metrics_behavior #=> String, one of "FULL_REQUEST_RESOLVER_METRICS", "PER_RESOLVER_METRICS"
3977
+ # resp.graphql_api.enhanced_metrics_config.data_source_level_metrics_behavior #=> String, one of "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS"
3978
+ # resp.graphql_api.enhanced_metrics_config.operation_level_metrics_config #=> String, one of "ENABLED", "DISABLED"
3875
3979
  #
3876
3980
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi AWS API Documentation
3877
3981
  #
@@ -3945,6 +4049,16 @@ module Aws::AppSync
3945
4049
  # When code is used, the `runtime` is required. The `runtime` value must
3946
4050
  # be `APPSYNC_JS`.
3947
4051
  #
4052
+ # @option params [String] :metrics_config
4053
+ # Enables or disables enhanced resolver metrics for specified resolvers.
4054
+ # Note that `metricsConfig` won't be used unless the
4055
+ # `resolverLevelMetricsBehavior` value is set to `PER_RESOLVER_METRICS`.
4056
+ # If the `resolverLevelMetricsBehavior` is set to
4057
+ # `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
4058
+ # ignored. However, you can still set its value.
4059
+ #
4060
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
4061
+ #
3948
4062
  # @return [Types::UpdateResolverResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3949
4063
  #
3950
4064
  # * {Types::UpdateResolverResponse#resolver #resolver} => Types::Resolver
@@ -3979,6 +4093,7 @@ module Aws::AppSync
3979
4093
  # runtime_version: "String", # required
3980
4094
  # },
3981
4095
  # code: "Code",
4096
+ # metrics_config: "ENABLED", # accepts ENABLED, DISABLED
3982
4097
  # })
3983
4098
  #
3984
4099
  # @example Response structure
@@ -4002,6 +4117,7 @@ module Aws::AppSync
4002
4117
  # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
4003
4118
  # resp.resolver.runtime.runtime_version #=> String
4004
4119
  # resp.resolver.code #=> String
4120
+ # resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
4005
4121
  #
4006
4122
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver AWS API Documentation
4007
4123
  #
@@ -4127,7 +4243,7 @@ module Aws::AppSync
4127
4243
  params: params,
4128
4244
  config: config)
4129
4245
  context[:gem_name] = 'aws-sdk-appsync'
4130
- context[:gem_version] = '1.72.0'
4246
+ context[:gem_version] = '1.74.0'
4131
4247
  Seahorse::Client::Request.new(handlers, context)
4132
4248
  end
4133
4249
 
@@ -44,6 +44,7 @@ module Aws::AppSync
44
44
  Blob = Shapes::BlobShape.new(name: 'Blob')
45
45
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
46
46
  BooleanValue = Shapes::BooleanShape.new(name: 'BooleanValue')
47
+ CacheHealthMetricsConfig = Shapes::StringShape.new(name: 'CacheHealthMetricsConfig')
47
48
  CachingConfig = Shapes::StructureShape.new(name: 'CachingConfig')
48
49
  CachingKeys = Shapes::ListShape.new(name: 'CachingKeys')
49
50
  CertificateArn = Shapes::StringShape.new(name: 'CertificateArn')
@@ -87,6 +88,8 @@ module Aws::AppSync
87
88
  DataSourceIntrospectionModels = Shapes::ListShape.new(name: 'DataSourceIntrospectionModels')
88
89
  DataSourceIntrospectionResult = Shapes::StructureShape.new(name: 'DataSourceIntrospectionResult')
89
90
  DataSourceIntrospectionStatus = Shapes::StringShape.new(name: 'DataSourceIntrospectionStatus')
91
+ DataSourceLevelMetricsBehavior = Shapes::StringShape.new(name: 'DataSourceLevelMetricsBehavior')
92
+ DataSourceLevelMetricsConfig = Shapes::StringShape.new(name: 'DataSourceLevelMetricsConfig')
90
93
  DataSourceType = Shapes::StringShape.new(name: 'DataSourceType')
91
94
  DataSources = Shapes::ListShape.new(name: 'DataSources')
92
95
  Date = Shapes::TimestampShape.new(name: 'Date')
@@ -120,6 +123,7 @@ module Aws::AppSync
120
123
  DomainNameConfigs = Shapes::ListShape.new(name: 'DomainNameConfigs')
121
124
  DynamodbDataSourceConfig = Shapes::StructureShape.new(name: 'DynamodbDataSourceConfig')
122
125
  ElasticsearchDataSourceConfig = Shapes::StructureShape.new(name: 'ElasticsearchDataSourceConfig')
126
+ EnhancedMetricsConfig = Shapes::StructureShape.new(name: 'EnhancedMetricsConfig')
123
127
  EnvironmentVariableKey = Shapes::StringShape.new(name: 'EnvironmentVariableKey')
124
128
  EnvironmentVariableMap = Shapes::MapShape.new(name: 'EnvironmentVariableMap')
125
129
  EnvironmentVariableValue = Shapes::StringShape.new(name: 'EnvironmentVariableValue')
@@ -209,6 +213,7 @@ module Aws::AppSync
209
213
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
210
214
  OpenIDConnectConfig = Shapes::StructureShape.new(name: 'OpenIDConnectConfig')
211
215
  OpenSearchServiceDataSourceConfig = Shapes::StructureShape.new(name: 'OpenSearchServiceDataSourceConfig')
216
+ OperationLevelMetricsConfig = Shapes::StringShape.new(name: 'OperationLevelMetricsConfig')
212
217
  OutputType = Shapes::StringShape.new(name: 'OutputType')
213
218
  Ownership = Shapes::StringShape.new(name: 'Ownership')
214
219
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
@@ -226,6 +231,8 @@ module Aws::AppSync
226
231
  Resolver = Shapes::StructureShape.new(name: 'Resolver')
227
232
  ResolverCountLimit = Shapes::IntegerShape.new(name: 'ResolverCountLimit')
228
233
  ResolverKind = Shapes::StringShape.new(name: 'ResolverKind')
234
+ ResolverLevelMetricsBehavior = Shapes::StringShape.new(name: 'ResolverLevelMetricsBehavior')
235
+ ResolverLevelMetricsConfig = Shapes::StringShape.new(name: 'ResolverLevelMetricsConfig')
229
236
  Resolvers = Shapes::ListShape.new(name: 'Resolvers')
230
237
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
231
238
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
@@ -301,6 +308,7 @@ module Aws::AppSync
301
308
  ApiCache.add_member(:at_rest_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "atRestEncryptionEnabled"))
302
309
  ApiCache.add_member(:type, Shapes::ShapeRef.new(shape: ApiCacheType, location_name: "type"))
303
310
  ApiCache.add_member(:status, Shapes::ShapeRef.new(shape: ApiCacheStatus, location_name: "status"))
311
+ ApiCache.add_member(:health_metrics_config, Shapes::ShapeRef.new(shape: CacheHealthMetricsConfig, location_name: "healthMetricsConfig"))
304
312
  ApiCache.struct_class = Types::ApiCache
305
313
 
306
314
  ApiKey.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
@@ -397,6 +405,7 @@ module Aws::AppSync
397
405
  CreateApiCacheRequest.add_member(:at_rest_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "atRestEncryptionEnabled"))
398
406
  CreateApiCacheRequest.add_member(:api_caching_behavior, Shapes::ShapeRef.new(shape: ApiCachingBehavior, required: true, location_name: "apiCachingBehavior"))
399
407
  CreateApiCacheRequest.add_member(:type, Shapes::ShapeRef.new(shape: ApiCacheType, required: true, location_name: "type"))
408
+ CreateApiCacheRequest.add_member(:health_metrics_config, Shapes::ShapeRef.new(shape: CacheHealthMetricsConfig, location_name: "healthMetricsConfig"))
400
409
  CreateApiCacheRequest.struct_class = Types::CreateApiCacheRequest
401
410
 
402
411
  CreateApiCacheResponse.add_member(:api_cache, Shapes::ShapeRef.new(shape: ApiCache, location_name: "apiCache"))
@@ -422,6 +431,7 @@ module Aws::AppSync
422
431
  CreateDataSourceRequest.add_member(:http_config, Shapes::ShapeRef.new(shape: HttpDataSourceConfig, location_name: "httpConfig"))
423
432
  CreateDataSourceRequest.add_member(:relational_database_config, Shapes::ShapeRef.new(shape: RelationalDatabaseDataSourceConfig, location_name: "relationalDatabaseConfig"))
424
433
  CreateDataSourceRequest.add_member(:event_bridge_config, Shapes::ShapeRef.new(shape: EventBridgeDataSourceConfig, location_name: "eventBridgeConfig"))
434
+ CreateDataSourceRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: DataSourceLevelMetricsConfig, location_name: "metricsConfig"))
425
435
  CreateDataSourceRequest.struct_class = Types::CreateDataSourceRequest
426
436
 
427
437
  CreateDataSourceResponse.add_member(:data_source, Shapes::ShapeRef.new(shape: DataSource, location_name: "dataSource"))
@@ -467,6 +477,7 @@ module Aws::AppSync
467
477
  CreateGraphqlApiRequest.add_member(:introspection_config, Shapes::ShapeRef.new(shape: GraphQLApiIntrospectionConfig, location_name: "introspectionConfig"))
468
478
  CreateGraphqlApiRequest.add_member(:query_depth_limit, Shapes::ShapeRef.new(shape: QueryDepthLimit, location_name: "queryDepthLimit"))
469
479
  CreateGraphqlApiRequest.add_member(:resolver_count_limit, Shapes::ShapeRef.new(shape: ResolverCountLimit, location_name: "resolverCountLimit"))
480
+ CreateGraphqlApiRequest.add_member(:enhanced_metrics_config, Shapes::ShapeRef.new(shape: EnhancedMetricsConfig, location_name: "enhancedMetricsConfig"))
470
481
  CreateGraphqlApiRequest.struct_class = Types::CreateGraphqlApiRequest
471
482
 
472
483
  CreateGraphqlApiResponse.add_member(:graphql_api, Shapes::ShapeRef.new(shape: GraphqlApi, location_name: "graphqlApi"))
@@ -485,6 +496,7 @@ module Aws::AppSync
485
496
  CreateResolverRequest.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
486
497
  CreateResolverRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
487
498
  CreateResolverRequest.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
499
+ CreateResolverRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: ResolverLevelMetricsConfig, location_name: "metricsConfig"))
488
500
  CreateResolverRequest.struct_class = Types::CreateResolverRequest
489
501
 
490
502
  CreateResolverResponse.add_member(:resolver, Shapes::ShapeRef.new(shape: Resolver, location_name: "resolver"))
@@ -510,6 +522,7 @@ module Aws::AppSync
510
522
  DataSource.add_member(:http_config, Shapes::ShapeRef.new(shape: HttpDataSourceConfig, location_name: "httpConfig"))
511
523
  DataSource.add_member(:relational_database_config, Shapes::ShapeRef.new(shape: RelationalDatabaseDataSourceConfig, location_name: "relationalDatabaseConfig"))
512
524
  DataSource.add_member(:event_bridge_config, Shapes::ShapeRef.new(shape: EventBridgeDataSourceConfig, location_name: "eventBridgeConfig"))
525
+ DataSource.add_member(:metrics_config, Shapes::ShapeRef.new(shape: DataSourceLevelMetricsConfig, location_name: "metricsConfig"))
513
526
  DataSource.struct_class = Types::DataSource
514
527
 
515
528
  DataSourceIntrospectionModel.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
@@ -640,6 +653,11 @@ module Aws::AppSync
640
653
  ElasticsearchDataSourceConfig.add_member(:aws_region, Shapes::ShapeRef.new(shape: String, required: true, location_name: "awsRegion"))
641
654
  ElasticsearchDataSourceConfig.struct_class = Types::ElasticsearchDataSourceConfig
642
655
 
656
+ EnhancedMetricsConfig.add_member(:resolver_level_metrics_behavior, Shapes::ShapeRef.new(shape: ResolverLevelMetricsBehavior, required: true, location_name: "resolverLevelMetricsBehavior"))
657
+ EnhancedMetricsConfig.add_member(:data_source_level_metrics_behavior, Shapes::ShapeRef.new(shape: DataSourceLevelMetricsBehavior, required: true, location_name: "dataSourceLevelMetricsBehavior"))
658
+ EnhancedMetricsConfig.add_member(:operation_level_metrics_config, Shapes::ShapeRef.new(shape: OperationLevelMetricsConfig, required: true, location_name: "operationLevelMetricsConfig"))
659
+ EnhancedMetricsConfig.struct_class = Types::EnhancedMetricsConfig
660
+
643
661
  EnvironmentVariableMap.key = Shapes::ShapeRef.new(shape: EnvironmentVariableKey)
644
662
  EnvironmentVariableMap.value = Shapes::ShapeRef.new(shape: EnvironmentVariableValue)
645
663
 
@@ -817,6 +835,7 @@ module Aws::AppSync
817
835
  GraphqlApi.add_member(:introspection_config, Shapes::ShapeRef.new(shape: GraphQLApiIntrospectionConfig, location_name: "introspectionConfig"))
818
836
  GraphqlApi.add_member(:query_depth_limit, Shapes::ShapeRef.new(shape: QueryDepthLimit, location_name: "queryDepthLimit"))
819
837
  GraphqlApi.add_member(:resolver_count_limit, Shapes::ShapeRef.new(shape: ResolverCountLimit, location_name: "resolverCountLimit"))
838
+ GraphqlApi.add_member(:enhanced_metrics_config, Shapes::ShapeRef.new(shape: EnhancedMetricsConfig, location_name: "enhancedMetricsConfig"))
820
839
  GraphqlApi.struct_class = Types::GraphqlApi
821
840
 
822
841
  GraphqlApis.member = Shapes::ShapeRef.new(shape: GraphqlApi)
@@ -1005,6 +1024,7 @@ module Aws::AppSync
1005
1024
  Resolver.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
1006
1025
  Resolver.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
1007
1026
  Resolver.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
1027
+ Resolver.add_member(:metrics_config, Shapes::ShapeRef.new(shape: ResolverLevelMetricsConfig, location_name: "metricsConfig"))
1008
1028
  Resolver.struct_class = Types::Resolver
1009
1029
 
1010
1030
  Resolvers.member = Shapes::ShapeRef.new(shape: Resolver)
@@ -1096,6 +1116,7 @@ module Aws::AppSync
1096
1116
  UpdateApiCacheRequest.add_member(:ttl, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "ttl"))
1097
1117
  UpdateApiCacheRequest.add_member(:api_caching_behavior, Shapes::ShapeRef.new(shape: ApiCachingBehavior, required: true, location_name: "apiCachingBehavior"))
1098
1118
  UpdateApiCacheRequest.add_member(:type, Shapes::ShapeRef.new(shape: ApiCacheType, required: true, location_name: "type"))
1119
+ UpdateApiCacheRequest.add_member(:health_metrics_config, Shapes::ShapeRef.new(shape: CacheHealthMetricsConfig, location_name: "healthMetricsConfig"))
1099
1120
  UpdateApiCacheRequest.struct_class = Types::UpdateApiCacheRequest
1100
1121
 
1101
1122
  UpdateApiCacheResponse.add_member(:api_cache, Shapes::ShapeRef.new(shape: ApiCache, location_name: "apiCache"))
@@ -1122,6 +1143,7 @@ module Aws::AppSync
1122
1143
  UpdateDataSourceRequest.add_member(:http_config, Shapes::ShapeRef.new(shape: HttpDataSourceConfig, location_name: "httpConfig"))
1123
1144
  UpdateDataSourceRequest.add_member(:relational_database_config, Shapes::ShapeRef.new(shape: RelationalDatabaseDataSourceConfig, location_name: "relationalDatabaseConfig"))
1124
1145
  UpdateDataSourceRequest.add_member(:event_bridge_config, Shapes::ShapeRef.new(shape: EventBridgeDataSourceConfig, location_name: "eventBridgeConfig"))
1146
+ UpdateDataSourceRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: DataSourceLevelMetricsConfig, location_name: "metricsConfig"))
1125
1147
  UpdateDataSourceRequest.struct_class = Types::UpdateDataSourceRequest
1126
1148
 
1127
1149
  UpdateDataSourceResponse.add_member(:data_source, Shapes::ShapeRef.new(shape: DataSource, location_name: "dataSource"))
@@ -1165,6 +1187,7 @@ module Aws::AppSync
1165
1187
  UpdateGraphqlApiRequest.add_member(:introspection_config, Shapes::ShapeRef.new(shape: GraphQLApiIntrospectionConfig, location_name: "introspectionConfig"))
1166
1188
  UpdateGraphqlApiRequest.add_member(:query_depth_limit, Shapes::ShapeRef.new(shape: QueryDepthLimit, location_name: "queryDepthLimit"))
1167
1189
  UpdateGraphqlApiRequest.add_member(:resolver_count_limit, Shapes::ShapeRef.new(shape: ResolverCountLimit, location_name: "resolverCountLimit"))
1190
+ UpdateGraphqlApiRequest.add_member(:enhanced_metrics_config, Shapes::ShapeRef.new(shape: EnhancedMetricsConfig, location_name: "enhancedMetricsConfig"))
1168
1191
  UpdateGraphqlApiRequest.struct_class = Types::UpdateGraphqlApiRequest
1169
1192
 
1170
1193
  UpdateGraphqlApiResponse.add_member(:graphql_api, Shapes::ShapeRef.new(shape: GraphqlApi, location_name: "graphqlApi"))
@@ -1183,6 +1206,7 @@ module Aws::AppSync
1183
1206
  UpdateResolverRequest.add_member(:max_batch_size, Shapes::ShapeRef.new(shape: MaxBatchSize, location_name: "maxBatchSize"))
1184
1207
  UpdateResolverRequest.add_member(:runtime, Shapes::ShapeRef.new(shape: AppSyncRuntime, location_name: "runtime"))
1185
1208
  UpdateResolverRequest.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
1209
+ UpdateResolverRequest.add_member(:metrics_config, Shapes::ShapeRef.new(shape: ResolverLevelMetricsConfig, location_name: "metricsConfig"))
1186
1210
  UpdateResolverRequest.struct_class = Types::UpdateResolverRequest
1187
1211
 
1188
1212
  UpdateResolverResponse.add_member(:resolver, Shapes::ShapeRef.new(shape: Resolver, location_name: "resolver"))
@@ -1334,6 +1358,7 @@ module Aws::AppSync
1334
1358
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1335
1359
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1336
1360
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1361
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1337
1362
  end)
1338
1363
 
1339
1364
  api.add_operation(:create_graphql_api, Seahorse::Model::Operation.new.tap do |o|
@@ -1437,6 +1462,7 @@ module Aws::AppSync
1437
1462
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1438
1463
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1439
1464
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1465
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1440
1466
  end)
1441
1467
 
1442
1468
  api.add_operation(:delete_graphql_api, Seahorse::Model::Operation.new.tap do |o|
@@ -1988,6 +2014,7 @@ module Aws::AppSync
1988
2014
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
1989
2015
  o.errors << Shapes::ShapeRef.new(shape: UnauthorizedException)
1990
2016
  o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
2017
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
1991
2018
  end)
1992
2019
 
1993
2020
  api.add_operation(:update_graphql_api, Seahorse::Model::Operation.new.tap do |o|
@@ -173,6 +173,23 @@ module Aws::AppSync
173
173
  # * **FAILED**: The instance has failed creation.
174
174
  # @return [String]
175
175
  #
176
+ # @!attribute [rw] health_metrics_config
177
+ # Controls how cache health metrics will be emitted to CloudWatch.
178
+ # Cache health metrics include:
179
+ #
180
+ # * NetworkBandwidthOutAllowanceExceeded: The network packets dropped
181
+ # because the throughput exceeded the aggregated bandwidth limit.
182
+ # This is useful for diagnosing bottlenecks in a cache
183
+ # configuration.
184
+ #
185
+ # * EngineCPUUtilization: The CPU utilization (percentage) allocated
186
+ # to the Redis process. This is useful for diagnosing bottlenecks in
187
+ # a cache configuration.
188
+ #
189
+ # Metrics will be recorded by API ID. You can set the value to
190
+ # `ENABLED` or `DISABLED`.
191
+ # @return [String]
192
+ #
176
193
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ApiCache AWS API Documentation
177
194
  #
178
195
  class ApiCache < Struct.new(
@@ -181,7 +198,8 @@ module Aws::AppSync
181
198
  :transit_encryption_enabled,
182
199
  :at_rest_encryption_enabled,
183
200
  :type,
184
- :status)
201
+ :status,
202
+ :health_metrics_config)
185
203
  SENSITIVE = []
186
204
  include Aws::Structure
187
205
  end
@@ -727,6 +745,23 @@ module Aws::AppSync
727
745
  # * **R4\_8XLARGE**: A r4.8xlarge instance type.
728
746
  # @return [String]
729
747
  #
748
+ # @!attribute [rw] health_metrics_config
749
+ # Controls how cache health metrics will be emitted to CloudWatch.
750
+ # Cache health metrics include:
751
+ #
752
+ # * NetworkBandwidthOutAllowanceExceeded: The network packets dropped
753
+ # because the throughput exceeded the aggregated bandwidth limit.
754
+ # This is useful for diagnosing bottlenecks in a cache
755
+ # configuration.
756
+ #
757
+ # * EngineCPUUtilization: The CPU utilization (percentage) allocated
758
+ # to the Redis process. This is useful for diagnosing bottlenecks in
759
+ # a cache configuration.
760
+ #
761
+ # Metrics will be recorded by API ID. You can set the value to
762
+ # `ENABLED` or `DISABLED`.
763
+ # @return [String]
764
+ #
730
765
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCacheRequest AWS API Documentation
731
766
  #
732
767
  class CreateApiCacheRequest < Struct.new(
@@ -735,7 +770,8 @@ module Aws::AppSync
735
770
  :transit_encryption_enabled,
736
771
  :at_rest_encryption_enabled,
737
772
  :api_caching_behavior,
738
- :type)
773
+ :type,
774
+ :health_metrics_config)
739
775
  SENSITIVE = []
740
776
  include Aws::Structure
741
777
  end
@@ -846,6 +882,18 @@ module Aws::AppSync
846
882
  # Amazon EventBridge settings.
847
883
  # @return [Types::EventBridgeDataSourceConfig]
848
884
  #
885
+ # @!attribute [rw] metrics_config
886
+ # Enables or disables enhanced data source metrics for specified data
887
+ # sources. Note that `metricsConfig` won't be used unless the
888
+ # `dataSourceLevelMetricsBehavior` value is set to
889
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior`
890
+ # is set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead,
891
+ # `metricsConfig` will be ignored. However, you can still set its
892
+ # value.
893
+ #
894
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
895
+ # @return [String]
896
+ #
849
897
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSourceRequest AWS API Documentation
850
898
  #
851
899
  class CreateDataSourceRequest < Struct.new(
@@ -860,7 +908,8 @@ module Aws::AppSync
860
908
  :open_search_service_config,
861
909
  :http_config,
862
910
  :relational_database_config,
863
- :event_bridge_config)
911
+ :event_bridge_config,
912
+ :metrics_config)
864
913
  SENSITIVE = []
865
914
  include Aws::Structure
866
915
  end
@@ -1099,6 +1148,10 @@ module Aws::AppSync
1099
1148
  # operation falls out of bounds.
1100
1149
  # @return [Integer]
1101
1150
  #
1151
+ # @!attribute [rw] enhanced_metrics_config
1152
+ # The `enhancedMetricsConfig` object.
1153
+ # @return [Types::EnhancedMetricsConfig]
1154
+ #
1102
1155
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApiRequest AWS API Documentation
1103
1156
  #
1104
1157
  class CreateGraphqlApiRequest < Struct.new(
@@ -1117,7 +1170,8 @@ module Aws::AppSync
1117
1170
  :owner_contact,
1118
1171
  :introspection_config,
1119
1172
  :query_depth_limit,
1120
- :resolver_count_limit)
1173
+ :resolver_count_limit,
1174
+ :enhanced_metrics_config)
1121
1175
  SENSITIVE = []
1122
1176
  include Aws::Structure
1123
1177
  end
@@ -1208,6 +1262,17 @@ module Aws::AppSync
1208
1262
  # `runtime` value must be `APPSYNC_JS`.
1209
1263
  # @return [String]
1210
1264
  #
1265
+ # @!attribute [rw] metrics_config
1266
+ # Enables or disables enhanced resolver metrics for specified
1267
+ # resolvers. Note that `metricsConfig` won't be used unless the
1268
+ # `resolverLevelMetricsBehavior` value is set to
1269
+ # `PER_RESOLVER_METRICS`. If the `resolverLevelMetricsBehavior` is set
1270
+ # to `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
1271
+ # ignored. However, you can still set its value.
1272
+ #
1273
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
1274
+ # @return [String]
1275
+ #
1211
1276
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolverRequest AWS API Documentation
1212
1277
  #
1213
1278
  class CreateResolverRequest < Struct.new(
@@ -1223,7 +1288,8 @@ module Aws::AppSync
1223
1288
  :caching_config,
1224
1289
  :max_batch_size,
1225
1290
  :runtime,
1226
- :code)
1291
+ :code,
1292
+ :metrics_config)
1227
1293
  SENSITIVE = []
1228
1294
  include Aws::Structure
1229
1295
  end
@@ -1356,6 +1422,18 @@ module Aws::AppSync
1356
1422
  # Amazon EventBridge settings.
1357
1423
  # @return [Types::EventBridgeDataSourceConfig]
1358
1424
  #
1425
+ # @!attribute [rw] metrics_config
1426
+ # Enables or disables enhanced data source metrics for specified data
1427
+ # sources. Note that `metricsConfig` won't be used unless the
1428
+ # `dataSourceLevelMetricsBehavior` value is set to
1429
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior`
1430
+ # is set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead,
1431
+ # `metricsConfig` will be ignored. However, you can still set its
1432
+ # value.
1433
+ #
1434
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
1435
+ # @return [String]
1436
+ #
1359
1437
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSource AWS API Documentation
1360
1438
  #
1361
1439
  class DataSource < Struct.new(
@@ -1370,7 +1448,8 @@ module Aws::AppSync
1370
1448
  :open_search_service_config,
1371
1449
  :http_config,
1372
1450
  :relational_database_config,
1373
- :event_bridge_config)
1451
+ :event_bridge_config,
1452
+ :metrics_config)
1374
1453
  SENSITIVE = []
1375
1454
  include Aws::Structure
1376
1455
  end
@@ -1895,6 +1974,150 @@ module Aws::AppSync
1895
1974
  include Aws::Structure
1896
1975
  end
1897
1976
 
1977
+ # Enables and controls the enhanced metrics feature. Enhanced metrics
1978
+ # emit granular data on API usage and performance such as AppSync
1979
+ # request and error counts, latency, and cache hits/misses. All enhanced
1980
+ # metric data is sent to your CloudWatch account, and you can configure
1981
+ # the types of data that will be sent.
1982
+ #
1983
+ # Enhanced metrics can be configured at the resolver, data source, and
1984
+ # operation levels. `EnhancedMetricsConfig` contains three required
1985
+ # parameters, each controlling one of these categories:
1986
+ #
1987
+ # 1. `resolverLevelMetricsBehavior`: Controls how resolver metrics will
1988
+ # be emitted to CloudWatch. Resolver metrics include:
1989
+ #
1990
+ # * GraphQL errors: The number of GraphQL errors that occurred.
1991
+ #
1992
+ # * Requests: The number of invocations that occurred during a
1993
+ # request.
1994
+ #
1995
+ # * Latency: The time to complete a resolver invocation.
1996
+ #
1997
+ # * Cache hits: The number of cache hits during a request.
1998
+ #
1999
+ # * Cache misses: The number of cache misses during a request.
2000
+ #
2001
+ # These metrics can be emitted to CloudWatch per resolver or for all
2002
+ # resolvers in the request. Metrics will be recorded by API ID and
2003
+ # resolver name. `resolverLevelMetricsBehavior` accepts one of these
2004
+ # values at a time:
2005
+ #
2006
+ # * `FULL_REQUEST_RESOLVER_METRICS`: Records and emits metric data
2007
+ # for all resolvers in the request.
2008
+ #
2009
+ # * `PER_RESOLVER_METRICS`: Records and emits metric data for
2010
+ # resolvers that have the `metricsConfig` value set to `ENABLED`.
2011
+ #
2012
+ # 2. `dataSourceLevelMetricsBehavior`: Controls how data source metrics
2013
+ # will be emitted to CloudWatch. Data source metrics include:
2014
+ #
2015
+ # * Requests: The number of invocations that occured during a
2016
+ # request.
2017
+ #
2018
+ # * Latency: The time to complete a data source invocation.
2019
+ #
2020
+ # * Errors: The number of errors that occurred during a data source
2021
+ # invocation.
2022
+ #
2023
+ # These metrics can be emitted to CloudWatch per data source or for
2024
+ # all data sources in the request. Metrics will be recorded by API
2025
+ # ID and data source name. `dataSourceLevelMetricsBehavior` accepts
2026
+ # one of these values at a time:
2027
+ #
2028
+ # * `FULL_REQUEST_DATA_SOURCE_METRICS`: Records and emits metric
2029
+ # data for all data sources in the request.
2030
+ #
2031
+ # * `PER_DATA_SOURCE_METRICS`: Records and emits metric data for
2032
+ # data sources that have the `metricsConfig` value set to
2033
+ # `ENABLED`.
2034
+ #
2035
+ # 3. `operationLevelMetricsConfig`: Controls how operation metrics will
2036
+ # be emitted to CloudWatch. Operation metrics include:
2037
+ #
2038
+ # * Requests: The number of times a specified GraphQL operation was
2039
+ # called.
2040
+ #
2041
+ # * GraphQL errors: The number of GraphQL errors that occurred
2042
+ # during a specified GraphQL operation.
2043
+ #
2044
+ # Metrics will be recorded by API ID and operation name. You can set
2045
+ # the value to `ENABLED` or `DISABLED`.
2046
+ #
2047
+ # @!attribute [rw] resolver_level_metrics_behavior
2048
+ # Controls how resolver metrics will be emitted to CloudWatch.
2049
+ # Resolver metrics include:
2050
+ #
2051
+ # * GraphQL errors: The number of GraphQL errors that occurred.
2052
+ #
2053
+ # * Requests: The number of invocations that occurred during a
2054
+ # request.
2055
+ #
2056
+ # * Latency: The time to complete a resolver invocation.
2057
+ #
2058
+ # * Cache hits: The number of cache hits during a request.
2059
+ #
2060
+ # * Cache misses: The number of cache misses during a request.
2061
+ #
2062
+ # These metrics can be emitted to CloudWatch per resolver or for all
2063
+ # resolvers in the request. Metrics will be recorded by API ID and
2064
+ # resolver name. `resolverLevelMetricsBehavior` accepts one of these
2065
+ # values at a time:
2066
+ #
2067
+ # * `FULL_REQUEST_RESOLVER_METRICS`: Records and emits metric data for
2068
+ # all resolvers in the request.
2069
+ #
2070
+ # * `PER_RESOLVER_METRICS`: Records and emits metric data for
2071
+ # resolvers that have the `metricsConfig` value set to `ENABLED`.
2072
+ # @return [String]
2073
+ #
2074
+ # @!attribute [rw] data_source_level_metrics_behavior
2075
+ # Controls how data source metrics will be emitted to CloudWatch. Data
2076
+ # source metrics include:
2077
+ #
2078
+ # * Requests: The number of invocations that occured during a request.
2079
+ #
2080
+ # * Latency: The time to complete a data source invocation.
2081
+ #
2082
+ # * Errors: The number of errors that occurred during a data source
2083
+ # invocation.
2084
+ #
2085
+ # These metrics can be emitted to CloudWatch per data source or for
2086
+ # all data sources in the request. Metrics will be recorded by API ID
2087
+ # and data source name. `dataSourceLevelMetricsBehavior` accepts one
2088
+ # of these values at a time:
2089
+ #
2090
+ # * `FULL_REQUEST_DATA_SOURCE_METRICS`: Records and emits metric data
2091
+ # for all data sources in the request.
2092
+ #
2093
+ # * `PER_DATA_SOURCE_METRICS`: Records and emits metric data for data
2094
+ # sources that have the `metricsConfig` value set to `ENABLED`.
2095
+ # @return [String]
2096
+ #
2097
+ # @!attribute [rw] operation_level_metrics_config
2098
+ # Controls how operation metrics will be emitted to CloudWatch.
2099
+ # Operation metrics include:
2100
+ #
2101
+ # * Requests: The number of times a specified GraphQL operation was
2102
+ # called.
2103
+ #
2104
+ # * GraphQL errors: The number of GraphQL errors that occurred during
2105
+ # a specified GraphQL operation.
2106
+ #
2107
+ # Metrics will be recorded by API ID and operation name. You can set
2108
+ # the value to `ENABLED` or `DISABLED`.
2109
+ # @return [String]
2110
+ #
2111
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EnhancedMetricsConfig AWS API Documentation
2112
+ #
2113
+ class EnhancedMetricsConfig < Struct.new(
2114
+ :resolver_level_metrics_behavior,
2115
+ :data_source_level_metrics_behavior,
2116
+ :operation_level_metrics_config)
2117
+ SENSITIVE = []
2118
+ include Aws::Structure
2119
+ end
2120
+
1898
2121
  # Contains the list of errors generated. When using JavaScript, this
1899
2122
  # will apply to the request or response function evaluation.
1900
2123
  #
@@ -2714,6 +2937,10 @@ module Aws::AppSync
2714
2937
  # operation falls out of bounds.
2715
2938
  # @return [Integer]
2716
2939
  #
2940
+ # @!attribute [rw] enhanced_metrics_config
2941
+ # The `enhancedMetricsConfig` object.
2942
+ # @return [Types::EnhancedMetricsConfig]
2943
+ #
2717
2944
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GraphqlApi AWS API Documentation
2718
2945
  #
2719
2946
  class GraphqlApi < Struct.new(
@@ -2738,7 +2965,8 @@ module Aws::AppSync
2738
2965
  :owner_contact,
2739
2966
  :introspection_config,
2740
2967
  :query_depth_limit,
2741
- :resolver_count_limit)
2968
+ :resolver_count_limit,
2969
+ :enhanced_metrics_config)
2742
2970
  SENSITIVE = []
2743
2971
  include Aws::Structure
2744
2972
  end
@@ -3685,6 +3913,17 @@ module Aws::AppSync
3685
3913
  # `runtime` value must be `APPSYNC_JS`.
3686
3914
  # @return [String]
3687
3915
  #
3916
+ # @!attribute [rw] metrics_config
3917
+ # Enables or disables enhanced resolver metrics for specified
3918
+ # resolvers. Note that `metricsConfig` won't be used unless the
3919
+ # `resolverLevelMetricsBehavior` value is set to
3920
+ # `PER_RESOLVER_METRICS`. If the `resolverLevelMetricsBehavior` is set
3921
+ # to `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
3922
+ # ignored. However, you can still set its value.
3923
+ #
3924
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
3925
+ # @return [String]
3926
+ #
3688
3927
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/Resolver AWS API Documentation
3689
3928
  #
3690
3929
  class Resolver < Struct.new(
@@ -3700,7 +3939,8 @@ module Aws::AppSync
3700
3939
  :caching_config,
3701
3940
  :max_batch_size,
3702
3941
  :runtime,
3703
- :code)
3942
+ :code,
3943
+ :metrics_config)
3704
3944
  SENSITIVE = []
3705
3945
  include Aws::Structure
3706
3946
  end
@@ -4159,13 +4399,31 @@ module Aws::AppSync
4159
4399
  # * **R4\_8XLARGE**: A r4.8xlarge instance type.
4160
4400
  # @return [String]
4161
4401
  #
4402
+ # @!attribute [rw] health_metrics_config
4403
+ # Controls how cache health metrics will be emitted to CloudWatch.
4404
+ # Cache health metrics include:
4405
+ #
4406
+ # * NetworkBandwidthOutAllowanceExceeded: The network packets dropped
4407
+ # because the throughput exceeded the aggregated bandwidth limit.
4408
+ # This is useful for diagnosing bottlenecks in a cache
4409
+ # configuration.
4410
+ #
4411
+ # * EngineCPUUtilization: The CPU utilization (percentage) allocated
4412
+ # to the Redis process. This is useful for diagnosing bottlenecks in
4413
+ # a cache configuration.
4414
+ #
4415
+ # Metrics will be recorded by API ID. You can set the value to
4416
+ # `ENABLED` or `DISABLED`.
4417
+ # @return [String]
4418
+ #
4162
4419
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCacheRequest AWS API Documentation
4163
4420
  #
4164
4421
  class UpdateApiCacheRequest < Struct.new(
4165
4422
  :api_id,
4166
4423
  :ttl,
4167
4424
  :api_caching_behavior,
4168
- :type)
4425
+ :type,
4426
+ :health_metrics_config)
4169
4427
  SENSITIVE = []
4170
4428
  include Aws::Structure
4171
4429
  end
@@ -4278,6 +4536,18 @@ module Aws::AppSync
4278
4536
  # The new Amazon EventBridge settings.
4279
4537
  # @return [Types::EventBridgeDataSourceConfig]
4280
4538
  #
4539
+ # @!attribute [rw] metrics_config
4540
+ # Enables or disables enhanced data source metrics for specified data
4541
+ # sources. Note that `metricsConfig` won't be used unless the
4542
+ # `dataSourceLevelMetricsBehavior` value is set to
4543
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior`
4544
+ # is set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead,
4545
+ # `metricsConfig` will be ignored. However, you can still set its
4546
+ # value.
4547
+ #
4548
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
4549
+ # @return [String]
4550
+ #
4281
4551
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSourceRequest AWS API Documentation
4282
4552
  #
4283
4553
  class UpdateDataSourceRequest < Struct.new(
@@ -4292,7 +4562,8 @@ module Aws::AppSync
4292
4562
  :open_search_service_config,
4293
4563
  :http_config,
4294
4564
  :relational_database_config,
4295
- :event_bridge_config)
4565
+ :event_bridge_config,
4566
+ :metrics_config)
4296
4567
  SENSITIVE = []
4297
4568
  include Aws::Structure
4298
4569
  end
@@ -4518,6 +4789,10 @@ module Aws::AppSync
4518
4789
  # operation falls out of bounds.
4519
4790
  # @return [Integer]
4520
4791
  #
4792
+ # @!attribute [rw] enhanced_metrics_config
4793
+ # The `enhancedMetricsConfig` object.
4794
+ # @return [Types::EnhancedMetricsConfig]
4795
+ #
4521
4796
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApiRequest AWS API Documentation
4522
4797
  #
4523
4798
  class UpdateGraphqlApiRequest < Struct.new(
@@ -4534,7 +4809,8 @@ module Aws::AppSync
4534
4809
  :owner_contact,
4535
4810
  :introspection_config,
4536
4811
  :query_depth_limit,
4537
- :resolver_count_limit)
4812
+ :resolver_count_limit,
4813
+ :enhanced_metrics_config)
4538
4814
  SENSITIVE = []
4539
4815
  include Aws::Structure
4540
4816
  end
@@ -4625,6 +4901,17 @@ module Aws::AppSync
4625
4901
  # `runtime` value must be `APPSYNC_JS`.
4626
4902
  # @return [String]
4627
4903
  #
4904
+ # @!attribute [rw] metrics_config
4905
+ # Enables or disables enhanced resolver metrics for specified
4906
+ # resolvers. Note that `metricsConfig` won't be used unless the
4907
+ # `resolverLevelMetricsBehavior` value is set to
4908
+ # `PER_RESOLVER_METRICS`. If the `resolverLevelMetricsBehavior` is set
4909
+ # to `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
4910
+ # ignored. However, you can still set its value.
4911
+ #
4912
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
4913
+ # @return [String]
4914
+ #
4628
4915
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolverRequest AWS API Documentation
4629
4916
  #
4630
4917
  class UpdateResolverRequest < Struct.new(
@@ -4640,7 +4927,8 @@ module Aws::AppSync
4640
4927
  :caching_config,
4641
4928
  :max_batch_size,
4642
4929
  :runtime,
4643
- :code)
4930
+ :code,
4931
+ :metrics_config)
4644
4932
  SENSITIVE = []
4645
4933
  include Aws::Structure
4646
4934
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-appsync/customizations'
52
52
  # @!group service
53
53
  module Aws::AppSync
54
54
 
55
- GEM_VERSION = '1.72.0'
55
+ GEM_VERSION = '1.74.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -124,7 +124,8 @@ module Aws
124
124
  ?transit_encryption_enabled: bool,
125
125
  ?at_rest_encryption_enabled: bool,
126
126
  api_caching_behavior: ("FULL_REQUEST_CACHING" | "PER_RESOLVER_CACHING"),
127
- type: ("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")
127
+ type: ("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"),
128
+ ?health_metrics_config: ("ENABLED" | "DISABLED")
128
129
  ) -> _CreateApiCacheResponseSuccess
129
130
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateApiCacheResponseSuccess
130
131
 
@@ -195,7 +196,8 @@ module Aws
195
196
  },
196
197
  ?event_bridge_config: {
197
198
  event_bus_arn: ::String
198
- }
199
+ },
200
+ ?metrics_config: ("ENABLED" | "DISABLED")
199
201
  ) -> _CreateDataSourceResponseSuccess
200
202
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateDataSourceResponseSuccess
201
203
 
@@ -299,7 +301,12 @@ module Aws
299
301
  ?owner_contact: ::String,
300
302
  ?introspection_config: ("ENABLED" | "DISABLED"),
301
303
  ?query_depth_limit: ::Integer,
302
- ?resolver_count_limit: ::Integer
304
+ ?resolver_count_limit: ::Integer,
305
+ ?enhanced_metrics_config: {
306
+ resolver_level_metrics_behavior: ("FULL_REQUEST_RESOLVER_METRICS" | "PER_RESOLVER_METRICS"),
307
+ data_source_level_metrics_behavior: ("FULL_REQUEST_DATA_SOURCE_METRICS" | "PER_DATA_SOURCE_METRICS"),
308
+ operation_level_metrics_config: ("ENABLED" | "DISABLED")
309
+ }
303
310
  ) -> _CreateGraphqlApiResponseSuccess
304
311
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateGraphqlApiResponseSuccess
305
312
 
@@ -335,7 +342,8 @@ module Aws
335
342
  name: ("APPSYNC_JS"),
336
343
  runtime_version: ::String
337
344
  },
338
- ?code: ::String
345
+ ?code: ::String,
346
+ ?metrics_config: ("ENABLED" | "DISABLED")
339
347
  ) -> _CreateResolverResponseSuccess
340
348
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateResolverResponseSuccess
341
349
 
@@ -867,7 +875,8 @@ module Aws
867
875
  api_id: ::String,
868
876
  ttl: ::Integer,
869
877
  api_caching_behavior: ("FULL_REQUEST_CACHING" | "PER_RESOLVER_CACHING"),
870
- type: ("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")
878
+ type: ("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"),
879
+ ?health_metrics_config: ("ENABLED" | "DISABLED")
871
880
  ) -> _UpdateApiCacheResponseSuccess
872
881
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateApiCacheResponseSuccess
873
882
 
@@ -939,7 +948,8 @@ module Aws
939
948
  },
940
949
  ?event_bridge_config: {
941
950
  event_bus_arn: ::String
942
- }
951
+ },
952
+ ?metrics_config: ("ENABLED" | "DISABLED")
943
953
  ) -> _UpdateDataSourceResponseSuccess
944
954
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateDataSourceResponseSuccess
945
955
 
@@ -1041,7 +1051,12 @@ module Aws
1041
1051
  ?owner_contact: ::String,
1042
1052
  ?introspection_config: ("ENABLED" | "DISABLED"),
1043
1053
  ?query_depth_limit: ::Integer,
1044
- ?resolver_count_limit: ::Integer
1054
+ ?resolver_count_limit: ::Integer,
1055
+ ?enhanced_metrics_config: {
1056
+ resolver_level_metrics_behavior: ("FULL_REQUEST_RESOLVER_METRICS" | "PER_RESOLVER_METRICS"),
1057
+ data_source_level_metrics_behavior: ("FULL_REQUEST_DATA_SOURCE_METRICS" | "PER_DATA_SOURCE_METRICS"),
1058
+ operation_level_metrics_config: ("ENABLED" | "DISABLED")
1059
+ }
1045
1060
  ) -> _UpdateGraphqlApiResponseSuccess
1046
1061
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateGraphqlApiResponseSuccess
1047
1062
 
@@ -1077,7 +1092,8 @@ module Aws
1077
1092
  name: ("APPSYNC_JS"),
1078
1093
  runtime_version: ::String
1079
1094
  },
1080
- ?code: ::String
1095
+ ?code: ::String,
1096
+ ?metrics_config: ("ENABLED" | "DISABLED")
1081
1097
  ) -> _UpdateResolverResponseSuccess
1082
1098
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateResolverResponseSuccess
1083
1099
 
data/sig/types.rbs CHANGED
@@ -36,6 +36,7 @@ module Aws::AppSync
36
36
  attr_accessor at_rest_encryption_enabled: bool
37
37
  attr_accessor type: ("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")
38
38
  attr_accessor status: ("AVAILABLE" | "CREATING" | "DELETING" | "MODIFYING" | "FAILED")
39
+ attr_accessor health_metrics_config: ("ENABLED" | "DISABLED")
39
40
  SENSITIVE: []
40
41
  end
41
42
 
@@ -168,6 +169,7 @@ module Aws::AppSync
168
169
  attr_accessor at_rest_encryption_enabled: bool
169
170
  attr_accessor api_caching_behavior: ("FULL_REQUEST_CACHING" | "PER_RESOLVER_CACHING")
170
171
  attr_accessor type: ("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")
172
+ attr_accessor health_metrics_config: ("ENABLED" | "DISABLED")
171
173
  SENSITIVE: []
172
174
  end
173
175
 
@@ -201,6 +203,7 @@ module Aws::AppSync
201
203
  attr_accessor http_config: Types::HttpDataSourceConfig
202
204
  attr_accessor relational_database_config: Types::RelationalDatabaseDataSourceConfig
203
205
  attr_accessor event_bridge_config: Types::EventBridgeDataSourceConfig
206
+ attr_accessor metrics_config: ("ENABLED" | "DISABLED")
204
207
  SENSITIVE: []
205
208
  end
206
209
 
@@ -258,6 +261,7 @@ module Aws::AppSync
258
261
  attr_accessor introspection_config: ("ENABLED" | "DISABLED")
259
262
  attr_accessor query_depth_limit: ::Integer
260
263
  attr_accessor resolver_count_limit: ::Integer
264
+ attr_accessor enhanced_metrics_config: Types::EnhancedMetricsConfig
261
265
  SENSITIVE: []
262
266
  end
263
267
 
@@ -280,6 +284,7 @@ module Aws::AppSync
280
284
  attr_accessor max_batch_size: ::Integer
281
285
  attr_accessor runtime: Types::AppSyncRuntime
282
286
  attr_accessor code: ::String
287
+ attr_accessor metrics_config: ("ENABLED" | "DISABLED")
283
288
  SENSITIVE: []
284
289
  end
285
290
 
@@ -313,6 +318,7 @@ module Aws::AppSync
313
318
  attr_accessor http_config: Types::HttpDataSourceConfig
314
319
  attr_accessor relational_database_config: Types::RelationalDatabaseDataSourceConfig
315
320
  attr_accessor event_bridge_config: Types::EventBridgeDataSourceConfig
321
+ attr_accessor metrics_config: ("ENABLED" | "DISABLED")
316
322
  SENSITIVE: []
317
323
  end
318
324
 
@@ -483,6 +489,13 @@ module Aws::AppSync
483
489
  SENSITIVE: []
484
490
  end
485
491
 
492
+ class EnhancedMetricsConfig
493
+ attr_accessor resolver_level_metrics_behavior: ("FULL_REQUEST_RESOLVER_METRICS" | "PER_RESOLVER_METRICS")
494
+ attr_accessor data_source_level_metrics_behavior: ("FULL_REQUEST_DATA_SOURCE_METRICS" | "PER_DATA_SOURCE_METRICS")
495
+ attr_accessor operation_level_metrics_config: ("ENABLED" | "DISABLED")
496
+ SENSITIVE: []
497
+ end
498
+
486
499
  class ErrorDetail
487
500
  attr_accessor message: ::String
488
501
  SENSITIVE: []
@@ -725,6 +738,7 @@ module Aws::AppSync
725
738
  attr_accessor introspection_config: ("ENABLED" | "DISABLED")
726
739
  attr_accessor query_depth_limit: ::Integer
727
740
  attr_accessor resolver_count_limit: ::Integer
741
+ attr_accessor enhanced_metrics_config: Types::EnhancedMetricsConfig
728
742
  SENSITIVE: []
729
743
  end
730
744
 
@@ -984,6 +998,7 @@ module Aws::AppSync
984
998
  attr_accessor max_batch_size: ::Integer
985
999
  attr_accessor runtime: Types::AppSyncRuntime
986
1000
  attr_accessor code: ::String
1001
+ attr_accessor metrics_config: ("ENABLED" | "DISABLED")
987
1002
  SENSITIVE: []
988
1003
  end
989
1004
 
@@ -1096,6 +1111,7 @@ module Aws::AppSync
1096
1111
  attr_accessor ttl: ::Integer
1097
1112
  attr_accessor api_caching_behavior: ("FULL_REQUEST_CACHING" | "PER_RESOLVER_CACHING")
1098
1113
  attr_accessor type: ("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")
1114
+ attr_accessor health_metrics_config: ("ENABLED" | "DISABLED")
1099
1115
  SENSITIVE: []
1100
1116
  end
1101
1117
 
@@ -1130,6 +1146,7 @@ module Aws::AppSync
1130
1146
  attr_accessor http_config: Types::HttpDataSourceConfig
1131
1147
  attr_accessor relational_database_config: Types::RelationalDatabaseDataSourceConfig
1132
1148
  attr_accessor event_bridge_config: Types::EventBridgeDataSourceConfig
1149
+ attr_accessor metrics_config: ("ENABLED" | "DISABLED")
1133
1150
  SENSITIVE: []
1134
1151
  end
1135
1152
 
@@ -1185,6 +1202,7 @@ module Aws::AppSync
1185
1202
  attr_accessor introspection_config: ("ENABLED" | "DISABLED")
1186
1203
  attr_accessor query_depth_limit: ::Integer
1187
1204
  attr_accessor resolver_count_limit: ::Integer
1205
+ attr_accessor enhanced_metrics_config: Types::EnhancedMetricsConfig
1188
1206
  SENSITIVE: []
1189
1207
  end
1190
1208
 
@@ -1207,6 +1225,7 @@ module Aws::AppSync
1207
1225
  attr_accessor max_batch_size: ::Integer
1208
1226
  attr_accessor runtime: Types::AppSyncRuntime
1209
1227
  attr_accessor code: ::String
1228
+ attr_accessor metrics_config: ("ENABLED" | "DISABLED")
1210
1229
  SENSITIVE: []
1211
1230
  end
1212
1231
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appsync
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.72.0
4
+ version: 1.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-06 00:00:00.000000000 Z
11
+ date: 2024-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core