{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-iotfleethub-application.json",
  "title": "AWSIoTFleetHubApplicationProperties",
  "description": "Resource schema for AWS::IoTFleetHub::Application. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iotfleethub.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-iotfleethub-application.json",
    "sourceSha256": "b1481adfa33a012288d46c24a2774e8c7552c281dc1d6e716dfb131df7091008"
  },
  "type": "object",
  "properties": {
    "ApplicationName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[ -~]*$",
          "minLength": 1,
          "maxLength": 256
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Application Name, should be between 1 and 256 characters."
    },
    "ApplicationDescription": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[ -~]*$",
          "minLength": 1,
          "maxLength": 2048
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Application Description, should be between 1 and 2048 characters."
    },
    "RoleArn": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^arn:[!-~]+$",
          "minLength": 1,
          "maxLength": 1600
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ARN of the role that the web application assumes when it interacts with AWS IoT Core. For more info on configuring this attribute, see <https://docs.aws.amazon.com/iot/latest/apireference/API_iotfleethub_CreateApplication.html#API_iotfleethub_CreateApplication_RequestSyntax>"
    },
    "Tags": {
      "description": "A list of key-value pairs that contain metadata for the application.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "minItems": 0,
      "maxItems": 50
    }
  },
  "typeName": "AWS::IoTFleetHub::Application",
  "primaryIdentifier": [
    "/properties/ApplicationId"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iotfleethub.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/ApplicationArn",
    "/properties/ApplicationId",
    "/properties/ApplicationUrl",
    "/properties/ApplicationState",
    "/properties/ApplicationCreationDate",
    "/properties/ApplicationLastUpdateDate",
    "/properties/SsoClientId",
    "/properties/ErrorMessage"
  ],
  "$defs": {
    "Tag": {
      "description": "To add or update tag, provide both key and value. To delete tag, provide only tag key to be deleted.",
      "type": "object",
      "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": 1,
              "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 1 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": [
        "Key",
        "Value"
      ],
      "title": "AWSIoTFleetHubApplicationTagDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "ApplicationName",
    "RoleArn"
  ]
}
