aws-sdk-appsync 1.72.0 → 1.73.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: 2f8b5688c41b634120795f68330f945b6fcec5b81689323419147c799e6e9a13
4
+ data.tar.gz: 4f1809de0cc414dc3891c53f1e1b533817e6656bbde5cb31a65a89e5c7782e47
5
5
  SHA512:
6
- metadata.gz: e5098d28d8fb00135f14769c58119e51a661266c2038444301ab042fff8a91db364105928901ac484cb1fe303941d61d1dd0bdb90c9b2b2d3085bfe5bde77997
7
- data.tar.gz: e432b6dd4b507dba0eb1ebd9ad4318d64c9fb8140c3098cc0db0da11e1c062320535e7347f957a4bfda192e619cb733908d98356c6852ee8849dfc8b70a3d6a1
6
+ metadata.gz: 2cbe199c82ec407aaa706906f50b2aab431d960bcf4f70f2453380b32882b92cf4fcbc2e1846cfd6a982d668bcd96f17e99d1b12289dc3dfc530054affbd7096
7
+ data.tar.gz: 54ddb1aba3c705227b30d48b996ebbf0f87853ca0aa3840854f07636ff583fd2301b92a9690a1ef7919484c054d14c57fc2e8e7c57edeea193009c1fdc057892
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.72.0 (2024-02-06)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.72.0
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
  #
@@ -2263,6 +2318,7 @@ module Aws::AppSync
2263
2318
  # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
2264
2319
  # resp.resolver.runtime.runtime_version #=> String
2265
2320
  # resp.resolver.code #=> String
2321
+ # resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
2266
2322
  #
2267
2323
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GetResolver AWS API Documentation
2268
2324
  #
@@ -2498,6 +2554,7 @@ module Aws::AppSync
2498
2554
  # resp.data_sources[0].relational_database_config.rds_http_endpoint_config.schema #=> String
2499
2555
  # resp.data_sources[0].relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
2500
2556
  # resp.data_sources[0].event_bridge_config.event_bus_arn #=> String
2557
+ # resp.data_sources[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
2501
2558
  # resp.next_token #=> String
2502
2559
  #
2503
2560
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListDataSources AWS API Documentation
@@ -2685,6 +2742,9 @@ module Aws::AppSync
2685
2742
  # resp.graphql_apis[0].introspection_config #=> String, one of "ENABLED", "DISABLED"
2686
2743
  # resp.graphql_apis[0].query_depth_limit #=> Integer
2687
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"
2688
2748
  # resp.next_token #=> String
2689
2749
  #
2690
2750
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListGraphqlApis AWS API Documentation
@@ -2748,6 +2808,7 @@ module Aws::AppSync
2748
2808
  # resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
2749
2809
  # resp.resolvers[0].runtime.runtime_version #=> String
2750
2810
  # resp.resolvers[0].code #=> String
2811
+ # resp.resolvers[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
2751
2812
  # resp.next_token #=> String
2752
2813
  #
2753
2814
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolvers AWS API Documentation
@@ -2811,6 +2872,7 @@ module Aws::AppSync
2811
2872
  # resp.resolvers[0].runtime.name #=> String, one of "APPSYNC_JS"
2812
2873
  # resp.resolvers[0].runtime.runtime_version #=> String
2813
2874
  # resp.resolvers[0].code #=> String
2875
+ # resp.resolvers[0].metrics_config #=> String, one of "ENABLED", "DISABLED"
2814
2876
  # resp.next_token #=> String
2815
2877
  #
2816
2878
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/ListResolversByFunction AWS API Documentation
@@ -3325,6 +3387,19 @@ module Aws::AppSync
3325
3387
  #
3326
3388
  # * **R4\_8XLARGE**: A r4.8xlarge instance type.
3327
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
+ #
3328
3403
  # @return [Types::UpdateApiCacheResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3329
3404
  #
3330
3405
  # * {Types::UpdateApiCacheResponse#api_cache #api_cache} => Types::ApiCache
@@ -3336,6 +3411,7 @@ module Aws::AppSync
3336
3411
  # ttl: 1, # required
