@aws-sdk/client-cloudhsm-v2 3.54.0 → 3.56.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/CloudHSMV2Client.js +13 -13
  3. package/dist-cjs/commands/CopyBackupToRegionCommand.js +3 -3
  4. package/dist-cjs/commands/CreateClusterCommand.js +3 -3
  5. package/dist-cjs/commands/CreateHsmCommand.js +3 -3
  6. package/dist-cjs/commands/DeleteBackupCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteClusterCommand.js +3 -3
  8. package/dist-cjs/commands/DeleteHsmCommand.js +3 -3
  9. package/dist-cjs/commands/DescribeBackupsCommand.js +3 -3
  10. package/dist-cjs/commands/DescribeClustersCommand.js +3 -3
  11. package/dist-cjs/commands/InitializeClusterCommand.js +3 -3
  12. package/dist-cjs/commands/ListTagsCommand.js +3 -3
  13. package/dist-cjs/commands/ModifyBackupAttributesCommand.js +3 -3
  14. package/dist-cjs/commands/ModifyClusterCommand.js +3 -3
  15. package/dist-cjs/commands/RestoreBackupCommand.js +3 -3
  16. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  17. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  18. package/dist-cjs/endpoints.js +1 -1
  19. package/dist-cjs/protocols/Aws_json1_1.js +75 -75
  20. package/dist-cjs/runtimeConfig.browser.js +4 -4
  21. package/dist-cjs/runtimeConfig.js +9 -9
  22. package/dist-cjs/runtimeConfig.native.js +1 -1
  23. package/dist-es/CloudHSMV2.js +15 -15
  24. package/dist-es/pagination/DescribeBackupsPaginator.js +4 -4
  25. package/dist-es/pagination/DescribeClustersPaginator.js +4 -4
  26. package/dist-es/pagination/ListTagsPaginator.js +4 -4
  27. package/dist-types/runtimeConfig.native.d.ts +2 -2
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  29. package/package.json +34 -34
@@ -203,7 +203,7 @@ const deserializeAws_json1_1CopyBackupToRegionCommandError = async (output, cont
203
203
  $fault: "client",
204
204
  $metadata: deserializeMetadata(output),
205
205
  });
206
- throw smithy_client_1.decorateServiceException(response, parsedBody);
206
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
207
207
  }
208
208
  };
209
209
  const deserializeAws_json1_1CreateClusterCommand = async (output, context) => {
@@ -254,7 +254,7 @@ const deserializeAws_json1_1CreateClusterCommandError = async (output, context)
254
254
  $fault: "client",
255
255
  $metadata: deserializeMetadata(output),
256
256
  });
257
- throw smithy_client_1.decorateServiceException(response, parsedBody);
257
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
258
258
  }
259
259
  };
260
260
  const deserializeAws_json1_1CreateHsmCommand = async (output, context) => {
@@ -302,7 +302,7 @@ const deserializeAws_json1_1CreateHsmCommandError = async (output, context) => {
302
302
  $fault: "client",
303
303
  $metadata: deserializeMetadata(output),
304
304
  });
305
- throw smithy_client_1.decorateServiceException(response, parsedBody);
305
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
306
306
  }
307
307
  };
308
308
  const deserializeAws_json1_1DeleteBackupCommand = async (output, context) => {
@@ -350,7 +350,7 @@ const deserializeAws_json1_1DeleteBackupCommandError = async (output, context) =
350
350
  $fault: "client",
351
351
  $metadata: deserializeMetadata(output),
352
352
  });
353
- throw smithy_client_1.decorateServiceException(response, parsedBody);
353
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
354
354
  }
355
355
  };
356
356
  const deserializeAws_json1_1DeleteClusterCommand = async (output, context) => {
@@ -401,7 +401,7 @@ const deserializeAws_json1_1DeleteClusterCommandError = async (output, context)
401
401
  $fault: "client",
402
402
  $metadata: deserializeMetadata(output),
403
403
  });
404
- throw smithy_client_1.decorateServiceException(response, parsedBody);
404
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
405
405
  }
