@aws-sdk/client-detective 3.899.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist-cjs/index.js +1981 -2201
  2. package/package.json +37 -37
package/dist-cjs/index.js CHANGED
@@ -1,2247 +1,2027 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AcceptInvitationCommand: () => AcceptInvitationCommand,
25
- AccessDeniedException: () => AccessDeniedException,
26
- AccountFilterSensitiveLog: () => AccountFilterSensitiveLog,
27
- BatchGetGraphMemberDatasourcesCommand: () => BatchGetGraphMemberDatasourcesCommand,
28
- BatchGetMembershipDatasourcesCommand: () => BatchGetMembershipDatasourcesCommand,
29
- ConflictException: () => ConflictException,
30
- CreateGraphCommand: () => CreateGraphCommand,
31
- CreateMembersCommand: () => CreateMembersCommand,
32
- CreateMembersRequestFilterSensitiveLog: () => CreateMembersRequestFilterSensitiveLog,
33
- CreateMembersResponseFilterSensitiveLog: () => CreateMembersResponseFilterSensitiveLog,
34
- DatasourcePackage: () => DatasourcePackage,
35
- DatasourcePackageIngestState: () => DatasourcePackageIngestState,
36
- DeleteGraphCommand: () => DeleteGraphCommand,
37
- DeleteMembersCommand: () => DeleteMembersCommand,
38
- DescribeOrganizationConfigurationCommand: () => DescribeOrganizationConfigurationCommand,
39
- Detective: () => Detective,
40
- DetectiveClient: () => DetectiveClient,
41
- DetectiveServiceException: () => DetectiveServiceException,
42
- DisableOrganizationAdminAccountCommand: () => DisableOrganizationAdminAccountCommand,
43
- DisassociateMembershipCommand: () => DisassociateMembershipCommand,
44
- EnableOrganizationAdminAccountCommand: () => EnableOrganizationAdminAccountCommand,
45
- EntityType: () => EntityType,
46
- ErrorCode: () => ErrorCode,
47
- Field: () => Field,
48
- GetInvestigationCommand: () => GetInvestigationCommand,
49
- GetMembersCommand: () => GetMembersCommand,
50
- GetMembersResponseFilterSensitiveLog: () => GetMembersResponseFilterSensitiveLog,
51
- IndicatorType: () => IndicatorType,
52
- InternalServerException: () => InternalServerException,
53
- InvitationType: () => InvitationType,
54
- ListDatasourcePackagesCommand: () => ListDatasourcePackagesCommand,
55
- ListGraphsCommand: () => ListGraphsCommand,
56
- ListIndicatorsCommand: () => ListIndicatorsCommand,
57
- ListInvestigationsCommand: () => ListInvestigationsCommand,
58
- ListInvitationsCommand: () => ListInvitationsCommand,
59
- ListInvitationsResponseFilterSensitiveLog: () => ListInvitationsResponseFilterSensitiveLog,
60
- ListMembersCommand: () => ListMembersCommand,
61
- ListMembersResponseFilterSensitiveLog: () => ListMembersResponseFilterSensitiveLog,
62
- ListOrganizationAdminAccountsCommand: () => ListOrganizationAdminAccountsCommand,
63
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
64
- MemberDetailFilterSensitiveLog: () => MemberDetailFilterSensitiveLog,
65
- MemberDisabledReason: () => MemberDisabledReason,
66
- MemberStatus: () => MemberStatus,
67
- Reason: () => Reason,
68
- RejectInvitationCommand: () => RejectInvitationCommand,
69
- ResourceNotFoundException: () => ResourceNotFoundException,
70
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
71
- Severity: () => Severity,
72
- SortOrder: () => SortOrder,
73
- StartInvestigationCommand: () => StartInvestigationCommand,
74
- StartMonitoringMemberCommand: () => StartMonitoringMemberCommand,
75
- State: () => State,
76
- Status: () => Status,
77
- TagResourceCommand: () => TagResourceCommand,
78
- TooManyRequestsException: () => TooManyRequestsException,
79
- UntagResourceCommand: () => UntagResourceCommand,
80
- UpdateDatasourcePackagesCommand: () => UpdateDatasourcePackagesCommand,
81
- UpdateInvestigationStateCommand: () => UpdateInvestigationStateCommand,
82
- UpdateOrganizationConfigurationCommand: () => UpdateOrganizationConfigurationCommand,
83
- ValidationException: () => ValidationException,
84
- __Client: () => import_smithy_client.Client,
85
- paginateListDatasourcePackages: () => paginateListDatasourcePackages,
86
- paginateListGraphs: () => paginateListGraphs,
87
- paginateListInvitations: () => paginateListInvitations,
88
- paginateListMembers: () => paginateListMembers,
89
- paginateListOrganizationAdminAccounts: () => paginateListOrganizationAdminAccounts
90
- });
91
- module.exports = __toCommonJS(index_exports);
92
-
93
- // src/DetectiveClient.ts
94
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
95
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
96
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
97
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
98
- var import_config_resolver = require("@smithy/config-resolver");
99
- var import_core = require("@smithy/core");
100
- var import_middleware_content_length = require("@smithy/middleware-content-length");
101
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
102
- var import_middleware_retry = require("@smithy/middleware-retry");
103
-
104
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
105
-
106
- // src/endpoint/EndpointParameters.ts
107
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
108
- return Object.assign(options, {
109
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
110
- useFipsEndpoint: options.useFipsEndpoint ?? false,
111
- defaultSigningName: "detective"
112
- });
113
- }, "resolveClientEndpointParameters");
114
- var commonParams = {
115
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
116
- Endpoint: { type: "builtInParams", name: "endpoint" },
117
- Region: { type: "builtInParams", name: "region" },
118
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "detective",
25
+ });
26
+ };
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
119
32
  };
120
33
 
121
- // src/DetectiveClient.ts
122
- var import_runtimeConfig = require("././runtimeConfig");
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
123
72
 
124
- // src/runtimeExtensions.ts
125
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
126
- var import_protocol_http = require("@smithy/protocol-http");
127
- var import_smithy_client = require("@smithy/smithy-client");
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
128
78
 
129
- // src/auth/httpAuthExtensionConfiguration.ts
130
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
131
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
132
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
133
- let _credentials = runtimeConfig.credentials;
134
- return {
135
- setHttpAuthScheme(httpAuthScheme) {
136
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
137
- if (index === -1) {
138
- _httpAuthSchemes.push(httpAuthScheme);
139
- } else {
140
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
141
- }
142
- },
143
- httpAuthSchemes() {
144
- return _httpAuthSchemes;
145
- },
146
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
147
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
148
- },
149
- httpAuthSchemeProvider() {
150
- return _httpAuthSchemeProvider;
151
- },
152
- setCredentials(credentials) {
153
- _credentials = credentials;
154
- },
155
- credentials() {
156
- return _credentials;
79
+ class DetectiveClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultDetectiveHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ }
108
+ destroy() {
109
+ super.destroy();
157
110
  }
158
- };
159
- }, "getHttpAuthExtensionConfiguration");
160
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
161
- return {
162
- httpAuthSchemes: config.httpAuthSchemes(),
163
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
164
- credentials: config.credentials()
165
- };
166
- }, "resolveHttpAuthRuntimeConfig");
111
+ }
167
112
 
168
- // src/runtimeExtensions.ts
169
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
170
- const extensionConfiguration = Object.assign(
171
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
172
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
173
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
174
- getHttpAuthExtensionConfiguration(runtimeConfig)
175
- );
176
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
177
- return Object.assign(
178
- runtimeConfig,
179
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
180
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
181
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
182
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
183
- );
184
- }, "resolveRuntimeExtensions");
113
+ class DetectiveServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, DetectiveServiceException.prototype);
117
+ }
118
+ }
185
119
 
186
- // src/DetectiveClient.ts
187
- var DetectiveClient = class extends import_smithy_client.Client {
188
- static {
189
- __name(this, "DetectiveClient");
190
- }
191
- /**
192
- * The resolved configuration of DetectiveClient class. This is resolved and normalized from the {@link DetectiveClientConfig | constructor configuration interface}.
193
- */
194
- config;
195
- constructor(...[configuration]) {
196
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
197
- super(_config_0);
198
- this.initConfig = _config_0;
199
- const _config_1 = resolveClientEndpointParameters(_config_0);
200
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
201
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
202
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
203
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
204
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
205
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
206
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
207
- this.config = _config_8;
208
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
209
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
210
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
211
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
212
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
213
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
214
- this.middlewareStack.use(
215
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
216
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultDetectiveHttpAuthSchemeParametersProvider,
217
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
218
- "aws.auth#sigv4": config.credentials
219
- }), "identityProviderConfigProvider")
220
- })
221
- );
222
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
223
- }
224
- /**
225
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
226
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
227
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
228
- */
229
- destroy() {
230
- super.destroy();
231
- }
120
+ const ErrorCode = {
121
+ InternalError: "INTERNAL_ERROR",
122
+ InvalidGraphArn: "INVALID_GRAPH_ARN",
123
+ InvalidRequestBody: "INVALID_REQUEST_BODY",
232
124
  };
