@aws-sdk/client-amplify 3.211.0 → 3.213.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.
@@ -29,6 +29,7 @@ var Stage;
29
29
  var Platform;
30
30
  (function (Platform) {
31
31
  Platform["WEB"] = "WEB";
32
+ Platform["WEB_COMPUTE"] = "WEB_COMPUTE";
32
33
  Platform["WEB_DYNAMIC"] = "WEB_DYNAMIC";
33
34
  })(Platform = exports.Platform || (exports.Platform = {}));
34
35
  var RepositoryCloneMethod;
@@ -2680,10 +2680,8 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
2680
2680
  if (value === null) {
2681
2681
  return acc;
2682
2682
  }
2683
- return {
2684
- ...acc,
2685
- [key]: value,
2686
- };
2683
+ acc[key] = value;
2684
+ return acc;
2687
2685
  }, {});
2688
2686
  };
2689
2687
  const serializeAws_restJson1FileMap = (input, context) => {
@@ -2691,10 +2689,8 @@ const serializeAws_restJson1FileMap = (input, context) => {
2691
2689
  if (value === null) {
2692
2690
  return acc;
2693
2691
  }
2694
- return {
2695
- ...acc,
2696
- [key]: value,
2697
- };
2692
+ acc[key] = value;
2693
+ return acc;
2698
2694
  }, {});
2699
2695
  };
2700
2696
  const serializeAws_restJson1SubDomainSetting = (input, context) => {
@@ -2715,10 +2711,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
2715
2711
  if (value === null) {
2716
2712
  return acc;
2717
2713
  }
2718
- return {
2719
- ...acc,
2720
- [key]: value,
2721
- };
2714
+ acc[key] = value;
2715
+ return acc;
2722
2716
  }, {});
2723
2717
  };
2724
2718
  const deserializeAws_restJson1App = (output, context) => {
@@ -2962,10 +2956,8 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
2962
2956
  if (value === null) {
2963
2957
  return acc;
2964
2958
  }
2965
- return {
2966
- ...acc,
2967
- [key]: (0, smithy_client_1.expectString)(value),
2968
- };
2959
+ acc[key] = (0, smithy_client_1.expectString)(value);
2960
+ return acc;
2969
2961
  }, {});
2970
2962
  };
2971
2963
  const deserializeAws_restJson1FileUploadUrls = (output, context) => {
@@ -2973,10 +2965,8 @@ const deserializeAws_restJson1FileUploadUrls = (output, context) => {
2973
2965
  if (value === null) {
2974
2966
  return acc;
2975
2967
  }
2976
- return {
2977
- ...acc,
2978
- [key]: (0, smithy_client_1.expectString)(value),
2979
- };
2968
+ acc[key] = (0, smithy_client_1.expectString)(value);
2969
+ return acc;
2980
2970
  }, {});
2981
2971
  };
2982
2972
  const deserializeAws_restJson1Job = (output, context) => {
@@ -3024,10 +3014,8 @@ const deserializeAws_restJson1Screenshots = (output, context) => {
3024
3014
  if (value === null) {
3025
3015
  return acc;
3026
3016
  }
3027
- return {
3028
- ...acc,
3029
- [key]: (0, smithy_client_1.expectString)(value),
3030
- };
3017
+ acc[key] = (0, smithy_client_1.expectString)(value);
3018
+ return acc;
3031
3019
  }, {});
3032
3020
  };
3033
3021
  const deserializeAws_restJson1Step = (output, context) => {
@@ -3087,10 +3075,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
3087
3075
  if (value === null) {
3088
3076
  return acc;
3089
3077
  }
3090
- return {
3091
- ...acc,
3092
- [key]: (0, smithy_client_1.expectString)(value),
3093
- };
3078
+ acc[key] = (0, smithy_client_1.expectString)(value);
3079
+ return acc;
3094
3080
  }, {});
3095
3081
  };
3096
3082
  const deserializeAws_restJson1Webhook = (output, context) => {
@@ -23,6 +23,7 @@ export var Stage;
23
23
  export var Platform;
24
24
  (function (Platform) {
25
25
  Platform["WEB"] = "WEB";
26
+ Platform["WEB_COMPUTE"] = "WEB_COMPUTE";
26
27
  Platform["WEB_DYNAMIC"] = "WEB_DYNAMIC";
27
28
  })(Platform || (Platform = {}));
28
29
  export var RepositoryCloneMethod;
@@ -2602,10 +2602,8 @@ const serializeAws_restJson1EnvironmentVariables = (input, context) => {
2602
2602
  if (value === null) {
2603
2603
  return acc;
2604
2604
  }
2605
- return {
2606
- ...acc,
2607
- [key]: value,
2608
- };
2605
+ acc[key] = value;
2606
+ return acc;
2609
2607
  }, {});
