

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

# 變更加速警示組態
<a name="acc-mem-change-am"></a>

若要新增或更新新的警示定義，您可以部署組態文件 [使用 CloudFormation 來部署加速組態變更](acc-mem-deploy-change-cfn.md)，或叫用 [CreateHostedConfigurationVersion](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_CreateHostedConfigurationVersion.html) API。

這是 Linux 命令列命令，可在 base64 中產生參數值，這是 AppConfig CLI 命令預期的值。如需詳細資訊，請參閱 AWS CLI 文件 [Binary/Blob （二進位大型物件）](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-blob)。

舉例來說：

```
aws appconfig create-hosted-configuration-version --application-id application-id --configuration-profile-id configuration-profile-id --content base64-string 
      --content-type application/json
```
+ **應用程式 ID：**應用程式 AMS AlarmManager 的 ID；您可以透過 [ListApplications](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_ListApplications.html) API 呼叫找到此資訊。
+ **組態設定檔 ID**：CustomerManagedAlarms 組態的 ID；您可以透過 [ListConfigurationProfiles](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_ListConfigurationProfiles.html) API 呼叫找到此資訊。
+ **內容**：要建立內容的 Base64 字串，方法是在 base64 中建立文件並對其進行編碼：cat alarm-v2.json \$1 base64 （請參閱 [Binary/Blob （二進位大型物件）](https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-types.html#parameter-type-blob))。

  **內容類型**：MIME 類型，`application/json`因為警示定義是以 JSON 撰寫。

**重要**  
將對 [StartDeployment](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_StartDeployment.html) 和 [StopDeployment](https://docs.aws.amazon.com/appconfig/2019-10-09/APIReference/API_StopDeployment.html) API 動作的存取限制在瞭解將新組態部署至目標的責任和後果的受信任使用者。

若要進一步了解如何使用 AWS AppConfig 功能來建立和部署組態，請參閱[使用 AWS AppConfig](https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-working.html)。