Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 05de400

Browse files
committedSep 20, 2024··
m
1 parent a92702b commit 05de400

File tree

18 files changed

+328
-439
lines changed

18 files changed

+328
-439
lines changed
 

‎releases/rust/db_esdk/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "db_esdk"
2+
name = "aws-db-esdk"
33
version = "0.1.0"
44
edition = "2021"
55

@@ -9,8 +9,8 @@ edition = "2021"
99
aws-config = "1.5.6"
1010
aws-lc-rs = "1.9.0"
1111
aws-lc-sys = "0.21.1"
12-
aws-sdk-dynamodb = "1.46.0"
13-
aws-sdk-kms = "1.44.0"
12+
aws-sdk-dynamodb = "1.45.0"
13+
aws-sdk-kms = "1.43.0"
1414
aws-smithy-runtime = {version = "1.7.1", features = ["client"] }
1515
aws-smithy-runtime-api = {version = "1.7.2", features = ["client"] }
1616
aws-smithy-types = "1.2.6"

‎releases/rust/db_esdk/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This is NOT ready for production
2+
3+
# Use at your own risk
4+

‎releases/rust/db_esdk/dafny_runtime_rust/Cargo.lock

Lines changed: 0 additions & 129 deletions
This file was deleted.

‎releases/rust/db_esdk/src/bin/example/basic_get_put_example.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ use crate::test_utils;
55
use aws_sdk_dynamodb::types::AttributeValue;
66
use std::collections::HashMap;
77

8-
use db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9-
use db_esdk::aws_cryptography_materialProviders::client;
10-
use db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
11-
12-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
13-
use db_esdk::aws_cryptography_materialProviders::types::DbeAlgorithmSuiteId;
14-
use db_esdk::intercept::DbEsdkInterceptor;
15-
use db_esdk::types::dynamo_db_tables_encryption_config::DynamoDbTablesEncryptionConfig;
8+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9+
use aws_db_esdk::aws_cryptography_materialProviders::client;
10+
use aws_db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
11+
12+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
13+
use aws_db_esdk::aws_cryptography_materialProviders::types::DbeAlgorithmSuiteId;
14+
use aws_db_esdk::intercept::DbEsdkInterceptor;
15+
use aws_db_esdk::types::dynamo_db_tables_encryption_config::DynamoDbTablesEncryptionConfig;
1616

