@aws-sdk/client-amplify 3.750.0 → 3.767.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
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
20
 
21
21
  // src/index.ts
22
- var src_exports = {};
23
- __export(src_exports, {
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
24
  Amplify: () => Amplify,
25
25
  AmplifyClient: () => AmplifyClient,
26
26
  AmplifyServiceException: () => AmplifyServiceException,
@@ -102,7 +102,7 @@ __export(src_exports, {
102
102
  paginateListDomainAssociations: () => paginateListDomainAssociations,
103
103
  paginateListJobs: () => paginateListJobs
104
104
  });
105
- module.exports = __toCommonJS(src_exports);
105
+ module.exports = __toCommonJS(index_exports);
106
106
 
107
107
  // src/AmplifyClient.ts
108
108
  var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
@@ -229,9 +229,9 @@ var AmplifyClient = class extends import_smithy_client.Client {
229
229
  this.middlewareStack.use(
230
230
  (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
231
231
  httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultAmplifyHttpAuthSchemeParametersProvider,
232
- identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
232
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
233
233
  "aws.auth#sigv4": config.credentials
234
- })
234
+ }), "identityProviderConfigProvider")
235
235
  })
236
236
  );
237
237
  this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
@@ -577,26 +577,26 @@ var se_CreateAppCommand = /* @__PURE__ */ __name(async (input, context) => {
577
577
  body = JSON.stringify(
578
578
  (0, import_smithy_client.take)(input, {
579
579
  accessToken: [],
580
- autoBranchCreationConfig: (_) => (0, import_smithy_client._json)(_),
581
- autoBranchCreationPatterns: (_) => (0, import_smithy_client._json)(_),
580
+ autoBranchCreationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "autoBranchCreationConfig"),
581
+ autoBranchCreationPatterns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "autoBranchCreationPatterns"),
582
582
  basicAuthCredentials: [],
583
583
  buildSpec: [],
584
- cacheConfig: (_) => (0, import_smithy_client._json)(_),
584
+ cacheConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "cacheConfig"),
585
585
  computeRoleArn: [],
586
586
  customHeaders: [],
587
- customRules: (_) => (0, import_smithy_client._json)(_),
587
+ customRules: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customRules"),
588
588
  description: [],
589
589
  enableAutoBranchCreation: [],
590
590
  enableBasicAuth: [],
591
591
  enableBranchAutoBuild: [],
592
592
  enableBranchAutoDeletion: [],
593
- environmentVariables: (_) => (0, import_smithy_client._json)(_),
593
+ environmentVariables: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "environmentVariables"),
594
594
  iamServiceRoleArn: [],
595
595
  name: [],
596
596
  oauthToken: [],
597
597
  platform: [],
598
598
  repository: [],
599
- tags: (_) => (0, import_smithy_client._json)(_)
599
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
600
600
  })
601
601
  );
602
602
  b.m("POST").h(headers).b(body);
@@ -630,7 +630,7 @@ var se_CreateBranchCommand = /* @__PURE__ */ __name(async (input, context) => {
630
630
  let body;
631
631
  body = JSON.stringify(
632
632
  (0, import_smithy_client.take)(input, {
633
- backend: (_) => (0, import_smithy_client._json)(_),
633
+ backend: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "backend"),
634
634
  backendEnvironmentArn: [],
635
635
  basicAuthCredentials: [],
636
636
  branchName: [],
@@ -643,11 +643,12 @@ var se_CreateBranchCommand = /* @__PURE__ */ __name(async (input, context) => {
643
643
  enableNotification: [],
644
644
  enablePerformanceMode: [],
645
645
  enablePullRequestPreview: [],
646
- environmentVariables: (_) => (0, import_smithy_client._json)(_),
646
+ enableSkewProtection: [],
647
+ environmentVariables: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "environmentVariables"),
647
648
  framework: [],
648
649
  pullRequestEnvironmentName: [],
649
650
  stage: [],
650
- tags: (_) => (0, import_smithy_client._json)(_),
651
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
651
652
  ttl: []
652
653
  })
653
654
  );
@@ -665,7 +666,7 @@ var se_CreateDeploymentCommand = /* @__PURE__ */ __name(async (input, context) =
665
666
  let body;
666
667
  body = JSON.stringify(
667
668
  (0, import_smithy_client.take)(input, {
668
- fileMap: (_) => (0, import_smithy_client._json)(_)
669
+ fileMap: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "fileMap")
669
670
  })
670
671
  );
671
672
  b.m("POST").h(headers).b(body);
@@ -681,12 +682,12 @@ var se_CreateDomainAssociationCommand = /* @__PURE__ */ __name(async (input, con
681
682
  let body;
682
683
  body = JSON.stringify(
683
684
  (0, import_smithy_client.take)(input, {
684
- autoSubDomainCreationPatterns: (_) => (0, import_smithy_client._json)(_),
685
+ autoSubDomainCreationPatterns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "autoSubDomainCreationPatterns"),
685
686
  autoSubDomainIAMRole: [],
686
- certificateSettings: (_) => (0, import_smithy_client._json)(_),
687
+ certificateSettings: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "certificateSettings"),
687
688
  domainName: [],
688
689
  enableAutoSubDomain: [],
689
- subDomainSettings: (_) => (0, import_smithy_client._json)(_)
690
+ subDomainSettings: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "subDomainSettings")
690
691
  })
691
692
  );
692
693
  b.m("POST").h(headers).b(body);
@@ -779,8 +780,8 @@ var se_GenerateAccessLogsCommand = /* @__PURE__ */ __name(async (input, context)
779
780
  body = JSON.stringify(
780
781
  (0, import_smithy_client.take)(input, {
781
782
  domainName: [],
782
- endTime: (_) => _.getTime() / 1e3,
783
- startTime: (_) => _.getTime() / 1e3
783
+ endTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "endTime"),
784
+ startTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "startTime")
784
785
  })
785
786
  );
