@aws-sdk/client-detective 3.1075.0 → 3.1076.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
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");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultDetectiveHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { AcceptInvitation$, BatchGetGraphMemberDatasources$, BatchGetMembershipDatasources$, CreateGraph$, CreateMembers$, DeleteGraph$, DeleteMembers$, DescribeOrganizationConfiguration$, DisableOrganizationAdminAccount$, DisassociateMembership$, EnableOrganizationAdminAccount$, GetInvestigation$, GetMembers$, ListDatasourcePackages$, ListGraphs$, ListIndicators$, ListInvestigations$, ListInvitations$, ListMembers$, ListOrganizationAdminAccounts$, ListTagsForResource$, RejectInvitation$, StartInvestigation$, StartMonitoringMember$, TagResource$, UntagResource$, UpdateDatasourcePackages$, UpdateInvestigationState$, UpdateOrganizationConfiguration$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { DetectiveServiceException } = require("./models/DetectiveServiceException");
18
- exports.DetectiveServiceException = DetectiveServiceException;
6
+ 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
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultDetectiveHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "detective",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultDetectiveHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,1013 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const m = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "stringEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [h]],
79
+ [c, l],
80
+ ["aws.partition", l, d],
81
+ [e, [{ [m]: "UseFIPS" }, b]],
82
+ [e, [{ [m]: "UseDualStack" }, b]],
83
+ [f, [i, "aws-us-gov"]],
84
+ [f, [i, "aws"]],
85
+ [e, [{ fn: g, argv: [j, "supportsFIPS"] }, b]],
86
+ [e, [{ fn: g, argv: [j, "supportsDualStack"] }, b]]
87
+ ],
88
+ results: [
89
+ [a],
90
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
91
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
92
+ [h, k],
93
+ ["https://detective.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
94
+ ["https://detective-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
95
+ ["https://api.detective-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
96
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
97
+ ["https://api.detective-fips.{Region}.{PartitionResult#dnsSuffix}", k],
98
+ [a, "FIPS is enabled but this partition does not support FIPS"],
99
+ ["https://api.detective.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
100
+ [a, "DualStack is enabled but this partition does not support DualStack"],
101
+ ["https://api.detective.{Region}.{PartitionResult#dnsSuffix}", k],
102
+ [a, "Invalid Configuration: Missing Region"]
103
+ ]
104
+ };
105
+ const root = 2;
106
+ const r = 100_000_000;
107
+ const nodes = new Int32Array([
108
+ -1, 1, -1,
109
+ 0, 16, 3,
110
+ 1, 4, r + 13,
111
+ 2, 5, r + 13,
112
+ 3, 10, 6,
113
+ 4, 7, r + 12,
114
+ 5, r + 4, 8,
115
+ 6, r + 4, 9,
116
+ 8, r + 10, r + 11,
117
+ 4, 12, 11,
118
+ 7, r + 8, r + 9,
119
+ 5, r + 5, 13,
120
+ 6, r + 5, 14,
121
+ 7, 15, r + 7,
122
+ 8, r + 6, r + 7,
123
+ 3, r + 1, 17,
124
+ 4, r + 2, r + 3,
125
+ ]);
126
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
127
+
128
+ const cache = new EndpointCache({
129
+ size: 50,
130
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
131
+ });
132
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
133
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
134
+ endpointParams: endpointParams,
135
+ logger: context.logger,
136
+ }));
137
+ };
138
+ customEndpointFunctions.aws = awsEndpointFunctions;
139
+
140
+ class DetectiveServiceException extends ServiceException {
141
+ constructor(options) {
142
+ super(options);
143
+ Object.setPrototypeOf(this, DetectiveServiceException.prototype);
144
+ }
145
+ }
146
+
147
+ class AccessDeniedException extends DetectiveServiceException {
148
+ name = "AccessDeniedException";
149
+ $fault = "client";
150
+ Message;
151
+ ErrorCode;
152
+ ErrorCodeReason;
153
+ SubErrorCode;
154
+ SubErrorCodeReason;
155
+ constructor(opts) {
156
+ super({
157
+ name: "AccessDeniedException",
158
+ $fault: "client",
159
+ ...opts,
160
+ });
161
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
162
+ this.Message = opts.Message;
163
+ this.ErrorCode = opts.ErrorCode;
164
+ this.ErrorCodeReason = opts.ErrorCodeReason;
165
+ this.SubErrorCode = opts.SubErrorCode;
166
+ this.SubErrorCodeReason = opts.SubErrorCodeReason;
167
+ }
168
+ }
169
+ class ConflictException extends DetectiveServiceException {
170
+ name = "ConflictException";
171
+ $fault = "client";
172
+ Message;
173
+ constructor(opts) {
174
+ super({
175
+ name: "ConflictException",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, ConflictException.prototype);
180
+ this.Message = opts.Message;
181
+ }
182
+ }
183
+ class InternalServerException extends DetectiveServiceException {
184
+ name = "InternalServerException";
185
+ $fault = "server";
186
+ Message;
187
+ constructor(opts) {
188
+ super({
189
+ name: "InternalServerException",
190
+ $fault: "server",
191
+ ...opts,
192
+ });
193
+ Object.setPrototypeOf(this, InternalServerException.prototype);
194
+ this.Message = opts.Message;
195
+ }
196
+ }
197
+ class ResourceNotFoundException extends DetectiveServiceException {
198
+ name = "ResourceNotFoundException";
199
+ $fault = "client";
200
+ Message;
201
+ constructor(opts) {
202
+ super({
203
+ name: "ResourceNotFoundException",
204
+ $fault: "client",
205
+ ...opts,
206
+ });
207
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
208
+ this.Message = opts.Message;
209
+ }
210
+ }
211
+ class ValidationException extends DetectiveServiceException {
212
+ name = "ValidationException";
213
+ $fault = "client";
214
+ Message;
215
+ ErrorCode;
216
+ ErrorCodeReason;
217
+ constructor(opts) {
218
+ super({
219
+ name: "ValidationException",
220
+ $fault: "client",
221
+ ...opts,
222
+ });
223
+ Object.setPrototypeOf(this, ValidationException.prototype);
224
+ this.Message = opts.Message;
225
+ this.ErrorCode = opts.ErrorCode;
226
+ this.ErrorCodeReason = opts.ErrorCodeReason;
227
+ }
228
+ }
229
+ class ServiceQuotaExceededException extends DetectiveServiceException {
230
+ name = "ServiceQuotaExceededException";
231
+ $fault = "client";
232
+ Message;
233
+ Resources;
234
+ constructor(opts) {
235
+ super({
236
+ name: "ServiceQuotaExceededException",
237
+ $fault: "client",
238
+ ...opts,
239
+ });
240
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
241
+ this.Message = opts.Message;
242
+ this.Resources = opts.Resources;
243
+ }
244
+ }
245
+ class TooManyRequestsException extends DetectiveServiceException {
246
+ name = "TooManyRequestsException";
247
+ $fault = "client";
248
+ Message;
249
+ constructor(opts) {
250
+ super({
251
+ name: "TooManyRequestsException",
252
+ $fault: "client",
253
+ ...opts,
254
+ });
255
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
256
+ this.Message = opts.Message;
257
+ }
258
+ }
259
+
260
+ const _A = "Account";
261
+ const _ADE = "AccessDeniedException";
262
+ const _AE = "AutoEnable";
263
+ const _AI = "AccountId";
264
+ const _AIR = "AcceptInvitationRequest";
265
+ const _AIc = "AccountIds";
266
+ const _AIcc = "AcceptInvitation";
267
+ const _AId = "AdministratorId";
268
+ const _AL = "AccountList";
269
+ const _ALd = "AdministratorList";
270
+ const _APIFC = "APIFailureCount";
271
+ const _APIN = "APIName";
272
+ const _APISC = "APISuccessCount";
273
+ const _Ac = "Accounts";
274
+ const _Ad = "Administrator";
275
+ const _Adm = "Administrators";
276
+ const _Ar = "Arn";
277
+ const _As = "Aso";
278
+ const _BGGMD = "BatchGetGraphMemberDatasources";
279
+ const _BGGMDR = "BatchGetGraphMemberDatasourcesRequest";
280
+ const _BGGMDRa = "BatchGetGraphMemberDatasourcesResponse";
281
+ const _BGMD = "BatchGetMembershipDatasources";
282
+ const _BGMDR = "BatchGetMembershipDatasourcesRequest";
283
+ const _BGMDRa = "BatchGetMembershipDatasourcesResponse";
284
+ const _CE = "ConflictException";
285
+ const _CG = "CreateGraph";
286
+ const _CGR = "CreateGraphRequest";
287
+ const _CGRr = "CreateGraphResponse";
288
+ const _CM = "CreateMembers";
289
+ const _CMR = "CreateMembersRequest";
290
+ const _CMRr = "CreateMembersResponse";
291
+ const _CT = "CreatedTime";
292
+ const _DEN = "DisableEmailNotification";
293
+ const _DF = "DateFilter";
294
+ const _DG = "DeleteGraph";
295
+ const _DGR = "DeleteGraphRequest";
296
+ const _DM = "DeleteMembers";
297
+ const _DMR = "DeleteMembersRequest";
298
+ const _DMRe = "DeleteMembersResponse";
299
+ const _DMRi = "DisassociateMembershipRequest";
300
+ const _DMi = "DisassociateMembership";
301
+ const _DOAA = "DisableOrganizationAdminAccount";
302
+ const _DOC = "DescribeOrganizationConfiguration";
303
+ const _DOCR = "DescribeOrganizationConfigurationRequest";
304
+ const _DOCRe = "DescribeOrganizationConfigurationResponse";
305
+ const _DP = "DatasourcePackages";
306
+ const _DPID = "DatasourcePackageIngestDetail";
307
+ const _DPIDa = "DatasourcePackageIngestDetails";
308
+ const _DPIH = "DatasourcePackageIngestHistory";
309
+ const _DPIS = "DatasourcePackageIngestState";
310
+ const _DPISa = "DatasourcePackageIngestStates";
311
+ const _DPUI = "DatasourcePackageUsageInfo";
312
+ const _DR = "DisabledReason";
313
+ const _DT = "DelegationTime";
314
+ const _EA = "EmailAddress";
315
+ const _EAn = "EntityArn";
316
+ const _EC = "ErrorCode";
317
+ const _ECR = "ErrorCodeReason";
318
+ const _EI = "EndInclusive";
319
+ const _EIA = "EndingIpAddress";
320
+ const _EL = "EndingLocation";
321
+ const _EM = "EmailMessage";
322
+ const _EOAA = "EnableOrganizationAdminAccount";
323
+ const _EOAAR = "EnableOrganizationAdminAccountRequest";
324
+ const _ET = "EntityType";
325
+ const _F = "Field";
326
+ const _FC = "FilterCriteria";
327
+ const _FIAD = "FlaggedIpAddressDetail";
328
+ const _G = "Graph";
329
+ const _GA = "GraphArn";
330
+ const _GAr = "GraphArns";
331
+ const _GI = "GetInvestigation";
332
+ const _GIR = "GetInvestigationRequest";
333
+ const _GIRe = "GetInvestigationResponse";
334
+ const _GL = "GraphList";
335
+ const _GM = "GetMembers";
336
+ const _GMR = "GetMembersRequest";
337
+ const _GMRe = "GetMembersResponse";
338
+ const _HTD = "HourlyTimeDelta";
339
+ const _I = "Indicator";
340
+ const _IA = "IpAddress";
341
+ const _ID = "IndicatorDetail";
342
+ const _IDn = "InvestigationDetail";
343
+ const _IDnv = "InvestigationDetails";
344
+ const _II = "InvestigationId";
345
+ const _INFEA = "IsNewForEntireAccount";
346
+ const _ISE = "InternalServerException";
347
+ const _IT = "IndicatorType";
348
+ const _ITD = "ImpossibleTravelDetail";
349
+ const _ITn = "InvitedTime";
350
+ const _ITnv = "InvitationType";
351
+ const _Id = "Id";
352
+ const _In = "Indicators";
353
+ const _Inv = "Invitations";
354
+ const _L = "Location";
355
+ const _LDP = "ListDatasourcePackages";
356
+ const _LDPR = "ListDatasourcePackagesRequest";
357
+ const _LDPRi = "ListDatasourcePackagesResponse";
358
+ const _LG = "ListGraphs";
359
+ const _LGR = "ListGraphsRequest";
360
+ const _LGRi = "ListGraphsResponse";
361
+ const _LI = "ListIndicators";
362
+ const _LIR = "ListIndicatorsRequest";
363
+ const _LIRi = "ListIndicatorsResponse";
364
+ const _LIRis = "ListInvestigationsRequest";
365
+ const _LIRist = "ListInvestigationsResponse";
366
+ const _LIRistn = "ListInvitationsRequest";
367
+ const _LIRistnv = "ListInvitationsResponse";
368
+ const _LISC = "LastIngestStateChange";
369
+ const _LISCD = "LastIngestStateChangeDates";
370
+ const _LIi = "ListInvestigations";
371
+ const _LIis = "ListInvitations";
372
+ const _LM = "ListMembers";
373
+ const _LMR = "ListMembersRequest";
374
+ const _LMRi = "ListMembersResponse";
375
+ const _LOAA = "ListOrganizationAdminAccounts";
376
+ const _LOAAR = "ListOrganizationAdminAccountsRequest";
377
+ const _LOAARi = "ListOrganizationAdminAccountsResponse";
378
+ const _LTFR = "ListTagsForResource";
379
+ const _LTFRR = "ListTagsForResourceRequest";
380
+ const _LTFRRi = "ListTagsForResourceResponse";
381
+ const _M = "Message";
382
+ const _MD = "MemberDatasources";
383
+ const _MDL = "MemberDetailList";
384
+ const _MDLe = "MembershipDatasourcesList";
385
+ const _MDe = "MembershipDatasources";
386
+ const _MDem = "MemberDetails";
387
+ const _MDemb = "MemberDetail";
388
+ const _MI = "MasterId";
389
+ const _MR = "MaxResults";
390
+ const _Me = "Members";
391
+ const _NAD = "NewAsoDetail";
392
+ const _NGD = "NewGeolocationDetail";
393
+ const _NT = "NextToken";
394
+ const _NUAD = "NewUserAgentDetail";
395
+ const _P = "Procedure";
396
+ const _POGU = "PercentOfGraphUtilization";
397
+ const _POGUUT = "PercentOfGraphUtilizationUpdatedTime";
398
+ const _R = "Resources";
399
+ const _RA = "ResourceArn";
400
+ const _RFD = "RelatedFindingDetail";
401
+ const _RFGD = "RelatedFindingGroupDetail";
402
+ const _RI = "RejectInvitation";
403
+ const _RIR = "RejectInvitationRequest";
404
+ const _RNFE = "ResourceNotFoundException";
405
+ const _Re = "Reason";
406
+ const _S = "Severity";
407
+ const _SC = "SortCriteria";
408
+ const _SEC = "SubErrorCode";
409
+ const _SECR = "SubErrorCodeReason";
410
+ const _SET = "ScopeEndTime";
411
+ const _SF = "StringFilter";
412
+ const _SI = "StartInclusive";
413
+ const _SIA = "StartingIpAddress";
414
+ const _SIR = "StartInvestigationRequest";
415
+ const _SIRt = "StartInvestigationResponse";
416
+ const _SIt = "StartInvestigation";
417
+ const _SL = "StartingLocation";
418
+ const _SMM = "StartMonitoringMember";
419
+ const _SMMR = "StartMonitoringMemberRequest";
420
+ const _SO = "SortOrder";
421
+ const _SQEE = "ServiceQuotaExceededException";
422
+ const _SST = "ScopeStartTime";
423
+ const _St = "Status";
424
+ const _Sta = "State";
425
+ const _T = "Tags";
426
+ const _TFC = "TimestampForCollection";
427
+ const _TK = "TagKeys";
428
+ const _TMRE = "TooManyRequestsException";
429
+ const _TR = "TagResource";
430
+ const _TRR = "TagResourceRequest";
431
+ const _TRRa = "TagResourceResponse";
432
+ const _TTPOD = "TTPsObservedDetail";
433
+ const _Ta = "Tactic";
434
+ const _Te = "Technique";
435
+ const _Ti = "Timestamp";
436
+ const _Ty = "Type";
437
+ const _UA = "UnprocessedAccounts";
438
+ const _UAL = "UnprocessedAccountList";
439
+ const _UAn = "UnprocessedAccount";
440
+ const _UAs = "UserAgent";
441
+ const _UDP = "UpdateDatasourcePackages";
442
+ const _UDPR = "UpdateDatasourcePackagesRequest";
443
+ const _UG = "UnprocessedGraphs";
444
+ const _UGL = "UnprocessedGraphList";
445
+ const _UGn = "UnprocessedGraph";
446
+ const _UIS = "UpdateInvestigationState";
447
+ const _UISR = "UpdateInvestigationStateRequest";
448
+ const _UOC = "UpdateOrganizationConfiguration";
449
+ const _UOCR = "UpdateOrganizationConfigurationRequest";
450
+ const _UR = "UntagResource";
451
+ const _URR = "UntagResourceRequest";
452
+ const _URRn = "UntagResourceResponse";
453
+ const _UT = "UpdatedTime";
454
+ const _V = "Value";
455
+ const _VE = "ValidationException";
456
+ const _VUBDP = "VolumeUsageByDatasourcePackage";
457
+ const _VUIB = "VolumeUsageInBytes";
458
+ const _VUUT = "VolumeUsageUpdateTime";
459
+ const _VUUTo = "VolumeUsageUpdatedTime";
460
+ const _c = "client";
461
+ const _e = "error";
462
+ const _h = "http";
463
+ const _hE = "httpError";
464
+ const _hQ = "httpQuery";
465
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.detective";
466
+ const _se = "server";
467
+ const _tK = "tagKeys";
468
+ const n0 = "com.amazonaws.detective";
469
+ const _s_registry = TypeRegistry.for(_s);
470
+ var DetectiveServiceException$ = [-3, _s, "DetectiveServiceException", 0, [], []];
471
+ _s_registry.registerError(DetectiveServiceException$, DetectiveServiceException);
472
+ const n0_registry = TypeRegistry.for(n0);
473
+ var AccessDeniedException$ = [-3, n0, _ADE,
474
+ { [_e]: _c, [_hE]: 403 },
475
+ [_M, _EC, _ECR, _SEC, _SECR],
476
+ [0, 0, 0, 0, 0]
477
+ ];
478
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
479
+ var ConflictException$ = [-3, n0, _CE,
480
+ { [_e]: _c, [_hE]: 409 },
481
+ [_M],
482
+ [0]
483
+ ];
484
+ n0_registry.registerError(ConflictException$, ConflictException);
485
+ var InternalServerException$ = [-3, n0, _ISE,
486
+ { [_e]: _se, [_hE]: 500 },
487
+ [_M],
488
+ [0]
489
+ ];
490
+ n0_registry.registerError(InternalServerException$, InternalServerException);
491
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
492
+ { [_e]: _c, [_hE]: 404 },
493
+ [_M],
494
+ [0]
495
+ ];
496
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
497
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
498
+ { [_e]: _c, [_hE]: 402 },
499
+ [_M, _R],
500
+ [0, 64 | 0]
501
+ ];
502
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
503
+ var TooManyRequestsException$ = [-3, n0, _TMRE,
504
+ { [_e]: _c, [_hE]: 429 },
505
+ [_M],
506
+ [0]
507
+ ];
508
+ n0_registry.registerError(TooManyRequestsException$, TooManyRequestsException);
509
+ var ValidationException$ = [-3, n0, _VE,
510
+ { [_e]: _c, [_hE]: 400 },
511
+ [_M, _EC, _ECR],
512
+ [0, 0, 0]
513
+ ];
514
+ n0_registry.registerError(ValidationException$, ValidationException);
515
+ const errorTypeRegistries = [
516
+ _s_registry,
517
+ n0_registry,
518
+ ];
519
+ var EmailAddress = [0, n0, _EA, 8, 0];
520
+ var EmailMessage = [0, n0, _EM, 8, 0];
521
+ var AcceptInvitationRequest$ = [3, n0, _AIR,
522
+ 0,
523
+ [_GA],
524
+ [0], 1
525
+ ];
526
+ var Account$ = [3, n0, _A,
527
+ 0,
528
+ [_AI, _EA],
529
+ [0, [() => EmailAddress, 0]], 2
530
+ ];
531
+ var Administrator$ = [3, n0, _Ad,
532
+ 0,
533
+ [_AI, _GA, _DT],
534
+ [0, 0, 5]
535
+ ];
536
+ var BatchGetGraphMemberDatasourcesRequest$ = [3, n0, _BGGMDR,
537
+ 0,
538
+ [_GA, _AIc],
539
+ [0, 64 | 0], 2
540
+ ];
541
+ var BatchGetGraphMemberDatasourcesResponse$ = [3, n0, _BGGMDRa,
542
+ 0,
543
+ [_MD, _UA],
544
+ [() => MembershipDatasourcesList, () => UnprocessedAccountList]
545
+ ];
546
+ var BatchGetMembershipDatasourcesRequest$ = [3, n0, _BGMDR,
547
+ 0,
548
+ [_GAr],
549
+ [64 | 0], 1
550
+ ];
551
+ var BatchGetMembershipDatasourcesResponse$ = [3, n0, _BGMDRa,
552
+ 0,
553
+ [_MDe, _UG],
554
+ [() => MembershipDatasourcesList, () => UnprocessedGraphList]
555
+ ];
556
+ var CreateGraphRequest$ = [3, n0, _CGR,
557
+ 0,
558
+ [_T],
559
+ [128 | 0]
560
+ ];
561
+ var CreateGraphResponse$ = [3, n0, _CGRr,
562
+ 0,
563
+ [_GA],
564
+ [0]
565
+ ];
566
+ var CreateMembersRequest$ = [3, n0, _CMR,
567
+ 0,
568
+ [_GA, _Ac, _M, _DEN],
569
+ [0, [() => AccountList, 0], [() => EmailMessage, 0], 2], 2
570
+ ];
571
+ var CreateMembersResponse$ = [3, n0, _CMRr,
572
+ 0,
573
+ [_Me, _UA],
574
+ [[() => MemberDetailList, 0], () => UnprocessedAccountList]
575
+ ];
576
+ var DatasourcePackageIngestDetail$ = [3, n0, _DPID,
577
+ 0,
578
+ [_DPIS, _LISC],
579
+ [0, () => LastIngestStateChangeDates]
580
+ ];
581
+ var DatasourcePackageUsageInfo$ = [3, n0, _DPUI,
582
+ 0,
583
+ [_VUIB, _VUUT],
584
+ [1, 5]
585
+ ];
586
+ var DateFilter$ = [3, n0, _DF,
587
+ 0,
588
+ [_SI, _EI],
589
+ [5, 5], 2
590
+ ];
591
+ var DeleteGraphRequest$ = [3, n0, _DGR,
592
+ 0,
593
+ [_GA],
594
+ [0], 1
595
+ ];
596
+ var DeleteMembersRequest$ = [3, n0, _DMR,
597
+ 0,
598
+ [_GA, _AIc],
599
+ [0, 64 | 0], 2
600
+ ];
601
+ var DeleteMembersResponse$ = [3, n0, _DMRe,
602
+ 0,
603
+ [_AIc, _UA],
604
+ [64 | 0, () => UnprocessedAccountList]
605
+ ];
606
+ var DescribeOrganizationConfigurationRequest$ = [3, n0, _DOCR,
607
+ 0,
608
+ [_GA],
609
+ [0], 1
610
+ ];
611
+ var DescribeOrganizationConfigurationResponse$ = [3, n0, _DOCRe,
612
+ 0,
613
+ [_AE],
614
+ [2]
615
+ ];
616
+ var DisassociateMembershipRequest$ = [3, n0, _DMRi,
617
+ 0,
618
+ [_GA],
619
+ [0], 1
620
+ ];
621
+ var EnableOrganizationAdminAccountRequest$ = [3, n0, _EOAAR,
622
+ 0,
623
+ [_AI],
624
+ [0], 1
625
+ ];
626
+ var FilterCriteria$ = [3, n0, _FC,
627
+ 0,
628
+ [_S, _St, _Sta, _EAn, _CT],
629
+ [() => StringFilter$, () => StringFilter$, () => StringFilter$, () => StringFilter$, () => DateFilter$]
630
+ ];
631
+ var FlaggedIpAddressDetail$ = [3, n0, _FIAD,
632
+ 0,
633
+ [_IA, _Re],
634
+ [0, 0]
635
+ ];
636
+ var GetInvestigationRequest$ = [3, n0, _GIR,
637
+ 0,
638
+ [_GA, _II],
639
+ [0, 0], 2
640
+ ];
641
+ var GetInvestigationResponse$ = [3, n0, _GIRe,
642
+ 0,
643
+ [_GA, _II, _EAn, _ET, _CT, _SST, _SET, _St, _S, _Sta],
644
+ [0, 0, 0, 0, 5, 5, 5, 0, 0, 0]
645
+ ];
646
+ var GetMembersRequest$ = [3, n0, _GMR,
647
+ 0,
648
+ [_GA, _AIc],
649
+ [0, 64 | 0], 2
650
+ ];
651
+ var GetMembersResponse$ = [3, n0, _GMRe,
652
+ 0,
653
+ [_MDem, _UA],
654
+ [[() => MemberDetailList, 0], () => UnprocessedAccountList]
655
+ ];
656
+ var Graph$ = [3, n0, _G,
657
+ 0,
658
+ [_Ar, _CT],
659
+ [0, 5]
660
+ ];
661
+ var ImpossibleTravelDetail$ = [3, n0, _ITD,
662
+ 0,
663
+ [_SIA, _EIA, _SL, _EL, _HTD],
664
+ [0, 0, 0, 0, 1]
665
+ ];
666
+ var Indicator$ = [3, n0, _I,
667
+ 0,
668
+ [_IT, _ID],
669
+ [0, () => IndicatorDetail$]
670
+ ];
671
+ var IndicatorDetail$ = [3, n0, _ID,
672
+ 0,
673
+ [_TTPOD, _ITD, _FIAD, _NGD, _NAD, _NUAD, _RFD, _RFGD],
674
+ [() => TTPsObservedDetail$, () => ImpossibleTravelDetail$, () => FlaggedIpAddressDetail$, () => NewGeolocationDetail$, () => NewAsoDetail$, () => NewUserAgentDetail$, () => RelatedFindingDetail$, () => RelatedFindingGroupDetail$]
675
+ ];
676
+ var InvestigationDetail$ = [3, n0, _IDn,
677
+ 0,
678
+ [_II, _S, _St, _Sta, _CT, _EAn, _ET],
679
+ [0, 0, 0, 0, 5, 0, 0]
680
+ ];
681
+ var ListDatasourcePackagesRequest$ = [3, n0, _LDPR,
682
+ 0,
683
+ [_GA, _NT, _MR],
684
+ [0, 0, 1], 1
685
+ ];
686
+ var ListDatasourcePackagesResponse$ = [3, n0, _LDPRi,
687
+ 0,
688
+ [_DP, _NT],
689
+ [() => DatasourcePackageIngestDetails, 0]
690
+ ];
691
+ var ListGraphsRequest$ = [3, n0, _LGR,
692
+ 0,
693
+ [_NT, _MR],
694
+ [0, 1]
695
+ ];
696
+ var ListGraphsResponse$ = [3, n0, _LGRi,
697
+ 0,
698
+ [_GL, _NT],
699
+ [() => GraphList, 0]
700
+ ];
701
+ var ListIndicatorsRequest$ = [3, n0, _LIR,
702
+ 0,
703
+ [_GA, _II, _IT, _NT, _MR],
704
+ [0, 0, 0, 0, 1], 2
705
+ ];
706
+ var ListIndicatorsResponse$ = [3, n0, _LIRi,
707
+ 0,
708
+ [_GA, _II, _NT, _In],
709
+ [0, 0, 0, () => Indicators]
710
+ ];
711
+ var ListInvestigationsRequest$ = [3, n0, _LIRis,
712
+ 0,
713
+ [_GA, _NT, _MR, _FC, _SC],
714
+ [0, 0, 1, () => FilterCriteria$, () => SortCriteria$], 1
715
+ ];
716
+ var ListInvestigationsResponse$ = [3, n0, _LIRist,
717
+ 0,
718
+ [_IDnv, _NT],
719
+ [() => InvestigationDetails, 0]
720
+ ];
721
+ var ListInvitationsRequest$ = [3, n0, _LIRistn,
722
+ 0,
723
+ [_NT, _MR],
724
+ [0, 1]
725
+ ];
726
+ var ListInvitationsResponse$ = [3, n0, _LIRistnv,
727
+ 0,
728
+ [_Inv, _NT],
729
+ [[() => MemberDetailList, 0], 0]
730
+ ];
731
+ var ListMembersRequest$ = [3, n0, _LMR,
732
+ 0,
733
+ [_GA, _NT, _MR],
734
+ [0, 0, 1], 1
735
+ ];
736
+ var ListMembersResponse$ = [3, n0, _LMRi,
737
+ 0,
738
+ [_MDem, _NT],
739
+ [[() => MemberDetailList, 0], 0]
740
+ ];
741
+ var ListOrganizationAdminAccountsRequest$ = [3, n0, _LOAAR,
742
+ 0,
743
+ [_NT, _MR],
744
+ [0, 1]
745
+ ];
746
+ var ListOrganizationAdminAccountsResponse$ = [3, n0, _LOAARi,
747
+ 0,
748
+ [_Adm, _NT],
749
+ [() => AdministratorList, 0]
750
+ ];
751
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
752
+ 0,
753
+ [_RA],
754
+ [[0, 1]], 1
755
+ ];
756
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
757
+ 0,
758
+ [_T],
759
+ [128 | 0]
760
+ ];
761
+ var MemberDetail$ = [3, n0, _MDemb,
762
+ 0,
763
+ [_AI, _EA, _GA, _MI, _AId, _St, _DR, _ITn, _UT, _VUIB, _VUUTo, _POGU, _POGUUT, _ITnv, _VUBDP, _DPISa],
764
+ [0, [() => EmailAddress, 0], 0, 0, 0, 0, 0, 5, 5, 1, 5, 1, 5, 0, () => VolumeUsageByDatasourcePackage, 128 | 0]
765
+ ];
766
+ var MembershipDatasources$ = [3, n0, _MDe,
767
+ 0,
768
+ [_AI, _GA, _DPIH],
769
+ [0, 0, () => DatasourcePackageIngestHistory]
770
+ ];
771
+ var NewAsoDetail$ = [3, n0, _NAD,
772
+ 0,
773
+ [_As, _INFEA],
774
+ [0, 2]
775
+ ];
776
+ var NewGeolocationDetail$ = [3, n0, _NGD,
777
+ 0,
778
+ [_L, _IA, _INFEA],
779
+ [0, 0, 2]
780
+ ];
781
+ var NewUserAgentDetail$ = [3, n0, _NUAD,
782
+ 0,
783
+ [_UAs, _INFEA],
784
+ [0, 2]
785
+ ];
786
+ var RejectInvitationRequest$ = [3, n0, _RIR,
787
+ 0,
788
+ [_GA],
789
+ [0], 1
790
+ ];
791
+ var RelatedFindingDetail$ = [3, n0, _RFD,
792
+ 0,
793
+ [_Ar, _Ty, _IA],
794
+ [0, 0, 0]
795
+ ];
796
+ var RelatedFindingGroupDetail$ = [3, n0, _RFGD,
797
+ 0,
798
+ [_Id],
799
+ [0]
800
+ ];
801
+ var SortCriteria$ = [3, n0, _SC,
802
+ 0,
803
+ [_F, _SO],
804
+ [0, 0]
805
+ ];
806
+ var StartInvestigationRequest$ = [3, n0, _SIR,
807
+ 0,
808
+ [_GA, _EAn, _SST, _SET],
809
+ [0, 0, 5, 5], 4
810
+ ];
811
+ var StartInvestigationResponse$ = [3, n0, _SIRt,
812
+ 0,
813
+ [_II],
814
+ [0]
815
+ ];
816
+ var StartMonitoringMemberRequest$ = [3, n0, _SMMR,
817
+ 0,
818
+ [_GA, _AI],
819
+ [0, 0], 2
820
+ ];
821
+ var StringFilter$ = [3, n0, _SF,
822
+ 0,
823
+ [_V],
824
+ [0], 1
825
+ ];
826
+ var TagResourceRequest$ = [3, n0, _TRR,
827
+ 0,
828
+ [_RA, _T],
829
+ [[0, 1], 128 | 0], 2
830
+ ];
831
+ var TagResourceResponse$ = [3, n0, _TRRa,
832
+ 0,
833
+ [],
834
+ []
835
+ ];
836
+ var TimestampForCollection$ = [3, n0, _TFC,
837
+ 0,
838
+ [_Ti],
839
+ [5]
840
+ ];
841
+ var TTPsObservedDetail$ = [3, n0, _TTPOD,
842
+ 0,
843
+ [_Ta, _Te, _P, _IA, _APIN, _APISC, _APIFC],
844
+ [0, 0, 0, 0, 0, 1, 1]
845
+ ];
846
+ var UnprocessedAccount$ = [3, n0, _UAn,
847
+ 0,
848
+ [_AI, _Re],
849
+ [0, 0]
850
+ ];
851
+ var UnprocessedGraph$ = [3, n0, _UGn,
852
+ 0,
853
+ [_GA, _Re],
854
+ [0, 0]
855
+ ];
856
+ var UntagResourceRequest$ = [3, n0, _URR,
857
+ 0,
858
+ [_RA, _TK],
859
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
860
+ ];
861
+ var UntagResourceResponse$ = [3, n0, _URRn,
862
+ 0,
863
+ [],
864
+ []
865
+ ];
866
+ var UpdateDatasourcePackagesRequest$ = [3, n0, _UDPR,
867
+ 0,
868
+ [_GA, _DP],
869
+ [0, 64 | 0], 2
870
+ ];
871
+ var UpdateInvestigationStateRequest$ = [3, n0, _UISR,
872
+ 0,
873
+ [_GA, _II, _Sta],
874
+ [0, 0, 0], 3
875
+ ];
876
+ var UpdateOrganizationConfigurationRequest$ = [3, n0, _UOCR,
877
+ 0,
878
+ [_GA, _AE],
879
+ [0, 2], 1
880
+ ];
881
+ var __Unit = "unit";
882
+ var AccountList = [1, n0, _AL,
883
+ 0, [() => Account$,
884
+ 0]
885
+ ];
886
+ var AdministratorList = [1, n0, _ALd,
887
+ 0, () => Administrator$
888
+ ];
889
+ var GraphList = [1, n0, _GL,
890
+ 0, () => Graph$
891
+ ];
892
+ var Indicators = [1, n0, _In,
893
+ 0, () => Indicator$
894
+ ];
895
+ var InvestigationDetails = [1, n0, _IDnv,
896
+ 0, () => InvestigationDetail$
897
+ ];
898
+ var MemberDetailList = [1, n0, _MDL,
899
+ 0, [() => MemberDetail$,
900
+ 0]
901
+ ];
902
+ var MembershipDatasourcesList = [1, n0, _MDLe,
903
+ 0, () => MembershipDatasources$
904
+ ];
905
+ var UnprocessedAccountList = [1, n0, _UAL,
906
+ 0, () => UnprocessedAccount$
907
+ ];
908
+ var UnprocessedGraphList = [1, n0, _UGL,
909
+ 0, () => UnprocessedGraph$
910
+ ];
911
+ var DatasourcePackageIngestDetails = [2, n0, _DPIDa,
912
+ 0, 0, () => DatasourcePackageIngestDetail$
913
+ ];
914
+ var DatasourcePackageIngestHistory = [2, n0, _DPIH,
915
+ 0, 0, () => LastIngestStateChangeDates
916
+ ];
917
+ var LastIngestStateChangeDates = [2, n0, _LISCD,
918
+ 0, 0, () => TimestampForCollection$
919
+ ];
920
+ var VolumeUsageByDatasourcePackage = [2, n0, _VUBDP,
921
+ 0, 0, () => DatasourcePackageUsageInfo$
922
+ ];
923
+ var AcceptInvitation$ = [9, n0, _AIcc,
924
+ { [_h]: ["PUT", "/invitation", 200] }, () => AcceptInvitationRequest$, () => __Unit
925
+ ];
926
+ var BatchGetGraphMemberDatasources$ = [9, n0, _BGGMD,
927
+ { [_h]: ["POST", "/graph/datasources/get", 200] }, () => BatchGetGraphMemberDatasourcesRequest$, () => BatchGetGraphMemberDatasourcesResponse$
928
+ ];
929
+ var BatchGetMembershipDatasources$ = [9, n0, _BGMD,
930
+ { [_h]: ["POST", "/membership/datasources/get", 200] }, () => BatchGetMembershipDatasourcesRequest$, () => BatchGetMembershipDatasourcesResponse$
931
+ ];
932
+ var CreateGraph$ = [9, n0, _CG,
933
+ { [_h]: ["POST", "/graph", 200] }, () => CreateGraphRequest$, () => CreateGraphResponse$
934
+ ];
935
+ var CreateMembers$ = [9, n0, _CM,
936
+ { [_h]: ["POST", "/graph/members", 200] }, () => CreateMembersRequest$, () => CreateMembersResponse$
937
+ ];
938
+ var DeleteGraph$ = [9, n0, _DG,
939
+ { [_h]: ["POST", "/graph/removal", 200] }, () => DeleteGraphRequest$, () => __Unit
940
+ ];
941
+ var DeleteMembers$ = [9, n0, _DM,
942
+ { [_h]: ["POST", "/graph/members/removal", 200] }, () => DeleteMembersRequest$, () => DeleteMembersResponse$
943
+ ];
944
+ var DescribeOrganizationConfiguration$ = [9, n0, _DOC,
945
+ { [_h]: ["POST", "/orgs/describeOrganizationConfiguration", 200] }, () => DescribeOrganizationConfigurationRequest$, () => DescribeOrganizationConfigurationResponse$
946
+ ];
947
+ var DisableOrganizationAdminAccount$ = [9, n0, _DOAA,
948
+ { [_h]: ["POST", "/orgs/disableAdminAccount", 200] }, () => __Unit, () => __Unit
949
+ ];
950
+ var DisassociateMembership$ = [9, n0, _DMi,
951
+ { [_h]: ["POST", "/membership/removal", 200] }, () => DisassociateMembershipRequest$, () => __Unit
952
+ ];
953
+ var EnableOrganizationAdminAccount$ = [9, n0, _EOAA,
954
+ { [_h]: ["POST", "/orgs/enableAdminAccount", 200] }, () => EnableOrganizationAdminAccountRequest$, () => __Unit
955
+ ];
956
+ var GetInvestigation$ = [9, n0, _GI,
957
+ { [_h]: ["POST", "/investigations/getInvestigation", 200] }, () => GetInvestigationRequest$, () => GetInvestigationResponse$
958
+ ];
959
+ var GetMembers$ = [9, n0, _GM,
960
+ { [_h]: ["POST", "/graph/members/get", 200] }, () => GetMembersRequest$, () => GetMembersResponse$
961
+ ];
962
+ var ListDatasourcePackages$ = [9, n0, _LDP,
963
+ { [_h]: ["POST", "/graph/datasources/list", 200] }, () => ListDatasourcePackagesRequest$, () => ListDatasourcePackagesResponse$
964
+ ];
965
+ var ListGraphs$ = [9, n0, _LG,
966
+ { [_h]: ["POST", "/graphs/list", 200] }, () => ListGraphsRequest$, () => ListGraphsResponse$
967
+ ];
968
+ var ListIndicators$ = [9, n0, _LI,
969
+ { [_h]: ["POST", "/investigations/listIndicators", 200] }, () => ListIndicatorsRequest$, () => ListIndicatorsResponse$
970
+ ];
971
+ var ListInvestigations$ = [9, n0, _LIi,
972
+ { [_h]: ["POST", "/investigations/listInvestigations", 200] }, () => ListInvestigationsRequest$, () => ListInvestigationsResponse$
973
+ ];
974
+ var ListInvitations$ = [9, n0, _LIis,
975
+ { [_h]: ["POST", "/invitations/list", 200] }, () => ListInvitationsRequest$, () => ListInvitationsResponse$
976
+ ];
977
+ var ListMembers$ = [9, n0, _LM,
978
+ { [_h]: ["POST", "/graph/members/list", 200] }, () => ListMembersRequest$, () => ListMembersResponse$
979
+ ];
980
+ var ListOrganizationAdminAccounts$ = [9, n0, _LOAA,
981
+ { [_h]: ["POST", "/orgs/adminAccountslist", 200] }, () => ListOrganizationAdminAccountsRequest$, () => ListOrganizationAdminAccountsResponse$
982
+ ];
983
+ var ListTagsForResource$ = [9, n0, _LTFR,
984
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
985
+ ];
986
+ var RejectInvitation$ = [9, n0, _RI,
987
+ { [_h]: ["POST", "/invitation/removal", 200] }, () => RejectInvitationRequest$, () => __Unit
988
+ ];
989
+ var StartInvestigation$ = [9, n0, _SIt,
990
+ { [_h]: ["POST", "/investigations/startInvestigation", 200] }, () => StartInvestigationRequest$, () => StartInvestigationResponse$
991
+ ];
992
+ var StartMonitoringMember$ = [9, n0, _SMM,
993
+ { [_h]: ["POST", "/graph/member/monitoringstate", 200] }, () => StartMonitoringMemberRequest$, () => __Unit
994
+ ];
995
+ var TagResource$ = [9, n0, _TR,
996
+ { [_h]: ["POST", "/tags/{ResourceArn}", 204] }, () => TagResourceRequest$, () => TagResourceResponse$
997
+ ];
998
+ var UntagResource$ = [9, n0, _UR,
999
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => UntagResourceResponse$
1000
+ ];
1001
+ var UpdateDatasourcePackages$ = [9, n0, _UDP,
1002
+ { [_h]: ["POST", "/graph/datasources/update", 200] }, () => UpdateDatasourcePackagesRequest$, () => __Unit
1003
+ ];
1004
+ var UpdateInvestigationState$ = [9, n0, _UIS,
1005
+ { [_h]: ["POST", "/investigations/updateInvestigationState", 200] }, () => UpdateInvestigationStateRequest$, () => __Unit
1006
+ ];
1007
+ var UpdateOrganizationConfiguration$ = [9, n0, _UOC,
1008
+ { [_h]: ["POST", "/orgs/updateOrganizationConfiguration", 200] }, () => UpdateOrganizationConfigurationRequest$, () => __Unit
1009
+ ];
1010
+
1011
+ const getRuntimeConfig$1 = (config) => {
1012
+ return {
1013
+ apiVersion: "2018-10-26",
1014
+ base64Decoder: config?.base64Decoder ?? fromBase64,
1015
+ base64Encoder: config?.base64Encoder ?? toBase64,
1016
+ disableHostPrefix: config?.disableHostPrefix ?? false,
1017
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
1018
+ extensions: config?.extensions ?? [],
1019
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDetectiveHttpAuthSchemeProvider,
1020
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
1021
+ {
1022
+ schemeId: "aws.auth#sigv4",
1023
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
1024
+ signer: new AwsSdkSigV4Signer(),
1025
+ },
1026
+ ],
1027
+ logger: config?.logger ?? new NoOpLogger(),
1028
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
1029
+ protocolSettings: config?.protocolSettings ?? {
1030
+ defaultNamespace: "com.amazonaws.detective",
1031
+ errorTypeRegistries,
1032
+ version: "2018-10-26",
1033
+ serviceTarget: "AmazonDetective",
1034
+ },
1035
+ serviceId: config?.serviceId ?? "Detective",
1036
+ urlParser: config?.urlParser ?? parseUrl,
1037
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
1038
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
1039
+ };
1040
+ };
1041
+
1042
+ const getRuntimeConfig = (config) => {
1043
+ emitWarningIfUnsupportedVersion(process.version);
1044
+ const defaultsMode = resolveDefaultsModeConfig(config);
1045
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
1046
+ const clientSharedValues = getRuntimeConfig$1(config);
1047
+ emitWarningIfUnsupportedVersion$1(process.version);
1048
+ const loaderConfig = {
1049
+ profile: config?.profile,
1050
+ logger: clientSharedValues.logger,
1051
+ };
1052
+ return {
1053
+ ...clientSharedValues,
1054
+ ...config,
1055
+ runtime: "node",
1056
+ defaultsMode,
1057
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
1058
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1059
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1060
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1061
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1062
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1063
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1064
+ retryMode: config?.retryMode ??
1065
+ loadConfig({
1066
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
1067
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
1068
+ }, config),
1069
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
1070
+ streamCollector: config?.streamCollector ?? streamCollector,
1071
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1072
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
1073
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
1074
+ };
1075
+ };
1076
+
34
1077
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
1078
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
1079
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -584,51 +1627,169 @@ const SortOrder = {
584
1627
  DESC: "DESC",
585
1628
  };