233
-
234
- // src/Detective.ts
235
-
236
-
237
- // src/commands/AcceptInvitationCommand.ts
238
-
239
- var import_middleware_serde = require("@smithy/middleware-serde");
240
-
241
-
242
- // src/protocols/Aws_restJson1.ts
243
- var import_core2 = require("@aws-sdk/core");
244
-
245
-
246
-
247
- // src/models/DetectiveServiceException.ts
248
-
249
- var DetectiveServiceException = class _DetectiveServiceException extends import_smithy_client.ServiceException {
250
- static {
251
- __name(this, "DetectiveServiceException");
252
- }
253
- /**
254
- * @internal
255
- */
256
- constructor(options) {
257
- super(options);
258
- Object.setPrototypeOf(this, _DetectiveServiceException.prototype);
259
- }
125
+ class AccessDeniedException extends DetectiveServiceException {
126
+ name = "AccessDeniedException";
127
+ $fault = "client";
128
+ Message;
129
+ ErrorCode;
130
+ ErrorCodeReason;
131
+ SubErrorCode;
132
+ SubErrorCodeReason;
133
+ constructor(opts) {
134
+ super({
135
+ name: "AccessDeniedException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
140
+ this.Message = opts.Message;
141
+ this.ErrorCode = opts.ErrorCode;
142
+ this.ErrorCodeReason = opts.ErrorCodeReason;
143
+ this.SubErrorCode = opts.SubErrorCode;
144
+ this.SubErrorCodeReason = opts.SubErrorCodeReason;
145
+ }
146
+ }
147
+ class ConflictException extends DetectiveServiceException {
148
+ name = "ConflictException";
149
+ $fault = "client";
150
+ Message;
151
+ constructor(opts) {
152
+ super({
153
+ name: "ConflictException",
154
+ $fault: "client",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, ConflictException.prototype);
158
+ this.Message = opts.Message;
159
+ }
160
+ }
161
+ class InternalServerException extends DetectiveServiceException {
162
+ name = "InternalServerException";
163
+ $fault = "server";
164
+ Message;
165
+ constructor(opts) {
166
+ super({
167
+ name: "InternalServerException",
168
+ $fault: "server",
169
+ ...opts,
170
+ });
171
+ Object.setPrototypeOf(this, InternalServerException.prototype);
172
+ this.Message = opts.Message;
173
+ }
174
+ }
175
+ class ResourceNotFoundException extends DetectiveServiceException {
176
+ name = "ResourceNotFoundException";
177
+ $fault = "client";
178
+ Message;
179
+ constructor(opts) {
180
+ super({
181
+ name: "ResourceNotFoundException",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
186
+ this.Message = opts.Message;
187
+ }
188
+ }
189
+ class ValidationException extends DetectiveServiceException {
190
+ name = "ValidationException";
191
+ $fault = "client";
192
+ Message;
193
+ ErrorCode;
194
+ ErrorCodeReason;
195
+ constructor(opts) {
196
+ super({
197
+ name: "ValidationException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, ValidationException.prototype);
202
+ this.Message = opts.Message;
203
+ this.ErrorCode = opts.ErrorCode;
204
+ this.ErrorCodeReason = opts.ErrorCodeReason;
205
+ }
206
+ }
207
+ const DatasourcePackage = {
208
+ ASFF_SECURITYHUB_FINDING: "ASFF_SECURITYHUB_FINDING",
209
+ DETECTIVE_CORE: "DETECTIVE_CORE",
210
+ EKS_AUDIT: "EKS_AUDIT",
260
211
  };
261
-
262
- // src/models/models_0.ts
263
-
264
- var ErrorCode = {
265
- InternalError: "INTERNAL_ERROR",
266
- InvalidGraphArn: "INVALID_GRAPH_ARN",
267
- InvalidRequestBody: "INVALID_REQUEST_BODY"
268
- };
269
- var AccessDeniedException = class _AccessDeniedException extends DetectiveServiceException {
270
- static {
271
- __name(this, "AccessDeniedException");
272
- }
273
- name = "AccessDeniedException";
274
- $fault = "client";
275
- Message;
276
- /**
277
- * <p>The SDK default error code associated with the access denied exception.</p>
278
- * @public
279
- */
280
- ErrorCode;
281
- /**
282
- * <p>The SDK default explanation of why access was denied.</p>
283
- * @public
284
- */
285
- ErrorCodeReason;
286
- /**
287
- * <p>The error code associated with the access denied exception.</p>
288
- * @public
289
- */
290
- SubErrorCode;
291
- /**
292
- * <p> An explanation of why access was denied.</p>
293
- * @public
294
- */
295
- SubErrorCodeReason;
296
- /**
297
- * @internal
298
- */
299
- constructor(opts) {
300
- super({
301
- name: "AccessDeniedException",
302
- $fault: "client",
303
- ...opts
304
- });
305
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
306
- this.Message = opts.Message;
307
- this.ErrorCode = opts.ErrorCode;
308
- this.ErrorCodeReason = opts.ErrorCodeReason;
309
- this.SubErrorCode = opts.SubErrorCode;
310
- this.SubErrorCodeReason = opts.SubErrorCodeReason;
311
- }
312
- };
313
- var ConflictException = class _ConflictException extends DetectiveServiceException {
314
- static {
315
- __name(this, "ConflictException");
316
- }
317
- name = "ConflictException";
318
- $fault = "client";
319
- Message;
320
- /**
321
- * @internal
322
- */
323
- constructor(opts) {
324
- super({
325
- name: "ConflictException",
326
- $fault: "client",
327
- ...opts
328
- });
329
- Object.setPrototypeOf(this, _ConflictException.prototype);
330
- this.Message = opts.Message;
331
- }
332
- };
333
- var InternalServerException = class _InternalServerException extends DetectiveServiceException {
334
- static {
335
- __name(this, "InternalServerException");
336
- }
337
- name = "InternalServerException";
338
- $fault = "server";
339
- Message;
340
- /**
341
- * @internal
342
- */
343
- constructor(opts) {
344
- super({
345
- name: "InternalServerException",
346
- $fault: "server",
347
- ...opts
348
- });
349
- Object.setPrototypeOf(this, _InternalServerException.prototype);
350
- this.Message = opts.Message;
351
- }
352
- };
353
- var ResourceNotFoundException = class _ResourceNotFoundException extends DetectiveServiceException {
354
- static {
355
- __name(this, "ResourceNotFoundException");
356
- }
357
- name = "ResourceNotFoundException";
358
- $fault = "client";
359
- Message;
360
- /**
361
- * @internal
362
- */
363
- constructor(opts) {
364
- super({
365
- name: "ResourceNotFoundException",
366
- $fault: "client",
367
- ...opts
368
- });
369
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
370
- this.Message = opts.Message;
371
- }
372
- };
373
- var ValidationException = class _ValidationException extends DetectiveServiceException {
374
- static {
375
- __name(this, "ValidationException");
376
- }
377
- name = "ValidationException";
378
- $fault = "client";
379
- Message;
380
- /**
381
- * <p>The error code associated with the validation failure.</p>
382
- * @public
383
- */
384
- ErrorCode;
385
- /**
386
- * <p> An explanation of why validation failed.</p>
387
- * @public
388
- */
389
- ErrorCodeReason;
390
- /**
391
- * @internal
392
- */
393
- constructor(opts) {
394
- super({
395
- name: "ValidationException",
396
- $fault: "client",
397
- ...opts
398
- });
399
- Object.setPrototypeOf(this, _ValidationException.prototype);
400
- this.Message = opts.Message;
401
- this.ErrorCode = opts.ErrorCode;
402
- this.ErrorCodeReason = opts.ErrorCodeReason;
403
- }
404
- };
405
- var DatasourcePackage = {
406
- ASFF_SECURITYHUB_FINDING: "ASFF_SECURITYHUB_FINDING",
407
- DETECTIVE_CORE: "DETECTIVE_CORE",
408
- EKS_AUDIT: "EKS_AUDIT"
409
- };
410
- var DatasourcePackageIngestState = {
411
- DISABLED: "DISABLED",
412
- STARTED: "STARTED",
413
- STOPPED: "STOPPED"
414
- };
415
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends DetectiveServiceException {
416
- static {
417
- __name(this, "ServiceQuotaExceededException");
418
- }
419
- name = "ServiceQuotaExceededException";
420
- $fault = "client";
421
- Message;
422
- /**
423
- * <p>The type of resource that has exceeded the service quota.</p>
424
- * @public
425
- */
426
- Resources;
427
- /**
428
- * @internal
429
- */
430
- constructor(opts) {
431
- super({
432
- name: "ServiceQuotaExceededException",
433
- $fault: "client",
434
- ...opts
435
- });
436
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
437
- this.Message = opts.Message;
438
- this.Resources = opts.Resources;
439
- }
440
- };
441
- var MemberDisabledReason = {
442
- VOLUME_TOO_HIGH: "VOLUME_TOO_HIGH",
443
- VOLUME_UNKNOWN: "VOLUME_UNKNOWN"
444
- };
445
- var InvitationType = {
446
- INVITATION: "INVITATION",
447
- ORGANIZATION: "ORGANIZATION"
448
- };
449
- var MemberStatus = {
450
- ACCEPTED_BUT_DISABLED: "ACCEPTED_BUT_DISABLED",
451
- ENABLED: "ENABLED",
452
- INVITED: "INVITED",
453
- VERIFICATION_FAILED: "VERIFICATION_FAILED",
454
- VERIFICATION_IN_PROGRESS: "VERIFICATION_IN_PROGRESS"
455
- };
456
- var TooManyRequestsException = class _TooManyRequestsException extends DetectiveServiceException {
457
- static {
458
- __name(this, "TooManyRequestsException");
459
- }
460
- name = "TooManyRequestsException";
461
- $fault = "client";
462
- Message;
463
- /**
464
- * @internal
465
- */
466
- constructor(opts) {
467
- super({
468
- name: "TooManyRequestsException",
469
- $fault: "client",
470
- ...opts
471
- });
472
- Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
473
- this.Message = opts.Message;
474
- }
475
- };
476
- var EntityType = {
477
- IAM_ROLE: "IAM_ROLE",
478
- IAM_USER: "IAM_USER"
479
- };
480
- var Severity = {
481
- CRITICAL: "CRITICAL",
482
- HIGH: "HIGH",
483
- INFORMATIONAL: "INFORMATIONAL",
484
- LOW: "LOW",
485
- MEDIUM: "MEDIUM"
486
- };
487
- var State = {
488
- ACTIVE: "ACTIVE",
489
- ARCHIVED: "ARCHIVED"
490
- };
491
- var Status = {
492
- FAILED: "FAILED",
493
- RUNNING: "RUNNING",
494
- SUCCESSFUL: "SUCCESSFUL"
495
- };
496
- var IndicatorType = {
497
- FLAGGED_IP_ADDRESS: "FLAGGED_IP_ADDRESS",
498
- IMPOSSIBLE_TRAVEL: "IMPOSSIBLE_TRAVEL",
499
- NEW_ASO: "NEW_ASO",
500
- NEW_GEOLOCATION: "NEW_GEOLOCATION",
501
- NEW_USER_AGENT: "NEW_USER_AGENT",
502
- RELATED_FINDING: "RELATED_FINDING",
503
- RELATED_FINDING_GROUP: "RELATED_FINDING_GROUP",
504
- TTP_OBSERVED: "TTP_OBSERVED"
505
- };
506
- var Reason = {
507
- AWS_THREAT_INTELLIGENCE: "AWS_THREAT_INTELLIGENCE"
508
- };
509
- var Field = {
510
- CREATED_TIME: "CREATED_TIME",
511
- SEVERITY: "SEVERITY",
512
- STATUS: "STATUS"
513
- };
514
- var SortOrder = {
515
- ASC: "ASC",
516
- DESC: "DESC"
517
- };
518
- var AccountFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
519
- ...obj,
520
- ...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING }
521
- }), "AccountFilterSensitiveLog");
522
- var CreateMembersRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
523
- ...obj,
524
- ...obj.Message && { Message: import_smithy_client.SENSITIVE_STRING },
525
- ...obj.Accounts && { Accounts: obj.Accounts.map((item) => AccountFilterSensitiveLog(item)) }
526
- }), "CreateMembersRequestFilterSensitiveLog");
527
- var MemberDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
528
- ...obj,
529
- ...obj.EmailAddress && { EmailAddress: import_smithy_client.SENSITIVE_STRING }
530
- }), "MemberDetailFilterSensitiveLog");
531
- var CreateMembersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
532
- ...obj,
533
- ...obj.Members && { Members: obj.Members.map((item) => MemberDetailFilterSensitiveLog(item)) }
534
- }), "CreateMembersResponseFilterSensitiveLog");
535
- var GetMembersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
536
- ...obj,
537
- ...obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }
538
- }), "GetMembersResponseFilterSensitiveLog");
539
- var ListInvitationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
540
- ...obj,
541
- ...obj.Invitations && { Invitations: obj.Invitations.map((item) => MemberDetailFilterSensitiveLog(item)) }
542
- }), "ListInvitationsResponseFilterSensitiveLog");
543
- var ListMembersResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
544
- ...obj,
545
- ...obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }
546
- }), "ListMembersResponseFilterSensitiveLog");
547
-
548
- // src/protocols/Aws_restJson1.ts
549
- var se_AcceptInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {
550
- const b = (0, import_core.requestBuilder)(input, context);
551
- const headers = {
552
- "content-type": "application/json"
553
- };
554
- b.bp("/invitation");
555
- let body;
556
- body = JSON.stringify(
557
- (0, import_smithy_client.take)(input, {
558
- GraphArn: []
559
- })
560
- );
561
- b.m("PUT").h(headers).b(body);
562
- return b.build();
563
- }, "se_AcceptInvitationCommand");
564
- var se_BatchGetGraphMemberDatasourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
565
- const b = (0, import_core.requestBuilder)(input, context);
566
- const headers = {
567
- "content-type": "application/json"
568
- };
569
- b.bp("/graph/datasources/get");
570
- let body;
571
- body = JSON.stringify(
572
- (0, import_smithy_client.take)(input, {
573
- AccountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AccountIds"),
574
- GraphArn: []
575
- })
576
- );
577
- b.m("POST").h(headers).b(body);
578
- return b.build();
579
- }, "se_BatchGetGraphMemberDatasourcesCommand");
580
- var se_BatchGetMembershipDatasourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
581
- const b = (0, import_core.requestBuilder)(input, context);
582
- const headers = {
583
- "content-type": "application/json"
584
- };
585
- b.bp("/membership/datasources/get");
586
- let body;
587
- body = JSON.stringify(
588
- (0, import_smithy_client.take)(input, {
589
- GraphArns: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "GraphArns")
590
- })
591
- );
592
- b.m("POST").h(headers).b(body);
593
- return b.build();
594
- }, "se_BatchGetMembershipDatasourcesCommand");
595
- var se_CreateGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
596
- const b = (0, import_core.requestBuilder)(input, context);
597
- const headers = {
598
- "content-type": "application/json"
599
- };
600
- b.bp("/graph");
601
- let body;
602
- body = JSON.stringify(
603
- (0, import_smithy_client.take)(input, {
604
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
605
- })
606
- );
607
- b.m("POST").h(headers).b(body);
608
- return b.build();
609
- }, "se_CreateGraphCommand");
610
- var se_CreateMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
611
- const b = (0, import_core.requestBuilder)(input, context);
612
- const headers = {
613
- "content-type": "application/json"
614
- };
615
- b.bp("/graph/members");
616
- let body;
617
- body = JSON.stringify(
618
- (0, import_smithy_client.take)(input, {
619
- Accounts: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Accounts"),
620
- DisableEmailNotification: [],
621
- GraphArn: [],
622
- Message: []
623
- })
624
- );
625
- b.m("POST").h(headers).b(body);
626
- return b.build();
627
- }, "se_CreateMembersCommand");
628
- var se_DeleteGraphCommand = /* @__PURE__ */ __name(async (input, context) => {
629
- const b = (0, import_core.requestBuilder)(input, context);
630
- const headers = {
631
- "content-type": "application/json"
632
- };
633
- b.bp("/graph/removal");
634
- let body;
635
- body = JSON.stringify(
636
- (0, import_smithy_client.take)(input, {
637
- GraphArn: []
638
- })
639
- );
640
- b.m("POST").h(headers).b(body);
641
- return b.build();
642
- }, "se_DeleteGraphCommand");
643
- var se_DeleteMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
644
- const b = (0, import_core.requestBuilder)(input, context);
645
- const headers = {
646
- "content-type": "application/json"
647
- };
648
- b.bp("/graph/members/removal");
649
- let body;
650
- body = JSON.stringify(
651
- (0, import_smithy_client.take)(input, {
652
- AccountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AccountIds"),
653
- GraphArn: []
654
- })
655
- );
656
- b.m("POST").h(headers).b(body);
657
- return b.build();
658
- }, "se_DeleteMembersCommand");
659
- var se_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
660
- const b = (0, import_core.requestBuilder)(input, context);
661
- const headers = {
662
- "content-type": "application/json"
663
- };
664
- b.bp("/orgs/describeOrganizationConfiguration");
665
- let body;
666
- body = JSON.stringify(
667
- (0, import_smithy_client.take)(input, {
668
- GraphArn: []
669
- })
670
- );
671
- b.m("POST").h(headers).b(body);
672
- return b.build();
673
- }, "se_DescribeOrganizationConfigurationCommand");
674
- var se_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
675
- const b = (0, import_core.requestBuilder)(input, context);
676
- const headers = {};
677
- b.bp("/orgs/disableAdminAccount");
678
- let body;
679
- b.m("POST").h(headers).b(body);
680
- return b.build();
681
- }, "se_DisableOrganizationAdminAccountCommand");
682
- var se_DisassociateMembershipCommand = /* @__PURE__ */ __name(async (input, context) => {
683
- const b = (0, import_core.requestBuilder)(input, context);
684
- const headers = {
685
- "content-type": "application/json"
686
- };
687
- b.bp("/membership/removal");
688
- let body;
689
- body = JSON.stringify(
690
- (0, import_smithy_client.take)(input, {
691
- GraphArn: []
692
- })
693
- );
694
- b.m("POST").h(headers).b(body);
695
- return b.build();
696
- }, "se_DisassociateMembershipCommand");
697
- var se_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
698
- const b = (0, import_core.requestBuilder)(input, context);
699
- const headers = {
700
- "content-type": "application/json"
701
- };
702
- b.bp("/orgs/enableAdminAccount");
703
- let body;
704
- body = JSON.stringify(
705
- (0, import_smithy_client.take)(input, {
706
- AccountId: []
707
- })
708
- );
709
- b.m("POST").h(headers).b(body);
710
- return b.build();
711
- }, "se_EnableOrganizationAdminAccountCommand");
712
- var se_GetInvestigationCommand = /* @__PURE__ */ __name(async (input, context) => {
713
- const b = (0, import_core.requestBuilder)(input, context);
714
- const headers = {
715
- "content-type": "application/json"
716
- };
717
- b.bp("/investigations/getInvestigation");
718
- let body;
719
- body = JSON.stringify(
720
- (0, import_smithy_client.take)(input, {
721
- GraphArn: [],
722
- InvestigationId: []
723
- })
724
- );
725
- b.m("POST").h(headers).b(body);
726
- return b.build();
727
- }, "se_GetInvestigationCommand");
728
- var se_GetMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
729
- const b = (0, import_core.requestBuilder)(input, context);
730
- const headers = {
731
- "content-type": "application/json"
732
- };
733
- b.bp("/graph/members/get");
734
- let body;
735
- body = JSON.stringify(
736
- (0, import_smithy_client.take)(input, {
737
- AccountIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AccountIds"),
738
- GraphArn: []
739
- })
740
- );
741
- b.m("POST").h(headers).b(body);
742
- return b.build();
743
- }, "se_GetMembersCommand");
744
- var se_ListDatasourcePackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
745
- const b = (0, import_core.requestBuilder)(input, context);
746
- const headers = {
747
- "content-type": "application/json"
748
- };
749
- b.bp("/graph/datasources/list");
750
- let body;
751
- body = JSON.stringify(
752
- (0, import_smithy_client.take)(input, {
753
- GraphArn: [],
754
- MaxResults: [],
755
- NextToken: []
756
- })
757
- );
758
- b.m("POST").h(headers).b(body);
759
- return b.build();
760
- }, "se_ListDatasourcePackagesCommand");
761
- var se_ListGraphsCommand = /* @__PURE__ */ __name(async (input, context) => {
762
- const b = (0, import_core.requestBuilder)(input, context);
763
- const headers = {
764
- "content-type": "application/json"
765
- };
766
- b.bp("/graphs/list");
767
- let body;
768
- body = JSON.stringify(
769
- (0, import_smithy_client.take)(input, {
770
- MaxResults: [],
771
- NextToken: []
772
- })
773
- );
774
- b.m("POST").h(headers).b(body);
775
- return b.build();
776
- }, "se_ListGraphsCommand");
777
- var se_ListIndicatorsCommand = /* @__PURE__ */ __name(async (input, context) => {
778
- const b = (0, import_core.requestBuilder)(input, context);
779
- const headers = {
780
- "content-type": "application/json"
781
- };
782
- b.bp("/investigations/listIndicators");
783
- let body;
784
- body = JSON.stringify(
785
- (0, import_smithy_client.take)(input, {
786
- GraphArn: [],
787
- IndicatorType: [],
788
- InvestigationId: [],
789
- MaxResults: [],
790
- NextToken: []
791
- })
792
- );
793
- b.m("POST").h(headers).b(body);
794
- return b.build();
795
- }, "se_ListIndicatorsCommand");
796
- var se_ListInvestigationsCommand = /* @__PURE__ */ __name(async (input, context) => {
797
- const b = (0, import_core.requestBuilder)(input, context);
798
- const headers = {
799
- "content-type": "application/json"
800
- };
801
- b.bp("/investigations/listInvestigations");
802
- let body;
803
- body = JSON.stringify(
804
- (0, import_smithy_client.take)(input, {
805
- FilterCriteria: /* @__PURE__ */ __name((_) => se_FilterCriteria(_, context), "FilterCriteria"),
806
- GraphArn: [],
807
- MaxResults: [],
808
- NextToken: [],
809
- SortCriteria: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "SortCriteria")
810
- })
811
- );
812
- b.m("POST").h(headers).b(body);
813
- return b.build();
814
- }, "se_ListInvestigationsCommand");
815
- var se_ListInvitationsCommand = /* @__PURE__ */ __name(async (input, context) => {
816
- const b = (0, import_core.requestBuilder)(input, context);
817
- const headers = {
818
- "content-type": "application/json"
819
- };
820
- b.bp("/invitations/list");
821
- let body;
822
- body = JSON.stringify(
823
- (0, import_smithy_client.take)(input, {
824
- MaxResults: [],
825
- NextToken: []
826
- })
827
- );
828
- b.m("POST").h(headers).b(body);
829
- return b.build();
830
- }, "se_ListInvitationsCommand");
831
- var se_ListMembersCommand = /* @__PURE__ */ __name(async (input, context) => {
832
- const b = (0, import_core.requestBuilder)(input, context);
833
- const headers = {
834
- "content-type": "application/json"
835
- };
836
- b.bp("/graph/members/list");
837
- let body;
838
- body = JSON.stringify(
839
- (0, import_smithy_client.take)(input, {
840
- GraphArn: [],
841
- MaxResults: [],
842
- NextToken: []
843
- })
844
- );
845
- b.m("POST").h(headers).b(body);
846
- return b.build();
847
- }, "se_ListMembersCommand");
848
- var se_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
849
- const b = (0, import_core.requestBuilder)(input, context);
850
- const headers = {
851
- "content-type": "application/json"
852
- };
853
- b.bp("/orgs/adminAccountslist");
854
- let body;
855
- body = JSON.stringify(
856
- (0, import_smithy_client.take)(input, {
857
- MaxResults: [],
858
- NextToken: []
859
- })
860
- );
861
- b.m("POST").h(headers).b(body);
862
- return b.build();
863
- }, "se_ListOrganizationAdminAccountsCommand");
864
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
865
- const b = (0, import_core.requestBuilder)(input, context);
866
- const headers = {};
867
- b.bp("/tags/{ResourceArn}");
868
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
869
- let body;
870
- b.m("GET").h(headers).b(body);
871
- return b.build();
872
- }, "se_ListTagsForResourceCommand");
873
- var se_RejectInvitationCommand = /* @__PURE__ */ __name(async (input, context) => {
874
- const b = (0, import_core.requestBuilder)(input, context);
875
- const headers = {
876
- "content-type": "application/json"
877
- };
878
- b.bp("/invitation/removal");
879
- let body;
880
- body = JSON.stringify(
881
- (0, import_smithy_client.take)(input, {
882
- GraphArn: []
883
- })
884
- );
885
- b.m("POST").h(headers).b(body);
886
- return b.build();
887
- }, "se_RejectInvitationCommand");
888
- var se_StartInvestigationCommand = /* @__PURE__ */ __name(async (input, context) => {
889
- const b = (0, import_core.requestBuilder)(input, context);
890
- const headers = {
891
- "content-type": "application/json"
892
- };
893
- b.bp("/investigations/startInvestigation");
894
- let body;
895
- body = JSON.stringify(
896
- (0, import_smithy_client.take)(input, {
897
- EntityArn: [],
898
- GraphArn: [],
899
- ScopeEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "ScopeEndTime"),
900
- ScopeStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "ScopeStartTime")
901
- })
902
- );
903
- b.m("POST").h(headers).b(body);
904
- return b.build();
905
- }, "se_StartInvestigationCommand");
906
- var se_StartMonitoringMemberCommand = /* @__PURE__ */ __name(async (input, context) => {
907
- const b = (0, import_core.requestBuilder)(input, context);
908
- const headers = {
909
- "content-type": "application/json"
910
- };
911
- b.bp("/graph/member/monitoringstate");
912
- let body;
913
- body = JSON.stringify(
914
- (0, import_smithy_client.take)(input, {
915
- AccountId: [],
916
- GraphArn: []
917
- })
918
- );
919
- b.m("POST").h(headers).b(body);
920
- return b.build();
921
- }, "se_StartMonitoringMemberCommand");
922
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
923
- const b = (0, import_core.requestBuilder)(input, context);
924
- const headers = {
925
- "content-type": "application/json"
926
- };
927
- b.bp("/tags/{ResourceArn}");
928
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
929
- let body;
930
- body = JSON.stringify(
931
- (0, import_smithy_client.take)(input, {
932
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
933
- })
934
- );
935
- b.m("POST").h(headers).b(body);
936
- return b.build();
937
- }, "se_TagResourceCommand");
938
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
939
- const b = (0, import_core.requestBuilder)(input, context);
940
- const headers = {};
941
- b.bp("/tags/{ResourceArn}");
942
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
943
- const query = (0, import_smithy_client.map)({
944
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
945
- });
946
- let body;
947
- b.m("DELETE").h(headers).q(query).b(body);
948
- return b.build();
949
- }, "se_UntagResourceCommand");
950
- var se_UpdateDatasourcePackagesCommand = /* @__PURE__ */ __name(async (input, context) => {
951
- const b = (0, import_core.requestBuilder)(input, context);
952
- const headers = {
953
- "content-type": "application/json"
954
- };
955
- b.bp("/graph/datasources/update");
956
- let body;
957
- body = JSON.stringify(
958
- (0, import_smithy_client.take)(input, {
959
- DatasourcePackages: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DatasourcePackages"),
960
- GraphArn: []
961
- })
962
- );
963
- b.m("POST").h(headers).b(body);
964
- return b.build();
965
- }, "se_UpdateDatasourcePackagesCommand");
966
- var se_UpdateInvestigationStateCommand = /* @__PURE__ */ __name(async (input, context) => {
967
- const b = (0, import_core.requestBuilder)(input, context);
968
- const headers = {
969
- "content-type": "application/json"
970
- };
971
- b.bp("/investigations/updateInvestigationState");
972
- let body;
973
- body = JSON.stringify(
974
- (0, import_smithy_client.take)(input, {
975
- GraphArn: [],
976
- InvestigationId: [],
977
- State: []
978
- })
979
- );
980
- b.m("POST").h(headers).b(body);
981
- return b.build();
982
- }, "se_UpdateInvestigationStateCommand");
983
- var se_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
984
- const b = (0, import_core.requestBuilder)(input, context);
985
- const headers = {
986
- "content-type": "application/json"
987
- };
988
- b.bp("/orgs/updateOrganizationConfiguration");
989
- let body;
990
- body = JSON.stringify(
991
- (0, import_smithy_client.take)(input, {
992
- AutoEnable: [],
993
- GraphArn: []
994
- })
995
- );
996
- b.m("POST").h(headers).b(body);
997
- return b.build();
998
- }, "se_UpdateOrganizationConfigurationCommand");
999
- var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
1000
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1001
- return de_CommandError(output, context);
1002
- }
1003
- const contents = (0, import_smithy_client.map)({
1004
- $metadata: deserializeMetadata(output)
1005
- });
1006
- await (0, import_smithy_client.collectBody)(output.body, context);
1007
- return contents;
1008
- }, "de_AcceptInvitationCommand");
1009
- var de_BatchGetGraphMemberDatasourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1010
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1011
- return de_CommandError(output, context);
1012
- }
1013
- const contents = (0, import_smithy_client.map)({
1014
- $metadata: deserializeMetadata(output)
1015
- });
1016
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1017
- const doc = (0, import_smithy_client.take)(data, {
1018
- MemberDatasources: /* @__PURE__ */ __name((_) => de_MembershipDatasourcesList(_, context), "MemberDatasources"),
1019
- UnprocessedAccounts: import_smithy_client._json
1020
- });
1021
- Object.assign(contents, doc);
1022
- return contents;
1023
- }, "de_BatchGetGraphMemberDatasourcesCommand");
1024
- var de_BatchGetMembershipDatasourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1026
- return de_CommandError(output, context);
1027
- }
1028
- const contents = (0, import_smithy_client.map)({
1029
- $metadata: deserializeMetadata(output)
1030
- });
1031
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1032
- const doc = (0, import_smithy_client.take)(data, {
1033
- MembershipDatasources: /* @__PURE__ */ __name((_) => de_MembershipDatasourcesList(_, context), "MembershipDatasources"),
1034
- UnprocessedGraphs: import_smithy_client._json
1035
- });
1036
- Object.assign(contents, doc);
1037
- return contents;
1038
- }, "de_BatchGetMembershipDatasourcesCommand");
1039
- var de_CreateGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1040
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1041
- return de_CommandError(output, context);
1042
- }
1043
- const contents = (0, import_smithy_client.map)({
1044
- $metadata: deserializeMetadata(output)
1045
- });
1046
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1047
- const doc = (0, import_smithy_client.take)(data, {
1048
- GraphArn: import_smithy_client.expectString
1049
- });
1050
- Object.assign(contents, doc);
1051
- return contents;
1052
- }, "de_CreateGraphCommand");
1053
- var de_CreateMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1054
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
- return de_CommandError(output, context);
1056
- }
1057
- const contents = (0, import_smithy_client.map)({
1058
- $metadata: deserializeMetadata(output)
1059
- });
1060
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1061
- const doc = (0, import_smithy_client.take)(data, {
1062
- Members: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "Members"),
1063
- UnprocessedAccounts: import_smithy_client._json
1064
- });
1065
- Object.assign(contents, doc);
1066
- return contents;
1067
- }, "de_CreateMembersCommand");
1068
- var de_DeleteGraphCommand = /* @__PURE__ */ __name(async (output, context) => {
1069
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1070
- return de_CommandError(output, context);
1071
- }
1072
- const contents = (0, import_smithy_client.map)({
1073
- $metadata: deserializeMetadata(output)
1074
- });
1075
- await (0, import_smithy_client.collectBody)(output.body, context);
1076
- return contents;
1077
- }, "de_DeleteGraphCommand");
1078
- var de_DeleteMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1079
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1080
- return de_CommandError(output, context);
1081
- }
1082
- const contents = (0, import_smithy_client.map)({
1083
- $metadata: deserializeMetadata(output)
1084
- });
1085
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1086
- const doc = (0, import_smithy_client.take)(data, {
1087
- AccountIds: import_smithy_client._json,
1088
- UnprocessedAccounts: import_smithy_client._json
1089
- });
1090
- Object.assign(contents, doc);
1091
- return contents;
1092
- }, "de_DeleteMembersCommand");
1093
- var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1094
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
- return de_CommandError(output, context);
1096
- }
1097
- const contents = (0, import_smithy_client.map)({
1098
- $metadata: deserializeMetadata(output)
1099
- });
1100
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1101
- const doc = (0, import_smithy_client.take)(data, {
1102
- AutoEnable: import_smithy_client.expectBoolean
1103
- });
1104
- Object.assign(contents, doc);
1105
- return contents;
1106
- }, "de_DescribeOrganizationConfigurationCommand");
1107
- var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1108
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1109
- return de_CommandError(output, context);
1110
- }
1111
- const contents = (0, import_smithy_client.map)({
1112
- $metadata: deserializeMetadata(output)
1113
- });
1114
- await (0, import_smithy_client.collectBody)(output.body, context);
1115
- return contents;
1116
- }, "de_DisableOrganizationAdminAccountCommand");
1117
- var de_DisassociateMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
1118
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1119
- return de_CommandError(output, context);
1120
- }
1121
- const contents = (0, import_smithy_client.map)({
1122
- $metadata: deserializeMetadata(output)
1123
- });
1124
- await (0, import_smithy_client.collectBody)(output.body, context);
1125
- return contents;
1126
- }, "de_DisassociateMembershipCommand");
1127
- var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
1128
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1129
- return de_CommandError(output, context);
1130
- }
1131
- const contents = (0, import_smithy_client.map)({
1132
- $metadata: deserializeMetadata(output)
1133
- });
1134
- await (0, import_smithy_client.collectBody)(output.body, context);
1135
- return contents;
1136
- }, "de_EnableOrganizationAdminAccountCommand");
1137
- var de_GetInvestigationCommand = /* @__PURE__ */ __name(async (output, context) => {
1138
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1139
- return de_CommandError(output, context);
1140
- }
1141
- const contents = (0, import_smithy_client.map)({
1142
- $metadata: deserializeMetadata(output)
1143
- });
1144
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1145
- const doc = (0, import_smithy_client.take)(data, {
1146
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedTime"),
1147
- EntityArn: import_smithy_client.expectString,
1148
- EntityType: import_smithy_client.expectString,
1149
- GraphArn: import_smithy_client.expectString,
1150
- InvestigationId: import_smithy_client.expectString,
1151
- ScopeEndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ScopeEndTime"),
1152
- ScopeStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "ScopeStartTime"),
1153
- Severity: import_smithy_client.expectString,
1154
- State: import_smithy_client.expectString,
1155
- Status: import_smithy_client.expectString
1156
- });
1157
- Object.assign(contents, doc);
1158
- return contents;
1159
- }, "de_GetInvestigationCommand");
1160
- var de_GetMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1161
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1162
- return de_CommandError(output, context);
1163
- }
1164
- const contents = (0, import_smithy_client.map)({
1165
- $metadata: deserializeMetadata(output)
1166
- });
1167
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1168
- const doc = (0, import_smithy_client.take)(data, {
1169
- MemberDetails: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "MemberDetails"),
1170
- UnprocessedAccounts: import_smithy_client._json
1171
- });
1172
- Object.assign(contents, doc);
1173
- return contents;
1174
- }, "de_GetMembersCommand");
1175
- var de_ListDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1176
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1177
- return de_CommandError(output, context);
1178
- }
1179
- const contents = (0, import_smithy_client.map)({
1180
- $metadata: deserializeMetadata(output)
1181
- });
1182
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1183
- const doc = (0, import_smithy_client.take)(data, {
1184
- DatasourcePackages: /* @__PURE__ */ __name((_) => de_DatasourcePackageIngestDetails(_, context), "DatasourcePackages"),
1185
- NextToken: import_smithy_client.expectString
1186
- });
1187
- Object.assign(contents, doc);
1188
- return contents;
1189
- }, "de_ListDatasourcePackagesCommand");
1190
- var de_ListGraphsCommand = /* @__PURE__ */ __name(async (output, context) => {
1191
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1192
- return de_CommandError(output, context);
1193
- }
1194
- const contents = (0, import_smithy_client.map)({
1195
- $metadata: deserializeMetadata(output)
1196
- });
1197
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1198
- const doc = (0, import_smithy_client.take)(data, {
1199
- GraphList: /* @__PURE__ */ __name((_) => de_GraphList(_, context), "GraphList"),
1200
- NextToken: import_smithy_client.expectString
1201
- });
1202
- Object.assign(contents, doc);
1203
- return contents;
1204
- }, "de_ListGraphsCommand");
1205
- var de_ListIndicatorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1206
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1207
- return de_CommandError(output, context);
1208
- }
1209
- const contents = (0, import_smithy_client.map)({
1210
- $metadata: deserializeMetadata(output)
1211
- });
1212
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1213
- const doc = (0, import_smithy_client.take)(data, {
1214
- GraphArn: import_smithy_client.expectString,
1215
- Indicators: import_smithy_client._json,
1216
- InvestigationId: import_smithy_client.expectString,
1217
- NextToken: import_smithy_client.expectString
1218
- });
1219
- Object.assign(contents, doc);
1220
- return contents;
1221
- }, "de_ListIndicatorsCommand");
1222
- var de_ListInvestigationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1223
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1224
- return de_CommandError(output, context);
1225
- }
1226
- const contents = (0, import_smithy_client.map)({
1227
- $metadata: deserializeMetadata(output)
1228
- });
1229
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1230
- const doc = (0, import_smithy_client.take)(data, {
1231
- InvestigationDetails: /* @__PURE__ */ __name((_) => de_InvestigationDetails(_, context), "InvestigationDetails"),
1232
- NextToken: import_smithy_client.expectString
1233
- });
1234
- Object.assign(contents, doc);
1235
- return contents;
1236
- }, "de_ListInvestigationsCommand");
1237
- var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1238
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1239
- return de_CommandError(output, context);
1240
- }
1241
- const contents = (0, import_smithy_client.map)({
1242
- $metadata: deserializeMetadata(output)
1243
- });
1244
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1245
- const doc = (0, import_smithy_client.take)(data, {
1246
- Invitations: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "Invitations"),
1247
- NextToken: import_smithy_client.expectString
1248
- });
1249
- Object.assign(contents, doc);
1250
- return contents;
1251
- }, "de_ListInvitationsCommand");
1252
- var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
1253
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1254
- return de_CommandError(output, context);
1255
- }
1256
- const contents = (0, import_smithy_client.map)({
1257
- $metadata: deserializeMetadata(output)
1258
- });
1259
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1260
- const doc = (0, import_smithy_client.take)(data, {
1261
- MemberDetails: /* @__PURE__ */ __name((_) => de_MemberDetailList(_, context), "MemberDetails"),
1262
- NextToken: import_smithy_client.expectString
1263
- });
1264
- Object.assign(contents, doc);
1265
- return contents;
1266
- }, "de_ListMembersCommand");
1267
- var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1268
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1269
- return de_CommandError(output, context);
1270
- }
1271
- const contents = (0, import_smithy_client.map)({
1272
- $metadata: deserializeMetadata(output)
1273
- });
1274
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1275
- const doc = (0, import_smithy_client.take)(data, {
1276
- Administrators: /* @__PURE__ */ __name((_) => de_AdministratorList(_, context), "Administrators"),
1277
- NextToken: import_smithy_client.expectString
1278
- });
1279
- Object.assign(contents, doc);
1280
- return contents;
1281
- }, "de_ListOrganizationAdminAccountsCommand");
1282
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1283
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1284
- return de_CommandError(output, context);
1285
- }
1286
- const contents = (0, import_smithy_client.map)({
1287
- $metadata: deserializeMetadata(output)
1288
- });
1289
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1290
- const doc = (0, import_smithy_client.take)(data, {
1291
- Tags: import_smithy_client._json
1292
- });
1293
- Object.assign(contents, doc);
1294
- return contents;
1295
- }, "de_ListTagsForResourceCommand");
1296
- var de_RejectInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
1297
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1298
- return de_CommandError(output, context);
1299
- }
1300
- const contents = (0, import_smithy_client.map)({
1301
- $metadata: deserializeMetadata(output)
1302
- });
1303
- await (0, import_smithy_client.collectBody)(output.body, context);
1304
- return contents;
1305
- }, "de_RejectInvitationCommand");
1306
- var de_StartInvestigationCommand = /* @__PURE__ */ __name(async (output, context) => {
1307
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1308
- return de_CommandError(output, context);
1309
- }
1310
- const contents = (0, import_smithy_client.map)({
1311
- $metadata: deserializeMetadata(output)
1312
- });
1313
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1314
- const doc = (0, import_smithy_client.take)(data, {
1315
- InvestigationId: import_smithy_client.expectString
1316
- });
1317
- Object.assign(contents, doc);
1318
- return contents;
1319
- }, "de_StartInvestigationCommand");
1320
- var de_StartMonitoringMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
1321
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1322
- return de_CommandError(output, context);
1323
- }
1324
- const contents = (0, import_smithy_client.map)({
1325
- $metadata: deserializeMetadata(output)
1326
- });
1327
- await (0, import_smithy_client.collectBody)(output.body, context);
1328
- return contents;
1329
- }, "de_StartMonitoringMemberCommand");
1330
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1331
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1332
- return de_CommandError(output, context);
1333
- }
1334
- const contents = (0, import_smithy_client.map)({
1335
- $metadata: deserializeMetadata(output)
1336
- });
1337
- await (0, import_smithy_client.collectBody)(output.body, context);
1338
- return contents;
1339
- }, "de_TagResourceCommand");
1340
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1341
- if (output.statusCode !== 204 && output.statusCode >= 300) {
1342
- return de_CommandError(output, context);
1343
- }
1344
- const contents = (0, import_smithy_client.map)({
1345
- $metadata: deserializeMetadata(output)
1346
- });
1347
- await (0, import_smithy_client.collectBody)(output.body, context);
1348
- return contents;
1349
- }, "de_UntagResourceCommand");
1350
- var de_UpdateDatasourcePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
1351
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1352
- return de_CommandError(output, context);
1353
- }
1354
- const contents = (0, import_smithy_client.map)({
1355
- $metadata: deserializeMetadata(output)
1356
- });
1357
- await (0, import_smithy_client.collectBody)(output.body, context);
1358
- return contents;
1359
- }, "de_UpdateDatasourcePackagesCommand");
1360
- var de_UpdateInvestigationStateCommand = /* @__PURE__ */ __name(async (output, context) => {
1361
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1362
- return de_CommandError(output, context);
1363
- }
1364
- const contents = (0, import_smithy_client.map)({
1365
- $metadata: deserializeMetadata(output)
1366
- });
1367
- await (0, import_smithy_client.collectBody)(output.body, context);
1368
- return contents;
1369
- }, "de_UpdateInvestigationStateCommand");
1370
- var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1371
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1372
- return de_CommandError(output, context);
1373
- }
1374
- const contents = (0, import_smithy_client.map)({
1375
- $metadata: deserializeMetadata(output)
1376
- });
1377
- await (0, import_smithy_client.collectBody)(output.body, context);
1378
- return contents;
1379
- }, "de_UpdateOrganizationConfigurationCommand");
1380
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1381
- const parsedOutput = {
1382
- ...output,
1383
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1384
- };
1385
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1386
- switch (errorCode) {
1387
- case "AccessDeniedException":
1388
- case "com.amazonaws.detective#AccessDeniedException":
1389
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1390
- case "ConflictException":
1391
- case "com.amazonaws.detective#ConflictException":
1392
- throw await de_ConflictExceptionRes(parsedOutput, context);
1393
- case "InternalServerException":
1394
- case "com.amazonaws.detective#InternalServerException":
1395
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1396
- case "ResourceNotFoundException":
1397
- case "com.amazonaws.detective#ResourceNotFoundException":
1398
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1399
- case "ValidationException":
1400
- case "com.amazonaws.detective#ValidationException":
1401
- throw await de_ValidationExceptionRes(parsedOutput, context);
1402
- case "ServiceQuotaExceededException":
1403
- case "com.amazonaws.detective#ServiceQuotaExceededException":
1404
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1405
- case "TooManyRequestsException":
1406
- case "com.amazonaws.detective#TooManyRequestsException":
1407
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1408
- default:
1409
- const parsedBody = parsedOutput.body;
1410
- return throwDefaultError({
1411
- output,
1412
- parsedBody,
1413
- errorCode
1414
- });
1415
- }
1416
- }, "de_CommandError");
1417
- var throwDefaultError = (0, import_smithy_client.withBaseException)(DetectiveServiceException);
1418
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1419
- const contents = (0, import_smithy_client.map)({});
1420
- const data = parsedOutput.body;
1421
- const doc = (0, import_smithy_client.take)(data, {
1422
- ErrorCode: import_smithy_client.expectString,
1423
- ErrorCodeReason: import_smithy_client.expectString,
1424
- Message: import_smithy_client.expectString,
1425
- SubErrorCode: import_smithy_client.expectString,
1426
- SubErrorCodeReason: import_smithy_client.expectString
1427
- });
1428
- Object.assign(contents, doc);
1429
- const exception = new AccessDeniedException({
1430
- $metadata: deserializeMetadata(parsedOutput),
1431
- ...contents
1432
- });
1433
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1434
- }, "de_AccessDeniedExceptionRes");
1435
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1436
- const contents = (0, import_smithy_client.map)({});
1437
- const data = parsedOutput.body;
1438
- const doc = (0, import_smithy_client.take)(data, {
1439
- Message: import_smithy_client.expectString
1440
- });
1441
- Object.assign(contents, doc);
1442
- const exception = new ConflictException({
1443
- $metadata: deserializeMetadata(parsedOutput),
1444
- ...contents
1445
- });
1446
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1447
- }, "de_ConflictExceptionRes");
1448
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1449
- const contents = (0, import_smithy_client.map)({});
1450
- const data = parsedOutput.body;
1451
- const doc = (0, import_smithy_client.take)(data, {
1452
- Message: import_smithy_client.expectString
1453
- });
1454
- Object.assign(contents, doc);
1455
- const exception = new InternalServerException({
1456
- $metadata: deserializeMetadata(parsedOutput),
1457
- ...contents
1458
- });
1459
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1460
- }, "de_InternalServerExceptionRes");
1461
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1462
- const contents = (0, import_smithy_client.map)({});
1463
- const data = parsedOutput.body;
1464
- const doc = (0, import_smithy_client.take)(data, {
1465
- Message: import_smithy_client.expectString
1466
- });
1467
- Object.assign(contents, doc);
1468
- const exception = new ResourceNotFoundException({
1469
- $metadata: deserializeMetadata(parsedOutput),
1470
- ...contents
1471
- });
1472
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1473
- }, "de_ResourceNotFoundExceptionRes");
1474
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1475
- const contents = (0, import_smithy_client.map)({});
1476
- const data = parsedOutput.body;
1477
- const doc = (0, import_smithy_client.take)(data, {
1478
- Message: import_smithy_client.expectString,
1479
- Resources: import_smithy_client._json
1480
- });
1481
- Object.assign(contents, doc);
1482
- const exception = new ServiceQuotaExceededException({
1483
- $metadata: deserializeMetadata(parsedOutput),
1484
- ...contents
1485
- });
1486
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1487
- }, "de_ServiceQuotaExceededExceptionRes");
1488
- var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1489
- const contents = (0, import_smithy_client.map)({});
1490
- const data = parsedOutput.body;
1491
- const doc = (0, import_smithy_client.take)(data, {
1492
- Message: import_smithy_client.expectString
1493
- });
1494
- Object.assign(contents, doc);
1495
- const exception = new TooManyRequestsException({
1496
- $metadata: deserializeMetadata(parsedOutput),
1497
- ...contents
1498
- });
1499
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1500
- }, "de_TooManyRequestsExceptionRes");
1501
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1502
- const contents = (0, import_smithy_client.map)({});
1503
- const data = parsedOutput.body;
1504
- const doc = (0, import_smithy_client.take)(data, {
1505
- ErrorCode: import_smithy_client.expectString,
1506
- ErrorCodeReason: import_smithy_client.expectString,
1507
- Message: import_smithy_client.expectString
1508
- });
1509
- Object.assign(contents, doc);
1510
- const exception = new ValidationException({
1511
- $metadata: deserializeMetadata(parsedOutput),
1512
- ...contents
1513
- });
1514
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1515
- }, "de_ValidationExceptionRes");
1516
- var se_DateFilter = /* @__PURE__ */ __name((input, context) => {
1517
- return (0, import_smithy_client.take)(input, {
1518
- EndInclusive: import_smithy_client.serializeDateTime,
1519
- StartInclusive: import_smithy_client.serializeDateTime
1520
- });
1521
- }, "se_DateFilter");
1522
- var se_FilterCriteria = /* @__PURE__ */ __name((input, context) => {
1523
- return (0, import_smithy_client.take)(input, {
1524
- CreatedTime: /* @__PURE__ */ __name((_) => se_DateFilter(_, context), "CreatedTime"),
1525
- EntityArn: import_smithy_client._json,
1526
- Severity: import_smithy_client._json,
1527
- State: import_smithy_client._json,
1528
- Status: import_smithy_client._json
1529
- });
1530
- }, "se_FilterCriteria");
1531
- var de_Administrator = /* @__PURE__ */ __name((output, context) => {
1532
- return (0, import_smithy_client.take)(output, {
1533
- AccountId: import_smithy_client.expectString,
1534
- DelegationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "DelegationTime"),
1535
- GraphArn: import_smithy_client.expectString
1536
- });
1537
- }, "de_Administrator");
1538
- var de_AdministratorList = /* @__PURE__ */ __name((output, context) => {
1539
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1540
- return de_Administrator(entry, context);
1541
- });
1542
- return retVal;
1543
- }, "de_AdministratorList");
1544
- var de_DatasourcePackageIngestDetail = /* @__PURE__ */ __name((output, context) => {
1545
- return (0, import_smithy_client.take)(output, {
1546
- DatasourcePackageIngestState: import_smithy_client.expectString,
1547
- LastIngestStateChange: /* @__PURE__ */ __name((_) => de_LastIngestStateChangeDates(_, context), "LastIngestStateChange")
1548
- });
1549
- }, "de_DatasourcePackageIngestDetail");
1550
- var de_DatasourcePackageIngestDetails = /* @__PURE__ */ __name((output, context) => {
1551
- return Object.entries(output).reduce(
1552
- (acc, [key, value]) => {
1553
- if (value === null) {
1554
- return acc;
1555
- }
1556
- acc[key] = de_DatasourcePackageIngestDetail(value, context);
1557
- return acc;
1558
- },
1559
- {}
1560
- );
1561
- }, "de_DatasourcePackageIngestDetails");
1562
- var de_DatasourcePackageIngestHistory = /* @__PURE__ */ __name((output, context) => {
1563
- return Object.entries(output).reduce(
1564
- (acc, [key, value]) => {
1565
- if (value === null) {
1566
- return acc;
1567
- }
1568
- acc[key] = de_LastIngestStateChangeDates(value, context);
1569
- return acc;
1570
- },
1571
- {}
1572
- );
1573
- }, "de_DatasourcePackageIngestHistory");
1574
- var de_DatasourcePackageUsageInfo = /* @__PURE__ */ __name((output, context) => {
1575
- return (0, import_smithy_client.take)(output, {
1576
- VolumeUsageInBytes: import_smithy_client.expectLong,
1577
- VolumeUsageUpdateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "VolumeUsageUpdateTime")
1578
- });
1579
- }, "de_DatasourcePackageUsageInfo");
1580
- var de_Graph = /* @__PURE__ */ __name((output, context) => {
1581
- return (0, import_smithy_client.take)(output, {
1582
- Arn: import_smithy_client.expectString,
1583
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedTime")
1584
- });
1585
- }, "de_Graph");
1586
- var de_GraphList = /* @__PURE__ */ __name((output, context) => {
1587
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1588
- return de_Graph(entry, context);
1589
- });
1590
- return retVal;
1591
- }, "de_GraphList");
1592
- var de_InvestigationDetail = /* @__PURE__ */ __name((output, context) => {
1593
- return (0, import_smithy_client.take)(output, {
1594
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "CreatedTime"),
1595
- EntityArn: import_smithy_client.expectString,
1596
- EntityType: import_smithy_client.expectString,
1597
- InvestigationId: import_smithy_client.expectString,
1598
- Severity: import_smithy_client.expectString,
1599
- State: import_smithy_client.expectString,
1600
- Status: import_smithy_client.expectString
1601
- });
1602
- }, "de_InvestigationDetail");
1603
- var de_InvestigationDetails = /* @__PURE__ */ __name((output, context) => {
1604
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1605
- return de_InvestigationDetail(entry, context);
1606
- });
1607
- return retVal;
1608
- }, "de_InvestigationDetails");
1609
- var de_LastIngestStateChangeDates = /* @__PURE__ */ __name((output, context) => {
1610
- return Object.entries(output).reduce(
1611
- (acc, [key, value]) => {
1612
- if (value === null) {
1613
- return acc;
1614
- }
1615
- acc[key] = de_TimestampForCollection(value, context);
1616
- return acc;
1617
- },
1618
- {}
1619
- );
1620
- }, "de_LastIngestStateChangeDates");
1621
- var de_MemberDetail = /* @__PURE__ */ __name((output, context) => {
1622
- return (0, import_smithy_client.take)(output, {
1623
- AccountId: import_smithy_client.expectString,
1624
- AdministratorId: import_smithy_client.expectString,
1625
- DatasourcePackageIngestStates: import_smithy_client._json,
1626
- DisabledReason: import_smithy_client.expectString,
1627
- EmailAddress: import_smithy_client.expectString,
1628
- GraphArn: import_smithy_client.expectString,
1629
- InvitationType: import_smithy_client.expectString,
1630
- InvitedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "InvitedTime"),
1631
- MasterId: import_smithy_client.expectString,
1632
- PercentOfGraphUtilization: import_smithy_client.limitedParseDouble,
1633
- PercentOfGraphUtilizationUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "PercentOfGraphUtilizationUpdatedTime"),
1634
- Status: import_smithy_client.expectString,
1635
- UpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "UpdatedTime"),
1636
- VolumeUsageByDatasourcePackage: /* @__PURE__ */ __name((_) => de_VolumeUsageByDatasourcePackage(_, context), "VolumeUsageByDatasourcePackage"),
1637
- VolumeUsageInBytes: import_smithy_client.expectLong,
1638
- VolumeUsageUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "VolumeUsageUpdatedTime")
1639
- });
1640
- }, "de_MemberDetail");
1641
- var de_MemberDetailList = /* @__PURE__ */ __name((output, context) => {
1642
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1643
- return de_MemberDetail(entry, context);
1644
- });
1645
- return retVal;
1646
- }, "de_MemberDetailList");
1647
- var de_MembershipDatasources = /* @__PURE__ */ __name((output, context) => {
1648
- return (0, import_smithy_client.take)(output, {
1649
- AccountId: import_smithy_client.expectString,
1650
- DatasourcePackageIngestHistory: /* @__PURE__ */ __name((_) => de_DatasourcePackageIngestHistory(_, context), "DatasourcePackageIngestHistory"),
1651
- GraphArn: import_smithy_client.expectString
1652
- });
1653
- }, "de_MembershipDatasources");
1654
- var de_MembershipDatasourcesList = /* @__PURE__ */ __name((output, context) => {
1655
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1656
- return de_MembershipDatasources(entry, context);
1657
- });
1658
- return retVal;
1659
- }, "de_MembershipDatasourcesList");
1660
- var de_TimestampForCollection = /* @__PURE__ */ __name((output, context) => {
1661
- return (0, import_smithy_client.take)(output, {
1662
- Timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "Timestamp")
1663
- });
1664
- }, "de_TimestampForCollection");
1665
- var de_VolumeUsageByDatasourcePackage = /* @__PURE__ */ __name((output, context) => {
1666
- return Object.entries(output).reduce(
1667
- (acc, [key, value]) => {
1668
- if (value === null) {
1669
- return acc;
1670
- }
1671
- acc[key] = de_DatasourcePackageUsageInfo(value, context);
1672
- return acc;
1673
- },
1674
- {}
1675
- );
1676
- }, "de_VolumeUsageByDatasourcePackage");
1677
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1678
- httpStatusCode: output.statusCode,
1679
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1680
- extendedRequestId: output.headers["x-amz-id-2"],
1681
- cfId: output.headers["x-amz-cf-id"]
1682
- }), "deserializeMetadata");
1683
- var _TK = "TagKeys";
1684
- var _tK = "tagKeys";
1685
-
1686
- // src/commands/AcceptInvitationCommand.ts
1687
- var AcceptInvitationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1688
- return [
1689
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1690
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1691
- ];
1692
- }).s("AmazonDetective", "AcceptInvitation", {}).n("DetectiveClient", "AcceptInvitationCommand").f(void 0, void 0).ser(se_AcceptInvitationCommand).de(de_AcceptInvitationCommand).build() {
1693
- static {
1694
- __name(this, "AcceptInvitationCommand");
1695
- }
212
+ const DatasourcePackageIngestState = {
213
+ DISABLED: "DISABLED",
214
+ STARTED: "STARTED",
215
+ STOPPED: "STOPPED",
1696
216
  };
1697
-
1698
- // src/commands/BatchGetGraphMemberDatasourcesCommand.ts
1699
-
1700
-
1701
-
1702
- var BatchGetGraphMemberDatasourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1703
- return [
1704
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1705
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1706
- ];
1707
- }).s("AmazonDetective", "BatchGetGraphMemberDatasources", {}).n("DetectiveClient", "BatchGetGraphMemberDatasourcesCommand").f(void 0, void 0).ser(se_BatchGetGraphMemberDatasourcesCommand).de(de_BatchGetGraphMemberDatasourcesCommand).build() {
1708
- static {
1709
- __name(this, "BatchGetGraphMemberDatasourcesCommand");
1710
- }
217
+ class ServiceQuotaExceededException extends DetectiveServiceException {
218
+ name = "ServiceQuotaExceededException";
219
+ $fault = "client";
220
+ Message;
221
+ Resources;
222
+ constructor(opts) {
223
+ super({
224
+ name: "ServiceQuotaExceededException",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
229
+ this.Message = opts.Message;
230
+ this.Resources = opts.Resources;
231
+ }
232
+ }
233
+ const MemberDisabledReason = {
234
+ VOLUME_TOO_HIGH: "VOLUME_TOO_HIGH",
235
+ VOLUME_UNKNOWN: "VOLUME_UNKNOWN",
1711
236
  };
1712
-
1713
- // src/commands/BatchGetMembershipDatasourcesCommand.ts
1714
-
1715
-
1716
-
1717
- var BatchGetMembershipDatasourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1718
- return [
1719
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1720
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1721
- ];
1722
- }).s("AmazonDetective", "BatchGetMembershipDatasources", {}).n("DetectiveClient", "BatchGetMembershipDatasourcesCommand").f(void 0, void 0).ser(se_BatchGetMembershipDatasourcesCommand).de(de_BatchGetMembershipDatasourcesCommand).build() {
1723
- static {
1724
- __name(this, "BatchGetMembershipDatasourcesCommand");
1725
- }
237
+ const InvitationType = {
238
+ INVITATION: "INVITATION",
239
+ ORGANIZATION: "ORGANIZATION",
1726
240
  };
1727
-
1728
- // src/commands/CreateGraphCommand.ts
1729
-
1730
-
1731
-
1732
- var CreateGraphCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1733
- return [
1734
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1735
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1736
- ];
1737
- }).s("AmazonDetective", "CreateGraph", {}).n("DetectiveClient", "CreateGraphCommand").f(void 0, void 0).ser(se_CreateGraphCommand).de(de_CreateGraphCommand).build() {
1738
- static {
1739
- __name(this, "CreateGraphCommand");
1740
- }
241
+ const MemberStatus = {
242
+ ACCEPTED_BUT_DISABLED: "ACCEPTED_BUT_DISABLED",
243
+ ENABLED: "ENABLED",
244
+ INVITED: "INVITED",
245
+ VERIFICATION_FAILED: "VERIFICATION_FAILED",
246
+ VERIFICATION_IN_PROGRESS: "VERIFICATION_IN_PROGRESS",
1741
247
  };
1742
-
1743
- // src/commands/CreateMembersCommand.ts
1744
-
1745
-
1746
-
1747
- var CreateMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1748
- return [
1749
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1750
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1751
- ];
1752
- }).s("AmazonDetective", "CreateMembers", {}).n("DetectiveClient", "CreateMembersCommand").f(CreateMembersRequestFilterSensitiveLog, CreateMembersResponseFilterSensitiveLog).ser(se_CreateMembersCommand).de(de_CreateMembersCommand).build() {
1753
- static {
1754
- __name(this, "CreateMembersCommand");
1755
- }
248
+ class TooManyRequestsException extends DetectiveServiceException {
249
+ name = "TooManyRequestsException";
250
+ $fault = "client";
251
+ Message;
252
+ constructor(opts) {
253
+ super({
254
+ name: "TooManyRequestsException",
255
+ $fault: "client",
256
+ ...opts,
257
+ });
258
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
259
+ this.Message = opts.Message;
260
+ }
261
+ }
262
+ const EntityType = {
263
+ IAM_ROLE: "IAM_ROLE",
264
+ IAM_USER: "IAM_USER",
1756
265
  };
1757
-
1758
- // src/commands/DeleteGraphCommand.ts
1759
-
1760
-
1761
-
1762
- var DeleteGraphCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1763
- return [
1764
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1765
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1766
- ];
1767
- }).s("AmazonDetective", "DeleteGraph", {}).n("DetectiveClient", "DeleteGraphCommand").f(void 0, void 0).ser(se_DeleteGraphCommand).de(de_DeleteGraphCommand).build() {
1768
- static {
1769
- __name(this, "DeleteGraphCommand");
1770
- }
266
+ const Severity = {
267
+ CRITICAL: "CRITICAL",
268
+ HIGH: "HIGH",
269
+ INFORMATIONAL: "INFORMATIONAL",
270
+ LOW: "LOW",
271
+ MEDIUM: "MEDIUM",
1771
272
  };
1772
-
1773
- // src/commands/DeleteMembersCommand.ts
1774
-
1775
-
1776
-
1777
- var DeleteMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1778
- return [
1779
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1780
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1781
- ];
1782
- }).s("AmazonDetective", "DeleteMembers", {}).n("DetectiveClient", "DeleteMembersCommand").f(void 0, void 0).ser(se_DeleteMembersCommand).de(de_DeleteMembersCommand).build() {
1783
- static {
1784
- __name(this, "DeleteMembersCommand");
1785
- }
273
+ const State = {
274
+ ACTIVE: "ACTIVE",
275
+ ARCHIVED: "ARCHIVED",
1786
276
  };
1787
-
1788
- // src/commands/DescribeOrganizationConfigurationCommand.ts
1789
-
1790
-
1791
-
1792
- var DescribeOrganizationConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1793
- return [
1794
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1795
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1796
- ];
1797
- }).s("AmazonDetective", "DescribeOrganizationConfiguration", {}).n("DetectiveClient", "DescribeOrganizationConfigurationCommand").f(void 0, void 0).ser(se_DescribeOrganizationConfigurationCommand).de(de_DescribeOrganizationConfigurationCommand).build() {
1798
- static {
1799
- __name(this, "DescribeOrganizationConfigurationCommand");
1800
- }
277
+ const Status = {
278
+ FAILED: "FAILED",
279
+ RUNNING: "RUNNING",
280
+ SUCCESSFUL: "SUCCESSFUL",
1801
281
  };
1802
-
1803
- // src/commands/DisableOrganizationAdminAccountCommand.ts
1804
-
1805
-
1806
-
1807
- var DisableOrganizationAdminAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1808
- return [
1809
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1810
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1811
- ];
1812
- }).s("AmazonDetective", "DisableOrganizationAdminAccount", {}).n("DetectiveClient", "DisableOrganizationAdminAccountCommand").f(void 0, void 0).ser(se_DisableOrganizationAdminAccountCommand).de(de_DisableOrganizationAdminAccountCommand).build() {
1813
- static {
1814
- __name(this, "DisableOrganizationAdminAccountCommand");
1815
- }
282
+ const IndicatorType = {
283
+ FLAGGED_IP_ADDRESS: "FLAGGED_IP_ADDRESS",
284
+ IMPOSSIBLE_TRAVEL: "IMPOSSIBLE_TRAVEL",
285
+ NEW_ASO: "NEW_ASO",
286
+ NEW_GEOLOCATION: "NEW_GEOLOCATION",
287
+ NEW_USER_AGENT: "NEW_USER_AGENT",
288
+ RELATED_FINDING: "RELATED_FINDING",
289
+ RELATED_FINDING_GROUP: "RELATED_FINDING_GROUP",
290
+ TTP_OBSERVED: "TTP_OBSERVED",
1816
291
  };
1817
-
1818
- // src/commands/DisassociateMembershipCommand.ts
1819
-
1820
-
1821
-
1822
- var DisassociateMembershipCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1823
- return [
1824
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1825
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1826
- ];
1827
- }).s("AmazonDetective", "DisassociateMembership", {}).n("DetectiveClient", "DisassociateMembershipCommand").f(void 0, void 0).ser(se_DisassociateMembershipCommand).de(de_DisassociateMembershipCommand).build() {
1828
- static {
1829
- __name(this, "DisassociateMembershipCommand");
1830
- }
292
+ const Reason = {
293
+ AWS_THREAT_INTELLIGENCE: "AWS_THREAT_INTELLIGENCE",
1831
294
  };
1832
-
1833
- // src/commands/EnableOrganizationAdminAccountCommand.ts
1834
-
1835
-
1836
-
1837
- var EnableOrganizationAdminAccountCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1838
- return [
1839
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1840
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1841
- ];
1842
- }).s("AmazonDetective", "EnableOrganizationAdminAccount", {}).n("DetectiveClient", "EnableOrganizationAdminAccountCommand").f(void 0, void 0).ser(se_EnableOrganizationAdminAccountCommand).de(de_EnableOrganizationAdminAccountCommand).build() {
1843
- static {
1844
- __name(this, "EnableOrganizationAdminAccountCommand");
1845
- }
295
+ const Field = {
296
+ CREATED_TIME: "CREATED_TIME",
297
+ SEVERITY: "SEVERITY",
298
+ STATUS: "STATUS",
1846
299
  };
1847
-
1848
- // src/commands/GetInvestigationCommand.ts
1849
-
1850
-
1851
-
1852
- var GetInvestigationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1853
- return [
1854
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1855
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1856
- ];
1857
- }).s("AmazonDetective", "GetInvestigation", {}).n("DetectiveClient", "GetInvestigationCommand").f(void 0, void 0).ser(se_GetInvestigationCommand).de(de_GetInvestigationCommand).build() {
1858
- static {
1859
- __name(this, "GetInvestigationCommand");
1860
- }
300
+ const SortOrder = {
301
+ ASC: "ASC",
302
+ DESC: "DESC",
1861
303
  };
304
+ const AccountFilterSensitiveLog = (obj) => ({
305
+ ...obj,
306
+ ...(obj.EmailAddress && { EmailAddress: smithyClient.SENSITIVE_STRING }),
307
+ });
308
+ const CreateMembersRequestFilterSensitiveLog = (obj) => ({
309
+ ...obj,
310
+ ...(obj.Message && { Message: smithyClient.SENSITIVE_STRING }),
311
+ ...(obj.Accounts && { Accounts: obj.Accounts.map((item) => AccountFilterSensitiveLog(item)) }),
312
+ });
313
+ const MemberDetailFilterSensitiveLog = (obj) => ({
314
+ ...obj,
315
+ ...(obj.EmailAddress && { EmailAddress: smithyClient.SENSITIVE_STRING }),
316
+ });
317
+ const CreateMembersResponseFilterSensitiveLog = (obj) => ({
318
+ ...obj,
319
+ ...(obj.Members && { Members: obj.Members.map((item) => MemberDetailFilterSensitiveLog(item)) }),
320
+ });
321
+ const GetMembersResponseFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ ...(obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }),
324
+ });
325
+ const ListInvitationsResponseFilterSensitiveLog = (obj) => ({
326
+ ...obj,
327
+ ...(obj.Invitations && { Invitations: obj.Invitations.map((item) => MemberDetailFilterSensitiveLog(item)) }),
328
+ });
329
+ const ListMembersResponseFilterSensitiveLog = (obj) => ({
330
+ ...obj,
331
+ ...(obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }),
332
+ });
1862
333
 
