You've already forked authentication-service
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:
@ -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" }
|
||||
|
||||
|
@ -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 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user