586
1629
 
1630
+ exports.AcceptInvitation$ = AcceptInvitation$;
587
1631
  exports.AcceptInvitationCommand = AcceptInvitationCommand;
1632
+ exports.AcceptInvitationRequest$ = AcceptInvitationRequest$;
1633
+ exports.AccessDeniedException = AccessDeniedException;
1634
+ exports.AccessDeniedException$ = AccessDeniedException$;
1635
+ exports.Account$ = Account$;
1636
+ exports.Administrator$ = Administrator$;
1637
+ exports.BatchGetGraphMemberDatasources$ = BatchGetGraphMemberDatasources$;
588
1638
  exports.BatchGetGraphMemberDatasourcesCommand = BatchGetGraphMemberDatasourcesCommand;
1639
+ exports.BatchGetGraphMemberDatasourcesRequest$ = BatchGetGraphMemberDatasourcesRequest$;
1640
+ exports.BatchGetGraphMemberDatasourcesResponse$ = BatchGetGraphMemberDatasourcesResponse$;
1641
+ exports.BatchGetMembershipDatasources$ = BatchGetMembershipDatasources$;
589
1642
  exports.BatchGetMembershipDatasourcesCommand = BatchGetMembershipDatasourcesCommand;
1643
+ exports.BatchGetMembershipDatasourcesRequest$ = BatchGetMembershipDatasourcesRequest$;
1644
+ exports.BatchGetMembershipDatasourcesResponse$ = BatchGetMembershipDatasourcesResponse$;
1645
+ exports.ConflictException = ConflictException;
1646
+ exports.ConflictException$ = ConflictException$;
1647
+ exports.CreateGraph$ = CreateGraph$;
590
1648
  exports.CreateGraphCommand = CreateGraphCommand;