1863
- // src/commands/GetMembersCommand.ts
1864
-
1865
-
1866
-
1867
- var GetMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1868
- return [
1869
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1870
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1871
- ];
1872
- }).s("AmazonDetective", "GetMembers", {}).n("DetectiveClient", "GetMembersCommand").f(void 0, GetMembersResponseFilterSensitiveLog).ser(se_GetMembersCommand).de(de_GetMembersCommand).build() {
1873
- static {
1874
- __name(this, "GetMembersCommand");
1875
- }
334
+ const se_AcceptInvitationCommand = async (input, context) => {
335
+ const b = core.requestBuilder(input, context);
336
+ const headers = {
337
+ "content-type": "application/json",
338
+ };
339
+ b.bp("/invitation");
340
+ let body;
341
+ body = JSON.stringify(smithyClient.take(input, {
342
+ GraphArn: [],
343
+ }));
344
+ b.m("PUT").h(headers).b(body);
345
+ return b.build();
1876
346
  };
1877
-
1878
- // src/commands/ListDatasourcePackagesCommand.ts
1879
-
1880
-
1881
-
1882
- var ListDatasourcePackagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1883
- return [
1884
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1885
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1886
- ];
1887
- }).s("AmazonDetective", "ListDatasourcePackages", {}).n("DetectiveClient", "ListDatasourcePackagesCommand").f(void 0, void 0).ser(se_ListDatasourcePackagesCommand).de(de_ListDatasourcePackagesCommand).build() {
1888
- static {
1889
- __name(this, "ListDatasourcePackagesCommand");
1890
- }
347
+ const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
348
+ const b = core.requestBuilder(input, context);
349
+ const headers = {
350
+ "content-type": "application/json",
351
+ };
352
+ b.bp("/graph/datasources/get");
353
+ let body;
354
+ body = JSON.stringify(smithyClient.take(input, {
355
+ AccountIds: (_) => smithyClient._json(_),
356
+ GraphArn: [],
357
+ }));
358
+ b.m("POST").h(headers).b(body);
359
+ return b.build();
1891
360
  };
