prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add new check: API Gateway V2 should have access logging enabled 
  AccessLogSettings: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html
  
  Terraform does not currently support this: https://github.com/terraform-providers/terraform-provider-aws/issues/7004
  
  </issue>
  <code>
  [start of checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py]
  1 from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
  2 from checkov.common.models.enums import CheckCategories
  3 from checkov.common.models.consts import ANY_VALUE
  4 
  5 
  6 class APIGatewayAccessLogging(BaseResourceValueCheck):
  7 
  8     def __init__(self):
  9         name = "Ensure API Gateway has Access Logging enabled"
  10         id = "CKV_AWS_76"
  11         supported_resources = ['aws_api_gateway_stage']
  12         categories = [CheckCategories.LOGGING]
  13         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  14 
  15     def get_inspected_key(self):
  16         return "access_log_settings/[0]/destination_arn"
  17 
  18     def get_expected_value(self):
  19         return ANY_VALUE
  20 
  21 
  22 check = APIGatewayAccessLogging()
  23
  [end of checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.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/aws/APIGatewayAccessLogging.py b/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py
  --- a/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py
  +++ b/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py
  @@ -8,7 +8,7 @@
       def __init__(self):
           name = "Ensure API Gateway has Access Logging enabled"
           id = "CKV_AWS_76"
  -        supported_resources = ['aws_api_gateway_stage']
  +        supported_resources = ['aws_api_gateway_stage', 'aws_apigatewayv2_stage']
           categories = [CheckCategories.LOGGING]
           super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)
  
verification_info: {"golden_diff": "diff --git a/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py b/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py\n--- a/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py\n+++ b/checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py\n@@ -8,7 +8,7 @@\n     def __init__(self):\n         name = \"Ensure API Gateway has Access Logging enabled\"\n         id = \"CKV_AWS_76\"\n-        supported_resources = ['aws_api_gateway_stage']\n+        supported_resources = ['aws_api_gateway_stage', 'aws_apigatewayv2_stage']\n         categories = [CheckCategories.LOGGING]\n         super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n", "issue": "Add new check: API Gateway V2 should have access logging enabled \nAccessLogSettings: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigatewayv2-stage.html\r\n\r\nTerraform does not currently support this: https://github.com/terraform-providers/terraform-provider-aws/issues/7004\n", "before_files": [{"content": "from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck\nfrom checkov.common.models.enums import CheckCategories\nfrom checkov.common.models.consts import ANY_VALUE\n\n\nclass APIGatewayAccessLogging(BaseResourceValueCheck):\n\n    def __init__(self):\n        name = \"Ensure API Gateway has Access Logging enabled\"\n        id = \"CKV_AWS_76\"\n        supported_resources = ['aws_api_gateway_stage']\n        categories = [CheckCategories.LOGGING]\n        super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)\n\n    def get_inspected_key(self):\n        return \"access_log_settings/[0]/destination_arn\"\n\n    def get_expected_value(self):\n        return ANY_VALUE\n\n\ncheck = APIGatewayAccessLogging()\n", "path": "checkov/terraform/checks/resource/aws/APIGatewayAccessLogging.py"}]}