406
406
  };
407
407
  const deserializeAws_json1_1DeleteHsmCommand = async (output, context) => {
@@ -449,7 +449,7 @@ const deserializeAws_json1_1DeleteHsmCommandError = async (output, context) => {
449
449
  $fault: "client",
450
450
  $metadata: deserializeMetadata(output),
451
451
  });
452
- throw smithy_client_1.decorateServiceException(response, parsedBody);
452
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
453
453
  }
454
454
  };
455
455
  const deserializeAws_json1_1DescribeBackupsCommand = async (output, context) => {
@@ -500,7 +500,7 @@ const deserializeAws_json1_1DescribeBackupsCommandError = async (output, context
500
500
  $fault: "client",
501
501
  $metadata: deserializeMetadata(output),
502
502
  });
503
- throw smithy_client_1.decorateServiceException(response, parsedBody);
503
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
504
504
  }
505
505
  };
506
506
  const deserializeAws_json1_1DescribeClustersCommand = async (output, context) => {
@@ -548,7 +548,7 @@ const deserializeAws_json1_1DescribeClustersCommandError = async (output, contex
548
548
  $fault: "client",
549
549
  $metadata: deserializeMetadata(output),
550
550
  });
551
- throw smithy_client_1.decorateServiceException(response, parsedBody);
551
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
552
552
  }
553
553
  };
554
554
  const deserializeAws_json1_1InitializeClusterCommand = async (output, context) => {
@@ -596,7 +596,7 @@ const deserializeAws_json1_1InitializeClusterCommandError = async (output, conte
596
596
  $fault: "client",
597
597
  $metadata: deserializeMetadata(output),
598
598
  });
599
- throw smithy_client_1.decorateServiceException(response, parsedBody);
599
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
600
600
  }
601
601
  };
602
602
  const deserializeAws_json1_1ListTagsCommand = async (output, context) => {
@@ -647,7 +647,7 @@ const deserializeAws_json1_1ListTagsCommandError = async (output, context) => {
647
647
  $fault: "client",
648
648
  $metadata: deserializeMetadata(output),
649
649
  });
650
- throw smithy_client_1.decorateServiceException(response, parsedBody);
650
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
651
651
  }
652
652
  };
653
653
  const deserializeAws_json1_1ModifyBackupAttributesCommand = async (output, context) => {
@@ -695,7 +695,7 @@ const deserializeAws_json1_1ModifyBackupAttributesCommandError = async (output,
695
695
  $fault: "client",
696
696
  $metadata: deserializeMetadata(output),
697
697
  });
698
- throw smithy_client_1.decorateServiceException(response, parsedBody);
698
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
699
699
  }
700
700
  };
701
701
  const deserializeAws_json1_1ModifyClusterCommand = async (output, context) => {
@@ -743,7 +743,7 @@ const deserializeAws_json1_1ModifyClusterCommandError = async (output, context)
743
743
  $fault: "client",
744
744
  $metadata: deserializeMetadata(output),
745
745
  });
746
- throw smithy_client_1.decorateServiceException(response, parsedBody);
746
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
747
747
  }
748
748
  };
749
749
  const deserializeAws_json1_1RestoreBackupCommand = async (output, context) => {
@@ -791,7 +791,7 @@ const deserializeAws_json1_1RestoreBackupCommandError = async (output, context)
791
791
  $fault: "client",
792
792
  $metadata: deserializeMetadata(output),
793
793
  });
794
- throw smithy_client_1.decorateServiceException(response, parsedBody);
794
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
795
795
  }
796
796
  };
797
797
  const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
@@ -842,7 +842,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
842
842
  $fault: "client",
843
843
  $metadata: deserializeMetadata(output),
844
844
  });
845
- throw smithy_client_1.decorateServiceException(response, parsedBody);
845
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
846
846
  }
847
847
  };
848
848
  const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
@@ -893,7 +893,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
893
893
  $fault: "client",
894
894
  $metadata: deserializeMetadata(output),
895
895
  });
