@aws-sdk/client-securitylake 3.370.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 +1 -1
@@ -55,6 +55,7 @@ export const se_CreateDataLakeCommand = async (input, context) => {
55
55
  body = JSON.stringify(take(input, {
56
56
  configurations: (_) => _json(_),
57
57
  metaStoreManagerRoleArn: [],
58
+ tags: (_) => _json(_),
58
59
  }));
59
60
  return new __HttpRequest({
60
61
  protocol,
@@ -121,6 +122,7 @@ export const se_CreateSubscriberCommand = async (input, context) => {
121
122
  subscriberDescription: [],
122
123
  subscriberIdentity: (_) => _json(_),
123
124
  subscriberName: [],
125
+ tags: (_) => _json(_),
124
126
  }));
125
127
  return new __HttpRequest({
126
128
  protocol,
@@ -464,6 +466,22 @@ export const se_ListSubscribersCommand = async (input, context) => {
464
466
  body,
465
467
  });
466
468
  };
469
+ export const se_ListTagsForResourceCommand = async (input, context) => {
470
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
471
+ const headers = {};
472
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
473
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
474
+ let body;
475
+ return new __HttpRequest({
476
+ protocol,
477
+ hostname,
478
+ port,
479
+ method: "GET",
480
+ headers,
481
+ path: resolvedPath,
482
+ body,
483
+ });
484
+ };
467
485
  export const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, context) => {
468
486
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
469
487
  const headers = {
@@ -484,6 +502,50 @@ export const se_RegisterDataLakeDelegatedAdministratorCommand = async (input, co
484
502
  body,
485
503
  });
486
504
  };
505
+ export const se_TagResourceCommand = async (input, context) => {
506
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
507
+ const headers = {
508
+ "content-type": "application/json",
509
+ };
510
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
511
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
512
+ let body;
513
+ body = JSON.stringify(take(input, {
514
+ tags: (_) => _json(_),
515
+ }));
516
+ return new __HttpRequest({
517
+ protocol,
518
+ hostname,
519
+ port,
520
+ method: "POST",
521
+ headers,
522
+ path: resolvedPath,
523
+ body,
524
+ });
525
+ };
526
+ export const se_UntagResourceCommand = async (input, context) => {
527
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
528
+ const headers = {};
529
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
530
+ resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
531
+ const query = map({
532
+ tagKeys: [
533
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
534
+ () => (input.tagKeys || []).map((_entry) => _entry),
535
+ ],
536
+ });
537
+ let body;
538
+ return new __HttpRequest({
539
+ protocol,
540
+ hostname,
541
+ port,
542
+ method: "DELETE",
543
+ headers,
544
+ path: resolvedPath,
545
+ query,
546
+ body,
547
+ });
548
+ };
487
549
  export const se_UpdateDataLakeCommand = async (input, context) => {
488
550
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
489
551
  const headers = {
@@ -1647,6 +1709,54 @@ const de_ListSubscribersCommandError = async (output, context) => {
1647
1709
  });
1648
1710
  }
1649
1711
  };
1712
+ export const de_ListTagsForResourceCommand = async (output, context) => {
1713
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1714
+ return de_ListTagsForResourceCommandError(output, context);
1715
+ }
1716
+ const contents = map({
1717
+ $metadata: deserializeMetadata(output),
1718
+ });
1719
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1720
+ const doc = take(data, {
1721
+ tags: _json,
1722
+ });
1723
+ Object.assign(contents, doc);
1724
+ return contents;
1725
+ };
1726
+ const de_ListTagsForResourceCommandError = async (output, context) => {
1727
+ const parsedOutput = {
1728
+ ...output,
1729
+ body: await parseErrorBody(output.body, context),
1730
+ };
1731
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1732
+ switch (errorCode) {
1733
+ case "AccessDeniedException":
1734
+ case "com.amazonaws.securitylake#AccessDeniedException":
1735
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1736
+ case "BadRequestException":
1737
+ case "com.amazonaws.securitylake#BadRequestException":
1738
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1739
+ case "ConflictException":
1740
+ case "com.amazonaws.securitylake#ConflictException":
1741
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1742
+ case "InternalServerException":
1743
+ case "com.amazonaws.securitylake#InternalServerException":
1744
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1745
+ case "ResourceNotFoundException":
1746
+ case "com.amazonaws.securitylake#ResourceNotFoundException":
1747
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1748
+ case "ThrottlingException":
1749
+ case "com.amazonaws.securitylake#ThrottlingException":
1750
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1751
+ default:
1752
+ const parsedBody = parsedOutput.body;
1753
+ return throwDefaultError({
1754
+ output,
1755
+ parsedBody,
1756
+ errorCode,
1757
+ });
1758
+ }
1759
+ };
1650
1760
  export const de_RegisterDataLakeDelegatedAdministratorCommand = async (output, context) => {
1651
1761
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1652
1762
  return de_RegisterDataLakeDelegatedAdministratorCommandError(output, context);
@@ -1691,6 +1801,94 @@ const de_RegisterDataLakeDelegatedAdministratorCommandError = async (output, con
1691
1801
  });
