Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class AdminALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "admin"
path = PATH_PREFIX + "admin/api.html"
class ComplianceALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "compliance"
path = PATH_PREFIX + "compliance/api.html"
class NotificationsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "notifications"
path = PATH_PREFIX + "notifications/api.html"
class StatisticsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "statistics"
path = PATH_PREFIX + "statistics/api.html"
class AssetALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "asset"
path = PATH_PREFIX + "asset/api.html"
class AuthALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "auth"
path = PATH_PREFIX + "auth/api.html"
class VulnerabilityALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "vulnerability"
class BaseTG:
# port = 80 if Settings.get('ALB_PROTOCOL', "HTTP") != "HTTPS" else 443
# protocol = Settings.get('ALB_PROTOCOL', "HTTP")
port = 80
protocol = "HTTP"
target_type = "ip"
create_before_destroy = True
vpc_id = Settings.get('VPC')['ID']
interval = HEALTH_CHECK_INTERVAL
timeout = HEALTH_CHECK_TIMEOUT
matcher = HEALTH_CHECK_MATCHING_LIST
class ConfigALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "config"
path = PATH_PREFIX + "config"
class AdminALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "admin"
path = PATH_PREFIX + "admin/api.html"
class ComplianceALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "compliance"
path = PATH_PREFIX + "compliance/api.html"
class NotificationsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "notifications"
class StatisticsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "statistics"
path = PATH_PREFIX + "statistics/api.html"
class AssetALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "asset"
path = PATH_PREFIX + "asset/api.html"
class AuthALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "auth"
path = PATH_PREFIX + "auth/api.html"
class VulnerabilityALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "vulnerability"
path = PATH_PREFIX + "vulnerability/api.html"
PROCESS = need_to_deploy_vulnerability_service()
class NginxALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "ngnix"
path = "/nginx"
interval = 120
matcher = "200"
class ComplianceALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "compliance"
path = PATH_PREFIX + "compliance/api.html"
class NotificationsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "notifications"
path = PATH_PREFIX + "notifications/api.html"
class StatisticsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "statistics"
path = PATH_PREFIX + "statistics/api.html"
class AssetALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "asset"
path = PATH_PREFIX + "asset/api.html"
class AuthALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "auth"
path = PATH_PREFIX + "auth/api.html"
class VulnerabilityALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "vulnerability"
path = PATH_PREFIX + "vulnerability/api.html"
PROCESS = need_to_deploy_vulnerability_service()
class NginxALBTargetGroup(ALBTargetGroupResource, BaseTG):
protocol = "HTTP"
target_type = "ip"
create_before_destroy = True
vpc_id = Settings.get('VPC')['ID']
interval = HEALTH_CHECK_INTERVAL
timeout = HEALTH_CHECK_TIMEOUT
matcher = HEALTH_CHECK_MATCHING_LIST
class ConfigALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "config"
path = PATH_PREFIX + "config"
class AdminALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "admin"
path = PATH_PREFIX + "admin/api.html"
class ComplianceALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "compliance"
path = PATH_PREFIX + "compliance/api.html"
class NotificationsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "notifications"
path = PATH_PREFIX + "notifications/api.html"
class StatisticsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "statistics"
class NotificationsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "notifications"
path = PATH_PREFIX + "notifications/api.html"
class StatisticsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "statistics"
path = PATH_PREFIX + "statistics/api.html"
class AssetALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "asset"
path = PATH_PREFIX + "asset/api.html"
class AuthALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "auth"
path = PATH_PREFIX + "auth/api.html"
class VulnerabilityALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "vulnerability"
path = PATH_PREFIX + "vulnerability/api.html"
PROCESS = need_to_deploy_vulnerability_service()
class NginxALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "ngnix"
path = "/nginx"
interval = 120
matcher = "200"
name = "asset"
path = PATH_PREFIX + "asset/api.html"
class AuthALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "auth"
path = PATH_PREFIX + "auth/api.html"
class VulnerabilityALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "vulnerability"
path = PATH_PREFIX + "vulnerability/api.html"
PROCESS = need_to_deploy_vulnerability_service()
class NginxALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "ngnix"
path = "/nginx"
interval = 120
matcher = "200"
class ConfigALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "config"
path = PATH_PREFIX + "config"
class AdminALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "admin"
path = PATH_PREFIX + "admin/api.html"
class ComplianceALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "compliance"
path = PATH_PREFIX + "compliance/api.html"
class NotificationsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "notifications"
path = PATH_PREFIX + "notifications/api.html"
class StatisticsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "statistics"
path = PATH_PREFIX + "statistics/api.html"
class AssetALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "asset"
path = PATH_PREFIX + "asset/api.html"
class AuthALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "auth"
interval = HEALTH_CHECK_INTERVAL
timeout = HEALTH_CHECK_TIMEOUT
matcher = HEALTH_CHECK_MATCHING_LIST
class ConfigALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "config"
path = PATH_PREFIX + "config"
class AdminALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "admin"
path = PATH_PREFIX + "admin/api.html"
class ComplianceALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "compliance"
path = PATH_PREFIX + "compliance/api.html"
class NotificationsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "notifications"
path = PATH_PREFIX + "notifications/api.html"
class StatisticsALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "statistics"
path = PATH_PREFIX + "statistics/api.html"
class AssetALBTargetGroup(ALBTargetGroupResource, BaseTG):
name = "asset"