Skip to content

Commit 97e4bde

Browse files
author
Lucas McDonald
committed
m
1 parent 34cf244 commit 97e4bde

File tree

4 files changed

+85
-0
lines changed

4 files changed

+85
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""Alias for generated models."""
4+
5+
6+
# Alias from:
7+
# "aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb.models.ABC"
8+
# to:
9+
# "aws_dbesdk_dynamodb.structures.dynamodb.ABC"
10+
# ruff: noqa: F403
11+
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb.models import *
12+
13+
# Dynamically define __all__ to reflect everything imported
14+
__all__ = [
15+
name
16+
for name in dir()
17+
if not name.startswith("_")
18+
and name != "sys"
19+
and name not in ["aws_cryptographic_material_providers", "aws_dbesdk_dynamodb"]
20+
]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""Alias for generated models."""
4+
5+
# Alias from:
6+
# "aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models.ABC"
7+
# to:
8+
# "aws_dbesdk_dynamodb.structures.item_encryptor.ABC"
9+
# and from:
10+
# "aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.config.ABC"
11+
# to:
12+
# "aws_dbesdk_dynamodb.structures.item_encryptor.ABC"
13+
# ruff: noqa: F403
14+
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.config import *
15+
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb_itemencryptor.models import *
16+
17+
# Dynamically define __all__ to reflect everything imported
18+
__all__ = [
19+
name
20+
for name in dir()
21+
if not name.startswith("_")
22+
and name != "sys"
23+
and name not in ["aws_cryptographic_material_providers", "aws_dbesdk_dynamodb"]
24+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
"""Alias for generated models."""
4+
5+
# Alias from:
6+
# "aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_structuredencryption.models.ABC"
7+
# to:
8+
# "aws_dbesdk_dynamodb.structures.structured_encryption.ABC"
9+
# ruff: noqa: F403
10+
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_structuredencryption.models import *
11+
12+
# Dynamically define __all__ to reflect everything imported
13+
__all__ = [
14+
name
15+
for name in dir()
16+
if not name.startswith("_")
17+
and name != "sys"
18+
and name not in ["aws_cryptographic_material_providers", "aws_dbesdk_dynamodb"]
19+
]

TestVectors/runtimes/python/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The Python AWS DBESDK for DynamoDB has the following encrypted interfaces for boto3 clients:
2+
* `EncryptedClient`
3+
* TestVectors test through `client/`
4+
* `EncryptedPaginator`
5+
* Can't write items; will not test via TestVectors
6+
* `EncryptedResource`
7+
* TestVectors test through `resource/`
8+
* `EncryptedTable`
9+
* TestVectors test through `table/`
10+
* `EncryptedTablesManager`
11+
* Can't write items by itself; provides EncryptedTables which are tested via `table/`
12+
13+
The Python AWS DBESDK for DynamoDB's `ItemEncryptor` interface provides the following APIs:
14+
* encrypt_python_item / decrypt_python_item
15+
* Standard dictionary JSON; e.g. `{"key": "value"}`
16+
* Tested explicitly via `test/resource/` and `test/table` calling `CreateWrappedDictItemEncryptor` and calling its operations
17+
* encrypt_dynamodb_item / decrypt_dynamodb_item
18+
* DynamoDB JSON; e.g. `{"key": {"S": "value"}}`
19+
* Tested implicitly via `test/resource/` and `test/table` calling `CreateWrappedDictItemEncryptor`. Calls to the dict-formatted APIs pass through the DynamoDB-formatted APIs.
20+
* encrypt_item / decrypt_item
21+
* DBESDK EncryptItemInput; e.g. `EncryptItemInput({"key": {"S": "value"}})`
22+
* Tested explicitly via `test/client/` calling `CreateWrappedDynamoDbItemEncryptor`

0 commit comments

Comments
 (0)