{
  "typeName" : "AWS::AppStream::Application",
  "description" : "Resource Type definition for AWS::AppStream::Application",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-appstream.git",
  "definitions" : {
    "S3Location" : {
      "type" : "object",
      "properties" : {
        "S3Bucket" : {
          "type" : "string"
        },
        "S3Key" : {
          "type" : "string"
        }
      },
      "additionalProperties" : false,
      "required" : [ "S3Bucket", "S3Key" ]
    },
    "Arn" : {
      "type" : "string"
    },
    "PlatformType" : {
      "type" : "string"
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "TagKey" : {
          "type" : "string"
        },
        "TagValue" : {
          "type" : "string"
        }
      },
      "required" : [ "TagKey", "TagValue" ],
      "additionalProperties" : false
    },
    "ApplicationAttribute" : {
      "type" : "string"
    }
  },
  "properties" : {
    "Name" : {
      "type" : "string"
    },
    "DisplayName" : {
      "type" : "string"
    },
    "Description" : {
      "type" : "string"
    },
    "LaunchPath" : {
      "type" : "string"
    },
    "LaunchParameters" : {
      "type" : "string"
    },
    "WorkingDirectory" : {
      "type" : "string"
    },
    "InstanceFamilies" : {
      "type" : "array",
      "uniqueItems" : true,
      "items" : {
        "type" : "string"
      },
      "insertionOrder" : false
    },
    "IconS3Location" : {
      "$ref" : "#/definitions/S3Location"
    },
    "Arn" : {
      "$ref" : "#/definitions/Arn"
    },
    "AppBlockArn" : {
      "$ref" : "#/definitions/Arn"
    },
    "Platforms" : {
      "type" : "array",
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/PlatformType"
      },
      "insertionOrder" : false
    },
    "Tags" : {
      "type" : "array",
      "insertionOrder" : false,
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "AttributesToDelete" : {
      "type" : "array",
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/ApplicationAttribute"
      },
      "insertionOrder" : false
    },
    "CreatedTime" : {
      "type" : "string"
    }
  },
  "additionalProperties" : false,
  "required" : [ "Name", "IconS3Location", "LaunchPath", "Platforms", "InstanceFamilies", "AppBlockArn" ],
  "createOnlyProperties" : [ "/properties/Name", "/properties/InstanceFamilies", "/properties/Platforms" ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/CreatedTime" ],
  "writeOnlyProperties" : [ "/properties/Tags" ],
  "primaryIdentifier" : [ "/properties/Arn" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "s3:GetObject", "appstream:CreateApplication" ]
    },
    "read" : {
      "permissions" : [ "appstream:DescribeApplications" ]
    },
    "update" : {
      "permissions" : [ "appstream:UpdateApplication" ]
    },
    "delete" : {
      "permissions" : [ "appstream:DeleteApplication" ]
    }
  }
}