1892
-
1893
- // src/commands/ListGraphsCommand.ts
1894
-
1895
-
1896
-
1897
- var ListGraphsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1898
- return [
1899
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1900
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1901
- ];
1902
- }).s("AmazonDetective", "ListGraphs", {}).n("DetectiveClient", "ListGraphsCommand").f(void 0, void 0).ser(se_ListGraphsCommand).de(de_ListGraphsCommand).build() {
1903
- static {
1904
- __name(this, "ListGraphsCommand");
1905
- }
361
+ const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
362
+ const b = core.requestBuilder(input, context);
363
+ const headers = {
364
+ "content-type": "application/json",
365
+ };
366
+ b.bp("/membership/datasources/get");
367
+ let body;
368
+ body = JSON.stringify(smithyClient.take(input, {
369
+ GraphArns: (_) => smithyClient._json(_),
370
+ }));
371
+ b.m("POST").h(headers).b(body);
372
+ return b.build();
1906
373
  };
1907
-
1908
- // src/commands/ListIndicatorsCommand.ts
1909
-
1910
-
1911
-
1912
- var ListIndicatorsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1913
- return [
1914
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1915
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1916
- ];
1917
- }).s("AmazonDetective", "ListIndicators", {}).n("DetectiveClient", "ListIndicatorsCommand").f(void 0, void 0).ser(se_ListIndicatorsCommand).de(de_ListIndicatorsCommand).build() {
1918
- static {
1919
- __name(this, "ListIndicatorsCommand");
1920
- }
374
+ const se_CreateGraphCommand = async (input, context) => {
375
+ const b = core.requestBuilder(input, context);
376
+ const headers = {
377
+ "content-type": "application/json",
378
+ };
379
+ b.bp("/graph");
380
+ let body;
381
+ body = JSON.stringify(smithyClient.take(input, {
382
+ Tags: (_) => smithyClient._json(_),
383
+ }));
384
+ b.m("POST").h(headers).b(body);
385
+ return b.build();
1921
386
  };
1922
-
1923
- // src/commands/ListInvestigationsCommand.ts
1924
-
1925
-
1926
-
1927
- var ListInvestigationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1928
- return [
1929
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1930
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1931
- ];
1932
- }).s("AmazonDetective", "ListInvestigations", {}).n("DetectiveClient", "ListInvestigationsCommand").f(void 0, void 0).ser(se_ListInvestigationsCommand).de(de_ListInvestigationsCommand).build() {
1933
- static {
1934
- __name(this, "ListInvestigationsCommand");
1935
- }
387
+ const se_CreateMembersCommand = async (input, context) => {
388
+ const b = core.requestBuilder(input, context);
389
+ const headers = {
390
+ "content-type": "application/json",
391
+ };
392
+ b.bp("/graph/members");
393
+ let body;
394
+ body = JSON.stringify(smithyClient.take(input, {
395
+ Accounts: (_) => smithyClient._json(_),
396
+ DisableEmailNotification: [],
397
+ GraphArn: [],
398
+ Message: [],
399
+ }));
400
+ b.m("POST").h(headers).b(body);
401
+ return b.build();
1936
402
  };
1937
-
1938
- // src/commands/ListInvitationsCommand.ts
1939
-
1940
-
1941
-
1942
- var ListInvitationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1943
- return [
1944
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1945
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1946
- ];
1947
- }).s("AmazonDetective", "ListInvitations", {}).n("DetectiveClient", "ListInvitationsCommand").f(void 0, ListInvitationsResponseFilterSensitiveLog).ser(se_ListInvitationsCommand).de(de_ListInvitationsCommand).build() {
1948
- static {
1949
- __name(this, "ListInvitationsCommand");
1950
- }
403
+ const se_DeleteGraphCommand = async (input, context) => {
404
+ const b = core.requestBuilder(input, context);
405
+ const headers = {
406
+ "content-type": "application/json",
407
+ };
408
+ b.bp("/graph/removal");
409
+ let body;
410
+ body = JSON.stringify(smithyClient.take(input, {
411
+ GraphArn: [],
412
+ }));
413
+ b.m("POST").h(headers).b(body);
414
+ return b.build();
1951
415
  };
1952
-
1953
- // src/commands/ListMembersCommand.ts
1954
-
1955
-
1956
-
1957
- var ListMembersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1958
- return [
1959
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1960
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1961
- ];
1962
- }).s("AmazonDetective", "ListMembers", {}).n("DetectiveClient", "ListMembersCommand").f(void 0, ListMembersResponseFilterSensitiveLog).ser(se_ListMembersCommand).de(de_ListMembersCommand).build() {
1963
- static {
1964
- __name(this, "ListMembersCommand");
1965
- }
416
+ const se_DeleteMembersCommand = async (input, context) => {
417
+ const b = core.requestBuilder(input, context);
418
+ const headers = {
419
+ "content-type": "application/json",
420
+ };
421
+ b.bp("/graph/members/removal");
422
+ let body;
423
+ body = JSON.stringify(smithyClient.take(input, {
424
+ AccountIds: (_) => smithyClient._json(_),
425
+ GraphArn: [],
426
+ }));
427
+ b.m("POST").h(headers).b(body);
428
+ return b.build();
1966
429
  };
1967
-
1968
- // src/commands/ListOrganizationAdminAccountsCommand.ts
1969
-
1970
-
1971
-
1972
- var ListOrganizationAdminAccountsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1973
- return [
1974
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1975
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1976
- ];
1977
- }).s("AmazonDetective", "ListOrganizationAdminAccounts", {}).n("DetectiveClient", "ListOrganizationAdminAccountsCommand").f(void 0, void 0).ser(se_ListOrganizationAdminAccountsCommand).de(de_ListOrganizationAdminAccountsCommand).build() {
1978
- static {
1979
- __name(this, "ListOrganizationAdminAccountsCommand");
1980
- }
430
+ const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
431
+ const b = core.requestBuilder(input, context);
432
+ const headers = {
433
+ "content-type": "application/json",
434
+ };
435
+ b.bp("/orgs/describeOrganizationConfiguration");
436
+ let body;
437
+ body = JSON.stringify(smithyClient.take(input, {
438
+ GraphArn: [],
439
+ }));
440
+ b.m("POST").h(headers).b(body);
441
+ return b.build();
1981
442
  };
