@aws-sdk/client-secrets-manager 3.1076.0 → 3.1078.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 (89) hide show
  1. package/dist-cjs/index.js +34 -235
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/BatchGetSecretValueCommand.js +2 -14
  4. package/dist-es/commands/CancelRotateSecretCommand.js +2 -14
  5. package/dist-es/commands/CreateSecretCommand.js +2 -14
  6. package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -14
  7. package/dist-es/commands/DeleteSecretCommand.js +2 -14
  8. package/dist-es/commands/DescribeSecretCommand.js +2 -14
  9. package/dist-es/commands/GetRandomPasswordCommand.js +2 -14
  10. package/dist-es/commands/GetResourcePolicyCommand.js +2 -14
  11. package/dist-es/commands/GetSecretValueCommand.js +2 -14
  12. package/dist-es/commands/ListSecretVersionIdsCommand.js +2 -14
  13. package/dist-es/commands/ListSecretsCommand.js +2 -14
  14. package/dist-es/commands/PutResourcePolicyCommand.js +2 -14
  15. package/dist-es/commands/PutSecretValueCommand.js +2 -14
  16. package/dist-es/commands/RemoveRegionsFromReplicationCommand.js +2 -14
  17. package/dist-es/commands/ReplicateSecretToRegionsCommand.js +2 -14
  18. package/dist-es/commands/RestoreSecretCommand.js +2 -14
  19. package/dist-es/commands/RotateSecretCommand.js +2 -14
  20. package/dist-es/commands/StopReplicationToReplicaCommand.js +2 -14
  21. package/dist-es/commands/TagResourceCommand.js +2 -14
  22. package/dist-es/commands/UntagResourceCommand.js +2 -14
  23. package/dist-es/commands/UpdateSecretCommand.js +2 -14
  24. package/dist-es/commands/UpdateSecretVersionStageCommand.js +2 -14
  25. package/dist-es/commands/ValidateResourcePolicyCommand.js +2 -14
  26. package/dist-es/index.js +1 -0
  27. package/dist-es/runtimeConfig.browser.js +0 -2
  28. package/dist-es/runtimeConfig.js +1 -2
  29. package/dist-es/runtimeConfig.native.js +0 -2
  30. package/dist-es/runtimeConfig.shared.js +2 -0
  31. package/dist-types/commandBuilder.d.ts +18 -0
  32. package/dist-types/commands/BatchGetSecretValueCommand.d.ts +3 -8
  33. package/dist-types/commands/CancelRotateSecretCommand.d.ts +3 -8
  34. package/dist-types/commands/CreateSecretCommand.d.ts +3 -8
  35. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +3 -8
  36. package/dist-types/commands/DeleteSecretCommand.d.ts +3 -8
  37. package/dist-types/commands/DescribeSecretCommand.d.ts +3 -8
  38. package/dist-types/commands/GetRandomPasswordCommand.d.ts +3 -8
  39. package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -8
  40. package/dist-types/commands/GetSecretValueCommand.d.ts +3 -8
  41. package/dist-types/commands/ListSecretVersionIdsCommand.d.ts +3 -8
  42. package/dist-types/commands/ListSecretsCommand.d.ts +3 -8
  43. package/dist-types/commands/PutResourcePolicyCommand.d.ts +3 -8
  44. package/dist-types/commands/PutSecretValueCommand.d.ts +3 -8
  45. package/dist-types/commands/RemoveRegionsFromReplicationCommand.d.ts +3 -8
  46. package/dist-types/commands/ReplicateSecretToRegionsCommand.d.ts +3 -8
  47. package/dist-types/commands/RestoreSecretCommand.d.ts +3 -8
  48. package/dist-types/commands/RotateSecretCommand.d.ts +3 -8
  49. package/dist-types/commands/StopReplicationToReplicaCommand.d.ts +3 -8
  50. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  51. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  52. package/dist-types/commands/UpdateSecretCommand.d.ts +3 -8
  53. package/dist-types/commands/UpdateSecretVersionStageCommand.d.ts +3 -8
  54. package/dist-types/commands/ValidateResourcePolicyCommand.d.ts +3 -8
  55. package/dist-types/index.d.ts +1 -0
  56. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  57. package/dist-types/runtimeConfig.d.ts +1 -1
  58. package/dist-types/runtimeConfig.native.d.ts +1 -1
  59. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  60. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  61. package/dist-types/ts3.4/commands/BatchGetSecretValueCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/index.d.ts +1 -0
  85. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  86. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  87. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  88. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  89. package/package.json +9 -11
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultSecretsManagerHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -991,6 +993,7 @@ const getRuntimeConfig$1 = (config) => {
991
993
  serviceTarget: "secretsmanager",
992
994
  },
