> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.aws.sns.SendSMS

- Component: `appmixer.aws.sns.SendSMS`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.aws.sns 2.0.2](https://connectors.appmixer.com/connector/appmixer.aws.sns/2.0.2.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.aws.sns/2.0.2/component/appmixer.aws.sns.SendSMS>

Send text messages, or SMS messages to SMS-enabled devices.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Region (`region`) | select | Your AWS instance region. |

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Message Type (`type`) | select | Promotional messages are non-critical, transactional messages are sent with high priority. |
| Phone Number (`phoneNumber`) | text | The phone number to which you want to deliver an SMS message. Use E.164 format. |
| Message (`message`) | textarea | The message you want to send. Messages longer than 160 characters are treated as multiple messages. |
| Sender ID (`senderId`) | text | A custom ID, such as business brand, displayed as the sender on the receiving device. |

## Output ports

### Port `sms`

| Field | Type | Description |
| --- | --- | --- |
| Message ID (`MessageID`) | string | - |
| Message Type (`SMSType`) | string | - |
| Phone Number (`PhoneNumber`) | string | - |
| `Message` | string | - |
| Sender ID (`SenderID`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.aws.sns.SendSMS",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Send text messages, or SMS messages to SMS-enabled devices.",
  "private": false,
  "auth": {
    "service": "appmixer:aws:sns"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "senderId": {
            "type": "string"
          }
        },
        "required": [
          "type",
          "phoneNumber",
          "message"
        ]
      },
      "inspector": {
        "inputs": {
          "type": {
            "type": "select",
            "label": "Message Type",
            "index": 1,
            "tooltip": "Promotional messages are non-critical, transactional messages are sent with high priority.",
            "options": [
              {
                "value": "Promotional",
                "content": "Promotional"
              },
              {
                "value": "Transactional",
                "content": "Transactional"
              }
            ],
            "defaultValue": "Promotional"
          },
          "phoneNumber": {
            "type": "text",
            "label": "Phone Number",
            "index": 2,
            "tooltip": "The phone number to which you want to deliver an SMS message. Use E.164 format."
          },
          "message": {
            "type": "textarea",
            "index": 3,
            "label": "Message",
            "tooltip": "The message you want to send. Messages longer than 160 characters are treated as multiple messages."
          },
          "senderId": {
            "type": "text",
            "index": 4,
            "label": "Sender ID",
            "tooltip": "A custom ID, such as business brand, displayed as the sender on the receiving device."
          }
        }
      }
    }
  ],
  "properties": {
    "schema": {
      "properties": {
        "region": {
          "type": "string"
        }
      },
      "required": [
        "region"
      ]
    },
    "inspector": {
      "inputs": {
        "region": {
          "type": "select",
          "label": "Region",
          "index": 1,
          "tooltip": "Your AWS instance region.",
          "options": [
            {
              "value": "us-east-1",
              "content": "US East (N. Virginia)"
            },
            {
              "value": "us-west-2",
              "content": "US West (Oregon)"
            },
            {
              "value": "ap-southeast-1",
              "content": "Asia Pacific (Singapore)"
            },
            {
              "value": "ap-southeast-2",
              "content": "Asia Pacific (Sydney)"
            },
            {
              "value": "ap-northeast-1",
              "content": "Asia Pacific (Tokyo)"
            },
            {
              "value": "eu-west-1",
              "content": "Europe (Ireland)"
            }
          ]
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "sms",
      "options": [
        {
          "label": "Message ID",
          "value": "MessageID",
          "schema": {
            "type": "string",
            "example": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
          }
        },
        {
          "label": "Message Type",
          "value": "SMSType",
          "schema": {
            "type": "string",
            "example": "Promotional"
          }
        },
        {
          "label": "Phone Number",
          "value": "PhoneNumber",
          "schema": {
            "type": "string",
            "example": "+14255550100"
          }
        },
        {
          "label": "Message",
          "value": "Message",
          "schema": {
            "type": "string",
            "example": "Your verification code is 123456"
          }
        },
        {
          "label": "Sender ID",
          "value": "SenderID",
          "schema": {
            "type": "string",
            "example": "MyCompany"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