3337
3412
  # api_caching_behavior: "FULL_REQUEST_CACHING", # required, accepts FULL_REQUEST_CACHING, PER_RESOLVER_CACHING
3338
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
3339
3415
  # })
3340
3416
  #
3341
3417
  # @example Response structure
@@ -3346,6 +3422,7 @@ module Aws::AppSync
3346
3422
  # resp.api_cache.at_rest_encryption_enabled #=> Boolean
3347
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"
3348
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"
3349
3426
  #
3350
3427
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCache AWS API Documentation
3351
3428
  #
@@ -3445,6 +3522,16 @@ module Aws::AppSync
3445
3522
  # @option params [Types::EventBridgeDataSourceConfig] :event_bridge_config
3446
3523
  # The new Amazon EventBridge settings.
3447
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
+ #
3448
3535
  # @return [Types::UpdateDataSourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3449
3536
  #
3450
3537
  # * {Types::UpdateDataSourceResponse#data_source #data_source} => Types::DataSource
@@ -3502,6 +3589,7 @@ module Aws::AppSync
3502
3589
  # event_bridge_config: {
3503
3590
  # event_bus_arn: "String", # required
3504
3591
  # },
3592
+ # metrics_config: "ENABLED", # accepts ENABLED, DISABLED
3505
3593
  # })
3506
3594
  #
3507
3595
  # @example Response structure
@@ -3534,6 +3622,7 @@ module Aws::AppSync
3534
3622
  # resp.data_source.relational_database_config.rds_http_endpoint_config.schema #=> String
3535
3623
  # resp.data_source.relational_database_config.rds_http_endpoint_config.aws_secret_store_arn #=> String
3536
3624
  # resp.data_source.event_bridge_config.event_bus_arn #=> String
3625
+ # resp.data_source.metrics_config #=> String, one of "ENABLED", "DISABLED"
3537
3626
  #
3538
3627
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSource AWS API Documentation
3539
3628
  #
@@ -3763,6 +3852,9 @@ module Aws::AppSync
3763
3852
  # and `10000`. This field will produce a limit error if the operation
3764
3853
  # falls out of bounds.
3765
3854
  #
3855
+ # @option params [Types::EnhancedMetricsConfig] :enhanced_metrics_config
3856
+ # The `enhancedMetricsConfig` object.
3857
+ #
3766
3858
  # @return [Types::UpdateGraphqlApiResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3767
3859
  #
3768
3860
  # * {Types::UpdateGraphqlApiResponse#graphql_api #graphql_api} => Types::GraphqlApi
@@ -3822,6 +3914,11 @@ module Aws::AppSync
3822
3914
  # introspection_config: "ENABLED", # accepts ENABLED, DISABLED
3823
3915
  # query_depth_limit: 1,
3824
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
+ # },
3825
3922
  # })
3826
3923
  #
3827
3924
  # @example Response structure
@@ -3872,6 +3969,9 @@ module Aws::AppSync
3872
3969
  # resp.graphql_api.introspection_config #=> String, one of "ENABLED", "DISABLED"
3873
3970
  # resp.graphql_api.query_depth_limit #=> Integer
3874
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"
3875
3975
  #
3876
3976
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApi AWS API Documentation
3877
3977
  #
@@ -3945,6 +4045,16 @@ module Aws::AppSync
3945
4045
  # When code is used, the `runtime` is required. The `runtime` value must
3946
4046
  # be `APPSYNC_JS`.
3947
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
+ #
3948
4058
  # @return [Types::UpdateResolverResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3949
4059
  #
3950
4060
  # * {Types::UpdateResolverResponse#resolver #resolver} => Types::Resolver
@@ -3979,6 +4089,7 @@ module Aws::AppSync
3979
4089
  # runtime_version: "String", # required
3980
4090
  # },
3981
4091
  # code: "Code",
4092
+ # metrics_config: "ENABLED", # accepts ENABLED, DISABLED
3982
4093
  # })
3983
4094
  #
3984
4095
  # @example Response structure
@@ -4002,6 +4113,7 @@ module Aws::AppSync
4002
4113
  # resp.resolver.runtime.name #=> String, one of "APPSYNC_JS"
4003
4114
  # resp.resolver.runtime.runtime_version #=> String