896
- throw smithy_client_1.decorateServiceException(response, parsedBody);
896
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
897
897
  }
898
898
  };
899
899
  const deserializeAws_json1_1CloudHsmAccessDeniedExceptionResponse = async (parsedOutput, context) => {
@@ -903,7 +903,7 @@ const deserializeAws_json1_1CloudHsmAccessDeniedExceptionResponse = async (parse
903
903
  $metadata: deserializeMetadata(parsedOutput),
904
904
  ...deserialized,
905
905
  });
906
- return smithy_client_1.decorateServiceException(exception, body);
906
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
907
907
  };
908
908
  const deserializeAws_json1_1CloudHsmInternalFailureExceptionResponse = async (parsedOutput, context) => {
909
909
  const body = parsedOutput.body;
@@ -912,7 +912,7 @@ const deserializeAws_json1_1CloudHsmInternalFailureExceptionResponse = async (pa
912
912
  $metadata: deserializeMetadata(parsedOutput),
913
913
  ...deserialized,
914
914
  });
915
- return smithy_client_1.decorateServiceException(exception, body);
915
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
916
916
  };
917
917
  const deserializeAws_json1_1CloudHsmInvalidRequestExceptionResponse = async (parsedOutput, context) => {
918
918
  const body = parsedOutput.body;
@@ -921,7 +921,7 @@ const deserializeAws_json1_1CloudHsmInvalidRequestExceptionResponse = async (par
921
921
  $metadata: deserializeMetadata(parsedOutput),
922
922
  ...deserialized,
923
923
  });
924
- return smithy_client_1.decorateServiceException(exception, body);
924
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
925
925
  };
926
926
  const deserializeAws_json1_1CloudHsmResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
927
927
  const body = parsedOutput.body;
@@ -930,7 +930,7 @@ const deserializeAws_json1_1CloudHsmResourceNotFoundExceptionResponse = async (p
930
930
  $metadata: deserializeMetadata(parsedOutput),
931
931
  ...deserialized,
932
932
  });
933
- return smithy_client_1.decorateServiceException(exception, body);
933
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
934
934
  };
935
935
  const deserializeAws_json1_1CloudHsmServiceExceptionResponse = async (parsedOutput, context) => {
936
936
  const body = parsedOutput.body;
@@ -939,7 +939,7 @@ const deserializeAws_json1_1CloudHsmServiceExceptionResponse = async (parsedOutp
939
939
  $metadata: deserializeMetadata(parsedOutput),
940
940
  ...deserialized,
941
941
  });
942
- return smithy_client_1.decorateServiceException(exception, body);
942
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
943
943
  };
944
944
  const deserializeAws_json1_1CloudHsmTagExceptionResponse = async (parsedOutput, context) => {
945
945
  const body = parsedOutput.body;
@@ -948,7 +948,7 @@ const deserializeAws_json1_1CloudHsmTagExceptionResponse = async (parsedOutput,
948
948
  $metadata: deserializeMetadata(parsedOutput),
949
949
  ...deserialized,
950
950
  });
951
- return smithy_client_1.decorateServiceException(exception, body);
951
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
952
952
  };
953
953
  const serializeAws_json1_1BackupRetentionPolicy = (input, context) => {
954
954
  return {
@@ -1130,22 +1130,22 @@ const serializeAws_json1_1UntagResourceRequest = (input, context) => {
1130
1130
  };
1131
1131
  const deserializeAws_json1_1Backup = (output, context) => {
1132
1132
  return {
1133
- BackupId: smithy_client_1.expectString(output.BackupId),
1134
- BackupState: smithy_client_1.expectString(output.BackupState),
1135
- ClusterId: smithy_client_1.expectString(output.ClusterId),
1133
+ BackupId: (0, smithy_client_1.expectString)(output.BackupId),
1134
+ BackupState: (0, smithy_client_1.expectString)(output.BackupState),
1135
+ ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
1136
1136
  CopyTimestamp: output.CopyTimestamp !== undefined && output.CopyTimestamp !== null
1137
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CopyTimestamp)))
1137
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CopyTimestamp)))
1138
1138
  : undefined,