1692
1802
  }
1693
1803
  };
1804
+ export const de_TagResourceCommand = async (output, context) => {
1805
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1806
+ return de_TagResourceCommandError(output, context);
1807
+ }
1808
+ const contents = map({
1809
+ $metadata: deserializeMetadata(output),
1810
+ });
1811
+ await collectBody(output.body, context);
1812
+ return contents;
1813
+ };
1814
+ const de_TagResourceCommandError = async (output, context) => {
1815
+ const parsedOutput = {
1816
+ ...output,
1817
+ body: await parseErrorBody(output.body, context),
1818
+ };
1819
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1820
+ switch (errorCode) {
1821
+ case "AccessDeniedException":
1822
+ case "com.amazonaws.securitylake#AccessDeniedException":
1823
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1824
+ case "BadRequestException":
1825
+ case "com.amazonaws.securitylake#BadRequestException":
1826
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1827
+ case "ConflictException":
1828
+ case "com.amazonaws.securitylake#ConflictException":
1829
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1830
+ case "InternalServerException":
1831
+ case "com.amazonaws.securitylake#InternalServerException":
1832
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1833
+ case "ResourceNotFoundException":
1834
+ case "com.amazonaws.securitylake#ResourceNotFoundException":
1835
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1836
+ case "ThrottlingException":
1837
+ case "com.amazonaws.securitylake#ThrottlingException":
1838
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1839
+ default:
1840
+ const parsedBody = parsedOutput.body;
1841
+ return throwDefaultError({
1842
+ output,
1843
+ parsedBody,
1844
+ errorCode,
1845
+ });
1846
+ }
1847
+ };
1848
+ export const de_UntagResourceCommand = async (output, context) => {
1849
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1850
+ return de_UntagResourceCommandError(output, context);
1851
+ }
1852
+ const contents = map({
1853
+ $metadata: deserializeMetadata(output),
1854
+ });
1855
+ await collectBody(output.body, context);
1856
+ return contents;
1857
+ };
1858
+ const de_UntagResourceCommandError = async (output, context) => {
1859
+ const parsedOutput = {
1860
+ ...output,
1861
+ body: await parseErrorBody(output.body, context),
1862
+ };
1863
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1864
+ switch (errorCode) {
1865
+ case "AccessDeniedException":
1866
+ case "com.amazonaws.securitylake#AccessDeniedException":
1867
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1868
+ case "BadRequestException":
1869
+ case "com.amazonaws.securitylake#BadRequestException":
1870
+ throw await de_BadRequestExceptionRes(parsedOutput, context);
1871
+ case "ConflictException":
1872
+ case "com.amazonaws.securitylake#ConflictException":
1873
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1874
+ case "InternalServerException":
1875
+ case "com.amazonaws.securitylake#InternalServerException":
1876
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1877
+ case "ResourceNotFoundException":
1878
+ case "com.amazonaws.securitylake#ResourceNotFoundException":
1879
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1880
+ case "ThrottlingException":
1881
+ case "com.amazonaws.securitylake#ThrottlingException":
1882
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1883
+ default:
1884
+ const parsedBody = parsedOutput.body;
1885
+ return throwDefaultError({
1886
+ output,
1887
+ parsedBody,
1888
+ errorCode,
1889
+ });
1890
+ }
1891
+ };
1694
1892
  export const de_UpdateDataLakeCommand = async (output, context) => {
1695
1893
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1696
1894
  return de_UpdateDataLakeCommandError(output, context);
@@ -22,7 +22,10 @@ import { ListDataLakeExceptionsCommandInput, ListDataLakeExceptionsCommandOutput
22
22
  import { ListDataLakesCommandInput, ListDataLakesCommandOutput } from "./commands/ListDataLakesCommand";
23
23
  import { ListLogSourcesCommandInput, ListLogSourcesCommandOutput } from "./commands/ListLogSourcesCommand";
24
24
  import { ListSubscribersCommandInput, ListSubscribersCommandOutput } from "./commands/ListSubscribersCommand";
25
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
25
26
  import { RegisterDataLakeDelegatedAdministratorCommandInput, RegisterDataLakeDelegatedAdministratorCommandOutput } from "./commands/RegisterDataLakeDelegatedAdministratorCommand";
27
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
28
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26
29
  import { UpdateDataLakeCommandInput, UpdateDataLakeCommandOutput } from "./commands/UpdateDataLakeCommand";
27
30
  import { UpdateDataLakeExceptionSubscriptionCommandInput, UpdateDataLakeExceptionSubscriptionCommandOutput } from "./commands/UpdateDataLakeExceptionSubscriptionCommand";
28
31
  import { UpdateSubscriberCommandInput, UpdateSubscriberCommandOutput } from "./commands/UpdateSubscriberCommand";
@@ -167,12 +170,30 @@ export interface SecurityLake {
167
170
  listSubscribers(args: ListSubscribersCommandInput, options?: __HttpHandlerOptions): Promise<ListSubscribersCommandOutput>;
168
171
  listSubscribers(args: ListSubscribersCommandInput, cb: (err: any, data?: ListSubscribersCommandOutput) => void): void;
169
172
  listSubscribers(args: ListSubscribersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSubscribersCommandOutput) => void): void;
173
+ /**
174
+ * @see {@link ListTagsForResourceCommand}
175
+ */
176
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
177
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
178
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
170
179
  /**
171
180
  * @see {@link RegisterDataLakeDelegatedAdministratorCommand}
172
181
  */
173
182
  registerDataLakeDelegatedAdministrator(args: RegisterDataLakeDelegatedAdministratorCommandInput, options?: __HttpHandlerOptions): Promise<RegisterDataLakeDelegatedAdministratorCommandOutput>;
174
183
  registerDataLakeDelegatedAdministrator(args: RegisterDataLakeDelegatedAdministratorCommandInput, cb: (err: any, data?: RegisterDataLakeDelegatedAdministratorCommandOutput) => void): void;
175
184
  registerDataLakeDelegatedAdministrator(args: RegisterDataLakeDelegatedAdministratorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterDataLakeDelegatedAdministratorCommandOutput) => void): void;
185
+ /**
186
+ * @see {@link TagResourceCommand}
187
+ */
188
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
189
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
190
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
191
+ /**
192
+ * @see {@link UntagResourceCommand}
193
+ */
194
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
195
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
196
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
176
197
  /**
177
198
  * @see {@link UpdateDataLakeCommand}
178
199
  */
@@ -31,7 +31,10 @@ import { ListDataLakeExceptionsCommandInput, ListDataLakeExceptionsCommandOutput
31
31
  import { ListDataLakesCommandInput, ListDataLakesCommandOutput } from "./commands/ListDataLakesCommand";
32
32
  import { ListLogSourcesCommandInput, ListLogSourcesCommandOutput } from "./commands/ListLogSourcesCommand";
33
33
  import { ListSubscribersCommandInput, ListSubscribersCommandOutput } from "./commands/ListSubscribersCommand";
34
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
34
35
  import { RegisterDataLakeDelegatedAdministratorCommandInput, RegisterDataLakeDelegatedAdministratorCommandOutput } from "./commands/RegisterDataLakeDelegatedAdministratorCommand";
36
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
37
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
35
38
  import { UpdateDataLakeCommandInput, UpdateDataLakeCommandOutput } from "./commands/UpdateDataLakeCommand";
36
39
  import { UpdateDataLakeExceptionSubscriptionCommandInput, UpdateDataLakeExceptionSubscriptionCommandOutput } from "./commands/UpdateDataLakeExceptionSubscriptionCommand";
37
40
  import { UpdateSubscriberCommandInput, UpdateSubscriberCommandOutput } from "./commands/UpdateSubscriberCommand";
@@ -41,11 +44,11 @@ export { __Client };
41
44
  /**
42
45
  * @public
43
46
  */
44
- export type ServiceInputTypes = CreateAwsLogSourceCommandInput | CreateCustomLogSourceCommandInput | CreateDataLakeCommandInput | CreateDataLakeExceptionSubscriptionCommandInput | CreateDataLakeOrganizationConfigurationCommandInput | CreateSubscriberCommandInput | CreateSubscriberNotificationCommandInput | DeleteAwsLogSourceCommandInput | DeleteCustomLogSourceCommandInput | DeleteDataLakeCommandInput | DeleteDataLakeExceptionSubscriptionCommandInput | DeleteDataLakeOrganizationConfigurationCommandInput | DeleteSubscriberCommandInput | DeleteSubscriberNotificationCommandInput | DeregisterDataLakeDelegatedAdministratorCommandInput | GetDataLakeExceptionSubscriptionCommandInput | GetDataLakeOrganizationConfigurationCommandInput | GetDataLakeSourcesCommandInput | GetSubscriberCommandInput | ListDataLakeExceptionsCommandInput | ListDataLakesCommandInput | ListLogSourcesCommandInput | ListSubscribersCommandInput | RegisterDataLakeDelegatedAdministratorCommandInput | UpdateDataLakeCommandInput | UpdateDataLakeExceptionSubscriptionCommandInput | UpdateSubscriberCommandInput | UpdateSubscriberNotificationCommandInput;
47
+ export type ServiceInputTypes = CreateAwsLogSourceCommandInput | CreateCustomLogSourceCommandInput | CreateDataLakeCommandInput | CreateDataLakeExceptionSubscriptionCommandInput | CreateDataLakeOrganizationConfigurationCommandInput | CreateSubscriberCommandInput | CreateSubscriberNotificationCommandInput | DeleteAwsLogSourceCommandInput | DeleteCustomLogSourceCommandInput | DeleteDataLakeCommandInput | DeleteDataLakeExceptionSubscriptionCommandInput | DeleteDataLakeOrganizationConfigurationCommandInput | DeleteSubscriberCommandInput | DeleteSubscriberNotificationCommandInput | DeregisterDataLakeDelegatedAdministratorCommandInput | GetDataLakeExceptionSubscriptionCommandInput | GetDataLakeOrganizationConfigurationCommandInput | GetDataLakeSourcesCommandInput | GetSubscriberCommandInput | ListDataLakeExceptionsCommandInput | ListDataLakesCommandInput | ListLogSourcesCommandInput | ListSubscribersCommandInput | ListTagsForResourceCommandInput | RegisterDataLakeDelegatedAdministratorCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateDataLakeCommandInput | UpdateDataLakeExceptionSubscriptionCommandInput | UpdateSubscriberCommandInput | UpdateSubscriberNotificationCommandInput;
45
48
  /**
46
49
  * @public
47
50
  */
48
- export type ServiceOutputTypes = CreateAwsLogSourceCommandOutput | CreateCustomLogSourceCommandOutput | CreateDataLakeCommandOutput | CreateDataLakeExceptionSubscriptionCommandOutput | CreateDataLakeOrganizationConfigurationCommandOutput | CreateSubscriberCommandOutput | CreateSubscriberNotificationCommandOutput | DeleteAwsLogSourceCommandOutput | DeleteCustomLogSourceCommandOutput | DeleteDataLakeCommandOutput | DeleteDataLakeExceptionSubscriptionCommandOutput | DeleteDataLakeOrganizationConfigurationCommandOutput | DeleteSubscriberCommandOutput | DeleteSubscriberNotificationCommandOutput | DeregisterDataLakeDelegatedAdministratorCommandOutput | GetDataLakeExceptionSubscriptionCommandOutput | GetDataLakeOrganizationConfigurationCommandOutput | GetDataLakeSourcesCommandOutput | GetSubscriberCommandOutput | ListDataLakeExceptionsCommandOutput | ListDataLakesCommandOutput | ListLogSourcesCommandOutput | ListSubscribersCommandOutput | RegisterDataLakeDelegatedAdministratorCommandOutput | UpdateDataLakeCommandOutput | UpdateDataLakeExceptionSubscriptionCommandOutput | UpdateSubscriberCommandOutput | UpdateSubscriberNotificationCommandOutput;
51
+ export type ServiceOutputTypes = CreateAwsLogSourceCommandOutput | CreateCustomLogSourceCommandOutput | CreateDataLakeCommandOutput | CreateDataLakeExceptionSubscriptionCommandOutput | CreateDataLakeOrganizationConfigurationCommandOutput | CreateSubscriberCommandOutput | CreateSubscriberNotificationCommandOutput | DeleteAwsLogSourceCommandOutput | DeleteCustomLogSourceCommandOutput | DeleteDataLakeCommandOutput | DeleteDataLakeExceptionSubscriptionCommandOutput | DeleteDataLakeOrganizationConfigurationCommandOutput | DeleteSubscriberCommandOutput | DeleteSubscriberNotificationCommandOutput | DeregisterDataLakeDelegatedAdministratorCommandOutput | GetDataLakeExceptionSubscriptionCommandOutput | GetDataLakeOrganizationConfigurationCommandOutput | GetDataLakeSourcesCommandOutput | GetSubscriberCommandOutput | ListDataLakeExceptionsCommandOutput | ListDataLakesCommandOutput | ListLogSourcesCommandOutput | ListSubscribersCommandOutput | ListTagsForResourceCommandOutput | RegisterDataLakeDelegatedAdministratorCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateDataLakeCommandOutput | UpdateDataLakeExceptionSubscriptionCommandOutput | UpdateSubscriberCommandOutput | UpdateSubscriberNotificationCommandOutput;
49
52
  /**
50
53
  * @public
51
54
  */
@@ -26,7 +26,7 @@ export interface CreateAwsLogSourceCommandOutput extends CreateAwsLogSourceRespo
26
26
  * <p>Adds a natively supported Amazon Web Service as an Amazon Security Lake source. Enables
27
27
  * source types for member accounts in required Amazon Web Services Regions, based on the
28
28
  * parameters you specify. You can choose any source type in any Region for either accounts
29
- * that are part of a trusted organization or standalone accounts. Once you add an Amazon Web Service as a source, Security Lake starts collecting logs and events from it, </p>
29
+ * that are part of a trusted organization or standalone accounts. Once you add an Amazon Web Service as a source, Security Lake starts collecting logs and events from it.</p>
30
30
  * <p>You can use this API only to enable natively supported Amazon Web Services as a
31
31
  * source. Use <code>CreateCustomLogSource</code> to enable data collection from a custom
32
32
  * source.</p>
@@ -25,8 +25,7 @@ export interface CreateDataLakeCommandOutput extends CreateDataLakeResponse, __M
25
25
  * @public
26
26
  * <p>Initializes an Amazon Security Lake instance with the provided (or default) configuration. You
27
27
  * can enable Security Lake in Amazon Web Services Regions with customized settings before enabling
28
- * log collection in Regions. By default, the <code>CreateDataLake</code> Security Lake in all
29
- * Regions. To specify particular Regions, configure these Regions using the
28
+ * log collection in Regions. To specify particular Regions, configure these Regions using the
30
29
  * <code>configurations</code> parameter. If you have already enabled Security Lake in a Region
31
30
  * when you call this command, the command will update the Region if you provide new
32
31
  * configuration parameters. If you have not already enabled Security Lake in the Region when you
@@ -71,6 +70,12 @@ export interface CreateDataLakeCommandOutput extends CreateDataLakeResponse, __M
71
70
  * },
72
71
  * ],
