{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-resiliencehub-app.json",
  "title": "AWSResilienceHubAppProperties",
  "description": "Resource Type Definition for AWS::ResilienceHub::App.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-resiliencehub>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-resiliencehub-app.json",
    "sourceSha256": "2a5ed4eae3b06d9a307b3faebd0eec36a36fda9a126cb4ebfb707d9623f5683a"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9][A-Za-z0-9_\\-]{1,59}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of the app."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 500
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "App description."
    },
    "ResiliencyPolicyArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9][A-Za-z0-9:_/+=,@.-]{0,1023}$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Amazon Resource Name (ARN) of the Resiliency Policy."
    },
    "Tags": {
      "$ref": "#/$defs/TagMap"
    },
    "AppTemplateBody": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 0,
          "maxLength": 5000,
          "pattern": "^[\\w\\s:,-\\.'\\/{}\\[\\]:\"]+$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A string containing full ResilienceHub app template body."
    },
    "ResourceMappings": {
      "description": "An array of ResourceMapping objects.",
      "type": "array",
      "uniqueItems": false,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/ResourceMapping"
      }
    },
    "AppAssessmentSchedule": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "Disabled",
            "Daily"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Assessment execution schedule."
    }
  },
  "typeName": "AWS::ResilienceHub::App",
  "primaryIdentifier": [
    "/properties/AppArn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-resiliencehub",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/AppArn"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "$defs": {
    "TagValue": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSResilienceHubAppTagValueDefinition"
    },
    "TagMap": {
      "type": "object",
      "additionalProperties": false,
      "title": "AWSResilienceHubAppTagMapDefinition",
      "patternProperties": {
        ".{1,128}": {
          "$ref": "#/$defs/TagValue"
        }
      }
    },
    "PhysicalResourceId": {
      "type": "object",
      "title": "AWSResilienceHubAppPhysicalResourceIdDefinition",
      "properties": {
        "AwsAccountId": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[0-9]{12}$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AwsRegion": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Identifier": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Type": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "Arn|Native"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Identifier",
        "Type"
      ],
      "additionalProperties": false
    },
    "ResourceMapping": {
      "description": "Resource mapping is used to map logical resources from template to physical resource",
      "type": "object",
      "title": "AWSResilienceHubAppResourceMappingDefinition",
      "properties": {
        "LogicalStackName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MappingType": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "CfnStack|Resource|Terraform|EKS"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ResourceName": {
          "oneOf": [
            {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_\\-]{1,59}$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "TerraformSourceName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "EksSourceName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "PhysicalResourceId": {
          "$ref": "#/$defs/PhysicalResourceId"
        }
      },
      "required": [
        "MappingType",
        "PhysicalResourceId"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "Name",
    "AppTemplateBody",
    "ResourceMappings"
  ],
  "createOnlyProperties": [
    "/properties/Name"
  ]
}