4004
4115
  # resp.resolver.code #=> String
4116
+ # resp.resolver.metrics_config #=> String, one of "ENABLED", "DISABLED"
4005
4117
  #
4006
4118
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolver AWS API Documentation
4007
4119
  #
@@ -4127,7 +4239,7 @@ module Aws::AppSync
4127
4239
  params: params,
4128
4240
  config: config)
4129
4241
  context[:gem_name] = 'aws-sdk-appsync'
4130
- context[:gem_version] = '1.72.0'
4242
+ context[:gem_version] = '1.73.0'
4131
4243
  Seahorse::Client::Request.new(handlers, context)
4132
4244
  end
4133
4245
 
@@ -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,20 @@ 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 number of times a
753
+ # specified GraphQL operation was called.
754
+ #
755
+ # * EngineCPUUtilization: The number of GraphQL errors that occurred
756
+ # during a specified GraphQL operation.
757
+ #
758
+ # Metrics will be recorded by API ID. You can set the value to
759
+ # `ENABLED` or `DISABLED`.
760
+ # @return [String]
761
+ #
730
762
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateApiCacheRequest AWS API Documentation
731
763
  #
732
764
  class CreateApiCacheRequest < Struct.new(
@@ -735,7 +767,8 @@ module Aws::AppSync
735
767
  :transit_encryption_enabled,
736
768
  :at_rest_encryption_enabled,
737
769
  :api_caching_behavior,
738
- :type)
770
+ :type,
771
+ :health_metrics_config)
739
772
  SENSITIVE = []
740
773
  include Aws::Structure
741
774
  end
@@ -846,6 +879,18 @@ module Aws::AppSync
846
879
  # Amazon EventBridge settings.
847
880
  # @return [Types::EventBridgeDataSourceConfig]
848
881
  #
882
+ # @!attribute [rw] metrics_config
883
+ # Enables or disables enhanced data source metrics for specified data
884
+ # sources. Note that `metricsConfig` won't be used unless the
885
+ # `dataSourceLevelMetricsBehavior` value is set to
886
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior`
887
+ # is set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead,
888
+ # `metricsConfig` will be ignored. However, you can still set its
889
+ # value.
890
+ #
891
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
892
+ # @return [String]
893
+ #
849
894
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateDataSourceRequest AWS API Documentation
850
895
  #
851
896
  class CreateDataSourceRequest < Struct.new(
@@ -860,7 +905,8 @@ module Aws::AppSync
860
905
  :open_search_service_config,
861
906
  :http_config,
862
907
  :relational_database_config,
863
- :event_bridge_config)
908
+ :event_bridge_config,
909
+ :metrics_config)
864
910
  SENSITIVE = []
865
911
  include Aws::Structure
866
912
  end
@@ -1099,6 +1145,10 @@ module Aws::AppSync
1099
1145
  # operation falls out of bounds.
1100
1146
  # @return [Integer]
1101
1147
  #
1148
+ # @!attribute [rw] enhanced_metrics_config
1149
+ # The `enhancedMetricsConfig` object.
1150
+ # @return [Types::EnhancedMetricsConfig]
1151
+ #
1102
1152
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateGraphqlApiRequest AWS API Documentation
1103
1153
  #
1104
1154
  class CreateGraphqlApiRequest < Struct.new(
@@ -1117,7 +1167,8 @@ module Aws::AppSync
1117
1167
  :owner_contact,
1118
1168
  :introspection_config,
1119
1169
  :query_depth_limit,
1120
- :resolver_count_limit)
1170
+ :resolver_count_limit,
1171
+ :enhanced_metrics_config)
1121
1172
  SENSITIVE = []
1122
1173
  include Aws::Structure
1123
1174
  end
@@ -1208,6 +1259,17 @@ module Aws::AppSync
1208
1259
  # `runtime` value must be `APPSYNC_JS`.
1209
1260
  # @return [String]
1210
1261
  #
1262
+ # @!attribute [rw] metrics_config
1263
+ # Enables or disables enhanced resolver metrics for specified
1264
+ # resolvers. Note that `metricsConfig` won't be used unless the
1265
+ # `resolverLevelMetricsBehavior` value is set to
1266
+ # `PER_RESOLVER_METRICS`. If the `resolverLevelMetricsBehavior` is set
1267
+ # to `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
1268
+ # ignored. However, you can still set its value.
1269
+ #
1270
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
1271
+ # @return [String]
1272
+ #
1211
1273
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/CreateResolverRequest AWS API Documentation
1212
1274
  #
