corrected the var name, moved the resource checking to only apply when creating a resource as per Gaelles issues (pending vaults still count to limit)
added better checking for vaults / keys based on the first item returned (for situations where someone has managed to create multiuple keys / vaults in a compartment duplicating names)
Allow for the key to have reuse controls separate from the vault itself - incase the vault exists but the key does not
Incorporated auto confirm capability in prep for the script that likes to say yes
corrected the var name, moved the resource checking to only apply when creating a resource as per Gaelles issues (pending vaults still count to limit) added better checking for vaults / keys based on the first item returned (for situations where someone has managed to create multiuple keys / vaults in a compartment duplicating names) Allow for the key to have reuse controls separate from the vault itself - incase the vault exists but the key does not Incorporated auto confirm capability in prep for the script that likes to say yes