1649
+ exports.CreateGraphRequest$ = CreateGraphRequest$;
1650
+ exports.CreateGraphResponse$ = CreateGraphResponse$;
1651
+ exports.CreateMembers$ = CreateMembers$;
591
1652
  exports.CreateMembersCommand = CreateMembersCommand;
1653
+ exports.CreateMembersRequest$ = CreateMembersRequest$;
1654
+ exports.CreateMembersResponse$ = CreateMembersResponse$;
592
1655
  exports.DatasourcePackage = DatasourcePackage;
1656
+ exports.DatasourcePackageIngestDetail$ = DatasourcePackageIngestDetail$;
593
1657
  exports.DatasourcePackageIngestState = DatasourcePackageIngestState;
1658
+ exports.DatasourcePackageUsageInfo$ = DatasourcePackageUsageInfo$;
1659
+ exports.DateFilter$ = DateFilter$;
1660
+ exports.DeleteGraph$ = DeleteGraph$;
594
1661
  exports.DeleteGraphCommand = DeleteGraphCommand;
1662
+ exports.DeleteGraphRequest$ = DeleteGraphRequest$;
1663
+ exports.DeleteMembers$ = DeleteMembers$;
595
1664
  exports.DeleteMembersCommand = DeleteMembersCommand;
1665
+ exports.DeleteMembersRequest$ = DeleteMembersRequest$;
1666
+ exports.DeleteMembersResponse$ = DeleteMembersResponse$;
1667
+ exports.DescribeOrganizationConfiguration$ = DescribeOrganizationConfiguration$;
596
1668
  exports.DescribeOrganizationConfigurationCommand = DescribeOrganizationConfigurationCommand;