1139
1139
  CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1140
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreateTimestamp)))
1140
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
1141
1141
  : undefined,
1142
1142
  DeleteTimestamp: output.DeleteTimestamp !== undefined && output.DeleteTimestamp !== null
1143
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeleteTimestamp)))
1143
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeleteTimestamp)))
1144
1144
  : undefined,
1145
- NeverExpires: smithy_client_1.expectBoolean(output.NeverExpires),
1146
- SourceBackup: smithy_client_1.expectString(output.SourceBackup),
1147
- SourceCluster: smithy_client_1.expectString(output.SourceCluster),
1148
- SourceRegion: smithy_client_1.expectString(output.SourceRegion),
1145
+ NeverExpires: (0, smithy_client_1.expectBoolean)(output.NeverExpires),
1146
+ SourceBackup: (0, smithy_client_1.expectString)(output.SourceBackup),
1147
+ SourceCluster: (0, smithy_client_1.expectString)(output.SourceCluster),
1148
+ SourceRegion: (0, smithy_client_1.expectString)(output.SourceRegion),
1149
1149
  TagList: output.TagList !== undefined && output.TagList !== null
1150
1150
  ? deserializeAws_json1_1TagList(output.TagList, context)
1151
1151
  : undefined,
@@ -1153,8 +1153,8 @@ const deserializeAws_json1_1Backup = (output, context) => {
1153
1153
  };
1154
1154
  const deserializeAws_json1_1BackupRetentionPolicy = (output, context) => {
1155
1155
  return {
1156
- Type: smithy_client_1.expectString(output.Type),
1157
- Value: smithy_client_1.expectString(output.Value),
1156
+ Type: (0, smithy_client_1.expectString)(output.Type),
1157
+ Value: (0, smithy_client_1.expectString)(output.Value),
1158
1158
  };
1159
1159
  };
