{
  "typeName" : "AWS::AppStream::AppBlock",
  "description" : "Resource Type definition for AWS::AppStream::AppBlock",
  "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" ]
    },
    "ScriptDetails" : {
      "type" : "object",
      "properties" : {
        "ScriptS3Location" : {
          "$ref" : "#/definitions/S3Location"
        },
        "ExecutablePath" : {
          "type" : "string"
        },
        "ExecutableParameters" : {
          "type" : "string"
        },
        "TimeoutInSeconds" : {
          "type" : "integer"
        }
      },
      "additionalProperties" : false,
      "required" : [ "ScriptS3Location", "ExecutablePath", "TimeoutInSeconds" ]
    },
    "Arn" : {
      "type" : "string"
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "TagKey" : {
          "type" : "string"
        },
        "TagValue" : {
          "type" : "string"
        }
      },
      "required" : [ "TagKey", "TagValue" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "Name" : {
      "type" : "string"
    },
    "Arn" : {
      "$ref" : "#/definitions/Arn"
    },
    "Description" : {
      "type" : "string"
    },
    "DisplayName" : {
      "type" : "string"
    },
    "SourceS3Location" : {
      "$ref" : "#/definitions/S3Location"
    },
    "SetupScriptDetails" : {
      "$ref" : "#/definitions/ScriptDetails"
    },
    "Tags" : {
      "type" : "array",
      "insertionOrder" : false,
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "CreatedTime" : {
      "type" : "string"
    }
  },
  "required" : [ "Name", "SourceS3Location", "SetupScriptDetails" ],
  "additionalProperties" : false,
  "primaryIdentifier" : [ "/properties/Arn" ],
  "createOnlyProperties" : [ "/properties/Name", "/properties/DisplayName", "/properties/Description", "/properties/SourceS3Location", "/properties/SetupScriptDetails" ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/CreatedTime" ],
  "writeOnlyProperties" : [ "/properties/Tags" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "appstream:CreateAppBlock", "s3:GetObject" ]
    },
    "read" : {
      "permissions" : [ "appstream:DescribeAppBlocks" ]
    },
    "delete" : {
      "permissions" : [ "appstream:DeleteAppBlock" ]
    }
  }
}