Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “Apply these universally across AWS services, such as using aws:MultiFactorAuthPresent
to verify MFA status for resource access.”
A block of code is set as follows:
from aws_encryption_sdk import KMSMasterKeyProvider, encrypt key_provider = KMSMasterKeyProvider(key_ids=[ 'arn:aws:kms:us-east-1:012345678912:key/abcd1234-a123-456a-a12b-a123b4cd56ef' ]) plaintext = 'This is a plaintext message.' ciphertext, encryptor_header = encrypt( source=plaintext, key_provider=key_provider ) print(f'Ciphertext: {ciphertext}')
Tips or important notes
Appear like this.