786
787
  b.m("POST").h(headers).b(body);
@@ -989,7 +990,7 @@ var se_StartJobCommand = /* @__PURE__ */ __name(async (input, context) => {
989
990
  (0, import_smithy_client.take)(input, {
990
991
  commitId: [],
991
992
  commitMessage: [],
992
- commitTime: (_) => _.getTime() / 1e3,
993
+ commitTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "commitTime"),
993
994
  jobId: [],
994
995
  jobReason: [],
995
996
  jobType: []
@@ -1019,7 +1020,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1019
1020
  let body;
1020
1021
  body = JSON.stringify(
1021
1022
  (0, import_smithy_client.take)(input, {
1022
- tags: (_) => (0, import_smithy_client._json)(_)
1023
+ tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
1023
1024
  })
1024
1025
  );
1025
1026
  b.m("POST").h(headers).b(body);
@@ -1048,20 +1049,20 @@ var se_UpdateAppCommand = /* @__PURE__ */ __name(async (input, context) => {
1048
1049
  body = JSON.stringify(
1049
1050
  (0, import_smithy_client.take)(input, {
1050
1051
  accessToken: [],
1051
- autoBranchCreationConfig: (_) => (0, import_smithy_client._json)(_),
1052
- autoBranchCreationPatterns: (_) => (0, import_smithy_client._json)(_),
1052
+ autoBranchCreationConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "autoBranchCreationConfig"),
1053
+ autoBranchCreationPatterns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "autoBranchCreationPatterns"),
1053
1054
  basicAuthCredentials: [],
1054
1055
  buildSpec: [],
1055
- cacheConfig: (_) => (0, import_smithy_client._json)(_),
1056
+ cacheConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "cacheConfig"),
1056
1057
  computeRoleArn: [],
1057
1058
  customHeaders: [],
1058
- customRules: (_) => (0, import_smithy_client._json)(_),
1059
+ customRules: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "customRules"),
1059
1060
  description: [],
1060
1061
  enableAutoBranchCreation: [],
1061
1062
  enableBasicAuth: [],
1062
1063
  enableBranchAutoBuild: [],
1063
1064
  enableBranchAutoDeletion: [],
1064
- environmentVariables: (_) => (0, import_smithy_client._json)(_),
1065
+ environmentVariables: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "environmentVariables"),
1065
1066
  iamServiceRoleArn: [],
1066
1067
  name: [],
1067
1068
  oauthToken: [],
@@ -1083,7 +1084,7 @@ var se_UpdateBranchCommand = /* @__PURE__ */ __name(async (input, context) => {
1083
1084
  let body;
1084
1085
  body = JSON.stringify(
1085
1086
  (0, import_smithy_client.take)(input, {
1086
- backend: (_) => (0, import_smithy_client._json)(_),
1087
+ backend: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "backend"),
1087
1088
  backendEnvironmentArn: [],
1088
1089
  basicAuthCredentials: [],
1089
1090
  buildSpec: [],
@@ -1095,7 +1096,8 @@ var se_UpdateBranchCommand = /* @__PURE__ */ __name(async (input, context) => {
1095
1096
  enableNotification: [],
1096
1097
  enablePerformanceMode: [],
1097
1098
  enablePullRequestPreview: [],
1098
- environmentVariables: (_) => (0, import_smithy_client._json)(_),
1099
+ enableSkewProtection: [],
1100
+ environmentVariables: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "environmentVariables"),
1099
1101
  framework: [],
1100
1102
  pullRequestEnvironmentName: [],
1101
1103
  stage: [],
@@ -1116,11 +1118,11 @@ var se_UpdateDomainAssociationCommand = /* @__PURE__ */ __name(async (input, con
1116
1118
  let body;
1117
1119
  body = JSON.stringify(
1118
1120
  (0, import_smithy_client.take)(input, {
1119
- autoSubDomainCreationPatterns: (_) => (0, import_smithy_client._json)(_),
1121
+ autoSubDomainCreationPatterns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "autoSubDomainCreationPatterns"),
1120
1122
  autoSubDomainIAMRole: [],
1121
- certificateSettings: (_) => (0, import_smithy_client._json)(_),
1123
+ certificateSettings: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "certificateSettings"),
1122
1124
  enableAutoSubDomain: [],
1123
- subDomainSettings: (_) => (0, import_smithy_client._json)(_)
1125
+ subDomainSettings: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "subDomainSettings")
1124
1126
  })
1125
1127
  );
1126
1128
  b.m("POST").h(headers).b(body);
@@ -1152,7 +1154,7 @@ var de_CreateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1152
1154
  });
1153
1155
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1154
1156
  const doc = (0, import_smithy_client.take)(data, {
1155
- app: (_) => de_App(_, context)
1157
+ app: /* @__PURE__ */ __name((_) => de_App(_, context), "app")
1156
1158
  });
1157
1159
  Object.assign(contents, doc);
1158
1160
  return contents;
@@ -1166,7 +1168,7 @@ var de_CreateBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, c
1166
1168
  });
1167
1169
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1168
1170
  const doc = (0, import_smithy_client.take)(data, {
1169
- backendEnvironment: (_) => de_BackendEnvironment(_, context)
1171
+ backendEnvironment: /* @__PURE__ */ __name((_) => de_BackendEnvironment(_, context), "backendEnvironment")
1170
1172
  });
1171
1173
  Object.assign(contents, doc);
1172
1174
  return contents;
@@ -1180,7 +1182,7 @@ var de_CreateBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
1180
1182
  });
1181
1183
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1182
1184
  const doc = (0, import_smithy_client.take)(data, {
1183
- branch: (_) => de_Branch(_, context)
1185
+ branch: /* @__PURE__ */ __name((_) => de_Branch(_, context), "branch")
1184
1186
  });
1185
1187
  Object.assign(contents, doc);
1186
1188
  return contents;
@@ -1224,7 +1226,7 @@ var de_CreateWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
1224
1226
  });