73
72
  * metaStoreManagerRoleArn: "STRING_VALUE", // required
73
+ * tags: [ // TagList
74
+ * { // Tag
75
+ * key: "STRING_VALUE", // required
76
+ * value: "STRING_VALUE", // required
77
+ * },
78
+ * ],
74
79
  * };
75
80
  * const command = new CreateDataLakeCommand(input);
76
81
  * const response = await client.send(command);
@@ -62,6 +62,12 @@ export interface CreateSubscriberCommandOutput extends CreateSubscriberResponse,
62
62
  * accessTypes: [ // AccessTypeList
63
63
  * "LAKEFORMATION" || "S3",
64
64
  * ],
65
+ * tags: [ // TagList
66
+ * { // Tag
67
+ * key: "STRING_VALUE", // required
68
+ * value: "STRING_VALUE", // required
69
+ * },
70
+ * ],
65
71
  * };
66
72
  * const command = new CreateSubscriberCommand(input);
67
73
  * const response = await client.send(command);
@@ -23,11 +23,9 @@ export interface DeleteDataLakeOrganizationConfigurationCommandOutput extends De
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Removes automatic the enablement of configuration settings for new member accounts (but
27
- * retains the settings for the delegated administrator) from Amazon Security Lake. You must run this
28
- * API using the credentials of the delegated administrator. When you run this API, new member
29
- * accounts that are added after the organization enables Security Lake won't contribute to the
30
- * data lake.</p>
26
+ * <p>Turns off automatic enablement of Amazon Security Lake for member accounts that are added to an organization in Organizations. Only the delegated
27
+ * Security Lake administrator for an organization can perform this operation. If the delegated Security Lake administrator performs this operation, new member
28
+ * accounts won't automatically contribute data to the data lake.</p>
31
29
  * @example