1160
1160
  const deserializeAws_json1_1Backups = (output, context) => {
@@ -1170,70 +1170,70 @@ const deserializeAws_json1_1Backups = (output, context) => {
1170
1170
  };
1171
1171
  const deserializeAws_json1_1Certificates = (output, context) => {
1172
1172
  return {
1173
- AwsHardwareCertificate: smithy_client_1.expectString(output.AwsHardwareCertificate),
1174
- ClusterCertificate: smithy_client_1.expectString(output.ClusterCertificate),
1175
- ClusterCsr: smithy_client_1.expectString(output.ClusterCsr),
1176
- HsmCertificate: smithy_client_1.expectString(output.HsmCertificate),
1177
- ManufacturerHardwareCertificate: smithy_client_1.expectString(output.ManufacturerHardwareCertificate),
1173
+ AwsHardwareCertificate: (0, smithy_client_1.expectString)(output.AwsHardwareCertificate),
1174
+ ClusterCertificate: (0, smithy_client_1.expectString)(output.ClusterCertificate),
1175
+ ClusterCsr: (0, smithy_client_1.expectString)(output.ClusterCsr),
1176
+ HsmCertificate: (0, smithy_client_1.expectString)(output.HsmCertificate),
1177
+ ManufacturerHardwareCertificate: (0, smithy_client_1.expectString)(output.ManufacturerHardwareCertificate),
1178
1178
  };
1179
1179
  };
1180
1180
  const deserializeAws_json1_1CloudHsmAccessDeniedException = (output, context) => {
1181
1181
  return {
1182
- Message: smithy_client_1.expectString(output.Message),
1182
+ Message: (0, smithy_client_1.expectString)(output.Message),
1183
1183
  };
1184
1184
  };
1185
1185
  const deserializeAws_json1_1CloudHsmInternalFailureException = (output, context) => {
1186
1186
  return {
1187
- Message: smithy_client_1.expectString(output.Message),
1187
+ Message: (0, smithy_client_1.expectString)(output.Message),
1188
1188
  };
1189
1189
  };
1190
1190
  const deserializeAws_json1_1CloudHsmInvalidRequestException = (output, context) => {
1191
1191
  return {
1192
- Message: smithy_client_1.expectString(output.Message),
1192
+ Message: (0, smithy_client_1.expectString)(output.Message),
1193
1193
  };
1194
1194
  };
1195
1195
  const deserializeAws_json1_1CloudHsmResourceNotFoundException = (output, context) => {
1196
1196
  return {
1197
- Message: smithy_client_1.expectString(output.Message),
1197
+ Message: (0, smithy_client_1.expectString)(output.Message),
1198
1198
  };
1199
1199
  };
1200
1200
  const deserializeAws_json1_1CloudHsmServiceException = (output, context) => {
1201
1201
  return {
1202
- Message: smithy_client_1.expectString(output.Message),
1202
+ Message: (0, smithy_client_1.expectString)(output.Message),
1203
1203
  };
1204
1204
  };
1205
1205
  const deserializeAws_json1_1CloudHsmTagException = (output, context) => {
1206
1206
  return {
1207
- Message: smithy_client_1.expectString(output.Message),
1207
+ Message: (0, smithy_client_1.expectString)(output.Message),
1208
1208
  };
1209
1209
  };
1210
1210
  const deserializeAws_json1_1Cluster = (output, context) => {
1211
1211
  return {
1212
- BackupPolicy: smithy_client_1.expectString(output.BackupPolicy),
1212
+ BackupPolicy: (0, smithy_client_1.expectString)(output.BackupPolicy),
1213
1213
  BackupRetentionPolicy: output.BackupRetentionPolicy !== undefined && output.BackupRetentionPolicy !== null
1214
1214
  ? deserializeAws_json1_1BackupRetentionPolicy(output.BackupRetentionPolicy, context)
1215
1215
  : undefined,
1216
1216
  Certificates: output.Certificates !== undefined && output.Certificates !== null
1217
1217
  ? deserializeAws_json1_1Certificates(output.Certificates, context)
1218
1218
  : undefined,
1219
- ClusterId: smithy_client_1.expectString(output.ClusterId),
1219
+ ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
1220
1220
  CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1221
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreateTimestamp)))
1221
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
1222
1222
  : undefined,
1223
- HsmType: smithy_client_1.expectString(output.HsmType),
1223
+ HsmType: (0, smithy_client_1.expectString)(output.HsmType),
1224
1224
  Hsms: output.Hsms !== undefined && output.Hsms !== null ? deserializeAws_json1_1Hsms(output.Hsms, context) : undefined,
1225
- PreCoPassword: smithy_client_1.expectString(output.PreCoPassword),
1226
- SecurityGroup: smithy_client_1.expectString(output.SecurityGroup),
1227
- SourceBackupId: smithy_client_1.expectString(output.SourceBackupId),
1228
- State: smithy_client_1.expectString(output.State),
1229
- StateMessage: smithy_client_1.expectString(output.StateMessage),
1225
+ PreCoPassword: (0, smithy_client_1.expectString)(output.PreCoPassword),
1226
+ SecurityGroup: (0, smithy_client_1.expectString)(output.SecurityGroup),
1227
+ SourceBackupId: (0, smithy_client_1.expectString)(output.SourceBackupId),
1228
+ State: (0, smithy_client_1.expectString)(output.State),
1229
+ StateMessage: (0, smithy_client_1.expectString)(output.StateMessage),
1230
1230
  SubnetMapping: output.SubnetMapping !== undefined && output.SubnetMapping !== null
1231
1231
  ? deserializeAws_json1_1ExternalSubnetMapping(output.SubnetMapping, context)
1232
1232
  : undefined,
1233
1233
  TagList: output.TagList !== undefined && output.TagList !== null
1234
1234
  ? deserializeAws_json1_1TagList(output.TagList, context)
1235
1235
  : undefined,
1236
- VpcId: smithy_client_1.expectString(output.VpcId),
1236
+ VpcId: (0, smithy_client_1.expectString)(output.VpcId),
1237
1237
  };
1238
1238
  };
