def enable_sns_notification(self, region, trailName):
        """Enable SNS notifications for a Trail

        Args:
            region (`str`): Name of the AWS region
            trailName (`str`): Name of the CloudTrail Trail

        Returns:
            `None`
        """
        ct = self.session.client('cloudtrail', region_name=region)
        ct.update_trail(Name=trailName, SnsTopicName=self.topic_name)

        auditlog(
            event='cloudtrail.enable_sns_notification',
            actor=self.ns,
            data={
                'account': self.account.account_name,
                'region': region
            }
        )
        self.log.info('Enabled SNS notifications for trail {} in {}/{}'.format(
            trailName,
            self.account.account_name,
            region
        ))
def enable_sns_notification ( self , region , trailName ) : ct = self . session . client ( 'cloudtrail' , region_name = region ) ct . update_trail ( Name = trailName , SnsTopicName = self . topic_name ) auditlog ( event = 'cloudtrail.enable_sns_notification' , actor = self . ns , data = { 'account' : self . account . account_name , 'region' : region } ) self . log . info ( 'Enabled SNS notifications for trail {} in {}/{}' . format ( trailName , self . account . account_name , region ) )
Enable SNS notifications for a Trail

        Args:
            region (`str`): Name of the AWS region
            trailName (`str`): Name of the CloudTrail Trail

        Returns:
            `None`