

終止支援通知： 將於 2026 AWS 年 5 月 20 日結束對 的支援 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 應配置給此應用程式每個執行個體的資源單位數量。*資源單位*是工作者(RAM)上固定數量的虛擬中央處理單位(vCPUs)和隨機存取記憶體。如需資源單位的詳細資訊，請參閱 [端點和服務配額](service-quotas.md)。`compute` 屬性會指定`compute`系列工作者的資源單位配置，目前是唯一有效的配置類型。  
*必要*：是  
*類型*：整數  
*有效值：*`1`-`4`

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

`image` 屬性 （選用） 會指定容器映像的位置，該映像 SimSpace Weaver 會用來在此網域中執行應用程式 （版本 `1.13`和 不支援）`1.12`。將 URI 提供給 Amazon Elastic Container Registry (Amazon ECR) 中包含映像的儲存庫。如果未指定此屬性，但在頂層`simulation_properties`區段中指定 `default_image` ，則此網域中的應用程式會使用 `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`)