Skip to content

Commit c801b42

Browse files
author
Lucas McDonald
committed
m
1 parent b22ddb0 commit c801b42

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
from .internaldafny.generated import module_
88
from .internaldafny import extern
99

10-
# Export user-friendly access paths
11-
import aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb as dynamodb
12-
import aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_structuredencryption as structured_encryption
13-
14-
__all__ = [
15-
dynamodb,
16-
structured_encryption,
17-
]
18-
1910
"""
2011
boto3 uses Python's decimal library to deserialize numbers retrieved by resources
2112
(Tables, etc.) from strings to `decimal.Decimal`s.

DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted/item.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def encrypt_dynamodb_item(
111111
112112
- **encrypted_item** (*dict[str, Any]*): A dictionary containing the encrypted DynamoDB item
113113
formatted as DynamoDB JSON.
114-
- **parsed_header** (*Optional[ParsedHeader]*): The encrypted DynamoDB item's header (`aws_dbe_head` value).
114+
- **parsed_header** (*Optional[ParsedHeader]*): The encrypted DynamoDB item's header
115+
(`aws_dbe_head` value).
115116
116117
Example:
117118
>>> plaintext_item = {
@@ -235,7 +236,8 @@ def decrypt_dynamodb_item(
235236
DecryptItemOutput: Structure containing the following fields:
236237
237238
- **plaintext_item** (*dict[str, Any]*): The plaintext DynamoDB item formatted as DynamoDB JSON.
238-
- **parsed_header** (*Optional[ParsedHeader]*): The decrypted DynamoDB item's header (`aws_dbe_head` value).
239+
- **parsed_header** (*Optional[ParsedHeader]*): The decrypted DynamoDB item's header
240+
(`aws_dbe_head` value).
239241
240242
Example:
241243
>>> encrypted_item = {
@@ -269,7 +271,8 @@ def decrypt_item(
269271
DecryptItemOutput: Structure containing the following fields:
270272
271273
- **plaintext_item** (*dict[str, Any]*): The decrypted DynamoDB item formatted as DynamoDB JSON.
272-
- **parsed_header** (*Optional[ParsedHeader]*): The decrypted DynamoDB item's header (`aws_dbe_head` value).
274+
- **parsed_header** (*Optional[ParsedHeader]*): The decrypted DynamoDB item's header
275+
(`aws_dbe_head` value).
273276
274277
Example:
275278
>>> encrypted_item = {
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
3-
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb.models import *
3+
"""Alias for generated models."""
4+
5+
# ruff: noqa: F403
6+
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_dynamodb.models import *
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
3+
"""Alias for generated models."""
4+
5+
# ruff: noqa: F403
36
from aws_dbesdk_dynamodb.smithygenerated.aws_cryptography_dbencryptionsdk_structuredencryption.models import *

0 commit comments

Comments
 (0)