1982
-
1983
- // src/commands/ListTagsForResourceCommand.ts
1984
-
1985
-
1986
-
1987
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1988
- return [
1989
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1990
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1991
- ];
1992
- }).s("AmazonDetective", "ListTagsForResource", {}).n("DetectiveClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1993
- static {
1994
- __name(this, "ListTagsForResourceCommand");
1995
- }
443
+ const se_DisableOrganizationAdminAccountCommand = async (input, context) => {
444
+ const b = core.requestBuilder(input, context);
445
+ const headers = {};
446
+ b.bp("/orgs/disableAdminAccount");
447
+ let body;
448
+ b.m("POST").h(headers).b(body);
449
+ return b.build();
1996
450
  };
1997
-
1998
- // src/commands/RejectInvitationCommand.ts
1999
-
2000
-
2001
-
2002
- var RejectInvitationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2003
- return [
2004
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2005
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2006
- ];
2007
- }).s("AmazonDetective", "RejectInvitation", {}).n("DetectiveClient", "RejectInvitationCommand").f(void 0, void 0).ser(se_RejectInvitationCommand).de(de_RejectInvitationCommand).build() {
2008
- static {
2009
- __name(this, "RejectInvitationCommand");
2010
- }
451
+ const se_DisassociateMembershipCommand = async (input, context) => {
452
+ const b = core.requestBuilder(input, context);
453
+ const headers = {
454
+ "content-type": "application/json",
455
+ };
456
+ b.bp("/membership/removal");
457
+ let body;
458
+ body = JSON.stringify(smithyClient.take(input, {
459
+ GraphArn: [],
460
+ }));
461
+ b.m("POST").h(headers).b(body);
462
+ return b.build();
2011
463
  };
2012
-
2013
- // src/commands/StartInvestigationCommand.ts
2014
-
2015
-
2016
-
2017
- var StartInvestigationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2018
- return [
2019
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2020
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2021
- ];
2022
- }).s("AmazonDetective", "StartInvestigation", {}).n("DetectiveClient", "StartInvestigationCommand").f(void 0, void 0).ser(se_StartInvestigationCommand).de(de_StartInvestigationCommand).build() {
2023
- static {
2024
- __name(this, "StartInvestigationCommand");
2025
- }
464
+ const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
465
+ const b = core.requestBuilder(input, context);
466
+ const headers = {
467
+ "content-type": "application/json",
468
+ };
469
+ b.bp("/orgs/enableAdminAccount");
470
+ let body;
471
+ body = JSON.stringify(smithyClient.take(input, {
472
+ AccountId: [],
473
+ }));
474
+ b.m("POST").h(headers).b(body);
475
+ return b.build();
2026
476
  };
