@aws-sdk/client-appsync 3.511.0 → 3.513.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  3. package/dist-cjs/index.js +109 -7
  4. package/dist-cjs/runtimeConfig.shared.js +10 -0
  5. package/dist-es/AppSyncClient.js +17 -4
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  8. package/dist-es/models/models_0.js +24 -0
  9. package/dist-es/protocols/Aws_restJson1.js +8 -0
  10. package/dist-es/runtimeConfig.shared.js +10 -0
  11. package/dist-es/runtimeExtensions.js +3 -0
  12. package/dist-types/AppSyncClient.d.ts +13 -11
  13. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  14. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  15. package/dist-types/commands/CreateApiCacheCommand.d.ts +2 -0
  16. package/dist-types/commands/CreateDataSourceCommand.d.ts +2 -0
  17. package/dist-types/commands/CreateFunctionCommand.d.ts +4 -0
  18. package/dist-types/commands/CreateGraphqlApiCommand.d.ts +10 -0
  19. package/dist-types/commands/CreateResolverCommand.d.ts +2 -0
  20. package/dist-types/commands/DeleteFunctionCommand.d.ts +4 -0
  21. package/dist-types/commands/GetApiCacheCommand.d.ts +1 -0
  22. package/dist-types/commands/GetDataSourceCommand.d.ts +1 -0
  23. package/dist-types/commands/GetGraphqlApiCommand.d.ts +5 -0
  24. package/dist-types/commands/GetResolverCommand.d.ts +1 -0
  25. package/dist-types/commands/ListDataSourcesCommand.d.ts +1 -0
  26. package/dist-types/commands/ListGraphqlApisCommand.d.ts +5 -0
  27. package/dist-types/commands/ListResolversByFunctionCommand.d.ts +1 -0
  28. package/dist-types/commands/ListResolversCommand.d.ts +1 -0
  29. package/dist-types/commands/PutGraphqlApiEnvironmentVariablesCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateApiCacheCommand.d.ts +2 -0
  31. package/dist-types/commands/UpdateDataSourceCommand.d.ts +2 -0
  32. package/dist-types/commands/UpdateFunctionCommand.d.ts +4 -0
  33. package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +10 -0
  34. package/dist-types/commands/UpdateResolverCommand.d.ts +2 -0
  35. package/dist-types/extensionConfiguration.d.ts +2 -1
  36. package/dist-types/models/models_0.d.ts +387 -1
  37. package/dist-types/runtimeConfig.browser.d.ts +5 -3
  38. package/dist-types/runtimeConfig.d.ts +4 -2
  39. package/dist-types/runtimeConfig.native.d.ts +6 -4
  40. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  41. package/dist-types/ts3.4/AppSyncClient.d.ts +11 -9
  42. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  43. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
  44. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  45. package/dist-types/ts3.4/models/models_0.d.ts +53 -0
  46. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  47. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
  48. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
  49. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  50. package/package.json +7 -7
@@ -209,6 +209,18 @@ export declare const ApiCachingBehavior: {
209
209
  * @public
210
210
  */
211
211
  export type ApiCachingBehavior = (typeof ApiCachingBehavior)[keyof typeof ApiCachingBehavior];
212
+ /**
213
+ * @public
214
+ * @enum
215
+ */
216
+ export declare const CacheHealthMetricsConfig: {
217
+ readonly DISABLED: "DISABLED";
218
+ readonly ENABLED: "ENABLED";
219
+ };
220
+ /**
221
+ * @public
222
+ */
223
+ export type CacheHealthMetricsConfig = (typeof CacheHealthMetricsConfig)[keyof typeof CacheHealthMetricsConfig];
212
224
  /**
213
225
  * @public
214
226
  * @enum
@@ -391,6 +403,24 @@ export interface ApiCache {
391
403
  * </ul>
392
404
  */
393
405
  status?: ApiCacheStatus;
406
+ /**
407
+ * @public
408
+ * <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:</p>
409
+ * <ul>
410
+ * <li>
411
+ * <p>NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded
412
+ * the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache
413
+ * configuration.</p>
414
+ * </li>
415
+ * <li>
416
+ * <p>EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is
417
+ * useful for diagnosing bottlenecks in a cache configuration.</p>
418
+ * </li>
419
+ * </ul>
420
+ * <p>Metrics will be recorded by API ID. You can set the value to <code>ENABLED</code> or
421
+ * <code>DISABLED</code>.</p>
422
+ */
423
+ healthMetricsConfig?: CacheHealthMetricsConfig;
394
424
  }