1239
1239
  const deserializeAws_json1_1Clusters = (output, context) => {
@@ -1282,7 +1282,7 @@ const deserializeAws_json1_1DeleteClusterResponse = (output, context) => {
1282
1282
  };
1283
1283
  const deserializeAws_json1_1DeleteHsmResponse = (output, context) => {
1284
1284
  return {
1285
- HsmId: smithy_client_1.expectString(output.HsmId),
1285
+ HsmId: (0, smithy_client_1.expectString)(output.HsmId),
1286
1286
  };
1287
1287
  };
1288
1288
  const deserializeAws_json1_1DescribeBackupsResponse = (output, context) => {
@@ -1290,7 +1290,7 @@ const deserializeAws_json1_1DescribeBackupsResponse = (output, context) => {
1290
1290
  Backups: output.Backups !== undefined && output.Backups !== null
1291
1291
  ? deserializeAws_json1_1Backups(output.Backups, context)
1292
1292
  : undefined,
1293
- NextToken: smithy_client_1.expectString(output.NextToken),
1293
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1294
1294
  };
1295
1295
  };
1296
1296
  const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
@@ -1298,17 +1298,17 @@ const deserializeAws_json1_1DescribeClustersResponse = (output, context) => {
1298
1298
  Clusters: output.Clusters !== undefined && output.Clusters !== null
1299
1299
  ? deserializeAws_json1_1Clusters(output.Clusters, context)
1300
1300
  : undefined,
1301
- NextToken: smithy_client_1.expectString(output.NextToken),
1301
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1302
1302
  };
1303
1303
  };
1304
1304
  const deserializeAws_json1_1DestinationBackup = (output, context) => {
1305
1305
  return {
1306
1306
  CreateTimestamp: output.CreateTimestamp !== undefined && output.CreateTimestamp !== null
1307
- ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreateTimestamp)))
1307
+ ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateTimestamp)))
1308
1308
  : undefined,
1309
- SourceBackup: smithy_client_1.expectString(output.SourceBackup),
1310
- SourceCluster: smithy_client_1.expectString(output.SourceCluster),
1311
- SourceRegion: smithy_client_1.expectString(output.SourceRegion),
1309
+ SourceBackup: (0, smithy_client_1.expectString)(output.SourceBackup),
1310
+ SourceCluster: (0, smithy_client_1.expectString)(output.SourceCluster),
1311
+ SourceRegion: (0, smithy_client_1.expectString)(output.SourceRegion),
1312
1312
  };
1313
1313
  };
1314
1314
  const deserializeAws_json1_1ExternalSubnetMapping = (output, context) => {
@@ -1318,20 +1318,20 @@ const deserializeAws_json1_1ExternalSubnetMapping = (output, context) => {
1318
1318
  }
1319
1319
  return {
1320
1320
  ...acc,
1321
- [key]: smithy_client_1.expectString(value),
1321
+ [key]: (0, smithy_client_1.expectString)(value),
1322
1322
  };
1323
1323
  }, {});
1324
1324
  };
1325
1325
  const deserializeAws_json1_1Hsm = (output, context) => {
1326
1326
  return {
1327
- AvailabilityZone: smithy_client_1.expectString(output.AvailabilityZone),
1328
- ClusterId: smithy_client_1.expectString(output.ClusterId),
1329
- EniId: smithy_client_1.expectString(output.EniId),
1330
- EniIp: smithy_client_1.expectString(output.EniIp),
1331
- HsmId: smithy_client_1.expectString(output.HsmId),
1332
- State: smithy_client_1.expectString(output.State),
1333
- StateMessage: smithy_client_1.expectString(output.StateMessage),
1334
- SubnetId: smithy_client_1.expectString(output.SubnetId),
1327
+ AvailabilityZone: (0, smithy_client_1.expectString)(output.AvailabilityZone),
1328
+ ClusterId: (0, smithy_client_1.expectString)(output.ClusterId),
1329
+ EniId: (0, smithy_client_1.expectString)(output.EniId),
1330
+ EniIp: (0, smithy_client_1.expectString)(output.EniIp),
1331
+ HsmId: (0, smithy_client_1.expectString)(output.HsmId),
1332
+ State: (0, smithy_client_1.expectString)(output.State),
1333
+ StateMessage: (0, smithy_client_1.expectString)(output.StateMessage),
1334
+ SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
1335
1335
  };
1336
1336
  };