1225
1227
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1226
1228
  const doc = (0, import_smithy_client.take)(data, {
1227
- webhook: (_) => de_Webhook(_, context)
1229
+ webhook: /* @__PURE__ */ __name((_) => de_Webhook(_, context), "webhook")
1228
1230
  });
1229
1231
  Object.assign(contents, doc);
1230
1232
  return contents;
@@ -1238,7 +1240,7 @@ var de_DeleteAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1238
1240
  });
1239
1241
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1240
1242
  const doc = (0, import_smithy_client.take)(data, {
1241
- app: (_) => de_App(_, context)
1243
+ app: /* @__PURE__ */ __name((_) => de_App(_, context), "app")
1242
1244
  });
1243
1245
  Object.assign(contents, doc);
1244
1246
  return contents;
@@ -1252,7 +1254,7 @@ var de_DeleteBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, c
1252
1254
  });
1253
1255
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1254
1256
  const doc = (0, import_smithy_client.take)(data, {
1255
- backendEnvironment: (_) => de_BackendEnvironment(_, context)
1257
+ backendEnvironment: /* @__PURE__ */ __name((_) => de_BackendEnvironment(_, context), "backendEnvironment")
1256
1258
  });
1257
1259
  Object.assign(contents, doc);
1258
1260
  return contents;
@@ -1266,7 +1268,7 @@ var de_DeleteBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
1266
1268
  });
1267
1269
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1268
1270
  const doc = (0, import_smithy_client.take)(data, {
1269
- branch: (_) => de_Branch(_, context)
1271
+ branch: /* @__PURE__ */ __name((_) => de_Branch(_, context), "branch")
1270
1272
  });
1271
1273
  Object.assign(contents, doc);
1272
1274
  return contents;
@@ -1294,7 +1296,7 @@ var de_DeleteJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1294
1296
  });
1295
1297
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1296
1298
  const doc = (0, import_smithy_client.take)(data, {
1297
- jobSummary: (_) => de_JobSummary(_, context)
1299
+ jobSummary: /* @__PURE__ */ __name((_) => de_JobSummary(_, context), "jobSummary")
1298
1300
  });
1299
1301
  Object.assign(contents, doc);
1300
1302
  return contents;
@@ -1308,7 +1310,7 @@ var de_DeleteWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
1308
1310
  });
1309
1311
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1310
1312
  const doc = (0, import_smithy_client.take)(data, {
1311
- webhook: (_) => de_Webhook(_, context)
1313
+ webhook: /* @__PURE__ */ __name((_) => de_Webhook(_, context), "webhook")
1312
1314
  });
1313
1315
  Object.assign(contents, doc);
1314
1316
  return contents;
@@ -1336,7 +1338,7 @@ var de_GetAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1336
1338
  });
1337
1339
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1338
1340
  const doc = (0, import_smithy_client.take)(data, {
1339
- app: (_) => de_App(_, context)
1341
+ app: /* @__PURE__ */ __name((_) => de_App(_, context), "app")
1340
1342
  });
1341
1343
  Object.assign(contents, doc);
1342
1344
  return contents;
@@ -1365,7 +1367,7 @@ var de_GetBackendEnvironmentCommand = /* @__PURE__ */ __name(async (output, cont
1365
1367
  });
1366
1368
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1367
1369
  const doc = (0, import_smithy_client.take)(data, {
1368
- backendEnvironment: (_) => de_BackendEnvironment(_, context)
1370
+ backendEnvironment: /* @__PURE__ */ __name((_) => de_BackendEnvironment(_, context), "backendEnvironment")
1369
1371
  });
1370
1372
  Object.assign(contents, doc);
1371
1373
  return contents;