1669
+ exports.DescribeOrganizationConfigurationRequest$ = DescribeOrganizationConfigurationRequest$;
1670
+ exports.DescribeOrganizationConfigurationResponse$ = DescribeOrganizationConfigurationResponse$;
597
1671
  exports.Detective = Detective;
598
1672
  exports.DetectiveClient = DetectiveClient;
1673
+ exports.DetectiveServiceException = DetectiveServiceException;
1674
+ exports.DetectiveServiceException$ = DetectiveServiceException$;
1675
+ exports.DisableOrganizationAdminAccount$ = DisableOrganizationAdminAccount$;
599
1676
  exports.DisableOrganizationAdminAccountCommand = DisableOrganizationAdminAccountCommand;
1677
+ exports.DisassociateMembership$ = DisassociateMembership$;
600
1678
  exports.DisassociateMembershipCommand = DisassociateMembershipCommand;
1679
+ exports.DisassociateMembershipRequest$ = DisassociateMembershipRequest$;
1680
+ exports.EnableOrganizationAdminAccount$ = EnableOrganizationAdminAccount$;
601
1681
  exports.EnableOrganizationAdminAccountCommand = EnableOrganizationAdminAccountCommand;
1682
+ exports.EnableOrganizationAdminAccountRequest$ = EnableOrganizationAdminAccountRequest$;
602
1683
  exports.EntityType = EntityType;
