{
  "typeName" : "AWS::MSK::Topic",
  "description" : "Resource Type definition for AWS::MSK::Topic",
  "additionalProperties" : false,
  "properties" : {
    "ClusterArn" : {
      "type" : "string",
      "description" : "The Amazon Resource Name (ARN) of the MSK cluster"
    },
    "TopicName" : {
      "type" : "string",
      "description" : "The name of the topic"
    },
    "TopicArn" : {
      "type" : "string",
      "description" : "The Amazon Resource Name (ARN) of the topic"
    },
    "PartitionCount" : {
      "type" : "integer",
      "description" : "The number of partitions for the topic",
      "minimum" : 1
    },
    "ReplicationFactor" : {
      "type" : "integer",
      "description" : "The replication factor for the topic",
      "minimum" : 1
    },
    "Configs" : {
      "type" : "string",
      "description" : "Base64 encoded configuration properties of the topic"
    }
  },
  "required" : [ "ClusterArn", "TopicName", "PartitionCount", "ReplicationFactor" ],
  "createOnlyProperties" : [ "/properties/ClusterArn", "/properties/TopicName", "/properties/ReplicationFactor" ],
  "primaryIdentifier" : [ "/properties/TopicArn" ],
  "readOnlyProperties" : [ "/properties/TopicArn" ],
  "writeOnlyProperties" : [ "/properties/Configs" ],
  "additionalIdentifiers" : [ [ "/properties/ClusterArn", "/properties/TopicName" ] ],
  "tagging" : {
    "taggable" : false,
    "tagOnCreate" : false,
    "tagUpdatable" : false,
    "cloudFormationSystemTags" : false,
    "tagProperty" : "/properties/Tags"
  },
  "handlers" : {
    "create" : {
      "permissions" : [ "kafka-cluster:Connect", "kafka-cluster:DescribeTopic", "kafka-cluster:DescribeTopicDynamicConfiguration", "kafka-cluster:CreateTopic" ],
      "timeoutInMinutes" : 5
    },
    "read" : {
      "permissions" : [ "kafka-cluster:Connect", "kafka-cluster:DescribeTopic", "kafka-cluster:DescribeTopicDynamicConfiguration" ]
    },
    "update" : {
      "permissions" : [ "kafka-cluster:Connect", "kafka-cluster:DescribeTopic", "kafka-cluster:AlterTopic", "kafka-cluster:AlterTopicDynamicConfiguration" ],
      "timeoutInMinutes" : 5
    },
    "delete" : {
      "permissions" : [ "kafka-cluster:Connect", "kafka-cluster:DescribeTopic", "kafka-cluster:DescribeTopicDynamicConfiguration", "kafka-cluster:DeleteTopic" ],
      "timeoutInMinutes" : 5
    },
    "list" : {
      "permissions" : [ "kafka-cluster:Connect", "kafka-cluster:DescribeTopic" ]
    }
  }
}