code: async function createCryptoKeyVersion(
    projectId = 'YOUR_PROJECT_ID', // Your Google Cloud Platform project ID
    keyRingId = 'my-key-ring', // Name of the crypto key version's key ring, e.g. "my-key-ring"
    cryptoKeyId = 'my-key' // Name of the version's crypto key
  ) {
    // Import the library and create a client
    const kms = require('@google-cloud/kms');
    const client = new kms.KeyManagementServiceClient();
  
    // The location of the crypto key versions's key ring, e.g. "global"
    const locationId = 'global';
  
    // Get the full path to the crypto key
    const parent = client.cryptoKeyPath(
      projectId,
      locationId,
      keyRingId,
      cryptoKeyId
    );
  
    // Creates a new crypto key version
    const [result] = await client.createCryptoKeyVersion({parent});
    console.log(`Crypto key version ${result.name} created.`);
  }
docs: [START kms_create_cryptokey_version]