{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-route53recoveryreadiness-resourceset.json",
  "title": "AWSRoute53RecoveryReadinessResourceSetProperties",
  "description": "Schema for the AWS Route53 Recovery Readiness ResourceSet Resource and API.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-route53-recovery-readiness.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-route53recoveryreadiness-resourceset.json",
    "sourceSha256": "516bee2f18c420d5bd2b4d256b829610ea549df4313639cba6e62a234f01e91e"
  },
  "type": "object",
  "properties": {
    "ResourceSetName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the resource set to create."
    },
    "Resources": {
      "description": "A list of resource objects in the resource set.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Resource"
      },
      "minItems": 1,
      "maxItems": 6,
      "insertionOrder": false
    },
    "ResourceSetType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The resource type of the resources in the resource set. Enter one of the following values for resource type: \n\nAWS: :AutoScaling: :AutoScalingGroup, AWS: :CloudWatch: :Alarm, AWS: :EC2: :CustomerGateway, AWS: :DynamoDB: :Table, AWS: :EC2: :Volume, AWS: :ElasticLoadBalancing: :LoadBalancer, AWS: :ElasticLoadBalancingV2: :LoadBalancer, AWS: :MSK: :Cluster, AWS: :RDS: :DBCluster, AWS: :Route53: :HealthCheck, AWS: :SQS: :Queue, AWS: :SNS: :Topic, AWS: :SNS: :Subscription, AWS: :EC2: :VPC, AWS: :EC2: :VPNConnection, AWS: :EC2: :VPNGateway, AWS::Route53RecoveryReadiness::DNSTargetResource"
    },
    "Tags": {
      "description": "A tag to associate with the parameters for a resource set.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag",
        "maxItems": 20
      },
      "insertionOrder": false
    }
  },
  "typeName": "AWS::Route53RecoveryReadiness::ResourceSet",
  "primaryIdentifier": [
    "/properties/ResourceSetName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-route53-recovery-readiness.git",
  "taggable": true,
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/ResourceSetArn"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "title": "AWSRoute53RecoveryReadinessResourceSetTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "NLBResource": {
      "description": "The Network Load Balancer resource that a DNS target resource points to.",
      "type": "object",
      "properties": {
        "Arn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "A Network Load Balancer resource Amazon Resource Name (ARN)."
        }
      },
      "title": "AWSRoute53RecoveryReadinessResourceSetNLBResourceDefinition",
      "additionalProperties": false
    },
    "R53ResourceRecord": {
      "description": "The Route 53 resource that a DNS target resource record points to.",
      "type": "object",
      "properties": {
        "DomainName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The DNS target domain name."
        },
        "RecordSetId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The Resource Record set id."
        }
      },
      "title": "AWSRoute53RecoveryReadinessResourceSetR53ResourceRecordDefinition",
      "additionalProperties": false
    },
    "TargetResource": {
      "description": "The target resource that the Route 53 record points to.",
      "type": "object",
      "properties": {
        "NLBResource": {
          "$ref": "#/$defs/NLBResource"
        },
        "R53Resource": {
          "$ref": "#/$defs/R53ResourceRecord"
        }
      },
      "oneOf": [
        {
          "required": [
            "NLBResource"
          ]
        },
        {
          "required": [
            "R53Resource"
          ]
        }
      ],
      "title": "AWSRoute53RecoveryReadinessResourceSetTargetResourceDefinition",
      "additionalProperties": false
    },
    "DNSTargetResource": {
      "description": "A component for DNS/routing control readiness checks.",
      "type": "object",
      "properties": {
        "DomainName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The domain name that acts as an ingress point to a portion of the customer application."
        },
        "RecordSetId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The Route 53 record set ID that will uniquely identify a DNS record, given a name and a type."
        },
        "HostedZoneArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The hosted zone Amazon Resource Name (ARN) that contains the DNS record with the provided name of the target resource."
        },
        "RecordType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The type of DNS record of the target resource."
        },
        "TargetResource": {
          "$ref": "#/$defs/TargetResource"
        }
      },
      "title": "AWSRoute53RecoveryReadinessResourceSetDNSTargetResourceDefinition",
      "additionalProperties": false
    },
    "Resource": {
      "description": "The resource element of a ResourceSet",
      "type": "object",
      "properties": {
        "ResourceArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$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 AWS resource."
        },
        "ComponentId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The component identifier of the resource, generated when DNS target resource is used."
        },
        "DnsTargetResource": {
          "$ref": "#/$defs/DNSTargetResource"
        },
        "ReadinessScopes": {
          "description": "A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this resource is contained within.",
          "type": "array",
          "items": {
            "type": "string",
            "maxItems": 5
          },
          "insertionOrder": false
        }
      },
      "title": "AWSRoute53RecoveryReadinessResourceSetResourceDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "ResourceSetType",
    "Resources"
  ],
  "createOnlyProperties": [
    "/properties/ResourceSetName",
    "/properties/ResourceSetType"
  ]
}
