Update a channel with the Amazon CLI - Amazon CloudTrail
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Update a channel with the Amazon CLI

This section describes how you can use the Amazon CLI to update a channel for a CloudTrail Lake integration. You can run the update-channel command to update the name of the channel or to specify a different destination event data store. You cannot update the source of a channel.

When you run the command, the --channel parameter is required.

The following is an example that demonstrates how to update the channel name and destination.

aws cloudtrail update-channel \ --channel aws:cloudtrail:us-east-1:123456789012:channel/EXAMPLE8-0558-4f7e-a06a-43969EXAMPLE \ --name "new-channel-name" \ --destinations '[{"Type": "EVENT_DATA_STORE", "Location": "EXAMPLEf852-4e8f-8bd1-bcf6cEXAMPLE"}, {"Type": "EVENT_DATA_STORE", "Location": "EXAMPLEg922-5n2l-3vz1- apqw8EXAMPLE"}]'