{
  "typeName" : "AWS::Route53RecoveryControl::ControlPanel",
  "description" : "AWS Route53 Recovery Control Control Panel resource schema .",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-route53-recovery-control.git",
  "taggable" : true,
  "definitions" : {
    "Tag" : {
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "type" : "string",
          "maxLength" : 256
        }
      },
      "required" : [ "Value", "Key" ],
      "additionalProperties" : false
    }
  },
  "properties" : {
    "ClusterArn" : {
      "description" : "Cluster to associate with the Control Panel",
      "type" : "string"
    },
    "ControlPanelArn" : {
      "description" : "The Amazon Resource Name (ARN) of the cluster.",
      "type" : "string"
    },
    "Name" : {
      "description" : "The name of the control panel. You can use any non-white space character in the name.",
      "type" : "string",
      "minLength" : 1,
      "maxLength" : 64
    },
    "Status" : {
      "description" : "The deployment status of control panel. Status can be one of the following: PENDING, DEPLOYED, PENDING_DELETION.",
      "type" : "string",
      "enum" : [ "PENDING", "DEPLOYED", "PENDING_DELETION" ]
    },
    "DefaultControlPanel" : {
      "description" : "A flag that Amazon Route 53 Application Recovery Controller sets to true to designate the default control panel for a cluster. When you create a cluster, Amazon Route 53 Application Recovery Controller creates a control panel, and sets this flag for that control panel. If you create a control panel yourself, this flag is set to false.",
      "type" : "boolean"
    },
    "RoutingControlCount" : {
      "description" : "Count of associated routing controls",
      "type" : "integer"
    },
    "Tags" : {
      "description" : "A collection of tags associated with a resource",
      "type" : "array",
      "items" : {
        "$ref" : "#/definitions/Tag",
        "maxItems" : 20
      },
      "insertionOrder" : false
    }
  },
  "required" : [ "Name" ],
  "additionalProperties" : false,
  "createOnlyProperties" : [ "/properties/ClusterArn", "/properties/Tags" ],
  "writeOnlyProperties" : [ "/properties/Tags" ],
  "primaryIdentifier" : [ "/properties/ControlPanelArn" ],
  "readOnlyProperties" : [ "/properties/ControlPanelArn", "/properties/Status", "/properties/RoutingControlCount", "/properties/DefaultControlPanel" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "route53-recovery-control-config:CreateControlPanel", "route53-recovery-control-config:DescribeCluster", "route53-recovery-control-config:DescribeControlPanel", "route53-recovery-control-config:ListTagsForResource", "route53-recovery-control-config:TagResource" ]
    },
    "read" : {
      "permissions" : [ "route53-recovery-control-config:DescribeControlPanel", "route53-recovery-control-config:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "route53-recovery-control-config:UpdateControlPanel", "route53-recovery-control-config:DescribeControlPanel", "route53-recovery-control-config:ListTagsForResource", "route53-recovery-control-config:TagResource", "route53-recovery-control-config:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "route53-recovery-control-config:DeleteControlPanel" ]
    },
    "list" : {
      "permissions" : [ "route53-recovery-control-config:ListControlPanels" ]
    }
  }
}