Skip to content

Commit 4def8ba

Browse files
isort-check now succeeds
1 parent 850d8c9 commit 4def8ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/src/one_kms_cmk_unsigned.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"""Example showing basic encryption and decryption of a value already in memory
1414
using one KMS CMK with an unsigned algorithm.
1515
"""
16-
import aws_encryption_sdk
17-
from aws_encryption_sdk import encrypt, decrypt
16+
from aws_encryption_sdk import KMSMasterKeyProvider, decrypt, encrypt
1817
from aws_encryption_sdk.identifiers import Algorithm
1918

2019

@@ -32,7 +31,7 @@ def encrypt_decrypt(key_arn, source_plaintext, botocore_session=None):
3231
kwargs["botocore_session"] = botocore_session
3332

3433
# Create master key provider using the ARN of the key and the session (botocore_session)
35-
kms_key_provider = aws_encryption_sdk.KMSMasterKeyProvider(**kwargs)
34+
kms_key_provider = KMSMasterKeyProvider(**kwargs)
3635

3736
# Encrypt the plaintext using the AWS Encryption SDK. It returns the encrypted message and the header
3837
ciphertext, encrypted_message_header = encrypt(

0 commit comments

Comments
 (0)