@aws-sdk/client-securitylake 3.369.0 → 3.374.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 (35) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/SecurityLake.js +6 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/protocols/Aws_restJson1.js +206 -2
  8. package/dist-es/SecurityLake.js +6 -0
  9. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  10. package/dist-es/commands/TagResourceCommand.js +42 -0
  11. package/dist-es/commands/UntagResourceCommand.js +42 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/protocols/Aws_restJson1.js +198 -0
  14. package/dist-types/SecurityLake.d.ts +21 -0
  15. package/dist-types/SecurityLakeClient.d.ts +5 -2
  16. package/dist-types/commands/CreateAwsLogSourceCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateDataLakeCommand.d.ts +7 -2
  18. package/dist-types/commands/CreateSubscriberCommand.d.ts +6 -0
  19. package/dist-types/commands/DeleteDataLakeOrganizationConfigurationCommand.d.ts +3 -5
  20. package/dist-types/commands/ListDataLakesCommand.d.ts +2 -2
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +104 -0
  22. package/dist-types/commands/TagResourceCommand.d.ts +109 -0
  23. package/dist-types/commands/UntagResourceCommand.d.ts +100 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/models/models_0.d.ts +95 -9
  26. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  27. package/dist-types/ts3.4/SecurityLake.d.ts +51 -0
  28. package/dist-types/ts3.4/SecurityLakeClient.d.ts +18 -0
  29. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  30. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  31. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  32. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +22 -0
  34. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  35. package/package.json +16 -17
package/README.md CHANGED
@@ -411,6 +411,14 @@ ListSubscribers
411
411
 
412
412
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/classes/listsubscriberscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/listsubscriberscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/listsubscriberscommandoutput.html)
413
413
 
414
+ </details>
415
+ <details>
416
+ <summary>
417
+ ListTagsForResource
418
+ </summary>
419
+
420
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/listtagsforresourcecommandoutput.html)
421
+
414
422
  </details>
415
423
  <details>
416
424
  <summary>
@@ -419,6 +427,22 @@ RegisterDataLakeDelegatedAdministrator
419
427
 
420
428
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/classes/registerdatalakedelegatedadministratorcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/registerdatalakedelegatedadministratorcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/registerdatalakedelegatedadministratorcommandoutput.html)
421
429
 
430
+ </details>
431
+ <details>
432
+ <summary>
433
+ TagResource
434
+ </summary>
435
+
436
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/classes/tagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/tagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/tagresourcecommandoutput.html)
437
+
438
+ </details>
439
+ <details>
440
+ <summary>
441
+ UntagResource
442
+ </summary>
443
+
444
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/classes/untagresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/untagresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-securitylake/interfaces/untagresourcecommandoutput.html)
445
+
422
446
  </details>
423
447
  <details>
424
448
  <summary>