395
425
  /**
396
426
  * @public
@@ -1088,6 +1118,23 @@ export interface CreateApiCacheRequest {
1088
1118
  * </ul>
1089
1119
  */
1090
1120
  type: ApiCacheType | undefined;
1121
+ /**
1122
+ * @public
1123
+ * <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:</p>
1124
+ * <ul>
1125
+ * <li>
1126
+ * <p>NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was
1127
+ * called.</p>
1128
+ * </li>
1129
+ * <li>
1130
+ * <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL
1131
+ * operation.</p>
1132
+ * </li>
1133
+ * </ul>
1134
+ * <p>Metrics will be recorded by API ID. You can set the value to <code>ENABLED</code> or
1135
+ * <code>DISABLED</code>.</p>
1136
+ */
1137
+ healthMetricsConfig?: CacheHealthMetricsConfig;
1091
1138
  }
1092
1139
  /**
1093
1140
  * @public
@@ -1243,6 +1290,18 @@ export interface LambdaDataSourceConfig {
1243
1290
  */
1244
1291
  lambdaFunctionArn: string | undefined;
1245
1292
  }
1293
+ /**
1294
+ * @public
1295
+ * @enum
1296
+ */
1297
+ export declare const DataSourceLevelMetricsConfig: {
1298
+ readonly DISABLED: "DISABLED";
1299
+ readonly ENABLED: "ENABLED";
1300
+ };
1301
+ /**
1302
+ * @public
1303
+ */
1304
+ export type DataSourceLevelMetricsConfig = (typeof DataSourceLevelMetricsConfig)[keyof typeof DataSourceLevelMetricsConfig];
1246
1305
  /**
1247
1306
  * @public
1248
1307
  * <p>Describes an OpenSearch data source configuration.</p>
@@ -1410,6 +1469,17 @@ export interface CreateDataSourceRequest {
1410
1469
  * <p>Amazon EventBridge settings.</p>
1411
1470
  */
1412
1471
  eventBridgeConfig?: EventBridgeDataSourceConfig;
1472
+ /**
1473
+ * @public
1474
+ * <p>Enables or disables enhanced data source metrics for specified data sources. Note that
1475
+ * <code>metricsConfig</code> won't be used unless the <code>dataSourceLevelMetricsBehavior</code> value is set
1476
+ * to <code>PER_DATA_SOURCE_METRICS</code>. If the <code>dataSourceLevelMetricsBehavior</code> is set to
1477
+ * <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However,
1478
+ * you can still set its value.</p>
1479
+ * <p>
1480
+ * <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.</p>
1481
+ */
1482
+ metricsConfig?: DataSourceLevelMetricsConfig;
1413
1483
  }
1414
1484
  /**
1415
1485
  * @public
@@ -1518,6 +1588,17 @@ export interface DataSource {
1518
1588
  * <p>Amazon EventBridge settings.</p>
1519
1589
  */
1520
1590
  eventBridgeConfig?: EventBridgeDataSourceConfig;
1591
+ /**
1592
+ * @public
1593
+ * <p>Enables or disables enhanced data source metrics for specified data sources. Note that
1594
+ * <code>metricsConfig</code> won't be used unless the <code>dataSourceLevelMetricsBehavior</code> value is set
1595
+ * to <code>PER_DATA_SOURCE_METRICS</code>. If the <code>dataSourceLevelMetricsBehavior</code> is set to
1596
+ * <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However,
1597
+ * you can still set its value.</p>
1598
+ * <p>
1599
+ * <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.</p>
1600
+ */
1601
+ metricsConfig?: DataSourceLevelMetricsConfig;
1521
1602
  }