@@ -1379,7 +1381,7 @@ var de_GetBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
1379
1381
  });
1380
1382
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1381
1383
  const doc = (0, import_smithy_client.take)(data, {
1382
- branch: (_) => de_Branch(_, context)
1384
+ branch: /* @__PURE__ */ __name((_) => de_Branch(_, context), "branch")
1383
1385
  });
1384
1386
  Object.assign(contents, doc);
1385
1387
  return contents;
@@ -1407,7 +1409,7 @@ var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1407
1409
  });
1408
1410
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1409
1411
  const doc = (0, import_smithy_client.take)(data, {
1410
- job: (_) => de_Job(_, context)
1412
+ job: /* @__PURE__ */ __name((_) => de_Job(_, context), "job")
1411
1413
  });
1412
1414
  Object.assign(contents, doc);
1413
1415
  return contents;
@@ -1421,7 +1423,7 @@ var de_GetWebhookCommand = /* @__PURE__ */ __name(async (output, context) => {
1421
1423
  });
1422
1424
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1423
1425
  const doc = (0, import_smithy_client.take)(data, {
1424
- webhook: (_) => de_Webhook(_, context)
1426
+ webhook: /* @__PURE__ */ __name((_) => de_Webhook(_, context), "webhook")
1425
1427
  });
1426
1428
  Object.assign(contents, doc);
1427
1429
  return contents;
@@ -1435,7 +1437,7 @@ var de_ListAppsCommand = /* @__PURE__ */ __name(async (output, context) => {
1435
1437
  });
1436
1438
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1437
1439
  const doc = (0, import_smithy_client.take)(data, {
1438
- apps: (_) => de_Apps(_, context),
1440
+ apps: /* @__PURE__ */ __name((_) => de_Apps(_, context), "apps"),
1439
1441
  nextToken: import_smithy_client.expectString
1440
1442
  });
1441
1443
  Object.assign(contents, doc);
@@ -1465,7 +1467,7 @@ var de_ListBackendEnvironmentsCommand = /* @__PURE__ */ __name(async (output, co
1465
1467
  });
1466
1468
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1467
1469
  const doc = (0, import_smithy_client.take)(data, {
1468
- backendEnvironments: (_) => de_BackendEnvironments(_, context),
1470
+ backendEnvironments: /* @__PURE__ */ __name((_) => de_BackendEnvironments(_, context), "backendEnvironments"),
1469
1471
  nextToken: import_smithy_client.expectString
1470
1472
  });
1471
1473
  Object.assign(contents, doc);
@@ -1480,7 +1482,7 @@ var de_ListBranchesCommand = /* @__PURE__ */ __name(async (output, context) => {
1480
1482
  });
1481
1483
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1482
1484
  const doc = (0, import_smithy_client.take)(data, {
1483
- branches: (_) => de_Branches(_, context),
1485
+ branches: /* @__PURE__ */ __name((_) => de_Branches(_, context), "branches"),
1484
1486
  nextToken: import_smithy_client.expectString
1485
1487
  });
1486
1488
  Object.assign(contents, doc);
@@ -1510,7 +1512,7 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1510
1512
  });
1511
1513
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1512
1514
  const doc = (0, import_smithy_client.take)(data, {
1513
- jobSummaries: (_) => de_JobSummaries(_, context),
1515
+ jobSummaries: /* @__PURE__ */ __name((_) => de_JobSummaries(_, context), "jobSummaries"),
1514
1516
  nextToken: import_smithy_client.expectString
1515
1517
  });
1516
1518
  Object.assign(contents, doc);
@@ -1540,7 +1542,7 @@ var de_ListWebhooksCommand = /* @__PURE__ */ __name(async (output, context) => {
1540
1542
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1541
1543
  const doc = (0, import_smithy_client.take)(data, {
1542
1544
  nextToken: import_smithy_client.expectString,
1543
- webhooks: (_) => de_Webhooks(_, context)
1545
+ webhooks: /* @__PURE__ */ __name((_) => de_Webhooks(_, context), "webhooks")
1544
1546
  });
1545
1547
  Object.assign(contents, doc);
1546
1548
  return contents;
@@ -1554,7 +1556,7 @@ var de_StartDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =
1554
1556
  });
1555
1557
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1556
1558
  const doc = (0, import_smithy_client.take)(data, {
1557
- jobSummary: (_) => de_JobSummary(_, context)
1559
+ jobSummary: /* @__PURE__ */ __name((_) => de_JobSummary(_, context), "jobSummary")
1558
1560
  });
1559
1561
  Object.assign(contents, doc);
1560
1562
  return contents;
@@ -1568,7 +1570,7 @@ var de_StartJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1568
1570
  });
1569
1571
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1570
1572
  const doc = (0, import_smithy_client.take)(data, {
1571
- jobSummary: (_) => de_JobSummary(_, context)
1573
+ jobSummary: /* @__PURE__ */ __name((_) => de_JobSummary(_, context), "jobSummary")
1572
1574
  });
1573
1575
  Object.assign(contents, doc);
1574
1576
  return contents;
@@ -1582,7 +1584,7 @@ var de_StopJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1582
1584
  });