2027
-
2028
- // src/commands/StartMonitoringMemberCommand.ts
2029
-
2030
-
2031
-
2032
- var StartMonitoringMemberCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2033
- return [
2034
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2035
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2036
- ];
2037
- }).s("AmazonDetective", "StartMonitoringMember", {}).n("DetectiveClient", "StartMonitoringMemberCommand").f(void 0, void 0).ser(se_StartMonitoringMemberCommand).de(de_StartMonitoringMemberCommand).build() {
2038
- static {
2039
- __name(this, "StartMonitoringMemberCommand");
2040
- }
477
+ const se_GetInvestigationCommand = async (input, context) => {
478
+ const b = core.requestBuilder(input, context);
479
+ const headers = {
480
+ "content-type": "application/json",
481
+ };
482
+ b.bp("/investigations/getInvestigation");
483
+ let body;
484
+ body = JSON.stringify(smithyClient.take(input, {
485
+ GraphArn: [],
486
+ InvestigationId: [],
487
+ }));
488
+ b.m("POST").h(headers).b(body);
489
+ return b.build();
2041
490
  };
2042
-
2043
- // src/commands/TagResourceCommand.ts
2044
-
2045
-
2046
-
2047
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2048
- return [
2049
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2050
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2051
- ];
2052
- }).s("AmazonDetective", "TagResource", {}).n("DetectiveClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2053
- static {
2054
- __name(this, "TagResourceCommand");
2055
- }
491
+ const se_GetMembersCommand = async (input, context) => {
492
+ const b = core.requestBuilder(input, context);
493
+ const headers = {
494
+ "content-type": "application/json",
495
+ };
496
+ b.bp("/graph/members/get");
497
+ let body;
498
+ body = JSON.stringify(smithyClient.take(input, {
499
+ AccountIds: (_) => smithyClient._json(_),
500
+ GraphArn: [],
501
+ }));
502
+ b.m("POST").h(headers).b(body);
503
+ return b.build();
2056
504
  };
2057
-
2058
- // src/commands/UntagResourceCommand.ts
2059
-
2060
-
2061
-
2062
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2063
- return [
2064
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2065
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2066
- ];
2067
- }).s("AmazonDetective", "UntagResource", {}).n("DetectiveClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2068
- static {
2069
- __name(this, "UntagResourceCommand");
2070
- }
505
+ const se_ListDatasourcePackagesCommand = async (input, context) => {
506
+ const b = core.requestBuilder(input, context);
507
+ const headers = {
508
+ "content-type": "application/json",
509
+ };
510
+ b.bp("/graph/datasources/list");
511
+ let body;
512
+ body = JSON.stringify(smithyClient.take(input, {
513
+ GraphArn: [],
514
+ MaxResults: [],
515
+ NextToken: [],
516
+ }));
517
+ b.m("POST").h(headers).b(body);
518
+ return b.build();
2071
519
  };
2072
-
2073
- // src/commands/UpdateDatasourcePackagesCommand.ts
2074
-
2075
-
2076
-
2077
- var UpdateDatasourcePackagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2078
- return [
2079
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2080
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2081
- ];
2082
- }).s("AmazonDetective", "UpdateDatasourcePackages", {}).n("DetectiveClient", "UpdateDatasourcePackagesCommand").f(void 0, void 0).ser(se_UpdateDatasourcePackagesCommand).de(de_UpdateDatasourcePackagesCommand).build() {
2083
- static {
2084
- __name(this, "UpdateDatasourcePackagesCommand");
2085
- }
520
+ const se_ListGraphsCommand = async (input, context) => {
521
+ const b = core.requestBuilder(input, context);
522
+ const headers = {
523
+ "content-type": "application/json",
524
+ };
525
+ b.bp("/graphs/list");
526
+ let body;
527
+ body = JSON.stringify(smithyClient.take(input, {
528
+ MaxResults: [],
529
+ NextToken: [],
530
+ }));
531
+ b.m("POST").h(headers).b(body);
532
+ return b.build();
2086
533
  };
2087
-
2088
- // src/commands/UpdateInvestigationStateCommand.ts
2089
-
2090
-
2091
-
2092
- var UpdateInvestigationStateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2093
- return [
2094
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2095
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2096
- ];
2097
- }).s("AmazonDetective", "UpdateInvestigationState", {}).n("DetectiveClient", "UpdateInvestigationStateCommand").f(void 0, void 0).ser(se_UpdateInvestigationStateCommand).de(de_UpdateInvestigationStateCommand).build() {
2098
- static {
2099
- __name(this, "UpdateInvestigationStateCommand");
2100
- }
534
+ const se_ListIndicatorsCommand = async (input, context) => {
535
+ const b = core.requestBuilder(input, context);
536
+ const headers = {
537
+ "content-type": "application/json",
538
+ };
539
+ b.bp("/investigations/listIndicators");
540
+ let body;
541
+ body = JSON.stringify(smithyClient.take(input, {
542
+ GraphArn: [],
543
+ IndicatorType: [],
544
+ InvestigationId: [],
545
+ MaxResults: [],
546
+ NextToken: [],
547
+ }));
548
+ b.m("POST").h(headers).b(body);
549
+ return b.build();
2101
550
  };
2102
-
2103
- // src/commands/UpdateOrganizationConfigurationCommand.ts
2104
-
2105
-
2106
-
2107
- var UpdateOrganizationConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2108
- return [
2109
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2110
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2111
- ];
2112
- }).s("AmazonDetective", "UpdateOrganizationConfiguration", {}).n("DetectiveClient", "UpdateOrganizationConfigurationCommand").f(void 0, void 0).ser(se_UpdateOrganizationConfigurationCommand).de(de_UpdateOrganizationConfigurationCommand).build() {
2113
- static {
2114
- __name(this, "UpdateOrganizationConfigurationCommand");
2115
- }
551
+ const se_ListInvestigationsCommand = async (input, context) => {
552
+ const b = core.requestBuilder(input, context);
553
+ const headers = {
554
+ "content-type": "application/json",
555
+ };
556
+ b.bp("/investigations/listInvestigations");
557
+ let body;
558
+ body = JSON.stringify(smithyClient.take(input, {
559
+ FilterCriteria: (_) => se_FilterCriteria(_),
560
+ GraphArn: [],
561
+ MaxResults: [],
562
+ NextToken: [],
563
+ SortCriteria: (_) => smithyClient._json(_),
564
+ }));
565
+ b.m("POST").h(headers).b(body);
566
+ return b.build();
2116
567
  };
568
+ const se_ListInvitationsCommand = async (input, context) => {
569
+ const b = core.requestBuilder(input, context);
570
+ const headers = {
571
+ "content-type": "application/json",
572
+ };
573
+ b.bp("/invitations/list");
574
+ let body;
575
+ body = JSON.stringify(smithyClient.take(input, {
576
+ MaxResults: [],
577
+ NextToken: [],
578
+ }));
579
+ b.m("POST").h(headers).b(body);
580
+ return b.build();
581
+ };
582
+ const se_ListMembersCommand = async (input, context) => {
583
+ const b = core.requestBuilder(input, context);
584
+ const headers = {
585
+ "content-type": "application/json",
586
+ };
587
+ b.bp("/graph/members/list");
588
+ let body;
589
+ body = JSON.stringify(smithyClient.take(input, {
590
+ GraphArn: [],
591
+ MaxResults: [],
592
+ NextToken: [],
593
+ }));
594
+ b.m("POST").h(headers).b(body);
595
+ return b.build();
596
+ };
597
+ const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
598
+ const b = core.requestBuilder(input, context);
599
+ const headers = {
600
+ "content-type": "application/json",
601
+ };
602
+ b.bp("/orgs/adminAccountslist");
603
+ let body;
604
+ body = JSON.stringify(smithyClient.take(input, {
605
+ MaxResults: [],
606
+ NextToken: [],
607
+ }));
608
+ b.m("POST").h(headers).b(body);
609
+ return b.build();
610
+ };
611
+ const se_ListTagsForResourceCommand = async (input, context) => {
612
+ const b = core.requestBuilder(input, context);
613
+ const headers = {};
614
+ b.bp("/tags/{ResourceArn}");
615
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
616
+ let body;
617
+ b.m("GET").h(headers).b(body);
618
+ return b.build();
619
+ };
620
+ const se_RejectInvitationCommand = async (input, context) => {
621
+ const b = core.requestBuilder(input, context);
622
+ const headers = {
623
+ "content-type": "application/json",
624
+ };
625
+ b.bp("/invitation/removal");
626
+ let body;
627
+ body = JSON.stringify(smithyClient.take(input, {
628
+ GraphArn: [],
629
+ }));
630
+ b.m("POST").h(headers).b(body);
631
+ return b.build();
632
+ };
633
+ const se_StartInvestigationCommand = async (input, context) => {
634
+ const b = core.requestBuilder(input, context);
635
+ const headers = {
636
+ "content-type": "application/json",
637
+ };
638
+ b.bp("/investigations/startInvestigation");
639
+ let body;
640
+ body = JSON.stringify(smithyClient.take(input, {
641
+ EntityArn: [],
642
+ GraphArn: [],
643
+ ScopeEndTime: (_) => smithyClient.serializeDateTime(_),
644
+ ScopeStartTime: (_) => smithyClient.serializeDateTime(_),
645
+ }));
646
+ b.m("POST").h(headers).b(body);
647
+ return b.build();
648
+ };
649
+ const se_StartMonitoringMemberCommand = async (input, context) => {
650
+ const b = core.requestBuilder(input, context);
651
+ const headers = {
652
+ "content-type": "application/json",
653
+ };
654
+ b.bp("/graph/member/monitoringstate");
655
+ let body;
656
+ body = JSON.stringify(smithyClient.take(input, {
657
+ AccountId: [],
658
+ GraphArn: [],
659
+ }));
660
+ b.m("POST").h(headers).b(body);
661
+ return b.build();
662
+ };
663
+ const se_TagResourceCommand = async (input, context) => {
664
+ const b = core.requestBuilder(input, context);
665
+ const headers = {
666
+ "content-type": "application/json",
667
+ };
668
+ b.bp("/tags/{ResourceArn}");
669
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
670
+ let body;
671
+ body = JSON.stringify(smithyClient.take(input, {
672
+ Tags: (_) => smithyClient._json(_),
673
+ }));
674
+ b.m("POST").h(headers).b(body);
675
+ return b.build();
676
+ };
677
+ const se_UntagResourceCommand = async (input, context) => {
678
+ const b = core.requestBuilder(input, context);
679
+ const headers = {};
680
+ b.bp("/tags/{ResourceArn}");
681
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
682
+ const query = smithyClient.map({
683
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
684
+ });
685
+ let body;
686
+ b.m("DELETE").h(headers).q(query).b(body);
687
+ return b.build();
688
+ };
689
+ const se_UpdateDatasourcePackagesCommand = async (input, context) => {
690
+ const b = core.requestBuilder(input, context);
691
+ const headers = {
692
+ "content-type": "application/json",
693
+ };
694
+ b.bp("/graph/datasources/update");
695
+ let body;
696
+ body = JSON.stringify(smithyClient.take(input, {
697
+ DatasourcePackages: (_) => smithyClient._json(_),
698
+ GraphArn: [],
699
+ }));
700
+ b.m("POST").h(headers).b(body);
701
+ return b.build();
702
+ };
703
+ const se_UpdateInvestigationStateCommand = async (input, context) => {
704
+ const b = core.requestBuilder(input, context);
705
+ const headers = {
706
+ "content-type": "application/json",
707
+ };
708
+ b.bp("/investigations/updateInvestigationState");
709
+ let body;
710
+ body = JSON.stringify(smithyClient.take(input, {
711
+ GraphArn: [],
712
+ InvestigationId: [],
713
+ State: [],
714
+ }));
715
+ b.m("POST").h(headers).b(body);
716
+ return b.build();
717
+ };
718
+ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
719
+ const b = core.requestBuilder(input, context);
720
+ const headers = {
721
+ "content-type": "application/json",
722
+ };
723
+ b.bp("/orgs/updateOrganizationConfiguration");
724
+ let body;
725
+ body = JSON.stringify(smithyClient.take(input, {
726
+ AutoEnable: [],
727
+ GraphArn: [],
728
+ }));
729
+ b.m("POST").h(headers).b(body);
730
+ return b.build();
731
+ };
732
+ const de_AcceptInvitationCommand = async (output, context) => {
733
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
734
+ return de_CommandError(output, context);
735
+ }
736
+ const contents = smithyClient.map({
737
+ $metadata: deserializeMetadata(output),
738
+ });
739
+ await smithyClient.collectBody(output.body, context);
740
+ return contents;
741
+ };
742
+ const de_BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
743
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
744
+ return de_CommandError(output, context);
745
+ }
746
+ const contents = smithyClient.map({
747
+ $metadata: deserializeMetadata(output),
748
+ });
749
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
750
+ const doc = smithyClient.take(data, {
751
+ MemberDatasources: (_) => de_MembershipDatasourcesList(_),
752
+ UnprocessedAccounts: smithyClient._json,
753
+ });
754
+ Object.assign(contents, doc);
755
+ return contents;
756
+ };
757
+ const de_BatchGetMembershipDatasourcesCommand = async (output, context) => {
758
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
759
+ return de_CommandError(output, context);
760
+ }
761
+ const contents = smithyClient.map({
762
+ $metadata: deserializeMetadata(output),
763
+ });
764
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
765
+ const doc = smithyClient.take(data, {
766
+ MembershipDatasources: (_) => de_MembershipDatasourcesList(_),
767
+ UnprocessedGraphs: smithyClient._json,
768
+ });
769
+ Object.assign(contents, doc);
770
+ return contents;
771
+ };
772
+ const de_CreateGraphCommand = async (output, context) => {
773
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
774
+ return de_CommandError(output, context);
775
+ }
776
+ const contents = smithyClient.map({
777
+ $metadata: deserializeMetadata(output),
778
+ });
779
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
780
+ const doc = smithyClient.take(data, {
781
+ GraphArn: smithyClient.expectString,
782
+ });
783
+ Object.assign(contents, doc);
784
+ return contents;
785
+ };
786
+ const de_CreateMembersCommand = async (output, context) => {
787
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
788
+ return de_CommandError(output, context);
789
+ }
790
+ const contents = smithyClient.map({
791
+ $metadata: deserializeMetadata(output),
792
+ });
793
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
794
+ const doc = smithyClient.take(data, {
795
+ Members: (_) => de_MemberDetailList(_),
796
+ UnprocessedAccounts: smithyClient._json,
797
+ });
798
+ Object.assign(contents, doc);
799
+ return contents;
800
+ };
801
+ const de_DeleteGraphCommand = async (output, context) => {
802
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
803
+ return de_CommandError(output, context);
804
+ }
805
+ const contents = smithyClient.map({
806
+ $metadata: deserializeMetadata(output),
807
+ });
808
+ await smithyClient.collectBody(output.body, context);
809
+ return contents;
810
+ };
811
+ const de_DeleteMembersCommand = async (output, context) => {
812
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
813
+ return de_CommandError(output, context);
814
+ }
815
+ const contents = smithyClient.map({
816
+ $metadata: deserializeMetadata(output),
817
+ });
818
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
819
+ const doc = smithyClient.take(data, {
820
+ AccountIds: smithyClient._json,
821
+ UnprocessedAccounts: smithyClient._json,
822
+ });
823
+ Object.assign(contents, doc);
824
+ return contents;
825
+ };
826
+ const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
827
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
828
+ return de_CommandError(output, context);
829
+ }
830
+ const contents = smithyClient.map({
831
+ $metadata: deserializeMetadata(output),
832
+ });
833
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
834
+ const doc = smithyClient.take(data, {
835
+ AutoEnable: smithyClient.expectBoolean,
836
+ });
837
+ Object.assign(contents, doc);
838
+ return contents;
839
+ };
840
+ const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
841
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
842
+ return de_CommandError(output, context);
843
+ }
844
+ const contents = smithyClient.map({
845
+ $metadata: deserializeMetadata(output),
846
+ });
847
+ await smithyClient.collectBody(output.body, context);
848
+ return contents;
849
+ };
850
+ const de_DisassociateMembershipCommand = async (output, context) => {
851
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
852
+ return de_CommandError(output, context);
853
+ }
854
+ const contents = smithyClient.map({
855
+ $metadata: deserializeMetadata(output),
856
+ });
857
+ await smithyClient.collectBody(output.body, context);
858
+ return contents;
859
+ };
860
+ const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
861
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
862
+ return de_CommandError(output, context);
863
+ }
864
+ const contents = smithyClient.map({
865
+ $metadata: deserializeMetadata(output),
866
+ });
867
+ await smithyClient.collectBody(output.body, context);
868
+ return contents;
869
+ };
870
+ const de_GetInvestigationCommand = async (output, context) => {
871
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
872
+ return de_CommandError(output, context);
873
+ }
874
+ const contents = smithyClient.map({
875
+ $metadata: deserializeMetadata(output),
876
+ });
877
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
878
+ const doc = smithyClient.take(data, {
879
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
880
+ EntityArn: smithyClient.expectString,
881
+ EntityType: smithyClient.expectString,
882
+ GraphArn: smithyClient.expectString,
883
+ InvestigationId: smithyClient.expectString,
884
+ ScopeEndTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
885
+ ScopeStartTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
886
+ Severity: smithyClient.expectString,
887
+ State: smithyClient.expectString,
888
+ Status: smithyClient.expectString,
889
+ });
890
+ Object.assign(contents, doc);
891
+ return contents;
892
+ };
893
+ const de_GetMembersCommand = async (output, context) => {
894
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
895
+ return de_CommandError(output, context);
896
+ }
897
+ const contents = smithyClient.map({
898
+ $metadata: deserializeMetadata(output),
899
+ });
900
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
901
+ const doc = smithyClient.take(data, {
902
+ MemberDetails: (_) => de_MemberDetailList(_),
903
+ UnprocessedAccounts: smithyClient._json,
904
+ });
905
+ Object.assign(contents, doc);
906
+ return contents;
907
+ };
908
+ const de_ListDatasourcePackagesCommand = async (output, context) => {
909
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
910
+ return de_CommandError(output, context);
911
+ }
912
+ const contents = smithyClient.map({
913
+ $metadata: deserializeMetadata(output),
914
+ });
915
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
916
+ const doc = smithyClient.take(data, {
917
+ DatasourcePackages: (_) => de_DatasourcePackageIngestDetails(_),
918
+ NextToken: smithyClient.expectString,
919
+ });
920
+ Object.assign(contents, doc);
921
+ return contents;
922
+ };
923
+ const de_ListGraphsCommand = async (output, context) => {
924
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
925
+ return de_CommandError(output, context);
926
+ }
927
+ const contents = smithyClient.map({
928
+ $metadata: deserializeMetadata(output),
929
+ });
930
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
931
+ const doc = smithyClient.take(data, {
932
+ GraphList: (_) => de_GraphList(_),
933
+ NextToken: smithyClient.expectString,
934
+ });
935
+ Object.assign(contents, doc);
936
+ return contents;
937
+ };
938
+ const de_ListIndicatorsCommand = async (output, context) => {
939
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
940
+ return de_CommandError(output, context);
941
+ }
942
+ const contents = smithyClient.map({
943
+ $metadata: deserializeMetadata(output),
944
+ });
945
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
946
+ const doc = smithyClient.take(data, {
947
+ GraphArn: smithyClient.expectString,
948
+ Indicators: smithyClient._json,
949
+ InvestigationId: smithyClient.expectString,
950
+ NextToken: smithyClient.expectString,
951
+ });
952
+ Object.assign(contents, doc);
953
+ return contents;
954
+ };
955
+ const de_ListInvestigationsCommand = async (output, context) => {
956
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
957
+ return de_CommandError(output, context);
958
+ }
959
+ const contents = smithyClient.map({
960
+ $metadata: deserializeMetadata(output),
961
+ });
962
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
963
+ const doc = smithyClient.take(data, {
964
+ InvestigationDetails: (_) => de_InvestigationDetails(_),
965
+ NextToken: smithyClient.expectString,
966
+ });
967
+ Object.assign(contents, doc);
968
+ return contents;
969
+ };
970
+ const de_ListInvitationsCommand = async (output, context) => {
971
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
972
+ return de_CommandError(output, context);
973
+ }
974
+ const contents = smithyClient.map({
975
+ $metadata: deserializeMetadata(output),
976
+ });
977
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
978
+ const doc = smithyClient.take(data, {
979
+ Invitations: (_) => de_MemberDetailList(_),
980
+ NextToken: smithyClient.expectString,
981
+ });
982
+ Object.assign(contents, doc);
983
+ return contents;
984
+ };
985
+ const de_ListMembersCommand = async (output, context) => {
986
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
987
+ return de_CommandError(output, context);
988
+ }
989
+ const contents = smithyClient.map({
990
+ $metadata: deserializeMetadata(output),
991
+ });
992
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
993
+ const doc = smithyClient.take(data, {
994
+ MemberDetails: (_) => de_MemberDetailList(_),
995
+ NextToken: smithyClient.expectString,
996
+ });
997
+ Object.assign(contents, doc);
998
+ return contents;
999
+ };
1000
+ const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
1001
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1002
+ return de_CommandError(output, context);
1003
+ }
1004
+ const contents = smithyClient.map({
1005
+ $metadata: deserializeMetadata(output),
1006
+ });
1007
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1008
+ const doc = smithyClient.take(data, {
1009
+ Administrators: (_) => de_AdministratorList(_),
1010
+ NextToken: smithyClient.expectString,
1011
+ });
1012
+ Object.assign(contents, doc);
1013
+ return contents;
1014
+ };
1015
+ const de_ListTagsForResourceCommand = async (output, context) => {
1016
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1017
+ return de_CommandError(output, context);
1018
+ }
1019
+ const contents = smithyClient.map({
1020
+ $metadata: deserializeMetadata(output),
1021
+ });
1022
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1023
+ const doc = smithyClient.take(data, {
1024
+ Tags: smithyClient._json,
1025
+ });
1026
+ Object.assign(contents, doc);
1027
+ return contents;
1028
+ };
1029
+ const de_RejectInvitationCommand = async (output, context) => {
1030
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1031
+ return de_CommandError(output, context);
1032
+ }
1033
+ const contents = smithyClient.map({
1034
+ $metadata: deserializeMetadata(output),
1035
+ });
1036
+ await smithyClient.collectBody(output.body, context);
1037
+ return contents;
1038
+ };
1039
+ const de_StartInvestigationCommand = async (output, context) => {
1040
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1041
+ return de_CommandError(output, context);
1042
+ }
1043
+ const contents = smithyClient.map({
1044
+ $metadata: deserializeMetadata(output),
1045
+ });
1046
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1047
+ const doc = smithyClient.take(data, {
1048
+ InvestigationId: smithyClient.expectString,
1049
+ });
1050
+ Object.assign(contents, doc);
1051
+ return contents;
1052
+ };
1053
+ const de_StartMonitoringMemberCommand = async (output, context) => {
1054
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
+ return de_CommandError(output, context);
1056
+ }
1057
+ const contents = smithyClient.map({
1058
+ $metadata: deserializeMetadata(output),
1059
+ });
1060
+ await smithyClient.collectBody(output.body, context);
1061
+ return contents;
1062
+ };
1063
+ const de_TagResourceCommand = async (output, context) => {
1064
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1065
+ return de_CommandError(output, context);
1066
+ }
1067
+ const contents = smithyClient.map({
1068
+ $metadata: deserializeMetadata(output),
1069
+ });
1070
+ await smithyClient.collectBody(output.body, context);
1071
+ return contents;
1072
+ };
1073
+ const de_UntagResourceCommand = async (output, context) => {
1074
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1075
+ return de_CommandError(output, context);
1076
+ }
1077
+ const contents = smithyClient.map({
1078
+ $metadata: deserializeMetadata(output),
1079
+ });
1080
+ await smithyClient.collectBody(output.body, context);
1081
+ return contents;
1082
+ };
1083
+ const de_UpdateDatasourcePackagesCommand = async (output, context) => {
1084
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1085
+ return de_CommandError(output, context);
1086
+ }
1087
+ const contents = smithyClient.map({
1088
+ $metadata: deserializeMetadata(output),
1089
+ });
1090
+ await smithyClient.collectBody(output.body, context);
1091
+ return contents;
1092
+ };
1093
+ const de_UpdateInvestigationStateCommand = async (output, context) => {
1094
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
+ return de_CommandError(output, context);
1096
+ }
1097
+ const contents = smithyClient.map({
1098
+ $metadata: deserializeMetadata(output),
1099
+ });
1100
+ await smithyClient.collectBody(output.body, context);
1101
+ return contents;
1102
+ };
1103
+ const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
1104
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1105
+ return de_CommandError(output, context);
1106
+ }
1107
+ const contents = smithyClient.map({
1108
+ $metadata: deserializeMetadata(output),
1109
+ });
1110
+ await smithyClient.collectBody(output.body, context);
1111
+ return contents;
1112
+ };
1113
+ const de_CommandError = async (output, context) => {
1114
+ const parsedOutput = {
1115
+ ...output,
1116
+ body: await core$1.parseJsonErrorBody(output.body, context),
1117
+ };
1118
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1119
+ switch (errorCode) {
1120
+ case "AccessDeniedException":
1121
+ case "com.amazonaws.detective#AccessDeniedException":
1122
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1123
+ case "ConflictException":
1124
+ case "com.amazonaws.detective#ConflictException":
1125
+ throw await de_ConflictExceptionRes(parsedOutput);
1126
+ case "InternalServerException":
1127
+ case "com.amazonaws.detective#InternalServerException":
1128
+ throw await de_InternalServerExceptionRes(parsedOutput);
1129
+ case "ResourceNotFoundException":
1130
+ case "com.amazonaws.detective#ResourceNotFoundException":
1131
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1132
+ case "ValidationException":
1133
+ case "com.amazonaws.detective#ValidationException":
1134
+ throw await de_ValidationExceptionRes(parsedOutput);
1135
+ case "ServiceQuotaExceededException":
1136
+ case "com.amazonaws.detective#ServiceQuotaExceededException":
1137
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1138
+ case "TooManyRequestsException":
1139
+ case "com.amazonaws.detective#TooManyRequestsException":
1140
+ throw await de_TooManyRequestsExceptionRes(parsedOutput);
1141
+ default:
1142
+ const parsedBody = parsedOutput.body;
1143
+ return throwDefaultError({
1144
+ output,
1145
+ parsedBody,
1146
+ errorCode,
1147
+ });
1148
+ }
1149
+ };
1150
+ const throwDefaultError = smithyClient.withBaseException(DetectiveServiceException);
1151
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1152
+ const contents = smithyClient.map({});
1153
+ const data = parsedOutput.body;
1154
+ const doc = smithyClient.take(data, {
1155
+ ErrorCode: smithyClient.expectString,
1156
+ ErrorCodeReason: smithyClient.expectString,
1157
+ Message: smithyClient.expectString,
1158
+ SubErrorCode: smithyClient.expectString,
1159
+ SubErrorCodeReason: smithyClient.expectString,
1160
+ });
1161
+ Object.assign(contents, doc);
1162
+ const exception = new AccessDeniedException({
1163
+ $metadata: deserializeMetadata(parsedOutput),
1164
+ ...contents,
1165
+ });
1166
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1167
+ };
1168
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1169
+ const contents = smithyClient.map({});
1170
+ const data = parsedOutput.body;
1171
+ const doc = smithyClient.take(data, {
1172
+ Message: smithyClient.expectString,
1173
+ });
1174
+ Object.assign(contents, doc);
1175
+ const exception = new ConflictException({
1176
+ $metadata: deserializeMetadata(parsedOutput),
1177
+ ...contents,
1178
+ });
1179
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1180
+ };
1181
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1182
+ const contents = smithyClient.map({});
1183
+ const data = parsedOutput.body;
1184
+ const doc = smithyClient.take(data, {
1185
+ Message: smithyClient.expectString,
1186
+ });
1187
+ Object.assign(contents, doc);
1188
+ const exception = new InternalServerException({
1189
+ $metadata: deserializeMetadata(parsedOutput),
1190
+ ...contents,
1191
+ });
1192
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1193
+ };
1194
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1195
+ const contents = smithyClient.map({});
1196
+ const data = parsedOutput.body;
1197
+ const doc = smithyClient.take(data, {
1198
+ Message: smithyClient.expectString,
1199
+ });
1200
+ Object.assign(contents, doc);
1201
+ const exception = new ResourceNotFoundException({
1202
+ $metadata: deserializeMetadata(parsedOutput),
1203
+ ...contents,
1204
+ });
1205
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1206
+ };
1207
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1208
+ const contents = smithyClient.map({});
1209
+ const data = parsedOutput.body;
1210
+ const doc = smithyClient.take(data, {
1211
+ Message: smithyClient.expectString,
1212
+ Resources: smithyClient._json,
1213
+ });
1214
+ Object.assign(contents, doc);
1215
+ const exception = new ServiceQuotaExceededException({
1216
+ $metadata: deserializeMetadata(parsedOutput),
1217
+ ...contents,
1218
+ });
1219
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1220
+ };
1221
+ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1222
+ const contents = smithyClient.map({});
1223
+ const data = parsedOutput.body;
1224
+ const doc = smithyClient.take(data, {
1225
+ Message: smithyClient.expectString,
1226
+ });
1227
+ Object.assign(contents, doc);
1228
+ const exception = new TooManyRequestsException({
1229
+ $metadata: deserializeMetadata(parsedOutput),
1230
+ ...contents,
1231
+ });
1232
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1233
+ };
1234
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1235
+ const contents = smithyClient.map({});
1236
+ const data = parsedOutput.body;
1237
+ const doc = smithyClient.take(data, {
1238
+ ErrorCode: smithyClient.expectString,
1239
+ ErrorCodeReason: smithyClient.expectString,
1240
+ Message: smithyClient.expectString,
1241
+ });
1242
+ Object.assign(contents, doc);
1243
+ const exception = new ValidationException({
1244
+ $metadata: deserializeMetadata(parsedOutput),
1245
+ ...contents,
1246
+ });
1247
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1248
+ };
1249
+ const se_DateFilter = (input, context) => {
1250
+ return smithyClient.take(input, {
1251
+ EndInclusive: smithyClient.serializeDateTime,
1252
+ StartInclusive: smithyClient.serializeDateTime,
1253
+ });
1254
+ };
1255
+ const se_FilterCriteria = (input, context) => {
1256
+ return smithyClient.take(input, {
1257
+ CreatedTime: (_) => se_DateFilter(_),
1258
+ EntityArn: smithyClient._json,
1259
+ Severity: smithyClient._json,
1260
+ State: smithyClient._json,
1261
+ Status: smithyClient._json,
1262
+ });
1263
+ };
1264
+ const de_Administrator = (output, context) => {
1265
+ return smithyClient.take(output, {
1266
+ AccountId: smithyClient.expectString,
1267
+ DelegationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1268
+ GraphArn: smithyClient.expectString,
1269
+ });
1270
+ };
1271
+ const de_AdministratorList = (output, context) => {
1272
+ const retVal = (output || [])
1273
+ .filter((e) => e != null)
1274
+ .map((entry) => {
1275
+ return de_Administrator(entry);
1276
+ });
1277
+ return retVal;
1278
+ };
1279
+ const de_DatasourcePackageIngestDetail = (output, context) => {
1280
+ return smithyClient.take(output, {
1281
+ DatasourcePackageIngestState: smithyClient.expectString,
1282
+ LastIngestStateChange: (_) => de_LastIngestStateChangeDates(_),
1283
+ });
1284
+ };
1285
+ const de_DatasourcePackageIngestDetails = (output, context) => {
1286
+ return Object.entries(output).reduce((acc, [key, value]) => {
1287
+ if (value === null) {
1288
+ return acc;
1289
+ }
1290
+ acc[key] = de_DatasourcePackageIngestDetail(value);
1291
+ return acc;
1292
+ }, {});
1293
+ };
1294
+ const de_DatasourcePackageIngestHistory = (output, context) => {
1295
+ return Object.entries(output).reduce((acc, [key, value]) => {
1296
+ if (value === null) {
1297
+ return acc;
1298
+ }
1299
+ acc[key] = de_LastIngestStateChangeDates(value);
1300
+ return acc;
1301
+ }, {});
1302
+ };
1303
+ const de_DatasourcePackageUsageInfo = (output, context) => {
1304
+ return smithyClient.take(output, {
1305
+ VolumeUsageInBytes: smithyClient.expectLong,
1306
+ VolumeUsageUpdateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1307
+ });
1308
+ };
1309
+ const de_Graph = (output, context) => {
1310
+ return smithyClient.take(output, {
1311
+ Arn: smithyClient.expectString,
1312
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1313
+ });
1314
+ };
1315
+ const de_GraphList = (output, context) => {
1316
+ const retVal = (output || [])
1317
+ .filter((e) => e != null)
1318
+ .map((entry) => {
1319
+ return de_Graph(entry);
1320
+ });
1321
+ return retVal;
1322
+ };
1323
+ const de_InvestigationDetail = (output, context) => {
1324
+ return smithyClient.take(output, {
1325
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1326
+ EntityArn: smithyClient.expectString,
1327
+ EntityType: smithyClient.expectString,
1328
+ InvestigationId: smithyClient.expectString,
1329
+ Severity: smithyClient.expectString,
1330
+ State: smithyClient.expectString,
1331
+ Status: smithyClient.expectString,
1332
+ });
1333
+ };
1334
+ const de_InvestigationDetails = (output, context) => {
1335
+ const retVal = (output || [])
1336
+ .filter((e) => e != null)
1337
+ .map((entry) => {
1338
+ return de_InvestigationDetail(entry);
1339
+ });
1340
+ return retVal;
1341
+ };
1342
+ const de_LastIngestStateChangeDates = (output, context) => {
1343
+ return Object.entries(output).reduce((acc, [key, value]) => {
1344
+ if (value === null) {
1345
+ return acc;
1346
+ }
1347
+ acc[key] = de_TimestampForCollection(value);
1348
+ return acc;
1349
+ }, {});
1350
+ };
1351
+ const de_MemberDetail = (output, context) => {
1352
+ return smithyClient.take(output, {
1353
+ AccountId: smithyClient.expectString,
1354
+ AdministratorId: smithyClient.expectString,
1355
+ DatasourcePackageIngestStates: smithyClient._json,
1356
+ DisabledReason: smithyClient.expectString,
1357
+ EmailAddress: smithyClient.expectString,
1358
+ GraphArn: smithyClient.expectString,
1359
+ InvitationType: smithyClient.expectString,
1360
+ InvitedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1361
+ MasterId: smithyClient.expectString,
1362
+ PercentOfGraphUtilization: smithyClient.limitedParseDouble,
1363
+ PercentOfGraphUtilizationUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1364
+ Status: smithyClient.expectString,
1365
+ UpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1366
+ VolumeUsageByDatasourcePackage: (_) => de_VolumeUsageByDatasourcePackage(_),
1367
+ VolumeUsageInBytes: smithyClient.expectLong,
1368
+ VolumeUsageUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1369
+ });
1370
+ };
1371
+ const de_MemberDetailList = (output, context) => {
1372
+ const retVal = (output || [])
1373
+ .filter((e) => e != null)
1374
+ .map((entry) => {
1375
+ return de_MemberDetail(entry);
1376
+ });
1377
+ return retVal;
1378
+ };
1379
+ const de_MembershipDatasources = (output, context) => {
1380
+ return smithyClient.take(output, {
1381
+ AccountId: smithyClient.expectString,
1382
+ DatasourcePackageIngestHistory: (_) => de_DatasourcePackageIngestHistory(_),
1383
+ GraphArn: smithyClient.expectString,
1384
+ });
1385
+ };
1386
+ const de_MembershipDatasourcesList = (output, context) => {
1387
+ const retVal = (output || [])
1388
+ .filter((e) => e != null)
1389
+ .map((entry) => {
1390
+ return de_MembershipDatasources(entry);
1391
+ });
1392
+ return retVal;
1393
+ };
1394
+ const de_TimestampForCollection = (output, context) => {
1395
+ return smithyClient.take(output, {
1396
+ Timestamp: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
1397
+ });
1398
+ };
1399
+ const de_VolumeUsageByDatasourcePackage = (output, context) => {
1400
+ return Object.entries(output).reduce((acc, [key, value]) => {
1401
+ if (value === null) {
1402
+ return acc;
1403
+ }
1404
+ acc[key] = de_DatasourcePackageUsageInfo(value);
1405
+ return acc;
1406
+ }, {});
1407
+ };
1408
+ const deserializeMetadata = (output) => ({
1409
+ httpStatusCode: output.statusCode,
1410
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1411
+ extendedRequestId: output.headers["x-amz-id-2"],
1412
+ cfId: output.headers["x-amz-cf-id"],
1413
+ });
1414
+ const _TK = "TagKeys";
1415
+ const _tK = "tagKeys";
1416
+
1417
+ class AcceptInvitationCommand extends smithyClient.Command
1418
+ .classBuilder()
1419
+ .ep(commonParams)
1420
+ .m(function (Command, cs, config, o) {
1421
+ return [
1422
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1423
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1424
+ ];
1425
+ })
1426
+ .s("AmazonDetective", "AcceptInvitation", {})
1427
+ .n("DetectiveClient", "AcceptInvitationCommand")
1428
+ .f(void 0, void 0)
1429
+ .ser(se_AcceptInvitationCommand)
1430
+ .de(de_AcceptInvitationCommand)
1431
+ .build() {
1432
+ }
1433
+
1434
+ class BatchGetGraphMemberDatasourcesCommand extends smithyClient.Command
1435
+ .classBuilder()
1436
+ .ep(commonParams)
1437
+ .m(function (Command, cs, config, o) {
1438
+ return [
1439
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1440
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1441
+ ];
1442
+ })
1443
+ .s("AmazonDetective", "BatchGetGraphMemberDatasources", {})
1444
+ .n("DetectiveClient", "BatchGetGraphMemberDatasourcesCommand")
1445
+ .f(void 0, void 0)
1446
+ .ser(se_BatchGetGraphMemberDatasourcesCommand)
1447
+ .de(de_BatchGetGraphMemberDatasourcesCommand)
1448
+ .build() {
1449
+ }
1450
+
1451
+ class BatchGetMembershipDatasourcesCommand extends smithyClient.Command
1452
+ .classBuilder()
1453
+ .ep(commonParams)
1454
+ .m(function (Command, cs, config, o) {
1455
+ return [
1456
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1457
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1458
+ ];
1459
+ })
1460
+ .s("AmazonDetective", "BatchGetMembershipDatasources", {})
1461
+ .n("DetectiveClient", "BatchGetMembershipDatasourcesCommand")
1462
+ .f(void 0, void 0)
1463
+ .ser(se_BatchGetMembershipDatasourcesCommand)
1464
+ .de(de_BatchGetMembershipDatasourcesCommand)
1465
+ .build() {
1466
+ }
1467
+
1468
+ class CreateGraphCommand extends smithyClient.Command
1469
+ .classBuilder()
1470
+ .ep(commonParams)
1471
+ .m(function (Command, cs, config, o) {
1472
+ return [
1473
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1474
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1475
+ ];
1476
+ })
1477
+ .s("AmazonDetective", "CreateGraph", {})
1478
+ .n("DetectiveClient", "CreateGraphCommand")
1479
+ .f(void 0, void 0)
1480
+ .ser(se_CreateGraphCommand)
1481
+ .de(de_CreateGraphCommand)
1482
+ .build() {
1483
+ }
1484
+
1485
+ class CreateMembersCommand extends smithyClient.Command
1486
+ .classBuilder()
1487
+ .ep(commonParams)
1488
+ .m(function (Command, cs, config, o) {
1489
+ return [
1490
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1491
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1492
+ ];
1493
+ })
1494
+ .s("AmazonDetective", "CreateMembers", {})
1495
+ .n("DetectiveClient", "CreateMembersCommand")
1496
+ .f(CreateMembersRequestFilterSensitiveLog, CreateMembersResponseFilterSensitiveLog)
1497
+ .ser(se_CreateMembersCommand)
1498
+ .de(de_CreateMembersCommand)
1499
+ .build() {
1500
+ }
1501
+
1502
+ class DeleteGraphCommand extends smithyClient.Command
1503
+ .classBuilder()
1504
+ .ep(commonParams)
1505
+ .m(function (Command, cs, config, o) {
1506
+ return [
1507
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1508
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1509
+ ];
1510
+ })
1511
+ .s("AmazonDetective", "DeleteGraph", {})
1512
+ .n("DetectiveClient", "DeleteGraphCommand")
1513
+ .f(void 0, void 0)
1514
+ .ser(se_DeleteGraphCommand)
1515
+ .de(de_DeleteGraphCommand)
1516
+ .build() {
1517
+ }
1518
+
1519
+ class DeleteMembersCommand extends smithyClient.Command
1520
+ .classBuilder()
1521
+ .ep(commonParams)
1522
+ .m(function (Command, cs, config, o) {
1523
+ return [
1524
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1525
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1526
+ ];
1527
+ })
1528
+ .s("AmazonDetective", "DeleteMembers", {})
1529
+ .n("DetectiveClient", "DeleteMembersCommand")
1530
+ .f(void 0, void 0)
1531
+ .ser(se_DeleteMembersCommand)
1532
+ .de(de_DeleteMembersCommand)
1533
+ .build() {
1534
+ }
1535
+
1536
+ class DescribeOrganizationConfigurationCommand extends smithyClient.Command
1537
+ .classBuilder()
1538
+ .ep(commonParams)
1539
+ .m(function (Command, cs, config, o) {
1540
+ return [
1541
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1542
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1543
+ ];
1544
+ })
1545
+ .s("AmazonDetective", "DescribeOrganizationConfiguration", {})
1546
+ .n("DetectiveClient", "DescribeOrganizationConfigurationCommand")
1547
+ .f(void 0, void 0)
1548
+ .ser(se_DescribeOrganizationConfigurationCommand)
1549
+ .de(de_DescribeOrganizationConfigurationCommand)
1550
+ .build() {
1551
+ }
1552
+
1553
+ class DisableOrganizationAdminAccountCommand extends smithyClient.Command
1554
+ .classBuilder()
1555
+ .ep(commonParams)
1556
+ .m(function (Command, cs, config, o) {
1557
+ return [
1558
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1559
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1560
+ ];
1561
+ })
1562
+ .s("AmazonDetective", "DisableOrganizationAdminAccount", {})
1563
+ .n("DetectiveClient", "DisableOrganizationAdminAccountCommand")
1564
+ .f(void 0, void 0)
1565
+ .ser(se_DisableOrganizationAdminAccountCommand)
1566
+ .de(de_DisableOrganizationAdminAccountCommand)
1567
+ .build() {
1568
+ }
1569
+
1570
+ class DisassociateMembershipCommand extends smithyClient.Command
1571
+ .classBuilder()
1572
+ .ep(commonParams)
1573
+ .m(function (Command, cs, config, o) {
1574
+ return [
1575
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1576
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1577
+ ];
1578
+ })
1579
+ .s("AmazonDetective", "DisassociateMembership", {})
1580
+ .n("DetectiveClient", "DisassociateMembershipCommand")
1581
+ .f(void 0, void 0)
1582
+ .ser(se_DisassociateMembershipCommand)
1583
+ .de(de_DisassociateMembershipCommand)
1584
+ .build() {
1585
+ }
1586
+
1587
+ class EnableOrganizationAdminAccountCommand extends smithyClient.Command
1588
+ .classBuilder()
1589
+ .ep(commonParams)
1590
+ .m(function (Command, cs, config, o) {
1591
+ return [
1592
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1593
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1594
+ ];
1595
+ })
1596
+ .s("AmazonDetective", "EnableOrganizationAdminAccount", {})
1597
+ .n("DetectiveClient", "EnableOrganizationAdminAccountCommand")
1598
+ .f(void 0, void 0)
1599
+ .ser(se_EnableOrganizationAdminAccountCommand)
1600
+ .de(de_EnableOrganizationAdminAccountCommand)
1601
+ .build() {
1602
+ }
1603
+
1604
+ class GetInvestigationCommand extends smithyClient.Command
1605
+ .classBuilder()
1606
+ .ep(commonParams)
1607
+ .m(function (Command, cs, config, o) {
1608
+ return [
1609
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1610
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1611
+ ];
1612
+ })
1613
+ .s("AmazonDetective", "GetInvestigation", {})
1614
+ .n("DetectiveClient", "GetInvestigationCommand")
1615
+ .f(void 0, void 0)
1616
+ .ser(se_GetInvestigationCommand)
1617
+ .de(de_GetInvestigationCommand)
1618
+ .build() {
1619
+ }
1620
+
1621
+ class GetMembersCommand extends smithyClient.Command
1622
+ .classBuilder()
1623
+ .ep(commonParams)
1624
+ .m(function (Command, cs, config, o) {
1625
+ return [
1626
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1627
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1628
+ ];
1629
+ })
1630
+ .s("AmazonDetective", "GetMembers", {})
1631
+ .n("DetectiveClient", "GetMembersCommand")
1632
+ .f(void 0, GetMembersResponseFilterSensitiveLog)
1633
+ .ser(se_GetMembersCommand)
1634
+ .de(de_GetMembersCommand)
1635
+ .build() {
1636
+ }
1637
+
1638
+ class ListDatasourcePackagesCommand extends smithyClient.Command
1639
+ .classBuilder()
1640
+ .ep(commonParams)
1641
+ .m(function (Command, cs, config, o) {
1642
+ return [
1643
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1644
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1645
+ ];
1646
+ })
1647
+ .s("AmazonDetective", "ListDatasourcePackages", {})
1648
+ .n("DetectiveClient", "ListDatasourcePackagesCommand")
1649
+ .f(void 0, void 0)
1650
+ .ser(se_ListDatasourcePackagesCommand)
1651
+ .de(de_ListDatasourcePackagesCommand)
1652
+ .build() {
1653
+ }
1654
+
1655
+ class ListGraphsCommand extends smithyClient.Command
1656
+ .classBuilder()
1657
+ .ep(commonParams)
1658
+ .m(function (Command, cs, config, o) {
1659
+ return [
1660
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1661
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1662
+ ];
1663
+ })
1664
+ .s("AmazonDetective", "ListGraphs", {})
1665
+ .n("DetectiveClient", "ListGraphsCommand")
1666
+ .f(void 0, void 0)
1667
+ .ser(se_ListGraphsCommand)
1668
+ .de(de_ListGraphsCommand)
1669
+ .build() {
1670
+ }
1671
+
1672
+ class ListIndicatorsCommand extends smithyClient.Command
1673
+ .classBuilder()
1674
+ .ep(commonParams)
1675
+ .m(function (Command, cs, config, o) {
1676
+ return [
1677
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1678
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1679
+ ];
1680
+ })
1681
+ .s("AmazonDetective", "ListIndicators", {})
1682
+ .n("DetectiveClient", "ListIndicatorsCommand")
1683
+ .f(void 0, void 0)
1684
+ .ser(se_ListIndicatorsCommand)
1685
+ .de(de_ListIndicatorsCommand)
1686
+ .build() {
1687
+ }
1688
+
1689
+ class ListInvestigationsCommand extends smithyClient.Command
1690
+ .classBuilder()
1691
+ .ep(commonParams)
1692
+ .m(function (Command, cs, config, o) {
1693
+ return [
1694
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1695
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1696
+ ];
1697
+ })
1698
+ .s("AmazonDetective", "ListInvestigations", {})
1699
+ .n("DetectiveClient", "ListInvestigationsCommand")
1700
+ .f(void 0, void 0)
1701
+ .ser(se_ListInvestigationsCommand)
1702
+ .de(de_ListInvestigationsCommand)
1703
+ .build() {
1704
+ }
1705
+
1706
+ class ListInvitationsCommand extends smithyClient.Command
1707
+ .classBuilder()
1708
+ .ep(commonParams)
1709
+ .m(function (Command, cs, config, o) {
1710
+ return [
1711
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1712
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1713
+ ];
1714
+ })
1715
+ .s("AmazonDetective", "ListInvitations", {})
1716
+ .n("DetectiveClient", "ListInvitationsCommand")
1717
+ .f(void 0, ListInvitationsResponseFilterSensitiveLog)
1718
+ .ser(se_ListInvitationsCommand)
1719
+ .de(de_ListInvitationsCommand)
1720
+ .build() {
1721
+ }
1722
+
1723
+ class ListMembersCommand extends smithyClient.Command
1724
+ .classBuilder()
1725
+ .ep(commonParams)
1726
+ .m(function (Command, cs, config, o) {
1727
+ return [
1728
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1729
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1730
+ ];
1731
+ })
1732
+ .s("AmazonDetective", "ListMembers", {})
1733
+ .n("DetectiveClient", "ListMembersCommand")
1734
+ .f(void 0, ListMembersResponseFilterSensitiveLog)
1735
+ .ser(se_ListMembersCommand)
1736
+ .de(de_ListMembersCommand)
1737
+ .build() {
1738
+ }
1739
+
1740
+ class ListOrganizationAdminAccountsCommand extends smithyClient.Command
1741
+ .classBuilder()
1742
+ .ep(commonParams)
1743
+ .m(function (Command, cs, config, o) {
1744
+ return [
1745
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1746
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1747
+ ];
1748
+ })
1749
+ .s("AmazonDetective", "ListOrganizationAdminAccounts", {})
1750
+ .n("DetectiveClient", "ListOrganizationAdminAccountsCommand")
1751
+ .f(void 0, void 0)
1752
+ .ser(se_ListOrganizationAdminAccountsCommand)
1753
+ .de(de_ListOrganizationAdminAccountsCommand)
1754
+ .build() {
1755
+ }
1756
+
1757
+ class ListTagsForResourceCommand extends smithyClient.Command
1758
+ .classBuilder()
1759
+ .ep(commonParams)
1760
+ .m(function (Command, cs, config, o) {
1761
+ return [
1762
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1763
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1764
+ ];
1765
+ })
1766
+ .s("AmazonDetective", "ListTagsForResource", {})
1767
+ .n("DetectiveClient", "ListTagsForResourceCommand")
1768
+ .f(void 0, void 0)
1769
+ .ser(se_ListTagsForResourceCommand)
1770
+ .de(de_ListTagsForResourceCommand)
1771
+ .build() {
1772
+ }
1773
+
1774
+ class RejectInvitationCommand extends smithyClient.Command
1775
+ .classBuilder()
1776
+ .ep(commonParams)
1777
+ .m(function (Command, cs, config, o) {
1778
+ return [
1779
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1780
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1781
+ ];
1782
+ })
1783
+ .s("AmazonDetective", "RejectInvitation", {})
1784
+ .n("DetectiveClient", "RejectInvitationCommand")
1785
+ .f(void 0, void 0)
1786
+ .ser(se_RejectInvitationCommand)
1787
+ .de(de_RejectInvitationCommand)
1788
+ .build() {
1789
+ }
1790
+
1791
+ class StartInvestigationCommand extends smithyClient.Command
1792
+ .classBuilder()
1793
+ .ep(commonParams)
1794
+ .m(function (Command, cs, config, o) {
1795
+ return [
1796
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1797
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1798
+ ];
1799
+ })
1800
+ .s("AmazonDetective", "StartInvestigation", {})
1801
+ .n("DetectiveClient", "StartInvestigationCommand")
1802
+ .f(void 0, void 0)
1803
+ .ser(se_StartInvestigationCommand)
1804
+ .de(de_StartInvestigationCommand)
1805
+ .build() {
1806
+ }
1807
+
1808
+ class StartMonitoringMemberCommand extends smithyClient.Command
1809
+ .classBuilder()
1810
+ .ep(commonParams)
1811
+ .m(function (Command, cs, config, o) {
1812
+ return [
1813
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1814
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1815
+ ];
1816
+ })
1817
+ .s("AmazonDetective", "StartMonitoringMember", {})
1818
+ .n("DetectiveClient", "StartMonitoringMemberCommand")
1819
+ .f(void 0, void 0)
1820
+ .ser(se_StartMonitoringMemberCommand)
1821
+ .de(de_StartMonitoringMemberCommand)
1822
+ .build() {
1823
+ }
1824
+
1825
+ class TagResourceCommand extends smithyClient.Command
1826
+ .classBuilder()
1827
+ .ep(commonParams)
1828
+ .m(function (Command, cs, config, o) {
1829
+ return [
1830
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1831
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1832
+ ];
1833
+ })
1834
+ .s("AmazonDetective", "TagResource", {})
1835
+ .n("DetectiveClient", "TagResourceCommand")
1836
+ .f(void 0, void 0)
1837
+ .ser(se_TagResourceCommand)
1838
+ .de(de_TagResourceCommand)
1839
+ .build() {
1840
+ }
1841
+
1842
+ class UntagResourceCommand extends smithyClient.Command
1843
+ .classBuilder()
1844
+ .ep(commonParams)
1845
+ .m(function (Command, cs, config, o) {
1846
+ return [
1847
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1848
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1849
+ ];
1850
+ })
1851
+ .s("AmazonDetective", "UntagResource", {})
1852
+ .n("DetectiveClient", "UntagResourceCommand")
1853
+ .f(void 0, void 0)
1854
+ .ser(se_UntagResourceCommand)
1855
+ .de(de_UntagResourceCommand)
1856
+ .build() {
1857
+ }
1858
+
1859
+ class UpdateDatasourcePackagesCommand extends smithyClient.Command
1860
+ .classBuilder()
1861
+ .ep(commonParams)
1862
+ .m(function (Command, cs, config, o) {
1863
+ return [
1864
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1865
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1866
+ ];
1867
+ })
1868
+ .s("AmazonDetective", "UpdateDatasourcePackages", {})
1869
+ .n("DetectiveClient", "UpdateDatasourcePackagesCommand")
1870
+ .f(void 0, void 0)
1871
+ .ser(se_UpdateDatasourcePackagesCommand)
1872
+ .de(de_UpdateDatasourcePackagesCommand)
1873
+ .build() {
1874
+ }
1875
+
1876
+ class UpdateInvestigationStateCommand extends smithyClient.Command
1877
+ .classBuilder()
1878
+ .ep(commonParams)
1879
+ .m(function (Command, cs, config, o) {
1880
+ return [
1881
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1882
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1883
+ ];
1884
+ })
1885
+ .s("AmazonDetective", "UpdateInvestigationState", {})
1886
+ .n("DetectiveClient", "UpdateInvestigationStateCommand")
1887
+ .f(void 0, void 0)
1888
+ .ser(se_UpdateInvestigationStateCommand)
1889
+ .de(de_UpdateInvestigationStateCommand)
1890
+ .build() {
1891
+ }
1892
+
1893
+ class UpdateOrganizationConfigurationCommand extends smithyClient.Command
1894
+ .classBuilder()
1895
+ .ep(commonParams)
1896
+ .m(function (Command, cs, config, o) {
1897
+ return [
1898
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1899
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1900
+ ];
1901
+ })
1902
+ .s("AmazonDetective", "UpdateOrganizationConfiguration", {})
1903
+ .n("DetectiveClient", "UpdateOrganizationConfigurationCommand")
1904
+ .f(void 0, void 0)
1905
+ .ser(se_UpdateOrganizationConfigurationCommand)
1906
+ .de(de_UpdateOrganizationConfigurationCommand)
1907
+ .build() {
1908
+ }
1909
+
1910
+ const commands = {
1911
+ AcceptInvitationCommand,
1912
+ BatchGetGraphMemberDatasourcesCommand,
1913
+ BatchGetMembershipDatasourcesCommand,
1914
+ CreateGraphCommand,
1915
+ CreateMembersCommand,
1916
+ DeleteGraphCommand,
1917
+ DeleteMembersCommand,
1918
+ DescribeOrganizationConfigurationCommand,
1919
+ DisableOrganizationAdminAccountCommand,
1920
+ DisassociateMembershipCommand,
1921
+ EnableOrganizationAdminAccountCommand,
1922
+ GetInvestigationCommand,
1923
+ GetMembersCommand,
1924
+ ListDatasourcePackagesCommand,
1925
+ ListGraphsCommand,
1926
+ ListIndicatorsCommand,
1927
+ ListInvestigationsCommand,
1928
+ ListInvitationsCommand,
1929
+ ListMembersCommand,
1930
+ ListOrganizationAdminAccountsCommand,
1931
+ ListTagsForResourceCommand,
1932
+ RejectInvitationCommand,
1933
+ StartInvestigationCommand,
1934
+ StartMonitoringMemberCommand,
1935
+ TagResourceCommand,
1936
+ UntagResourceCommand,
1937
+ UpdateDatasourcePackagesCommand,
1938
+ UpdateInvestigationStateCommand,
1939
+ UpdateOrganizationConfigurationCommand,
1940
+ };
1941
+ class Detective extends DetectiveClient {
1942
+ }
1943
+ smithyClient.createAggregatedClient(commands, Detective);
2117
1944
 
