{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-lightsail-loadbalancer.json",
  "title": "AWSLightsailLoadBalancerProperties",
  "description": "Resource Type definition for AWS::Lightsail::LoadBalancer. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-lightsail-loadbalancer.json",
    "sourceSha256": "1590ad3c7d7e56f139e465806bc61b81fc84ce01a3b5acdfed1cb7ebfece0475"
  },
  "type": "object",
  "properties": {
    "LoadBalancerName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "\\w[\\w\\-]*\\w"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of your load balancer."
    },
    "InstancePort": {
      "description": "The instance port where you're creating your load balancer.",
      "type": "integer"
    },
    "IpAddressType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The IP address type for the load balancer. The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6. The default value is dualstack."
    },
    "AttachedInstances": {
      "description": "The names of the instances attached to the load balancer.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "HealthCheckPath": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website (e.g., \"/\")."
    },
    "SessionStickinessEnabled": {
      "description": "Configuration option to enable session stickiness.",
      "type": "boolean"
    },
    "SessionStickinessLBCookieDurationSeconds": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Configuration option to adjust session stickiness cookie duration parameter."
    },
    "TlsPolicyName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the TLS policy to apply to the load balancer."
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Lightsail::LoadBalancer",
  "createOnlyProperties": [
    "/properties/LoadBalancerName",
    "/properties/InstancePort",
    "/properties/IpAddressType"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/LoadBalancerName"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key"
      ],
      "title": "AWSLightsailLoadBalancerTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "LoadBalancerName",
    "InstancePort"
  ],
  "readOnlyProperties": [
    "/properties/LoadBalancerArn"
  ],
  "taggable": true
}
