# 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


class StepFunctionCostUpdater(object):
    sfn_type = SFN_TYPE

    def __init__(self,
                 dev_suffix=None,

# 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



class StepFunctionCostUpdater(object):
    sfn_type = SFN_TYPE

    def __init__(self,
                 dev_suffix=None,

                 region_name=AWS_REGION,