993
995
  serviceId: config?.serviceId ?? "Secrets Manager",
996
+ sha256: config?.sha256 ?? Sha256,
994
997
  urlParser: config?.urlParser ?? parseUrl,
995
998
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
996
999
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1024,7 +1027,6 @@ const getRuntimeConfig = (config) => {
1024
1027
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1025
1028
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1026
1029
  }, config),
1027
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1028
1030
  streamCollector: config?.streamCollector ?? streamCollector,
1029
1031
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1030
1032
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1112,280 +1114,77 @@ class SecretsManagerClient extends Client {
1112
1114
  }
1113
1115
  }
1114
1116
 
1115
- class BatchGetSecretValueCommand extends Command
1116
- .classBuilder()
1117
- .ep(commonParams)
1118
- .m(function (Command, cs, config, o) {
1119
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1120
- })
1121
- .s("secretsmanager", "BatchGetSecretValue", {})
1122
- .n("SecretsManagerClient", "BatchGetSecretValueCommand")
1123
- .sc(BatchGetSecretValue$)
1124
- .build() {
1117
+ const command = makeBuilder(commonParams, "secretsmanager", "SecretsManagerClient", getEndpointPlugin);
1118
+ const _ep0 = {};
1119
+ const _mw0 = (Command, cs, config, o) => [];
1120
+
1121
+ class BatchGetSecretValueCommand extends command(_ep0, _mw0, "BatchGetSecretValue", BatchGetSecretValue$) {
1125
1122
  }
1126
1123
 
1127
- class CancelRotateSecretCommand extends Command
1128
- .classBuilder()
1129
- .ep(commonParams)
1130
- .m(function (Command, cs, config, o) {
1131
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1132
- })
1133
- .s("secretsmanager", "CancelRotateSecret", {})
1134
- .n("SecretsManagerClient", "CancelRotateSecretCommand")
1135
- .sc(CancelRotateSecret$)
1136
- .build() {
1124
+ class CancelRotateSecretCommand extends command(_ep0, _mw0, "CancelRotateSecret", CancelRotateSecret$) {
1137
1125
  }
1138
1126
 
1139
- class CreateSecretCommand extends Command
1140
- .classBuilder()
1141
- .ep(commonParams)
1142
- .m(function (Command, cs, config, o) {
1143
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1144
- })
1145
- .s("secretsmanager", "CreateSecret", {})
1146
- .n("SecretsManagerClient", "CreateSecretCommand")
1147
- .sc(CreateSecret$)
1148
- .build() {
1127
+ class CreateSecretCommand extends command(_ep0, _mw0, "CreateSecret", CreateSecret$) {
1149
1128
  }
1150
1129
 
1151
- class DeleteResourcePolicyCommand extends Command
1152
- .classBuilder()
1153
- .ep(commonParams)
1154
- .m(function (Command, cs, config, o) {
1155
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1156
- })
1157
- .s("secretsmanager", "DeleteResourcePolicy", {})
1158
- .n("SecretsManagerClient", "DeleteResourcePolicyCommand")
1159
- .sc(DeleteResourcePolicy$)
1160
- .build() {
1130
+ class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
1161
1131
  }
1162
1132
 
1163
- class DeleteSecretCommand extends Command
1164
- .classBuilder()
1165
- .ep(commonParams)
1166
- .m(function (Command, cs, config, o) {
1167
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1168
- })
1169
- .s("secretsmanager", "DeleteSecret", {})
1170
- .n("SecretsManagerClient", "DeleteSecretCommand")
1171
- .sc(DeleteSecret$)
1172
- .build() {
1133
+ class DeleteSecretCommand extends command(_ep0, _mw0, "DeleteSecret", DeleteSecret$) {
1173
1134
  }
1174
1135
 
1175
- class DescribeSecretCommand extends Command
1176
- .classBuilder()
1177
- .ep(commonParams)
1178
- .m(function (Command, cs, config, o) {
1179
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1180
- })
1181
- .s("secretsmanager", "DescribeSecret", {})
1182
- .n("SecretsManagerClient", "DescribeSecretCommand")
1183
- .sc(DescribeSecret$)
1184
- .build() {
1136
+ class DescribeSecretCommand extends command(_ep0, _mw0, "DescribeSecret", DescribeSecret$) {
1185
1137
  }
1186
1138
 
1187
- class GetRandomPasswordCommand extends Command
1188
- .classBuilder()
1189
- .ep(commonParams)
1190
- .m(function (Command, cs, config, o) {
1191
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1192
- })
1193
- .s("secretsmanager", "GetRandomPassword", {})
1194
- .n("SecretsManagerClient", "GetRandomPasswordCommand")
1195
- .sc(GetRandomPassword$)
1196
- .build() {
1139
+ class GetRandomPasswordCommand extends command(_ep0, _mw0, "GetRandomPassword", GetRandomPassword$) {
1197
1140
  }
1198
1141
 
1199
- class GetResourcePolicyCommand extends Command
1200
- .classBuilder()
1201
- .ep(commonParams)
1202
- .m(function (Command, cs, config, o) {
1203
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1204
- })
1205
- .s("secretsmanager", "GetResourcePolicy", {})
1206
- .n("SecretsManagerClient", "GetResourcePolicyCommand")
1207
- .sc(GetResourcePolicy$)
1208
- .build() {
1142
+ class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
1209
1143
  }
1210
1144
 
1211
- class GetSecretValueCommand extends Command
1212
- .classBuilder()
1213
- .ep(commonParams)
1214
- .m(function (Command, cs, config, o) {
1215
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1216
- })
1217
- .s("secretsmanager", "GetSecretValue", {})
1218
- .n("SecretsManagerClient", "GetSecretValueCommand")
1219
- .sc(GetSecretValue$)
1220
- .build() {
1145
+ class GetSecretValueCommand extends command(_ep0, _mw0, "GetSecretValue", GetSecretValue$) {
1221
1146
  }
1222
1147
 
1223
- class ListSecretsCommand extends Command
1224
- .classBuilder()
1225
- .ep(commonParams)
1226
- .m(function (Command, cs, config, o) {
1227
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1228
- })
1229
- .s("secretsmanager", "ListSecrets", {})
1230
- .n("SecretsManagerClient", "ListSecretsCommand")
1231
- .sc(ListSecrets$)
1232
- .build() {
1148
+ class ListSecretsCommand extends command(_ep0, _mw0, "ListSecrets", ListSecrets$) {
1233
1149
  }
1234
1150
 
1235
- class ListSecretVersionIdsCommand extends Command
1236
- .classBuilder()
1237
- .ep(commonParams)
1238
- .m(function (Command, cs, config, o) {
1239
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1240
- })
1241
- .s("secretsmanager", "ListSecretVersionIds", {})
1242
- .n("SecretsManagerClient", "ListSecretVersionIdsCommand")
1243
- .sc(ListSecretVersionIds$)
1244
- .build() {
1151
+ class ListSecretVersionIdsCommand extends command(_ep0, _mw0, "ListSecretVersionIds", ListSecretVersionIds$) {
1245
1152
  }
1246
1153
 
1247
- class PutResourcePolicyCommand extends Command
1248
- .classBuilder()
1249
- .ep(commonParams)
1250
- .m(function (Command, cs, config, o) {
1251
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1252
- })
1253
- .s("secretsmanager", "PutResourcePolicy", {})
1254
- .n("SecretsManagerClient", "PutResourcePolicyCommand")
1255
- .sc(PutResourcePolicy$)
1256
- .build() {
1154
+ class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
1257
1155
  }
1258
1156
 
1259
- class PutSecretValueCommand extends Command
1260
- .classBuilder()
1261
- .ep(commonParams)
1262
- .m(function (Command, cs, config, o) {
1263
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1264
- })
1265
- .s("secretsmanager", "PutSecretValue", {})
1266
- .n("SecretsManagerClient", "PutSecretValueCommand")
1267
- .sc(PutSecretValue$)
1268
- .build() {
1157
+ class PutSecretValueCommand extends command(_ep0, _mw0, "PutSecretValue", PutSecretValue$) {
1269
1158
  }
1270
1159
 
1271
- class RemoveRegionsFromReplicationCommand extends Command
1272
- .classBuilder()
1273
- .ep(commonParams)
1274
- .m(function (Command, cs, config, o) {
1275
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1276
- })
1277
- .s("secretsmanager", "RemoveRegionsFromReplication", {})
1278
- .n("SecretsManagerClient", "RemoveRegionsFromReplicationCommand")
1279
- .sc(RemoveRegionsFromReplication$)
1280
- .build() {
1160
+ class RemoveRegionsFromReplicationCommand extends command(_ep0, _mw0, "RemoveRegionsFromReplication", RemoveRegionsFromReplication$) {
1281
1161
  }
1282
1162
 
1283
- class ReplicateSecretToRegionsCommand extends Command
1284
- .classBuilder()
1285
- .ep(commonParams)
1286
- .m(function (Command, cs, config, o) {
1287
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1288
- })
1289
- .s("secretsmanager", "ReplicateSecretToRegions", {})
1290
- .n("SecretsManagerClient", "ReplicateSecretToRegionsCommand")
1291
- .sc(ReplicateSecretToRegions$)
1292
- .build() {
1163
+ class ReplicateSecretToRegionsCommand extends command(_ep0, _mw0, "ReplicateSecretToRegions", ReplicateSecretToRegions$) {
1293
1164
  }
1294
1165
 
1295
- class RestoreSecretCommand extends Command
1296
- .classBuilder()
1297
- .ep(commonParams)
1298
- .m(function (Command, cs, config, o) {
1299
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1300
- })
1301
- .s("secretsmanager", "RestoreSecret", {})
1302
- .n("SecretsManagerClient", "RestoreSecretCommand")
1303
- .sc(RestoreSecret$)
1304
- .build() {
1166
+ class RestoreSecretCommand extends command(_ep0, _mw0, "RestoreSecret", RestoreSecret$) {
1305
1167
  }
1306
1168
 
1307
- class RotateSecretCommand extends Command
1308
- .classBuilder()
1309
- .ep(commonParams)
1310
- .m(function (Command, cs, config, o) {
1311
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1312
- })
1313
- .s("secretsmanager", "RotateSecret", {})
1314
- .n("SecretsManagerClient", "RotateSecretCommand")
1315
- .sc(RotateSecret$)
1316
- .build() {
1169
+ class RotateSecretCommand extends command(_ep0, _mw0, "RotateSecret", RotateSecret$) {
1317
1170
  }
1318
1171
 
1319
- class StopReplicationToReplicaCommand extends Command
1320
- .classBuilder()
1321
- .ep(commonParams)
1322
- .m(function (Command, cs, config, o) {
1323
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1324
- })
1325
- .s("secretsmanager", "StopReplicationToReplica", {})
1326
- .n("SecretsManagerClient", "StopReplicationToReplicaCommand")
1327
- .sc(StopReplicationToReplica$)
1328
- .build() {
1172
+ class StopReplicationToReplicaCommand extends command(_ep0, _mw0, "StopReplicationToReplica", StopReplicationToReplica$) {
1329
1173
  }
1330
1174
 
1331
- class TagResourceCommand extends Command
1332
- .classBuilder()
1333
- .ep(commonParams)
1334
- .m(function (Command, cs, config, o) {
1335
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1336
- })
1337
- .s("secretsmanager", "TagResource", {})
1338
- .n("SecretsManagerClient", "TagResourceCommand")
1339
- .sc(TagResource$)
1340
- .build() {
1175
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1341
1176
  }
1342
1177
 
1343
- class UntagResourceCommand extends Command
1344
- .classBuilder()
1345
- .ep(commonParams)
1346
- .m(function (Command, cs, config, o) {
1347
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1348
- })
1349
- .s("secretsmanager", "UntagResource", {})
1350
- .n("SecretsManagerClient", "UntagResourceCommand")
1351
- .sc(UntagResource$)
1352
- .build() {
1178
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1353
1179
  }
1354
1180
 
1355
- class UpdateSecretCommand extends Command
1356
- .classBuilder()
1357
- .ep(commonParams)
1358
- .m(function (Command, cs, config, o) {
1359
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1360
- })
1361
- .s("secretsmanager", "UpdateSecret", {})
1362
- .n("SecretsManagerClient", "UpdateSecretCommand")
1363
- .sc(UpdateSecret$)
1364
- .build() {
1181
+ class UpdateSecretCommand extends command(_ep0, _mw0, "UpdateSecret", UpdateSecret$) {
1365
1182
  }
1366
1183
 
1367
- class UpdateSecretVersionStageCommand extends Command
1368
- .classBuilder()
1369
- .ep(commonParams)
1370
- .m(function (Command, cs, config, o) {
1371
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1372
- })
1373
- .s("secretsmanager", "UpdateSecretVersionStage", {})
1374
- .n("SecretsManagerClient", "UpdateSecretVersionStageCommand")
1375
- .sc(UpdateSecretVersionStage$)
1376
- .build() {
1184
+ class UpdateSecretVersionStageCommand extends command(_ep0, _mw0, "UpdateSecretVersionStage", UpdateSecretVersionStage$) {
1377
1185
  }
1378
1186
 
1379
- class ValidateResourcePolicyCommand extends Command
1380
- .classBuilder()
1381
- .ep(commonParams)
1382
- .m(function (Command, cs, config, o) {
1383
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1384
- })
1385
- .s("secretsmanager", "ValidateResourcePolicy", {})
1386
- .n("SecretsManagerClient", "ValidateResourcePolicyCommand")
1387
- .sc(ValidateResourcePolicy$)
1388
- .build() {
1187
+ class ValidateResourcePolicyCommand extends command(_ep0, _mw0, "ValidateResourcePolicy", ValidateResourcePolicy$) {
1389
1188
  }
1390
1189
 
1391
1190
  const paginateBatchGetSecretValue = createPaginator(SecretsManagerClient, BatchGetSecretValueCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "secretsmanager", "SecretsManagerClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { BatchGetSecretValue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchGetSecretValueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "BatchGetSecretValue", {})
13
- .n("SecretsManagerClient", "BatchGetSecretValueCommand")
14
- .sc(BatchGetSecretValue$)
15
- .build() {
3
+ export class BatchGetSecretValueCommand extends command(_ep0, _mw0, "BatchGetSecretValue", BatchGetSecretValue$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CancelRotateSecret$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CancelRotateSecretCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "CancelRotateSecret", {})
13
- .n("SecretsManagerClient", "CancelRotateSecretCommand")
14
- .sc(CancelRotateSecret$)
15
- .build() {
3
+ export class CancelRotateSecretCommand extends command(_ep0, _mw0, "CancelRotateSecret", CancelRotateSecret$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateSecret$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateSecretCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "CreateSecret", {})
13
- .n("SecretsManagerClient", "CreateSecretCommand")
14
- .sc(CreateSecret$)
15
- .build() {
3
+ export class CreateSecretCommand extends command(_ep0, _mw0, "CreateSecret", CreateSecret$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "DeleteResourcePolicy", {})
13
- .n("SecretsManagerClient", "DeleteResourcePolicyCommand")
14
- .sc(DeleteResourcePolicy$)
15
- .build() {
3
+ export class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteSecret$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteSecretCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "DeleteSecret", {})
13
- .n("SecretsManagerClient", "DeleteSecretCommand")
14
- .sc(DeleteSecret$)
15
- .build() {
3
+ export class DeleteSecretCommand extends command(_ep0, _mw0, "DeleteSecret", DeleteSecret$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DescribeSecret$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeSecretCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "DescribeSecret", {})
13
- .n("SecretsManagerClient", "DescribeSecretCommand")
14
- .sc(DescribeSecret$)
15
- .build() {
3
+ export class DescribeSecretCommand extends command(_ep0, _mw0, "DescribeSecret", DescribeSecret$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetRandomPassword$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetRandomPasswordCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "GetRandomPassword", {})
13
- .n("SecretsManagerClient", "GetRandomPasswordCommand")
14
- .sc(GetRandomPassword$)
15
- .build() {
3
+ export class GetRandomPasswordCommand extends command(_ep0, _mw0, "GetRandomPassword", GetRandomPassword$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "GetResourcePolicy", {})
13
- .n("SecretsManagerClient", "GetResourcePolicyCommand")
14
- .sc(GetResourcePolicy$)
15
- .build() {
3
+ export class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetSecretValue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetSecretValueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "GetSecretValue", {})
13
- .n("SecretsManagerClient", "GetSecretValueCommand")
14
- .sc(GetSecretValue$)
15
- .build() {
3
+ export class GetSecretValueCommand extends command(_ep0, _mw0, "GetSecretValue", GetSecretValue$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListSecretVersionIds$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSecretVersionIdsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "ListSecretVersionIds", {})
13
- .n("SecretsManagerClient", "ListSecretVersionIdsCommand")
14
- .sc(ListSecretVersionIds$)
15
- .build() {
3
+ export class ListSecretVersionIdsCommand extends command(_ep0, _mw0, "ListSecretVersionIds", ListSecretVersionIds$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListSecrets$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListSecretsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "ListSecrets", {})
13
- .n("SecretsManagerClient", "ListSecretsCommand")
14
- .sc(ListSecrets$)
15
- .build() {
3
+ export class ListSecretsCommand extends command(_ep0, _mw0, "ListSecrets", ListSecrets$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "PutResourcePolicy", {})
13
- .n("SecretsManagerClient", "PutResourcePolicyCommand")
14
- .sc(PutResourcePolicy$)
15
- .build() {
3
+ export class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutSecretValue$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutSecretValueCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "PutSecretValue", {})
13
- .n("SecretsManagerClient", "PutSecretValueCommand")
14
- .sc(PutSecretValue$)
15
- .build() {
3
+ export class PutSecretValueCommand extends command(_ep0, _mw0, "PutSecretValue", PutSecretValue$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RemoveRegionsFromReplication$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RemoveRegionsFromReplicationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("secretsmanager", "RemoveRegionsFromReplication", {})
13
- .n("SecretsManagerClient", "RemoveRegionsFromReplicationCommand")
14
- .sc(RemoveRegionsFromReplication$)
15
- .build() {
3
+ export class RemoveRegionsFromReplicationCommand extends command(_ep0, _mw0, "RemoveRegionsFromReplication", RemoveRegionsFromReplication$) {
16
4
  }