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