1522
1603
  /**
1523
1604
  * @public
@@ -1844,6 +1925,223 @@ export declare const GraphQLApiType: {
1844
1925
  * @public
1845
1926
  */
1846
1927
  export type GraphQLApiType = (typeof GraphQLApiType)[keyof typeof GraphQLApiType];
1928
+ /**
1929
+ * @public
1930
+ * @enum
1931
+ */
1932
+ export declare const DataSourceLevelMetricsBehavior: {
1933
+ readonly FULL_REQUEST_DATA_SOURCE_METRICS: "FULL_REQUEST_DATA_SOURCE_METRICS";
1934
+ readonly PER_DATA_SOURCE_METRICS: "PER_DATA_SOURCE_METRICS";
1935
+ };
1936
+ /**
1937
+ * @public
1938
+ */
1939
+ export type DataSourceLevelMetricsBehavior = (typeof DataSourceLevelMetricsBehavior)[keyof typeof DataSourceLevelMetricsBehavior];
1940
+ /**
1941
+ * @public
1942
+ * @enum
1943
+ */
1944
+ export declare const OperationLevelMetricsConfig: {
1945
+ readonly DISABLED: "DISABLED";
1946
+ readonly ENABLED: "ENABLED";
1947
+ };
1948
+ /**
1949
+ * @public
1950
+ */
1951
+ export type OperationLevelMetricsConfig = (typeof OperationLevelMetricsConfig)[keyof typeof OperationLevelMetricsConfig];
1952
+ /**
1953
+ * @public
1954
+ * @enum
1955
+ */
1956
+ export declare const ResolverLevelMetricsBehavior: {
1957
+ readonly FULL_REQUEST_RESOLVER_METRICS: "FULL_REQUEST_RESOLVER_METRICS";
1958
+ readonly PER_RESOLVER_METRICS: "PER_RESOLVER_METRICS";
1959
+ };
1960
+ /**
1961
+ * @public
1962
+ */
1963
+ export type ResolverLevelMetricsBehavior = (typeof ResolverLevelMetricsBehavior)[keyof typeof ResolverLevelMetricsBehavior];
1964
+ /**
1965
+ * @public
1966
+ * <p>Enables and controls the enhanced metrics feature. Enhanced metrics emit granular data on API usage and
1967
+ * performance such as AppSync request and error counts, latency, and cache hits/misses. All enhanced metric data
1968
+ * is sent to your CloudWatch account, and you can configure the types of data that will be sent. </p>
1969
+ * <p>Enhanced metrics can be configured at the resolver, data source, and operation levels.
1970
+ * <code>EnhancedMetricsConfig</code> contains three required parameters, each controlling one of these
1971
+ * categories:</p>
1972
+ * <ol>
1973
+ * <li>
1974
+ * <p>
1975
+ * <code>resolverLevelMetricsBehavior</code>: Controls how resolver metrics will be emitted to
1976
+ * CloudWatch. Resolver metrics include:</p>
1977
+ * <ul>
1978
+ * <li>
1979
+ * <p>GraphQL errors: The number of GraphQL errors that occurred.</p>
1980
+ * </li>
1981
+ * <li>
1982
+ * <p>Requests: The number of invocations that occurred during a request. </p>
1983
+ * </li>
1984
+ * <li>
1985
+ * <p>Latency: The time to complete a resolver invocation.</p>
1986
+ * </li>
1987
+ * <li>
1988
+ * <p>Cache hits: The number of cache hits during a request.</p>
1989
+ * </li>
1990
+ * <li>
1991
+ * <p>Cache misses: The number of cache misses during a request.</p>
1992
+ * </li>
1993
+ * </ul>
1994
+ * <p>These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics
1995
+ * will be recorded by API ID and resolver name. <code>resolverLevelMetricsBehavior</code> accepts one of
1996
+ * these values at a time:</p>
1997
+ * <ul>
1998
+ * <li>
1999
+ * <p>
2000
+ * <code>FULL_REQUEST_RESOLVER_METRICS</code>: Records and emits metric data for all resolvers
2001
+ * in the request.</p>
2002
+ * </li>
2003
+ * <li>
2004
+ * <p>
2005
+ * <code>PER_RESOLVER_METRICS</code>: Records and emits metric data for resolvers that have the
2006
+ * <code>metricConfig</code> value set to <code>ENABLED</code>.</p>
2007
+ * </li>
2008
+ * </ul>
2009
+ * </li>
2010
+ * <li>
2011
+ * <p>
2012
+ * <code>dataSourceLevelMetricsBehavior</code>: Controls how data source metrics will be emitted to
2013
+ * CloudWatch. Data source metrics include:</p>
2014
+ * <ul>
2015
+ * <li>
2016
+ * <p>Requests: The number of invocations that occured during a request.</p>
2017
+ * </li>
2018
+ * <li>
2019
+ * <p>Latency: The time to complete a data source invocation.</p>
2020
+ * </li>
2021
+ * <li>
2022
+ * <p>Errors: The number of errors that occurred during a data source invocation.</p>
2023
+ * </li>
2024
+ * </ul>
2025
+ * <p>These metrics can be emitted to CloudWatch per data source or for all data sources in the request.
2026
+ * Metrics will be recorded by API ID and data source name. <code>dataSourceLevelMetricsBehavior</code>
2027
+ * accepts one of these values at a time:</p>
2028
+ * <ul>
2029
+ * <li>
2030
+ * <p>
2031
+ * <code>FULL_REQUEST_DATA_SOURCE_METRICS</code>: Records and emits metric data for all data
2032
+ * sources in the request.</p>
2033
+ * </li>
2034
+ * <li>
2035
+ * <p>
2036
+ * <code>PER_DATA_SOURCE_METRICS</code>: Records and emits metric data for data sources that
2037
+ * have the <code>metricConfig</code> value set to <code>ENABLED</code>.</p>
2038
+ * </li>
2039
+ * </ul>
2040
+ * </li>
2041
+ * <li>
2042
+ * <p>
2043
+ * <code>operationLevelMetricsConfig</code>: Controls how operation metrics will be emitted to
2044
+ * CloudWatch. Operation metrics include:</p>
2045
+ * <ul>
2046
+ * <li>
2047
+ * <p>Requests: The number of times a specified GraphQL operation was called.</p>
2048
+ * </li>
2049
+ * <li>
2050
+ * <p>GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL
2051
+ * operation.</p>
2052
+ * </li>
2053
+ * </ul>
2054
+ * <p>Metrics will be recorded by API ID and operation name. You can set the value to <code>ENABLED</code>
2055
+ * or <code>DISABLED</code>.</p>
2056
+ * </li>
2057
+ * </ol>
2058
+ */
2059
+ export interface EnhancedMetricsConfig {
2060
+ /**
2061
+ * @public
2062
+ * <p>Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:</p>
2063
+ * <ul>
2064
+ * <li>
2065
+ * <p>GraphQL errors: The number of GraphQL errors that occurred.</p>
2066
+ * </li>
2067
+ * <li>
2068
+ * <p>Requests: The number of invocations that occurred during a request. </p>
2069
+ * </li>
2070
+ * <li>
2071
+ * <p>Latency: The time to complete a resolver invocation.</p>
2072
+ * </li>
2073
+ * <li>
2074
+ * <p>Cache hits: The number of cache hits during a request.</p>
2075
+ * </li>
2076
+ * <li>
2077
+ * <p>Cache misses: The number of cache misses during a request.</p>
2078
+ * </li>
2079
+ * </ul>
2080
+ * <p>These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be
2081
+ * recorded by API ID and resolver name. <code>resolverLevelMetricsBehavior</code> accepts one of these values at
2082
+ * a time:</p>
2083
+ * <ul>
2084
+ * <li>
2085
+ * <p>
2086
+ * <code>FULL_REQUEST_RESOLVER_METRICS</code>: Records and emits metric data for all resolvers in the
2087
+ * request.</p>
2088
+ * </li>
2089
+ * <li>
2090
+ * <p>
2091
+ * <code>PER_RESOLVER_METRICS</code>: Records and emits metric data for resolvers that have the
2092
+ * <code>metricConfig</code> value set to <code>ENABLED</code>.</p>
2093
+ * </li>
2094
+ * </ul>
2095
+ */
2096
+ resolverLevelMetricsBehavior: ResolverLevelMetricsBehavior | undefined;
2097
+ /**
2098
+ * @public
2099
+ * <p>Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:</p>
2100
+ * <ul>
2101
+ * <li>
2102
+ * <p>Requests: The number of invocations that occured during a request.</p>
2103
+ * </li>
2104
+ * <li>
2105
+ * <p>Latency: The time to complete a data source invocation.</p>
2106
+ * </li>
2107
+ * <li>
2108
+ * <p>Errors: The number of errors that occurred during a data source invocation.</p>
2109
+ * </li>
2110
+ * </ul>
2111
+ * <p>These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics
2112
+ * will be recorded by API ID and data source name. <code>dataSourceLevelMetricsBehavior</code> accepts one of
2113
+ * these values at a time:</p>
2114
+ * <ul>
2115
+ * <li>
2116
+ * <p>
2117
+ * <code>FULL_REQUEST_DATA_SOURCE_METRICS</code>: Records and emits metric data for all data sources
2118
+ * in the request.</p>
2119
+ * </li>
2120
+ * <li>
2121
+ * <p>
2122
+ * <code>PER_DATA_SOURCE_METRICS</code>: Records and emits metric data for data sources that have the
2123
+ * <code>metricConfig</code> value set to <code>ENABLED</code>.</p>
2124
+ * </li>
2125
+ * </ul>
2126
+ */
2127
+ dataSourceLevelMetricsBehavior: DataSourceLevelMetricsBehavior | undefined;
2128
+ /**
2129
+ * @public
2130
+ * <p> Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:</p>
2131
+ * <ul>
2132
+ * <li>
2133
+ * <p>Requests: The number of times a specified GraphQL operation was called.</p>
2134
+ * </li>
2135
+ * <li>
2136
+ * <p>GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL
2137
+ * operation.</p>
2138
+ * </li>
2139
+ * </ul>
2140
+ * <p>Metrics will be recorded by API ID and operation name. You can set the value to <code>ENABLED</code> or
2141
+ * <code>DISABLED</code>.</p>
2142
+ */
2143
+ operationLevelMetricsConfig: OperationLevelMetricsConfig | undefined;
2144
+ }
1847
2145
  /**
1848
2146
  * @public
1849
2147
  * @enum
@@ -2083,6 +2381,11 @@ export interface CreateGraphqlApiRequest {
2083
2381
  * of bounds.</p>
2084
2382
  */
