{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-elasticbeanstalk-application.json",
  "title": "AWSElasticBeanstalkApplicationProperties",
  "description": "The AWS::ElasticBeanstalk::Application resource specifies an Elastic Beanstalk application.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-elasticbeanstalk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-elasticbeanstalk-application.json",
    "sourceSha256": "59b5788c40830f10b552475f23cdf52d0f9b9fd54fcf473d875c89471db21552"
  },
  "type": "object",
  "properties": {
    "ApplicationName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A name for the Elastic Beanstalk application. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the application name."
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Your description of the application."
    },
    "ResourceLifecycleConfig": {
      "description": "Specifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.",
      "$ref": "#/$defs/ApplicationResourceLifecycleConfig"
    }
  },
  "typeName": "AWS::ElasticBeanstalk::Application",
  "primaryIdentifier": [
    "/properties/ApplicationName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-elasticbeanstalk.git",
  "createOnlyProperties": [
    "/properties/ApplicationName"
  ],
  "additionalProperties": false,
  "$defs": {
    "ApplicationResourceLifecycleConfig": {
      "type": "object",
      "title": "AWSElasticBeanstalkApplicationApplicationResourceLifecycleConfigDefinition",
      "properties": {
        "ServiceRole": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The ARN of an IAM service role that Elastic Beanstalk has permission to assume. The ServiceRole property is required the first time that you provide a ResourceLifecycleConfig for the application. After you provide it once, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again. You can, however, specify it in subsequent updates to change the Service Role to another value."
        },
        "VersionLifecycleConfig": {
          "description": "Defines lifecycle settings for application versions.",
          "$ref": "#/$defs/ApplicationVersionLifecycleConfig"
        }
      },
      "additionalProperties": false
    },
    "ApplicationVersionLifecycleConfig": {
      "type": "object",
      "title": "AWSElasticBeanstalkApplicationApplicationVersionLifecycleConfigDefinition",
      "properties": {
        "MaxAgeRule": {
          "description": "Specify a max age rule to restrict the length of time that application versions are retained for an application.",
          "$ref": "#/$defs/MaxAgeRule"
        },
        "MaxCountRule": {
          "description": "Specify a max count rule to restrict the number of application versions that are retained for an application.",
          "$ref": "#/$defs/MaxCountRule"
        }
      },
      "additionalProperties": false
    },
    "MaxAgeRule": {
      "type": "object",
      "title": "AWSElasticBeanstalkApplicationMaxAgeRuleDefinition",
      "properties": {
        "DeleteSourceFromS3": {
          "description": "Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.",
          "type": "boolean"
        },
        "Enabled": {
          "description": "Specify true to apply the rule, or false to disable it.",
          "type": "boolean"
        },
        "MaxAgeInDays": {
          "description": "Specify the number of days to retain an application versions.",
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "MaxCountRule": {
      "type": "object",
      "title": "AWSElasticBeanstalkApplicationMaxCountRuleDefinition",
      "properties": {
        "DeleteSourceFromS3": {
          "description": "Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.",
          "type": "boolean"
        },
        "Enabled": {
          "description": "Specify true to apply the rule, or false to disable it.",
          "type": "boolean"
        },
        "MaxCount": {
          "description": "Specify the maximum number of application versions to retain.",
          "type": "integer"
        }
      },
      "additionalProperties": false
    }
  },
  "tagging": {
    "taggable": false,
    "tagOnCreate": false,
    "tagUpdatable": false,
    "cloudFormationSystemTags": false
  }
}
