@aws-sdk/client-appsync 3.515.0 → 3.523.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.
@@ -28,7 +28,7 @@ const getRuntimeConfig = (config) => {
28
28
  (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
29
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
30
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
- requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
31
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
32
32
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
33
33
  sha256: config?.sha256 ?? sha256_browser_1.Sha256,
34
34
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
@@ -34,7 +34,7 @@ const getRuntimeConfig = (config) => {
34
34
  (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
35
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
36
  region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
- requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
37
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
38
38
  retryMode: config?.retryMode ??
39
39
  (0, node_config_provider_1.loadConfig)({
40
40
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -24,7 +24,7 @@ export const getRuntimeConfig = (config) => {
24
24
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
25
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
26
  region: config?.region ?? invalidProvider("Region is missing"),
27
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
28
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
29
  sha256: config?.sha256 ?? Sha256,
30
30
  streamCollector: config?.streamCollector ?? streamCollector,
@@ -30,7 +30,7 @@ export const getRuntimeConfig = (config) => {
30
30
  defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
31
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
32
32
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
33
- requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
33
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
34
  retryMode: config?.retryMode ??
35
35
  loadNodeConfig({
36
36
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -3,7 +3,7 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
3
3
  import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
4
  import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
8
  import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
@@ -85,11 +85,11 @@ export type ServiceOutputTypes = AssociateApiCommandOutput | AssociateMergedGrap
85
85
  /**
86
86
  * @public
87
87
  */
88
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
88
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
89
89
  /**
90
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
90
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
91
91
  */
92
- requestHandler?: __HttpHandler;
92
+ requestHandler?: __HttpHandlerUserInput;
93
93
  /**
94
94
  * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
95
95
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
@@ -1123,12 +1123,13 @@ export interface CreateApiCacheRequest {
1123
1123
  * <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:</p>
1124
1124
  * <ul>
1125
1125
  * <li>
1126
- * <p>NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was
1127
- * called.</p>
1126
+ * <p>NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded
1127
+ * the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache
1128
+ * configuration.</p>
1128
1129
  * </li>
1129
1130
  * <li>
1130
- * <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL
1131
- * operation.</p>
1131
+ * <p>EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is
1132
+ * useful for diagnosing bottlenecks in a cache configuration.</p>
1132
1133
  * </li>
1133
1134
  * </ul>
1134
1135
  * <p>Metrics will be recorded by API ID. You can set the value to <code>ENABLED</code> or
@@ -2003,7 +2004,7 @@ export type ResolverLevelMetricsBehavior = (typeof ResolverLevelMetricsBehavior)
2003
2004
  * <li>
2004
2005
  * <p>
2005
2006
  * <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
+ * <code>metricsConfig</code> value set to <code>ENABLED</code>.</p>
2007
2008
  * </li>
2008
2009
  * </ul>
2009
2010
  * </li>
@@ -2034,7 +2035,7 @@ export type ResolverLevelMetricsBehavior = (typeof ResolverLevelMetricsBehavior)
2034
2035
  * <li>
2035
2036
  * <p>
2036
2037
  * <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
+ * have the <code>metricsConfig</code> value set to <code>ENABLED</code>.</p>
2038
2039
  * </li>
2039
2040
  * </ul>
2040
2041
  * </li>
@@ -2089,7 +2090,7 @@ export interface EnhancedMetricsConfig {
2089
2090
  * <li>
2090
2091
  * <p>
2091
2092
  * <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
+ * <code>metricsConfig</code> value set to <code>ENABLED</code>.</p>
2093
2094
  * </li>
2094
2095
  * </ul>
2095
2096
  */
@@ -2120,7 +2121,7 @@ export interface EnhancedMetricsConfig {
2120
2121
  * <li>
2121
2122
  * <p>
2122
2123
  * <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
+ * <code>metricsConfig</code> value set to <code>ENABLED</code>.</p>
2124
2125
  * </li>
2125
2126
  * </ul>
2126
2127
  */
@@ -4413,12 +4414,13 @@ export interface UpdateApiCacheRequest {
4413
4414
  * <p>Controls how cache health metrics will be emitted to CloudWatch. Cache health metrics include:</p>
4414
4415
  * <ul>
4415
4416
  * <li>
4416
- * <p>NetworkBandwidthOutAllowanceExceeded: The number of times a specified GraphQL operation was
4417
- * called.</p>
4417
+ * <p>NetworkBandwidthOutAllowanceExceeded: The network packets dropped because the throughput exceeded
4418
+ * the aggregated bandwidth limit. This is useful for diagnosing bottlenecks in a cache
4419
+ * configuration.</p>
4418
4420
  * </li>
4419
4421
  * <li>
4420
- * <p>EngineCPUUtilization: The number of GraphQL errors that occurred during a specified GraphQL
4421
- * operation.</p>
4422
+ * <p>EngineCPUUtilization: The CPU utilization (percentage) allocated to the Redis process. This is
4423
+ * useful for diagnosing bottlenecks in a cache configuration.</p>
4422
4424
  * </li>
4423
4425
  * </ul>
4424
4426
  * <p>Metrics will be recorded by API ID. You can set the value to <code>ENABLED</code> or
@@ -11,10 +11,7 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
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>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
- updateHttpClientConfig(key: never, value: never): void;
16
- httpHandlerConfigs(): {};
17
- }) | RequestHandler;
14
+ requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
18
15
  retryMode: string | import("@smithy/types").Provider<string>;
19
16
  sha256: import("@smithy/types").HashConstructor;
20
17
  streamCollector: import("@smithy/types").StreamCollector;
@@ -11,10 +11,7 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
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<string>;
14
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
- updateHttpClientConfig(key: never, value: never): void;
16
- httpHandlerConfigs(): {};
17
- }) | RequestHandler;
14
+ requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
18
15
  retryMode: string | import("@smithy/types").Provider<string>;
19
16
  sha256: import("@smithy/types").HashConstructor;
20
17
  streamCollector: import("@smithy/types").StreamCollector;
@@ -5,10 +5,7 @@ import { AppSyncClientConfig } from "./AppSyncClient";
5
5
  export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
6
6
  runtime: string;
7
7
  sha256: import("@smithy/types").HashConstructor;
8
- requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
- updateHttpClientConfig(key: never, value: never): void;
10
- httpHandlerConfigs(): {};
11
- }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
8
+ requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
9
  apiVersion: string;
13
10
  urlParser: import("@smithy/types").UrlParser;
14
11
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -18,7 +18,7 @@ import {
18
18
  RetryInputConfig,
19
19
  RetryResolvedConfig,
20
20
  } from "@smithy/middleware-retry";
21
- import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
21
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
22
22
  import {
23
23
  Client as __Client,
24
24
  DefaultsMode as __DefaultsMode,
@@ -439,8 +439,8 @@ export type ServiceOutputTypes =
439
439
  | UpdateSourceApiAssociationCommandOutput
440
440
  | UpdateTypeCommandOutput;
441
441
  export interface ClientDefaults
442
- extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
443
- requestHandler?: __HttpHandler;
442
+ extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
443
+ requestHandler?: __HttpHandlerUserInput;
444
444
  sha256?: __ChecksumConstructor | __HashConstructor;
445
445
  urlParser?: __UrlParser;
446
446
  bodyLengthChecker?: __BodyLengthCalculator;
@@ -15,19 +15,7 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
15
15
  maxAttempts: number | import("@smithy/types").Provider<number>;
16
16
  region: string | import("@smithy/types").Provider<any>;
17
17
  requestHandler:
18
- | (import("@smithy/types").RequestHandler<
19
- any,
20
- any,
21
- import("@smithy/types").HttpHandlerOptions
22
- > &
23
- import("@smithy/types").RequestHandler<
24
- import("@smithy/protocol-http").HttpRequest,
25
- import("@smithy/protocol-http").HttpResponse,
26
- import("@smithy/types").HttpHandlerOptions
27
- > & {
28
- updateHttpClientConfig(key: never, value: never): void;
29
- httpHandlerConfigs(): {};
30
- })
18
+ | import("@smithy/protocol-http").HttpHandler<any>
31
19
  | RequestHandler;
32
20
  retryMode: string | import("@smithy/types").Provider<string>;
33
21
  sha256: import("@smithy/types").HashConstructor;
@@ -19,20 +19,8 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
19
19
  maxAttempts: number | import("@smithy/types").Provider<number>;
20
20
  region: string | import("@smithy/types").Provider<string>;
21
21
  requestHandler:
22
- | (import("@smithy/types").RequestHandler<
23
- any,
24
- any,
25
- import("@smithy/types").HttpHandlerOptions
26
- > &
27
- import("@smithy/types").RequestHandler<
28
- import("@smithy/protocol-http").HttpRequest,
29
- import("@smithy/protocol-http").HttpResponse,
30
- import("@smithy/types").HttpHandlerOptions
31
- > & {
32
- updateHttpClientConfig(key: never, value: never): void;
33
- httpHandlerConfigs(): {};
34
- })
35
- | RequestHandler;
22
+ | RequestHandler
23
+ | import("@smithy/protocol-http").HttpHandler<any>;
36
24
  retryMode: string | import("@smithy/types").Provider<string>;
37
25
  sha256: import("@smithy/types").HashConstructor;
38
26
  streamCollector: import("@smithy/types").StreamCollector;
@@ -3,19 +3,10 @@ export declare const getRuntimeConfig: (config: AppSyncClientConfig) => {
3
3
  runtime: string;
4
4
  sha256: import("@smithy/types").HashConstructor;
5
5
  requestHandler:
6
- | (import("@smithy/types").RequestHandler<
7
- any,
8
- any,
9
- import("@smithy/types").HttpHandlerOptions
10
- > &
11
- import("@smithy/types").RequestHandler<
12
- import("@smithy/protocol-http").HttpRequest,
13
- import("@smithy/protocol-http").HttpResponse,
14
- import("@smithy/types").HttpHandlerOptions
15
- > & {
16
- updateHttpClientConfig(key: never, value: never): void;
17
- httpHandlerConfigs(): {};
18
- })
6
+ | import("@smithy/types").NodeHttpHandlerOptions
7
+ | import("@smithy/types").FetchHttpHandlerOptions
8
+ | Record<string, unknown>
9
+ | import("@smithy/protocol-http").HttpHandler<any>
19
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
20
11
  apiVersion: string;
21
12
  urlParser: import("@smithy/types").UrlParser;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appsync",
3
3
  "description": "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
4
- "version": "3.515.0",
4
+ "version": "3.523.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-appsync",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.515.0",
24
- "@aws-sdk/core": "3.513.0",
25
- "@aws-sdk/credential-provider-node": "3.515.0",
26
- "@aws-sdk/middleware-host-header": "3.515.0",
27
- "@aws-sdk/middleware-logger": "3.515.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.515.0",
29
- "@aws-sdk/middleware-user-agent": "3.515.0",
30
- "@aws-sdk/region-config-resolver": "3.515.0",
31
- "@aws-sdk/types": "3.515.0",
32
- "@aws-sdk/util-endpoints": "3.515.0",
33
- "@aws-sdk/util-user-agent-browser": "3.515.0",
34
- "@aws-sdk/util-user-agent-node": "3.515.0",
35
- "@smithy/config-resolver": "^2.1.1",
36
- "@smithy/core": "^1.3.2",
37
- "@smithy/fetch-http-handler": "^2.4.1",
38
- "@smithy/hash-node": "^2.1.1",
39
- "@smithy/invalid-dependency": "^2.1.1",
40
- "@smithy/middleware-content-length": "^2.1.1",
41
- "@smithy/middleware-endpoint": "^2.4.1",
42
- "@smithy/middleware-retry": "^2.1.1",
43
- "@smithy/middleware-serde": "^2.1.1",
44
- "@smithy/middleware-stack": "^2.1.1",
45
- "@smithy/node-config-provider": "^2.2.1",
46
- "@smithy/node-http-handler": "^2.3.1",
47
- "@smithy/protocol-http": "^3.1.1",
48
- "@smithy/smithy-client": "^2.3.1",
49
- "@smithy/types": "^2.9.1",
50
- "@smithy/url-parser": "^2.1.1",
23
+ "@aws-sdk/client-sts": "3.523.0",
24
+ "@aws-sdk/core": "3.523.0",
25
+ "@aws-sdk/credential-provider-node": "3.523.0",
26
+ "@aws-sdk/middleware-host-header": "3.523.0",
27
+ "@aws-sdk/middleware-logger": "3.523.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.523.0",
30
+ "@aws-sdk/region-config-resolver": "3.523.0",
31
+ "@aws-sdk/types": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.523.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.523.0",
34
+ "@aws-sdk/util-user-agent-node": "3.523.0",
35
+ "@smithy/config-resolver": "^2.1.3",
36
+ "@smithy/core": "^1.3.4",
37
+ "@smithy/fetch-http-handler": "^2.4.3",
38
+ "@smithy/hash-node": "^2.1.3",
39
+ "@smithy/invalid-dependency": "^2.1.3",
40
+ "@smithy/middleware-content-length": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.3",
42
+ "@smithy/middleware-retry": "^2.1.3",
43
+ "@smithy/middleware-serde": "^2.1.3",
44
+ "@smithy/middleware-stack": "^2.1.3",
45
+ "@smithy/node-config-provider": "^2.2.3",
46
+ "@smithy/node-http-handler": "^2.4.1",
47
+ "@smithy/protocol-http": "^3.2.1",
48
+ "@smithy/smithy-client": "^2.4.1",
49
+ "@smithy/types": "^2.10.1",
50
+ "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.1",
55
- "@smithy/util-defaults-mode-node": "^2.2.0",
56
- "@smithy/util-endpoints": "^1.1.1",
57
- "@smithy/util-middleware": "^2.1.1",
58
- "@smithy/util-retry": "^2.1.1",
59
- "@smithy/util-stream": "^2.1.1",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.3",
55
+ "@smithy/util-defaults-mode-node": "^2.2.2",
56
+ "@smithy/util-endpoints": "^1.1.3",
57
+ "@smithy/util-middleware": "^2.1.3",
58
+ "@smithy/util-retry": "^2.1.3",
59
+ "@smithy/util-stream": "^2.1.3",
60
60
  "@smithy/util-utf8": "^2.1.1",
61
61
  "tslib": "^2.5.0"
62
62
  },