Skip to main content

TLD parsing

Rust SDK API Reference / TLD parsing

These local parsers validate read-side suffixes and canonical writable .sns names without RPC. Read parsing recognizes the rollout's supported suffixes, while write parsing requires lowercase, whitespace-free .sns input and returns the suffix-trimmed name.

APIs

APIDescription
parse_supported_tldSplits a supported read-side suffix from a domain.
parse_sns_domainParses a canonical .sns domain or one-level subdomain.
parse_sns_top_level_domainParses a canonical top-level .sns domain.