@@ -25,7 +25,10 @@ const ListDataLakeExceptionsCommand_1 = require("./commands/ListDataLakeExceptio
25
25
  const ListDataLakesCommand_1 = require("./commands/ListDataLakesCommand");
26
26
  const ListLogSourcesCommand_1 = require("./commands/ListLogSourcesCommand");
27
27
  const ListSubscribersCommand_1 = require("./commands/ListSubscribersCommand");
28
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
28
29
  const RegisterDataLakeDelegatedAdministratorCommand_1 = require("./commands/RegisterDataLakeDelegatedAdministratorCommand");
30
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
31
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
29
32
  const UpdateDataLakeCommand_1 = require("./commands/UpdateDataLakeCommand");
30
33
  const UpdateDataLakeExceptionSubscriptionCommand_1 = require("./commands/UpdateDataLakeExceptionSubscriptionCommand");
31
34
  const UpdateSubscriberCommand_1 = require("./commands/UpdateSubscriberCommand");
@@ -55,7 +58,10 @@ const commands = {
55
58
  ListDataLakesCommand: ListDataLakesCommand_1.ListDataLakesCommand,
56
59
  ListLogSourcesCommand: ListLogSourcesCommand_1.ListLogSourcesCommand,
57
60
  ListSubscribersCommand: ListSubscribersCommand_1.ListSubscribersCommand,
61
+ ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
58
62
  RegisterDataLakeDelegatedAdministratorCommand: RegisterDataLakeDelegatedAdministratorCommand_1.RegisterDataLakeDelegatedAdministratorCommand,
63
+ TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
64
+ UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
59
65
  UpdateDataLakeCommand: UpdateDataLakeCommand_1.UpdateDataLakeCommand,
60
66
  UpdateDataLakeExceptionSubscriptionCommand: UpdateDataLakeExceptionSubscriptionCommand_1.UpdateDataLakeExceptionSubscriptionCommand,
61
67
  UpdateSubscriberCommand: UpdateSubscriberCommand_1.UpdateSubscriberCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTagsForResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListTagsForResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityLakeClient";
28
+ const commandName = "ListTagsForResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_ListTagsForResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_ListTagsForResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class TagResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityLakeClient";
28
+ const commandName = "TagResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_TagResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_TagResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.TagResourceCommand = TagResourceCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class UntagResourceCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "SecurityLakeClient";
28
+ const commandName = "UntagResourceCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_UntagResourceCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_UntagResourceCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -24,7 +24,10 @@ tslib_1.__exportStar(require("./ListDataLakeExceptionsCommand"), exports);
24
24
  tslib_1.__exportStar(require("./ListDataLakesCommand"), exports);
25
25
  tslib_1.__exportStar(require("./ListLogSourcesCommand"), exports);
26
26
  tslib_1.__exportStar(require("./ListSubscribersCommand"), exports);
27
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
27
28
  tslib_1.__exportStar(require("./RegisterDataLakeDelegatedAdministratorCommand"), exports);
29
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
30
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
28
31
  tslib_1.__exportStar(require("./UpdateDataLakeCommand"), exports);
29
32
  tslib_1.__exportStar(require("./UpdateDataLakeExceptionSubscriptionCommand"), exports);
30
33
  tslib_1.__exportStar(require("./UpdateSubscriberCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_ListLogSourcesCommand = exports.de_ListDataLakesCommand = exports.de_ListDataLakeExceptionsCommand = exports.de_GetSubscriberCommand = exports.de_GetDataLakeSourcesCommand = exports.de_GetDataLakeOrganizationConfigurationCommand = exports.de_GetDataLakeExceptionSubscriptionCommand = exports.de_DeregisterDataLakeDelegatedAdministratorCommand = exports.de_DeleteSubscriberNotificationCommand = exports.de_DeleteSubscriberCommand = exports.de_DeleteDataLakeOrganizationConfigurationCommand = exports.de_DeleteDataLakeExceptionSubscriptionCommand = exports.de_DeleteDataLakeCommand = exports.de_DeleteCustomLogSourceCommand = exports.de_DeleteAwsLogSourceCommand = exports.de_CreateSubscriberNotificationCommand = exports.de_CreateSubscriberCommand = exports.de_CreateDataLakeOrganizationConfigurationCommand = exports.de_CreateDataLakeExceptionSubscriptionCommand = exports.de_CreateDataLakeCommand = exports.de_CreateCustomLogSourceCommand = exports.de_CreateAwsLogSourceCommand = exports.se_UpdateSubscriberNotificationCommand = exports.se_UpdateSubscriberCommand = exports.se_UpdateDataLakeExceptionSubscriptionCommand = exports.se_UpdateDataLakeCommand = exports.se_RegisterDataLakeDelegatedAdministratorCommand = exports.se_ListSubscribersCommand = exports.se_ListLogSourcesCommand = exports.se_ListDataLakesCommand = exports.se_ListDataLakeExceptionsCommand = exports.se_GetSubscriberCommand = exports.se_GetDataLakeSourcesCommand = exports.se_GetDataLakeOrganizationConfigurationCommand = exports.se_GetDataLakeExceptionSubscriptionCommand = exports.se_DeregisterDataLakeDelegatedAdministratorCommand = exports.se_DeleteSubscriberNotificationCommand = exports.se_DeleteSubscriberCommand = exports.se_DeleteDataLakeOrganizationConfigurationCommand = exports.se_DeleteDataLakeExceptionSubscriptionCommand = exports.se_DeleteDataLakeCommand = exports.se_DeleteCustomLogSourceCommand = exports.se_DeleteAwsLogSourceCommand = exports.se_CreateSubscriberNotificationCommand = exports.se_CreateSubscriberCommand = exports.se_CreateDataLakeOrganizationConfigurationCommand = exports.se_CreateDataLakeExceptionSubscriptionCommand = exports.se_CreateDataLakeCommand = exports.se_CreateCustomLogSourceCommand = exports.se_CreateAwsLogSourceCommand = void 0;
4
- exports.de_UpdateSubscriberNotificationCommand = exports.de_UpdateSubscriberCommand = exports.de_UpdateDataLakeExceptionSubscriptionCommand = exports.de_UpdateDataLakeCommand = exports.de_RegisterDataLakeDelegatedAdministratorCommand = exports.de_ListSubscribersCommand = void 0;
3
+ exports.de_GetSubscriberCommand = exports.de_GetDataLakeSourcesCommand = exports.de_GetDataLakeOrganizationConfigurationCommand = exports.de_GetDataLakeExceptionSubscriptionCommand = exports.de_DeregisterDataLakeDelegatedAdministratorCommand = exports.de_DeleteSubscriberNotificationCommand = exports.de_DeleteSubscriberCommand = exports.de_DeleteDataLakeOrganizationConfigurationCommand = exports.de_DeleteDataLakeExceptionSubscriptionCommand = exports.de_DeleteDataLakeCommand = exports.de_DeleteCustomLogSourceCommand = exports.de_DeleteAwsLogSourceCommand = exports.de_CreateSubscriberNotificationCommand = exports.de_CreateSubscriberCommand = exports.de_CreateDataLakeOrganizationConfigurationCommand = exports.de_CreateDataLakeExceptionSubscriptionCommand = exports.de_CreateDataLakeCommand = exports.de_CreateCustomLogSourceCommand = exports.de_CreateAwsLogSourceCommand = exports.se_UpdateSubscriberNotificationCommand = exports.se_UpdateSubscriberCommand = exports.se_UpdateDataLakeExceptionSubscriptionCommand = exports.se_UpdateDataLakeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterDataLakeDelegatedAdministratorCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSubscribersCommand = exports.se_ListLogSourcesCommand = exports.se_ListDataLakesCommand = exports.se_ListDataLakeExceptionsCommand = exports.se_GetSubscriberCommand = exports.se_GetDataLakeSourcesCommand = exports.se_GetDataLakeOrganizationConfigurationCommand = exports.se_GetDataLakeExceptionSubscriptionCommand = exports.se_DeregisterDataLakeDelegatedAdministratorCommand = exports.se_DeleteSubscriberNotificationCommand = exports.se_DeleteSubscriberCommand = exports.se_DeleteDataLakeOrganizationConfigurationCommand = exports.se_DeleteDataLakeExceptionSubscriptionCommand = exports.se_DeleteDataLakeCommand = exports.se_DeleteCustomLogSourceCommand = exports.se_DeleteAwsLogSourceCommand = exports.se_CreateSubscriberNotificationCommand = exports.se_CreateSubscriberCommand = exports.se_CreateDataLakeOrganizationConfigurationCommand = exports.se_CreateDataLakeExceptionSubscriptionCommand = exports.se_CreateDataLakeCommand = exports.se_CreateCustomLogSourceCommand = exports.se_CreateAwsLogSourceCommand = void 0;
4
+ exports.de_UpdateSubscriberNotificationCommand = exports.de_UpdateSubscriberCommand = exports.de_UpdateDataLakeExceptionSubscriptionCommand = exports.de_UpdateDataLakeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterDataLakeDelegatedAdministratorCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSubscribersCommand = exports.de_ListLogSourcesCommand = exports.de_ListDataLakesCommand = exports.de_ListDataLakeExceptionsCommand = void 0;
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
@@ -61,6 +61,7 @@ const se_CreateDataLakeCommand = async (input, context) => {
61
61
  body = JSON.stringify((0, smithy_client_1.take)(input, {
62
62
  configurations: (_) => (0, smithy_client_1._json)(_),
63
63
  metaStoreManagerRoleArn: [],
64
+ tags: (_) => (0, smithy_client_1._json)(_),
64
65
  }));
65
66
  return new protocol_http_1.HttpRequest({
66
67
  protocol,
@@ -130,6 +131,7 @@ const se_CreateSubscriberCommand = async (input, context) => {
130
131
  subscriberDescription: [],
131
132
  subscriberIdentity: (_) => (0, smithy_client_1._json)(_),
132
133
  subscriberName: [],
134
+ tags: (_) => (0, smithy_client_1._json)(_),
133
135
  }));
134
136
  return new protocol_http_1.HttpRequest({
135
137
  protocol,
@@ -491,6 +493,23 @@ const se_ListSubscribersCommand = async (input, context) => {
491
493
  });
492
494
  };
493
495
  exports.se_ListSubscribersCommand = se_ListSubscribersCommand;
496
+ const se_ListTagsForResourceCommand = async (input, context) => {
497
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
498
+ const headers = {};
499
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
500
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
501
+ let body;
502
+ return new protocol_http_1.HttpRequest({
503
+ protocol,
504
+ hostname,
505
+ port,
506
+ method: "GET",
507
+ headers,
508
+ path: resolvedPath,
509
+ body,
510
+ });
511
+ };
512
+ exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
494
513
  const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
495
514
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
496
515
  const headers = {
@@ -512,6 +531,52 @@ const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, context)
512
531
  });
513
532
  };
514
533
  exports.se_RegisterDataLakeDelegatedAdministratorCommand = se_RegisterDataLakeDelegatedAdministratorCommand;
534
+ const se_TagResourceCommand = async (input, context) => {
535
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
536
+ const headers = {
537
+ "content-type": "application/json",
538
+ };
539
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
540
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
541
+ let body;
542
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
543
+ tags: (_) => (0, smithy_client_1._json)(_),
544
+ }));
545
+ return new protocol_http_1.HttpRequest({
546
+ protocol,
547
+ hostname,
548
+ port,
549
+ method: "POST",
550
+ headers,
551
+ path: resolvedPath,
552
+ body,
553
+ });
554
+ };
555
+ exports.se_TagResourceCommand = se_TagResourceCommand;
556
+ const se_UntagResourceCommand = async (input, context) => {
557
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
558
+ const headers = {};
559
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
560
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
561
+ const query = (0, smithy_client_1.map)({
562
+ tagKeys: [
563
+ (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
564
+ () => (input.tagKeys || []).map((_entry) => _entry),
565
+ ],
566
+ });
567
+ let body;
568
+ return new protocol_http_1.HttpRequest({
569
+ protocol,
570
+ hostname,
571
+ port,
572
+ method: "DELETE",
573
+ headers,
574
+ path: resolvedPath,
575
+ query,
576
+ body,
577
+ });
578
+ };
579
+ exports.se_UntagResourceCommand = se_UntagResourceCommand;
515
580
  const se_UpdateDataLakeCommand = async (input, context) => {
516
581
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
517
582
  const headers = {
@@ -1702,6 +1767,55 @@ const de_ListSubscribersCommandError = async (output, context) => {
1702
1767
  });
1703
1768
  }
1704
1769
  };
