{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-route53resolver-resolverrule.json",
  "title": "AWSRoute53ResolverResolverRuleProperties",
  "description": "Resource Type definition for AWS::Route53Resolver::ResolverRule. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-route53resolver.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-route53resolver-resolverrule.json",
    "sourceSha256": "76d11bc531015177024330e5898af62b024dc4f4d745ec10ff703b5ca1e44caa"
  },
  "type": "object",
  "properties": {
    "ResolverEndpointId": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the endpoint that the rule is associated with."
    },
    "DomainName": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "DNS queries for this domain name are forwarded to the IP addresses that are specified in TargetIps"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 64
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name for the Resolver rule"
    },
    "RuleType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "FORWARD",
            "SYSTEM",
            "RECURSIVE"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "When you want to forward DNS queries for specified domain name to resolvers on your network, specify FORWARD. When you have a forwarding rule to forward DNS queries for a domain to your network and you want Resolver to process queries for a subdomain of that domain, specify SYSTEM."
    },
    "Tags": {
      "type": "array",
      "description": "An array of key-value pairs to apply to this resource.",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "TargetIps": {
      "type": "array",
      "description": "An array that contains the IP addresses and ports that an outbound endpoint forwards DNS queries to. Typically, these are the IP addresses of DNS resolvers on your network. Specify IPv4 addresses. IPv6 is not supported.",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/TargetAddress"
      }
    }
  },
  "typeName": "AWS::Route53Resolver::ResolverRule",
  "propertyTransform": {
    "/properties/DomainName": "$join([DomainName, \".\"]) $OR DomainName"
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-route53resolver.git",
  "$defs": {
    "TargetAddress": {
      "type": "object",
      "title": "AWSRoute53ResolverResolverRuleTargetAddressDefinition",
      "properties": {
        "Ip": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "One IP address that you want to forward DNS queries to. You can specify only IPv4 addresses. "
        },
        "Ipv6": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "One IPv6 address that you want to forward DNS queries to. You can specify only IPv6 addresses. "
        },
        "Port": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 65535
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The port at Ip that you want to forward DNS queries to. "
        }
      },
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSRoute53ResolverResolverRuleTagDefinition",
      "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": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "conditionalCreateOnlyProperties": [
    "/properties/DomainName"
  ],
  "additionalProperties": false,
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "DomainName",
    "RuleType"
  ],
  "primaryIdentifier": [
    "/properties/ResolverRuleId"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/ResolverRuleId"
  ],
  "createOnlyProperties": [
    "/properties/RuleType"
  ]
}