1583
1585
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1584
1586
  const doc = (0, import_smithy_client.take)(data, {
1585
- jobSummary: (_) => de_JobSummary(_, context)
1587
+ jobSummary: /* @__PURE__ */ __name((_) => de_JobSummary(_, context), "jobSummary")
1586
1588
  });
1587
1589
  Object.assign(contents, doc);
1588
1590
  return contents;
@@ -1616,7 +1618,7 @@ var de_UpdateAppCommand = /* @__PURE__ */ __name(async (output, context) => {
1616
1618
  });
1617
1619
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1618
1620
  const doc = (0, import_smithy_client.take)(data, {
1619
- app: (_) => de_App(_, context)
1621
+ app: /* @__PURE__ */ __name((_) => de_App(_, context), "app")
1620
1622
  });
1621
1623
  Object.assign(contents, doc);
1622
1624
  return contents;
@@ -1630,7 +1632,7 @@ var de_UpdateBranchCommand = /* @__PURE__ */ __name(async (output, context) => {
1630
1632
  });
1631
1633
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1632
1634
  const doc = (0, import_smithy_client.take)(data, {
1633
- branch: (_) => de_Branch(_, context)
1635
+ branch: /* @__PURE__ */ __name((_) => de_Branch(_, context), "branch")
1634
1636
  });
1635
1637
  Object.assign(contents, doc);
1636
1638
  return contents;
@@ -1658,7 +1660,7 @@ var de_UpdateWebhookCommand = /* @__PURE__ */ __name(async (output, context) =>
1658
1660
  });
1659
1661
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1660
1662
  const doc = (0, import_smithy_client.take)(data, {
1661
- webhook: (_) => de_Webhook(_, context)
1663
+ webhook: /* @__PURE__ */ __name((_) => de_Webhook(_, context), "webhook")
1662
1664
  });
1663
1665
  Object.assign(contents, doc);
1664
1666
  return contents;
@@ -1803,7 +1805,7 @@ var de_App = /* @__PURE__ */ __name((output, context) => {
1803
1805
  buildSpec: import_smithy_client.expectString,
1804
1806
  cacheConfig: import_smithy_client._json,
1805
1807
  computeRoleArn: import_smithy_client.expectString,
1806
- createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1808
+ createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createTime"),
1807
1809
  customHeaders: import_smithy_client.expectString,
1808
1810
  customRules: import_smithy_client._json,
1809
1811
  defaultDomain: import_smithy_client.expectString,
@@ -1816,13 +1818,13 @@ var de_App = /* @__PURE__ */ __name((output, context) => {
1816
1818
  iamServiceRoleArn: import_smithy_client.expectString,
1817
1819
  name: import_smithy_client.expectString,
1818
1820
  platform: import_smithy_client.expectString,
1819
- productionBranch: (_) => de_ProductionBranch(_, context),
1821
+ productionBranch: /* @__PURE__ */ __name((_) => de_ProductionBranch(_, context), "productionBranch"),
1820
1822
  repository: import_smithy_client.expectString,
1821
1823
  repositoryCloneMethod: import_smithy_client.expectString,
1822
1824
  tags: import_smithy_client._json,
1823
- updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1825
+ updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updateTime"),
1824
1826
  wafConfiguration: import_smithy_client._json,
1825
- webhookCreateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1827
+ webhookCreateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "webhookCreateTime")
1826
1828
  });
1827
1829
  }, "de_App");
