

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# CloudFormation 範本格式版本語法
<a name="format-version-structure"></a>

`AWSTemplateFormatVersion` 區段 (選用) 可識別範本所遵循的範本格式版本。最新的範本格式版本是 `2010-09-09`，而且是目前唯一的有效值。

範本格式版本與 API 版本不同。範本格式版本可以與 API 版本分開變更。

範本格式版本宣告的值必須是常值字串。您不能使用參數或函數來指定範本格式版本。如果未指定值，則 CloudFormation 會採用最新的範本格式版本。下列程式碼片段是有效範本格式版本宣告範例：

## JSON
<a name="format-version-structure-example.json"></a>

```
"AWSTemplateFormatVersion" : "2010-09-09"
```

## YAML
<a name="format-version-structure-example.yaml"></a>

```
AWSTemplateFormatVersion: 2010-09-09
```