1717
/*
1818
This example sets up DynamoDb Encryption for the AWS SDK client

‎releases/rust/db_esdk/src/bin/example/create_keystore_key.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
use crate::test_utils;
5-
use db_esdk::aws_cryptography_keyStore::client as keystore_client;
6-
use db_esdk::aws_cryptography_keyStore::types::key_store_config::KeyStoreConfig;
7-
use db_esdk::aws_cryptography_keyStore::types::KmsConfiguration;
5+
use aws_db_esdk::aws_cryptography_keyStore::client as keystore_client;
6+
use aws_db_esdk::aws_cryptography_keyStore::types::key_store_config::KeyStoreConfig;
7+
use aws_db_esdk::aws_cryptography_keyStore::types::KmsConfiguration;
88

99
/*
1010
The Hierarchical Keyring Example and Searchable Encryption Examples

‎releases/rust/db_esdk/src/bin/example/create_keystore_table.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
use crate::test_utils;
5-
use db_esdk::aws_cryptography_keyStore::types::key_store_config::KeyStoreConfig;
6-
use db_esdk::aws_cryptography_keyStore::types::KmsConfiguration;
7-
use db_esdk::aws_cryptography_keyStore::client as keystore_client;
5+
use aws_db_esdk::aws_cryptography_keyStore::types::key_store_config::KeyStoreConfig;
6+
use aws_db_esdk::aws_cryptography_keyStore::types::KmsConfiguration;
7+
use aws_db_esdk::aws_cryptography_keyStore::client as keystore_client;
88

99
/*
1010
The Hierarchical Keyring Example and Searchable Encryption Examples

‎releases/rust/db_esdk/src/bin/example/get_encrypted_data_key_description.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
use crate::test_utils;
5+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::client as dbesdk_client;
6+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::dynamo_db_encryption_config::DynamoDbEncryptionConfig;
7+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::GetEncryptedDataKeyDescriptionUnion;
58
use aws_sdk_dynamodb::types::AttributeValue;
6-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::client as dbesdk_client;
7-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::dynamo_db_encryption_config::DynamoDbEncryptionConfig;
8-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::GetEncryptedDataKeyDescriptionUnion;
99
use std::collections::HashMap;
1010

1111
pub async fn get_encrypted_data_key_description() {

‎releases/rust/db_esdk/src/bin/example/itemencryptor/item_encrypt_decrypt.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ use crate::test_utils;
55
use aws_sdk_dynamodb::types::AttributeValue;
66
use std::collections::HashMap;
77

8-
use db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9-
use db_esdk::aws_cryptography_materialProviders::client as mpl_client;
10-
use db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
8+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9+
use aws_db_esdk::aws_cryptography_materialProviders::client as mpl_client;
10+
use aws_db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
1111

12-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb_itemEncryptor::types::dynamo_db_item_encryptor_config::DynamoDbItemEncryptorConfig;
13-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb_itemEncryptor::client as enc_client;
14-
use db_esdk::aws_cryptography_materialProviders::types::DbeAlgorithmSuiteId;
12+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb_itemEncryptor::types::dynamo_db_item_encryptor_config::DynamoDbItemEncryptorConfig;
13+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb_itemEncryptor::client as enc_client;
14+
use aws_db_esdk::aws_cryptography_materialProviders::types::DbeAlgorithmSuiteId;
1515

1616
/*
1717
This example sets up a DynamoDb Item Encryptor and uses

‎releases/rust/db_esdk/src/bin/example/keyring/raw_rsa_keyring.rs

Lines changed: 277 additions & 256 deletions
Large diffs are not rendered by default.

‎releases/rust/db_esdk/src/bin/example/multi_get_put_example.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ use crate::test_utils;
55
use aws_sdk_dynamodb::types::AttributeValue;
66
use std::collections::HashMap;
77

8-
use db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9-
use db_esdk::aws_cryptography_materialProviders::client;
10-
use db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
8+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9+
use aws_db_esdk::aws_cryptography_materialProviders::client;
10+
use aws_db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
1111

12-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
13-
use db_esdk::aws_cryptography_materialProviders::types::DbeAlgorithmSuiteId;
14-
use db_esdk::intercept::DbEsdkInterceptor;
15-
use db_esdk::types::dynamo_db_tables_encryption_config::DynamoDbTablesEncryptionConfig;
12+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
13+
use aws_db_esdk::aws_cryptography_materialProviders::types::DbeAlgorithmSuiteId;
14+
use aws_db_esdk::intercept::DbEsdkInterceptor;
15+
use aws_db_esdk::types::dynamo_db_tables_encryption_config::DynamoDbTablesEncryptionConfig;
1616

1717
/*
1818
This example sets up DynamoDb Encryption for the AWS SDK client

‎releases/rust/db_esdk/src/bin/example/searchableencryption/basic_searchable_encryption.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ use crate::test_utils;
55
use aws_sdk_dynamodb::types::AttributeValue;
66
use std::collections::HashMap;
77

8-
use db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9-
use db_esdk::aws_cryptography_materialProviders::client;
10-
use db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
8+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
9+
use aws_db_esdk::aws_cryptography_materialProviders::client;
10+
use aws_db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
1111

12-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::BeaconKeySource;
13-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::BeaconVersion;
14-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
15-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::SearchConfig;
16-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::SingleKeyStore;
17-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::StandardBeacon;
18-
use db_esdk::aws_cryptography_keyStore::client as keystore_client;
19-
use db_esdk::aws_cryptography_keyStore::types::key_store_config::KeyStoreConfig;
20-
use db_esdk::aws_cryptography_keyStore::types::KmsConfiguration;
21-
use db_esdk::intercept::DbEsdkInterceptor;
22-
use db_esdk::types::dynamo_db_tables_encryption_config::DynamoDbTablesEncryptionConfig;
12+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::BeaconKeySource;
13+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::BeaconVersion;
14+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
15+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::SearchConfig;
16+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::SingleKeyStore;
17+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::StandardBeacon;
18+
use aws_db_esdk::aws_cryptography_keyStore::client as keystore_client;
19+
use aws_db_esdk::aws_cryptography_keyStore::types::key_store_config::KeyStoreConfig;
20+
use aws_db_esdk::aws_cryptography_keyStore::types::KmsConfiguration;
21+
use aws_db_esdk::intercept::DbEsdkInterceptor;
22+
use aws_db_esdk::types::dynamo_db_tables_encryption_config::DynamoDbTablesEncryptionConfig;
2323

2424
/*
2525
This example demonstrates how to set up a beacon on an encrypted attribute,

‎releases/rust/db_esdk/src/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl Client {
2222
inner.as_ref(),
2323
crate::_Wrappers_Compile::Result::Failure { .. }
2424
) {
25-
// TODO: convert error - the potential types are not modeled!
2625
return Err(BuildError::other(
2726
::aws_smithy_types::error::metadata::ErrorMetadata::builder()
2827
.message("Invalid client config")

‎releases/rust/db_esdk/src/deps/aws_cryptography_dbEncryptionSdk_dynamoDb/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl Client {
2222
inner.as_ref(),
2323
crate::_Wrappers_Compile::Result::Failure { .. }
2424
) {
25-
// TODO: convert error - the potential types are not modeled!
2625
return Err(BuildError::other(
2726
::aws_smithy_types::error::metadata::ErrorMetadata::builder()
2827
.message("Invalid client config")

‎releases/rust/db_esdk/src/deps/aws_cryptography_dbEncryptionSdk_dynamoDb_itemEncryptor/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl Client {
2222
inner.as_ref(),
2323
crate::_Wrappers_Compile::Result::Failure { .. }
2424
) {
25-
// TODO: convert error - the potential types are not modeled!
2625
return Err(BuildError::other(
2726
::aws_smithy_types::error::metadata::ErrorMetadata::builder()
2827
.message("Invalid client config")

‎releases/rust/db_esdk/src/deps/aws_cryptography_dbEncryptionSdk_structuredEncryption/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl Client {
2222
inner.as_ref(),
2323
crate::_Wrappers_Compile::Result::Failure { .. }
2424
) {
25-
// TODO: convert error - the potential types are not modeled!
2625
return Err(BuildError::other(
2726
::aws_smithy_types::error::metadata::ErrorMetadata::builder()
2827
.message("Invalid client config")

‎releases/rust/db_esdk/src/deps/aws_cryptography_keyStore/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl Client {
2222
inner.as_ref(),
2323
crate::_Wrappers_Compile::Result::Failure { .. }
2424
) {
25-
// TODO: convert error - the potential types are not modeled!
2625
return Err(BuildError::other(
2726
::aws_smithy_types::error::metadata::ErrorMetadata::builder()
2827
.message("Invalid client config")

‎releases/rust/db_esdk/src/deps/aws_cryptography_materialProviders/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl Client {
2222
inner.as_ref(),
2323
crate::_Wrappers_Compile::Result::Failure { .. }
2424
) {
25-
// TODO: convert error - the potential types are not modeled!
2625
return Err(BuildError::other(
2726
::aws_smithy_types::error::metadata::ErrorMetadata::builder()
2827
.message("Invalid client config")

‎releases/rust/db_esdk/src/deps/aws_cryptography_primitives/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl Client {
2222
inner.as_ref(),
2323
crate::_Wrappers_Compile::Result::Failure { .. }
2424
) {
25-
// TODO: convert error - the potential types are not modeled!
2625
return Err(BuildError::other(
2726
::aws_smithy_types::error::metadata::ErrorMetadata::builder()
2827
.message("Invalid client config")

0 commit comments

Comments
 (0)
Please sign in to comment.