@aws-sdk/client-detective 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 (107) hide show
  1. package/dist-cjs/index.js +40 -295
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AcceptInvitationCommand.js +2 -14
  4. package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +2 -14
  5. package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +2 -14
  6. package/dist-es/commands/CreateGraphCommand.js +2 -14
  7. package/dist-es/commands/CreateMembersCommand.js +2 -14
  8. package/dist-es/commands/DeleteGraphCommand.js +2 -14
  9. package/dist-es/commands/DeleteMembersCommand.js +2 -14
  10. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +2 -14
  11. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +2 -14
  12. package/dist-es/commands/DisassociateMembershipCommand.js +2 -14
  13. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +2 -14
  14. package/dist-es/commands/GetInvestigationCommand.js +2 -14
  15. package/dist-es/commands/GetMembersCommand.js +2 -14
  16. package/dist-es/commands/ListDatasourcePackagesCommand.js +2 -14
  17. package/dist-es/commands/ListGraphsCommand.js +2 -14
  18. package/dist-es/commands/ListIndicatorsCommand.js +2 -14
  19. package/dist-es/commands/ListInvestigationsCommand.js +2 -14
  20. package/dist-es/commands/ListInvitationsCommand.js +2 -14
  21. package/dist-es/commands/ListMembersCommand.js +2 -14
  22. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +2 -14
  23. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  24. package/dist-es/commands/RejectInvitationCommand.js +2 -14
  25. package/dist-es/commands/StartInvestigationCommand.js +2 -14
  26. package/dist-es/commands/StartMonitoringMemberCommand.js +2 -14
  27. package/dist-es/commands/TagResourceCommand.js +2 -14
  28. package/dist-es/commands/UntagResourceCommand.js +2 -14
  29. package/dist-es/commands/UpdateDatasourcePackagesCommand.js +2 -14
  30. package/dist-es/commands/UpdateInvestigationStateCommand.js +2 -14
  31. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +2 -14
  32. package/dist-es/index.js +1 -0
  33. package/dist-es/runtimeConfig.browser.js +0 -2
  34. package/dist-es/runtimeConfig.js +1 -2
  35. package/dist-es/runtimeConfig.native.js +0 -2
  36. package/dist-es/runtimeConfig.shared.js +2 -0
  37. package/dist-types/commandBuilder.d.ts +18 -0
  38. package/dist-types/commands/AcceptInvitationCommand.d.ts +3 -8
  39. package/dist-types/commands/BatchGetGraphMemberDatasourcesCommand.d.ts +3 -8
  40. package/dist-types/commands/BatchGetMembershipDatasourcesCommand.d.ts +3 -8
  41. package/dist-types/commands/CreateGraphCommand.d.ts +3 -8
  42. package/dist-types/commands/CreateMembersCommand.d.ts +3 -8
  43. package/dist-types/commands/DeleteGraphCommand.d.ts +3 -8
  44. package/dist-types/commands/DeleteMembersCommand.d.ts +3 -8
  45. package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +3 -8
  46. package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +3 -8
  47. package/dist-types/commands/DisassociateMembershipCommand.d.ts +3 -8
  48. package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +3 -8
  49. package/dist-types/commands/GetInvestigationCommand.d.ts +3 -8
  50. package/dist-types/commands/GetMembersCommand.d.ts +3 -8
  51. package/dist-types/commands/ListDatasourcePackagesCommand.d.ts +3 -8
  52. package/dist-types/commands/ListGraphsCommand.d.ts +3 -8
  53. package/dist-types/commands/ListIndicatorsCommand.d.ts +3 -8
  54. package/dist-types/commands/ListInvestigationsCommand.d.ts +3 -8
  55. package/dist-types/commands/ListInvitationsCommand.d.ts +3 -8
  56. package/dist-types/commands/ListMembersCommand.d.ts +3 -8
  57. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +3 -8
  58. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  59. package/dist-types/commands/RejectInvitationCommand.d.ts +3 -8
  60. package/dist-types/commands/StartInvestigationCommand.d.ts +3 -8
  61. package/dist-types/commands/StartMonitoringMemberCommand.d.ts +3 -8
  62. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  63. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  64. package/dist-types/commands/UpdateDatasourcePackagesCommand.d.ts +3 -8
  65. package/dist-types/commands/UpdateInvestigationStateCommand.d.ts +3 -8
  66. package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +3 -8
  67. package/dist-types/index.d.ts +1 -0
  68. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  69. package/dist-types/runtimeConfig.d.ts +1 -1
  70. package/dist-types/runtimeConfig.native.d.ts +1 -1
  71. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  72. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  73. package/dist-types/ts3.4/commands/AcceptInvitationCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/BatchGetGraphMemberDatasourcesCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/commands/BatchGetMembershipDatasourcesCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/CreateGraphCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/CreateMembersCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/DeleteGraphCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/DeleteMembersCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/DescribeOrganizationConfigurationCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/DisableOrganizationAdminAccountCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/DisassociateMembershipCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/EnableOrganizationAdminAccountCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/GetInvestigationCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/GetMembersCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/ListDatasourcePackagesCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/ListGraphsCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/ListIndicatorsCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/ListInvestigationsCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/ListInvitationsCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/RejectInvitationCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/StartInvestigationCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/StartMonitoringMemberCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/UpdateDatasourcePackagesCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/UpdateInvestigationStateCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/UpdateOrganizationConfigurationCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/index.d.ts +1 -0
  103. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  104. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  105. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  106. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  107. package/package.json +8 -10
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 { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultDetectiveHttpAuthSchemeParametersProvider = 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
 
@@ -1033,6 +1035,7 @@ const getRuntimeConfig$1 = (config) => {
1033
1035
  serviceTarget: "AmazonDetective",
1034
1036
  },
1035
1037
  serviceId: config?.serviceId ?? "Detective",
1038
+ sha256: config?.sha256 ?? Sha256,
1036
1039
  urlParser: config?.urlParser ?? parseUrl,
1037
1040
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1038
1041
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -1066,7 +1069,6 @@ const getRuntimeConfig = (config) => {
1066
1069
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1067
1070
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1068
1071
  }, config),
