{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/WorkgroupName",
  "/properties/NamespaceName"
 ],
 "definitions": {
  "ConfigParameter": {
   "additionalProperties": false,
   "properties": {
    "ParameterKey": {
     "maxLength": 255,
     "minLength": 0,
     "type": "string"
    },
    "ParameterValue": {
     "maxLength": 15000,
     "minLength": 0,
     "type": "string"
    }
   },
   "type": "object"
  },
  "Endpoint": {
   "additionalProperties": false,
   "properties": {
    "Address": {
     "type": "string"
    },
    "Port": {
     "type": "integer"
    },
    "VpcEndpoints": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/VpcEndpoint"
     },
     "type": "array"
    }
   },
   "type": "object"
  },
  "NetworkInterface": {
   "additionalProperties": false,
   "properties": {
    "AvailabilityZone": {
     "type": "string"
    },
    "NetworkInterfaceId": {
     "type": "string"
    },
    "PrivateIpAddress": {
     "type": "string"
    },
    "SubnetId": {
     "format": "AWS::EC2::Subnet.Id",
     "type": "string"
    }
   },
   "type": "object"
  },
  "PerformanceTarget": {
   "additionalProperties": false,
   "properties": {
    "Level": {
     "maximum": 100,
     "minimum": 1,
     "type": "integer"
    },
    "Status": {
     "$ref": "#/definitions/PerformanceTargetStatus"
    }
   },
   "type": "object"
  },
  "PerformanceTargetStatus": {
   "enum": [
    "ENABLED",
    "DISABLED"
   ],
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "VpcEndpoint": {
   "additionalProperties": false,
   "properties": {
    "NetworkInterfaces": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/NetworkInterface"
     },
     "type": "array"
    },
    "VpcEndpointId": {
     "type": "string"
    },
    "VpcId": {
     "format": "AWS::EC2::VPC.Id",
     "type": "string"
    }
   },
   "type": "object"
  },
  "Workgroup": {
   "additionalProperties": false,
   "properties": {
    "BaseCapacity": {
     "type": "integer"
    },
    "ConfigParameters": {
     "insertionOrder": false,
     "items": {
      "$ref": "#/definitions/ConfigParameter"
     },
     "type": "array",
     "uniqueItems": true
    },
    "CreationDate": {
     "type": "string"
    },
    "Endpoint": {
     "$ref": "#/definitions/Endpoint"
    },
    "EnhancedVpcRouting": {
     "type": "boolean"
    },
    "MaxCapacity": {
     "type": "integer"
    },
    "NamespaceName": {
     "maxLength": 64,
     "minLength": 3,
     "pattern": "^[a-z0-9-]+$",
     "type": "string"
    },
    "PricePerformanceTarget": {
     "$ref": "#/definitions/PerformanceTarget"
    },
    "PubliclyAccessible": {
     "type": "boolean"
    },
    "SecurityGroupIds": {
     "format": "AWS::EC2::SecurityGroup.Ids",
     "insertionOrder": false,
     "items": {
      "format": "AWS::EC2::SecurityGroup.Id",
      "maxLength": 255,
      "minLength": 0,
      "pattern": "^sg-[0-9a-fA-F]{8,}$",
      "type": "string"
     },
     "type": "array"
    },
    "Status": {
     "$ref": "#/definitions/WorkgroupStatus"
    },
    "SubnetIds": {
     "insertionOrder": false,
     "items": {
      "maxLength": 255,
      "minLength": 0,
      "pattern": "^subnet-[0-9a-fA-F]{8,}$",
      "type": "string"
     },
     "type": "array"
    },
    "TrackName": {
     "maxLength": 256,
     "minLength": 1,
     "pattern": "^[a-zA-Z0-9_]+$",
     "type": "string"
    },
    "WorkgroupArn": {
     "type": "string"
    },
    "WorkgroupId": {
     "type": "string"
    },
    "WorkgroupName": {
     "maxLength": 64,
     "minLength": 3,
     "pattern": "^[a-z0-9-]*$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "WorkgroupStatus": {
   "enum": [
    "CREATING",
    "AVAILABLE",
    "MODIFYING",
    "DELETING"
   ],
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/WorkgroupName"
 ],
 "properties": {
  "BaseCapacity": {
   "type": "integer"
  },
  "ConfigParameters": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/ConfigParameter"
   },
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  },
  "EnhancedVpcRouting": {
   "default": false,
   "type": "boolean"
  },
  "MaxCapacity": {
   "type": "integer"
  },
  "NamespaceName": {
   "maxLength": 64,
   "minLength": 3,
   "pattern": "^(?=^[a-z0-9-]+$).{3,64}$",
   "type": "string"
  },
  "Port": {
   "type": "integer"
  },
  "PricePerformanceTarget": {
   "$ref": "#/definitions/PerformanceTarget",
   "type": "object"
  },
  "PubliclyAccessible": {
   "default": false,
   "type": "boolean"
  },
  "RecoveryPointId": {
   "type": "string"
  },
  "SecurityGroupIds": {
   "format": "AWS::EC2::SecurityGroup.Ids",
   "insertionOrder": false,
   "items": {
    "format": "AWS::EC2::SecurityGroup.Id",
    "maxLength": 255,
    "minLength": 0,
    "pattern": "^sg-[0-9a-fA-F]{8,}$",
    "type": "string"
   },
   "maxItems": 32,
   "minItems": 1,
   "type": "array"
  },
  "SnapshotArn": {
   "type": "string"
  },
  "SnapshotName": {
   "type": "string"
  },
  "SnapshotOwnerAccount": {
   "type": "string"
  },
  "SubnetIds": {
   "insertionOrder": false,
   "items": {
    "maxLength": 255,
    "minLength": 0,
    "pattern": "^subnet-[0-9a-fA-F]{8,}$",
    "type": "string"
   },
   "maxItems": 32,
   "minItems": 1,
   "type": "array"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "minItems": 0,
   "type": "array"
  },
  "TrackName": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9_]+$",
   "type": "string"
  },
  "Workgroup": {
   "$ref": "#/definitions/Workgroup"
  },
  "WorkgroupName": {
   "maxLength": 64,
   "minLength": 3,
   "pattern": "^(?=^[a-z0-9-]+$).{3,64}$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Workgroup/WorkgroupId",
  "/properties/Workgroup/WorkgroupArn",
  "/properties/Workgroup/WorkgroupName",
  "/properties/Workgroup/NamespaceName",
  "/properties/Workgroup/BaseCapacity",
  "/properties/Workgroup/MaxCapacity",
  "/properties/Workgroup/EnhancedVpcRouting",
  "/properties/Workgroup/ConfigParameters",
  "/properties/Workgroup/SecurityGroupIds",
  "/properties/Workgroup/SubnetIds",
  "/properties/Workgroup/TrackName",
  "/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"
 ],
 "required": [
  "WorkgroupName"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-redshift-serverless",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::RedshiftServerless::Workgroup",
 "writeOnlyProperties": [
  "/properties/ConfigParameters",
  "/properties/SecurityGroupIds",
  "/properties/SubnetIds",
  "/properties/SnapshotArn",
  "/properties/SnapshotName",
  "/properties/SnapshotOwnerAccount",
  "/properties/RecoveryPointId"
 ]
}
