{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-create-contact-method-request-schema.json",
  "title": "CreateContactMethodRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-contact-methods-api-openapi.yml#/components/schemas/CreateContactMethodRequest",
  "type": "object",
  "properties": {
    "protocol": {
      "allOf": [
        {
          "$ref": "#/$defs/ContactProtocol"
        }
      ],
      "description": "The protocol of the contact method, such as Email or SMS (text messaging). The SMS protocol is supported only in the following Amazon Web Services Regions. US East (N. Virginia) ( us-east-1 ) US West (Oregon) ( us-west-2 ) Europe (Ireland) ( eu-west-1 ) Asia Pacific (Tokyo) ( ap-northeast-1 ) Asia Pacific (Singapore) ( ap-southeast-1 ) Asia Pacific (Sydney) ( ap-southeast-2 ) For a list of countries/regions where SMS text messages can be sent, and the latest Amazon Web Services Regions where SMS text messaging is supported, see Supported Regions and Countries in the Amazon SNS Developer Guide . For more information about notifications in Amazon Lightsail, see Notifications in Amazon Lightsail ."
    },
    "contactEndpoint": {
      "allOf": [
        {
          "$ref": "#/$defs/StringMax256"
        }
      ],
      "description": "The destination of the contact method, such as an email address or a mobile phone number. Use the E.164 format when specifying a mobile phone number. E.164 is a standard for the phone number structure used for international telecommunication. Phone numbers that follow this format can have a maximum of 15 digits, and they are prefixed with the plus character (+) and the country code. For example, a U.S. phone number in E.164 format would be specified as +1XXX5550100. For more information, see E.164 on Wikipedia ."
    },
    "tags": {
      "allOf": [
        {
          "$ref": "#/$defs/TagList"
        }
      ],
      "description": "The tag keys and optional values to add to the contact method during create. Use the TagResource action to tag a resource after it's created."
    }
  },
  "required": [
    "protocol",
    "contactEndpoint"
  ],
  "$defs": {
    "ContactProtocol": {
      "type": "string",
      "enum": [
        "Email",
        "SMS"
      ]
    },
    "StringMax256": {
      "type": "string",
      "minLength": 1,
      "maxLength": 256
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "allOf": [
            {
              "$ref": "#/$defs/TagKey"
            }
          ],
          "description": "The key of the tag. Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        },
        "value": {
          "allOf": [
            {
              "$ref": "#/$defs/TagValue"
            }
          ],
          "description": "The value of the tag. Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        }
      },
      "description": "Describes a tag key and optional value assigned to an Amazon Lightsail resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide ."
    },
    "TagKey": {
      "type": "string"
    },
    "TagList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "TagValue": {
      "type": "string"
    }
  }
}