1213
1275
  class CreateResolverRequest < Struct.new(
@@ -1223,7 +1285,8 @@ module Aws::AppSync
1223
1285
  :caching_config,
1224
1286
  :max_batch_size,
1225
1287
  :runtime,
1226
- :code)
1288
+ :code,
1289
+ :metrics_config)
1227
1290
  SENSITIVE = []
1228
1291
  include Aws::Structure
1229
1292
  end
@@ -1356,6 +1419,18 @@ module Aws::AppSync
1356
1419
  # Amazon EventBridge settings.
1357
1420
  # @return [Types::EventBridgeDataSourceConfig]
1358
1421
  #
1422
+ # @!attribute [rw] metrics_config
1423
+ # Enables or disables enhanced data source metrics for specified data
1424
+ # sources. Note that `metricsConfig` won't be used unless the
1425
+ # `dataSourceLevelMetricsBehavior` value is set to
1426
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior`
1427
+ # is set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead,
1428
+ # `metricsConfig` will be ignored. However, you can still set its
1429
+ # value.
1430
+ #
1431
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
1432
+ # @return [String]
1433
+ #
1359
1434
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/DataSource AWS API Documentation
1360
1435
  #
1361
1436
  class DataSource < Struct.new(
@@ -1370,7 +1445,8 @@ module Aws::AppSync
1370
1445
  :open_search_service_config,
1371
1446
  :http_config,
1372
1447
  :relational_database_config,
1373
- :event_bridge_config)
1448
+ :event_bridge_config,
1449
+ :metrics_config)
1374
1450
  SENSITIVE = []
1375
1451
  include Aws::Structure
1376
1452
  end
@@ -1895,6 +1971,150 @@ module Aws::AppSync
1895
1971
  include Aws::Structure
1896
1972
  end
1897
1973
 
1974
+ # Enables and controls the enhanced metrics feature. Enhanced metrics
1975
+ # emit granular data on API usage and performance such as AppSync
1976
+ # request and error counts, latency, and cache hits/misses. All enhanced
1977
+ # metric data is sent to your CloudWatch account, and you can configure
1978
+ # the types of data that will be sent.
1979
+ #
1980
+ # Enhanced metrics can be configured at the resolver, data source, and
1981
+ # operation levels. `EnhancedMetricsConfig` contains three required
1982
+ # parameters, each controlling one of these categories:
1983
+ #
1984
+ # 1. `resolverLevelMetricsBehavior`: Controls how resolver metrics will
1985
+ # be emitted to CloudWatch. Resolver metrics include:
1986
+ #
1987
+ # * GraphQL errors: The number of GraphQL errors that occurred.
1988
+ #
1989
+ # * Requests: The number of invocations that occurred during a
1990
+ # request.
1991
+ #
1992
+ # * Latency: The time to complete a resolver invocation.
1993
+ #
1994
+ # * Cache hits: The number of cache hits during a request.
1995
+ #
1996
+ # * Cache misses: The number of cache misses during a request.
1997
+ #
1998
+ # These metrics can be emitted to CloudWatch per resolver or for all
1999
+ # resolvers in the request. Metrics will be recorded by API ID and
2000
+ # resolver name. `resolverLevelMetricsBehavior` accepts one of these
2001
+ # values at a time:
2002
+ #
2003
+ # * `FULL_REQUEST_RESOLVER_METRICS`: Records and emits metric data
2004
+ # for all resolvers in the request.
2005
+ #
2006
+ # * `PER_RESOLVER_METRICS`: Records and emits metric data for
2007
+ # resolvers that have the `metricConfig` value set to `ENABLED`.
2008
+ #
2009
+ # 2. `dataSourceLevelMetricsBehavior`: Controls how data source metrics
2010
+ # will be emitted to CloudWatch. Data source metrics include:
2011
+ #
2012
+ # * Requests: The number of invocations that occured during a
2013
+ # request.
2014
+ #
2015
+ # * Latency: The time to complete a data source invocation.
2016
+ #
2017
+ # * Errors: The number of errors that occurred during a data source
2018
+ # invocation.
2019
+ #
2020
+ # These metrics can be emitted to CloudWatch per data source or for
2021
+ # all data sources in the request. Metrics will be recorded by API
2022
+ # ID and data source name. `dataSourceLevelMetricsBehavior` accepts
2023
+ # one of these values at a time:
2024
+ #
2025
+ # * `FULL_REQUEST_DATA_SOURCE_METRICS`: Records and emits metric
2026
+ # data for all data sources in the request.
2027
+ #
2028
+ # * `PER_DATA_SOURCE_METRICS`: Records and emits metric data for
2029
+ # data sources that have the `metricConfig` value set to
2030
+ # `ENABLED`.
2031
+ #
2032
+ # 3. `operationLevelMetricsConfig`: Controls how operation metrics will
2033
+ # be emitted to CloudWatch. Operation metrics include:
2034
+ #
2035
+ # * Requests: The number of times a specified GraphQL operation was
2036
+ # called.
2037
+ #
2038
+ # * GraphQL errors: The number of GraphQL errors that occurred
2039
+ # during a specified GraphQL operation.
2040
+ #
2041
+ # Metrics will be recorded by API ID and operation name. You can set
2042
+ # the value to `ENABLED` or `DISABLED`.
2043
+ #
2044
+ # @!attribute [rw] resolver_level_metrics_behavior
2045
+ # Controls how resolver metrics will be emitted to CloudWatch.
2046
+ # Resolver metrics include:
2047
+ #
2048
+ # * GraphQL errors: The number of GraphQL errors that occurred.
2049
+ #
2050
+ # * Requests: The number of invocations that occurred during a
2051
+ # request.
2052
+ #
2053
+ # * Latency: The time to complete a resolver invocation.
2054
+ #
2055
+ # * Cache hits: The number of cache hits during a request.
2056
+ #
2057
+ # * Cache misses: The number of cache misses during a request.
2058
+ #
2059
+ # These metrics can be emitted to CloudWatch per resolver or for all
2060
+ # resolvers in the request. Metrics will be recorded by API ID and
2061
+ # resolver name. `resolverLevelMetricsBehavior` accepts one of these
2062
+ # values at a time:
2063
+ #
2064
+ # * `FULL_REQUEST_RESOLVER_METRICS`: Records and emits metric data for
2065
+ # all resolvers in the request.
2066
+ #
2067
+ # * `PER_RESOLVER_METRICS`: Records and emits metric data for
2068
+ # resolvers that have the `metricConfig` value set to `ENABLED`.
2069
+ # @return [String]
2070
+ #
2071
+ # @!attribute [rw] data_source_level_metrics_behavior
2072
+ # Controls how data source metrics will be emitted to CloudWatch. Data
2073
+ # source metrics include:
2074
+ #
2075
+ # * Requests: The number of invocations that occured during a request.
2076
+ #
2077
+ # * Latency: The time to complete a data source invocation.
2078
+ #
2079
+ # * Errors: The number of errors that occurred during a data source
2080
+ # invocation.
2081
+ #
2082
+ # These metrics can be emitted to CloudWatch per data source or for
2083
+ # all data sources in the request. Metrics will be recorded by API ID
2084
+ # and data source name. `dataSourceLevelMetricsBehavior` accepts one
2085
+ # of these values at a time:
2086
+ #
2087
+ # * `FULL_REQUEST_DATA_SOURCE_METRICS`: Records and emits metric data
2088
+ # for all data sources in the request.
2089
+ #
2090
+ # * `PER_DATA_SOURCE_METRICS`: Records and emits metric data for data
2091
+ # sources that have the `metricConfig` value set to `ENABLED`.
2092
+ # @return [String]
2093
+ #
2094
+ # @!attribute [rw] operation_level_metrics_config
2095
+ # Controls how operation metrics will be emitted to CloudWatch.
2096
+ # Operation metrics include:
2097
+ #
2098
+ # * Requests: The number of times a specified GraphQL operation was
2099
+ # called.
2100
+ #
2101
+ # * GraphQL errors: The number of GraphQL errors that occurred during
2102
+ # a specified GraphQL operation.
2103
+ #
2104
+ # Metrics will be recorded by API ID and operation name. You can set
2105
+ # the value to `ENABLED` or `DISABLED`.
2106
+ # @return [String]
2107
+ #
2108
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/EnhancedMetricsConfig AWS API Documentation
2109
+ #
2110
+ class EnhancedMetricsConfig < Struct.new(
2111
+ :resolver_level_metrics_behavior,
2112
+ :data_source_level_metrics_behavior,
2113
+ :operation_level_metrics_config)
2114
+ SENSITIVE = []
2115
+ include Aws::Structure
2116
+ end
2117
+
1898
2118
  # Contains the list of errors generated. When using JavaScript, this
1899
2119
  # will apply to the request or response function evaluation.
1900
2120
  #
@@ -2714,6 +2934,10 @@ module Aws::AppSync
2714
2934
  # operation falls out of bounds.
2715
2935
  # @return [Integer]
2716
2936
  #
2937
+ # @!attribute [rw] enhanced_metrics_config
2938
+ # The `enhancedMetricsConfig` object.
2939
+ # @return [Types::EnhancedMetricsConfig]
2940
+ #
2717
2941
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/GraphqlApi AWS API Documentation
2718
2942
  #
2719
2943
  class GraphqlApi < Struct.new(
@@ -2738,7 +2962,8 @@ module Aws::AppSync
2738
2962
  :owner_contact,
2739
2963
  :introspection_config,
2740
2964
  :query_depth_limit,
2741
- :resolver_count_limit)
2965
+ :resolver_count_limit,
2966
+ :enhanced_metrics_config)
2742
2967
  SENSITIVE = []
2743
2968
  include Aws::Structure
2744
2969
  end
@@ -3685,6 +3910,17 @@ module Aws::AppSync
3685
3910
  # `runtime` value must be `APPSYNC_JS`.
3686
3911
  # @return [String]
3687
3912
  #
3913
+ # @!attribute [rw] metrics_config
3914
+ # Enables or disables enhanced resolver metrics for specified
3915
+ # resolvers. Note that `metricsConfig` won't be used unless the
3916
+ # `resolverLevelMetricsBehavior` value is set to
3917
+ # `PER_RESOLVER_METRICS`. If the `resolverLevelMetricsBehavior` is set
3918
+ # to `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
3919
+ # ignored. However, you can still set its value.
3920
+ #
3921
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
3922
+ # @return [String]
3923
+ #
3688
3924
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/Resolver AWS API Documentation
3689
3925
  #
