{
  "typeName" : "AWS::AppStream::AppBlockBuilder",
  "description" : "Resource Type definition for AWS::AppStream::AppBlockBuilder.",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-appstream.git",
  "definitions" : {
    "PlatformType" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    },
    "AccessEndpoint" : {
      "type" : "object",
      "properties" : {
        "EndpointType" : {
          "type" : "string"
        },
        "VpceId" : {
          "type" : "string"
        }
      },
      "required" : [ "EndpointType", "VpceId" ],
      "additionalProperties" : false
    },
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string"
        },
        "Value" : {
          "type" : "string"
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "VpcConfig" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "SecurityGroupIds" : {
          "type" : "array",
          "insertionOrder" : false,
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        },
        "SubnetIds" : {
          "type" : "array",
          "insertionOrder" : false,
          "uniqueItems" : false,
          "items" : {
            "type" : "string"
          }
        }
      }
    }
  },
  "properties" : {
    "Name" : {
      "type" : "string"
    },
    "Arn" : {
      "$ref" : "#/definitions/Arn"
    },
    "Description" : {
      "type" : "string"
    },
    "DisplayName" : {
      "type" : "string"
    },
    "Platform" : {
      "$ref" : "#/definitions/PlatformType"
    },
    "AccessEndpoints" : {
      "type" : "array",
      "insertionOrder" : false,
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/AccessEndpoint"
      }
    },
    "Tags" : {
      "type" : "array",
      "insertionOrder" : false,
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "VpcConfig" : {
      "$ref" : "#/definitions/VpcConfig"
    },
    "EnableDefaultInternetAccess" : {
      "type" : "boolean"
    },
    "IamRoleArn" : {
      "type" : "string"
    },
    "CreatedTime" : {
      "type" : "string"
    },
    "InstanceType" : {
      "type" : "string"
    },
    "AppBlockArns" : {
      "type" : "array",
      "insertionOrder" : false,
      "uniqueItems" : true,
      "items" : {
        "$ref" : "#/definitions/Arn"
      }
    }
  },
  "additionalProperties" : false,
  "required" : [ "Name", "Platform", "InstanceType", "VpcConfig" ],
  "createOnlyProperties" : [ "/properties/Name" ],
  "readOnlyProperties" : [ "/properties/Arn", "/properties/CreatedTime" ],
  "writeOnlyProperties" : [ "/properties/AppBlockArns" ],
  "primaryIdentifier" : [ "/properties/Name" ],
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : false,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "appstream:ListTagsForResource", "appstream:TagResource", "appstream:UntagResource" ]
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "appstream:CreateAppBlockBuilder", "appstream:DescribeAppBlockBuilders", "appstream:StartAppBlockBuilder", "appstream:AssociateAppBlockBuilderAppBlock", "appstream:DescribeAppBlockBuilderAppBlockAssociations", "appstream:TagResource", "appstream:ListTagsForResource", "iam:PassRole" ]
    },
    "read" : {
      "permissions" : [ "appstream:DescribeAppBlockBuilders", "appstream:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "appstream:UpdateAppBlockBuilder", "appstream:DescribeAppBlockBuilders", "appstream:StartAppBlockBuilder", "appstream:StopAppBlockBuilder", "appstream:AssociateAppBlockBuilderAppBlock", "appstream:DisassociateAppBlockBuilderAppBlock", "appstream:DescribeAppBlockBuilderAppBlockAssociations", "appstream:ListTagsForResource", "appstream:TagResource", "appstream:UntagResource", "iam:PassRole" ]
    },
    "delete" : {
      "permissions" : [ "appstream:DescribeAppBlockBuilders", "appstream:DeleteAppBlockBuilder", "appstream:DisassociateAppBlockBuilderAppBlock", "appstream:DescribeAppBlockBuilderAppBlockAssociations" ]
    },
    "list" : {
      "permissions" : [ "appstream:DescribeAppBlockBuilders" ]
    }
  }
}