in source/state_machine_router.py [0:0]
def cloudformation(event, function_name):
logger.info("Router FunctionName: {}".format(function_name))
stack_set = CloudFormation(event, logger)
if function_name == 'describe_stack_set':
response = stack_set.describe_stack_set()
elif function_name == 'describe_stack_set_operation':
response = stack_set.describe_stack_set_operation()
elif function_name == 'list_stack_instances':
response = stack_set.list_stack_instances()
elif function_name == 'list_stack_instances_account_ids':
response = stack_set.list_stack_instances_account_ids()
elif function_name == 'create_stack_set':
response = stack_set.create_stack_set()
elif function_name == 'create_stack_instances':
response = stack_set.create_stack_instances()
elif function_name == 'update_stack_set':
response = stack_set.update_stack_set()
elif function_name == 'update_stack_instances':
response = stack_set.update_stack_instances()
elif function_name == 'delete_stack_set':
response = stack_set.delete_stack_set()
elif function_name == 'delete_stack_instances':
response = stack_set.delete_stack_instances()
else:
message = build_messages(1)
logger.info(message)
return {"Message": message}
logger.info(response)
return response