AWS 文档 SDK 示例
将 GetEmailIdentity 和 AWS SDK 结合使用
以下代码示例演示了如何使用 GetEmailIdentity。
- Rust
-
- 适用于 Rust 的 SDK
-
注意
查看 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 详细信息,请参阅《AWS SDK for Rust API Reference》中的 GetEmailIdentity
。
-
DeleteEmailTemplate
ListContactLists