{
  "typeName" : "AWS::CloudWatch::Dashboard",
  "description" : "Resource Type definition for AWS::CloudWatch::Dashboard",
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-cloudwatch",
  "additionalProperties" : false,
  "properties" : {
    "DashboardName" : {
      "type" : "string",
      "description" : "The name of the dashboard. The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically."
    },
    "DashboardBody" : {
      "type" : "string",
      "description" : "The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard"
    },
    "Tags" : {
      "type" : "array",
      "description" : "A list of key-value pairs to associate with the cloudwatch dashboard. You can associate up to 50 tags with a dashboard",
      "maxItems" : 50,
      "uniqueItems" : true,
      "insertionOrder" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "definitions" : {
    "Tag" : {
      "description" : "Metadata that you can assign to a cloudwatch dashboard. Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only resources with certain tag values.",
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Key" : {
          "description" : "A unique identifier for the tag. The combination of tag keys and values can help you organize and categorize your resources.",
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 128
        },
        "Value" : {
          "description" : "The value for the specified tag key.",
          "type" : "string",
          "minLength" : 1,
          "maxLength" : 256
        }
      },
      "required" : [ "Key", "Value" ]
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : true,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "cloudwatch:TagResource", "cloudwatch:UntagResource", "cloudwatch:ListTagsForResource" ]
  },
  "required" : [ "DashboardBody" ],
  "createOnlyProperties" : [ "/properties/DashboardName" ],
  "primaryIdentifier" : [ "/properties/DashboardName" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "cloudwatch:PutDashboard", "cloudwatch:GetDashboard", "cloudwatch:TagResource" ]
    },
    "read" : {
      "permissions" : [ "cloudwatch:GetDashboard", "cloudwatch:ListTagsForResource" ]
    },
    "update" : {
      "permissions" : [ "cloudwatch:PutDashboard", "cloudwatch:TagResource", "cloudwatch:UntagResource", "cloudwatch:ListTagsForResource" ]
    },
    "delete" : {
      "permissions" : [ "cloudwatch:DeleteDashboards", "cloudwatch:GetDashboard" ]
    },
    "list" : {
      "permissions" : [ "cloudwatch:ListDashboards" ]
    }
  }
}