@aws-sdk/client-securitylake 3.477.0 → 3.481.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 (145) hide show
  1. package/dist-cjs/commands/CreateAwsLogSourceCommand.js +18 -41
  2. package/dist-cjs/commands/CreateCustomLogSourceCommand.js +18 -41
  3. package/dist-cjs/commands/CreateDataLakeCommand.js +18 -41
  4. package/dist-cjs/commands/CreateDataLakeExceptionSubscriptionCommand.js +18 -41
  5. package/dist-cjs/commands/CreateDataLakeOrganizationConfigurationCommand.js +18 -41
  6. package/dist-cjs/commands/CreateSubscriberCommand.js +18 -41
  7. package/dist-cjs/commands/CreateSubscriberNotificationCommand.js +18 -41
  8. package/dist-cjs/commands/DeleteAwsLogSourceCommand.js +18 -41
  9. package/dist-cjs/commands/DeleteCustomLogSourceCommand.js +18 -41
  10. package/dist-cjs/commands/DeleteDataLakeCommand.js +18 -41
  11. package/dist-cjs/commands/DeleteDataLakeExceptionSubscriptionCommand.js +18 -41
  12. package/dist-cjs/commands/DeleteDataLakeOrganizationConfigurationCommand.js +18 -41
  13. package/dist-cjs/commands/DeleteSubscriberCommand.js +18 -41
  14. package/dist-cjs/commands/DeleteSubscriberNotificationCommand.js +18 -41
  15. package/dist-cjs/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +18 -41
  16. package/dist-cjs/commands/GetDataLakeExceptionSubscriptionCommand.js +18 -41
  17. package/dist-cjs/commands/GetDataLakeOrganizationConfigurationCommand.js +18 -41
  18. package/dist-cjs/commands/GetDataLakeSourcesCommand.js +18 -41
  19. package/dist-cjs/commands/GetSubscriberCommand.js +18 -41
  20. package/dist-cjs/commands/ListDataLakeExceptionsCommand.js +18 -41
  21. package/dist-cjs/commands/ListDataLakesCommand.js +18 -41
  22. package/dist-cjs/commands/ListLogSourcesCommand.js +18 -41
  23. package/dist-cjs/commands/ListSubscribersCommand.js +18 -41
  24. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  25. package/dist-cjs/commands/RegisterDataLakeDelegatedAdministratorCommand.js +18 -41
  26. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  27. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  28. package/dist-cjs/commands/UpdateDataLakeCommand.js +18 -41
  29. package/dist-cjs/commands/UpdateDataLakeExceptionSubscriptionCommand.js +18 -41
  30. package/dist-cjs/commands/UpdateSubscriberCommand.js +18 -41
  31. package/dist-cjs/commands/UpdateSubscriberNotificationCommand.js +18 -41
  32. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  33. package/dist-cjs/pagination/GetDataLakeSourcesPaginator.js +2 -24
  34. package/dist-cjs/pagination/ListDataLakeExceptionsPaginator.js +2 -24
  35. package/dist-cjs/pagination/ListLogSourcesPaginator.js +2 -24
  36. package/dist-cjs/pagination/ListSubscribersPaginator.js +2 -24
  37. package/dist-es/commands/CreateAwsLogSourceCommand.js +18 -41
  38. package/dist-es/commands/CreateCustomLogSourceCommand.js +18 -41
  39. package/dist-es/commands/CreateDataLakeCommand.js +18 -41
  40. package/dist-es/commands/CreateDataLakeExceptionSubscriptionCommand.js +18 -41
  41. package/dist-es/commands/CreateDataLakeOrganizationConfigurationCommand.js +18 -41
  42. package/dist-es/commands/CreateSubscriberCommand.js +18 -41
  43. package/dist-es/commands/CreateSubscriberNotificationCommand.js +18 -41
  44. package/dist-es/commands/DeleteAwsLogSourceCommand.js +18 -41
  45. package/dist-es/commands/DeleteCustomLogSourceCommand.js +18 -41
  46. package/dist-es/commands/DeleteDataLakeCommand.js +18 -41
  47. package/dist-es/commands/DeleteDataLakeExceptionSubscriptionCommand.js +18 -41
  48. package/dist-es/commands/DeleteDataLakeOrganizationConfigurationCommand.js +18 -41
  49. package/dist-es/commands/DeleteSubscriberCommand.js +18 -41
  50. package/dist-es/commands/DeleteSubscriberNotificationCommand.js +18 -41
  51. package/dist-es/commands/DeregisterDataLakeDelegatedAdministratorCommand.js +18 -41
  52. package/dist-es/commands/GetDataLakeExceptionSubscriptionCommand.js +18 -41
  53. package/dist-es/commands/GetDataLakeOrganizationConfigurationCommand.js +18 -41
  54. package/dist-es/commands/GetDataLakeSourcesCommand.js +18 -41
  55. package/dist-es/commands/GetSubscriberCommand.js +18 -41
  56. package/dist-es/commands/ListDataLakeExceptionsCommand.js +18 -41
  57. package/dist-es/commands/ListDataLakesCommand.js +18 -41
  58. package/dist-es/commands/ListLogSourcesCommand.js +18 -41
  59. package/dist-es/commands/ListSubscribersCommand.js +18 -41
  60. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  61. package/dist-es/commands/RegisterDataLakeDelegatedAdministratorCommand.js +18 -41
  62. package/dist-es/commands/TagResourceCommand.js +18 -41
  63. package/dist-es/commands/UntagResourceCommand.js +18 -41
  64. package/dist-es/commands/UpdateDataLakeCommand.js +18 -41
  65. package/dist-es/commands/UpdateDataLakeExceptionSubscriptionCommand.js +18 -41
  66. package/dist-es/commands/UpdateSubscriberCommand.js +18 -41
  67. package/dist-es/commands/UpdateSubscriberNotificationCommand.js +18 -41
  68. package/dist-es/endpoint/EndpointParameters.js +6 -0
  69. package/dist-es/pagination/GetDataLakeSourcesPaginator.js +2 -23
  70. package/dist-es/pagination/ListDataLakeExceptionsPaginator.js +2 -23
  71. package/dist-es/pagination/ListLogSourcesPaginator.js +2 -23
  72. package/dist-es/pagination/ListSubscribersPaginator.js +2 -23
  73. package/dist-types/commands/CreateAwsLogSourceCommand.d.ts +6 -21
  74. package/dist-types/commands/CreateCustomLogSourceCommand.d.ts +6 -21
  75. package/dist-types/commands/CreateDataLakeCommand.d.ts +6 -21
  76. package/dist-types/commands/CreateDataLakeExceptionSubscriptionCommand.d.ts +6 -21
  77. package/dist-types/commands/CreateDataLakeOrganizationConfigurationCommand.d.ts +6 -21
  78. package/dist-types/commands/CreateSubscriberCommand.d.ts +6 -21
  79. package/dist-types/commands/CreateSubscriberNotificationCommand.d.ts +6 -21
  80. package/dist-types/commands/DeleteAwsLogSourceCommand.d.ts +6 -21
  81. package/dist-types/commands/DeleteCustomLogSourceCommand.d.ts +6 -21
  82. package/dist-types/commands/DeleteDataLakeCommand.d.ts +6 -21
  83. package/dist-types/commands/DeleteDataLakeExceptionSubscriptionCommand.d.ts +6 -21
  84. package/dist-types/commands/DeleteDataLakeOrganizationConfigurationCommand.d.ts +6 -21
  85. package/dist-types/commands/DeleteSubscriberCommand.d.ts +6 -21
  86. package/dist-types/commands/DeleteSubscriberNotificationCommand.d.ts +6 -21
  87. package/dist-types/commands/DeregisterDataLakeDelegatedAdministratorCommand.d.ts +6 -21
  88. package/dist-types/commands/GetDataLakeExceptionSubscriptionCommand.d.ts +6 -21
  89. package/dist-types/commands/GetDataLakeOrganizationConfigurationCommand.d.ts +6 -21
  90. package/dist-types/commands/GetDataLakeSourcesCommand.d.ts +6 -21
  91. package/dist-types/commands/GetSubscriberCommand.d.ts +6 -21
  92. package/dist-types/commands/ListDataLakeExceptionsCommand.d.ts +6 -21
  93. package/dist-types/commands/ListDataLakesCommand.d.ts +6 -21
  94. package/dist-types/commands/ListLogSourcesCommand.d.ts +6 -21
  95. package/dist-types/commands/ListSubscribersCommand.d.ts +6 -21
  96. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  97. package/dist-types/commands/RegisterDataLakeDelegatedAdministratorCommand.d.ts +6 -21
  98. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  99. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  100. package/dist-types/commands/UpdateDataLakeCommand.d.ts +6 -21
  101. package/dist-types/commands/UpdateDataLakeExceptionSubscriptionCommand.d.ts +6 -21
  102. package/dist-types/commands/UpdateSubscriberCommand.d.ts +6 -21
  103. package/dist-types/commands/UpdateSubscriberNotificationCommand.d.ts +6 -21
  104. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  105. package/dist-types/pagination/GetDataLakeSourcesPaginator.d.ts +1 -1
  106. package/dist-types/pagination/ListDataLakeExceptionsPaginator.d.ts +1 -1
  107. package/dist-types/pagination/ListLogSourcesPaginator.d.ts +1 -1
  108. package/dist-types/pagination/ListSubscribersPaginator.d.ts +1 -1
  109. package/dist-types/ts3.4/commands/CreateAwsLogSourceCommand.d.ts +14 -23
  110. package/dist-types/ts3.4/commands/CreateCustomLogSourceCommand.d.ts +12 -24
  111. package/dist-types/ts3.4/commands/CreateDataLakeCommand.d.ts +14 -23
  112. package/dist-types/ts3.4/commands/CreateDataLakeExceptionSubscriptionCommand.d.ts +12 -24
  113. package/dist-types/ts3.4/commands/CreateDataLakeOrganizationConfigurationCommand.d.ts +12 -24
  114. package/dist-types/ts3.4/commands/CreateSubscriberCommand.d.ts +14 -23
  115. package/dist-types/ts3.4/commands/CreateSubscriberNotificationCommand.d.ts +12 -24
  116. package/dist-types/ts3.4/commands/DeleteAwsLogSourceCommand.d.ts +14 -23
  117. package/dist-types/ts3.4/commands/DeleteCustomLogSourceCommand.d.ts +12 -24
  118. package/dist-types/ts3.4/commands/DeleteDataLakeCommand.d.ts +14 -23
  119. package/dist-types/ts3.4/commands/DeleteDataLakeExceptionSubscriptionCommand.d.ts +12 -24
  120. package/dist-types/ts3.4/commands/DeleteDataLakeOrganizationConfigurationCommand.d.ts +12 -24
  121. package/dist-types/ts3.4/commands/DeleteSubscriberCommand.d.ts +14 -23
  122. package/dist-types/ts3.4/commands/DeleteSubscriberNotificationCommand.d.ts +12 -24
  123. package/dist-types/ts3.4/commands/DeregisterDataLakeDelegatedAdministratorCommand.d.ts +12 -24
  124. package/dist-types/ts3.4/commands/GetDataLakeExceptionSubscriptionCommand.d.ts +12 -24
  125. package/dist-types/ts3.4/commands/GetDataLakeOrganizationConfigurationCommand.d.ts +12 -24
  126. package/dist-types/ts3.4/commands/GetDataLakeSourcesCommand.d.ts +14 -23
  127. package/dist-types/ts3.4/commands/GetSubscriberCommand.d.ts +14 -23
  128. package/dist-types/ts3.4/commands/ListDataLakeExceptionsCommand.d.ts +12 -24
  129. package/dist-types/ts3.4/commands/ListDataLakesCommand.d.ts +14 -23
  130. package/dist-types/ts3.4/commands/ListLogSourcesCommand.d.ts +14 -23
  131. package/dist-types/ts3.4/commands/ListSubscribersCommand.d.ts +14 -23
  132. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  133. package/dist-types/ts3.4/commands/RegisterDataLakeDelegatedAdministratorCommand.d.ts +12 -24
  134. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  135. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  136. package/dist-types/ts3.4/commands/UpdateDataLakeCommand.d.ts +14 -23
  137. package/dist-types/ts3.4/commands/UpdateDataLakeExceptionSubscriptionCommand.d.ts +12 -24
  138. package/dist-types/ts3.4/commands/UpdateSubscriberCommand.d.ts +14 -23
  139. package/dist-types/ts3.4/commands/UpdateSubscriberNotificationCommand.d.ts +12 -24
  140. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  141. package/dist-types/ts3.4/pagination/GetDataLakeSourcesPaginator.d.ts +3 -3
  142. package/dist-types/ts3.4/pagination/ListDataLakeExceptionsPaginator.d.ts +3 -3
  143. package/dist-types/ts3.4/pagination/ListLogSourcesPaginator.d.ts +3 -3
  144. package/dist-types/ts3.4/pagination/ListSubscribersPaginator.d.ts +3 -3
  145. package/package.json +11 -11
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateDataLakeCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDataLakeCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "SecurityLakeClient";
29
- const commandName = "UpdateDataLakeCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "SecurityLake",
38
- operation: "UpdateDataLake",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateDataLakeCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateDataLakeCommand)(output, context);
49
- }
10
+ class UpdateDataLakeCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("SecurityLake", "UpdateDataLake", {})
22
+ .n("SecurityLakeClient", "UpdateDataLakeCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateDataLakeCommand)
25
+ .de(Aws_restJson1_1.de_UpdateDataLakeCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateDataLakeCommand = UpdateDataLakeCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateDataLakeExceptionSubscriptionCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDataLakeExceptionSubscriptionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "SecurityLakeClient";
29
- const commandName = "UpdateDataLakeExceptionSubscriptionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "SecurityLake",
38
- operation: "UpdateDataLakeExceptionSubscription",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateDataLakeExceptionSubscriptionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateDataLakeExceptionSubscriptionCommand)(output, context);
49
- }
10
+ class UpdateDataLakeExceptionSubscriptionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("SecurityLake", "UpdateDataLakeExceptionSubscription", {})
22
+ .n("SecurityLakeClient", "UpdateDataLakeExceptionSubscriptionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateDataLakeExceptionSubscriptionCommand)
25
+ .de(Aws_restJson1_1.de_UpdateDataLakeExceptionSubscriptionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateDataLakeExceptionSubscriptionCommand = UpdateDataLakeExceptionSubscriptionCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateSubscriberCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateSubscriberCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "SecurityLakeClient";
29
- const commandName = "UpdateSubscriberCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "SecurityLake",
38
- operation: "UpdateSubscriber",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateSubscriberCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateSubscriberCommand)(output, context);
49
- }
10
+ class UpdateSubscriberCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("SecurityLake", "UpdateSubscriber", {})
22
+ .n("SecurityLakeClient", "UpdateSubscriberCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateSubscriberCommand)
25
+ .de(Aws_restJson1_1.de_UpdateSubscriberCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateSubscriberCommand = UpdateSubscriberCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateSubscriberNotificationCommand extends smithy_client_1.Command {
11
- static getEndpointParameterInstructions() {
12
- return {
13
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
- Endpoint: { type: "builtInParams", name: "endpoint" },
15
- Region: { type: "builtInParams", name: "region" },
16
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
- };
18
- }
19
- constructor(input) {
20
- super();
21
- this.input = input;
22
- }
23
- resolveMiddleware(clientStack, configuration, options) {
24
- this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
- this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateSubscriberNotificationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "SecurityLakeClient";
29
- const commandName = "UpdateSubscriberNotificationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "SecurityLake",
38
- operation: "UpdateSubscriberNotification",
39
- },
40
- };
41
- const { requestHandler } = configuration;
42
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
- }
44
- serialize(input, context) {
45
- return (0, Aws_restJson1_1.se_UpdateSubscriberNotificationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateSubscriberNotificationCommand)(output, context);
49
- }
10
+ class UpdateSubscriberNotificationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("SecurityLake", "UpdateSubscriberNotification", {})
22
+ .n("SecurityLakeClient", "UpdateSubscriberNotificationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateSubscriberNotificationCommand)
25
+ .de(Aws_restJson1_1.de_UpdateSubscriberNotificationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateSubscriberNotificationCommand = UpdateSubscriberNotificationCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetDataLakeSources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetDataLakeSourcesCommand_1 = require("../commands/GetDataLakeSourcesCommand");
5
6
  const SecurityLakeClient_1 = require("../SecurityLakeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetDataLakeSourcesCommand_1.GetDataLakeSourcesCommand(input), ...args);
8
- };
9
- async function* paginateGetDataLakeSources(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateGetDataLakeSources = paginateGetDataLakeSources;
7
+ exports.paginateGetDataLakeSources = (0, core_1.createPaginator)(SecurityLakeClient_1.SecurityLakeClient, GetDataLakeSourcesCommand_1.GetDataLakeSourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDataLakeExceptions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListDataLakeExceptionsCommand_1 = require("../commands/ListDataLakeExceptionsCommand");
5
6
  const SecurityLakeClient_1 = require("../SecurityLakeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDataLakeExceptionsCommand_1.ListDataLakeExceptionsCommand(input), ...args);
8
- };
9
- async function* paginateListDataLakeExceptions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListDataLakeExceptions = paginateListDataLakeExceptions;
7
+ exports.paginateListDataLakeExceptions = (0, core_1.createPaginator)(SecurityLakeClient_1.SecurityLakeClient, ListDataLakeExceptionsCommand_1.ListDataLakeExceptionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListLogSources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListLogSourcesCommand_1 = require("../commands/ListLogSourcesCommand");
5
6
  const SecurityLakeClient_1 = require("../SecurityLakeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListLogSourcesCommand_1.ListLogSourcesCommand(input), ...args);
8
- };
9
- async function* paginateListLogSources(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListLogSources = paginateListLogSources;
7
+ exports.paginateListLogSources = (0, core_1.createPaginator)(SecurityLakeClient_1.SecurityLakeClient, ListLogSourcesCommand_1.ListLogSourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSubscribers = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSubscribersCommand_1 = require("../commands/ListSubscribersCommand");
5
6
  const SecurityLakeClient_1 = require("../SecurityLakeClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSubscribersCommand_1.ListSubscribersCommand(input), ...args);
8
- };
9
- async function* paginateListSubscribers(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- input["maxResults"] = config.pageSize;
16
- if (config.client instanceof SecurityLakeClient_1.SecurityLakeClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected SecurityLake | SecurityLakeClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.nextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListSubscribers = paginateListSubscribers;
7
+ exports.paginateListSubscribers = (0, core_1.createPaginator)(SecurityLakeClient_1.SecurityLakeClient, ListSubscribersCommand_1.ListSubscribersCommand, "nextToken", "nextToken", "maxResults");
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateAwsLogSourceCommand, se_CreateAwsLogSourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateAwsLogSourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateAwsLogSourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SecurityLakeClient";
26
- const commandName = "CreateAwsLogSourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SecurityLake",
35
- operation: "CreateAwsLogSource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateAwsLogSourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateAwsLogSourceCommand(output, context);
46
- }
7
+ export class CreateAwsLogSourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SecurityLake", "CreateAwsLogSource", {})
19
+ .n("SecurityLakeClient", "CreateAwsLogSourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateAwsLogSourceCommand)
22
+ .de(de_CreateAwsLogSourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateCustomLogSourceCommand, se_CreateCustomLogSourceCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateCustomLogSourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateCustomLogSourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SecurityLakeClient";
26
- const commandName = "CreateCustomLogSourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SecurityLake",
35
- operation: "CreateCustomLogSource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateCustomLogSourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateCustomLogSourceCommand(output, context);
46
- }
7
+ export class CreateCustomLogSourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SecurityLake", "CreateCustomLogSource", {})
19
+ .n("SecurityLakeClient", "CreateCustomLogSourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateCustomLogSourceCommand)
22
+ .de(de_CreateCustomLogSourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_CreateDataLakeCommand, se_CreateDataLakeCommand } from "../protocols/Aws_restJson1";
6
6
  export { $Command };
7
- export class CreateDataLakeCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, CreateDataLakeCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "SecurityLakeClient";
26
- const commandName = "CreateDataLakeCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "SecurityLake",
35
- operation: "CreateDataLake",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_CreateDataLakeCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_CreateDataLakeCommand(output, context);
46
- }
7
+ export class CreateDataLakeCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("SecurityLake", "CreateDataLake", {})
19
+ .n("SecurityLakeClient", "CreateDataLakeCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateDataLakeCommand)
22
+ .de(de_CreateDataLakeCommand)
23
+ .build() {
47
24
  }