def METHOD_NAME(encrypted_data_key):
    """
    _cfg_data_key returns the aws_kms:data_key from configuration.
    """
    config = {"aws_kms": {"data_key": encrypted_data_key}}
    with patch.dict(aws_kms.__salt__, {"config.get": config.get}):
        assert (
            aws_kms._cfg_data_key() == encrypted_data_key
        ), "_cfg_data_key did not return the data key configured in __salt__."
    with patch.dict(aws_kms.__opts__, config):
        assert (
            aws_kms._cfg_data_key() == encrypted_data_key
        ), "_cfg_data_key did not return the data key configured in __opts__."