aws_encryption_sdk_cli

AWS Encryption SDK CLI.

Functions

cli([raw_args]) CLI entry point.
process_cli_request(stream_args, parsed_args) Maps the operation request to the appropriate function based on the type of input and output provided.
stream_kwargs_from_args(args, …) Builds kwargs object for aws_encryption_sdk.stream based on argparse arguments and existing CryptoMaterialsManager.
aws_encryption_sdk_cli.process_cli_request(stream_args, parsed_args)

Maps the operation request to the appropriate function based on the type of input and output provided.

Parameters:
  • stream_args (dict) – kwargs to pass to aws_encryption_sdk.stream
  • args (argparse.Namespace) – Parsed arguments from argparse
aws_encryption_sdk_cli.stream_kwargs_from_args(args, crypto_materials_manager)

Builds kwargs object for aws_encryption_sdk.stream based on argparse arguments and existing CryptoMaterialsManager.

Parameters:
  • args (argparse.Namespace) – Parsed arguments from argparse
  • crypto_materials_manager (aws_encryption_sdk.materials_manager.base.CryptoMaterialsManager) – Existing CryptoMaterialsManager
Returns:

Translated kwargs object for aws_encryption_sdk.stream

Return type:

dict

aws_encryption_sdk_cli.cli(raw_args=None)

CLI entry point. Processes arguments, sets up the key provider, and processes requested action.

Returns:Execution return value intended for sys.exit()