2085
2383
  resolverCountLimit?: number;
2384
+ /**
2385
+ * @public
2386
+ * <p>The <code>enhancedMetricsConfig</code> object.</p>
2387
+ */
2388
+ enhancedMetricsConfig?: EnhancedMetricsConfig;
2086
2389
  }
2087
2390
  /**
2088
2391
  * @public
@@ -2219,6 +2522,11 @@ export interface GraphqlApi {
2219
2522
  * of bounds.</p>
2220
2523
  */
2221
2524
  resolverCountLimit?: number;
2525
+ /**
2526
+ * @public
2527
+ * <p>The <code>enhancedMetricsConfig</code> object.</p>
2528
+ */
2529
+ enhancedMetricsConfig?: EnhancedMetricsConfig;
2222
2530
  }
2223
2531
  /**
2224
2532
  * @public
@@ -2261,6 +2569,18 @@ export declare const ResolverKind: {
2261
2569
  * @public
2262
2570
  */
2263
2571
  export type ResolverKind = (typeof ResolverKind)[keyof typeof ResolverKind];
2572
+ /**
2573
+ * @public
2574
+ * @enum
2575
+ */
2576
+ export declare const ResolverLevelMetricsConfig: {
2577
+ readonly DISABLED: "DISABLED";
2578
+ readonly ENABLED: "ENABLED";
2579
+ };
2580
+ /**
2581
+ * @public
2582
+ */
2583
+ export type ResolverLevelMetricsConfig = (typeof ResolverLevelMetricsConfig)[keyof typeof ResolverLevelMetricsConfig];
2264
2584
  /**
2265
2585
  * @public
2266
2586
  * <p>The pipeline configuration for a resolver of kind <code>PIPELINE</code>.</p>
@@ -2361,6 +2681,17 @@ export interface CreateResolverRequest {
2361
2681
  * <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
2362
2682
  */
