Skip to content

Commit 9ef87ea

Browse files
committed
Added docstrings
1 parent 164f7dd commit 9ef87ea

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

examples/src/one_kms_cmk.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515

1616

1717
def encrypt_decrypt(key_arn, source_plaintext, botocore_session=None):
18+
"""Encrypts and then decrypts a string under one KMS customer master key (CMK).
19+
20+
:param str key_arn: Amazon Resource Name (ARN) of the KMS CMK
21+
:param bytes source_plaintext: Data to encrypt
22+
:param botocore_session: existing botocore session instance
23+
:type botocore_session: botocore.session.Session
24+
"""
1825

1926
kwargs = dict(key_ids=[key_arn])
2027

examples/src/one_kms_cmk_streaming_data.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717

1818

1919
def encrypt_decrypt_stream(key_arn, source_plaintext_filename, botocore_session=None):
20+
"""Encrypts and then decrypts streaming data under one KMS customer master key (CMK).
21+
22+
:param str key_arn: Amazon Resource Name (ARN) of the KMS CMK
23+
:param str source_plaintext_filename: Filename of file to encrypt
24+
:param botocore_session: existing botocore session instance
25+
:type botocore_session: botocore.session.Session
26+
"""
2027

2128
kwargs = dict()
2229

0 commit comments

Comments
 (0)