Модульность в AWS SDK третьей версии:
https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/
То есть можно загрузить отдельный модуль, например, для S3 (а не весь пакет со всеми сервисами целиком):
Можно добавить, что "прямо как в AWS CDK". Интересно отметить, что AWS SDK уходит от монорепы, в то время как CDK туда стремится. Демократия, однако.
#SDK
https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/
То есть можно загрузить отдельный модуль, например, для S3 (а не весь пакет со всеми сервисами целиком):
const { S3 } = require("@aws-sdk/client-s3");const s3Client = new S3({});await s3Client.createBucket(params);Можно добавить, что "прямо как в AWS CDK". Интересно отметить, что AWS SDK уходит от монорепы, в то время как CDK туда стремится. Демократия, однако.
#SDK
Amazon
Modular packages in AWS SDK for JavaScript | Amazon Web Services
As of December 15th, 2020, the AWS SDK for JavaScript, version 3 (v3) is generally available. On October 19th, 2020, we published the Release Candidate (RC) of the AWS SDK for JavaScript, version 3 (v3). One of the major changes in the JavaScript SDK v3 is…
AWS SDK для Rust:
https://aws.amazon.com/blogs/developer/a-new-aws-sdk-for-rust-alpha-launch/
#SDK #Rust
https://aws.amazon.com/blogs/developer/a-new-aws-sdk-for-rust-alpha-launch/
#[tokio::main]async fn main() -> Result<(), aws_sdk_dynamodb::Error> { let client = aws_sdk_dynamodb::Client::from_env(); let req = client.list_tables().limit(10); let resp = req.send().await?; println!("Current DynamoDB tables: {:?}", resp.table_names.unwrap_or_default()); Ok(())}#SDK #Rust
Amazon
A New AWS SDK for Rust – Alpha Launch | Amazon Web Services
We’re excited to announce the alpha release of a new AWS SDK for Rust. AWS customers developing in Rust want a native Rust SDK so they can use the language constructs they are used to, and customers new to Rust want an SDK that behaves similarly to SDKs they…
Статья про то, как автор пытался получить список удалённых секретов, однако полезна описанием работы AWS SDK:
https://alexwlchan.net/2021/07/listing-deleted-secrets/#how-the-language-specific-aws-sdks-work
#SDK #Secrets #Python
https://alexwlchan.net/2021/07/listing-deleted-secrets/#how-the-language-specific-aws-sdks-work
How the language-specific AWS SDKs workAt time of writing, AWS has nine language-specific SDKs which have to support over 200 different services. Each SDK contains a client for each service, and the methods on those clients mirror the underlying HTTP APIs. It would be impractical to maintain those clients by hand – so they don’t.Instead, AWS publish “service models” that describe each service. These models are JSON files that contain a complete description of the endpoints, the models, the documentation text, and so on. These models are used to autogenerate the service-specific clients in the SDKs, reducing the effort required to keep everything up-to-date. This approach has also allowed other people to write SDKs in languages that AWS don’t support, like Haskell and Clojure.#SDK #Secrets #Python
👍1