{
  "typeName" : "AWS::ElasticBeanstalk::Application",
  "description" : "Resource Type definition for AWS::ElasticBeanstalk::Application",
  "additionalProperties" : false,
  "properties" : {
    "ApplicationName" : {
      "type" : "string"
    },
    "Description" : {
      "type" : "string"
    },
    "Id" : {
      "type" : "string"
    },
    "ResourceLifecycleConfig" : {
      "$ref" : "#/definitions/ApplicationResourceLifecycleConfig"
    }
  },
  "definitions" : {
    "MaxCountRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Enabled" : {
          "type" : "boolean"
        },
        "DeleteSourceFromS3" : {
          "type" : "boolean"
        },
        "MaxCount" : {
          "type" : "integer"
        }
      }
    },
    "ApplicationVersionLifecycleConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "MaxCountRule" : {
          "$ref" : "#/definitions/MaxCountRule"
        },
        "MaxAgeRule" : {
          "$ref" : "#/definitions/MaxAgeRule"
        }
      }
    },
    "MaxAgeRule" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Enabled" : {
          "type" : "boolean"
        },
        "DeleteSourceFromS3" : {
          "type" : "boolean"
        },
        "MaxAgeInDays" : {
          "type" : "integer"
        }
      }
    },
    "ApplicationResourceLifecycleConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "VersionLifecycleConfig" : {
          "$ref" : "#/definitions/ApplicationVersionLifecycleConfig"
        },
        "ServiceRole" : {
          "type" : "string"
        }
      }
    }
  },
  "createOnlyProperties" : [ "/properties/ApplicationName" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id" ]
}