@aws-sdk/client-appsync 3.744.0 → 3.746.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.
package/dist-cjs/index.js CHANGED
@@ -369,6 +369,7 @@ var AssociationStatus = {
369
369
  };
370
370
  var ApiCachingBehavior = {
371
371
  FULL_REQUEST_CACHING: "FULL_REQUEST_CACHING",
372
+ OPERATION_LEVEL_CACHING: "OPERATION_LEVEL_CACHING",
372
373
  PER_RESOLVER_CACHING: "PER_RESOLVER_CACHING"
373
374
  };
374
375
  var CacheHealthMetricsConfig = {
@@ -32,6 +32,7 @@ export const AssociationStatus = {
32
32
  };
33
33
  export const ApiCachingBehavior = {
34
34
  FULL_REQUEST_CACHING: "FULL_REQUEST_CACHING",
35
+ OPERATION_LEVEL_CACHING: "OPERATION_LEVEL_CACHING",
35
36
  PER_RESOLVER_CACHING: "PER_RESOLVER_CACHING",
36
37
  };
37
38
  export const CacheHealthMetricsConfig = {
@@ -39,7 +39,7 @@ declare const CreateApiCacheCommand_base: {
39
39
  * ttl: Number("long"), // required
40
40
  * transitEncryptionEnabled: true || false,
41
41
  * atRestEncryptionEnabled: true || false,
42
- * apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING", // required
42
+ * apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING" || "OPERATION_LEVEL_CACHING", // required
43
43
  * 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", // required
44
44
  * healthMetricsConfig: "ENABLED" || "DISABLED",
45
45
  * };
@@ -48,7 +48,7 @@ declare const CreateApiCacheCommand_base: {
48
48
  * // { // CreateApiCacheResponse
49
49
  * // apiCache: { // ApiCache
50
50
  * // ttl: Number("long"),
51
- * // apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING",
51
+ * // apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING" || "OPERATION_LEVEL_CACHING",
52
52
  * // transitEncryptionEnabled: true || false,
53
53
  * // atRestEncryptionEnabled: true || false,
54
54
  * // 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",
@@ -95,10 +95,9 @@ declare const CreateChannelNamespaceCommand_base: {
95
95
  * make your change.</p>
96
96
  *
97
97
  * @throws {@link ConflictException} (client fault)
98
- * <p>A conflict with a previous successful update is detected. This typically
99
- * occurs when the previous update did not have time to propagate before the next update was
100
- * made. A retry (with appropriate backoff logic) is the recommended response to this
101
- * exception.</p>
98
+ * <p>A conflict with a previous successful update is detected. This typically occurs when the
99
+ * previous update did not have time to propagate before the next update was made. A retry
100
+ * (with appropriate backoff logic) is the recommended response to this exception.</p>
102
101
  *
103
102
  * @throws {@link InternalFailureException} (server fault)
104
103
  * <p>An internal AppSync error occurred. Try your request again.</p>
@@ -42,7 +42,7 @@ declare const GetApiCacheCommand_base: {
42
42
  * // { // GetApiCacheResponse
43
43
  * // apiCache: { // ApiCache
44
44
  * // ttl: Number("long"),
45
- * // apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING",
45
+ * // apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING" || "OPERATION_LEVEL_CACHING",
46
46
  * // transitEncryptionEnabled: true || false,
47
47
  * // atRestEncryptionEnabled: true || false,
48
48
  * // 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",
@@ -30,8 +30,7 @@ declare const ListChannelNamespacesCommand_base: {
30
30
  * <p>Lists the channel namespaces for a specified <code>Api</code>.</p>
31
31
  * <p>
32
32
  * <code>ListChannelNamespaces</code> returns only high level details for the channel
33
- * namespace. To retrieve code handlers, use
34
- * <code>GetChannelNamespace</code>.</p>
33
+ * namespace. To retrieve code handlers, use <code>GetChannelNamespace</code>.</p>
35
34
  * @example
36
35
  * Use a bare-bones client and the command you need to make an API call.
37
36
  * ```javascript
@@ -37,7 +37,7 @@ declare const UpdateApiCacheCommand_base: {
37
37
  * const input = { // UpdateApiCacheRequest
38
38
  * apiId: "STRING_VALUE", // required
39
39
  * ttl: Number("long"), // required
40
- * apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING", // required
40
+ * apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING" || "OPERATION_LEVEL_CACHING", // required
41
41
  * 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", // required
42
42
  * healthMetricsConfig: "ENABLED" || "DISABLED",
43
43
  * };
@@ -46,7 +46,7 @@ declare const UpdateApiCacheCommand_base: {
46
46
  * // { // UpdateApiCacheResponse
47
47
  * // apiCache: { // ApiCache
48
48
  * // ttl: Number("long"),
49
- * // apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING",
49
+ * // apiCachingBehavior: "FULL_REQUEST_CACHING" || "PER_RESOLVER_CACHING" || "OPERATION_LEVEL_CACHING",
50
50
  * // transitEncryptionEnabled: true || false,
51
51
  * // atRestEncryptionEnabled: true || false,
52
52
  * // 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",
@@ -272,9 +272,8 @@ export interface EventConfig {
272
272
  logConfig?: EventLogConfig | undefined;
273
273
  }
274
274
  /**
275
- * <p>Describes an AppSync API. You can use <code>Api</code> for an AppSync
276
- * API with your preferred configuration, such as an Event API that provides real-time message
277
- * publishing and message subscriptions over WebSockets.</p>
275
+ * <p>Describes an AppSync API. You can use <code>Api</code> for an AppSync API with your preferred configuration, such as an Event API that provides
276
+ * real-time message publishing and message subscriptions over WebSockets.</p>
278
277
  * @public
279
278
  */
280
279
  export interface Api {
@@ -396,6 +395,7 @@ export interface ApiAssociation {
396
395
  */
397
396
  export declare const ApiCachingBehavior: {
398
397
  readonly FULL_REQUEST_CACHING: "FULL_REQUEST_CACHING";
398
+ readonly OPERATION_LEVEL_CACHING: "OPERATION_LEVEL_CACHING";
399
399
  readonly PER_RESOLVER_CACHING: "PER_RESOLVER_CACHING";
400
400
  };
401
401
  /**
@@ -470,14 +470,19 @@ export interface ApiCache {
470
470
  * <ul>
471
471
  * <li>
472
472
  * <p>
473
- * <b>FULL_REQUEST_CACHING</b>: All requests are fully
474
- * cached.</p>
473
+ * <b>FULL_REQUEST_CACHING</b>: All requests from the
474
+ * same user are cached. Individual resolvers are automatically cached. All API calls
475
+ * will try to return responses from the cache.</p>
475
476
  * </li>
476
477
  * <li>
477
478
  * <p>
478
479
  * <b>PER_RESOLVER_CACHING</b>: Individual resolvers
479
480
  * that you specify are cached.</p>
480
481
  * </li>
482
+ * <li>
483
+ * <p>
484
+ * <b>OPERATION_LEVEL_CACHING</b>: Full requests are cached together and returned without executing resolvers.</p>
485
+ * </li>
481
486
  * </ul>
482
487
  * @public
483
488
  */
@@ -1295,14 +1300,19 @@ export interface CreateApiCacheRequest {
1295
1300
  * <ul>
1296
1301
  * <li>
1297
1302
  * <p>
1298
- * <b>FULL_REQUEST_CACHING</b>: All requests are fully
1299
- * cached.</p>
1303
+ * <b>FULL_REQUEST_CACHING</b>: All requests from the
1304
+ * same user are cached. Individual resolvers are automatically cached. All API calls
1305
+ * will try to return responses from the cache.</p>
1300
1306
  * </li>
1301
1307
  * <li>
1302
1308
  * <p>
1303
1309
  * <b>PER_RESOLVER_CACHING</b>: Individual resolvers
1304
1310
  * that you specify are cached.</p>
1305
1311
  * </li>
1312
+ * <li>
1313
+ * <p>
1314
+ * <b>OPERATION_LEVEL_CACHING</b>: Full requests are cached together and returned without executing resolvers.</p>
1315
+ * </li>
1306
1316
  * </ul>
1307
1317
  * @public
1308
1318
  */
@@ -1450,10 +1460,9 @@ export interface CreateApiKeyResponse {
1450
1460
  apiKey?: ApiKey | undefined;
1451
1461
  }
1452
1462
  /**
1453
- * <p>A conflict with a previous successful update is detected. This typically
1454
- * occurs when the previous update did not have time to propagate before the next update was
1455
- * made. A retry (with appropriate backoff logic) is the recommended response to this
1456
- * exception.</p>
1463
+ * <p>A conflict with a previous successful update is detected. This typically occurs when the
1464
+ * previous update did not have time to propagate before the next update was made. A retry
1465
+ * (with appropriate backoff logic) is the recommended response to this exception.</p>
1457
1466
  * @public
1458
1467
  */
1459
1468
  export declare class ConflictException extends __BaseException {
@@ -1506,7 +1515,9 @@ export interface CreateChannelNamespaceRequest {
1506
1515
  tags?: Record<string, string> | undefined;
1507
1516
  }
1508
1517
  /**
1509
- * <p>Describes a channel namespace associated with an <code>Api</code>. The <code>ChannelNamespace</code> contains the definitions for code handlers for the <code>Api</code>.</p>
1518
+ * <p>Describes a channel namespace associated with an <code>Api</code>. The
1519
+ * <code>ChannelNamespace</code> contains the definitions for code handlers for the
1520
+ * <code>Api</code>.</p>
1510
1521
  * @public
1511
1522
  */
1512
1523
  export interface ChannelNamespace {
@@ -1927,7 +1938,8 @@ export interface DataSource {
1927
1938
  * </li>
1928
1939
  * <li>
1929
1940
  * <p>
1930
- * <b>AMAZON_BEDROCK_RUNTIME</b>: The data source is the Amazon Bedrock runtime.</p>
1941
+ * <b>AMAZON_BEDROCK_RUNTIME</b>: The data source is the
1942
+ * Amazon Bedrock runtime.</p>
1931
1943
  * </li>
1932
1944
  * <li>
1933
1945
  * <p>
@@ -4991,14 +5003,19 @@ export interface UpdateApiCacheRequest {
4991
5003
  * <ul>
4992
5004
  * <li>
4993
5005
  * <p>
4994
- * <b>FULL_REQUEST_CACHING</b>: All requests are fully
4995
- * cached.</p>
5006
+ * <b>FULL_REQUEST_CACHING</b>: All requests from the
5007
+ * same user are cached. Individual resolvers are automatically cached. All API calls
5008
+ * will try to return responses from the cache.</p>
4996
5009
  * </li>
4997
5010
  * <li>
4998
5011
  * <p>
4999
5012
  * <b>PER_RESOLVER_CACHING</b>: Individual resolvers
5000
5013
  * that you specify are cached.</p>
5001
5014
  * </li>
5015
+ * <li>
5016
+ * <p>
5017
+ * <b>OPERATION_LEVEL_CACHING</b>: Full requests are cached together and returned without executing resolvers.</p>
5018
+ * </li>
5002
5019
  * </ul>
5003
5020
  * @public
5004
5021
  */
@@ -98,6 +98,7 @@ export interface ApiAssociation {
98
98
  }
99
99
  export declare const ApiCachingBehavior: {
100
100
  readonly FULL_REQUEST_CACHING: "FULL_REQUEST_CACHING";
101
+ readonly OPERATION_LEVEL_CACHING: "OPERATION_LEVEL_CACHING";
101
102
  readonly PER_RESOLVER_CACHING: "PER_RESOLVER_CACHING";
102
103
  };
103
104
  export type ApiCachingBehavior =
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.744.0",
4
+ "version": "3.746.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",