{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-redshiftserverless-workgroup.json",
  "title": "AWSRedshiftServerlessWorkgroupProperties",
  "description": "Definition of AWS::RedshiftServerless::Workgroup Resource Type. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift-serverless>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-redshiftserverless-workgroup.json",
    "sourceSha256": "21a1febfce789f0d5a25ee327e0fce415656485ec300491515aa67eeaae05689"
  },
  "type": "object",
  "properties": {
    "ConfigParameters": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/ConfigParameter"
      },
      "minItems": 1
    },
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "maxItems": 200,
      "minItems": 0
    }
  },
  "typeName": "AWS::RedshiftServerless::Workgroup",
  "primaryIdentifier": [
    "/properties/WorkgroupName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift-serverless",
  "additionalProperties": false,
  "writeOnlyProperties": [
    "/properties/BaseCapacity",
    "/properties/ConfigParameters",
    "/properties/SecurityGroupIds",
    "/properties/SubnetIds",
    "/properties/Tags",
    "/properties/Tags/*/Key",
    "/properties/Tags/*/Value"
  ],
  "tagging": {
    "taggable": true
  },
  "$defs": {
    "ConfigParameter": {
      "type": "object",
      "properties": {
        "ParameterKey": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 255,
              "minLength": 0
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ParameterValue": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 15000,
              "minLength": 0
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSRedshiftServerlessWorkgroupConfigParameterDefinition",
      "additionalProperties": false
    },
    "Endpoint": {
      "type": "object",
      "properties": {
        "Address": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Port": {
          "type": "integer"
        },
        "VpcEndpoints": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VpcEndpoint"
          },
          "insertionOrder": false
        }
      },
      "title": "AWSRedshiftServerlessWorkgroupEndpointDefinition",
      "additionalProperties": false
    },
    "NetworkInterface": {
      "type": "object",
      "properties": {
        "NetworkInterfaceId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SubnetId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PrivateIpAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AvailabilityZone": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSRedshiftServerlessWorkgroupNetworkInterfaceDefinition",
      "additionalProperties": false
    },
    "VpcEndpoint": {
      "type": "object",
      "properties": {
        "VpcEndpointId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "VpcId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "NetworkInterfaces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/NetworkInterface"
          },
          "insertionOrder": false
        }
      },
      "title": "AWSRedshiftServerlessWorkgroupVpcEndpointDefinition",
      "additionalProperties": false
    },
    "Workgroup": {
      "type": "object",
      "properties": {
        "WorkgroupId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "WorkgroupArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "WorkgroupName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-z0-9-]*$",
              "maxLength": 64,
              "minLength": 3
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "NamespaceName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-z0-9-]+$",
              "maxLength": 64,
              "minLength": 3
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "BaseCapacity": {
          "type": "integer"
        },
        "EnhancedVpcRouting": {
          "type": "boolean"
        },
        "ConfigParameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConfigParameter"
          },
          "uniqueItems": true,
          "insertionOrder": false
        },
        "SecurityGroupIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^sg-[0-9a-fA-F]{8,}$",
            "maxLength": 255,
            "minLength": 0
          },
          "insertionOrder": false
        },
        "SubnetIds": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^subnet-[0-9a-fA-F]{8,}$",
            "maxLength": 255,
            "minLength": 0
          },
          "insertionOrder": false
        },
        "Status": {
          "$ref": "#/$defs/WorkgroupStatus"
        },
        "Endpoint": {
          "$ref": "#/$defs/Endpoint"
        },
        "PubliclyAccessible": {
          "type": "boolean"
        },
        "CreationDate": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "title": "AWSRedshiftServerlessWorkgroupWorkgroupDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 128,
              "minLength": 1
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 256,
              "minLength": 0
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSRedshiftServerlessWorkgroupTagDefinition",
      "additionalProperties": false
    },
    "WorkgroupStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "CREATING",
            "AVAILABLE",
            "MODIFYING",
            "DELETING"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRedshiftServerlessWorkgroupWorkgroupStatusDefinition"
    }
  },
  "required": [
    "WorkgroupName"
  ],
  "createOnlyProperties": [
    "/properties/WorkgroupName",
    "/properties/NamespaceName"
  ],
  "readOnlyProperties": [
    "/properties/Workgroup",
    "/properties/Workgroup/WorkgroupId",
    "/properties/Workgroup/WorkgroupArn",
    "/properties/Workgroup/WorkgroupName",
    "/properties/Workgroup/NamespaceName",
    "/properties/Workgroup/BaseCapacity",
    "/properties/Workgroup/EnhancedVpcRouting",
    "/properties/Workgroup/ConfigParameters/*/ParameterKey",
    "/properties/Workgroup/ConfigParameters/*/ParameterValue",
    "/properties/Workgroup/SecurityGroupIds",
    "/properties/Workgroup/SubnetIds",
    "/properties/Workgroup/Status",
    "/properties/Workgroup/Endpoint/Address",
    "/properties/Workgroup/Endpoint/Port",
    "/properties/Workgroup/Endpoint/VpcEndpoints/*/VpcEndpointId",
    "/properties/Workgroup/Endpoint/VpcEndpoints/*/VpcId",
    "/properties/Workgroup/Endpoint/VpcEndpoints/*/NetworkInterfaces/*/NetworkInterfaceId",
    "/properties/Workgroup/Endpoint/VpcEndpoints/*/NetworkInterfaces/*/SubnetId",
    "/properties/Workgroup/Endpoint/VpcEndpoints/*/NetworkInterfaces/*/PrivateIpAddress",
    "/properties/Workgroup/Endpoint/VpcEndpoints/*/NetworkInterfaces/*/AvailabilityZone",
    "/properties/Workgroup/PubliclyAccessible",
    "/properties/Workgroup/CreationDate"
  ]
}