32
30
  * Use a bare-bones client and the command you need to make an API call.
33
31
  * ```javascript
@@ -23,8 +23,8 @@ export interface ListDataLakesCommandOutput extends ListDataLakesResponse, __Met
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Retrieves the Amazon Security Lake configuration object for the specified Amazon Web Services account ID. You can use the <code>ListDataLakes</code> API to know whether
27
- * Security Lake is enabled for any region.</p>
26
+ * <p>Retrieves the Amazon Security Lake configuration object for the specified Amazon Web Services Regions. You can use this operation to determine whether
27
+ * Security Lake is enabled for a Region.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -0,0 +1,104 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ import { SecurityLakeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityLakeClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListTagsForResourceCommand}.
14
+ */
15
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListTagsForResourceCommand}.
21
+ */
22
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves the tags (keys and values) that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for
27
+ * your Amazon Web Services account in a particular Amazon Web Services Region.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { SecurityLakeClient, ListTagsForResourceCommand } from "@aws-sdk/client-securitylake"; // ES Modules import
32
+ * // const { SecurityLakeClient, ListTagsForResourceCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
33
+ * const client = new SecurityLakeClient(config);
34
+ * const input = { // ListTagsForResourceRequest
35
+ * resourceArn: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new ListTagsForResourceCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // ListTagsForResourceResponse
40
+ * // tags: [ // TagList
41
+ * // { // Tag
42
+ * // key: "STRING_VALUE", // required
43
+ * // value: "STRING_VALUE", // required
44
+ * // },
45
+ * // ],
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
51
+ * @returns {@link ListTagsForResourceCommandOutput}
52
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
53
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
54
+ * @see {@link SecurityLakeClientResolvedConfig | config} for SecurityLakeClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization
58
+ * request. An explicit denial occurs when a policy contains a Deny statement for the specific
59
+ * Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also
60
+ * no applicable Allow statement.</p>
61
+ *
62
+ * @throws {@link BadRequestException} (client fault)
63
+ * <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
64
+ *
65
+ * @throws {@link ConflictException} (client fault)
66
+ * <p>Occurs when a conflict with a previous successful write is detected. This generally
67
+ * occurs when the previous write did not have time to propagate to the host serving the
68
+ * current request. A retry (with appropriate backoff logic) is the recommended response to
69
+ * this exception.</p>
70
+ *
71
+ * @throws {@link InternalServerException} (server fault)
72
+ * <p>Internal service exceptions are sometimes caused by transient issues. Before you start
73
+ * troubleshooting, perform the operation again.</p>
74
+ *
75
+ * @throws {@link ResourceNotFoundException} (client fault)
76
+ * <p>The resource could not be found.</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>The limit on the number of requests per second was exceeded.</p>
80
+ *
81
+ * @throws {@link SecurityLakeServiceException}
82
+ * <p>Base exception class for all service exceptions from SecurityLake service.</p>
83
+ *
84
+ */
85
+ export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, SecurityLakeClientResolvedConfig> {
86
+ readonly input: ListTagsForResourceCommandInput;
87
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
88
+ /**
89
+ * @public
90
+ */
91
+ constructor(input: ListTagsForResourceCommandInput);
92
+ /**
93
+ * @internal
94
+ */
95
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityLakeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
96
+ /**
97
+ * @internal
98
+ */
99
+ private serialize;
100
+ /**
101
+ * @internal
102
+ */
103
+ private deserialize;
104
+ }
@@ -0,0 +1,109 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
5
+ import { SecurityLakeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityLakeClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link TagResourceCommand}.
14
+ */
15
+ export interface TagResourceCommandInput extends TagResourceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TagResourceCommand}.
21
+ */
22
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Adds or updates one or more tags that are associated with an Amazon Security Lake resource: a subscriber, or the data lake configuration for your
27
+ * Amazon Web Services account in a particular Amazon Web Services Region. A <i>tag</i> is a label that you can define and associate with
28
+ * Amazon Web Services resources. Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>. A
29
+ * <i>tag key</i> is a general label that acts as a category for a more specific tag value. A <i>tag value</i> acts as a
30
+ * descriptor for a tag key. Tags can help you identify, categorize, and manage resources in different ways, such as by owner, environment, or other
31
+ * criteria. For more information, see
32
+ * <a href="https://docs.aws.amazon.com/security-lake/latest/userguide/tagging-resources.html">Tagging Amazon Security Lake resources</a> in the
33
+ * <i>Amazon Security Lake User Guide</i>.</p>
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { SecurityLakeClient, TagResourceCommand } from "@aws-sdk/client-securitylake"; // ES Modules import
38
+ * // const { SecurityLakeClient, TagResourceCommand } = require("@aws-sdk/client-securitylake"); // CommonJS import
39
+ * const client = new SecurityLakeClient(config);
40
+ * const input = { // TagResourceRequest
41
+ * resourceArn: "STRING_VALUE", // required
42
+ * tags: [ // TagList // required
43
+ * { // Tag
44
+ * key: "STRING_VALUE", // required
45
+ * value: "STRING_VALUE", // required
46
+ * },
47
+ * ],
48
+ * };
49
+ * const command = new TagResourceCommand(input);
50
+ * const response = await client.send(command);
51
+ * // {};
52
+ *
53
+ * ```
54
+ *
55
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
56
+ * @returns {@link TagResourceCommandOutput}
57
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
58
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
59
+ * @see {@link SecurityLakeClientResolvedConfig | config} for SecurityLakeClient's `config` shape.
60
+ *
61
+ * @throws {@link AccessDeniedException} (client fault)
62
+ * <p>You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization
63
+ * request. An explicit denial occurs when a policy contains a Deny statement for the specific
64
+ * Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also
65
+ * no applicable Allow statement.</p>
66
+ *
67
+ * @throws {@link BadRequestException} (client fault)
68
+ * <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
69
+ *
70
+ * @throws {@link ConflictException} (client fault)
71
+ * <p>Occurs when a conflict with a previous successful write is detected. This generally
72
+ * occurs when the previous write did not have time to propagate to the host serving the
73
+ * current request. A retry (with appropriate backoff logic) is the recommended response to
74
+ * this exception.</p>
75
+ *
76
+ * @throws {@link InternalServerException} (server fault)
77
+ * <p>Internal service exceptions are sometimes caused by transient issues. Before you start
78
+ * troubleshooting, perform the operation again.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The resource could not be found.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The limit on the number of requests per second was exceeded.</p>
85
+ *
86
+ * @throws {@link SecurityLakeServiceException}
87
+ * <p>Base exception class for all service exceptions from SecurityLake service.</p>
88
+ *
89
+ */
90
+ export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, SecurityLakeClientResolvedConfig> {
91
+ readonly input: TagResourceCommandInput;
92
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
93
+ /**
94
+ * @public
95
+ */
96
+ constructor(input: TagResourceCommandInput);
97
+ /**
98
+ * @internal
99
+ */
100
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: SecurityLakeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
101
+ /**
102
+ * @internal
103
+ */
104
+ private serialize;
105
+ /**
106
+ * @internal
107
+ */
108
+ private deserialize;
109
+ }