

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用创建、更新和管理事件数据存储 Amazon CLI
<a name="lake-eds-cli"></a>

**注意**  
Amazon CloudTrail 从 2026 年 5 月 31 日起，Lake 将不再向新客户开放。如果您想使用 CloudTrail Lake，请在该日期之前注册。现有客户可以继续正常使用该服务。有关更多信息，请参阅 [CloudTrail 湖泊可用性变更](cloudtrail-lake-service-availability-change.md)。

本节介绍可用于创建、更新和管理 CloudTrail Lake 事件数据存储的 Amazon CLI 命令。

使用时 Amazon CLI，请记住您的命令在 Amazon Web Services 区域 配置文件中运行。如果您想要在不同的区域中运行命令，可以为配置文件更改默认区域，或者与命令一起使用 **--region** 参数。

## 可用于事件数据存储的命令
<a name="lake-eds-cli-commands"></a>

用于在 La CloudTrail ke 中创建和更新事件数据存储的命令包括：
+ `create-event-data-store`：创建事件数据存储。
+ `get-event-data-store`：返回有关事件数据存储的信息，包括为事件数据存储配置的高级事件选择器。
+ `update-event-data-store`：更改现有事件数据存储的配置。
+ `list-event-data-stores`：列出事件数据存储。
+ `delete-event-data-store`：删除事件数据存储。
+ `restore-event-data-store`：还原待删除的事件数据存储。
+ `start-import`：开始将跟踪事件导入事件数据存储，或者重试失败的导入事件。
+ `[get-import](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/get-import.html)`：返回有关特定导入的信息。
+ `[stop-import](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/stop-import.html)`：停止将跟踪事件导入事件数据存储。
+ `[list-imports](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/list-imports.html)`：返回有关所有导入的信息，或者按 `ImportStatus` 或 `Destination` 返回一组选定导入的信息。
+ `[list-import-failures](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/list-import-failures.html)`：列出指定导入的导入失败。
+ `stop-event-data-store-ingestion`：停止事件数据存储上的事件引入。
+ `start-event-data-store-ingestion`：重新开始事件数据存储上的事件引入。
+ `enable-federation`：在事件数据存储上启用联合以查询 Amazon Athena 中的事件数据存储。
+ `disable-federation`：在事件数据存储上禁用联合。禁用联合后，您将无法再在 Amazon Athena 中查询事件数据存储的数据。您可以继续在 L CloudTrail ake 中查询。
+ `[put-insight-selectors](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/put-insight-selectors.html)`：为现有事件数据存储添加或修改 Insights 事件选择器，以及启用或禁用 Insights 事件。
+ `[get-insight-selectors](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/get-insight-selectors.html)`：返回有关为事件数据存储配置的 Insights 事件选择器的信息。
+ `[add-tags](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/add-tags.html)`：向现有事件数据存储添加一个或多个标签（键值对）。
+ `[remove-tags](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/remove-tags.html)`：从事件数据存储中删除一个或多个标签。
+ `[list-tags](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/list-tags.html)`：返回与事件数据存储关联的标签列表。
+ [`get-event-configuration`](lake-cli-manage-eds.md#lake-cli-get-event-configuration) 可返回为事件数据存储配置的任何资源标签键和 IAM 全局条件键。该命令还会返回事件数据存储是配置为收集 `Standard` 大小事件还是 `Large` 大小事件。
+ [`put-event-configuration`](lake-cli-manage-eds.md#lake-cli-put-event-configuration) 可扩展事件大小，并添加或移除资源标签键和 IAM 全局条件键。有关更多信息，请参阅 [通过添加资源标签密钥和 IAM 全局条件键来丰富 CloudTrail 事件](cloudtrail-context-events.md)。
+ `[put-resource-policy](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/put-resource-policy.html)` 可将基于资源的策略附加到事件数据存储。利用基于资源的策略，您能够控制哪些主体可以对您的事件数据存储执行操作。有关示例策略，请参阅 [事件数据存储的基于资源的策略示例](security_iam_resource-based-policy-examples.md#security_iam_resource-based-policy-examples-eds)。
+ `[get-resource-policy](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/get-resource-policy.html)` 可获取附加到事件数据存储的基于资源的策略。
+ `[delete-resource-policy](https://docs.amazonaws.cn/cli/latest/reference/cloudtrail/delete-resource-policy.html)` 可删除附加到事件数据存储的基于资源的策略。

有关可用于 La CloudTrail ke 查询的命令列表，请参阅[可用于 L CloudTrail ake 查询的命令](lake-queries-cli.md#lake-queries-cli-commands)。

有关 La CloudTrail ke 仪表板可用命令的列表，请参阅[可用于控制面板的命令](lake-dashboard-cli.md#lake-dashboard-cli-commands)。

有关 La CloudTrail ke 集成的可用命令列表，请参阅[L CloudTrail ake 集成的可用命令](lake-integrations-cli.md#lake-integrations-cli-commands)。