Skip to content

Commit 1f464e9

Browse files
author
Lucas McDonald
committed
m
1 parent 2c32586 commit 1f464e9

File tree

2 files changed

+28
-28
lines changed
  • DynamoDbEncryption/runtimes/python/src/aws_dbesdk_dynamodb/encrypted

2 files changed

+28
-28
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ class EncryptedClient(EncryptedBotoInterface):
4949
5050
This class will encrypt/decrypt items for the following operations:
5151
52-
* `put_item`
53-
* `get_item`
54-
* `query`
55-
* `scan`
56-
* `batch_write_item`
57-
* `batch_get_item`
58-
* `transact_get_items`
59-
* `transact_write_items`
52+
* ``put_item``
53+
* ``get_item``
54+
* ``query``
55+
* ``scan``
56+
* ``batch_write_item``
57+
* ``batch_get_item``
58+
* ``transact_get_items``
59+
* ``transact_write_items``
6060
61-
The `update_item` operation is not currently supported. Calling this operation will raise `NotImplementedError`.
61+
The ``update_item`` operation is not currently supported. Calling this operation will raise ``NotImplementedError``.
6262
6363
Any other operations on this class will defer to the underlying boto3 DynamoDB client's implementation.
6464
65-
`EncryptedClient` can also return an `EncryptedPaginator` for transparent decryption of paginated results.
65+
``EncryptedClient`` can also return an ``EncryptedPaginator`` for transparent decryption of paginated results.
6666
"""
6767

6868
_client: botocore.client.BaseClient
@@ -78,15 +78,15 @@ def __init__(
7878
expect_standard_dictionaries: bool | None = False,
7979
):
8080
"""
81-
Create an `EncryptedClient` object.
81+
Create an ``EncryptedClient`` object.
8282
8383
Args:
8484
client (botocore.client.BaseClient): Initialized boto3 DynamoDB client
8585
encryption_config (DynamoDbTablesEncryptionConfig): Initialized DynamoDbTablesEncryptionConfig
8686
expect_standard_dictionaries (Optional[bool]): Does the underlying boto3 client expect items
8787
to be standard Python dictionaries? This should only be set to True if you are using a
88-
client obtained from a service resource or table resource (ex: `table.meta.client`).
89-
If this is True, EncryptedClient will expect item-like shapes to be
88+
client obtained from a service resource or table resource (ex: ``table.meta.client``).
89+
If this is True, ``EncryptedClient`` will expect item-like shapes to be
9090
standard Python dictionaries (default: False).
9191
9292
"""

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def __init__(
3131
item_encryptor_config: DynamoDbItemEncryptorConfig,
3232
):
3333
"""
34-
Create an `ItemEncryptor`.
34+
Create an ``ItemEncryptor``.
3535
3636
Args:
3737
item_encryptor_config (DynamoDbItemEncryptorConfig): Encryption configuration object.
@@ -58,8 +58,8 @@ def encrypt_python_item(
5858
boto3 DynamoDB Tables and Resources expect items formatted as native Python dictionaries.
5959
Use this method to encrypt an item if you intend to pass the encrypted item
6060
to a boto3 DynamoDB Table or Resource interface to store it.
61-
(Alternatively, you can use this library's `EncryptedTable` or `EncryptedResource` interfaces
62-
to transparently encrypt items without an intermediary `ItemEncryptor`.)
61+
(Alternatively, you can use this library's ``EncryptedTable`` or ``EncryptedResource`` interfaces
62+
to transparently encrypt items without an intermediary ``ItemEncryptor``.)
6363
6464
Args:
6565
plaintext_dict_item (dict[str, Any]): A standard Python dictionary.
@@ -70,7 +70,7 @@ def encrypt_python_item(
7070
- **encrypted_item** (*dict[str, Any]*): The encrypted Python dictionary.
7171
**Note:** The item was encrypted as DynamoDB JSON, then transformed to a Python dictionary.
7272
- **parsed_header** (*Optional[ParsedHeader]*): The encrypted DynamoDB item's header
73-
(parsed `aws_dbe_head` value).
73+
(parsed ``aws_dbe_head`` value).
7474
7575
Example:
7676
>>> plaintext_item = {
@@ -100,8 +100,8 @@ def encrypt_dynamodb_item(
100100
101101
Use this method to encrypt an item if you intend to pass the encrypted item
102102
to a boto3 DynamoDB client to store it.
103-
(Alternatively, you can use this library's `EncryptedClient` interface
104-
to transparently encrypt items without an intermediary `ItemEncryptor`.)
103+
(Alternatively, you can use this library's ``EncryptedClient`` interface
104+
to transparently encrypt items without an intermediary ``ItemEncryptor``.)
105105
106106
Args:
107107
plaintext_dynamodb_item (dict[str, dict[str, Any]]): The item to encrypt formatted as DynamoDB JSON.
@@ -112,7 +112,7 @@ def encrypt_dynamodb_item(
112112
- **encrypted_item** (*dict[str, Any]*): A dictionary containing the encrypted DynamoDB item
113113
formatted as DynamoDB JSON.
114114
- **parsed_header** (*Optional[ParsedHeader]*): The encrypted DynamoDB item's header
115-
(`aws_dbe_head` value).
115+
(``aws_dbe_head`` value).
116116
117117
Example:
118118
>>> plaintext_item = {
@@ -147,7 +147,7 @@ def encrypt_item(
147147
148148
- **encrypted_item** (*dict[str, Any]*): The encrypted DynamoDB item formatted as DynamoDB JSON.
149149
- **parsed_header** (*Optional[ParsedHeader]*): The encrypted DynamoDB item's header
150-
(`aws_dbe_head` value).
150+
(``aws_dbe_head`` value).
151151
152152
Example:
153153
>>> plaintext_item = {
@@ -184,8 +184,8 @@ def decrypt_python_item(
184184
boto3 DynamoDB Tables and Resources return items formatted as native Python dictionaries.
185185
Use this method to decrypt an item if you retrieve the encrypted item
186186
from a boto3 DynamoDB Table or Resource interface.
187-
(Alternatively, you can use this library's `EncryptedTable` or `EncryptedResource` interfaces
188-
to transparently decrypt items without an intermediary `ItemEncryptor`.)
187+
(Alternatively, you can use this library's ``EncryptedTable`` or ``EncryptedResource`` interfaces
188+
to transparently decrypt items without an intermediary ``ItemEncryptor``.)
189189
190190
Args:
191191
encrypted_dict_item (dict[str, Any]): A standard Python dictionary with encrypted values.
@@ -196,7 +196,7 @@ def decrypt_python_item(
196196
- **plaintext_item** (*dict[str, Any]*): The decrypted Python dictionary.
197197
**Note:** The item was decrypted as DynamoDB JSON, then transformed to a Python dictionary.
198198
- **parsed_header** (*Optional[ParsedHeader]*): The encrypted DynamoDB item's header
199-
(parsed `aws_dbe_head` value).
199+
(parsed ``aws_dbe_head`` value).
200200
201201
Example:
202202
>>> encrypted_item = {
@@ -226,8 +226,8 @@ def decrypt_dynamodb_item(
226226
227227
Use this method to decrypt an item if you retrieved the encrypted item
228228
from a boto3 DynamoDB client.
229-
(Alternatively, you can use this library's `EncryptedClient` interface
230-
to transparently decrypt items without an intermediary `ItemEncryptor`.)
229+
(Alternatively, you can use this library's ``EncryptedClient`` interface
230+
to transparently decrypt items without an intermediary ``ItemEncryptor``.)
231231
232232
Args:
233233
encrypted_dynamodb_item (dict[str, dict[str, Any]]): The item to decrypt formatted as DynamoDB JSON.
@@ -237,7 +237,7 @@ def decrypt_dynamodb_item(
237237
238238
- **plaintext_item** (*dict[str, Any]*): The plaintext DynamoDB item formatted as DynamoDB JSON.
239239
- **parsed_header** (*Optional[ParsedHeader]*): The decrypted DynamoDB item's header
240-
(`aws_dbe_head` value).
240+
(``aws_dbe_head`` value).
241241
242242
Example:
243243
>>> encrypted_item = {
@@ -272,7 +272,7 @@ def decrypt_item(
272272
273273
- **plaintext_item** (*dict[str, Any]*): The decrypted DynamoDB item formatted as DynamoDB JSON.
274274
- **parsed_header** (*Optional[ParsedHeader]*): The decrypted DynamoDB item's header
275-
(`aws_dbe_head` value).
275+
(``aws_dbe_head`` value).
276276
277277
Example:
278278
>>> encrypted_item = {

0 commit comments

Comments
 (0)