3690
3926
  class Resolver < Struct.new(
@@ -3700,7 +3936,8 @@ module Aws::AppSync
3700
3936
  :caching_config,
3701
3937
  :max_batch_size,
3702
3938
  :runtime,
3703
- :code)
3939
+ :code,
3940
+ :metrics_config)
3704
3941
  SENSITIVE = []
3705
3942
  include Aws::Structure
3706
3943
  end
@@ -4159,13 +4396,28 @@ module Aws::AppSync
4159
4396
  # * **R4\_8XLARGE**: A r4.8xlarge instance type.
4160
4397
  # @return [String]
4161
4398
  #
4399
+ # @!attribute [rw] health_metrics_config
4400
+ # Controls how cache health metrics will be emitted to CloudWatch.
4401
+ # Cache health metrics include:
4402
+ #
4403
+ # * NetworkBandwidthOutAllowanceExceeded: The number of times a
4404
+ # specified GraphQL operation was called.
4405
+ #
4406
+ # * EngineCPUUtilization: The number of GraphQL errors that occurred
4407
+ # during a specified GraphQL operation.
4408
+ #
4409
+ # Metrics will be recorded by API ID. You can set the value to
4410
+ # `ENABLED` or `DISABLED`.
4411
+ # @return [String]
4412
+ #
4162
4413
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCacheRequest AWS API Documentation
4163
4414
  #
