Skip to content

Commit

Permalink
feat(client-securitylake): Adding support for Tags on Create and Reso…
Browse files Browse the repository at this point in the history
…urce Tagging API.
  • Loading branch information
awstools committed Jul 20, 2023
1 parent f47d6f4 commit 596636d
Show file tree
Hide file tree
Showing 15 changed files with 1,354 additions and 73 deletions.
24 changes: 24 additions & 0 deletions clients/client-securitylake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,14 @@ ListSubscribers

[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)

</details>
<details>
<summary>
ListTagsForResource
</summary>

[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)

</details>
<details>
<summary>
Expand All @@ -419,6 +427,22 @@ RegisterDataLakeDelegatedAdministrator

[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)

</details>
<details>
<summary>
TagResource
</summary>

[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)

</details>
<details>
<summary>
UntagResource
</summary>

[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)

</details>
<details>
<summary>
Expand Down
53 changes: 53 additions & 0 deletions clients/client-securitylake/src/SecurityLake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,22 @@ import {
ListSubscribersCommandInput,
ListSubscribersCommandOutput,
} from "./commands/ListSubscribersCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
RegisterDataLakeDelegatedAdministratorCommand,
RegisterDataLakeDelegatedAdministratorCommandInput,
RegisterDataLakeDelegatedAdministratorCommandOutput,
} from "./commands/RegisterDataLakeDelegatedAdministratorCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UntagResourceCommand,
UntagResourceCommandInput,
UntagResourceCommandOutput,
} from "./commands/UntagResourceCommand";
import {
UpdateDataLakeCommand,
UpdateDataLakeCommandInput,
Expand Down Expand Up @@ -168,7 +179,10 @@ const commands = {
ListDataLakesCommand,
ListLogSourcesCommand,
ListSubscribersCommand,
ListTagsForResourceCommand,
RegisterDataLakeDelegatedAdministratorCommand,
TagResourceCommand,
UntagResourceCommand,
UpdateDataLakeCommand,
UpdateDataLakeExceptionSubscriptionCommand,
UpdateSubscriberCommand,
Expand Down Expand Up @@ -543,6 +557,23 @@ export interface SecurityLake {
cb: (err: any, data?: ListSubscribersCommandOutput) => void
): void;

/**
* @see {@link ListTagsForResourceCommand}
*/
listTagsForResource(
args: ListTagsForResourceCommandInput,
options?: __HttpHandlerOptions
): Promise<ListTagsForResourceCommandOutput>;
listTagsForResource(
args: ListTagsForResourceCommandInput,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;
listTagsForResource(
args: ListTagsForResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
): void;

/**
* @see {@link RegisterDataLakeDelegatedAdministratorCommand}
*/
Expand All @@ -560,6 +591,28 @@ export interface SecurityLake {
cb: (err: any, data?: RegisterDataLakeDelegatedAdministratorCommandOutput) => void
): void;

/**
* @see {@link TagResourceCommand}
*/
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
tagResource(
args: TagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: TagResourceCommandOutput) => void
): void;

/**
* @see {@link UntagResourceCommand}
*/
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
untagResource(
args: UntagResourceCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UntagResourceCommandOutput) => void
): void;

/**
* @see {@link UpdateDataLakeCommand}
*/
Expand Down
12 changes: 12 additions & 0 deletions clients/client-securitylake/src/SecurityLakeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,16 @@ import {
import { ListDataLakesCommandInput, ListDataLakesCommandOutput } from "./commands/ListDataLakesCommand";
import { ListLogSourcesCommandInput, ListLogSourcesCommandOutput } from "./commands/ListLogSourcesCommand";
import { ListSubscribersCommandInput, ListSubscribersCommandOutput } from "./commands/ListSubscribersCommand";
import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
RegisterDataLakeDelegatedAdministratorCommandInput,
RegisterDataLakeDelegatedAdministratorCommandOutput,
} from "./commands/RegisterDataLakeDelegatedAdministratorCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateDataLakeCommandInput, UpdateDataLakeCommandOutput } from "./commands/UpdateDataLakeCommand";
import {
UpdateDataLakeExceptionSubscriptionCommandInput,
Expand Down Expand Up @@ -159,7 +165,10 @@ export type ServiceInputTypes =
| ListDataLakesCommandInput
| ListLogSourcesCommandInput
| ListSubscribersCommandInput
| ListTagsForResourceCommandInput
| RegisterDataLakeDelegatedAdministratorCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateDataLakeCommandInput
| UpdateDataLakeExceptionSubscriptionCommandInput
| UpdateSubscriberCommandInput
Expand Down Expand Up @@ -192,7 +201,10 @@ export type ServiceOutputTypes =
| ListDataLakesCommandOutput
| ListLogSourcesCommandOutput
| ListSubscribersCommandOutput
| ListTagsForResourceCommandOutput
| RegisterDataLakeDelegatedAdministratorCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateDataLakeCommandOutput
| UpdateDataLakeExceptionSubscriptionCommandOutput
| UpdateSubscriberCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface CreateAwsLogSourceCommandOutput extends CreateAwsLogSourceRespo
* <p>Adds a natively supported Amazon Web Service as an Amazon Security Lake source. Enables
* source types for member accounts in required Amazon Web Services Regions, based on the
* parameters you specify. You can choose any source type in any Region for either accounts
* 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>
* 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>
* <p>You can use this API only to enable natively supported Amazon Web Services as a
* source. Use <code>CreateCustomLogSource</code> to enable data collection from a custom
* source.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export interface CreateDataLakeCommandOutput extends CreateDataLakeResponse, __M
* @public
* <p>Initializes an Amazon Security Lake instance with the provided (or default) configuration. You
* can enable Security Lake in Amazon Web Services Regions with customized settings before enabling
* log collection in Regions. By default, the <code>CreateDataLake</code> Security Lake in all
* Regions. To specify particular Regions, configure these Regions using the
* log collection in Regions. To specify particular Regions, configure these Regions using the
* <code>configurations</code> parameter. If you have already enabled Security Lake in a Region
* when you call this command, the command will update the Region if you provide new
* configuration parameters. If you have not already enabled Security Lake in the Region when you
Expand Down Expand Up @@ -84,6 +83,12 @@ export interface CreateDataLakeCommandOutput extends CreateDataLakeResponse, __M
* },
* ],
* metaStoreManagerRoleArn: "STRING_VALUE", // required
* tags: [ // TagList
* { // Tag
* key: "STRING_VALUE", // required
* value: "STRING_VALUE", // required
* },
* ],
* };
* const command = new CreateDataLakeCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ export interface CreateSubscriberCommandOutput extends CreateSubscriberResponse,
* accessTypes: [ // AccessTypeList
* "LAKEFORMATION" || "S3",
* ],
* tags: [ // TagList
* { // Tag
* key: "STRING_VALUE", // required
* value: "STRING_VALUE", // required
* },
* ],
* };
* const command = new CreateSubscriberCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@ export interface DeleteDataLakeOrganizationConfigurationCommandOutput

/**
* @public
* <p>Removes automatic the enablement of configuration settings for new member accounts (but
* retains the settings for the delegated administrator) from Amazon Security Lake. You must run this
* API using the credentials of the delegated administrator. When you run this API, new member
* accounts that are added after the organization enables Security Lake won't contribute to the
* data lake.</p>
* <p>Turns off automatic enablement of Amazon Security Lake for member accounts that are added to an organization in Organizations. Only the delegated
* Security Lake administrator for an organization can perform this operation. If the delegated Security Lake administrator performs this operation, new member
* accounts won't automatically contribute data to the data lake.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export interface ListDataLakesCommandOutput extends ListDataLakesResponse, __Met

/**
* @public
* <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
* Security Lake is enabled for any region.</p>
* <p>Retrieves the Amazon Security Lake configuration object for the specified Amazon Web Services Regions. You can use this operation to determine whether
* Security Lake is enabled for a Region.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Loading

0 comments on commit 596636d

Please sign in to comment.