# SNS topic names

The SNS topic names are unique per client, RL environment, version, and char type.  SNS topic names have the following structure:

`{environment}-rtl-div{client_id}-{version}-ct{char_type_id}`

For instance, `prd-rtl-div1-v4-ct3` topic would receive messages for Production environment, client ID 1, version 4, and char type 3 (rights).

We publish to both Standard and FIFO topics for each of the above, so `prd-rtl-div1-v4-ct3.fifo` is also available.

### SNS Topic ARNs

The ARN (Amazon Resource Name) is a unique identifier for a resource within AWS.  The Rightsline  SNS topic ARNs have the following format:

`arn:aws:sns:{region}:013474081760:{topic_name}`

The topic name is determined in the previous section.  The region varies based on the Rightsline environment you are receiving messages from.  See the table below:

### AWS Regions

| RL Environment                                                      | AWS region   |
| ------------------------------------------------------------------- | ------------ |
| Prod Mirror                                                         | us-east-1    |
| All EU environments                                                 | eu-central-1 |
| All other environments (including Staging, Integration, Production) | us-west-2    |