2363
2683
  code?: string;
2684
+ /**
2685
+ * @public
2686
+ * <p>Enables or disables enhanced resolver metrics for specified resolvers. Note that <code>metricsConfig</code>
2687
+ * won't be used unless the <code>resolverLevelMetricsBehavior</code> value is set to
2688
+ * <code>PER_RESOLVER_METRICS</code>. If the <code>resolverLevelMetricsBehavior</code> is set to
2689
+ * <code>FULL_REQUEST_RESOLVER_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However, you
2690
+ * can still set its value.</p>
2691
+ * <p>
2692
+ * <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.</p>
2693
+ */
2694
+ metricsConfig?: ResolverLevelMetricsConfig;
2364
2695
  }
2365
2696
  /**
2366
2697
  * @public
@@ -2448,6 +2779,17 @@ export interface Resolver {
2448
2779
  * <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
2449
2780
  */
2450
2781
  code?: string;
2782
+ /**
2783
+ * @public
2784
+ * <p>Enables or disables enhanced resolver metrics for specified resolvers. Note that <code>metricsConfig</code>
2785
+ * won't be used unless the <code>resolverLevelMetricsBehavior</code> value is set to
2786
+ * <code>PER_RESOLVER_METRICS</code>. If the <code>resolverLevelMetricsBehavior</code> is set to
2787
+ * <code>FULL_REQUEST_RESOLVER_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However, you
2788
+ * can still set its value.</p>
2789
+ * <p>
2790
+ * <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.</p>
2791
+ */
2792
+ metricsConfig?: ResolverLevelMetricsConfig;
2451
2793
  }
