將 GetEmailIdentity 與 AWS SDK 搭配使用 - AWS SDK 程式碼範例

AWS文件開發套件範例 GitHub 儲存庫中有更多可用的 AWS SDK 範例。

GetEmailIdentity 與 AWS SDK 搭配使用

以下程式碼範例顯示如何使用 GetEmailIdentity

Rust
SDK for Rust
注意

GitHub 上提供更多範例。尋找完整範例,並了解如何在 AWS 程式碼範例儲存庫中設定和執行。

確定是否已驗證電子郵件地址。

async fn is_verified(client: &Client, email: &str) -> Result<(), Error> { let resp = client .get_email_identity() .email_identity(email) .send() .await?; if resp.verified_for_sending_status() { println!("The address is verified"); } else { println!("The address is not verified"); } Ok(()) }
  • 如需 API 詳細資訊,請參閱《適用於 Rust 的 AWS SDK API 參考》中的 GetTopicAttributes