File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 7
7
from .internaldafny .generated import module_
8
8
from .internaldafny import extern
9
9
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
-
19
10
"""
20
11
boto3 uses Python's decimal library to deserialize numbers retrieved by resources
21
12
(Tables, etc.) from strings to `decimal.Decimal`s.
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ def encrypt_dynamodb_item(
111
111
112
112
- **encrypted_item** (*dict[str, Any]*): A dictionary containing the encrypted DynamoDB item
113
113
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).
115
116
116
117
Example:
117
118
>>> plaintext_item = {
@@ -235,7 +236,8 @@ def decrypt_dynamodb_item(
235
236
DecryptItemOutput: Structure containing the following fields:
236
237
237
238
- **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).
239
241
240
242
Example:
241
243
>>> encrypted_item = {
@@ -269,7 +271,8 @@ def decrypt_item(
269
271
DecryptItemOutput: Structure containing the following fields:
270
272
271
273
- **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).
273
276
274
277
Example:
275
278
>>> encrypted_item = {
Original file line number Diff line number Diff line change 1
1
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
2
# 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 *
Original file line number Diff line number Diff line change 1
1
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
+ """Alias for generated models."""
4
+
5
+ # ruff: noqa: F403
3
6
from aws_dbesdk_dynamodb .smithygenerated .aws_cryptography_dbencryptionsdk_structuredencryption .models import *
You can’t perform that action at this time.
0 commit comments