

终止支持通知：2026 年 5 月 20 日， AWS 将终止对的支持。 AWS SimSpace Weaver 2026 年 5 月 20 日之后，您将无法再访问 SimSpace Weaver 控制台或 SimSpace Weaver 资源。有关更多信息，请参阅[AWS SimSpace Weaver 终止支持](https://docs.aws.amazon.com/simspaceweaver/latest/userguide/simspaceweaver-end-of-support.html)。

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

# 空间域配置
<a name="schema-reference_format_domains_spatial"></a>

要指定空间域的属性，请*spatial-domain-name*使用您选择的名称替换。该名称的长度必须为 3-64 个字符，可以包含以下字符：**A** -**Z**、**a** -**z**、**0** -**9** 和 **\$1 -**（短横线）。在名称后指定空间域的属性。

```
  spatial-domain-name:
    launch_apps_by_partitioning_strategy:
      partitioning_strategy: "partitioning-strategy-name"
      grid_partition:
        x: number-of-partitions-along-x-axis
        y: number-of-partitions-along-y-axis
    app_config:
      package: "app-package-s3-uri"
      launch_command: ["app-launch-command", "parameter1", ...]
      required_resource_units:
        compute: app-resource-units
    image: "ecr-repository-uri"
```

## 空间域分区策略
<a name="schema-reference_format_domains_spatial_partitioning-strategy"></a>

`launch_apps_by_partitioning_strategy` 部分（必需）指定模拟空间的分区策略和维度（以分区数量的形式）。

```
    launch_apps_by_partitioning_strategy:
      partitioning_strategy: "partitioning-strategy-name"
      grid_partition:
        x: number-of-partitions-along-x-axis
        y: number-of-partitions-along-y-axis
```

**属性**

`partitioning_strategy`  
指定此空间域的分区策略。  
*必需*：是  
*类型*：字符串  
*有效值：*此属性的值必须与 `partitioning_strategies` 部分中定义的分区策略的名称匹配。有关更多信息，请参阅 [分区策略](schema-reference_format_partitioning-strategies.md)。

`grid_partition`  
指定网格拓扑中沿每个轴（x 和 y）的分区数量。这些维度描述该域的总模拟空间。  
*必填*：条件性。只有拓扑设置为 `"Grid"` 时，才能指定此属性。此属性取决于该域的指定分区策略的 `grid_placement_groups` 属性：  
+ 如果此域的分区策略未指定 `grid_placement_groups` 配置，则此属性是必需的。
+ 如果有 `grid_placement_groups` 配置，但您未指定 `grid_partition`，则 SimSpace Weaver 将使用与 `grid_placment_groups` 配置相同的维度。
+ 如果同时指定 `grid_placement_groups` 和 `grid_partition`，则 `grid_partition` 维度必须是 `grid_placement_groups` 的维度的倍数（例如，如果您的 `grid_placement_groups` 维度是 2x2，则对 `grid_partition` 有效的一些维度是 2x2、4x4、6x6、8x8、10x10）。
*类型：*整数（对于各个轴）  
*有效值：*`1`-`20`

## 空间应用程序配置
<a name="schema-reference_format_domains_spatial_app-config"></a>

`app_config` 部分（必需）指定该域中应用程序的程序包、启动配置和资源要求。

```
    app_config:
      package: "app-package-s3-uri"
      launch_command: ["app-launch-command", "parameter1", ...]
      required_resource_units:
        compute: app-resource-units
```

**属性**

`package`  
指定包含应用程序可执行文件/二进制文件的程序包（zip 文件）。程序包必须存储在 Amazon S3 存储桶中。仅支持 zip 文件格式。  
*必需*：是  
*类型*：字符串  
*有效值：*Amazon S3 存储桶中程序包的 Amazon S3 URI。例如，`s3://weaver-myproject-111122223333-app-zips-us-west-2/MySpatialApp.zip`。

`launch_command`  
指定用于启动应用程序的可执行文件/二进制文件名和命令行参数。每个命令行字符串标记都是数组中的一个元素。  
*必需*：是  
*类型：*字符串数组

`required_resource_units`  
指定 SimSpace Weaver 应分配给此应用程序的每个实例的资源单位数量。*资源单位*是固定数量的虚拟中央处理单元 (vCPUs) 和随机存取存储器 (RAM) 在工人身上。有关资源单位的更多信息，请参阅[端点和服务限额](service-quotas.md)。`compute` 属性为工作线程的 `compute` 系列指定资源单位分配，并且是目前唯一有效的分配类型。  
*必需*：是  
*类型*：整数  
*有效值：*`1`-`4`

## 自定义容器映像
<a name="schema-reference_format_domains_spatial_image"></a>

`image`属性（可选）指定用于在此域中运行应用程序的容器镜像的位置（版本`1.13`和不支持`1.12`）。 SimSpace Weaver 将 URI 提供给 Amazon Elastic Container Registry (Amazon ECR) 中包含映像的存储库。如果未指定此属性，但 `default_image` 是在顶级 `simulation_properties` 部分指定的，则该域中的应用程序使用 `default_image`。有关更多信息，请参阅 [自定义容器](working-with_custom-containers.md)。

```
    image: "ecr-repository-uri"
```

**属性**

`image`  
指定容器映像的位置，以便在此域中运行应用程序。  
*必需*：否  
*类型*：字符串  
*有效值：*  
+ Amazon Elastic Container Registry (Amazon ECR) 中存储库的 URI（例如，`111122223333.dkr.ecr.us-west-2.amazonaws.com/my-ecr-repository:latest`）