I want to assign values depending upon values it contain in variable. Example: Creating redis and supplying snapshotname or snapshotarns. Depending upon the value provided might be name or arns, want to assign to snapshotname or snapshotarns variable in redis. Is there way to achieve might be like identifying arns value as list and depending upon list or string will assign values