603
1684
  exports.ErrorCode = ErrorCode;
604
1685
  exports.Field = Field;
1686
+ exports.FilterCriteria$ = FilterCriteria$;
1687
+ exports.FlaggedIpAddressDetail$ = FlaggedIpAddressDetail$;
1688
+ exports.GetInvestigation$ = GetInvestigation$;
605
1689
  exports.GetInvestigationCommand = GetInvestigationCommand;
1690
+ exports.GetInvestigationRequest$ = GetInvestigationRequest$;
1691
+ exports.GetInvestigationResponse$ = GetInvestigationResponse$;
1692
+ exports.GetMembers$ = GetMembers$;
606
1693
  exports.GetMembersCommand = GetMembersCommand;
1694
+ exports.GetMembersRequest$ = GetMembersRequest$;
1695
+ exports.GetMembersResponse$ = GetMembersResponse$;
1696
+ exports.Graph$ = Graph$;
1697
+ exports.ImpossibleTravelDetail$ = ImpossibleTravelDetail$;
1698
+ exports.Indicator$ = Indicator$;
1699
+ exports.IndicatorDetail$ = IndicatorDetail$;
607
1700
  exports.IndicatorType = IndicatorType;
1701
+ exports.InternalServerException = InternalServerException;
1702
+ exports.InternalServerException$ = InternalServerException$;
1703
+ exports.InvestigationDetail$ = InvestigationDetail$;
608
1704
  exports.InvitationType = InvitationType;
