@aws-sdk/client-amplify 3.749.0 → 3.750.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
@@ -582,6 +582,7 @@ var se_CreateAppCommand = /* @__PURE__ */ __name(async (input, context) => {
582
582
  basicAuthCredentials: [],
583
583
  buildSpec: [],
584
584
  cacheConfig: (_) => (0, import_smithy_client._json)(_),
585
+ computeRoleArn: [],
585
586
  customHeaders: [],
586
587
  customRules: (_) => (0, import_smithy_client._json)(_),
587
588
  description: [],
@@ -634,6 +635,7 @@ var se_CreateBranchCommand = /* @__PURE__ */ __name(async (input, context) => {
634
635
  basicAuthCredentials: [],
635
636
  branchName: [],
636
637
  buildSpec: [],
638
+ computeRoleArn: [],
637
639
  description: [],
638
640
  displayName: [],
639
641
  enableAutoBuild: [],
@@ -1051,6 +1053,7 @@ var se_UpdateAppCommand = /* @__PURE__ */ __name(async (input, context) => {
1051
1053
  basicAuthCredentials: [],
1052
1054
  buildSpec: [],
1053
1055
  cacheConfig: (_) => (0, import_smithy_client._json)(_),
1056
+ computeRoleArn: [],
1054
1057
  customHeaders: [],
1055
1058
  customRules: (_) => (0, import_smithy_client._json)(_),
1056
1059
  description: [],
@@ -1084,6 +1087,7 @@ var se_UpdateBranchCommand = /* @__PURE__ */ __name(async (input, context) => {
1084
1087
  backendEnvironmentArn: [],
1085
1088
  basicAuthCredentials: [],
1086
1089
  buildSpec: [],
1090
+ computeRoleArn: [],
1087
1091
  description: [],
1088
1092
  displayName: [],
1089
1093
  enableAutoBuild: [],
@@ -1798,6 +1802,7 @@ var de_App = /* @__PURE__ */ __name((output, context) => {
1798
1802
  basicAuthCredentials: import_smithy_client.expectString,
1799
1803
  buildSpec: import_smithy_client.expectString,
1800
1804
  cacheConfig: import_smithy_client._json,
1805
+ computeRoleArn: import_smithy_client.expectString,
1801
1806
  createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1802
1807
  customHeaders: import_smithy_client.expectString,
1803
1808
  customRules: import_smithy_client._json,
@@ -1852,6 +1857,7 @@ var de_Branch = /* @__PURE__ */ __name((output, context) => {
1852
1857
  branchArn: import_smithy_client.expectString,
1853
1858
  branchName: import_smithy_client.expectString,
1854
1859
  buildSpec: import_smithy_client.expectString,
1860
+ computeRoleArn: import_smithy_client.expectString,
1855
1861
  createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1856
1862
  customDomains: import_smithy_client._json,
1857
1863
  description: import_smithy_client.expectString,
@@ -17,6 +17,7 @@ export const se_CreateAppCommand = async (input, context) => {
17
17
  basicAuthCredentials: [],
18
18
  buildSpec: [],
19
19
  cacheConfig: (_) => _json(_),
20
+ computeRoleArn: [],
20
21
  customHeaders: [],
21
22
  customRules: (_) => _json(_),
22
23
  description: [],
@@ -65,6 +66,7 @@ export const se_CreateBranchCommand = async (input, context) => {
65
66
  basicAuthCredentials: [],
66
67
  branchName: [],
67
68
  buildSpec: [],
69
+ computeRoleArn: [],
68
70
  description: [],
69
71
  displayName: [],
70
72
  enableAutoBuild: [],
@@ -466,6 +468,7 @@ export const se_UpdateAppCommand = async (input, context) => {
466
468
  basicAuthCredentials: [],
467
469
  buildSpec: [],
468
470
  cacheConfig: (_) => _json(_),
471
+ computeRoleArn: [],
469
472
  customHeaders: [],
470
473
  customRules: (_) => _json(_),
471
474
  description: [],
@@ -497,6 +500,7 @@ export const se_UpdateBranchCommand = async (input, context) => {
497
500
  backendEnvironmentArn: [],
498
501
  basicAuthCredentials: [],
499
502
  buildSpec: [],
503
+ computeRoleArn: [],
500
504
  description: [],
501
505
  displayName: [],
502
506
  enableAutoBuild: [],
@@ -1206,6 +1210,7 @@ const de_App = (output, context) => {
1206
1210
  basicAuthCredentials: __expectString,
1207
1211
  buildSpec: __expectString,
1208
1212
  cacheConfig: _json,
1213
+ computeRoleArn: __expectString,
1209
1214
  createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1210
1215
  customHeaders: __expectString,
1211
1216
  customRules: _json,
@@ -1264,6 +1269,7 @@ const de_Branch = (output, context) => {
1264
1269
  branchArn: __expectString,
1265
1270
  branchName: __expectString,
1266
1271
  buildSpec: __expectString,
1272
+ computeRoleArn: __expectString,
1267
1273
  createTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1268
1274
  customDomains: _json,
1269
1275
  description: __expectString,
@@ -39,6 +39,7 @@ declare const CreateAppCommand_base: {
39
39
  * description: "STRING_VALUE",
40
40
  * repository: "STRING_VALUE",
41
41
  * platform: "WEB" || "WEB_DYNAMIC" || "WEB_COMPUTE",
42
+ * computeRoleArn: "STRING_VALUE",
42
43
  * iamServiceRoleArn: "STRING_VALUE",
43
44
  * oauthToken: "STRING_VALUE",
44
45
  * accessToken: "STRING_VALUE",
@@ -99,6 +100,7 @@ declare const CreateAppCommand_base: {
99
100
  * // platform: "WEB" || "WEB_DYNAMIC" || "WEB_COMPUTE", // required
100
101
  * // createTime: new Date("TIMESTAMP"), // required
101
102
  * // updateTime: new Date("TIMESTAMP"), // required
103
+ * // computeRoleArn: "STRING_VALUE",
102
104
  * // iamServiceRoleArn: "STRING_VALUE",
103
105
  * // environmentVariables: { // EnvironmentVariables // required
104
106
  * // "<keys>": "STRING_VALUE",
@@ -60,6 +60,7 @@ declare const CreateBranchCommand_base: {
60
60
  * backend: { // Backend
61
61
  * stackArn: "STRING_VALUE",
62
62
  * },
63
+ * computeRoleArn: "STRING_VALUE",
63
64
  * };
64
65
  * const command = new CreateBranchCommand(input);
65
66
  * const response = await client.send(command);
@@ -103,6 +104,7 @@ declare const CreateBranchCommand_base: {
103
104
  * // backend: { // Backend
104
105
  * // stackArn: "STRING_VALUE",
105
106
  * // },
107
+ * // computeRoleArn: "STRING_VALUE",
106
108
  * // },
107
109
  * // };
108
110
  *
@@ -52,6 +52,7 @@ declare const DeleteAppCommand_base: {
52
52
  * // platform: "WEB" || "WEB_DYNAMIC" || "WEB_COMPUTE", // required
53
53
  * // createTime: new Date("TIMESTAMP"), // required
54
54
  * // updateTime: new Date("TIMESTAMP"), // required
55
+ * // computeRoleArn: "STRING_VALUE",
55
56
  * // iamServiceRoleArn: "STRING_VALUE",
56
57
  * // environmentVariables: { // EnvironmentVariables // required
57
58
  * // "<keys>": "STRING_VALUE",
@@ -80,6 +80,7 @@ declare const DeleteBranchCommand_base: {
80
80
  * // backend: { // Backend
81
81
  * // stackArn: "STRING_VALUE",
82
82
  * // },
83
+ * // computeRoleArn: "STRING_VALUE",
83
84
  * // },
84
85
  * // };
85
86
  *
@@ -52,6 +52,7 @@ declare const GetAppCommand_base: {
52
52
  * // platform: "WEB" || "WEB_DYNAMIC" || "WEB_COMPUTE", // required
53
53
  * // createTime: new Date("TIMESTAMP"), // required
54
54
  * // updateTime: new Date("TIMESTAMP"), // required
55
+ * // computeRoleArn: "STRING_VALUE",
55
56
  * // iamServiceRoleArn: "STRING_VALUE",
56
57
  * // environmentVariables: { // EnvironmentVariables // required
57
58
  * // "<keys>": "STRING_VALUE",
@@ -80,6 +80,7 @@ declare const GetBranchCommand_base: {
80
80
  * // backend: { // Backend
81
81
  * // stackArn: "STRING_VALUE",
82
82
  * // },
83
+ * // computeRoleArn: "STRING_VALUE",
83
84
  * // },
84
85
  * // };
85
86
  *
@@ -54,6 +54,7 @@ declare const ListAppsCommand_base: {
54
54
  * // platform: "WEB" || "WEB_DYNAMIC" || "WEB_COMPUTE", // required
55
55
  * // createTime: new Date("TIMESTAMP"), // required
56
56
  * // updateTime: new Date("TIMESTAMP"), // required
57
+ * // computeRoleArn: "STRING_VALUE",
57
58
  * // iamServiceRoleArn: "STRING_VALUE",
58
59
  * // environmentVariables: { // EnvironmentVariables // required
59
60
  * // "<keys>": "STRING_VALUE",
@@ -82,6 +82,7 @@ declare const ListBranchesCommand_base: {
82
82
  * // backend: { // Backend
83
83
  * // stackArn: "STRING_VALUE",
84
84
  * // },
85
+ * // computeRoleArn: "STRING_VALUE",
85
86
  * // },
86
87
  * // ],
87
88
  * // nextToken: "STRING_VALUE",
@@ -39,6 +39,7 @@ declare const UpdateAppCommand_base: {
39
39
  * name: "STRING_VALUE",
40
40
  * description: "STRING_VALUE",
41
41
  * platform: "WEB" || "WEB_DYNAMIC" || "WEB_COMPUTE",
42
+ * computeRoleArn: "STRING_VALUE",
42
43
  * iamServiceRoleArn: "STRING_VALUE",
43
44
  * environmentVariables: { // EnvironmentVariables
44
45
  * "<keys>": "STRING_VALUE",
@@ -97,6 +98,7 @@ declare const UpdateAppCommand_base: {
97
98
  * // platform: "WEB" || "WEB_DYNAMIC" || "WEB_COMPUTE", // required
98
99
  * // createTime: new Date("TIMESTAMP"), // required
99
100
  * // updateTime: new Date("TIMESTAMP"), // required
101
+ * // computeRoleArn: "STRING_VALUE",
100
102
  * // iamServiceRoleArn: "STRING_VALUE",
101
103
  * // environmentVariables: { // EnvironmentVariables // required
102
104
  * // "<keys>": "STRING_VALUE",
@@ -57,6 +57,7 @@ declare const UpdateBranchCommand_base: {
57
57
  * backend: { // Backend
58
58
  * stackArn: "STRING_VALUE",
59
59
  * },
60
+ * computeRoleArn: "STRING_VALUE",
60
61
  * };
61
62
  * const command = new UpdateBranchCommand(input);
62
63
  * const response = await client.send(command);
@@ -100,6 +101,7 @@ declare const UpdateBranchCommand_base: {
100
101
  * // backend: { // Backend
101
102
  * // stackArn: "STRING_VALUE",
102
103
  * // },
104
+ * // computeRoleArn: "STRING_VALUE",
103
105
  * // },
104
106
  * // };
105
107
  *
@@ -215,7 +215,16 @@ export interface CreateAppRequest {
215
215
  */
216
216
  platform?: Platform | undefined;
217
217
  /**
218
- * <p>The AWS Identity and Access Management (IAM) service role for an Amplify app. </p>
218
+ * <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources
219
+ * based on the role's permissions. For more information about the SSR Compute role, see
220
+ * <a href="https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
221
+ * Guide</i>.</p>
222
+ * @public
223
+ */
224
+ computeRoleArn?: string | undefined;
225
+ /**
226
+ * <p>The Amazon Resource Name
227
+ * (ARN) of the IAM service role for the Amplify app.</p>
219
228
  * @public
220
229
  */
221
230
  iamServiceRoleArn?: string | undefined;
@@ -460,8 +469,16 @@ export interface App {
460
469
  */
461
470
  updateTime: Date | undefined;
462
471
  /**
463
- * <p>The AWS Identity and Access Management (IAM) service role for the Amazon Resource Name
464
- * (ARN) of the Amplify app. </p>
472
+ * <p>The Amazon Resource Name (ARN) of the IAM role for an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources
473
+ * based on the role's permissions. For more information about the SSR Compute role, see
474
+ * <a href="https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
475
+ * Guide</i>.</p>
476
+ * @public
477
+ */
478
+ computeRoleArn?: string | undefined;
479
+ /**
480
+ * <p>The Amazon Resource Name
481
+ * (ARN) of the IAM service role for the Amplify app.</p>
465
482
  * @public
466
483
  */
467
484
  iamServiceRoleArn?: string | undefined;
@@ -846,6 +863,14 @@ export interface CreateBranchRequest {
846
863
  * @public
847
864
  */
848
865
  backend?: Backend | undefined;
866
+ /**
867
+ * <p>The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources
868
+ * based on the role's permissions. For more information about the SSR Compute role, see
869
+ * <a href="https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
870
+ * Guide</i>.</p>
871
+ * @public
872
+ */
873
+ computeRoleArn?: string | undefined;
849
874
  }
850
875
  /**
851
876
  * <p> The branch for an Amplify app, which maps to a third-party repository branch. </p>
@@ -1005,6 +1030,14 @@ export interface Branch {
1005
1030
  * @public
1006
1031
  */
1007
1032
  backend?: Backend | undefined;
1033
+ /**
1034
+ * <p>The Amazon Resource Name (ARN) of the IAM role for a branch of an SSR app. The Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources
1035
+ * based on the role's permissions. For more information about the SSR Compute role, see
1036
+ * <a href="https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
1037
+ * Guide</i>.</p>
1038
+ * @public
1039
+ */
1040
+ computeRoleArn?: string | undefined;
1008
1041
  }
1009
1042
  /**
1010
1043
  * <p> The result structure for create branch request. </p>
@@ -2586,7 +2619,16 @@ export interface UpdateAppRequest {
2586
2619
  */
2587
2620
  platform?: Platform | undefined;
2588
2621
  /**
2589
- * <p>The AWS Identity and Access Management (IAM) service role for an Amplify app. </p>
2622
+ * <p>The Amazon Resource Name (ARN) of the IAM role to assign to an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources
2623
+ * based on the role's permissions. For more information about the SSR Compute role, see
2624
+ * <a href="https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
2625
+ * Guide</i>.</p>
2626
+ * @public
2627
+ */
2628
+ computeRoleArn?: string | undefined;
2629
+ /**
2630
+ * <p>The Amazon Resource Name
2631
+ * (ARN) of the IAM service role for the Amplify app.</p>
2590
2632
  * @public
2591
2633
  */
2592
2634
  iamServiceRoleArn?: string | undefined;
@@ -2810,6 +2852,14 @@ export interface UpdateBranchRequest {
2810
2852
  * @public
2811
2853
  */
2812
2854
  backend?: Backend | undefined;
2855
+ /**
2856
+ * <p>The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources
2857
+ * based on the role's permissions. For more information about the SSR Compute role, see
2858
+ * <a href="https://docs.aws.amazon.com/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
2859
+ * Guide</i>.</p>
2860
+ * @public
2861
+ */
2862
+ computeRoleArn?: string | undefined;
2813
2863
  }
2814
2864
  /**
2815
2865
  * <p> The result structure for the update branch request. </p>
@@ -53,6 +53,7 @@ export interface CreateAppRequest {
53
53
  description?: string | undefined;
54
54
  repository?: string | undefined;
55
55
  platform?: Platform | undefined;
56
+ computeRoleArn?: string | undefined;
56
57
  iamServiceRoleArn?: string | undefined;
57
58
  oauthToken?: string | undefined;
58
59
  accessToken?: string | undefined;
@@ -106,6 +107,7 @@ export interface App {
106
107
  platform: Platform | undefined;
107
108
  createTime: Date | undefined;
108
109
  updateTime: Date | undefined;
110
+ computeRoleArn?: string | undefined;
109
111
  iamServiceRoleArn?: string | undefined;
110
112
  environmentVariables: Record<string, string> | undefined;
111
113
  defaultDomain: string | undefined;
@@ -204,6 +206,7 @@ export interface CreateBranchRequest {
204
206
  pullRequestEnvironmentName?: string | undefined;
205
207
  backendEnvironmentArn?: string | undefined;
206
208
  backend?: Backend | undefined;
209
+ computeRoleArn?: string | undefined;
207
210
  }
208
211
  export interface Branch {
209
212
  branchArn: string | undefined;
@@ -234,6 +237,7 @@ export interface Branch {
234
237
  sourceBranch?: string | undefined;
235
238
  backendEnvironmentArn?: string | undefined;
236
239
  backend?: Backend | undefined;
240
+ computeRoleArn?: string | undefined;
237
241
  }
238
242
  export interface CreateBranchResult {
239
243
  branch: Branch | undefined;
@@ -618,6 +622,7 @@ export interface UpdateAppRequest {
618
622
  name?: string | undefined;
619
623
  description?: string | undefined;
620
624
  platform?: Platform | undefined;
625
+ computeRoleArn?: string | undefined;
621
626
  iamServiceRoleArn?: string | undefined;
622
627
  environmentVariables?: Record<string, string> | undefined;
623
628
  enableBranchAutoBuild?: boolean | undefined;
@@ -657,6 +662,7 @@ export interface UpdateBranchRequest {
657
662
  pullRequestEnvironmentName?: string | undefined;
658
663
  backendEnvironmentArn?: string | undefined;
659
664
  backend?: Backend | undefined;
665
+ computeRoleArn?: string | undefined;
660
666
  }
661
667
  export interface UpdateBranchResult {
662
668
  branch: Branch | undefined;
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.749.0",
4
+ "version": "3.750.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-amplify",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.749.0",
24
- "@aws-sdk/credential-provider-node": "3.749.0",
23
+ "@aws-sdk/core": "3.750.0",
24
+ "@aws-sdk/credential-provider-node": "3.750.0",
25
25
  "@aws-sdk/middleware-host-header": "3.734.0",
26
26
  "@aws-sdk/middleware-logger": "3.734.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.734.0",
28
- "@aws-sdk/middleware-user-agent": "3.749.0",
28
+ "@aws-sdk/middleware-user-agent": "3.750.0",
29
29
  "@aws-sdk/region-config-resolver": "3.734.0",
30
30
  "@aws-sdk/types": "3.734.0",
31
31
  "@aws-sdk/util-endpoints": "3.743.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.749.0",
33
+ "@aws-sdk/util-user-agent-node": "3.750.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.3",
35
+ "@smithy/core": "^3.1.4",
36
36
  "@smithy/fetch-http-handler": "^5.0.1",
37
37
  "@smithy/hash-node": "^4.0.1",
38
38
  "@smithy/invalid-dependency": "^4.0.1",
39
39
  "@smithy/middleware-content-length": "^4.0.1",
40
- "@smithy/middleware-endpoint": "^4.0.4",
41
- "@smithy/middleware-retry": "^4.0.5",
40
+ "@smithy/middleware-endpoint": "^4.0.5",
41
+ "@smithy/middleware-retry": "^4.0.6",
42
42
  "@smithy/middleware-serde": "^4.0.2",
43
43
  "@smithy/middleware-stack": "^4.0.1",
44
44
  "@smithy/node-config-provider": "^4.0.1",
45
45
  "@smithy/node-http-handler": "^4.0.2",
46
46
  "@smithy/protocol-http": "^5.0.1",
47
- "@smithy/smithy-client": "^4.1.4",
47
+ "@smithy/smithy-client": "^4.1.5",
48
48
  "@smithy/types": "^4.1.0",
49
49
  "@smithy/url-parser": "^4.0.1",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.5",
54
- "@smithy/util-defaults-mode-node": "^4.0.5",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.6",
54
+ "@smithy/util-defaults-mode-node": "^4.0.6",
55
55
  "@smithy/util-endpoints": "^3.0.1",
56
56
  "@smithy/util-middleware": "^4.0.1",
57
57
  "@smithy/util-retry": "^4.0.1",