Skip to content

Commit 84823f8

Browse files
committed
m
1 parent 4e0ad55 commit 84823f8

File tree

12 files changed

+59
-184
lines changed

12 files changed

+59
-184
lines changed

DynamoDbEncryption/runtimes/rust/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"
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+

DynamoDbEncryption/runtimes/rust/dafny_runtime_rust/Cargo.lock

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

DynamoDbEncryption/runtimes/rust/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

DynamoDbEncryption/runtimes/rust/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

DynamoDbEncryption/runtimes/rust/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

DynamoDbEncryption/runtimes/rust/src/bin/example/get_encrypted_data_key_description.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
use crate::test_utils;
55
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;
6+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::client as dbesdk_client;
7+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::dynamo_db_encryption_config::DynamoDbEncryptionConfig;
8+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::GetEncryptedDataKeyDescriptionUnion;
99
use std::collections::HashMap;
1010

1111
pub async fn get_encrypted_data_key_description() {

DynamoDbEncryption/runtimes/rust/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

DynamoDbEncryption/runtimes/rust/src/bin/example/keyring/raw_rsa_keyring.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
use crate::test_utils;
55
use aws_sdk_dynamodb::types::AttributeValue;
6-
use db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
7-
use db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
8-
use db_esdk::aws_cryptography_materialProviders::client as mpl_client;
9-
use db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
10-
use db_esdk::aws_cryptography_materialProviders::types::PaddingScheme;
11-
use db_esdk::intercept::DbEsdkInterceptor;
12-
use db_esdk::DynamoDbTablesEncryptionConfig;
6+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_dynamoDb::types::DynamoDbTableEncryptionConfig;
7+
use aws_db_esdk::aws_cryptography_dbEncryptionSdk_structuredEncryption::types::CryptoAction;
8+
use aws_db_esdk::aws_cryptography_materialProviders::client as mpl_client;
9+
use aws_db_esdk::aws_cryptography_materialProviders::types::material_providers_config::MaterialProvidersConfig;
10+
use aws_db_esdk::aws_cryptography_materialProviders::types::PaddingScheme;
11+
use aws_db_esdk::intercept::DbEsdkInterceptor;
12+
use aws_db_esdk::DynamoDbTablesEncryptionConfig;
1313
use std::collections::HashMap;
1414
use std::fs::File;
1515
use std::io::Read;

DynamoDbEncryption/runtimes/rust/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

0 commit comments

Comments
 (0)