1705
+ exports.ListDatasourcePackages$ = ListDatasourcePackages$;
609
1706
  exports.ListDatasourcePackagesCommand = ListDatasourcePackagesCommand;
1707
+ exports.ListDatasourcePackagesRequest$ = ListDatasourcePackagesRequest$;
1708
+ exports.ListDatasourcePackagesResponse$ = ListDatasourcePackagesResponse$;
1709
+ exports.ListGraphs$ = ListGraphs$;
610
1710
  exports.ListGraphsCommand = ListGraphsCommand;
1711
+ exports.ListGraphsRequest$ = ListGraphsRequest$;
1712
+ exports.ListGraphsResponse$ = ListGraphsResponse$;
1713
+ exports.ListIndicators$ = ListIndicators$;
611
1714
  exports.ListIndicatorsCommand = ListIndicatorsCommand;
1715
+ exports.ListIndicatorsRequest$ = ListIndicatorsRequest$;
1716
+ exports.ListIndicatorsResponse$ = ListIndicatorsResponse$;
1717
+ exports.ListInvestigations$ = ListInvestigations$;
612
1718
  exports.ListInvestigationsCommand = ListInvestigationsCommand;
1719
+ exports.ListInvestigationsRequest$ = ListInvestigationsRequest$;
1720
+ exports.ListInvestigationsResponse$ = ListInvestigationsResponse$;
1721
+ exports.ListInvitations$ = ListInvitations$;
613
1722
  exports.ListInvitationsCommand = ListInvitationsCommand;