4164
4415
  class UpdateApiCacheRequest < Struct.new(
4165
4416
  :api_id,
4166
4417
  :ttl,
4167
4418
  :api_caching_behavior,
4168
- :type)
4419
+ :type,
4420
+ :health_metrics_config)
4169
4421
  SENSITIVE = []
4170
4422
  include Aws::Structure
4171
4423
  end
@@ -4278,6 +4530,18 @@ module Aws::AppSync
4278
4530
  # The new Amazon EventBridge settings.
4279
4531
  # @return [Types::EventBridgeDataSourceConfig]
4280
4532
  #
4533
+ # @!attribute [rw] metrics_config
4534
+ # Enables or disables enhanced data source metrics for specified data
4535
+ # sources. Note that `metricsConfig` won't be used unless the
4536
+ # `dataSourceLevelMetricsBehavior` value is set to
4537
+ # `PER_DATA_SOURCE_METRICS`. If the `dataSourceLevelMetricsBehavior`
4538
+ # is set to `FULL_REQUEST_DATA_SOURCE_METRICS` instead,
4539
+ # `metricsConfig` will be ignored. However, you can still set its
4540
+ # value.
4541
+ #
4542
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
4543
+ # @return [String]
4544
+ #
4281
4545
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateDataSourceRequest AWS API Documentation
4282
4546
  #