2452
2794
  /**
2453
2795
  * @public
@@ -3786,7 +4128,7 @@ export interface PutGraphqlApiEnvironmentVariablesRequest {
3786
4128
  * </ul>
3787
4129
  * <p>You can create a list of environmental variables by adding it to the <code>environmentVariables</code>
3788
4130
  * payload as a list in the format <code>\{"key1":"value1","key2":"value2", …\}</code>. Note that each call of the
3789
- * <code>PutGraphqlApiEnvironmentVariables</code> action will result in the overwriting of the existing
4131
+ * <code>PutGraphqlApiEnvironmentVariables</code> action will result in the overwriting of the existing
3790
4132
  * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid
3791
4133
  * this, you must include all existing and new environmental variables in the list each time you call this
3792
4134
  * action.</p>
@@ -4066,6 +4408,23 @@ export interface UpdateApiCacheRequest {
4066
4408
  * </ul>
4067
4409
  */
4068
4410
  type: ApiCacheType | undefined;
4411
+ /**
4412
+ * @public
4413
+ * <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:</p>
4414
+ * <ul>
4415
+ * <li>
4416
+ * <p>NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was
4417
+ * called.</p>
4418
+ * </li>
4419
+ * <li>
4420
+ * <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL
4421
+ * operation.</p>
4422
+ * </li>
4423
+ * </ul>
4424
+ * <p>Metrics will be recorded by API ID. You can set the value to <code>ENABLED</code> or
4425
+ * <code>DISABLED</code>.</p>
4426
+ */
4427
+ healthMetricsConfig?: CacheHealthMetricsConfig;
4069
4428
  }