1723
+ exports.ListInvitationsRequest$ = ListInvitationsRequest$;
1724
+ exports.ListInvitationsResponse$ = ListInvitationsResponse$;
1725
+ exports.ListMembers$ = ListMembers$;
614
1726
  exports.ListMembersCommand = ListMembersCommand;
1727
+ exports.ListMembersRequest$ = ListMembersRequest$;
1728
+ exports.ListMembersResponse$ = ListMembersResponse$;
1729
+ exports.ListOrganizationAdminAccounts$ = ListOrganizationAdminAccounts$;
615
1730
  exports.ListOrganizationAdminAccountsCommand = ListOrganizationAdminAccountsCommand;
1731
+ exports.ListOrganizationAdminAccountsRequest$ = ListOrganizationAdminAccountsRequest$;
1732
+ exports.ListOrganizationAdminAccountsResponse$ = ListOrganizationAdminAccountsResponse$;
1733
+ exports.ListTagsForResource$ = ListTagsForResource$;
616
1734
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1735
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1736
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1737
+ exports.MemberDetail$ = MemberDetail$;
617
1738
  exports.MemberDisabledReason = MemberDisabledReason;
618
1739
  exports.MemberStatus = MemberStatus;
1740
+ exports.MembershipDatasources$ = MembershipDatasources$;
1741
+ exports.NewAsoDetail$ = NewAsoDetail$;
1742
+ exports.NewGeolocationDetail$ = NewGeolocationDetail$;
1743
+ exports.NewUserAgentDetail$ = NewUserAgentDetail$;
619
1744
  exports.Reason = Reason;
