def get_security_check_detail_handler(event, context): trace_id = eventhelper.get_trace_id(event) user_id = eventhelper.get_trace_id(event) organization_id = eventhelper.get_organization_id(event) project_id = eventhelper.get_project_id(event) check_history_id = eventhelper.get_check_history_id(event) group_filter = eventhelper.get_group_filter(event) # Get logging pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # アクセス権限チェックを行います。 response_authority = checkauthority.authority(trace_id, user_id, organization_id, Authority.Viewer) if response_authority: return common_utils.response(response_authority, pm_logger) # return response data response = awschecks_logic.get_security_check_detail( trace_id, organization_id, project_id, check_history_id, group_filter) return common_utils.response(response, pm_logger)
def delete_project_handler(event, context): # Get data request trace_id = eventhelper.get_trace_id(event) user_id = eventhelper.get_trace_id(event) email = eventhelper.get_email(event) project_id = eventhelper.get_project_id(event) organization_id = eventhelper.get_organization_id(event) # Get logging pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # アクセス権限チェック response_authority = checkauthority.authority(trace_id, user_id, organization_id, Authority.Owner) if (response_authority): return common_utils.response(response_authority, pm_logger) # delete data response = projects_logic.delete_project(trace_id, email, project_id, organization_id) return common_utils.response(response, pm_logger)
def get_report_url_handler(event, context): trace_id = eventhelper.get_trace_id(event) user_id = eventhelper.get_trace_id(event) organization_id = eventhelper.get_organization_id(event) project_id = eventhelper.get_project_id(event) report_id = eventhelper.get_report_id(event) file_type = eventhelper.get_file_type(event) pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # アクセス権限チェック response_authority = checkauthority.authority(trace_id, user_id, organization_id, Authority.Viewer) if response_authority: return common_utils.response(response_authority, pm_logger) # get report url response = reports_logic.get_report_url(trace_id, report_id, organization_id, project_id, file_type) return common_utils.response(response, pm_logger)
def request_output_report_handler(event, context): trace_id = eventhelper.get_trace_id(event) user_id = eventhelper.get_trace_id(event) email = eventhelper.get_email(event) organization_id = eventhelper.get_organization_id(event) project_id = eventhelper.get_project_id(event) report_id = eventhelper.get_report_id(event) file_type = eventhelper.get_file_type(event) pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # アクセス権限チェック response_authority = checkauthority.authority(trace_id, user_id, organization_id, Authority.Editor) if response_authority: return common_utils.response(response_authority, pm_logger) # export report response = reports_logic.request_output_report(trace_id, email, organization_id, project_id, report_id, file_type) return common_utils.response(response, pm_logger)
def execute_copy_item_setting_handler(event, context): trace_id = eventhelper.get_trace_id(event) user_id = trace_id email = eventhelper.get_email(event) organization_id_destination = eventhelper.get_organization_id(event) project_id_destination = eventhelper.get_project_id(event) coop_id_destination = eventhelper.get_coop_id(event) # Get logging pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # return response data response = checkitemsettings_logic.execute_copy_item_setting( trace_id, organization_id_destination, project_id_destination, coop_id_destination, event['body'], email, user_id) return common_utils.response(response, pm_logger)
def delete_notifyslack_handler(event, context): user_id = eventhelper.get_trace_id(event) trace_id = user_id organization_id = eventhelper.get_organization_id(event) notify_code = eventhelper.get_notify_code(event) # Get logging pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # アクセス権限チェックを行います。 response_authority = checkauthority.authority(trace_id, user_id, organization_id, Authority.Owner) if response_authority: return common_utils.response(response_authority, pm_logger) # return response data response = notifymail_logic.delete_notifyslack(trace_id, organization_id, notify_code) return common_utils.response(response, pm_logger)
def execute_force_invites_handler(event, context): trace_id = eventhelper.get_trace_id(event) user_id = trace_id organization_id = eventhelper.get_organization_id(event) body = event['body'] # Get logging pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # アクセス権限チェック response_authority = checkauthority.authority(trace_id, user_id, organization_id, Authority.Owner) if (response_authority): return common_utils.response(response_authority, pm_logger) # return response data response = organizations_logic.execute_force_invites( trace_id, body, organization_id) return common_utils.response(response, pm_logger)
def get_assessment_item_handler(event, context): trace_id = eventhelper.get_trace_id(event) user_id = trace_id organization_id = eventhelper.get_organization_id(event) project_id = eventhelper.get_project_id(event) check_item_code = eventhelper.get_check_item_code(event) coop_id = eventhelper.get_coop_id(event) # Get logging pm_logger = common_utils.begin_logger(trace_id, __name__, inspect.currentframe()) # アクセス権限チェックを行います。 response_authority = checkauthority.authority(trace_id, user_id, organization_id, Authority.Editor) if response_authority: return common_utils.response(response_authority, pm_logger) # return response data response = checkitemsettings_logic.get_assessment_item( trace_id, organization_id, project_id, coop_id, check_item_code) return common_utils.response(response, pm_logger)