4283
4547
  class UpdateDataSourceRequest < Struct.new(
@@ -4292,7 +4556,8 @@ module Aws::AppSync
4292
4556
  :open_search_service_config,
4293
4557
  :http_config,
4294
4558
  :relational_database_config,
4295
- :event_bridge_config)
4559
+ :event_bridge_config,
4560
+ :metrics_config)
4296
4561
  SENSITIVE = []
4297
4562
  include Aws::Structure
4298
4563
  end
@@ -4518,6 +4783,10 @@ module Aws::AppSync
4518
4783
  # operation falls out of bounds.
4519
4784
  # @return [Integer]
4520
4785
  #
4786
+ # @!attribute [rw] enhanced_metrics_config
4787
+ # The `enhancedMetricsConfig` object.
4788
+ # @return [Types::EnhancedMetricsConfig]
4789
+ #
4521
4790
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateGraphqlApiRequest AWS API Documentation
4522
4791
  #
4523
4792
  class UpdateGraphqlApiRequest < Struct.new(
@@ -4534,7 +4803,8 @@ module Aws::AppSync
4534
4803
  :owner_contact,
4535
4804
  :introspection_config,
4536
4805
  :query_depth_limit,
4537
- :resolver_count_limit)
4806
+ :resolver_count_limit,
4807
+ :enhanced_metrics_config)
4538
4808
  SENSITIVE = []
4539
4809
  include Aws::Structure
4540
4810
  end
@@ -4625,6 +4895,17 @@ module Aws::AppSync
4625
4895
  # `runtime` value must be `APPSYNC_JS`.
4626
4896
  # @return [String]
4627
4897
  #
4898
+ # @!attribute [rw] metrics_config
4899
+ # Enables or disables enhanced resolver metrics for specified
4900
+ # resolvers. Note that `metricsConfig` won't be used unless the
4901
+ # `resolverLevelMetricsBehavior` value is set to
4902
+ # `PER_RESOLVER_METRICS`. If the `resolverLevelMetricsBehavior` is set
4903
+ # to `FULL_REQUEST_RESOLVER_METRICS` instead, `metricsConfig` will be
4904
+ # ignored. However, you can still set its value.
4905
+ #
4906
+ # `metricsConfig` can be `ENABLED` or `DISABLED`.
4907
+ # @return [String]
4908
+ #
4628
4909
  # @see http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateResolverRequest AWS API Documentation
4629
4910
  #
4630
4911
  class UpdateResolverRequest < Struct.new(
@@ -4640,7 +4921,8 @@ module Aws::AppSync
4640
4921
  :caching_config,
4641
4922
  :max_batch_size,
4642
4923
  :runtime,
4643
- :code)
4924
+ :code,
4925
+ :metrics_config)
4644
4926
  SENSITIVE = []
4645
4927
  include Aws::Structure
4646
4928
  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.73.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.73.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-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core