1745
+ exports.RejectInvitation$ = RejectInvitation$;
620
1746
  exports.RejectInvitationCommand = RejectInvitationCommand;
1747
+ exports.RejectInvitationRequest$ = RejectInvitationRequest$;
1748
+ exports.RelatedFindingDetail$ = RelatedFindingDetail$;
1749
+ exports.RelatedFindingGroupDetail$ = RelatedFindingGroupDetail$;
1750
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1751
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1752
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1753
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
621
1754
  exports.Severity = Severity;
1755
+ exports.SortCriteria$ = SortCriteria$;
622
1756
  exports.SortOrder = SortOrder;
1757
+ exports.StartInvestigation$ = StartInvestigation$;
623
1758
  exports.StartInvestigationCommand = StartInvestigationCommand;
1759
+ exports.StartInvestigationRequest$ = StartInvestigationRequest$;
1760
+ exports.StartInvestigationResponse$ = StartInvestigationResponse$;
1761
+ exports.StartMonitoringMember$ = StartMonitoringMember$;
624
1762
  exports.StartMonitoringMemberCommand = StartMonitoringMemberCommand;
1763
+ exports.StartMonitoringMemberRequest$ = StartMonitoringMemberRequest$;
625
1764
  exports.State = State;
626
1765
  exports.Status = Status;
1766
+ exports.StringFilter$ = StringFilter$;
1767
+ exports.TTPsObservedDetail$ = TTPsObservedDetail$;
1768
+ exports.TagResource$ = TagResource$;
627
1769
  exports.TagResourceCommand = TagResourceCommand;
1770
+ exports.TagResourceRequest$ = TagResourceRequest$;
1771
+ exports.TagResourceResponse$ = TagResourceResponse$;
1772
+ exports.TimestampForCollection$ = TimestampForCollection$;
1773
+ exports.TooManyRequestsException = TooManyRequestsException;
1774
+ exports.TooManyRequestsException$ = TooManyRequestsException$;
1775
+ exports.UnprocessedAccount$ = UnprocessedAccount$;
1776
+ exports.UnprocessedGraph$ = UnprocessedGraph$;
1777
+ exports.UntagResource$ = UntagResource$;
628
1778
  exports.UntagResourceCommand = UntagResourceCommand;
1779
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1780
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1781
+ exports.UpdateDatasourcePackages$ = UpdateDatasourcePackages$;
629
1782
  exports.UpdateDatasourcePackagesCommand = UpdateDatasourcePackagesCommand;
1783
+ exports.UpdateDatasourcePackagesRequest$ = UpdateDatasourcePackagesRequest$;
1784
+ exports.UpdateInvestigationState$ = UpdateInvestigationState$;
630
1785
  exports.UpdateInvestigationStateCommand = UpdateInvestigationStateCommand;
1786
+ exports.UpdateInvestigationStateRequest$ = UpdateInvestigationStateRequest$;
1787
+ exports.UpdateOrganizationConfiguration$ = UpdateOrganizationConfiguration$;
631
1788
  exports.UpdateOrganizationConfigurationCommand = UpdateOrganizationConfigurationCommand;
1789
+ exports.UpdateOrganizationConfigurationRequest$ = UpdateOrganizationConfigurationRequest$;
1790
+ exports.ValidationException = ValidationException;
1791
+ exports.ValidationException$ = ValidationException$;
1792
+ exports.errorTypeRegistries = errorTypeRegistries;
632
1793
  exports.paginateListDatasourcePackages = paginateListDatasourcePackages;
633
1794
  exports.paginateListGraphs = paginateListGraphs;
634
1795
  exports.paginateListInvitations = paginateListInvitations;