1337
1337
  const deserializeAws_json1_1Hsms = (output, context) => {
@@ -1347,13 +1347,13 @@ const deserializeAws_json1_1Hsms = (output, context) => {
1347
1347
  };
1348
1348
  const deserializeAws_json1_1InitializeClusterResponse = (output, context) => {
1349
1349
  return {
1350
- State: smithy_client_1.expectString(output.State),
1351
- StateMessage: smithy_client_1.expectString(output.StateMessage),
1350
+ State: (0, smithy_client_1.expectString)(output.State),
1351
+ StateMessage: (0, smithy_client_1.expectString)(output.StateMessage),
1352
1352
  };
1353
1353
  };
1354
1354
  const deserializeAws_json1_1ListTagsResponse = (output, context) => {
1355
1355
  return {
1356
- NextToken: smithy_client_1.expectString(output.NextToken),
1356
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
1357
1357
  TagList: output.TagList !== undefined && output.TagList !== null
1358
1358
  ? deserializeAws_json1_1TagList(output.TagList, context)
1359
1359
  : undefined,
@@ -1382,8 +1382,8 @@ const deserializeAws_json1_1RestoreBackupResponse = (output, context) => {
1382
1382
  };
1383
1383
  const deserializeAws_json1_1Tag = (output, context) => {
1384
1384
  return {
1385
- Key: smithy_client_1.expectString(output.Key),
1386
- Value: smithy_client_1.expectString(output.Value),
1385
+ Key: (0, smithy_client_1.expectString)(output.Key),
1386
+ Value: (0, smithy_client_1.expectString)(output.Value),
1387
1387
  };
1388
1388
  };
1389
1389
  const deserializeAws_json1_1TagList = (output, context) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
@@ -27,7 +27,7 @@ var CloudHSMV2 = (function (_super) {
27
27
  }
28
28
  else if (typeof cb === "function") {
29
29
  if (typeof optionsOrCb !== "object")
30
- throw new Error("Expect http options but get " + typeof optionsOrCb);
30
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
31
31
  this.send(command, optionsOrCb || {}, cb);
32
32
  }
33
33
  else {
@@ -41,7 +41,7 @@ var CloudHSMV2 = (function (_super) {
41
41
  }
42
42
  else if (typeof cb === "function") {
43
43
  if (typeof optionsOrCb !== "object")
44
- throw new Error("Expect http options but get " + typeof optionsOrCb);
44
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
45
45
  this.send(command, optionsOrCb || {}, cb);
46
46
  }
47
47
  else {
@@ -55,7 +55,7 @@ var CloudHSMV2 = (function (_super) {
55
55
  }
56
56
  else if (typeof cb === "function") {
57
57
  if (typeof optionsOrCb !== "object")
58
- throw new Error("Expect http options but get " + typeof optionsOrCb);
58
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
59
  this.send(command, optionsOrCb || {}, cb);
60
60
  }
61
61
  else {
@@ -69,7 +69,7 @@ var CloudHSMV2 = (function (_super) {
69
69
  }
70
70
  else if (typeof cb === "function") {
71
71
  if (typeof optionsOrCb !== "object")
72
- throw new Error("Expect http options but get " + typeof optionsOrCb);
72
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
73
  this.send(command, optionsOrCb || {}, cb);
74
74
  }
75
75
  else {
@@ -83,7 +83,7 @@ var CloudHSMV2 = (function (_super) {
83
83
  }
84
84
  else if (typeof cb === "function") {
85
85
  if (typeof optionsOrCb !== "object")
86
- throw new Error("Expect http options but get " + typeof optionsOrCb);
86
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
87
  this.send(command, optionsOrCb || {}, cb);
88
88
  }
89
89
  else {
@@ -97,7 +97,7 @@ var CloudHSMV2 = (function (_super) {
97
97
  }
98
98
  else if (typeof cb === "function") {
99
99
  if (typeof optionsOrCb !== "object")
100
- throw new Error("Expect http options but get " + typeof optionsOrCb);
100
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
101
101
  this.send(command, optionsOrCb || {}, cb);
102
102
  }
103
103
  else {
@@ -111,7 +111,7 @@ var CloudHSMV2 = (function (_super) {
111
111
  }
112
112
  else if (typeof cb === "function") {
113
113
  if (typeof optionsOrCb !== "object")
114
- throw new Error("Expect http options but get " + typeof optionsOrCb);
114
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
115
115
  this.send(command, optionsOrCb || {}, cb);
116
116
  }
117
117
  else {
@@ -125,7 +125,7 @@ var CloudHSMV2 = (function (_super) {
125
125
  }
126
126
  else if (typeof cb === "function") {
127
127
  if (typeof optionsOrCb !== "object")
128
- throw new Error("Expect http options but get " + typeof optionsOrCb);
128
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
129
129
  this.send(command, optionsOrCb || {}, cb);
130
130
  }
131
131
  else {
@@ -139,7 +139,7 @@ var CloudHSMV2 = (function (_super) {
139
139
  }
140
140
  else if (typeof cb === "function") {
141
141
  if (typeof optionsOrCb !== "object")
142
- throw new Error("Expect http options but get " + typeof optionsOrCb);
142
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
143
143
  this.send(command, optionsOrCb || {}, cb);
144
144
  }
145
145
  else {
@@ -153,7 +153,7 @@ var CloudHSMV2 = (function (_super) {
153
153
  }
154
154
  else if (typeof cb === "function") {
155
155
  if (typeof optionsOrCb !== "object")
156
- throw new Error("Expect http options but get " + typeof optionsOrCb);
156
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
157
157
  this.send(command, optionsOrCb || {}, cb);
158
158
  }
159
159
  else {
@@ -167,7 +167,7 @@ var CloudHSMV2 = (function (_super) {
167
167
  }
168
168
  else if (typeof cb === "function") {
169
169
  if (typeof optionsOrCb !== "object")
170
- throw new Error("Expect http options but get " + typeof optionsOrCb);
170
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
171
171
  this.send(command, optionsOrCb || {}, cb);
172
172
  }
173
173
  else {
@@ -181,7 +181,7 @@ var CloudHSMV2 = (function (_super) {
181
181
  }
182
182
  else if (typeof cb === "function") {
183
183
  if (typeof optionsOrCb !== "object")
184
- throw new Error("Expect http options but get " + typeof optionsOrCb);
184
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
185
185
  this.send(command, optionsOrCb || {}, cb);
186
186
  }
187
187
  else {
@@ -195,7 +195,7 @@ var CloudHSMV2 = (function (_super) {
195
195
  }
196
196
  else if (typeof cb === "function") {
197
197
  if (typeof optionsOrCb !== "object")
198
- throw new Error("Expect http options but get " + typeof optionsOrCb);
198
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
199
199
  this.send(command, optionsOrCb || {}, cb);
200
200
  }
201
201
  else {
@@ -209,7 +209,7 @@ var CloudHSMV2 = (function (_super) {
209
209
  }
210
210
  else if (typeof cb === "function") {
211
211
  if (typeof optionsOrCb !== "object")
212
- throw new Error("Expect http options but get " + typeof optionsOrCb);
212
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
213
213
  this.send(command, optionsOrCb || {}, cb);
214
214
  }
215
215
  else {
@@ -223,7 +223,7 @@ var CloudHSMV2 = (function (_super) {
223
223
  }
224
224
  else if (typeof cb === "function") {
225
225
  if (typeof optionsOrCb !== "object")
226
- throw new Error("Expect http options but get " + typeof optionsOrCb);
226
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
227
227
  this.send(command, optionsOrCb || {}, cb);
228
228
  }
229
229
  else {