{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-msk-vpcconnection.json",
  "title": "AWSMSKVpcConnectionProperties",
  "description": "Resource Type definition for AWS::MSK::VpcConnection. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-msk-vpcconnection.json",
    "sourceSha256": "7a61b383b9f88de9e80ba0528a99a79af8a98a2e54b3acd79eea8e1f29350d1a"
  },
  "type": "object",
  "properties": {
    "Authentication": {
      "$ref": "#/$defs/Authentication"
    },
    "ClientSubnets": {
      "$ref": "#/$defs/ClientSubnets"
    },
    "TargetClusterArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:[\\w-]+:kafka:[\\w-]+:\\d+:cluster.*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The Amazon Resource Name (ARN) of the target cluster"
    },
    "SecurityGroups": {
      "$ref": "#/$defs/SecurityGroups"
    },
    "Tags": {
      "$ref": "#/$defs/Tags"
    },
    "VpcId": {
      "$ref": "#/$defs/VpcId"
    }
  },
  "typeName": "AWS::MSK::VpcConnection",
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": false,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "$defs": {
    "Authentication": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 3,
          "maxLength": 10,
          "enum": [
            "SASL_IAM",
            "SASL_SCRAM",
            "TLS"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of private link authentication",
      "title": "AWSMSKVpcConnectionAuthenticationDefinition"
    },
    "ClientSubnets": {
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "type": "string",
        "pattern": "^(subnet-)([a-z0-9]+)$"
      },
      "title": "AWSMSKVpcConnectionClientSubnetsDefinition"
    },
    "SecurityGroups": {
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "type": "string",
        "pattern": "^(sg-)([a-z0-9]+)$"
      },
      "title": "AWSMSKVpcConnectionSecurityGroupsDefinition"
    },
    "Tags": {
      "type": "object",
      "description": "A key-value pair to associate with a resource.",
      "additionalProperties": false,
      "title": "AWSMSKVpcConnectionTagsDefinition",
      "patternProperties": {
        "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$": {
          "type": "string"
        }
      }
    },
    "VpcId": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^(vpc-)([a-z0-9]+)$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSMSKVpcConnectionVpcIdDefinition"
    }
  },
  "required": [
    "Authentication",
    "ClientSubnets",
    "SecurityGroups",
    "TargetClusterArn",
    "VpcId"
  ],
  "createOnlyProperties": [
    "/properties/ClientSubnets",
    "/properties/Authentication",
    "/properties/SecurityGroups",
    "/properties/TargetClusterArn",
    "/properties/VpcId"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ]
}