1770
+ const de_ListTagsForResourceCommand = async (output, context) => {
1771
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1772
+ return de_ListTagsForResourceCommandError(output, context);
1773
+ }
1774
+ const contents = (0, smithy_client_1.map)({
1775
+ $metadata: deserializeMetadata(output),
1776
+ });
1777
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1778
+ const doc = (0, smithy_client_1.take)(data, {
1779
+ tags: smithy_client_1._json,
1780
+ });
1781
+ Object.assign(contents, doc);
1782
+ return contents;
1783
+ };
1784
+ exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1785
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1786
+ const parsedOutput = {
1787
+ ...output,
1788
+ body: await parseErrorBody(output.body, context),
1789
+ };
1790
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1791
+ switch (errorCode) {
1792
+ case "AccessDeniedException":
1793
+ case "com.amazonaws.securitylake#AccessDeniedException":
1794
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1795
+ case "BadRequestException":
1796
+ case "com.amazonaws.securitylake#BadRequestException":
1797
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1798
+ case "ConflictException":
1799
+ case "com.amazonaws.securitylake#ConflictException":
1800
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1801
+ case "InternalServerException":
1802
+ case "com.amazonaws.securitylake#InternalServerException":
1803
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1804
+ case "ResourceNotFoundException":
1805
+ case "com.amazonaws.securitylake#ResourceNotFoundException":
1806
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1807
+ case "ThrottlingException":
1808
+ case "com.amazonaws.securitylake#ThrottlingException":
1809
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1810
+ default:
1811
+ const parsedBody = parsedOutput.body;
1812
+ return throwDefaultError({
1813
+ output,
1814
+ parsedBody,
1815
+ errorCode,
1816
+ });
1817
+ }
1818
+ };
1705
1819
  const de_RegisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
