{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/TopicName",
  "/properties/FifoTopic"
 ],
 "definitions": {
  "LoggingConfig": {
   "additionalProperties": false,
   "properties": {
    "FailureFeedbackRoleArn": {
     "format": "AWS::IAM::Role.Arn",
     "type": "string"
    },
    "Protocol": {
     "enum": [
      "http/s",
      "sqs",
      "lambda",
      "firehose",
      "application"
     ],
     "type": "string"
    },
    "SuccessFeedbackRoleArn": {
     "format": "AWS::IAM::Role.Arn",
     "type": "string"
    },
    "SuccessFeedbackSampleRate": {
     "type": "string"
    }
   },
   "required": [
    "Protocol"
   ],
   "type": "object"
  },
  "Subscription": {
   "additionalProperties": false,
   "properties": {
    "Endpoint": {
     "type": "string"
    },
    "Protocol": {
     "type": "string"
    }
   },
   "required": [
    "Endpoint",
    "Protocol"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/TopicArn"
 ],
 "properties": {
  "ArchivePolicy": {
   "format": "json",
   "type": [
    "object",
    "string"
   ]
  },
  "ContentBasedDeduplication": {
   "type": "boolean"
  },
  "DataProtectionPolicy": {
   "format": "json",
   "type": [
    "object",
    "string"
   ]
  },
  "DeliveryStatusLogging": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/LoggingConfig"
   },
   "type": "array",
   "uniqueItems": true
  },
  "DisplayName": {
   "type": "string"
  },
  "FifoThroughputScope": {
   "type": "string"
  },
  "FifoTopic": {
   "type": "boolean"
  },
  "KmsMasterKeyId": {
   "anyOf": [
    {
     "format": "AWS::KMS::Key.Arn"
    },
    {
     "format": "AWS::KMS::Key.Id"
    },
    {
     "format": "AWS::KMS::Alias.AliasName"
    }
   ],
   "type": "string"
  },
  "SignatureVersion": {
   "type": "string"
  },
  "Subscription": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Subscription"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "TopicArn": {
   "format": "AWS::SNS::Topic.Arn",
   "type": "string"
  },
  "TopicName": {
   "maxLength": 256,
   "type": "string"
  },
  "TracingConfig": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/TopicArn"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-sns",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::SNS::Topic"
}