4070
4429
  /**
4071
4430
  * @public
@@ -4180,6 +4539,17 @@ export interface UpdateDataSourceRequest {
4180
4539
  * <p>The new Amazon EventBridge settings.</p>
4181
4540
  */
4182
4541
  eventBridgeConfig?: EventBridgeDataSourceConfig;
4542
+ /**
4543
+ * @public
4544
+ * <p>Enables or disables enhanced data source metrics for specified data sources. Note that
4545
+ * <code>metricsConfig</code> won't be used unless the <code>dataSourceLevelMetricsBehavior</code> value is set
4546
+ * to <code>PER_DATA_SOURCE_METRICS</code>. If the <code>dataSourceLevelMetricsBehavior</code> is set to
4547
+ * <code>FULL_REQUEST_DATA_SOURCE_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However,
4548
+ * you can still set its value.</p>
4549
+ * <p>
4550
+ * <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.</p>
4551
+ */
4552
+ metricsConfig?: DataSourceLevelMetricsConfig;
4183
4553
  }
4184
4554
  /**
4185
4555
  * @public
@@ -4389,6 +4759,11 @@ export interface UpdateGraphqlApiRequest {
4389
4759
  * of bounds.</p>
4390
4760
  */
4391
4761
  resolverCountLimit?: number;
4762
+ /**
4763
+ * @public
4764
+ * <p>The <code>enhancedMetricsConfig</code> object.</p>
4765
+ */
4766
+ enhancedMetricsConfig?: EnhancedMetricsConfig;
4392
4767
  }
4393
4768
  /**
4394
4769
  * @public
@@ -4489,6 +4864,17 @@ export interface UpdateResolverRequest {
4489
4864
  * <code>runtime</code> is required. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>
4490
4865
  */
4491
4866
  code?: string;
4867
+ /**
4868
+ * @public
4869
+ * <p>Enables or disables enhanced resolver metrics for specified resolvers. Note that <code>metricsConfig</code>
4870
+ * won't be used unless the <code>resolverLevelMetricsBehavior</code> value is set to
4871
+ * <code>PER_RESOLVER_METRICS</code>. If the <code>resolverLevelMetricsBehavior</code> is set to
4872
+ * <code>FULL_REQUEST_RESOLVER_METRICS</code> instead, <code>metricsConfig</code> will be ignored. However, you
4873
+ * can still set its value.</p>
4874
+ * <p>
4875
+ * <code>metricsConfig</code> can be <code>ENABLED</code> or <code>DISABLED</code>.</p>
4876
+ */
4877
+ metricsConfig?: ResolverLevelMetricsConfig;
4492
4878
  }
