code: def set_s3_bucket(self, region, name, bucketName):
          
          ct = self.session.client('cloudtrail', region_name=region)
          ct.update_trail(Name=name, S3BucketName=bucketName)
  
          auditlog(
              event='cloudtrail.set_s3_bucket',
              actor=self.ns,
              data={
                  'account': self.account.account_name,
                  'region': region
              }
          )
          self.log.info('Updated S3BucketName to {} for {} in {}/{}'.format(
              bucketName,
              name,
              self.account.account_name,
              region
          ))
docs: Sets the S3 bucket location for logfile delivery
  
          Args:
              region (`str`): Name of the AWS region
              name (`str`): Name of the CloudTrail Trail
              bucketName (`str`): Name of the S3 bucket to deliver log files to
  
          Returns:
              `None`