1828
1830
  var de_Apps = /* @__PURE__ */ __name((output, context) => {
@@ -1834,11 +1836,11 @@ var de_Apps = /* @__PURE__ */ __name((output, context) => {
1834
1836
  var de_BackendEnvironment = /* @__PURE__ */ __name((output, context) => {
1835
1837
  return (0, import_smithy_client.take)(output, {
1836
1838
  backendEnvironmentArn: import_smithy_client.expectString,
1837
- createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1839
+ createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createTime"),
1838
1840
  deploymentArtifacts: import_smithy_client.expectString,
1839
1841
  environmentName: import_smithy_client.expectString,
1840
1842
  stackName: import_smithy_client.expectString,
1841
- updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1843
+ updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updateTime")
1842
1844
  });
1843
1845
  }, "de_BackendEnvironment");
1844
1846
  var de_BackendEnvironments = /* @__PURE__ */ __name((output, context) => {
@@ -1858,7 +1860,7 @@ var de_Branch = /* @__PURE__ */ __name((output, context) => {
1858
1860
  branchName: import_smithy_client.expectString,
1859
1861
  buildSpec: import_smithy_client.expectString,
1860
1862
  computeRoleArn: import_smithy_client.expectString,
1861
- createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1863
+ createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createTime"),
1862
1864
  customDomains: import_smithy_client._json,
1863
1865
  description: import_smithy_client.expectString,
1864
1866
  destinationBranch: import_smithy_client.expectString,
@@ -1868,6 +1870,7 @@ var de_Branch = /* @__PURE__ */ __name((output, context) => {
1868
1870
  enableNotification: import_smithy_client.expectBoolean,
1869
1871
  enablePerformanceMode: import_smithy_client.expectBoolean,
1870
1872
  enablePullRequestPreview: import_smithy_client.expectBoolean,
1873
+ enableSkewProtection: import_smithy_client.expectBoolean,
1871
1874
  environmentVariables: import_smithy_client._json,
1872
1875
  framework: import_smithy_client.expectString,
1873
1876
  pullRequestEnvironmentName: import_smithy_client.expectString,
@@ -1877,7 +1880,7 @@ var de_Branch = /* @__PURE__ */ __name((output, context) => {
1877
1880
  thumbnailUrl: import_smithy_client.expectString,
1878
1881
  totalNumberOfJobs: import_smithy_client.expectString,
1879
1882
  ttl: import_smithy_client.expectString,
1880
- updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1883
+ updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updateTime")
1881
1884
  });
1882
1885
  }, "de_Branch");
1883
1886
  var de_Branches = /* @__PURE__ */ __name((output, context) => {
@@ -1888,8 +1891,8 @@ var de_Branches = /* @__PURE__ */ __name((output, context) => {
1888
1891
  }, "de_Branches");
1889
1892
  var de_Job = /* @__PURE__ */ __name((output, context) => {
1890
1893
  return (0, import_smithy_client.take)(output, {
1891
- steps: (_) => de_Steps(_, context),
1892
- summary: (_) => de_JobSummary(_, context)
1894
+ steps: /* @__PURE__ */ __name((_) => de_Steps(_, context), "steps"),
1895
+ summary: /* @__PURE__ */ __name((_) => de_JobSummary(_, context), "summary")
1893
1896
  });
1894
1897
  }, "de_Job");
1895
1898
  var de_JobSummaries = /* @__PURE__ */ __name((output, context) => {
@@ -1902,21 +1905,21 @@ var de_JobSummary = /* @__PURE__ */ __name((output, context) => {
1902
1905
  return (0, import_smithy_client.take)(output, {
1903
1906
  commitId: import_smithy_client.expectString,
1904
1907
  commitMessage: import_smithy_client.expectString,
1905
- commitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1906
- endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1908
+ commitTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "commitTime"),
1909
+ endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
1907
1910
  jobArn: import_smithy_client.expectString,
1908
1911
  jobId: import_smithy_client.expectString,
1909
1912
  jobType: import_smithy_client.expectString,
1910
1913
  sourceUrl: import_smithy_client.expectString,
1911
1914
  sourceUrlType: import_smithy_client.expectString,
1912
- startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1915
+ startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
1913
1916
  status: import_smithy_client.expectString
1914
1917
  });
1915
1918
  }, "de_JobSummary");
1916
1919
  var de_ProductionBranch = /* @__PURE__ */ __name((output, context) => {
1917
1920
  return (0, import_smithy_client.take)(output, {
1918
1921
  branchName: import_smithy_client.expectString,
1919
- lastDeployTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1922
+ lastDeployTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastDeployTime"),
1920
1923
  status: import_smithy_client.expectString,
1921
1924
  thumbnailUrl: import_smithy_client.expectString
1922
1925
  });
@@ -1925,10 +1928,10 @@ var de_Step = /* @__PURE__ */ __name((output, context) => {
1925
1928
  return (0, import_smithy_client.take)(output, {
1926
1929
  artifactsUrl: import_smithy_client.expectString,
1927
1930
  context: import_smithy_client.expectString,
1928
- endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1931
+ endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "endTime"),
1929
1932
  logUrl: import_smithy_client.expectString,
1930
1933
  screenshots: import_smithy_client._json,
1931
- startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1934
+ startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "startTime"),
1932
1935
  status: import_smithy_client.expectString,
1933
1936
  statusReason: import_smithy_client.expectString,
1934
1937
  stepName: import_smithy_client.expectString,
@@ -1945,9 +1948,9 @@ var de_Steps = /* @__PURE__ */ __name((output, context) => {
1945
1948
  var de_Webhook = /* @__PURE__ */ __name((output, context) => {
1946
1949
  return (0, import_smithy_client.take)(output, {
1947
1950
  branchName: import_smithy_client.expectString,
1948
- createTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1951
+ createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createTime"),
1949
1952
  description: import_smithy_client.expectString,
1950
- updateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1953
+ updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updateTime"),
1951
1954
  webhookArn: import_smithy_client.expectString,
1952
1955
  webhookId: import_smithy_client.expectString,
1953
1956
  webhookUrl: import_smithy_client.expectString
@@ -74,6 +74,7 @@ export const se_CreateBranchCommand = async (input, context) => {
74
74
  enableNotification: [],
75
75
  enablePerformanceMode: [],
76
76
  enablePullRequestPreview: [],
77
+ enableSkewProtection: [],
77
78
  environmentVariables: (_) => _json(_),
78
79
  framework: [],
79
80
  pullRequestEnvironmentName: [],
@@ -508,6 +509,7 @@ export const se_UpdateBranchCommand = async (input, context) => {
508
509
  enableNotification: [],
509
510
  enablePerformanceMode: [],
510
511
  enablePullRequestPreview: [],
512
+ enableSkewProtection: [],
511
513
  environmentVariables: (_) => _json(_),
512
514
  framework: [],
513
515
  pullRequestEnvironmentName: [],
@@ -1280,6 +1282,7 @@ const de_Branch = (output, context) => {
1280
1282
  enableNotification: __expectBoolean,
1281
1283
  enablePerformanceMode: __expectBoolean,
1282
1284
  enablePullRequestPreview: __expectBoolean,
1285
+ enableSkewProtection: __expectBoolean,
1283
1286
  environmentVariables: _json,
1284
1287
  framework: __expectString,
1285
1288
  pullRequestEnvironmentName: __expectString,
@@ -42,6 +42,7 @@ declare const CreateBranchCommand_base: {
42
42
  * framework: "STRING_VALUE",
43
43
  * enableNotification: true || false,
44
44
  * enableAutoBuild: true || false,
45
+ * enableSkewProtection: true || false,
45
46
  * environmentVariables: { // EnvironmentVariables
46
47
  * "<keys>": "STRING_VALUE",
47
48
  * },
@@ -81,6 +82,7 @@ declare const CreateBranchCommand_base: {
81
82
  * // "<keys>": "STRING_VALUE",
82
83
  * // },
83
84
  * // enableAutoBuild: true || false, // required
85
+ * // enableSkewProtection: true || false,
84
86
  * // customDomains: [ // CustomDomains // required
85
87
  * // "STRING_VALUE",
86
88
  * // ],
@@ -57,6 +57,7 @@ declare const DeleteBranchCommand_base: {
57
57
  * // "<keys>": "STRING_VALUE",
58
58
  * // },
59
59
  * // enableAutoBuild: true || false, // required
60
+ * // enableSkewProtection: true || false,
60
61
  * // customDomains: [ // CustomDomains // required
61
62
  * // "STRING_VALUE",
62
63
  * // ],
@@ -57,6 +57,7 @@ declare const GetBranchCommand_base: {
57
57
  * // "<keys>": "STRING_VALUE",
58
58
  * // },
59
59
  * // enableAutoBuild: true || false, // required
60
+ * // enableSkewProtection: true || false,
60
61
  * // customDomains: [ // CustomDomains // required
61
62
  * // "STRING_VALUE",
62
63
  * // ],
@@ -59,6 +59,7 @@ declare const ListBranchesCommand_base: {
59
59
  * // "<keys>": "STRING_VALUE",
60
60
  * // },
61
61
  * // enableAutoBuild: true || false, // required
62
+ * // enableSkewProtection: true || false,
62
63
  * // customDomains: [ // CustomDomains // required
63
64
  * // "STRING_VALUE",
64
65
  * // ],
@@ -42,6 +42,7 @@ declare const UpdateBranchCommand_base: {
42
42
  * stage: "PRODUCTION" || "BETA" || "DEVELOPMENT" || "EXPERIMENTAL" || "PULL_REQUEST",
43
43
  * enableNotification: true || false,
44
44
  * enableAutoBuild: true || false,
45
+ * enableSkewProtection: true || false,
45
46
  * environmentVariables: { // EnvironmentVariables
46
47
  * "<keys>": "STRING_VALUE",
47
48
  * },
@@ -78,6 +79,7 @@ declare const UpdateBranchCommand_base: {
78
79
  * // "<keys>": "STRING_VALUE",
79
80
  * // },
80
81
  * // enableAutoBuild: true || false, // required
82
+ * // enableSkewProtection: true || false,
81
83
  * // customDomains: [ // CustomDomains // required
82
84
  * // "STRING_VALUE",
83
85
  * // ],
@@ -217,7 +217,7 @@ export interface CreateAppRequest {
217
217
  /**
218
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
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
220
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
221
221
  * Guide</i>.</p>
222
222
  * @public
223
223
  */
@@ -471,7 +471,7 @@ export interface App {
471
471
  /**
472
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
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
474
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
475
475
  * Guide</i>.</p>
476
476
  * @public
477
477
  */
@@ -790,6 +790,16 @@ export interface CreateBranchRequest {
790
790
  * @public
791
791
  */
792
792
  enableAutoBuild?: boolean | undefined;
793
+ /**
794
+ * <p>Specifies whether the skew protection feature is enabled for the branch.</p>
795
+ * <p>Deployment skew protection is available to Amplify applications to eliminate version skew
796
+ * issues between client and servers in web applications. When you apply skew protection to a branch, you can ensure that your clients always interact with the correct version
797
+ * of server-side assets, regardless of when a deployment occurs. For more information about skew protection, see
798
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/skew-protection.html">Skew protection for Amplify deployments</a> in the <i>Amplify User
799
+ * Guide</i>.</p>
800
+ * @public
801
+ */
802
+ enableSkewProtection?: boolean | undefined;
793
803
  /**
794
804
  * <p> The environment variables for the branch. </p>
795
805
  * @public
@@ -866,7 +876,7 @@ export interface CreateBranchRequest {
866
876
  /**
867
877
  * <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
878
  * 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
879
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
870
880
  * Guide</i>.</p>
871
881
  * @public
872
882
  */
@@ -932,6 +942,16 @@ export interface Branch {
932
942
  * @public
933
943
  */
934
944
  enableAutoBuild: boolean | undefined;
945
+ /**
946
+ * <p>Specifies whether the skew protection feature is enabled for the branch.</p>
947
+ * <p>Deployment skew protection is available to Amplify applications to eliminate version skew
948
+ * issues between client and servers in web applications. When you apply skew protection to a branch, you can ensure that your clients always interact with the correct version
949
+ * of server-side assets, regardless of when a deployment occurs. For more information about skew protection, see
950
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/skew-protection.html">Skew protection for Amplify deployments</a> in the <i>Amplify User
951
+ * Guide</i>.</p>
952
+ * @public
953
+ */
954
+ enableSkewProtection?: boolean | undefined;
935
955
  /**
936
956
  * <p> The custom domains for a branch of an Amplify app. </p>
937
957
  * @public
@@ -1033,7 +1053,7 @@ export interface Branch {
1033
1053
  /**
1034
1054
  * <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
1055
  * 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
1056
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
1037
1057
  * Guide</i>.</p>
1038
1058
  * @public
1039
1059
  */
@@ -2621,7 +2641,7 @@ export interface UpdateAppRequest {
2621
2641
  /**
2622
2642
  * <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
2643
  * 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
2644
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
2625
2645
  * Guide</i>.</p>
2626
2646
  * @public
2627
2647
  */
@@ -2784,6 +2804,16 @@ export interface UpdateBranchRequest {
2784
2804
  * @public
2785
2805
  */
2786
2806
  enableAutoBuild?: boolean | undefined;
2807
+ /**
2808
+ * <p>Specifies whether the skew protection feature is enabled for the branch.</p>
2809
+ * <p>Deployment skew protection is available to Amplify applications to eliminate version skew
2810
+ * issues between client and servers in web applications. When you apply skew protection to a branch, you can ensure that your clients always interact with the correct version
2811
+ * of server-side assets, regardless of when a deployment occurs. For more information about skew protection, see
2812
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/skew-protection.html">Skew protection for Amplify deployments</a> in the <i>Amplify User
2813
+ * Guide</i>.</p>
2814
+ * @public
2815
+ */
2816
+ enableSkewProtection?: boolean | undefined;
2787
2817
  /**
2788
2818
  * <p> The environment variables for the branch. </p>
2789
2819
  * @public
@@ -2855,7 +2885,7 @@ export interface UpdateBranchRequest {
2855
2885
  /**
2856
2886
  * <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
2887
  * 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
2888
+ * <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User
2859
2889
  * Guide</i>.</p>
2860
2890
  * @public
2861
2891
  */
@@ -194,6 +194,7 @@ export interface CreateBranchRequest {
194
194
  framework?: string | undefined;
195
195
  enableNotification?: boolean | undefined;
196
196
  enableAutoBuild?: boolean | undefined;
197
+ enableSkewProtection?: boolean | undefined;
197
198
  environmentVariables?: Record<string, string> | undefined;
198
199
  basicAuthCredentials?: string | undefined;
199
200
  enableBasicAuth?: boolean | undefined;
@@ -220,6 +221,7 @@ export interface Branch {
220
221
  updateTime: Date | undefined;
221
222
  environmentVariables: Record<string, string> | undefined;
222
223
  enableAutoBuild: boolean | undefined;
224
+ enableSkewProtection?: boolean | undefined;
223
225
  customDomains: string[] | undefined;
224
226
  framework: string | undefined;
225
227
  activeJobId: string | undefined;
@@ -651,6 +653,7 @@ export interface UpdateBranchRequest {
651
653
  stage?: Stage | undefined;
652
654
  enableNotification?: boolean | undefined;
653
655
  enableAutoBuild?: boolean | undefined;
656
+ enableSkewProtection?: boolean | undefined;
654
657
  environmentVariables?: Record<string, string> | undefined;
655
658
  basicAuthCredentials?: string | undefined;
656
659
  enableBasicAuth?: boolean | 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.750.0",
4
+ "version": "3.767.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.750.0",
24
- "@aws-sdk/credential-provider-node": "3.750.0",
23
+ "@aws-sdk/core": "3.758.0",
24
+ "@aws-sdk/credential-provider-node": "3.758.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.750.0",
28
+ "@aws-sdk/middleware-user-agent": "3.758.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.750.0",
33
+ "@aws-sdk/util-user-agent-node": "3.758.0",
34
34
  "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.4",
35
+ "@smithy/core": "^3.1.5",
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.5",
41
- "@smithy/middleware-retry": "^4.0.6",
40
+ "@smithy/middleware-endpoint": "^4.0.6",
41
+ "@smithy/middleware-retry": "^4.0.7",
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
- "@smithy/node-http-handler": "^4.0.2",
45
+ "@smithy/node-http-handler": "^4.0.3",
46
46
  "@smithy/protocol-http": "^5.0.1",
47
- "@smithy/smithy-client": "^4.1.5",
47
+ "@smithy/smithy-client": "^4.1.6",
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.6",
54
- "@smithy/util-defaults-mode-node": "^4.0.6",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.7",
54
+ "@smithy/util-defaults-mode-node": "^4.0.7",
55
55
  "@smithy/util-endpoints": "^3.0.1",
56
56
  "@smithy/util-middleware": "^4.0.1",
57
57
  "@smithy/util-retry": "^4.0.1",