# Path: tibanna/vars.py
# AWS_REGION = os.environ.get('TIBANNA_AWS_REGION', '')
# 
# AWS_ACCOUNT_NUMBER = os.environ.get('AWS_ACCOUNT_NUMBER', '')
# 
# SFN_TYPE = 'unicorn'
# 
# UPDATE_COST_LAMBDA_NAME = 'update_cost_awsem'
# 
# Path: tibanna/utils.py
# def create_tibanna_suffix(suffix, usergroup):
#     if usergroup and suffix:
#         function_name_suffix = usergroup + '_' + suffix
#     elif suffix:
#         function_name_suffix = suffix
#     elif usergroup:
#         function_name_suffix = usergroup
#     else:
#         function_name_suffix = ''
# 
#     if function_name_suffix:
#         return '_' + function_name_suffix
#     else:
#         return ''


from .vars import (
    AWS_REGION,
    AWS_ACCOUNT_NUMBER,
    SFN_TYPE,
    UPDATE_COST_LAMBDA_NAME
)
from .utils import create_tibanna_suffix
        from .iam_utils import IAM
                 region_name=AWS_REGION,
                 aws_acc=AWS_ACCOUNT_NUMBER,
                 usergroup=None):
        self.dev_suffix = dev_suffix
        self.region_name = region_name
        self.aws_acc = aws_acc
        self.usergroup = usergroup

    @property
    def lambda_suffix(self):
        return create_tibanna_suffix(self.dev_suffix, self.usergroup)

    @property
    def lambda_arn_prefix(self):
        return "arn:aws:lambda:" + self.region_name + ":" + self.aws_acc + ":function:"

    @property
    def sfn_name(self):
        return 'tibanna_' + self.sfn_type + self.lambda_suffix + '_costupdater'

    @property
    def iam(self):
        return IAM(self.usergroup)

    @property
    def sfn_role_arn(self):
        sfn_role_arn = "arn:aws:iam::" + self.aws_acc + ":role/" + \
                       self.iam.role_name('stepfunction')
        return sfn_role_arn


# Path: tibanna/vars.py
# AWS_REGION = os.environ.get('TIBANNA_AWS_REGION', '')
# 
# AWS_ACCOUNT_NUMBER = os.environ.get('AWS_ACCOUNT_NUMBER', '')
# 
# SFN_TYPE = 'unicorn'
# 
# UPDATE_COST_LAMBDA_NAME = 'update_cost_awsem'
# 
# Path: tibanna/utils.py
# def create_tibanna_suffix(suffix, usergroup):
#     if usergroup and suffix:
#         function_name_suffix = usergroup + '_' + suffix
#     elif suffix:
#         function_name_suffix = suffix
#     elif usergroup:
#         function_name_suffix = usergroup
#     else:
#         function_name_suffix = ''
# 
#     if function_name_suffix:
#         return '_' + function_name_suffix
#     else:
#         return ''


# Path: tibanna/stepfunction_cost_updater.py
from .vars import (
    AWS_REGION,
    AWS_ACCOUNT_NUMBER,
    SFN_TYPE,
    UPDATE_COST_LAMBDA_NAME
)
from .utils import create_tibanna_suffix
        from .iam_utils import IAM

                 region_name=AWS_REGION,
                 aws_acc=AWS_ACCOUNT_NUMBER,
                 usergroup=None):
        self.dev_suffix = dev_suffix
        self.region_name = region_name
        self.aws_acc = aws_acc
        self.usergroup = usergroup

    @property
    def lambda_suffix(self):
        return create_tibanna_suffix(self.dev_suffix, self.usergroup)

    @property
    def lambda_arn_prefix(self):
        return "arn:aws:lambda:" + self.region_name + ":" + self.aws_acc + ":function:"

    @property
    def sfn_name(self):
        return 'tibanna_' + self.sfn_type + self.lambda_suffix + '_costupdater'

    @property
    def iam(self):
        return IAM(self.usergroup)

    @property
    def sfn_role_arn(self):
        sfn_role_arn = "arn:aws:iam::" + self.aws_acc + ":role/" + \
                       self.iam.role_name('stepfunction')
        return sfn_role_arn


    @property