@aws-sdk/client-detective 3.186.0 → 3.188.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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Detective.js +98 -105
  3. package/dist-es/DetectiveClient.js +22 -28
  4. package/dist-es/commands/AcceptInvitationCommand.js +22 -29
  5. package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +21 -28
  6. package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +21 -28
  7. package/dist-es/commands/CreateGraphCommand.js +21 -28
  8. package/dist-es/commands/CreateMembersCommand.js +21 -28
  9. package/dist-es/commands/DeleteGraphCommand.js +22 -29
  10. package/dist-es/commands/DeleteMembersCommand.js +21 -28
  11. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
  12. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +23 -30
  13. package/dist-es/commands/DisassociateMembershipCommand.js +22 -29
  14. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +22 -29
  15. package/dist-es/commands/GetMembersCommand.js +21 -28
  16. package/dist-es/commands/ListDatasourcePackagesCommand.js +21 -28
  17. package/dist-es/commands/ListGraphsCommand.js +21 -28
  18. package/dist-es/commands/ListInvitationsCommand.js +21 -28
  19. package/dist-es/commands/ListMembersCommand.js +21 -28
  20. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
  21. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  22. package/dist-es/commands/RejectInvitationCommand.js +22 -29
  23. package/dist-es/commands/StartMonitoringMemberCommand.js +22 -29
  24. package/dist-es/commands/TagResourceCommand.js +21 -28
  25. package/dist-es/commands/UntagResourceCommand.js +21 -28
  26. package/dist-es/commands/UpdateDatasourcePackagesCommand.js +22 -29
  27. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +22 -29
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/DetectiveServiceException.js +5 -10
  30. package/dist-es/models/models_0.js +219 -124
  31. package/dist-es/pagination/ListDatasourcePackagesPaginator.js +25 -68
  32. package/dist-es/pagination/ListGraphsPaginator.js +25 -68
  33. package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
  34. package/dist-es/pagination/ListMembersPaginator.js +25 -68
  35. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
  36. package/dist-es/protocols/Aws_restJson1.js +1605 -2284
  37. package/dist-es/runtimeConfig.browser.js +26 -12
  38. package/dist-es/runtimeConfig.js +30 -12
  39. package/dist-es/runtimeConfig.native.js +8 -5
  40. package/dist-es/runtimeConfig.shared.js +8 -11
  41. package/package.json +33 -33
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { BatchGetGraphMemberDatasourcesRequestFilterSensitiveLog, BatchGetGraphMemberDatasourcesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand, serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand, } from "../protocols/Aws_restJson1";
6
- var BatchGetGraphMemberDatasourcesCommand = (function (_super) {
7
- __extends(BatchGetGraphMemberDatasourcesCommand, _super);
8
- function BatchGetGraphMemberDatasourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchGetGraphMemberDatasourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchGetGraphMemberDatasourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "BatchGetGraphMemberDatasourcesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "BatchGetGraphMemberDatasourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchGetGraphMemberDatasourcesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchGetGraphMemberDatasourcesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchGetGraphMemberDatasourcesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1BatchGetGraphMemberDatasourcesCommand(input, context);
33
- };
34
- BatchGetGraphMemberDatasourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1BatchGetGraphMemberDatasourcesCommand(output, context);
36
- };
37
- return BatchGetGraphMemberDatasourcesCommand;
38
- }($Command));
39
- export { BatchGetGraphMemberDatasourcesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { BatchGetMembershipDatasourcesRequestFilterSensitiveLog, BatchGetMembershipDatasourcesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1BatchGetMembershipDatasourcesCommand, serializeAws_restJson1BatchGetMembershipDatasourcesCommand, } from "../protocols/Aws_restJson1";
6
- var BatchGetMembershipDatasourcesCommand = (function (_super) {
7
- __extends(BatchGetMembershipDatasourcesCommand, _super);
8
- function BatchGetMembershipDatasourcesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class BatchGetMembershipDatasourcesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- BatchGetMembershipDatasourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "BatchGetMembershipDatasourcesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "BatchGetMembershipDatasourcesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: BatchGetMembershipDatasourcesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: BatchGetMembershipDatasourcesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- BatchGetMembershipDatasourcesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1BatchGetMembershipDatasourcesCommand(input, context);
33
- };
34
- BatchGetMembershipDatasourcesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1BatchGetMembershipDatasourcesCommand(output, context);
36
- };
37
- return BatchGetMembershipDatasourcesCommand;
38
- }($Command));
39
- export { BatchGetMembershipDatasourcesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateGraphRequestFilterSensitiveLog, CreateGraphResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateGraphCommand, serializeAws_restJson1CreateGraphCommand, } from "../protocols/Aws_restJson1";
6
- var CreateGraphCommand = (function (_super) {
7
- __extends(CreateGraphCommand, _super);
8
- function CreateGraphCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateGraphCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateGraphCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "CreateGraphCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "CreateGraphCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateGraphRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateGraphResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateGraphCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateGraphCommand(input, context);
33
- };
34
- CreateGraphCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateGraphCommand(output, context);
36
- };
37
- return CreateGraphCommand;
38
- }($Command));
39
- export { CreateGraphCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateMembersRequestFilterSensitiveLog, CreateMembersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateMembersCommand, serializeAws_restJson1CreateMembersCommand, } from "../protocols/Aws_restJson1";
6
- var CreateMembersCommand = (function (_super) {
7
- __extends(CreateMembersCommand, _super);
8
- function CreateMembersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateMembersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateMembersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "CreateMembersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "CreateMembersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateMembersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateMembersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateMembersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateMembersCommand(input, context);
33
- };
34
- CreateMembersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateMembersCommand(output, context);
36
- };
37
- return CreateMembersCommand;
38
- }($Command));
39
- export { CreateMembersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteGraphRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteGraphCommand, serializeAws_restJson1DeleteGraphCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteGraphCommand = (function (_super) {
7
- __extends(DeleteGraphCommand, _super);
8
- function DeleteGraphCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteGraphCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteGraphCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "DeleteGraphCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "DeleteGraphCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteGraphRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteGraphCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteGraphCommand(input, context);
33
- };
34
- DeleteGraphCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteGraphCommand(output, context);
36
- };
37
- return DeleteGraphCommand;
38
- }($Command));
39
- export { DeleteGraphCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteMembersRequestFilterSensitiveLog, DeleteMembersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteMembersCommand, serializeAws_restJson1DeleteMembersCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteMembersCommand = (function (_super) {
7
- __extends(DeleteMembersCommand, _super);
8
- function DeleteMembersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteMembersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteMembersCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "DeleteMembersCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "DeleteMembersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteMembersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteMembersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteMembersCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteMembersCommand(input, context);
33
- };
34
- DeleteMembersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteMembersCommand(output, context);
36
- };
37
- return DeleteMembersCommand;
38
- }($Command));
39
- export { DeleteMembersCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DescribeOrganizationConfigurationRequestFilterSensitiveLog, DescribeOrganizationConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DescribeOrganizationConfigurationCommand, serializeAws_restJson1DescribeOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var DescribeOrganizationConfigurationCommand = (function (_super) {
7
- __extends(DescribeOrganizationConfigurationCommand, _super);
8
- function DescribeOrganizationConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeOrganizationConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeOrganizationConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "DescribeOrganizationConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "DescribeOrganizationConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeOrganizationConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeOrganizationConfigurationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeOrganizationConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DescribeOrganizationConfigurationCommand(input, context);
33
- };
34
- DescribeOrganizationConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DescribeOrganizationConfigurationCommand(output, context);
36
- };
37
- return DescribeOrganizationConfigurationCommand;
38
- }($Command));
39
- export { DescribeOrganizationConfigurationCommand };
31
+ }
32
+ }
@@ -1,38 +1,31 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { deserializeAws_restJson1DisableOrganizationAdminAccountCommand, serializeAws_restJson1DisableOrganizationAdminAccountCommand, } from "../protocols/Aws_restJson1";
5
- var DisableOrganizationAdminAccountCommand = (function (_super) {
6
- __extends(DisableOrganizationAdminAccountCommand, _super);
7
- function DisableOrganizationAdminAccountCommand(input) {
8
- var _this = _super.call(this) || this;
9
- _this.input = input;
10
- return _this;
4
+ export class DisableOrganizationAdminAccountCommand extends $Command {
5
+ constructor(input) {
6
+ super();
7
+ this.input = input;
11
8
  }
12
- DisableOrganizationAdminAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
9
+ resolveMiddleware(clientStack, configuration, options) {
13
10
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
14
- var stack = clientStack.concat(this.middlewareStack);
15
- var logger = configuration.logger;
16
- var clientName = "DetectiveClient";
17
- var commandName = "DisableOrganizationAdminAccountCommand";
18
- var handlerExecutionContext = {
19
- logger: logger,
20
- clientName: clientName,
21
- commandName: commandName,
22
- inputFilterSensitiveLog: function (input) { return input; },
23
- outputFilterSensitiveLog: function (output) { return output; },
11
+ const stack = clientStack.concat(this.middlewareStack);
12
+ const { logger } = configuration;
13
+ const clientName = "DetectiveClient";
14
+ const commandName = "DisableOrganizationAdminAccountCommand";
15
+ const handlerExecutionContext = {
16
+ logger,
17
+ clientName,
18
+ commandName,
19
+ inputFilterSensitiveLog: (input) => input,
20
+ outputFilterSensitiveLog: (output) => output,
24
21
  };
25
- var requestHandler = configuration.requestHandler;
26
- return stack.resolve(function (request) {
27
- return requestHandler.handle(request.request, options || {});
28
- }, handlerExecutionContext);
29
- };
30
- DisableOrganizationAdminAccountCommand.prototype.serialize = function (input, context) {
22
+ const { requestHandler } = configuration;
23
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
24
+ }
25
+ serialize(input, context) {
31
26
  return serializeAws_restJson1DisableOrganizationAdminAccountCommand(input, context);
32
- };
33
- DisableOrganizationAdminAccountCommand.prototype.deserialize = function (output, context) {
27
+ }
28
+ deserialize(output, context) {
34
29
  return deserializeAws_restJson1DisableOrganizationAdminAccountCommand(output, context);
35
- };
36
- return DisableOrganizationAdminAccountCommand;
37
- }($Command));
38
- export { DisableOrganizationAdminAccountCommand };
30
+ }
31
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DisassociateMembershipRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisassociateMembershipCommand, serializeAws_restJson1DisassociateMembershipCommand, } from "../protocols/Aws_restJson1";
6
- var DisassociateMembershipCommand = (function (_super) {
7
- __extends(DisassociateMembershipCommand, _super);
8
- function DisassociateMembershipCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateMembershipCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateMembershipCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "DisassociateMembershipCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "DisassociateMembershipCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateMembershipRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateMembershipCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DisassociateMembershipCommand(input, context);
33
- };
34
- DisassociateMembershipCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisassociateMembershipCommand(output, context);
36
- };
37
- return DisassociateMembershipCommand;
38
- }($Command));
39
- export { DisassociateMembershipCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { EnableOrganizationAdminAccountRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1EnableOrganizationAdminAccountCommand, serializeAws_restJson1EnableOrganizationAdminAccountCommand, } from "../protocols/Aws_restJson1";
6
- var EnableOrganizationAdminAccountCommand = (function (_super) {
7
- __extends(EnableOrganizationAdminAccountCommand, _super);
8
- function EnableOrganizationAdminAccountCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class EnableOrganizationAdminAccountCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- EnableOrganizationAdminAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "DetectiveClient";
18
- var commandName = "EnableOrganizationAdminAccountCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "DetectiveClient";
15
+ const commandName = "EnableOrganizationAdminAccountCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: EnableOrganizationAdminAccountRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- EnableOrganizationAdminAccountCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1EnableOrganizationAdminAccountCommand(input, context);
33
- };
34
- EnableOrganizationAdminAccountCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1EnableOrganizationAdminAccountCommand(output, context);
36
- };
37
- return EnableOrganizationAdminAccountCommand;
38
- }($Command));
39
- export { EnableOrganizationAdminAccountCommand };
31
+ }
32
+ }