{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-refactorspaces-service.json",
  "title": "AWSRefactorSpacesServiceProperties",
  "description": "Definition of AWS::RefactorSpaces::Service Resource Type. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-refactorspaces-service.json",
    "sourceSha256": "82b06477255bb01fbc30d4d2be6766311853e394ecdc3839ec3180e66a0ef254"
  },
  "type": "object",
  "properties": {
    "ApplicationIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 14,
          "minLength": 14,
          "pattern": "^app-([0-9A-Za-z]{10}$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 256,
          "minLength": 1,
          "pattern": "^[a-zA-Z0-9-_\\s\\.\\!\\*\\#\\@\\']+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "EndpointType": {
      "$ref": "#/$defs/ServiceEndpointType"
    },
    "EnvironmentIdentifier": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 14,
          "minLength": 14,
          "pattern": "^env-([0-9A-Za-z]{10}$)"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "LambdaEndpoint": {
      "$ref": "#/$defs/LambdaEndpointInput"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 63,
          "minLength": 3,
          "pattern": "^(?!svc-)[a-zA-Z0-9]+[a-zA-Z0-9-_ ]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "UrlEndpoint": {
      "$ref": "#/$defs/UrlEndpointInput"
    },
    "VpcId": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 21,
          "minLength": 12,
          "pattern": "^vpc-[-a-f0-9]{8}([-a-f0-9]{9})?$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair."
    }
  },
  "typeName": "AWS::RefactorSpaces::Service",
  "taggable": true,
  "additionalProperties": false,
  "$defs": {
    "LambdaEndpointInput": {
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2048,
              "minLength": 1,
              "pattern": "^arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:\\d{12}:function:[a-zA-Z0-9-_]+(:(\\$LATEST|[a-zA-Z0-9-_]+))?$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Arn"
      ],
      "title": "AWSRefactorSpacesServiceLambdaEndpointInputDefinition",
      "additionalProperties": false
    },
    "ServiceEndpointType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "LAMBDA",
            "URL"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSRefactorSpacesServiceServiceEndpointTypeDefinition"
    },
    "UrlEndpointInput": {
      "type": "object",
      "properties": {
        "HealthUrl": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2048,
              "minLength": 1,
              "pattern": "^https?://[-a-zA-Z0-9+\\x38@#/%?=~_|!:,.;]*[-a-zA-Z0-9+\\x38@#/%=~_|]$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Url": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 2048,
              "minLength": 1,
              "pattern": "^https?://[-a-zA-Z0-9+\\x38@#/%?=~_|!:,.;]*[-a-zA-Z0-9+\\x38@#/%=~_|]$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Url"
      ],
      "title": "AWSRefactorSpacesServiceUrlEndpointInputDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "description": "A label for tagging Environment resource",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^(?!aws:).+"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A string used to identify this tag"
        },
        "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": "A string containing the value for the tag"
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "title": "AWSRefactorSpacesServiceTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "EnvironmentIdentifier",
    "ApplicationIdentifier",
    "EndpointType",
    "Name"
  ],
  "readOnlyProperties": [
    "/properties/ServiceIdentifier",
    "/properties/Arn"
  ],
  "writeOnlyProperties": [
    "/properties/Description",
    "/properties/EndpointType",
    "/properties/LambdaEndpoint",
    "/properties/Name",
    "/properties/UrlEndpoint",
    "/properties/VpcId"
  ],
  "createOnlyProperties": [
    "/properties/Description",
    "/properties/EndpointType",
    "/properties/EnvironmentIdentifier",
    "/properties/ApplicationIdentifier",
    "/properties/LambdaEndpoint",
    "/properties/Name",
    "/properties/UrlEndpoint",
    "/properties/VpcId"
  ],
  "primaryIdentifier": [
    "/properties/EnvironmentIdentifier",
    "/properties/ApplicationIdentifier",
    "/properties/ServiceIdentifier"
  ]
}
