{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-sns/json-schema/amazon-sns-create-topic-input-schema.json",
  "title": "CreateTopicInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-sns-topics-api-openapi.yml#/components/schemas/CreateTopicInput",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "The name of the topic you want to create. Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long. For a FIFO (first-in-first-out) topic, the name must end with the .fifo suffix."
    },
    "Attributes": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map of attributes with their corresponding values. The following lists names, descriptions, and values of the special request parameters that the CreateTopic action uses: DeliveryPolicy – The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints. DisplayName – The display name to use for a topic with SMS, email, and email-json subscriptions. For email and email-json subscriptions, the display name is used as the sender name for regular notification messages. Subscription confirmation and unsubscribe confirmation emails always use \"Amazon Web Services Notifications\""
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The list of tags to add to a new topic. To be able to tag a topic on creation, you must have the sns:CreateTopic and sns:TagResource permissions."
    },
    "DataProtectionPolicy": {
      "type": "string",
      "description": "Amazon SNS message data protection is no longer available to new customers. For more information and guidance on alternatives, see Amazon SNS message data protection availability change. The body of the policy document you want to use for this topic. You can only add one policy per topic. The policy must be in JSON string format. Length Constraints: Maximum length of 30,720."
    }
  },
  "required": [
    "Name"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The required key portion of the tag."
        },
        "Value": {
          "type": "string",
          "description": "The optional value portion of the tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}