**To update a trail**
The following ``update-trail`` command updates a trail to use an existing bucket for log delivery::
aws cloudtrail update-trail --name Trail1 --s3-bucket-name my-bucket
Output::
{
"IncludeGlobalServiceEvents": true,
"Name": "Trail1",
"TrailARN": "arn:aws:cloudtrail:us-west-2:123456789012:trail/Trail1",
"LogFileValidationEnabled": false,
"IsMultiRegionTrail": true,
"S3BucketName": "my-bucket"
}