1706
1820
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1707
1821
  return de_RegisterDataLakeDelegatedAdministratorCommandError(output, context);
@@ -1747,6 +1861,96 @@ const de_RegisterDataLakeDelegatedAdministratorCommandError = async (output, con
1747
1861
  });
1748
1862
  }
1749
1863
  };
1864
+ const de_TagResourceCommand = async (output, context) => {
1865
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1866
+ return de_TagResourceCommandError(output, context);
1867
+ }
1868
+ const contents = (0, smithy_client_1.map)({
1869
+ $metadata: deserializeMetadata(output),
1870
+ });
1871
+ await (0, smithy_client_1.collectBody)(output.body, context);
1872
+ return contents;
1873
+ };
1874
+ exports.de_TagResourceCommand = de_TagResourceCommand;
1875
+ const de_TagResourceCommandError = async (output, context) => {
1876
+ const parsedOutput = {
1877
+ ...output,
1878
+ body: await parseErrorBody(output.body, context),
1879
+ };
1880
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1881
+ switch (errorCode) {
1882
+ case "AccessDeniedException":
1883
+ case "com.amazonaws.securitylake#AccessDeniedException":
1884
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1885
+ case "BadRequestException":
1886
+ case "com.amazonaws.securitylake#BadRequestException":
1887
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1888
+ case "ConflictException":
1889
+ case "com.amazonaws.securitylake#ConflictException":
1890
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1891
+ case "InternalServerException":
1892
+ case "com.amazonaws.securitylake#InternalServerException":
1893
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1894
+ case "ResourceNotFoundException":
1895
+ case "com.amazonaws.securitylake#ResourceNotFoundException":
1896
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1897
+ case "ThrottlingException":
1898
+ case "com.amazonaws.securitylake#ThrottlingException":
1899
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1900
+ default:
1901
+ const parsedBody = parsedOutput.body;
1902
+ return throwDefaultError({
1903
+ output,
1904
+ parsedBody,
1905
+ errorCode,
1906
+ });
1907
+ }
1908
+ };
1909
+ const de_UntagResourceCommand = async (output, context) => {
1910
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1911
+ return de_UntagResourceCommandError(output, context);
1912
+ }
1913
+ const contents = (0, smithy_client_1.map)({
1914
+ $metadata: deserializeMetadata(output),
1915
+ });
1916
+ await (0, smithy_client_1.collectBody)(output.body, context);
1917
+ return contents;
1918
+ };
1919
+ exports.de_UntagResourceCommand = de_UntagResourceCommand;
1920
+ const de_UntagResourceCommandError = async (output, context) => {
1921
+ const parsedOutput = {
1922
+ ...output,
1923
+ body: await parseErrorBody(output.body, context),
1924
+ };
1925
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1926
+ switch (errorCode) {
1927
+ case "AccessDeniedException":
1928
+ case "com.amazonaws.securitylake#AccessDeniedException":
1929
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1930
+ case "BadRequestException":
1931
+ case "com.amazonaws.securitylake#BadRequestException":
1932
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1933
+ case "ConflictException":
1934
+ case "com.amazonaws.securitylake#ConflictException":
1935
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1936
+ case "InternalServerException":
1937
+ case "com.amazonaws.securitylake#InternalServerException":
1938
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1939
+ case "ResourceNotFoundException":
1940
+ case "com.amazonaws.securitylake#ResourceNotFoundException":
1941
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1942
+ case "ThrottlingException":
1943
+ case "com.amazonaws.securitylake#ThrottlingException":
1944
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1945
+ default:
1946
+ const parsedBody = parsedOutput.body;
1947
+ return throwDefaultError({
1948
+ output,
1949
+ parsedBody,
1950
+ errorCode,
1951
+ });
1952
+ }
1953
+ };
1750
1954
  const de_UpdateDataLakeCommand = async (output, context) => {
1751
1955
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1752
1956
  return de_UpdateDataLakeCommandError(output, context);
@@ -22,7 +22,10 @@ import { ListDataLakeExceptionsCommand, } from "./commands/ListDataLakeException
22
22
  import { ListDataLakesCommand, } from "./commands/ListDataLakesCommand";
23
23
  import { ListLogSourcesCommand, } from "./commands/ListLogSourcesCommand";
24
24
  import { ListSubscribersCommand, } from "./commands/ListSubscribersCommand";
25
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
25
26
  import { RegisterDataLakeDelegatedAdministratorCommand, } from "./commands/RegisterDataLakeDelegatedAdministratorCommand";
27
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
28
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
26
29
  import { UpdateDataLakeCommand, } from "./commands/UpdateDataLakeCommand";
27
30
  import { UpdateDataLakeExceptionSubscriptionCommand, } from "./commands/UpdateDataLakeExceptionSubscriptionCommand";
28
31
  import { UpdateSubscriberCommand, } from "./commands/UpdateSubscriberCommand";
@@ -52,7 +55,10 @@ const commands = {
52
55
  ListDataLakesCommand,
53
56
  ListLogSourcesCommand,
54
57
  ListSubscribersCommand,
58
+ ListTagsForResourceCommand,
55
59
  RegisterDataLakeDelegatedAdministratorCommand,
60
+ TagResourceCommand,
61
+ UntagResourceCommand,
56
62
  UpdateDataLakeCommand,
57
63
  UpdateDataLakeExceptionSubscriptionCommand,
58
64
  UpdateSubscriberCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class ListTagsForResourceCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SecurityLakeClient";
25
+ const commandName = "ListTagsForResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ListTagsForResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ListTagsForResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SecurityLakeClient";
25
+ const commandName = "TagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_TagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_TagResourceCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "SecurityLakeClient";
25
+ const commandName = "UntagResourceCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_UntagResourceCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_UntagResourceCommand(output, context);
41
+ }
42
+ }
@@ -21,7 +21,10 @@ export * from "./ListDataLakeExceptionsCommand";
21
21
  export * from "./ListDataLakesCommand";
22
22
  export * from "./ListLogSourcesCommand";
23
23
  export * from "./ListSubscribersCommand";
24
+ export * from "./ListTagsForResourceCommand";
24
25
  export * from "./RegisterDataLakeDelegatedAdministratorCommand";
26
+ export * from "./TagResourceCommand";
27
+ export * from "./UntagResourceCommand";
25
28
  export * from "./UpdateDataLakeCommand";
26
29
  export * from "./UpdateDataLakeExceptionSubscriptionCommand";
27
30
  export * from "./UpdateSubscriberCommand";