aws_encryption_sdk_cli.internal.master_key_parsing

Helper functions for building crypto materials manager and underlying master key provider(s) from arguments.

Functions

build_crypto_materials_manager_from_args(...)

Builds a cryptographic materials manager from the provided arguments.

aws_encryption_sdk_cli.internal.master_key_parsing.build_crypto_materials_manager_from_args(key_providers_config: List[Dict[str, Union[str, List[str]]]], caching_config: Dict[str, Union[str, int, float]]) Union[CachingCryptoMaterialsManager, DefaultCryptoMaterialsManager]

Builds a cryptographic materials manager from the provided arguments.

Parameters
  • key_providers_config (list) – List of one or more dicts containing key provider configuration

  • caching_config (dict) – Parsed caching configuration

Return type

aws_encryption_sdk.materials_managers.base.CryptoMaterialsManager