2118
- // src/Detective.ts
2119
- var commands = {
2120
- AcceptInvitationCommand,
2121
- BatchGetGraphMemberDatasourcesCommand,
2122
- BatchGetMembershipDatasourcesCommand,
2123
- CreateGraphCommand,
2124
- CreateMembersCommand,
2125
- DeleteGraphCommand,
2126
- DeleteMembersCommand,
2127
- DescribeOrganizationConfigurationCommand,
2128
- DisableOrganizationAdminAccountCommand,
2129
- DisassociateMembershipCommand,
2130
- EnableOrganizationAdminAccountCommand,
2131
- GetInvestigationCommand,
2132
- GetMembersCommand,
2133
- ListDatasourcePackagesCommand,
2134
- ListGraphsCommand,
2135
- ListIndicatorsCommand,
2136
- ListInvestigationsCommand,
2137
- ListInvitationsCommand,
2138
- ListMembersCommand,
2139
- ListOrganizationAdminAccountsCommand,
2140
- ListTagsForResourceCommand,
2141
- RejectInvitationCommand,
2142
- StartInvestigationCommand,
2143
- StartMonitoringMemberCommand,
2144
- TagResourceCommand,
2145
- UntagResourceCommand,
2146
- UpdateDatasourcePackagesCommand,
2147
- UpdateInvestigationStateCommand,
2148
- UpdateOrganizationConfigurationCommand
2149
- };
2150
- var Detective = class extends DetectiveClient {
2151
- static {
2152
- __name(this, "Detective");
2153
- }
2154
- };
2155
- (0, import_smithy_client.createAggregatedClient)(commands, Detective);
2156
-
2157
- // src/pagination/ListDatasourcePackagesPaginator.ts
2158
-
2159
- var paginateListDatasourcePackages = (0, import_core.createPaginator)(DetectiveClient, ListDatasourcePackagesCommand, "NextToken", "NextToken", "MaxResults");
2160
-
2161
- // src/pagination/ListGraphsPaginator.ts
2162
-
2163
- var paginateListGraphs = (0, import_core.createPaginator)(DetectiveClient, ListGraphsCommand, "NextToken", "NextToken", "MaxResults");
2164
-
2165
- // src/pagination/ListInvitationsPaginator.ts
2166
-
2167
- var paginateListInvitations = (0, import_core.createPaginator)(DetectiveClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
1945
+ const paginateListDatasourcePackages = core.createPaginator(DetectiveClient, ListDatasourcePackagesCommand, "NextToken", "NextToken", "MaxResults");
2168
1946
 
2169
- // src/pagination/ListMembersPaginator.ts
1947
+ const paginateListGraphs = core.createPaginator(DetectiveClient, ListGraphsCommand, "NextToken", "NextToken", "MaxResults");
2170
1948
 
2171
- var paginateListMembers = (0, import_core.createPaginator)(DetectiveClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
1949
+ const paginateListInvitations = core.createPaginator(DetectiveClient, ListInvitationsCommand, "NextToken", "NextToken", "MaxResults");
2172
1950
 
2173
- // src/pagination/ListOrganizationAdminAccountsPaginator.ts
1951
+ const paginateListMembers = core.createPaginator(DetectiveClient, ListMembersCommand, "NextToken", "NextToken", "MaxResults");
2174
1952
 
2175
- var paginateListOrganizationAdminAccounts = (0, import_core.createPaginator)(DetectiveClient, ListOrganizationAdminAccountsCommand, "NextToken", "NextToken", "MaxResults");
2176
- // Annotate the CommonJS export names for ESM import in node:
1953
+ const paginateListOrganizationAdminAccounts = core.createPaginator(DetectiveClient, ListOrganizationAdminAccountsCommand, "NextToken", "NextToken", "MaxResults");
2177
1954
 
2178
- 0 && (module.exports = {
2179
- DetectiveServiceException,
2180
- __Client,
2181
- DetectiveClient,
2182
- Detective,
2183
- $Command,
2184
- AcceptInvitationCommand,
2185
- BatchGetGraphMemberDatasourcesCommand,
2186
- BatchGetMembershipDatasourcesCommand,
2187
- CreateGraphCommand,
2188
- CreateMembersCommand,
2189
- DeleteGraphCommand,
2190
- DeleteMembersCommand,
2191
- DescribeOrganizationConfigurationCommand,
2192
- DisableOrganizationAdminAccountCommand,
2193
- DisassociateMembershipCommand,
2194
- EnableOrganizationAdminAccountCommand,
2195
- GetInvestigationCommand,
2196
- GetMembersCommand,
2197
- ListDatasourcePackagesCommand,
2198
- ListGraphsCommand,
2199
- ListIndicatorsCommand,
2200
- ListInvestigationsCommand,
2201
- ListInvitationsCommand,
2202
- ListMembersCommand,
2203
- ListOrganizationAdminAccountsCommand,
2204
- ListTagsForResourceCommand,
2205
- RejectInvitationCommand,
2206
- StartInvestigationCommand,
2207
- StartMonitoringMemberCommand,
2208
- TagResourceCommand,
2209
- UntagResourceCommand,
2210
- UpdateDatasourcePackagesCommand,
2211
- UpdateInvestigationStateCommand,
2212
- UpdateOrganizationConfigurationCommand,
2213
- paginateListDatasourcePackages,
2214
- paginateListGraphs,
2215
- paginateListInvitations,
2216
- paginateListMembers,
2217
- paginateListOrganizationAdminAccounts,
2218
- ErrorCode,
2219
- AccessDeniedException,
2220
- ConflictException,
2221
- InternalServerException,
2222
- ResourceNotFoundException,
2223
- ValidationException,
2224
- DatasourcePackage,
2225
- DatasourcePackageIngestState,
2226
- ServiceQuotaExceededException,
2227
- MemberDisabledReason,
2228
- InvitationType,
2229
- MemberStatus,
2230
- TooManyRequestsException,
2231
- EntityType,
2232
- Severity,
2233
- State,
2234
- Status,
2235
- IndicatorType,
2236
- Reason,
2237
- Field,
2238
- SortOrder,
2239
- AccountFilterSensitiveLog,
2240
- CreateMembersRequestFilterSensitiveLog,
2241
- MemberDetailFilterSensitiveLog,
2242
- CreateMembersResponseFilterSensitiveLog,
2243
- GetMembersResponseFilterSensitiveLog,
2244
- ListInvitationsResponseFilterSensitiveLog,
2245
- ListMembersResponseFilterSensitiveLog
1955
+ Object.defineProperty(exports, "$Command", {
1956
+ enumerable: true,
1957
+ get: function () { return smithyClient.Command; }
2246
1958
  });
2247
-
1959
+ Object.defineProperty(exports, "__Client", {
1960
+ enumerable: true,
1961
+ get: function () { return smithyClient.Client; }
1962
+ });
1963
+ exports.AcceptInvitationCommand = AcceptInvitationCommand;
1964
+ exports.AccessDeniedException = AccessDeniedException;
1965
+ exports.AccountFilterSensitiveLog = AccountFilterSensitiveLog;
1966
+ exports.BatchGetGraphMemberDatasourcesCommand = BatchGetGraphMemberDatasourcesCommand;
1967
+ exports.BatchGetMembershipDatasourcesCommand = BatchGetMembershipDatasourcesCommand;
1968
+ exports.ConflictException = ConflictException;
1969
+ exports.CreateGraphCommand = CreateGraphCommand;
1970
+ exports.CreateMembersCommand = CreateMembersCommand;
1971
+ exports.CreateMembersRequestFilterSensitiveLog = CreateMembersRequestFilterSensitiveLog;
1972
+ exports.CreateMembersResponseFilterSensitiveLog = CreateMembersResponseFilterSensitiveLog;
1973
+ exports.DatasourcePackage = DatasourcePackage;
1974
+ exports.DatasourcePackageIngestState = DatasourcePackageIngestState;
1975
+ exports.DeleteGraphCommand = DeleteGraphCommand;
1976
+ exports.DeleteMembersCommand = DeleteMembersCommand;
1977
+ exports.DescribeOrganizationConfigurationCommand = DescribeOrganizationConfigurationCommand;
1978
+ exports.Detective = Detective;
1979
+ exports.DetectiveClient = DetectiveClient;
1980
+ exports.DetectiveServiceException = DetectiveServiceException;
1981
+ exports.DisableOrganizationAdminAccountCommand = DisableOrganizationAdminAccountCommand;
1982
+ exports.DisassociateMembershipCommand = DisassociateMembershipCommand;
1983
+ exports.EnableOrganizationAdminAccountCommand = EnableOrganizationAdminAccountCommand;
1984
+ exports.EntityType = EntityType;
1985
+ exports.ErrorCode = ErrorCode;
1986
+ exports.Field = Field;
1987
+ exports.GetInvestigationCommand = GetInvestigationCommand;
1988
+ exports.GetMembersCommand = GetMembersCommand;
1989
+ exports.GetMembersResponseFilterSensitiveLog = GetMembersResponseFilterSensitiveLog;
1990
+ exports.IndicatorType = IndicatorType;
1991
+ exports.InternalServerException = InternalServerException;
1992
+ exports.InvitationType = InvitationType;
1993
+ exports.ListDatasourcePackagesCommand = ListDatasourcePackagesCommand;
1994
+ exports.ListGraphsCommand = ListGraphsCommand;
1995
+ exports.ListIndicatorsCommand = ListIndicatorsCommand;
1996
+ exports.ListInvestigationsCommand = ListInvestigationsCommand;
1997
+ exports.ListInvitationsCommand = ListInvitationsCommand;
1998
+ exports.ListInvitationsResponseFilterSensitiveLog = ListInvitationsResponseFilterSensitiveLog;
1999
+ exports.ListMembersCommand = ListMembersCommand;
2000
+ exports.ListMembersResponseFilterSensitiveLog = ListMembersResponseFilterSensitiveLog;
2001
+ exports.ListOrganizationAdminAccountsCommand = ListOrganizationAdminAccountsCommand;
2002
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2003
+ exports.MemberDetailFilterSensitiveLog = MemberDetailFilterSensitiveLog;
2004
+ exports.MemberDisabledReason = MemberDisabledReason;
2005
+ exports.MemberStatus = MemberStatus;
2006
+ exports.Reason = Reason;
2007
+ exports.RejectInvitationCommand = RejectInvitationCommand;
2008
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2009
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
2010
+ exports.Severity = Severity;
2011
+ exports.SortOrder = SortOrder;
2012
+ exports.StartInvestigationCommand = StartInvestigationCommand;
2013
+ exports.StartMonitoringMemberCommand = StartMonitoringMemberCommand;
2014
+ exports.State = State;
2015
+ exports.Status = Status;
2016
+ exports.TagResourceCommand = TagResourceCommand;
2017
+ exports.TooManyRequestsException = TooManyRequestsException;
2018
+ exports.UntagResourceCommand = UntagResourceCommand;
2019
+ exports.UpdateDatasourcePackagesCommand = UpdateDatasourcePackagesCommand;
2020
+ exports.UpdateInvestigationStateCommand = UpdateInvestigationStateCommand;
2021
+ exports.UpdateOrganizationConfigurationCommand = UpdateOrganizationConfigurationCommand;
2022
+ exports.ValidationException = ValidationException;
2023
+ exports.paginateListDatasourcePackages = paginateListDatasourcePackages;
2024
+ exports.paginateListGraphs = paginateListGraphs;
2025
+ exports.paginateListInvitations = paginateListInvitations;
2026
+ exports.paginateListMembers = paginateListMembers;
2027
+ exports.paginateListOrganizationAdminAccounts = paginateListOrganizationAdminAccounts;