

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 配信チャネルの名前変更
<a name="update-dc-rename"></a>

配信チャネルの名前を変更するには、まず現在の配信チャネルを削除し、次に指定した名前で作り直す必要があります。配信チャネルを削除する前に、一時的に設定レコーダーを停止する必要があります。 AWS Config コンソールには、配信チャネルを削除するオプションはありません。CLI、 AWS Config API、またはいずれかの AWS SDKs AWS を使用する必要があります。

**を使用した配信チャネルの名前変更 AWS CLI**

1. [https://docs.aws.amazon.com/cli/latest/reference/configservice/stop-configuration-recorder.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/stop-configuration-recorder.html)コマンドを使用して設定レコーダーを停止します。

   ```
   $ aws configservice stop-configuration-recorder --configuration-recorder-name {{configRecorderName}}
   ```

1. [https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-delivery-channels.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/describe-delivery-channels.html)コマンドを使用して配信チャネルの属性を書き留めます。

   ```
   $ aws configservice describe-delivery-channels
   {
       "DeliveryChannels": [
           {
               "configSnapshotDeliveryProperties": {
                   "deliveryFrequency": "Twelve_Hours"
               },
               "snsTopicARN": "arn:aws:sns:us-east-2:123456789012:config-topic",
               "name": "default",
               "s3BucketName": "config-bucket-123456789012"
           }
       ]
   }
   ```

1. [https://docs.aws.amazon.com/cli/latest/reference/configservice/delete-delivery-channel.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/delete-delivery-channel.html)コマンドを使用して配信チャネルを削除します。

   ```
   $ aws configservice delete-delivery-channel --delivery-channel-name {{default}}
   ```

1. [https://docs.aws.amazon.com/cli/latest/reference/configservice/put-delivery-channel.html](https://docs.aws.amazon.com/cli/latest/reference/configservice/put-delivery-channel.html)コマンドを使用して、新しい名前で配信チャネルを作成します。

   ```
   $ aws configservice put-delivery-channel --delivery-channel file://deliveryChannel.json
   ```

   deliveryChannel.json ファイルは、配信チャネルの属性を指定します。

   ```
   {
       "name": "myCustomDeliveryChannelName",
       "s3BucketName": "config-bucket-123456789012",
       "snsTopicARN": "arn:aws:sns:us-east-2:123456789012:config-topic",
       "configSnapshotDeliveryProperties": {
           "deliveryFrequency": "Twelve_Hours"
       }
   }
   ```

1. `start-configuration-recorder` コマンドを使用して記録を再開します。

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