

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

# 重新命名客戶受管組態記錄器
<a name="managing-recorder_console-rename"></a>

您必須使用 AWS CLI 來重新命名客戶受管組態記錄器。若要變更客戶受管組態記錄器的名稱，您必須將其刪除，並使用您指定的名稱建立新的組態記錄器。

**使用 重新命名客戶受管組態記錄器 AWS CLI**

1. 使用 [https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-configuration-recorders.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-configuration-recorders.html)命令來查詢目前客戶受管組態記錄器的名稱：

   ```
   $ aws configservice describe-configuration-recorders
   {
       "ConfigurationRecorders": [
           {
               "roleARN": "arn:aws:iam::012345678912:role/myConfigRole",
               "name": "default"
           }
       ]
   }
   ```

1. 使用 [https://docs.aws.amazon.com/cli/latest/reference/configservice/delete-configuration-recorder.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/delete-configuration-recorder.html)命令來刪除客戶受管的目前組態記錄器：

   ```
   $ aws configservice delete-configuration-recorder --configuration-recorder-name default
   ```

1. 使用 [https://docs.aws.amazon.com/cli/latest/reference/configservice/put-configuration-recorder.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/put-configuration-recorder.html)命令建立具有新名稱的客戶受管組態記錄器：

   ```
   $ aws configservice put-configuration-recorder --configuration-recorder name=configRecorderName,roleARN=arn:aws:iam::012345678912:role/myConfigRole
   ```

1. 使用 [https://docs.aws.amazon.com/cli/latest/reference/configservice/start-configuration-recorder.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/start-configuration-recorder.html) 命令繼續記錄：

   ```
   $ aws configservice start-configuration-recorder --configuration-recorder-name configRecorderName
   ```