4493
4879
  /**
4494
4880
  * @public
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppSyncHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
40
43
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
44
  signingEscapePath?: boolean | undefined;
42
45
  systemClockOffset?: number | undefined;
43
46
  signingRegion?: string | undefined;
44
47
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
48
  };
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppSyncHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
40
43
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
44
  signingEscapePath?: boolean | undefined;
42
45
  systemClockOffset?: number | undefined;
43
46
  signingRegion?: string | undefined;
44
47
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
48
  };
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
21
21
  serviceId: string;
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
- region: string | import("@smithy/types").Provider<any>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
26
24
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
25
+ region: string | import("@smithy/types").Provider<any>;
26
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
27
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
29
  logger: import("@smithy/types").Logger;
@@ -35,11 +35,13 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
35
35
  }) => import("@smithy/types").EndpointV2;
36
36
  tls?: boolean | undefined;
37
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
38
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
38
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
39
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
40
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppSyncHttpAuthSchemeProvider;
41
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
39
42
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
40
43
  signingEscapePath?: boolean | undefined;
41
44
  systemClockOffset?: number | undefined;
42
45
  signingRegion?: string | undefined;
43
46
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
44
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
47
  };
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
11
11
  logger?: import("@smithy/types").Logger | undefined;
12
12
  }) => import("@smithy/types").EndpointV2;
13
13
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AppSyncHttpAuthSchemeProvider;
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
14
16
  logger: import("@smithy/types").Logger;
15
17
  serviceId: string;
16
18
  urlParser: import("@smithy/types").UrlParser;
@@ -2,15 +2,10 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
- import {
6
- AwsAuthInputConfig,
7
- AwsAuthResolvedConfig,
8
- } from "@aws-sdk/middleware-signing";
9
5
  import {
10
6
  UserAgentInputConfig,
11
7
  UserAgentResolvedConfig,
12
8
  } from "@aws-sdk/middleware-user-agent";
13
- import { Credentials as __Credentials } from "@aws-sdk/types";
14
9
  import {
15
10
  RegionInputConfig,
16
11
  RegionResolvedConfig,
@@ -31,6 +26,7 @@ import {
31
26
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
27
  } from "@smithy/smithy-client";
33
28
  import {
29
+ AwsCredentialIdentityProvider,
34
30
  BodyLengthCalculator as __BodyLengthCalculator,
35
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -45,6 +41,10 @@ import {
45
41
  UrlParser as __UrlParser,
46
42
  UserAgent as __UserAgent,
47
43
  } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
48
  import {
49
49
  AssociateApiCommandInput,
50
50
  AssociateApiCommandOutput,
@@ -454,9 +454,9 @@ export interface ClientDefaults
454
454
  serviceId?: string;
455
455
  useDualstackEndpoint?: boolean | __Provider<boolean>;
456
456
  useFipsEndpoint?: boolean | __Provider<boolean>;
457
- region?: string | __Provider<string>;
458
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
459
457
  defaultUserAgentProvider?: Provider<__UserAgent>;
458
+ region?: string | __Provider<string>;
459
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
460
460
  maxAttempts?: number | __Provider<number>;
461
461
  retryMode?: string | __Provider<string>;
462
462
  logger?: __Logger;
@@ -471,8 +471,8 @@ export type AppSyncClientConfigType = Partial<
471
471
  EndpointInputConfig<EndpointParameters> &
472
472
  RetryInputConfig &
473
473
  HostHeaderInputConfig &
474
- AwsAuthInputConfig &
475
474
  UserAgentInputConfig &
475
+ HttpAuthSchemeInputConfig &
476
476
  ClientInputEndpointParameters;
477
477
  export interface AppSyncClientConfig extends AppSyncClientConfigType {}
478
478
  export type AppSyncClientResolvedConfigType =
@@ -483,8 +483,8 @@ export type AppSyncClientResolvedConfigType =
483
483
  EndpointResolvedConfig<EndpointParameters> &
484
484
  RetryResolvedConfig &
485
485
  HostHeaderResolvedConfig &
486
- AwsAuthResolvedConfig &
487
486
  UserAgentResolvedConfig &
487
+ HttpAuthSchemeResolvedConfig &
488
488
  ClientResolvedEndpointParameters;
489
489
  export interface AppSyncClientResolvedConfig
490
490
  extends AppSyncClientResolvedConfigType {}
@@ -499,4 +499,6 @@ export declare class AppSyncClient extends __Client<
499
499
  ...[configuration]: __CheckOptionalClientConfig<AppSyncClientConfig>
500
500
  );
501
501
  destroy(): void;
502
+ private getDefaultHttpAuthSchemeParametersProvider;
503
+ private getIdentityProviderConfigProvider;
502
504
  }