2610
2608
  };
2611
2609
  const serializeAws_restJson1FileMap = (input, context) => {
@@ -2613,10 +2611,8 @@ const serializeAws_restJson1FileMap = (input, context) => {
2613
2611
  if (value === null) {
2614
2612
  return acc;
2615
2613
  }
2616
- return {
2617
- ...acc,
2618
- [key]: value,
2619
- };
2614
+ acc[key] = value;
2615
+ return acc;
2620
2616
  }, {});
2621
2617
  };
2622
2618
  const serializeAws_restJson1SubDomainSetting = (input, context) => {
@@ -2637,10 +2633,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
2637
2633
  if (value === null) {
2638
2634
  return acc;
2639
2635
  }
2640
- return {
2641
- ...acc,
2642
- [key]: value,
2643
- };
2636
+ acc[key] = value;
2637
+ return acc;
2644
2638
  }, {});
2645
2639
  };
2646
2640
  const deserializeAws_restJson1App = (output, context) => {
@@ -2884,10 +2878,8 @@ const deserializeAws_restJson1EnvironmentVariables = (output, context) => {
2884
2878
  if (value === null) {
2885
2879
  return acc;
2886
2880
  }
2887
- return {
2888
- ...acc,
2889
- [key]: __expectString(value),
2890
- };
2881
+ acc[key] = __expectString(value);
2882
+ return acc;
2891
2883
  }, {});
2892
2884
  };
2893
2885
  const deserializeAws_restJson1FileUploadUrls = (output, context) => {
@@ -2895,10 +2887,8 @@ const deserializeAws_restJson1FileUploadUrls = (output, context) => {
2895
2887
  if (value === null) {
2896
2888
  return acc;
2897
2889
  }
2898
- return {
2899
- ...acc,
2900
- [key]: __expectString(value),
2901
- };
2890
+ acc[key] = __expectString(value);
2891
+ return acc;
2902
2892
  }, {});
2903
2893
  };
2904
2894
  const deserializeAws_restJson1Job = (output, context) => {
@@ -2946,10 +2936,8 @@ const deserializeAws_restJson1Screenshots = (output, context) => {
2946
2936
  if (value === null) {
2947
2937
  return acc;
2948
2938
  }
2949
- return {
2950
- ...acc,
2951
- [key]: __expectString(value),
2952
- };
2939
+ acc[key] = __expectString(value);
2940
+ return acc;
2953
2941
  }, {});
2954
2942
  };
2955
2943
  const deserializeAws_restJson1Step = (output, context) => {
@@ -3009,10 +2997,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
3009
2997
  if (value === null) {
3010
2998
  return acc;
3011
2999
  }
3012
- return {
3013
- ...acc,
3014
- [key]: __expectString(value),
3015
- };
3000
+ acc[key] = __expectString(value);
3001
+ return acc;
3016
3002
  }, {});
3017
3003
  };
