1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Bump AWS crates and remove direct dependency on aws-types

This commit is contained in:
Quentin Gliech
2022-11-02 14:25:45 +01:00
parent 01b036ca8e
commit 6a235d40d9
3 changed files with 66 additions and 147 deletions

View File

@ -10,9 +10,8 @@ anyhow = "1.0.66"
async-trait = "0.1.58"
tokio = { version = "1.21.2", features = ["macros"] }
tracing = "0.1.37"
aws-sdk-sesv2 = "0.19.0"
aws-config = "0.49.0"
aws-types = "0.49.0"
aws-sdk-sesv2 = "0.21.0"
aws-config = "0.51.0"
mas-templates = { path = "../templates" }

View File

@ -30,13 +30,13 @@ impl Transport {
/// Construct a [`Transport`] from the environment
pub async fn from_env() -> Self {
let config = aws_config::from_env().load().await;
Self::new(&config)
let config = aws_sdk_sesv2::Config::from(&config);
Self::new(config)
}
/// Constructs a [`Transport`] from a given AWS shared config
/// Constructs a [`Transport`] from a given AWS SES SDK config
#[must_use]
pub fn new(config: &aws_types::SdkConfig) -> Self {
let config = aws_sdk_sesv2::Config::from(config);
pub fn new(config: aws_sdk_sesv2::Config) -> Self {
let client = Client::from_conf(config);
Self { client }
}