{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-elasticloadbalancing-loadbalancer.json",
  "title": "AWSElasticLoadBalancingLoadBalancerProperties",
  "description": "Resource Type definition for AWS::ElasticLoadBalancing::LoadBalancer. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-elasticloadbalancing-loadbalancer.json",
    "sourceSha256": "2e8dccc446be338beadd59144d81977c34d3157a4bf2ded3c9146617c5ce7f60"
  },
  "type": "object",
  "properties": {
    "SecurityGroups": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "ConnectionDrainingPolicy": {
      "$ref": "#/$defs/ConnectionDrainingPolicy"
    },
    "Policies": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Policies"
      }
    },
    "Scheme": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AvailabilityZones": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "SourceSecurityGroupOwnerAlias": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "HealthCheck": {
      "$ref": "#/$defs/HealthCheck"
    },
    "AccessLoggingPolicy": {
      "$ref": "#/$defs/AccessLoggingPolicy"
    },
    "Instances": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "LoadBalancerName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Listeners": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Listeners"
      }
    },
    "Subnets": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string"
      }
    },
    "CrossZone": {
      "type": "boolean"
    },
    "AppCookieStickinessPolicy": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/AppCookieStickinessPolicy"
      }
    },
    "LBCookieStickinessPolicy": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/LBCookieStickinessPolicy"
      }
    },
    "SourceSecurityGroupGroupName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ConnectionSettings": {
      "$ref": "#/$defs/ConnectionSettings"
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::ElasticLoadBalancing::LoadBalancer",
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/CanonicalHostedZoneName",
    "/properties/CanonicalHostedZoneNameID",
    "/properties/SourceSecurityGroup.GroupName",
    "/properties/DNSName",
    "/properties/SourceSecurityGroup.OwnerAlias"
  ],
  "$defs": {
    "Listeners": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerListenersDefinition",
      "properties": {
        "PolicyNames": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "InstancePort": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LoadBalancerPort": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Protocol": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SSLCertificateId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "InstanceProtocol": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "InstancePort",
        "LoadBalancerPort",
        "Protocol"
      ],
      "additionalProperties": false
    },
    "ConnectionDrainingPolicy": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerConnectionDrainingPolicyDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        },
        "Timeout": {
          "type": "integer"
        }
      },
      "required": [
        "Enabled"
      ],
      "additionalProperties": false
    },
    "Policies": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerPoliciesDefinition",
      "properties": {
        "Attributes": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "object"
          }
        },
        "PolicyType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "LoadBalancerPorts": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "PolicyName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "InstancePorts": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "PolicyType",
        "PolicyName",
        "Attributes"
      ],
      "additionalProperties": false
    },
    "AppCookieStickinessPolicy": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerAppCookieStickinessPolicyDefinition",
      "properties": {
        "CookieName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PolicyName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "PolicyName",
        "CookieName"
      ],
      "additionalProperties": false
    },
    "LBCookieStickinessPolicy": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerLBCookieStickinessPolicyDefinition",
      "properties": {
        "CookieExpirationPeriod": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PolicyName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "HealthCheck": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerHealthCheckDefinition",
      "properties": {
        "Target": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "UnhealthyThreshold": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Timeout": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "HealthyThreshold": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Interval": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Target",
        "UnhealthyThreshold",
        "Timeout",
        "HealthyThreshold",
        "Interval"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerTagDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "AccessLoggingPolicy": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerAccessLoggingPolicyDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        },
        "S3BucketName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "EmitInterval": {
          "type": "integer"
        },
        "S3BucketPrefix": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Enabled",
        "S3BucketName"
      ],
      "additionalProperties": false
    },
    "ConnectionSettings": {
      "type": "object",
      "title": "AWSElasticLoadBalancingLoadBalancerConnectionSettingsDefinition",
      "properties": {
        "IdleTimeout": {
          "type": "integer"
        }
      },
      "required": [
        "IdleTimeout"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "additionalProperties": false,
  "required": [
    "Listeners"
  ],
  "createOnlyProperties": [
    "/properties/LoadBalancerName",
    "/properties/Scheme"
  ]
}