3018
3004
  const deserializeAws_restJson1Webhook = (output, context) => {
@@ -115,6 +115,7 @@ export interface CustomRule {
115
115
  }
116
116
  export declare enum Platform {
117
117
  WEB = "WEB",
118
+ WEB_COMPUTE = "WEB_COMPUTE",
118
119
  WEB_DYNAMIC = "WEB_DYNAMIC"
119
120
  }
120
121
  /**
@@ -134,7 +135,10 @@ export interface CreateAppRequest {
134
135
  */
135
136
  repository?: string;
136
137
  /**
137
- * <p> The platform or framework for an Amplify app. </p>
138
+ * <p> The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>.
139
+ * For a dynamic server-side rendered (SSR) app, set the platform type to
140
+ * <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to
141
+ * <code>WEB_DYNAMIC</code>.</p>
138
142
  */
139
143
  platform?: Platform | string;
140
144
  /**
@@ -279,7 +283,10 @@ export interface App {
279
283
  */
280
284
  repository: string | undefined;
281
285
  /**
282
- * <p> The platform for the Amplify app. </p>
286
+ * <p> The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>.
287
+ * For a dynamic server-side rendered (SSR) app, set the platform type to
288
+ * <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to
289
+ * <code>WEB_DYNAMIC</code>.</p>
283
290
  */
284
291
  platform: Platform | string | undefined;
285
292
  /**
@@ -1793,7 +1800,10 @@ export interface UpdateAppRequest {
1793
1800
  */
1794
1801
  description?: string;
1795
1802
  /**
1796
- * <p> The platform for an Amplify app. </p>
1803
+ * <p> The platform for the Amplify app. For a static app, set the platform type to <code>WEB</code>.
1804
+ * For a dynamic server-side rendered (SSR) app, set the platform type to
1805
+ * <code>WEB_COMPUTE</code>. For an app requiring Amplify Hosting's original SSR support only, set the platform type to
1806
+ * <code>WEB_DYNAMIC</code>.</p>
1797
1807
  */
1798
1808
  platform?: Platform | string;
1799
1809
  /**
@@ -34,6 +34,7 @@ export interface CustomRule {
34
34
  }
35
35
  export declare enum Platform {
36
36
  WEB = "WEB",
37
+ WEB_COMPUTE = "WEB_COMPUTE",
37
38
  WEB_DYNAMIC = "WEB_DYNAMIC",
38
39
  }
39
40
  export interface CreateAppRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplify",
3
3
  "description": "AWS SDK for JavaScript Amplify Client for Node.js, Browser and React Native",
4
- "version": "3.211.0",
4
+ "version": "3.213.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,36 +19,36 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.211.0",
23
- "@aws-sdk/config-resolver": "3.209.0",
24
- "@aws-sdk/credential-provider-node": "3.211.0",
25
- "@aws-sdk/fetch-http-handler": "3.208.0",
26
- "@aws-sdk/hash-node": "3.208.0",
27
- "@aws-sdk/invalid-dependency": "3.208.0",
28
- "@aws-sdk/middleware-content-length": "3.208.0",
29
- "@aws-sdk/middleware-endpoint": "3.208.0",
30
- "@aws-sdk/middleware-host-header": "3.208.0",
31
- "@aws-sdk/middleware-logger": "3.208.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.208.0",
33
- "@aws-sdk/middleware-retry": "3.209.0",
34
- "@aws-sdk/middleware-serde": "3.208.0",
35
- "@aws-sdk/middleware-signing": "3.208.0",
36
- "@aws-sdk/middleware-stack": "3.208.0",
37
- "@aws-sdk/middleware-user-agent": "3.208.0",
38
- "@aws-sdk/node-config-provider": "3.209.0",
39
- "@aws-sdk/node-http-handler": "3.208.0",
40
- "@aws-sdk/protocol-http": "3.208.0",
41
- "@aws-sdk/smithy-client": "3.209.0",
42
- "@aws-sdk/types": "3.208.0",
43
- "@aws-sdk/url-parser": "3.208.0",
22
+ "@aws-sdk/client-sts": "3.213.0",
23
+ "@aws-sdk/config-resolver": "3.212.0",
24
+ "@aws-sdk/credential-provider-node": "3.212.0",
25
+ "@aws-sdk/fetch-http-handler": "3.212.0",
26
+ "@aws-sdk/hash-node": "3.212.0",
27
+ "@aws-sdk/invalid-dependency": "3.212.0",
28
+ "@aws-sdk/middleware-content-length": "3.212.0",
29
+ "@aws-sdk/middleware-endpoint": "3.212.0",
30
+ "@aws-sdk/middleware-host-header": "3.212.0",
31
+ "@aws-sdk/middleware-logger": "3.212.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
33
+ "@aws-sdk/middleware-retry": "3.212.0",
34
+ "@aws-sdk/middleware-serde": "3.212.0",
35
+ "@aws-sdk/middleware-signing": "3.212.0",
36
+ "@aws-sdk/middleware-stack": "3.212.0",
37
+ "@aws-sdk/middleware-user-agent": "3.212.0",
38
+ "@aws-sdk/node-config-provider": "3.212.0",
39
+ "@aws-sdk/node-http-handler": "3.212.0",
40
+ "@aws-sdk/protocol-http": "3.212.0",
41
+ "@aws-sdk/smithy-client": "3.212.0",
42
+ "@aws-sdk/types": "3.212.0",
43
+ "@aws-sdk/url-parser": "3.212.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.209.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.209.0",
49
- "@aws-sdk/util-endpoints": "3.211.0",
50
- "@aws-sdk/util-user-agent-browser": "3.208.0",
51
- "@aws-sdk/util-user-agent-node": "3.209.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.212.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
49
+ "@aws-sdk/util-endpoints": "3.212.0",
50
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
51
+ "@aws-sdk/util-user-agent-node": "3.212.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
53
  "@aws-sdk/util-utf8-node": "3.208.0",
54
54
  "tslib": "^2.3.1"