1069
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1070
1072
  streamCollector: config?.streamCollector ?? streamCollector,
1071
1073
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1072
1074
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1154,352 +1156,95 @@ class DetectiveClient extends Client {
1154
1156
  }
1155
1157
  }
1156
1158
 
1157
- class AcceptInvitationCommand extends Command
1158
- .classBuilder()
1159
- .ep(commonParams)
1160
- .m(function (Command, cs, config, o) {
1161
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1162
- })
1163
- .s("AmazonDetective", "AcceptInvitation", {})
1164
- .n("DetectiveClient", "AcceptInvitationCommand")
1165
- .sc(AcceptInvitation$)
1166
- .build() {
1159
+ const command = makeBuilder(commonParams, "AmazonDetective", "DetectiveClient", getEndpointPlugin);
1160
+ const _ep0 = {};
1161
+ const _mw0 = (Command, cs, config, o) => [];
1162
+
1163
+ class AcceptInvitationCommand extends command(_ep0, _mw0, "AcceptInvitation", AcceptInvitation$) {
1167
1164
  }
1168
1165
 
1169
- class BatchGetGraphMemberDatasourcesCommand extends Command
1170
- .classBuilder()
1171
- .ep(commonParams)
1172
- .m(function (Command, cs, config, o) {
1173
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1174
- })
1175
- .s("AmazonDetective", "BatchGetGraphMemberDatasources", {})
1176
- .n("DetectiveClient", "BatchGetGraphMemberDatasourcesCommand")
1177
- .sc(BatchGetGraphMemberDatasources$)
1178
- .build() {
1166
+ class BatchGetGraphMemberDatasourcesCommand extends command(_ep0, _mw0, "BatchGetGraphMemberDatasources", BatchGetGraphMemberDatasources$) {
1179
1167
  }
1180
1168
 
1181
- class BatchGetMembershipDatasourcesCommand extends Command
1182
- .classBuilder()
1183
- .ep(commonParams)
1184
- .m(function (Command, cs, config, o) {
1185
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1186
- })
1187
- .s("AmazonDetective", "BatchGetMembershipDatasources", {})
1188
- .n("DetectiveClient", "BatchGetMembershipDatasourcesCommand")
1189
- .sc(BatchGetMembershipDatasources$)
1190
- .build() {
1169
+ class BatchGetMembershipDatasourcesCommand extends command(_ep0, _mw0, "BatchGetMembershipDatasources", BatchGetMembershipDatasources$) {
1191
1170
  }
1192
1171
 
1193
- class CreateGraphCommand extends Command
1194
- .classBuilder()
1195
- .ep(commonParams)
1196
- .m(function (Command, cs, config, o) {
1197
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1198
- })
1199
- .s("AmazonDetective", "CreateGraph", {})
1200
- .n("DetectiveClient", "CreateGraphCommand")
1201
- .sc(CreateGraph$)
1202
- .build() {
1172
+ class CreateGraphCommand extends command(_ep0, _mw0, "CreateGraph", CreateGraph$) {
1203
1173
  }
1204
1174
 
1205
- class CreateMembersCommand extends Command
1206
- .classBuilder()
1207
- .ep(commonParams)
1208
- .m(function (Command, cs, config, o) {
1209
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1210
- })
1211
- .s("AmazonDetective", "CreateMembers", {})
1212
- .n("DetectiveClient", "CreateMembersCommand")
1213
- .sc(CreateMembers$)
1214
- .build() {
1175
+ class CreateMembersCommand extends command(_ep0, _mw0, "CreateMembers", CreateMembers$) {
1215
1176
  }
1216
1177
 
1217
- class DeleteGraphCommand extends Command
1218
- .classBuilder()
1219
- .ep(commonParams)
1220
- .m(function (Command, cs, config, o) {
1221
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1222
- })
1223
- .s("AmazonDetective", "DeleteGraph", {})
1224
- .n("DetectiveClient", "DeleteGraphCommand")
1225
- .sc(DeleteGraph$)
1226
- .build() {
1178
+ class DeleteGraphCommand extends command(_ep0, _mw0, "DeleteGraph", DeleteGraph$) {
1227
1179
  }
1228
1180
 
1229
- class DeleteMembersCommand extends Command
1230
- .classBuilder()
1231
- .ep(commonParams)
1232
- .m(function (Command, cs, config, o) {
1233
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1234
- })
1235
- .s("AmazonDetective", "DeleteMembers", {})
1236
- .n("DetectiveClient", "DeleteMembersCommand")
1237
- .sc(DeleteMembers$)
1238
- .build() {
1181
+ class DeleteMembersCommand extends command(_ep0, _mw0, "DeleteMembers", DeleteMembers$) {
1239
1182
  }
1240
1183
 
1241
- class DescribeOrganizationConfigurationCommand extends Command
1242
- .classBuilder()
1243
- .ep(commonParams)
1244
- .m(function (Command, cs, config, o) {
1245
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1246
- })
1247
- .s("AmazonDetective", "DescribeOrganizationConfiguration", {})
1248
- .n("DetectiveClient", "DescribeOrganizationConfigurationCommand")
1249
- .sc(DescribeOrganizationConfiguration$)
1250
- .build() {
1184
+ class DescribeOrganizationConfigurationCommand extends command(_ep0, _mw0, "DescribeOrganizationConfiguration", DescribeOrganizationConfiguration$) {
1251
1185
  }
1252
1186
 
1253
- class DisableOrganizationAdminAccountCommand extends Command
1254
- .classBuilder()
1255
- .ep(commonParams)
1256
- .m(function (Command, cs, config, o) {
1257
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1258
- })
1259
- .s("AmazonDetective", "DisableOrganizationAdminAccount", {})
1260
- .n("DetectiveClient", "DisableOrganizationAdminAccountCommand")
1261
- .sc(DisableOrganizationAdminAccount$)
1262
- .build() {
1187
+ class DisableOrganizationAdminAccountCommand extends command(_ep0, _mw0, "DisableOrganizationAdminAccount", DisableOrganizationAdminAccount$) {
1263
1188
  }
1264
1189
 
1265
- class DisassociateMembershipCommand extends Command
1266
- .classBuilder()
1267
- .ep(commonParams)
1268
- .m(function (Command, cs, config, o) {
1269
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1270
- })
1271
- .s("AmazonDetective", "DisassociateMembership", {})
1272
- .n("DetectiveClient", "DisassociateMembershipCommand")
1273
- .sc(DisassociateMembership$)
1274
- .build() {
1190
+ class DisassociateMembershipCommand extends command(_ep0, _mw0, "DisassociateMembership", DisassociateMembership$) {
1275
1191
  }
1276
1192
 
1277
- class EnableOrganizationAdminAccountCommand extends Command
1278
- .classBuilder()
1279
- .ep(commonParams)
1280
- .m(function (Command, cs, config, o) {
1281
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1282
- })
1283
- .s("AmazonDetective", "EnableOrganizationAdminAccount", {})
1284
- .n("DetectiveClient", "EnableOrganizationAdminAccountCommand")
1285
- .sc(EnableOrganizationAdminAccount$)
1286
- .build() {
1193
+ class EnableOrganizationAdminAccountCommand extends command(_ep0, _mw0, "EnableOrganizationAdminAccount", EnableOrganizationAdminAccount$) {
1287
1194
  }
1288
1195
 
1289
- class GetInvestigationCommand extends Command
1290
- .classBuilder()
1291
- .ep(commonParams)
1292
- .m(function (Command, cs, config, o) {
1293
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1294
- })
1295
- .s("AmazonDetective", "GetInvestigation", {})
1296
- .n("DetectiveClient", "GetInvestigationCommand")
1297
- .sc(GetInvestigation$)
1298
- .build() {
1196
+ class GetInvestigationCommand extends command(_ep0, _mw0, "GetInvestigation", GetInvestigation$) {
1299
1197
  }
1300
1198
 
1301
- class GetMembersCommand extends Command
1302
- .classBuilder()
1303
- .ep(commonParams)
1304
- .m(function (Command, cs, config, o) {
1305
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1306
- })
1307
- .s("AmazonDetective", "GetMembers", {})
1308
- .n("DetectiveClient", "GetMembersCommand")
1309
- .sc(GetMembers$)
1310
- .build() {
1199
+ class GetMembersCommand extends command(_ep0, _mw0, "GetMembers", GetMembers$) {
1311
1200
  }
1312
1201
 
1313
- class ListDatasourcePackagesCommand extends Command
1314
- .classBuilder()
1315
- .ep(commonParams)
1316
- .m(function (Command, cs, config, o) {
1317
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1318
- })
1319
- .s("AmazonDetective", "ListDatasourcePackages", {})
1320
- .n("DetectiveClient", "ListDatasourcePackagesCommand")
1321
- .sc(ListDatasourcePackages$)
1322
- .build() {
1202
+ class ListDatasourcePackagesCommand extends command(_ep0, _mw0, "ListDatasourcePackages", ListDatasourcePackages$) {
1323
1203
  }
1324
1204
 
1325
- class ListGraphsCommand extends Command
1326
- .classBuilder()
1327
- .ep(commonParams)
1328
- .m(function (Command, cs, config, o) {
1329
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1330
- })
1331
- .s("AmazonDetective", "ListGraphs", {})
1332
- .n("DetectiveClient", "ListGraphsCommand")
1333
- .sc(ListGraphs$)
1334
- .build() {
1205
+ class ListGraphsCommand extends command(_ep0, _mw0, "ListGraphs", ListGraphs$) {
1335
1206
  }
1336
1207
 
1337
- class ListIndicatorsCommand extends Command
1338
- .classBuilder()
1339
- .ep(commonParams)
1340
- .m(function (Command, cs, config, o) {
1341
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1342
- })
1343
- .s("AmazonDetective", "ListIndicators", {})
1344
- .n("DetectiveClient", "ListIndicatorsCommand")
1345
- .sc(ListIndicators$)
1346
- .build() {
1208
+ class ListIndicatorsCommand extends command(_ep0, _mw0, "ListIndicators", ListIndicators$) {
1347
1209
  }
1348
1210
 
1349
- class ListInvestigationsCommand extends Command
1350
- .classBuilder()
1351
- .ep(commonParams)
1352
- .m(function (Command, cs, config, o) {
1353
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1354
- })
1355
- .s("AmazonDetective", "ListInvestigations", {})
1356
- .n("DetectiveClient", "ListInvestigationsCommand")
1357
- .sc(ListInvestigations$)
1358
- .build() {
1211
+ class ListInvestigationsCommand extends command(_ep0, _mw0, "ListInvestigations", ListInvestigations$) {
1359
1212
  }
1360
1213
 
1361
- class ListInvitationsCommand extends Command
1362
- .classBuilder()
1363
- .ep(commonParams)
1364
- .m(function (Command, cs, config, o) {
1365
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1366
- })
1367
- .s("AmazonDetective", "ListInvitations", {})
1368
- .n("DetectiveClient", "ListInvitationsCommand")
1369
- .sc(ListInvitations$)
1370
- .build() {
1214
+ class ListInvitationsCommand extends command(_ep0, _mw0, "ListInvitations", ListInvitations$) {
1371
1215
  }
1372
1216
 
1373
- class ListMembersCommand extends Command
1374
- .classBuilder()
1375
- .ep(commonParams)
1376
- .m(function (Command, cs, config, o) {
1377
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1378
- })
1379
- .s("AmazonDetective", "ListMembers", {})
1380
- .n("DetectiveClient", "ListMembersCommand")
1381
- .sc(ListMembers$)
1382
- .build() {
1217
+ class ListMembersCommand extends command(_ep0, _mw0, "ListMembers", ListMembers$) {
1383
1218
  }
1384
1219
 
1385
- class ListOrganizationAdminAccountsCommand extends Command
1386
- .classBuilder()
1387
- .ep(commonParams)
1388
- .m(function (Command, cs, config, o) {
1389
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1390
- })
1391
- .s("AmazonDetective", "ListOrganizationAdminAccounts", {})
1392
- .n("DetectiveClient", "ListOrganizationAdminAccountsCommand")
1393
- .sc(ListOrganizationAdminAccounts$)
1394
- .build() {
1220
+ class ListOrganizationAdminAccountsCommand extends command(_ep0, _mw0, "ListOrganizationAdminAccounts", ListOrganizationAdminAccounts$) {
1395
1221
  }
1396
1222
 
1397
- class ListTagsForResourceCommand extends Command
1398
- .classBuilder()
1399
- .ep(commonParams)
1400
- .m(function (Command, cs, config, o) {
1401
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1402
- })
1403
- .s("AmazonDetective", "ListTagsForResource", {})
1404
- .n("DetectiveClient", "ListTagsForResourceCommand")
1405
- .sc(ListTagsForResource$)
1406
- .build() {
1223
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1407
1224
  }
1408
1225
 
1409
- class RejectInvitationCommand extends Command
1410
- .classBuilder()
1411
- .ep(commonParams)
1412
- .m(function (Command, cs, config, o) {
1413
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1414
- })
1415
- .s("AmazonDetective", "RejectInvitation", {})
1416
- .n("DetectiveClient", "RejectInvitationCommand")
1417
- .sc(RejectInvitation$)
1418
- .build() {
1226
+ class RejectInvitationCommand extends command(_ep0, _mw0, "RejectInvitation", RejectInvitation$) {
1419
1227
  }
1420
1228
 
1421
- class StartInvestigationCommand extends Command
1422
- .classBuilder()
1423
- .ep(commonParams)
1424
- .m(function (Command, cs, config, o) {
1425
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1426
- })
1427
- .s("AmazonDetective", "StartInvestigation", {})
1428
- .n("DetectiveClient", "StartInvestigationCommand")
1429
- .sc(StartInvestigation$)
1430
- .build() {
1229
+ class StartInvestigationCommand extends command(_ep0, _mw0, "StartInvestigation", StartInvestigation$) {
1431
1230
  }
1432
1231
 
1433
- class StartMonitoringMemberCommand extends Command
1434
- .classBuilder()
1435
- .ep(commonParams)
1436
- .m(function (Command, cs, config, o) {
1437
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1438
- })
1439
- .s("AmazonDetective", "StartMonitoringMember", {})
1440
- .n("DetectiveClient", "StartMonitoringMemberCommand")
1441
- .sc(StartMonitoringMember$)
1442
- .build() {
1232
+ class StartMonitoringMemberCommand extends command(_ep0, _mw0, "StartMonitoringMember", StartMonitoringMember$) {
1443
1233
  }
1444
1234
 
1445
- class TagResourceCommand extends Command
1446
- .classBuilder()
1447
- .ep(commonParams)
1448
- .m(function (Command, cs, config, o) {
1449
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1450
- })
1451
- .s("AmazonDetective", "TagResource", {})
1452
- .n("DetectiveClient", "TagResourceCommand")
1453
- .sc(TagResource$)
1454
- .build() {
1235
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1455
1236
  }
1456
1237
 
1457
- class UntagResourceCommand extends Command
1458
- .classBuilder()
1459
- .ep(commonParams)
1460
- .m(function (Command, cs, config, o) {
1461
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1462
- })
1463
- .s("AmazonDetective", "UntagResource", {})
1464
- .n("DetectiveClient", "UntagResourceCommand")
1465
- .sc(UntagResource$)
1466
- .build() {
1238
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1467
1239
  }
1468
1240
 
1469
- class UpdateDatasourcePackagesCommand extends Command
1470
- .classBuilder()
1471
- .ep(commonParams)
1472
- .m(function (Command, cs, config, o) {
1473
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1474
- })
1475
- .s("AmazonDetective", "UpdateDatasourcePackages", {})
1476
- .n("DetectiveClient", "UpdateDatasourcePackagesCommand")
1477
- .sc(UpdateDatasourcePackages$)
1478
- .build() {
1241
+ class UpdateDatasourcePackagesCommand extends command(_ep0, _mw0, "UpdateDatasourcePackages", UpdateDatasourcePackages$) {
1479
1242
  }
1480
1243
 
1481
- class UpdateInvestigationStateCommand extends Command
1482
- .classBuilder()
1483
- .ep(commonParams)
1484
- .m(function (Command, cs, config, o) {
1485
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1486
- })
1487
- .s("AmazonDetective", "UpdateInvestigationState", {})
1488
- .n("DetectiveClient", "UpdateInvestigationStateCommand")
1489
- .sc(UpdateInvestigationState$)
1490
- .build() {
1244
+ class UpdateInvestigationStateCommand extends command(_ep0, _mw0, "UpdateInvestigationState", UpdateInvestigationState$) {
1491
1245
  }
1492
1246
 
1493
- class UpdateOrganizationConfigurationCommand extends Command
1494
- .classBuilder()
1495
- .ep(commonParams)
1496
- .m(function (Command, cs, config, o) {
1497
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1498
- })
1499
- .s("AmazonDetective", "UpdateOrganizationConfiguration", {})
1500
- .n("DetectiveClient", "UpdateOrganizationConfigurationCommand")
1501
- .sc(UpdateOrganizationConfiguration$)
1502
- .build() {
1247
+ class UpdateOrganizationConfigurationCommand extends command(_ep0, _mw0, "UpdateOrganizationConfiguration", UpdateOrganizationConfiguration$) {
1503
1248
  }
1504
1249
 
1505
1250
  const paginateListDatasourcePackages = createPaginator(DetectiveClient, ListDatasourcePackagesCommand, "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, "AmazonDetective", "DetectiveClient", 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 { AcceptInvitation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AcceptInvitationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "AcceptInvitation", {})
13
- .n("DetectiveClient", "AcceptInvitationCommand")
14
- .sc(AcceptInvitation$)
15
- .build() {
3
+ export class AcceptInvitationCommand extends command(_ep0, _mw0, "AcceptInvitation", AcceptInvitation$) {
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 { BatchGetGraphMemberDatasources$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchGetGraphMemberDatasourcesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "BatchGetGraphMemberDatasources", {})
13
- .n("DetectiveClient", "BatchGetGraphMemberDatasourcesCommand")
14
- .sc(BatchGetGraphMemberDatasources$)
15
- .build() {
3
+ export class BatchGetGraphMemberDatasourcesCommand extends command(_ep0, _mw0, "BatchGetGraphMemberDatasources", BatchGetGraphMemberDatasources$) {
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 { BatchGetMembershipDatasources$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchGetMembershipDatasourcesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "BatchGetMembershipDatasources", {})
13
- .n("DetectiveClient", "BatchGetMembershipDatasourcesCommand")
14
- .sc(BatchGetMembershipDatasources$)
15
- .build() {
3
+ export class BatchGetMembershipDatasourcesCommand extends command(_ep0, _mw0, "BatchGetMembershipDatasources", BatchGetMembershipDatasources$) {
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 { CreateGraph$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateGraphCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "CreateGraph", {})
13
- .n("DetectiveClient", "CreateGraphCommand")
14
- .sc(CreateGraph$)
15
- .build() {
3
+ export class CreateGraphCommand extends command(_ep0, _mw0, "CreateGraph", CreateGraph$) {
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 { CreateMembers$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateMembersCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "CreateMembers", {})
13
- .n("DetectiveClient", "CreateMembersCommand")
14
- .sc(CreateMembers$)
15
- .build() {
3
+ export class CreateMembersCommand extends command(_ep0, _mw0, "CreateMembers", CreateMembers$) {
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 { DeleteGraph$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteGraphCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "DeleteGraph", {})
13
- .n("DetectiveClient", "DeleteGraphCommand")
14
- .sc(DeleteGraph$)
15
- .build() {
3
+ export class DeleteGraphCommand extends command(_ep0, _mw0, "DeleteGraph", DeleteGraph$) {
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 { DeleteMembers$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteMembersCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "DeleteMembers", {})
13
- .n("DetectiveClient", "DeleteMembersCommand")
14
- .sc(DeleteMembers$)
15
- .build() {
3
+ export class DeleteMembersCommand extends command(_ep0, _mw0, "DeleteMembers", DeleteMembers$) {
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 { DescribeOrganizationConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeOrganizationConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "DescribeOrganizationConfiguration", {})
13
- .n("DetectiveClient", "DescribeOrganizationConfigurationCommand")
14
- .sc(DescribeOrganizationConfiguration$)
15
- .build() {
3
+ export class DescribeOrganizationConfigurationCommand extends command(_ep0, _mw0, "DescribeOrganizationConfiguration", DescribeOrganizationConfiguration$) {
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 { DisableOrganizationAdminAccount$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisableOrganizationAdminAccountCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "DisableOrganizationAdminAccount", {})
13
- .n("DetectiveClient", "DisableOrganizationAdminAccountCommand")
14
- .sc(DisableOrganizationAdminAccount$)
15
- .build() {
3
+ export class DisableOrganizationAdminAccountCommand extends command(_ep0, _mw0, "DisableOrganizationAdminAccount", DisableOrganizationAdminAccount$) {
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 { DisassociateMembership$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisassociateMembershipCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "DisassociateMembership", {})
13
- .n("DetectiveClient", "DisassociateMembershipCommand")
14
- .sc(DisassociateMembership$)
15
- .build() {
3
+ export class DisassociateMembershipCommand extends command(_ep0, _mw0, "DisassociateMembership", DisassociateMembership$) {
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 { EnableOrganizationAdminAccount$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class EnableOrganizationAdminAccountCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AmazonDetective", "EnableOrganizationAdminAccount", {})
13
- .n("DetectiveClient", "EnableOrganizationAdminAccountCommand")
14
- .sc(EnableOrganizationAdminAccount$)
15
- .build() {
3
+ export class EnableOrganizationAdminAccountCommand extends command(_ep0, _mw0, "EnableOrganizationAdminAccount", EnableOrganizationAdminAccount$) {
16
4
  }