

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

# `Image` 部分
<a name="build-Image-v3"></a>

**（可选）**定义映像构建的映像属性。

```
Image:
  Name: string
  RootVolume:
    Size: integer
    Encrypted: boolean
    KmsKeyId: string
  Tags:
    - Key: string
      Value: string
```

## `Image` 属性
<a name="build-Image-v3.properties"></a>

`Name`（**可选**，`String`）  
指定 AMI 的名称。如果未指定，则使用调用 [`pcluster build-image`](pcluster.build-image-v3.md) 命令时使用的名称。

### `Tags`
<a name="build-Image-v3-Tags"></a>

#### `Tags` 属性
<a name="build-Image-v3-Tags.properties"></a>

（**可选**）指定映像的键值对。

```
Tags:
  - Key: string
    Value: string
```

`Key`（**可选**，`String`）  
定义标签的名称。

`Value`（**可选**，`String`）  
定义标签的值。

### `RootVolume`
<a name="build-Image-v3-RootVolume"></a>

#### `RootVolume` 属性
<a name="build-Image-v3-RootVolume.properties"></a>

（**可选**）指定映像根卷的属性。

```
RootVolume:
  Size: integer
  Encrypted: boolean
  KmsKeyId: string
```

`Size`（**可选**，`Integer`）  
指定映像根卷的大小，以 GiB 为单位。默认大小为 [`ParentImage`](Build-v3.md#yaml-build-image-Build-ParentImage) 的大小加 27 GiB。

`Encrypted`（**可选**，`Boolean`）  
指定是否对卷进行加密。默认值为 `false`。

`KmsKeyId`（**可选**，`String`）  
指定用于加密卷的 AWS KMS 密钥的 ARN。格式为 `arn:Partition:kms:Region:Account:key/KeyId`。