prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  CKV_AZURE_153 - Not available for linux_web_app_slot & azurerm_windows_web_app_slot
  **Describe the issue**
  It seems that the best practice CKV_AZURE_153 is not being checked against the following Terraform resources:
  
  - azurerm_linux_web_app_slot
  - azurerm_windows_web_app_slot
  
  CKV_AZURE_153 is used to "Ensure web app redirects all HTTP traffic to HTTPS in Azure App Service"
  
  **Examples**
  
  Same as with "azurerm_app_service_slot"
  
  **Version (please complete the following information):**
  N/A
  
  **Additional context**
  
  It seems that the check needs to be adjusted cc https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service_slot
  
  ![image](https://github.com/bridgecrewio/checkov/assets/36169753/941275f2-e2b7-4a3b-888d-8b0ea955248e)
  
  
  
  </issue>
  <code>
  [start of checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py]
  1 from checkov.common.models.enums import CheckCategories
  2 from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  3 
  4 
  5 class AppServiceSlotHTTPSOnly(BaseResourceValueCheck):
  6     def __init__(self):
  7         name = "Ensure web app redirects all HTTP traffic to HTTPS in Azure App Service Slot"
  8         id = "CKV_AZURE_153"
  9         supported_resources = ['azurerm_app_service_slot']
  10         categories = [CheckCategories.NETWORKING]
  11         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  12 
  13     def get_inspected_key(self):
  14         return 'https_only/[0]'
  15 
  16 
  17 check = AppServiceSlotHTTPSOnly()
  18
  [end of checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py b/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py
  --- a/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py
  +++ b/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py
  @@ -6,12 +6,12 @@
       def __init__(self):
           name = "Ensure web app redirects all HTTP traffic to HTTPS in Azure App Service Slot"
           id = "CKV_AZURE_153"
  -        supported_resources = ['azurerm_app_service_slot']
  +        supported_resources = ["azurerm_app_service_slot", "azurerm_linux_web_app_slot", "azurerm_windows_web_app_slot"]
           categories = [CheckCategories.NETWORKING]
           super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
   
       def get_inspected_key(self):
  -        return 'https_only/[0]'
  +        return "https_only/[0]"
   
   
   check = AppServiceSlotHTTPSOnly()
  
verification_info: {"golden_diff": "diff --git a/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py b/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py\n--- a/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py\n+++ b/checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py\n@@ -6,12 +6,12 @@\n     def __init__(self):\n         name = \"Ensure web app redirects all HTTP traffic to HTTPS in Azure App Service Slot\"\n         id = \"CKV_AZURE_153\"\n-        supported_resources = ['azurerm_app_service_slot']\n+        supported_resources = [\"azurerm_app_service_slot\", \"azurerm_linux_web_app_slot\", \"azurerm_windows_web_app_slot\"]\n         categories = [CheckCategories.NETWORKING]\n         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n \n     def get_inspected_key(self):\n-        return 'https_only/[0]'\n+        return \"https_only/[0]\"\n \n \n check = AppServiceSlotHTTPSOnly()\n", "issue": "CKV_AZURE_153 - Not available for linux_web_app_slot & azurerm_windows_web_app_slot\n**Describe the issue**\r\nIt seems that the best practice CKV_AZURE_153 is not being checked against the following Terraform resources:\r\n\r\n- azurerm_linux_web_app_slot\r\n- azurerm_windows_web_app_slot\r\n\r\nCKV_AZURE_153 is used to \"Ensure web app redirects all HTTP traffic to HTTPS in Azure App Service\"\r\n\r\n**Examples**\r\n\r\nSame as with \"azurerm_app_service_slot\"\r\n\r\n**Version (please complete the following information):**\r\nN/A\r\n\r\n**Additional context**\r\n\r\nIt seems that the check needs to be adjusted cc https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_service_slot\r\n\r\n![image](https://github.com/bridgecrewio/checkov/assets/36169753/941275f2-e2b7-4a3b-888d-8b0ea955248e)\r\n\r\n\n", "before_files": [{"content": "from checkov.common.models.enums import CheckCategories\nfrom checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\n\n\nclass AppServiceSlotHTTPSOnly(BaseResourceValueCheck):\n    def __init__(self):\n        name = \"Ensure web app redirects all HTTP traffic to HTTPS in Azure App Service Slot\"\n        id = \"CKV_AZURE_153\"\n        supported_resources = ['azurerm_app_service_slot']\n        categories = [CheckCategories.NETWORKING]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def get_inspected_key(self):\n        return 'https_only/[0]'\n\n\ncheck = AppServiceSlotHTTPSOnly()\n", "path": "checkov/terraform/checks/resource/azure/AppServiceSlotHTTPSOnly.py"}]}