def METHOD_NAME(self, cfg_factory=None) -> str:
    if not cfg_factory:
        cfg_factory = ctx.cfg_factory()
    aws_config = cfg_factory.aws(self.aws_config_name())
    aws_secret_access_key = aws_config.secret_access_key()
    aws_region = aws_config.region()
    return smtp_password_from_aws_access_key(
        aws_secret_access_key=aws_secret_access_key,
        aws_region=aws_region,
    )