1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. compute
  5. InstanceFromTemplate
Google Cloud v8.25.0 published on Thursday, Apr 3, 2025 by Pulumi

gcp.compute.InstanceFromTemplate

Explore with Pulumi AI

Manages a VM instance resource within GCE. For more information see the official documentation and API.

This resource is specifically to create a compute instance from a given source_instance_template. To create an instance without a template, use the gcp.compute.Instance resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const tpl = new gcp.compute.InstanceTemplate("tpl", {
    name: "template",
    machineType: "e2-medium",
    disks: [{
        sourceImage: "debian-cloud/debian-11",
        autoDelete: true,
        diskSizeGb: 100,
        boot: true,
    }],
    networkInterfaces: [{
        network: "default",
    }],
    metadata: {
        foo: "bar",
    },
    canIpForward: true,
});
const tplInstanceFromTemplate = new gcp.compute.InstanceFromTemplate("tpl", {
    name: "instance-from-template",
    zone: "us-central1-a",
    sourceInstanceTemplate: tpl.selfLinkUnique,
    canIpForward: false,
    labels: {
        my_key: "my_value",
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

tpl = gcp.compute.InstanceTemplate("tpl",
    name="template",
    machine_type="e2-medium",
    disks=[{
        "source_image": "debian-cloud/debian-11",
        "auto_delete": True,
        "disk_size_gb": 100,
        "boot": True,
    }],
    network_interfaces=[{
        "network": "default",
    }],
    metadata={
        "foo": "bar",
    },
    can_ip_forward=True)
tpl_instance_from_template = gcp.compute.InstanceFromTemplate("tpl",
    name="instance-from-template",
    zone="us-central1-a",
    source_instance_template=tpl.self_link_unique,
    can_ip_forward=False,
    labels={
        "my_key": "my_value",
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tpl, err := compute.NewInstanceTemplate(ctx, "tpl", &compute.InstanceTemplateArgs{
			Name:        pulumi.String("template"),
			MachineType: pulumi.String("e2-medium"),
			Disks: compute.InstanceTemplateDiskArray{
				&compute.InstanceTemplateDiskArgs{
					SourceImage: pulumi.String("debian-cloud/debian-11"),
					AutoDelete:  pulumi.Bool(true),
					DiskSizeGb:  pulumi.Int(100),
					Boot:        pulumi.Bool(true),
				},
			},
			NetworkInterfaces: compute.InstanceTemplateNetworkInterfaceArray{
				&compute.InstanceTemplateNetworkInterfaceArgs{
					Network: pulumi.String("default"),
				},
			},
			Metadata: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
			CanIpForward: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = compute.NewInstanceFromTemplate(ctx, "tpl", &compute.InstanceFromTemplateArgs{
			Name:                   pulumi.String("instance-from-template"),
			Zone:                   pulumi.String("us-central1-a"),
			SourceInstanceTemplate: tpl.SelfLinkUnique,
			CanIpForward:           pulumi.Bool(false),
			Labels: pulumi.StringMap{
				"my_key": pulumi.String("my_value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var tpl = new Gcp.Compute.InstanceTemplate("tpl", new()
    {
        Name = "template",
        MachineType = "e2-medium",
        Disks = new[]
        {
            new Gcp.Compute.Inputs.InstanceTemplateDiskArgs
            {
                SourceImage = "debian-cloud/debian-11",
                AutoDelete = true,
                DiskSizeGb = 100,
                Boot = true,
            },
        },
        NetworkInterfaces = new[]
        {
            new Gcp.Compute.Inputs.InstanceTemplateNetworkInterfaceArgs
            {
                Network = "default",
            },
        },
        Metadata = 
        {
            { "foo", "bar" },
        },
        CanIpForward = true,
    });

    var tplInstanceFromTemplate = new Gcp.Compute.InstanceFromTemplate("tpl", new()
    {
        Name = "instance-from-template",
        Zone = "us-central1-a",
        SourceInstanceTemplate = tpl.SelfLinkUnique,
        CanIpForward = false,
        Labels = 
        {
            { "my_key", "my_value" },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.InstanceTemplate;
import com.pulumi.gcp.compute.InstanceTemplateArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateDiskArgs;
import com.pulumi.gcp.compute.inputs.InstanceTemplateNetworkInterfaceArgs;
import com.pulumi.gcp.compute.InstanceFromTemplate;
import com.pulumi.gcp.compute.InstanceFromTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var tpl = new InstanceTemplate("tpl", InstanceTemplateArgs.builder()
            .name("template")
            .machineType("e2-medium")
            .disks(InstanceTemplateDiskArgs.builder()
                .sourceImage("debian-cloud/debian-11")
                .autoDelete(true)
                .diskSizeGb(100)
                .boot(true)
                .build())
            .networkInterfaces(InstanceTemplateNetworkInterfaceArgs.builder()
                .network("default")
                .build())
            .metadata(Map.of("foo", "bar"))
            .canIpForward(true)
            .build());

        var tplInstanceFromTemplate = new InstanceFromTemplate("tplInstanceFromTemplate", InstanceFromTemplateArgs.builder()
            .name("instance-from-template")
            .zone("us-central1-a")
            .sourceInstanceTemplate(tpl.selfLinkUnique())
            .canIpForward(false)
            .labels(Map.of("my_key", "my_value"))
            .build());

    }
}
Copy
resources:
  tpl:
    type: gcp:compute:InstanceTemplate
    properties:
      name: template
      machineType: e2-medium
      disks:
        - sourceImage: debian-cloud/debian-11
          autoDelete: true
          diskSizeGb: 100
          boot: true
      networkInterfaces:
        - network: default
      metadata:
        foo: bar
      canIpForward: true
  tplInstanceFromTemplate:
    type: gcp:compute:InstanceFromTemplate
    name: tpl
    properties:
      name: instance-from-template
      zone: us-central1-a
      sourceInstanceTemplate: ${tpl.selfLinkUnique}
      canIpForward: false
      labels:
        my_key: my_value
Copy

Create InstanceFromTemplate Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new InstanceFromTemplate(name: string, args: InstanceFromTemplateArgs, opts?: CustomResourceOptions);
@overload
def InstanceFromTemplate(resource_name: str,
                         args: InstanceFromTemplateArgs,
                         opts: Optional[ResourceOptions] = None)

@overload
def InstanceFromTemplate(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         source_instance_template: Optional[str] = None,
                         metadata: Optional[Mapping[str, str]] = None,
                         desired_status: Optional[str] = None,
                         boot_disk: Optional[InstanceFromTemplateBootDiskArgs] = None,
                         metadata_startup_script: Optional[str] = None,
                         confidential_instance_config: Optional[InstanceFromTemplateConfidentialInstanceConfigArgs] = None,
                         deletion_protection: Optional[bool] = None,
                         description: Optional[str] = None,
                         min_cpu_platform: Optional[str] = None,
                         enable_display: Optional[bool] = None,
                         guest_accelerators: Optional[Sequence[InstanceFromTemplateGuestAcceleratorArgs]] = None,
                         hostname: Optional[str] = None,
                         instance_encryption_key: Optional[InstanceFromTemplateInstanceEncryptionKeyArgs] = None,
                         key_revocation_action_type: Optional[str] = None,
                         name: Optional[str] = None,
                         machine_type: Optional[str] = None,
                         advanced_machine_features: Optional[InstanceFromTemplateAdvancedMachineFeaturesArgs] = None,
                         can_ip_forward: Optional[bool] = None,
                         attached_disks: Optional[Sequence[InstanceFromTemplateAttachedDiskArgs]] = None,
                         labels: Optional[Mapping[str, str]] = None,
                         network_interfaces: Optional[Sequence[InstanceFromTemplateNetworkInterfaceArgs]] = None,
                         network_performance_config: Optional[InstanceFromTemplateNetworkPerformanceConfigArgs] = None,
                         params: Optional[InstanceFromTemplateParamsArgs] = None,
                         partner_metadata: Optional[Mapping[str, str]] = None,
                         project: Optional[str] = None,
                         reservation_affinity: Optional[InstanceFromTemplateReservationAffinityArgs] = None,
                         resource_policies: Optional[str] = None,
                         scheduling: Optional[InstanceFromTemplateSchedulingArgs] = None,
                         scratch_disks: Optional[Sequence[InstanceFromTemplateScratchDiskArgs]] = None,
                         service_account: Optional[InstanceFromTemplateServiceAccountArgs] = None,
                         shielded_instance_config: Optional[InstanceFromTemplateShieldedInstanceConfigArgs] = None,
                         allow_stopping_for_update: Optional[bool] = None,
                         tags: Optional[Sequence[str]] = None,
                         zone: Optional[str] = None)
func NewInstanceFromTemplate(ctx *Context, name string, args InstanceFromTemplateArgs, opts ...ResourceOption) (*InstanceFromTemplate, error)
public InstanceFromTemplate(string name, InstanceFromTemplateArgs args, CustomResourceOptions? opts = null)
public InstanceFromTemplate(String name, InstanceFromTemplateArgs args)
public InstanceFromTemplate(String name, InstanceFromTemplateArgs args, CustomResourceOptions options)
type: gcp:compute:InstanceFromTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. InstanceFromTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. InstanceFromTemplateArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. InstanceFromTemplateArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. InstanceFromTemplateArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. InstanceFromTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var instanceFromTemplateResource = new Gcp.Compute.InstanceFromTemplate("instanceFromTemplateResource", new()
{
    SourceInstanceTemplate = "string",
    Metadata = 
    {
        { "string", "string" },
    },
    DesiredStatus = "string",
    BootDisk = new Gcp.Compute.Inputs.InstanceFromTemplateBootDiskArgs
    {
        AutoDelete = false,
        DeviceName = "string",
        DiskEncryptionKeyRaw = "string",
        DiskEncryptionKeyRsa = "string",
        DiskEncryptionKeySha256 = "string",
        DiskEncryptionServiceAccount = "string",
        GuestOsFeatures = new[]
        {
            "string",
        },
        InitializeParams = new Gcp.Compute.Inputs.InstanceFromTemplateBootDiskInitializeParamsArgs
        {
            Architecture = "string",
            EnableConfidentialCompute = false,
            Image = "string",
            Labels = 
            {
                { "string", "string" },
            },
            ProvisionedIops = 0,
            ProvisionedThroughput = 0,
            ResourceManagerTags = 
            {
                { "string", "string" },
            },
            ResourcePolicies = "string",
            Size = 0,
            Snapshot = "string",
            SourceImageEncryptionKey = new Gcp.Compute.Inputs.InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKeyArgs
            {
                KmsKeySelfLink = "string",
                KmsKeyServiceAccount = "string",
                RawKey = "string",
                RsaEncryptedKey = "string",
                Sha256 = "string",
            },
            SourceSnapshotEncryptionKey = new Gcp.Compute.Inputs.InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKeyArgs
            {
                KmsKeySelfLink = "string",
                KmsKeyServiceAccount = "string",
                RawKey = "string",
                RsaEncryptedKey = "string",
                Sha256 = "string",
            },
            StoragePool = "string",
            Type = "string",
        },
        Interface = "string",
        KmsKeySelfLink = "string",
        Mode = "string",
        Source = "string",
    },
    MetadataStartupScript = "string",
    ConfidentialInstanceConfig = new Gcp.Compute.Inputs.InstanceFromTemplateConfidentialInstanceConfigArgs
    {
        ConfidentialInstanceType = "string",
        EnableConfidentialCompute = false,
    },
    DeletionProtection = false,
    Description = "string",
    MinCpuPlatform = "string",
    EnableDisplay = false,
    GuestAccelerators = new[]
    {
        new Gcp.Compute.Inputs.InstanceFromTemplateGuestAcceleratorArgs
        {
            Count = 0,
            Type = "string",
        },
    },
    Hostname = "string",
    InstanceEncryptionKey = new Gcp.Compute.Inputs.InstanceFromTemplateInstanceEncryptionKeyArgs
    {
        KmsKeySelfLink = "string",
        KmsKeyServiceAccount = "string",
        Sha256 = "string",
    },
    KeyRevocationActionType = "string",
    Name = "string",
    MachineType = "string",
    AdvancedMachineFeatures = new Gcp.Compute.Inputs.InstanceFromTemplateAdvancedMachineFeaturesArgs
    {
        EnableNestedVirtualization = false,
        EnableUefiNetworking = false,
        PerformanceMonitoringUnit = "string",
        ThreadsPerCore = 0,
        TurboMode = "string",
        VisibleCoreCount = 0,
    },
    CanIpForward = false,
    AttachedDisks = new[]
    {
        new Gcp.Compute.Inputs.InstanceFromTemplateAttachedDiskArgs
        {
            Source = "string",
            DeviceName = "string",
            DiskEncryptionKeyRaw = "string",
            DiskEncryptionKeyRsa = "string",
            DiskEncryptionKeySha256 = "string",
            DiskEncryptionServiceAccount = "string",
            KmsKeySelfLink = "string",
            Mode = "string",
        },
    },
    Labels = 
    {
        { "string", "string" },
    },
    NetworkInterfaces = new[]
    {
        new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceArgs
        {
            AccessConfigs = new[]
            {
                new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceAccessConfigArgs
                {
                    NatIp = "string",
                    NetworkTier = "string",
                    PublicPtrDomainName = "string",
                    SecurityPolicy = "string",
                },
            },
            AliasIpRanges = new[]
            {
                new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs
                {
                    IpCidrRange = "string",
                    SubnetworkRangeName = "string",
                },
            },
            InternalIpv6PrefixLength = 0,
            Ipv6AccessConfigs = new[]
            {
                new Gcp.Compute.Inputs.InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs
                {
                    NetworkTier = "string",
                    ExternalIpv6 = "string",
                    ExternalIpv6PrefixLength = "string",
                    Name = "string",
                    PublicPtrDomainName = "string",
                    SecurityPolicy = "string",
                },
            },
            Ipv6AccessType = "string",
            Ipv6Address = "string",
            Name = "string",
            Network = "string",
            NetworkAttachment = "string",
            NetworkIp = "string",
            NicType = "string",
            QueueCount = 0,
            SecurityPolicy = "string",
            StackType = "string",
            Subnetwork = "string",
            SubnetworkProject = "string",
        },
    },
    NetworkPerformanceConfig = new Gcp.Compute.Inputs.InstanceFromTemplateNetworkPerformanceConfigArgs
    {
        TotalEgressBandwidthTier = "string",
    },
    Params = new Gcp.Compute.Inputs.InstanceFromTemplateParamsArgs
    {
        ResourceManagerTags = 
        {
            { "string", "string" },
        },
    },
    PartnerMetadata = 
    {
        { "string", "string" },
    },
    Project = "string",
    ReservationAffinity = new Gcp.Compute.Inputs.InstanceFromTemplateReservationAffinityArgs
    {
        Type = "string",
        SpecificReservation = new Gcp.Compute.Inputs.InstanceFromTemplateReservationAffinitySpecificReservationArgs
        {
            Key = "string",
            Values = new[]
            {
                "string",
            },
        },
    },
    ResourcePolicies = "string",
    Scheduling = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingArgs
    {
        AutomaticRestart = false,
        AvailabilityDomain = 0,
        GracefulShutdown = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingGracefulShutdownArgs
        {
            Enabled = false,
            MaxDuration = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingGracefulShutdownMaxDurationArgs
            {
                Seconds = 0,
                Nanos = 0,
            },
        },
        HostErrorTimeoutSeconds = 0,
        InstanceTerminationAction = "string",
        LocalSsdRecoveryTimeout = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs
        {
            Seconds = 0,
            Nanos = 0,
        },
        MaintenanceInterval = "string",
        MaxRunDuration = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingMaxRunDurationArgs
        {
            Seconds = 0,
            Nanos = 0,
        },
        MinNodeCpus = 0,
        NodeAffinities = new[]
        {
            new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingNodeAffinityArgs
            {
                Key = "string",
                Operator = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
        OnHostMaintenance = "string",
        OnInstanceStopAction = new Gcp.Compute.Inputs.InstanceFromTemplateSchedulingOnInstanceStopActionArgs
        {
            DiscardLocalSsd = false,
        },
        Preemptible = false,
        ProvisioningModel = "string",
        TerminationTime = "string",
    },
    ScratchDisks = new[]
    {
        new Gcp.Compute.Inputs.InstanceFromTemplateScratchDiskArgs
        {
            Interface = "string",
            DeviceName = "string",
            Size = 0,
        },
    },
    ServiceAccount = new Gcp.Compute.Inputs.InstanceFromTemplateServiceAccountArgs
    {
        Scopes = new[]
        {
            "string",
        },
        Email = "string",
    },
    ShieldedInstanceConfig = new Gcp.Compute.Inputs.InstanceFromTemplateShieldedInstanceConfigArgs
    {
        EnableIntegrityMonitoring = false,
        EnableSecureBoot = false,
        EnableVtpm = false,
    },
    AllowStoppingForUpdate = false,
    Tags = new[]
    {
        "string",
    },
    Zone = "string",
});
Copy
example, err := compute.NewInstanceFromTemplate(ctx, "instanceFromTemplateResource", &compute.InstanceFromTemplateArgs{
	SourceInstanceTemplate: pulumi.String("string"),
	Metadata: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	DesiredStatus: pulumi.String("string"),
	BootDisk: &compute.InstanceFromTemplateBootDiskArgs{
		AutoDelete:                   pulumi.Bool(false),
		DeviceName:                   pulumi.String("string"),
		DiskEncryptionKeyRaw:         pulumi.String("string"),
		DiskEncryptionKeyRsa:         pulumi.String("string"),
		DiskEncryptionKeySha256:      pulumi.String("string"),
		DiskEncryptionServiceAccount: pulumi.String("string"),
		GuestOsFeatures: pulumi.StringArray{
			pulumi.String("string"),
		},
		InitializeParams: &compute.InstanceFromTemplateBootDiskInitializeParamsArgs{
			Architecture:              pulumi.String("string"),
			EnableConfidentialCompute: pulumi.Bool(false),
			Image:                     pulumi.String("string"),
			Labels: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			ProvisionedIops:       pulumi.Int(0),
			ProvisionedThroughput: pulumi.Int(0),
			ResourceManagerTags: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			ResourcePolicies: pulumi.String("string"),
			Size:             pulumi.Int(0),
			Snapshot:         pulumi.String("string"),
			SourceImageEncryptionKey: &compute.InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKeyArgs{
				KmsKeySelfLink:       pulumi.String("string"),
				KmsKeyServiceAccount: pulumi.String("string"),
				RawKey:               pulumi.String("string"),
				RsaEncryptedKey:      pulumi.String("string"),
				Sha256:               pulumi.String("string"),
			},
			SourceSnapshotEncryptionKey: &compute.InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKeyArgs{
				KmsKeySelfLink:       pulumi.String("string"),
				KmsKeyServiceAccount: pulumi.String("string"),
				RawKey:               pulumi.String("string"),
				RsaEncryptedKey:      pulumi.String("string"),
				Sha256:               pulumi.String("string"),
			},
			StoragePool: pulumi.String("string"),
			Type:        pulumi.String("string"),
		},
		Interface:      pulumi.String("string"),
		KmsKeySelfLink: pulumi.String("string"),
		Mode:           pulumi.String("string"),
		Source:         pulumi.String("string"),
	},
	MetadataStartupScript: pulumi.String("string"),
	ConfidentialInstanceConfig: &compute.InstanceFromTemplateConfidentialInstanceConfigArgs{
		ConfidentialInstanceType:  pulumi.String("string"),
		EnableConfidentialCompute: pulumi.Bool(false),
	},
	DeletionProtection: pulumi.Bool(false),
	Description:        pulumi.String("string"),
	MinCpuPlatform:     pulumi.String("string"),
	EnableDisplay:      pulumi.Bool(false),
	GuestAccelerators: compute.InstanceFromTemplateGuestAcceleratorArray{
		&compute.InstanceFromTemplateGuestAcceleratorArgs{
			Count: pulumi.Int(0),
			Type:  pulumi.String("string"),
		},
	},
	Hostname: pulumi.String("string"),
	InstanceEncryptionKey: &compute.InstanceFromTemplateInstanceEncryptionKeyArgs{
		KmsKeySelfLink:       pulumi.String("string"),
		KmsKeyServiceAccount: pulumi.String("string"),
		Sha256:               pulumi.String("string"),
	},
	KeyRevocationActionType: pulumi.String("string"),
	Name:                    pulumi.String("string"),
	MachineType:             pulumi.String("string"),
	AdvancedMachineFeatures: &compute.InstanceFromTemplateAdvancedMachineFeaturesArgs{
		EnableNestedVirtualization: pulumi.Bool(false),
		EnableUefiNetworking:       pulumi.Bool(false),
		PerformanceMonitoringUnit:  pulumi.String("string"),
		ThreadsPerCore:             pulumi.Int(0),
		TurboMode:                  pulumi.String("string"),
		VisibleCoreCount:           pulumi.Int(0),
	},
	CanIpForward: pulumi.Bool(false),
	AttachedDisks: compute.InstanceFromTemplateAttachedDiskArray{
		&compute.InstanceFromTemplateAttachedDiskArgs{
			Source:                       pulumi.String("string"),
			DeviceName:                   pulumi.String("string"),
			DiskEncryptionKeyRaw:         pulumi.String("string"),
			DiskEncryptionKeyRsa:         pulumi.String("string"),
			DiskEncryptionKeySha256:      pulumi.String("string"),
			DiskEncryptionServiceAccount: pulumi.String("string"),
			KmsKeySelfLink:               pulumi.String("string"),
			Mode:                         pulumi.String("string"),
		},
	},
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	NetworkInterfaces: compute.InstanceFromTemplateNetworkInterfaceArray{
		&compute.InstanceFromTemplateNetworkInterfaceArgs{
			AccessConfigs: compute.InstanceFromTemplateNetworkInterfaceAccessConfigArray{
				&compute.InstanceFromTemplateNetworkInterfaceAccessConfigArgs{
					NatIp:               pulumi.String("string"),
					NetworkTier:         pulumi.String("string"),
					PublicPtrDomainName: pulumi.String("string"),
					SecurityPolicy:      pulumi.String("string"),
				},
			},
			AliasIpRanges: compute.InstanceFromTemplateNetworkInterfaceAliasIpRangeArray{
				&compute.InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs{
					IpCidrRange:         pulumi.String("string"),
					SubnetworkRangeName: pulumi.String("string"),
				},
			},
			InternalIpv6PrefixLength: pulumi.Int(0),
			Ipv6AccessConfigs: compute.InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArray{
				&compute.InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs{
					NetworkTier:              pulumi.String("string"),
					ExternalIpv6:             pulumi.String("string"),
					ExternalIpv6PrefixLength: pulumi.String("string"),
					Name:                     pulumi.String("string"),
					PublicPtrDomainName:      pulumi.String("string"),
					SecurityPolicy:           pulumi.String("string"),
				},
			},
			Ipv6AccessType:    pulumi.String("string"),
			Ipv6Address:       pulumi.String("string"),
			Name:              pulumi.String("string"),
			Network:           pulumi.String("string"),
			NetworkAttachment: pulumi.String("string"),
			NetworkIp:         pulumi.String("string"),
			NicType:           pulumi.String("string"),
			QueueCount:        pulumi.Int(0),
			SecurityPolicy:    pulumi.String("string"),
			StackType:         pulumi.String("string"),
			Subnetwork:        pulumi.String("string"),
			SubnetworkProject: pulumi.String("string"),
		},
	},
	NetworkPerformanceConfig: &compute.InstanceFromTemplateNetworkPerformanceConfigArgs{
		TotalEgressBandwidthTier: pulumi.String("string"),
	},
	Params: &compute.InstanceFromTemplateParamsArgs{
		ResourceManagerTags: pulumi.StringMap{
			"string": pulumi.String("string"),
		},
	},
	PartnerMetadata: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Project: pulumi.String("string"),
	ReservationAffinity: &compute.InstanceFromTemplateReservationAffinityArgs{
		Type: pulumi.String("string"),
		SpecificReservation: &compute.InstanceFromTemplateReservationAffinitySpecificReservationArgs{
			Key: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	ResourcePolicies: pulumi.String("string"),
	Scheduling: &compute.InstanceFromTemplateSchedulingArgs{
		AutomaticRestart:   pulumi.Bool(false),
		AvailabilityDomain: pulumi.Int(0),
		GracefulShutdown: &compute.InstanceFromTemplateSchedulingGracefulShutdownArgs{
			Enabled: pulumi.Bool(false),
			MaxDuration: &compute.InstanceFromTemplateSchedulingGracefulShutdownMaxDurationArgs{
				Seconds: pulumi.Int(0),
				Nanos:   pulumi.Int(0),
			},
		},
		HostErrorTimeoutSeconds:   pulumi.Int(0),
		InstanceTerminationAction: pulumi.String("string"),
		LocalSsdRecoveryTimeout: &compute.InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs{
			Seconds: pulumi.Int(0),
			Nanos:   pulumi.Int(0),
		},
		MaintenanceInterval: pulumi.String("string"),
		MaxRunDuration: &compute.InstanceFromTemplateSchedulingMaxRunDurationArgs{
			Seconds: pulumi.Int(0),
			Nanos:   pulumi.Int(0),
		},
		MinNodeCpus: pulumi.Int(0),
		NodeAffinities: compute.InstanceFromTemplateSchedulingNodeAffinityArray{
			&compute.InstanceFromTemplateSchedulingNodeAffinityArgs{
				Key:      pulumi.String("string"),
				Operator: pulumi.String("string"),
				Values: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		OnHostMaintenance: pulumi.String("string"),
		OnInstanceStopAction: &compute.InstanceFromTemplateSchedulingOnInstanceStopActionArgs{
			DiscardLocalSsd: pulumi.Bool(false),
		},
		Preemptible:       pulumi.Bool(false),
		ProvisioningModel: pulumi.String("string"),
		TerminationTime:   pulumi.String("string"),
	},
	ScratchDisks: compute.InstanceFromTemplateScratchDiskArray{
		&compute.InstanceFromTemplateScratchDiskArgs{
			Interface:  pulumi.String("string"),
			DeviceName: pulumi.String("string"),
			Size:       pulumi.Int(0),
		},
	},
	ServiceAccount: &compute.InstanceFromTemplateServiceAccountArgs{
		Scopes: pulumi.StringArray{
			pulumi.String("string"),
		},
		Email: pulumi.String("string"),
	},
	ShieldedInstanceConfig: &compute.InstanceFromTemplateShieldedInstanceConfigArgs{
		EnableIntegrityMonitoring: pulumi.Bool(false),
		EnableSecureBoot:          pulumi.Bool(false),
		EnableVtpm:                pulumi.Bool(false),
	},
	AllowStoppingForUpdate: pulumi.Bool(false),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	Zone: pulumi.String("string"),
})
Copy
var instanceFromTemplateResource = new InstanceFromTemplate("instanceFromTemplateResource", InstanceFromTemplateArgs.builder()
    .sourceInstanceTemplate("string")
    .metadata(Map.of("string", "string"))
    .desiredStatus("string")
    .bootDisk(InstanceFromTemplateBootDiskArgs.builder()
        .autoDelete(false)
        .deviceName("string")
        .diskEncryptionKeyRaw("string")
        .diskEncryptionKeyRsa("string")
        .diskEncryptionKeySha256("string")
        .diskEncryptionServiceAccount("string")
        .guestOsFeatures("string")
        .initializeParams(InstanceFromTemplateBootDiskInitializeParamsArgs.builder()
            .architecture("string")
            .enableConfidentialCompute(false)
            .image("string")
            .labels(Map.of("string", "string"))
            .provisionedIops(0)
            .provisionedThroughput(0)
            .resourceManagerTags(Map.of("string", "string"))
            .resourcePolicies("string")
            .size(0)
            .snapshot("string")
            .sourceImageEncryptionKey(InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKeyArgs.builder()
                .kmsKeySelfLink("string")
                .kmsKeyServiceAccount("string")
                .rawKey("string")
                .rsaEncryptedKey("string")
                .sha256("string")
                .build())
            .sourceSnapshotEncryptionKey(InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKeyArgs.builder()
                .kmsKeySelfLink("string")
                .kmsKeyServiceAccount("string")
                .rawKey("string")
                .rsaEncryptedKey("string")
                .sha256("string")
                .build())
            .storagePool("string")
            .type("string")
            .build())
        .interface_("string")
        .kmsKeySelfLink("string")
        .mode("string")
        .source("string")
        .build())
    .metadataStartupScript("string")
    .confidentialInstanceConfig(InstanceFromTemplateConfidentialInstanceConfigArgs.builder()
        .confidentialInstanceType("string")
        .enableConfidentialCompute(false)
        .build())
    .deletionProtection(false)
    .description("string")
    .minCpuPlatform("string")
    .enableDisplay(false)
    .guestAccelerators(InstanceFromTemplateGuestAcceleratorArgs.builder()
        .count(0)
        .type("string")
        .build())
    .hostname("string")
    .instanceEncryptionKey(InstanceFromTemplateInstanceEncryptionKeyArgs.builder()
        .kmsKeySelfLink("string")
        .kmsKeyServiceAccount("string")
        .sha256("string")
        .build())
    .keyRevocationActionType("string")
    .name("string")
    .machineType("string")
    .advancedMachineFeatures(InstanceFromTemplateAdvancedMachineFeaturesArgs.builder()
        .enableNestedVirtualization(false)
        .enableUefiNetworking(false)
        .performanceMonitoringUnit("string")
        .threadsPerCore(0)
        .turboMode("string")
        .visibleCoreCount(0)
        .build())
    .canIpForward(false)
    .attachedDisks(InstanceFromTemplateAttachedDiskArgs.builder()
        .source("string")
        .deviceName("string")
        .diskEncryptionKeyRaw("string")
        .diskEncryptionKeyRsa("string")
        .diskEncryptionKeySha256("string")
        .diskEncryptionServiceAccount("string")
        .kmsKeySelfLink("string")
        .mode("string")
        .build())
    .labels(Map.of("string", "string"))
    .networkInterfaces(InstanceFromTemplateNetworkInterfaceArgs.builder()
        .accessConfigs(InstanceFromTemplateNetworkInterfaceAccessConfigArgs.builder()
            .natIp("string")
            .networkTier("string")
            .publicPtrDomainName("string")
            .securityPolicy("string")
            .build())
        .aliasIpRanges(InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs.builder()
            .ipCidrRange("string")
            .subnetworkRangeName("string")
            .build())
        .internalIpv6PrefixLength(0)
        .ipv6AccessConfigs(InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs.builder()
            .networkTier("string")
            .externalIpv6("string")
            .externalIpv6PrefixLength("string")
            .name("string")
            .publicPtrDomainName("string")
            .securityPolicy("string")
            .build())
        .ipv6AccessType("string")
        .ipv6Address("string")
        .name("string")
        .network("string")
        .networkAttachment("string")
        .networkIp("string")
        .nicType("string")
        .queueCount(0)
        .securityPolicy("string")
        .stackType("string")
        .subnetwork("string")
        .subnetworkProject("string")
        .build())
    .networkPerformanceConfig(InstanceFromTemplateNetworkPerformanceConfigArgs.builder()
        .totalEgressBandwidthTier("string")
        .build())
    .params(InstanceFromTemplateParamsArgs.builder()
        .resourceManagerTags(Map.of("string", "string"))
        .build())
    .partnerMetadata(Map.of("string", "string"))
    .project("string")
    .reservationAffinity(InstanceFromTemplateReservationAffinityArgs.builder()
        .type("string")
        .specificReservation(InstanceFromTemplateReservationAffinitySpecificReservationArgs.builder()
            .key("string")
            .values("string")
            .build())
        .build())
    .resourcePolicies("string")
    .scheduling(InstanceFromTemplateSchedulingArgs.builder()
        .automaticRestart(false)
        .availabilityDomain(0)
        .gracefulShutdown(InstanceFromTemplateSchedulingGracefulShutdownArgs.builder()
            .enabled(false)
            .maxDuration(InstanceFromTemplateSchedulingGracefulShutdownMaxDurationArgs.builder()
                .seconds(0)
                .nanos(0)
                .build())
            .build())
        .hostErrorTimeoutSeconds(0)
        .instanceTerminationAction("string")
        .localSsdRecoveryTimeout(InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs.builder()
            .seconds(0)
            .nanos(0)
            .build())
        .maintenanceInterval("string")
        .maxRunDuration(InstanceFromTemplateSchedulingMaxRunDurationArgs.builder()
            .seconds(0)
            .nanos(0)
            .build())
        .minNodeCpus(0)
        .nodeAffinities(InstanceFromTemplateSchedulingNodeAffinityArgs.builder()
            .key("string")
            .operator("string")
            .values("string")
            .build())
        .onHostMaintenance("string")
        .onInstanceStopAction(InstanceFromTemplateSchedulingOnInstanceStopActionArgs.builder()
            .discardLocalSsd(false)
            .build())
        .preemptible(false)
        .provisioningModel("string")
        .terminationTime("string")
        .build())
    .scratchDisks(InstanceFromTemplateScratchDiskArgs.builder()
        .interface_("string")
        .deviceName("string")
        .size(0)
        .build())
    .serviceAccount(InstanceFromTemplateServiceAccountArgs.builder()
        .scopes("string")
        .email("string")
        .build())
    .shieldedInstanceConfig(InstanceFromTemplateShieldedInstanceConfigArgs.builder()
        .enableIntegrityMonitoring(false)
        .enableSecureBoot(false)
        .enableVtpm(false)
        .build())
    .allowStoppingForUpdate(false)
    .tags("string")
    .zone("string")
    .build());
Copy
instance_from_template_resource = gcp.compute.InstanceFromTemplate("instanceFromTemplateResource",
    source_instance_template="string",
    metadata={
        "string": "string",
    },
    desired_status="string",
    boot_disk={
        "auto_delete": False,
        "device_name": "string",
        "disk_encryption_key_raw": "string",
        "disk_encryption_key_rsa": "string",
        "disk_encryption_key_sha256": "string",
        "disk_encryption_service_account": "string",
        "guest_os_features": ["string"],
        "initialize_params": {
            "architecture": "string",
            "enable_confidential_compute": False,
            "image": "string",
            "labels": {
                "string": "string",
            },
            "provisioned_iops": 0,
            "provisioned_throughput": 0,
            "resource_manager_tags": {
                "string": "string",
            },
            "resource_policies": "string",
            "size": 0,
            "snapshot": "string",
            "source_image_encryption_key": {
                "kms_key_self_link": "string",
                "kms_key_service_account": "string",
                "raw_key": "string",
                "rsa_encrypted_key": "string",
                "sha256": "string",
            },
            "source_snapshot_encryption_key": {
                "kms_key_self_link": "string",
                "kms_key_service_account": "string",
                "raw_key": "string",
                "rsa_encrypted_key": "string",
                "sha256": "string",
            },
            "storage_pool": "string",
            "type": "string",
        },
        "interface": "string",
        "kms_key_self_link": "string",
        "mode": "string",
        "source": "string",
    },
    metadata_startup_script="string",
    confidential_instance_config={
        "confidential_instance_type": "string",
        "enable_confidential_compute": False,
    },
    deletion_protection=False,
    description="string",
    min_cpu_platform="string",
    enable_display=False,
    guest_accelerators=[{
        "count": 0,
        "type": "string",
    }],
    hostname="string",
    instance_encryption_key={
        "kms_key_self_link": "string",
        "kms_key_service_account": "string",
        "sha256": "string",
    },
    key_revocation_action_type="string",
    name="string",
    machine_type="string",
    advanced_machine_features={
        "enable_nested_virtualization": False,
        "enable_uefi_networking": False,
        "performance_monitoring_unit": "string",
        "threads_per_core": 0,
        "turbo_mode": "string",
        "visible_core_count": 0,
    },
    can_ip_forward=False,
    attached_disks=[{
        "source": "string",
        "device_name": "string",
        "disk_encryption_key_raw": "string",
        "disk_encryption_key_rsa": "string",
        "disk_encryption_key_sha256": "string",
        "disk_encryption_service_account": "string",
        "kms_key_self_link": "string",
        "mode": "string",
    }],
    labels={
        "string": "string",
    },
    network_interfaces=[{
        "access_configs": [{
            "nat_ip": "string",
            "network_tier": "string",
            "public_ptr_domain_name": "string",
            "security_policy": "string",
        }],
        "alias_ip_ranges": [{
            "ip_cidr_range": "string",
            "subnetwork_range_name": "string",
        }],
        "internal_ipv6_prefix_length": 0,
        "ipv6_access_configs": [{
            "network_tier": "string",
            "external_ipv6": "string",
            "external_ipv6_prefix_length": "string",
            "name": "string",
            "public_ptr_domain_name": "string",
            "security_policy": "string",
        }],
        "ipv6_access_type": "string",
        "ipv6_address": "string",
        "name": "string",
        "network": "string",
        "network_attachment": "string",
        "network_ip": "string",
        "nic_type": "string",
        "queue_count": 0,
        "security_policy": "string",
        "stack_type": "string",
        "subnetwork": "string",
        "subnetwork_project": "string",
    }],
    network_performance_config={
        "total_egress_bandwidth_tier": "string",
    },
    params={
        "resource_manager_tags": {
            "string": "string",
        },
    },
    partner_metadata={
        "string": "string",
    },
    project="string",
    reservation_affinity={
        "type": "string",
        "specific_reservation": {
            "key": "string",
            "values": ["string"],
        },
    },
    resource_policies="string",
    scheduling={
        "automatic_restart": False,
        "availability_domain": 0,
        "graceful_shutdown": {
            "enabled": False,
            "max_duration": {
                "seconds": 0,
                "nanos": 0,
            },
        },
        "host_error_timeout_seconds": 0,
        "instance_termination_action": "string",
        "local_ssd_recovery_timeout": {
            "seconds": 0,
            "nanos": 0,
        },
        "maintenance_interval": "string",
        "max_run_duration": {
            "seconds": 0,
            "nanos": 0,
        },
        "min_node_cpus": 0,
        "node_affinities": [{
            "key": "string",
            "operator": "string",
            "values": ["string"],
        }],
        "on_host_maintenance": "string",
        "on_instance_stop_action": {
            "discard_local_ssd": False,
        },
        "preemptible": False,
        "provisioning_model": "string",
        "termination_time": "string",
    },
    scratch_disks=[{
        "interface": "string",
        "device_name": "string",
        "size": 0,
    }],
    service_account={
        "scopes": ["string"],
        "email": "string",
    },
    shielded_instance_config={
        "enable_integrity_monitoring": False,
        "enable_secure_boot": False,
        "enable_vtpm": False,
    },
    allow_stopping_for_update=False,
    tags=["string"],
    zone="string")
Copy
const instanceFromTemplateResource = new gcp.compute.InstanceFromTemplate("instanceFromTemplateResource", {
    sourceInstanceTemplate: "string",
    metadata: {
        string: "string",
    },
    desiredStatus: "string",
    bootDisk: {
        autoDelete: false,
        deviceName: "string",
        diskEncryptionKeyRaw: "string",
        diskEncryptionKeyRsa: "string",
        diskEncryptionKeySha256: "string",
        diskEncryptionServiceAccount: "string",
        guestOsFeatures: ["string"],
        initializeParams: {
            architecture: "string",
            enableConfidentialCompute: false,
            image: "string",
            labels: {
                string: "string",
            },
            provisionedIops: 0,
            provisionedThroughput: 0,
            resourceManagerTags: {
                string: "string",
            },
            resourcePolicies: "string",
            size: 0,
            snapshot: "string",
            sourceImageEncryptionKey: {
                kmsKeySelfLink: "string",
                kmsKeyServiceAccount: "string",
                rawKey: "string",
                rsaEncryptedKey: "string",
                sha256: "string",
            },
            sourceSnapshotEncryptionKey: {
                kmsKeySelfLink: "string",
                kmsKeyServiceAccount: "string",
                rawKey: "string",
                rsaEncryptedKey: "string",
                sha256: "string",
            },
            storagePool: "string",
            type: "string",
        },
        "interface": "string",
        kmsKeySelfLink: "string",
        mode: "string",
        source: "string",
    },
    metadataStartupScript: "string",
    confidentialInstanceConfig: {
        confidentialInstanceType: "string",
        enableConfidentialCompute: false,
    },
    deletionProtection: false,
    description: "string",
    minCpuPlatform: "string",
    enableDisplay: false,
    guestAccelerators: [{
        count: 0,
        type: "string",
    }],
    hostname: "string",
    instanceEncryptionKey: {
        kmsKeySelfLink: "string",
        kmsKeyServiceAccount: "string",
        sha256: "string",
    },
    keyRevocationActionType: "string",
    name: "string",
    machineType: "string",
    advancedMachineFeatures: {
        enableNestedVirtualization: false,
        enableUefiNetworking: false,
        performanceMonitoringUnit: "string",
        threadsPerCore: 0,
        turboMode: "string",
        visibleCoreCount: 0,
    },
    canIpForward: false,
    attachedDisks: [{
        source: "string",
        deviceName: "string",
        diskEncryptionKeyRaw: "string",
        diskEncryptionKeyRsa: "string",
        diskEncryptionKeySha256: "string",
        diskEncryptionServiceAccount: "string",
        kmsKeySelfLink: "string",
        mode: "string",
    }],
    labels: {
        string: "string",
    },
    networkInterfaces: [{
        accessConfigs: [{
            natIp: "string",
            networkTier: "string",
            publicPtrDomainName: "string",
            securityPolicy: "string",
        }],
        aliasIpRanges: [{
            ipCidrRange: "string",
            subnetworkRangeName: "string",
        }],
        internalIpv6PrefixLength: 0,
        ipv6AccessConfigs: [{
            networkTier: "string",
            externalIpv6: "string",
            externalIpv6PrefixLength: "string",
            name: "string",
            publicPtrDomainName: "string",
            securityPolicy: "string",
        }],
        ipv6AccessType: "string",
        ipv6Address: "string",
        name: "string",
        network: "string",
        networkAttachment: "string",
        networkIp: "string",
        nicType: "string",
        queueCount: 0,
        securityPolicy: "string",
        stackType: "string",
        subnetwork: "string",
        subnetworkProject: "string",
    }],
    networkPerformanceConfig: {
        totalEgressBandwidthTier: "string",
    },
    params: {
        resourceManagerTags: {
            string: "string",
        },
    },
    partnerMetadata: {
        string: "string",
    },
    project: "string",
    reservationAffinity: {
        type: "string",
        specificReservation: {
            key: "string",
            values: ["string"],
        },
    },
    resourcePolicies: "string",
    scheduling: {
        automaticRestart: false,
        availabilityDomain: 0,
        gracefulShutdown: {
            enabled: false,
            maxDuration: {
                seconds: 0,
                nanos: 0,
            },
        },
        hostErrorTimeoutSeconds: 0,
        instanceTerminationAction: "string",
        localSsdRecoveryTimeout: {
            seconds: 0,
            nanos: 0,
        },
        maintenanceInterval: "string",
        maxRunDuration: {
            seconds: 0,
            nanos: 0,
        },
        minNodeCpus: 0,
        nodeAffinities: [{
            key: "string",
            operator: "string",
            values: ["string"],
        }],
        onHostMaintenance: "string",
        onInstanceStopAction: {
            discardLocalSsd: false,
        },
        preemptible: false,
        provisioningModel: "string",
        terminationTime: "string",
    },
    scratchDisks: [{
        "interface": "string",
        deviceName: "string",
        size: 0,
    }],
    serviceAccount: {
        scopes: ["string"],
        email: "string",
    },
    shieldedInstanceConfig: {
        enableIntegrityMonitoring: false,
        enableSecureBoot: false,
        enableVtpm: false,
    },
    allowStoppingForUpdate: false,
    tags: ["string"],
    zone: "string",
});
Copy
type: gcp:compute:InstanceFromTemplate
properties:
    advancedMachineFeatures:
        enableNestedVirtualization: false
        enableUefiNetworking: false
        performanceMonitoringUnit: string
        threadsPerCore: 0
        turboMode: string
        visibleCoreCount: 0
    allowStoppingForUpdate: false
    attachedDisks:
        - deviceName: string
          diskEncryptionKeyRaw: string
          diskEncryptionKeyRsa: string
          diskEncryptionKeySha256: string
          diskEncryptionServiceAccount: string
          kmsKeySelfLink: string
          mode: string
          source: string
    bootDisk:
        autoDelete: false
        deviceName: string
        diskEncryptionKeyRaw: string
        diskEncryptionKeyRsa: string
        diskEncryptionKeySha256: string
        diskEncryptionServiceAccount: string
        guestOsFeatures:
            - string
        initializeParams:
            architecture: string
            enableConfidentialCompute: false
            image: string
            labels:
                string: string
            provisionedIops: 0
            provisionedThroughput: 0
            resourceManagerTags:
                string: string
            resourcePolicies: string
            size: 0
            snapshot: string
            sourceImageEncryptionKey:
                kmsKeySelfLink: string
                kmsKeyServiceAccount: string
                rawKey: string
                rsaEncryptedKey: string
                sha256: string
            sourceSnapshotEncryptionKey:
                kmsKeySelfLink: string
                kmsKeyServiceAccount: string
                rawKey: string
                rsaEncryptedKey: string
                sha256: string
            storagePool: string
            type: string
        interface: string
        kmsKeySelfLink: string
        mode: string
        source: string
    canIpForward: false
    confidentialInstanceConfig:
        confidentialInstanceType: string
        enableConfidentialCompute: false
    deletionProtection: false
    description: string
    desiredStatus: string
    enableDisplay: false
    guestAccelerators:
        - count: 0
          type: string
    hostname: string
    instanceEncryptionKey:
        kmsKeySelfLink: string
        kmsKeyServiceAccount: string
        sha256: string
    keyRevocationActionType: string
    labels:
        string: string
    machineType: string
    metadata:
        string: string
    metadataStartupScript: string
    minCpuPlatform: string
    name: string
    networkInterfaces:
        - accessConfigs:
            - natIp: string
              networkTier: string
              publicPtrDomainName: string
              securityPolicy: string
          aliasIpRanges:
            - ipCidrRange: string
              subnetworkRangeName: string
          internalIpv6PrefixLength: 0
          ipv6AccessConfigs:
            - externalIpv6: string
              externalIpv6PrefixLength: string
              name: string
              networkTier: string
              publicPtrDomainName: string
              securityPolicy: string
          ipv6AccessType: string
          ipv6Address: string
          name: string
          network: string
          networkAttachment: string
          networkIp: string
          nicType: string
          queueCount: 0
          securityPolicy: string
          stackType: string
          subnetwork: string
          subnetworkProject: string
    networkPerformanceConfig:
        totalEgressBandwidthTier: string
    params:
        resourceManagerTags:
            string: string
    partnerMetadata:
        string: string
    project: string
    reservationAffinity:
        specificReservation:
            key: string
            values:
                - string
        type: string
    resourcePolicies: string
    scheduling:
        automaticRestart: false
        availabilityDomain: 0
        gracefulShutdown:
            enabled: false
            maxDuration:
                nanos: 0
                seconds: 0
        hostErrorTimeoutSeconds: 0
        instanceTerminationAction: string
        localSsdRecoveryTimeout:
            nanos: 0
            seconds: 0
        maintenanceInterval: string
        maxRunDuration:
            nanos: 0
            seconds: 0
        minNodeCpus: 0
        nodeAffinities:
            - key: string
              operator: string
              values:
                - string
        onHostMaintenance: string
        onInstanceStopAction:
            discardLocalSsd: false
        preemptible: false
        provisioningModel: string
        terminationTime: string
    scratchDisks:
        - deviceName: string
          interface: string
          size: 0
    serviceAccount:
        email: string
        scopes:
            - string
    shieldedInstanceConfig:
        enableIntegrityMonitoring: false
        enableSecureBoot: false
        enableVtpm: false
    sourceInstanceTemplate: string
    tags:
        - string
    zone: string
Copy

InstanceFromTemplate Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The InstanceFromTemplate resource accepts the following input properties:

SourceInstanceTemplate
This property is required.
Changes to this property will trigger replacement.
string
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures
Controls for advanced machine-related behavior features.
AllowStoppingForUpdate bool
AttachedDisks List<InstanceFromTemplateAttachedDisk>
List of disks attached to the instance
BootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDisk
The boot disk for the instance.
CanIpForward bool
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
ConfidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfig
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
DeletionProtection bool
Whether deletion protection is enabled on this instance.
Description string
A brief description of the resource.
DesiredStatus string
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
EnableDisplay bool
Whether the instance has virtual displays enabled.
GuestAccelerators Changes to this property will trigger replacement. List<InstanceFromTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance.
Hostname Changes to this property will trigger replacement. string
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
InstanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKey
Encryption key used to provide data encryption on the given instance.
KeyRevocationActionType Changes to this property will trigger replacement. string
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
Labels Dictionary<string, string>
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
MachineType string
The machine type to create.
Metadata Dictionary<string, string>
Metadata key/value pairs made available within the instance.
MetadataStartupScript string
Metadata startup scripts made available within the instance.
MinCpuPlatform string
The minimum CPU platform specified for the VM instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
NetworkInterfaces Changes to this property will trigger replacement. List<InstanceFromTemplateNetworkInterface>
The networks attached to the instance.
NetworkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfig
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
Params Changes to this property will trigger replacement. InstanceFromTemplateParams
Stores additional params passed with the request, but not persisted as part of resource payload.
PartnerMetadata Dictionary<string, string>
Partner Metadata Map made available within the instance.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
ReservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinity
Specifies the reservations that this instance can consume from.
ResourcePolicies string
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
Scheduling InstanceFromTemplateScheduling
The scheduling strategy being used by the instance.
ScratchDisks Changes to this property will trigger replacement. List<InstanceFromTemplateScratchDisk>
The scratch disks attached to the instance.
ServiceAccount InstanceFromTemplateServiceAccount
The service account to attach to the instance.
ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig
The shielded vm config being used by the instance.
Tags List<string>
The list of tags attached to the instance.
Zone Changes to this property will trigger replacement. string

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

SourceInstanceTemplate
This property is required.
Changes to this property will trigger replacement.
string
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeaturesArgs
Controls for advanced machine-related behavior features.
AllowStoppingForUpdate bool
AttachedDisks []InstanceFromTemplateAttachedDiskArgs
List of disks attached to the instance
BootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDiskArgs
The boot disk for the instance.
CanIpForward bool
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
ConfidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfigArgs
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
DeletionProtection bool
Whether deletion protection is enabled on this instance.
Description string
A brief description of the resource.
DesiredStatus string
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
EnableDisplay bool
Whether the instance has virtual displays enabled.
GuestAccelerators Changes to this property will trigger replacement. []InstanceFromTemplateGuestAcceleratorArgs
List of the type and count of accelerator cards attached to the instance.
Hostname Changes to this property will trigger replacement. string
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
InstanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKeyArgs
Encryption key used to provide data encryption on the given instance.
KeyRevocationActionType Changes to this property will trigger replacement. string
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
Labels map[string]string
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
MachineType string
The machine type to create.
Metadata map[string]string
Metadata key/value pairs made available within the instance.
MetadataStartupScript string
Metadata startup scripts made available within the instance.
MinCpuPlatform string
The minimum CPU platform specified for the VM instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
NetworkInterfaces Changes to this property will trigger replacement. []InstanceFromTemplateNetworkInterfaceArgs
The networks attached to the instance.
NetworkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
Params Changes to this property will trigger replacement. InstanceFromTemplateParamsArgs
Stores additional params passed with the request, but not persisted as part of resource payload.
PartnerMetadata map[string]string
Partner Metadata Map made available within the instance.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
ReservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from.
ResourcePolicies string
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
Scheduling InstanceFromTemplateSchedulingArgs
The scheduling strategy being used by the instance.
ScratchDisks Changes to this property will trigger replacement. []InstanceFromTemplateScratchDiskArgs
The scratch disks attached to the instance.
ServiceAccount InstanceFromTemplateServiceAccountArgs
The service account to attach to the instance.
ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfigArgs
The shielded vm config being used by the instance.
Tags []string
The list of tags attached to the instance.
Zone Changes to this property will trigger replacement. string

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

sourceInstanceTemplate
This property is required.
Changes to this property will trigger replacement.
String
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures
Controls for advanced machine-related behavior features.
allowStoppingForUpdate Boolean
attachedDisks List<InstanceFromTemplateAttachedDisk>
List of disks attached to the instance
bootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDisk
The boot disk for the instance.
canIpForward Boolean
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfig
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
deletionProtection Boolean
Whether deletion protection is enabled on this instance.
description String
A brief description of the resource.
desiredStatus String
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
enableDisplay Boolean
Whether the instance has virtual displays enabled.
guestAccelerators Changes to this property will trigger replacement. List<InstanceFromTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. String
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKey
Encryption key used to provide data encryption on the given instance.
keyRevocationActionType Changes to this property will trigger replacement. String
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
labels Map<String,String>
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machineType String
The machine type to create.
metadata Map<String,String>
Metadata key/value pairs made available within the instance.
metadataStartupScript String
Metadata startup scripts made available within the instance.
minCpuPlatform String
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
networkInterfaces Changes to this property will trigger replacement. List<InstanceFromTemplateNetworkInterface>
The networks attached to the instance.
networkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfig
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. InstanceFromTemplateParams
Stores additional params passed with the request, but not persisted as part of resource payload.
partnerMetadata Map<String,String>
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
reservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinity
Specifies the reservations that this instance can consume from.
resourcePolicies String
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling InstanceFromTemplateScheduling
The scheduling strategy being used by the instance.
scratchDisks Changes to this property will trigger replacement. List<InstanceFromTemplateScratchDisk>
The scratch disks attached to the instance.
serviceAccount InstanceFromTemplateServiceAccount
The service account to attach to the instance.
shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig
The shielded vm config being used by the instance.
tags List<String>
The list of tags attached to the instance.
zone Changes to this property will trigger replacement. String

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

sourceInstanceTemplate
This property is required.
Changes to this property will trigger replacement.
string
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures
Controls for advanced machine-related behavior features.
allowStoppingForUpdate boolean
attachedDisks InstanceFromTemplateAttachedDisk[]
List of disks attached to the instance
bootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDisk
The boot disk for the instance.
canIpForward boolean
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfig
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
deletionProtection boolean
Whether deletion protection is enabled on this instance.
description string
A brief description of the resource.
desiredStatus string
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
enableDisplay boolean
Whether the instance has virtual displays enabled.
guestAccelerators Changes to this property will trigger replacement. InstanceFromTemplateGuestAccelerator[]
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. string
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKey
Encryption key used to provide data encryption on the given instance.
keyRevocationActionType Changes to this property will trigger replacement. string
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
labels {[key: string]: string}
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machineType string
The machine type to create.
metadata {[key: string]: string}
Metadata key/value pairs made available within the instance.
metadataStartupScript string
Metadata startup scripts made available within the instance.
minCpuPlatform string
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
networkInterfaces Changes to this property will trigger replacement. InstanceFromTemplateNetworkInterface[]
The networks attached to the instance.
networkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfig
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. InstanceFromTemplateParams
Stores additional params passed with the request, but not persisted as part of resource payload.
partnerMetadata {[key: string]: string}
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
reservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinity
Specifies the reservations that this instance can consume from.
resourcePolicies string
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling InstanceFromTemplateScheduling
The scheduling strategy being used by the instance.
scratchDisks Changes to this property will trigger replacement. InstanceFromTemplateScratchDisk[]
The scratch disks attached to the instance.
serviceAccount InstanceFromTemplateServiceAccount
The service account to attach to the instance.
shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig
The shielded vm config being used by the instance.
tags string[]
The list of tags attached to the instance.
zone Changes to this property will trigger replacement. string

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

source_instance_template
This property is required.
Changes to this property will trigger replacement.
str
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


advanced_machine_features InstanceFromTemplateAdvancedMachineFeaturesArgs
Controls for advanced machine-related behavior features.
allow_stopping_for_update bool
attached_disks Sequence[InstanceFromTemplateAttachedDiskArgs]
List of disks attached to the instance
boot_disk Changes to this property will trigger replacement. InstanceFromTemplateBootDiskArgs
The boot disk for the instance.
can_ip_forward bool
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidential_instance_config Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfigArgs
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
deletion_protection bool
Whether deletion protection is enabled on this instance.
description str
A brief description of the resource.
desired_status str
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
enable_display bool
Whether the instance has virtual displays enabled.
guest_accelerators Changes to this property will trigger replacement. Sequence[InstanceFromTemplateGuestAcceleratorArgs]
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. str
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instance_encryption_key Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKeyArgs
Encryption key used to provide data encryption on the given instance.
key_revocation_action_type Changes to this property will trigger replacement. str
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
labels Mapping[str, str]
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machine_type str
The machine type to create.
metadata Mapping[str, str]
Metadata key/value pairs made available within the instance.
metadata_startup_script str
Metadata startup scripts made available within the instance.
min_cpu_platform str
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
network_interfaces Changes to this property will trigger replacement. Sequence[InstanceFromTemplateNetworkInterfaceArgs]
The networks attached to the instance.
network_performance_config Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. InstanceFromTemplateParamsArgs
Stores additional params passed with the request, but not persisted as part of resource payload.
partner_metadata Mapping[str, str]
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
reservation_affinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from.
resource_policies str
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling InstanceFromTemplateSchedulingArgs
The scheduling strategy being used by the instance.
scratch_disks Changes to this property will trigger replacement. Sequence[InstanceFromTemplateScratchDiskArgs]
The scratch disks attached to the instance.
service_account InstanceFromTemplateServiceAccountArgs
The service account to attach to the instance.
shielded_instance_config InstanceFromTemplateShieldedInstanceConfigArgs
The shielded vm config being used by the instance.
tags Sequence[str]
The list of tags attached to the instance.
zone Changes to this property will trigger replacement. str

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

sourceInstanceTemplate
This property is required.
Changes to this property will trigger replacement.
String
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


advancedMachineFeatures Property Map
Controls for advanced machine-related behavior features.
allowStoppingForUpdate Boolean
attachedDisks List<Property Map>
List of disks attached to the instance
bootDisk Changes to this property will trigger replacement. Property Map
The boot disk for the instance.
canIpForward Boolean
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidentialInstanceConfig Changes to this property will trigger replacement. Property Map
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
deletionProtection Boolean
Whether deletion protection is enabled on this instance.
description String
A brief description of the resource.
desiredStatus String
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
enableDisplay Boolean
Whether the instance has virtual displays enabled.
guestAccelerators Changes to this property will trigger replacement. List<Property Map>
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. String
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instanceEncryptionKey Changes to this property will trigger replacement. Property Map
Encryption key used to provide data encryption on the given instance.
keyRevocationActionType Changes to this property will trigger replacement. String
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
labels Map<String>
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machineType String
The machine type to create.
metadata Map<String>
Metadata key/value pairs made available within the instance.
metadataStartupScript String
Metadata startup scripts made available within the instance.
minCpuPlatform String
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
networkInterfaces Changes to this property will trigger replacement. List<Property Map>
The networks attached to the instance.
networkPerformanceConfig Changes to this property will trigger replacement. Property Map
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. Property Map
Stores additional params passed with the request, but not persisted as part of resource payload.
partnerMetadata Map<String>
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
reservationAffinity Changes to this property will trigger replacement. Property Map
Specifies the reservations that this instance can consume from.
resourcePolicies String
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling Property Map
The scheduling strategy being used by the instance.
scratchDisks Changes to this property will trigger replacement. List<Property Map>
The scratch disks attached to the instance.
serviceAccount Property Map
The service account to attach to the instance.
shieldedInstanceConfig Property Map
The shielded vm config being used by the instance.
tags List<String>
The list of tags attached to the instance.
zone Changes to this property will trigger replacement. String

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

Outputs

All input properties are implicitly available as output properties. Additionally, the InstanceFromTemplate resource produces the following output properties:

CpuPlatform string
The CPU platform used by this instance.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
CurrentStatus string
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
EffectiveLabels Dictionary<string, string>
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
The server-assigned unique identifier of this instance.
LabelFingerprint string
The unique fingerprint of the labels.
MetadataFingerprint string
The unique fingerprint of the metadata.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
SelfLink string
The URI of the created resource.
TagsFingerprint string
The unique fingerprint of the tags.
CpuPlatform string
The CPU platform used by this instance.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
CurrentStatus string
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
EffectiveLabels map[string]string
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
The server-assigned unique identifier of this instance.
LabelFingerprint string
The unique fingerprint of the labels.
MetadataFingerprint string
The unique fingerprint of the metadata.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
SelfLink string
The URI of the created resource.
TagsFingerprint string
The unique fingerprint of the tags.
cpuPlatform String
The CPU platform used by this instance.
creationTimestamp String
Creation timestamp in RFC3339 text format.
currentStatus String
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
effectiveLabels Map<String,String>
id String
The provider-assigned unique ID for this managed resource.
instanceId String
The server-assigned unique identifier of this instance.
labelFingerprint String
The unique fingerprint of the labels.
metadataFingerprint String
The unique fingerprint of the metadata.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
selfLink String
The URI of the created resource.
tagsFingerprint String
The unique fingerprint of the tags.
cpuPlatform string
The CPU platform used by this instance.
creationTimestamp string
Creation timestamp in RFC3339 text format.
currentStatus string
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
effectiveLabels {[key: string]: string}
id string
The provider-assigned unique ID for this managed resource.
instanceId string
The server-assigned unique identifier of this instance.
labelFingerprint string
The unique fingerprint of the labels.
metadataFingerprint string
The unique fingerprint of the metadata.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
selfLink string
The URI of the created resource.
tagsFingerprint string
The unique fingerprint of the tags.
cpu_platform str
The CPU platform used by this instance.
creation_timestamp str
Creation timestamp in RFC3339 text format.
current_status str
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
effective_labels Mapping[str, str]
id str
The provider-assigned unique ID for this managed resource.
instance_id str
The server-assigned unique identifier of this instance.
label_fingerprint str
The unique fingerprint of the labels.
metadata_fingerprint str
The unique fingerprint of the metadata.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
self_link str
The URI of the created resource.
tags_fingerprint str
The unique fingerprint of the tags.
cpuPlatform String
The CPU platform used by this instance.
creationTimestamp String
Creation timestamp in RFC3339 text format.
currentStatus String
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
effectiveLabels Map<String>
id String
The provider-assigned unique ID for this managed resource.
instanceId String
The server-assigned unique identifier of this instance.
labelFingerprint String
The unique fingerprint of the labels.
metadataFingerprint String
The unique fingerprint of the metadata.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
selfLink String
The URI of the created resource.
tagsFingerprint String
The unique fingerprint of the tags.

Look up Existing InstanceFromTemplate Resource

Get an existing InstanceFromTemplate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: InstanceFromTemplateState, opts?: CustomResourceOptions): InstanceFromTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        advanced_machine_features: Optional[InstanceFromTemplateAdvancedMachineFeaturesArgs] = None,
        allow_stopping_for_update: Optional[bool] = None,
        attached_disks: Optional[Sequence[InstanceFromTemplateAttachedDiskArgs]] = None,
        boot_disk: Optional[InstanceFromTemplateBootDiskArgs] = None,
        can_ip_forward: Optional[bool] = None,
        confidential_instance_config: Optional[InstanceFromTemplateConfidentialInstanceConfigArgs] = None,
        cpu_platform: Optional[str] = None,
        creation_timestamp: Optional[str] = None,
        current_status: Optional[str] = None,
        deletion_protection: Optional[bool] = None,
        description: Optional[str] = None,
        desired_status: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        enable_display: Optional[bool] = None,
        guest_accelerators: Optional[Sequence[InstanceFromTemplateGuestAcceleratorArgs]] = None,
        hostname: Optional[str] = None,
        instance_encryption_key: Optional[InstanceFromTemplateInstanceEncryptionKeyArgs] = None,
        instance_id: Optional[str] = None,
        key_revocation_action_type: Optional[str] = None,
        label_fingerprint: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        machine_type: Optional[str] = None,
        metadata: Optional[Mapping[str, str]] = None,
        metadata_fingerprint: Optional[str] = None,
        metadata_startup_script: Optional[str] = None,
        min_cpu_platform: Optional[str] = None,
        name: Optional[str] = None,
        network_interfaces: Optional[Sequence[InstanceFromTemplateNetworkInterfaceArgs]] = None,
        network_performance_config: Optional[InstanceFromTemplateNetworkPerformanceConfigArgs] = None,
        params: Optional[InstanceFromTemplateParamsArgs] = None,
        partner_metadata: Optional[Mapping[str, str]] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        reservation_affinity: Optional[InstanceFromTemplateReservationAffinityArgs] = None,
        resource_policies: Optional[str] = None,
        scheduling: Optional[InstanceFromTemplateSchedulingArgs] = None,
        scratch_disks: Optional[Sequence[InstanceFromTemplateScratchDiskArgs]] = None,
        self_link: Optional[str] = None,
        service_account: Optional[InstanceFromTemplateServiceAccountArgs] = None,
        shielded_instance_config: Optional[InstanceFromTemplateShieldedInstanceConfigArgs] = None,
        source_instance_template: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        tags_fingerprint: Optional[str] = None,
        zone: Optional[str] = None) -> InstanceFromTemplate
func GetInstanceFromTemplate(ctx *Context, name string, id IDInput, state *InstanceFromTemplateState, opts ...ResourceOption) (*InstanceFromTemplate, error)
public static InstanceFromTemplate Get(string name, Input<string> id, InstanceFromTemplateState? state, CustomResourceOptions? opts = null)
public static InstanceFromTemplate get(String name, Output<String> id, InstanceFromTemplateState state, CustomResourceOptions options)
resources:  _:    type: gcp:compute:InstanceFromTemplate    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures
Controls for advanced machine-related behavior features.
AllowStoppingForUpdate bool
AttachedDisks List<InstanceFromTemplateAttachedDisk>
List of disks attached to the instance
BootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDisk
The boot disk for the instance.
CanIpForward bool
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
ConfidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfig
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
CpuPlatform string
The CPU platform used by this instance.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
CurrentStatus string
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
DeletionProtection bool
Whether deletion protection is enabled on this instance.
Description string
A brief description of the resource.
DesiredStatus string
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
EffectiveLabels Dictionary<string, string>
EnableDisplay bool
Whether the instance has virtual displays enabled.
GuestAccelerators Changes to this property will trigger replacement. List<InstanceFromTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance.
Hostname Changes to this property will trigger replacement. string
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
InstanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKey
Encryption key used to provide data encryption on the given instance.
InstanceId string
The server-assigned unique identifier of this instance.
KeyRevocationActionType Changes to this property will trigger replacement. string
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
LabelFingerprint string
The unique fingerprint of the labels.
Labels Dictionary<string, string>
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
MachineType string
The machine type to create.
Metadata Dictionary<string, string>
Metadata key/value pairs made available within the instance.
MetadataFingerprint string
The unique fingerprint of the metadata.
MetadataStartupScript string
Metadata startup scripts made available within the instance.
MinCpuPlatform string
The minimum CPU platform specified for the VM instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
NetworkInterfaces Changes to this property will trigger replacement. List<InstanceFromTemplateNetworkInterface>
The networks attached to the instance.
NetworkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfig
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
Params Changes to this property will trigger replacement. InstanceFromTemplateParams
Stores additional params passed with the request, but not persisted as part of resource payload.
PartnerMetadata Dictionary<string, string>
Partner Metadata Map made available within the instance.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
ReservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinity
Specifies the reservations that this instance can consume from.
ResourcePolicies string
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
Scheduling InstanceFromTemplateScheduling
The scheduling strategy being used by the instance.
ScratchDisks Changes to this property will trigger replacement. List<InstanceFromTemplateScratchDisk>
The scratch disks attached to the instance.
SelfLink string
The URI of the created resource.
ServiceAccount InstanceFromTemplateServiceAccount
The service account to attach to the instance.
ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig
The shielded vm config being used by the instance.
SourceInstanceTemplate Changes to this property will trigger replacement. string
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


Tags List<string>
The list of tags attached to the instance.
TagsFingerprint string
The unique fingerprint of the tags.
Zone Changes to this property will trigger replacement. string

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

AdvancedMachineFeatures InstanceFromTemplateAdvancedMachineFeaturesArgs
Controls for advanced machine-related behavior features.
AllowStoppingForUpdate bool
AttachedDisks []InstanceFromTemplateAttachedDiskArgs
List of disks attached to the instance
BootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDiskArgs
The boot disk for the instance.
CanIpForward bool
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
ConfidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfigArgs
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
CpuPlatform string
The CPU platform used by this instance.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
CurrentStatus string
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
DeletionProtection bool
Whether deletion protection is enabled on this instance.
Description string
A brief description of the resource.
DesiredStatus string
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
EffectiveLabels map[string]string
EnableDisplay bool
Whether the instance has virtual displays enabled.
GuestAccelerators Changes to this property will trigger replacement. []InstanceFromTemplateGuestAcceleratorArgs
List of the type and count of accelerator cards attached to the instance.
Hostname Changes to this property will trigger replacement. string
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
InstanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKeyArgs
Encryption key used to provide data encryption on the given instance.
InstanceId string
The server-assigned unique identifier of this instance.
KeyRevocationActionType Changes to this property will trigger replacement. string
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
LabelFingerprint string
The unique fingerprint of the labels.
Labels map[string]string
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
MachineType string
The machine type to create.
Metadata map[string]string
Metadata key/value pairs made available within the instance.
MetadataFingerprint string
The unique fingerprint of the metadata.
MetadataStartupScript string
Metadata startup scripts made available within the instance.
MinCpuPlatform string
The minimum CPU platform specified for the VM instance.
Name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
NetworkInterfaces Changes to this property will trigger replacement. []InstanceFromTemplateNetworkInterfaceArgs
The networks attached to the instance.
NetworkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
Params Changes to this property will trigger replacement. InstanceFromTemplateParamsArgs
Stores additional params passed with the request, but not persisted as part of resource payload.
PartnerMetadata map[string]string
Partner Metadata Map made available within the instance.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
ReservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from.
ResourcePolicies string
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
Scheduling InstanceFromTemplateSchedulingArgs
The scheduling strategy being used by the instance.
ScratchDisks Changes to this property will trigger replacement. []InstanceFromTemplateScratchDiskArgs
The scratch disks attached to the instance.
SelfLink string
The URI of the created resource.
ServiceAccount InstanceFromTemplateServiceAccountArgs
The service account to attach to the instance.
ShieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfigArgs
The shielded vm config being used by the instance.
SourceInstanceTemplate Changes to this property will trigger replacement. string
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


Tags []string
The list of tags attached to the instance.
TagsFingerprint string
The unique fingerprint of the tags.
Zone Changes to this property will trigger replacement. string

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures
Controls for advanced machine-related behavior features.
allowStoppingForUpdate Boolean
attachedDisks List<InstanceFromTemplateAttachedDisk>
List of disks attached to the instance
bootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDisk
The boot disk for the instance.
canIpForward Boolean
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfig
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
cpuPlatform String
The CPU platform used by this instance.
creationTimestamp String
Creation timestamp in RFC3339 text format.
currentStatus String
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
deletionProtection Boolean
Whether deletion protection is enabled on this instance.
description String
A brief description of the resource.
desiredStatus String
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
effectiveLabels Map<String,String>
enableDisplay Boolean
Whether the instance has virtual displays enabled.
guestAccelerators Changes to this property will trigger replacement. List<InstanceFromTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. String
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKey
Encryption key used to provide data encryption on the given instance.
instanceId String
The server-assigned unique identifier of this instance.
keyRevocationActionType Changes to this property will trigger replacement. String
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
labelFingerprint String
The unique fingerprint of the labels.
labels Map<String,String>
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machineType String
The machine type to create.
metadata Map<String,String>
Metadata key/value pairs made available within the instance.
metadataFingerprint String
The unique fingerprint of the metadata.
metadataStartupScript String
Metadata startup scripts made available within the instance.
minCpuPlatform String
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
networkInterfaces Changes to this property will trigger replacement. List<InstanceFromTemplateNetworkInterface>
The networks attached to the instance.
networkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfig
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. InstanceFromTemplateParams
Stores additional params passed with the request, but not persisted as part of resource payload.
partnerMetadata Map<String,String>
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
reservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinity
Specifies the reservations that this instance can consume from.
resourcePolicies String
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling InstanceFromTemplateScheduling
The scheduling strategy being used by the instance.
scratchDisks Changes to this property will trigger replacement. List<InstanceFromTemplateScratchDisk>
The scratch disks attached to the instance.
selfLink String
The URI of the created resource.
serviceAccount InstanceFromTemplateServiceAccount
The service account to attach to the instance.
shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig
The shielded vm config being used by the instance.
sourceInstanceTemplate Changes to this property will trigger replacement. String
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


tags List<String>
The list of tags attached to the instance.
tagsFingerprint String
The unique fingerprint of the tags.
zone Changes to this property will trigger replacement. String

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

advancedMachineFeatures InstanceFromTemplateAdvancedMachineFeatures
Controls for advanced machine-related behavior features.
allowStoppingForUpdate boolean
attachedDisks InstanceFromTemplateAttachedDisk[]
List of disks attached to the instance
bootDisk Changes to this property will trigger replacement. InstanceFromTemplateBootDisk
The boot disk for the instance.
canIpForward boolean
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidentialInstanceConfig Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfig
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
cpuPlatform string
The CPU platform used by this instance.
creationTimestamp string
Creation timestamp in RFC3339 text format.
currentStatus string
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
deletionProtection boolean
Whether deletion protection is enabled on this instance.
description string
A brief description of the resource.
desiredStatus string
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
effectiveLabels {[key: string]: string}
enableDisplay boolean
Whether the instance has virtual displays enabled.
guestAccelerators Changes to this property will trigger replacement. InstanceFromTemplateGuestAccelerator[]
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. string
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instanceEncryptionKey Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKey
Encryption key used to provide data encryption on the given instance.
instanceId string
The server-assigned unique identifier of this instance.
keyRevocationActionType Changes to this property will trigger replacement. string
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
labelFingerprint string
The unique fingerprint of the labels.
labels {[key: string]: string}
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machineType string
The machine type to create.
metadata {[key: string]: string}
Metadata key/value pairs made available within the instance.
metadataFingerprint string
The unique fingerprint of the metadata.
metadataStartupScript string
Metadata startup scripts made available within the instance.
minCpuPlatform string
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
networkInterfaces Changes to this property will trigger replacement. InstanceFromTemplateNetworkInterface[]
The networks attached to the instance.
networkPerformanceConfig Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfig
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. InstanceFromTemplateParams
Stores additional params passed with the request, but not persisted as part of resource payload.
partnerMetadata {[key: string]: string}
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
reservationAffinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinity
Specifies the reservations that this instance can consume from.
resourcePolicies string
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling InstanceFromTemplateScheduling
The scheduling strategy being used by the instance.
scratchDisks Changes to this property will trigger replacement. InstanceFromTemplateScratchDisk[]
The scratch disks attached to the instance.
selfLink string
The URI of the created resource.
serviceAccount InstanceFromTemplateServiceAccount
The service account to attach to the instance.
shieldedInstanceConfig InstanceFromTemplateShieldedInstanceConfig
The shielded vm config being used by the instance.
sourceInstanceTemplate Changes to this property will trigger replacement. string
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


tags string[]
The list of tags attached to the instance.
tagsFingerprint string
The unique fingerprint of the tags.
zone Changes to this property will trigger replacement. string

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

advanced_machine_features InstanceFromTemplateAdvancedMachineFeaturesArgs
Controls for advanced machine-related behavior features.
allow_stopping_for_update bool
attached_disks Sequence[InstanceFromTemplateAttachedDiskArgs]
List of disks attached to the instance
boot_disk Changes to this property will trigger replacement. InstanceFromTemplateBootDiskArgs
The boot disk for the instance.
can_ip_forward bool
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidential_instance_config Changes to this property will trigger replacement. InstanceFromTemplateConfidentialInstanceConfigArgs
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
cpu_platform str
The CPU platform used by this instance.
creation_timestamp str
Creation timestamp in RFC3339 text format.
current_status str
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
deletion_protection bool
Whether deletion protection is enabled on this instance.
description str
A brief description of the resource.
desired_status str
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
effective_labels Mapping[str, str]
enable_display bool
Whether the instance has virtual displays enabled.
guest_accelerators Changes to this property will trigger replacement. Sequence[InstanceFromTemplateGuestAcceleratorArgs]
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. str
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instance_encryption_key Changes to this property will trigger replacement. InstanceFromTemplateInstanceEncryptionKeyArgs
Encryption key used to provide data encryption on the given instance.
instance_id str
The server-assigned unique identifier of this instance.
key_revocation_action_type Changes to this property will trigger replacement. str
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
label_fingerprint str
The unique fingerprint of the labels.
labels Mapping[str, str]
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machine_type str
The machine type to create.
metadata Mapping[str, str]
Metadata key/value pairs made available within the instance.
metadata_fingerprint str
The unique fingerprint of the metadata.
metadata_startup_script str
Metadata startup scripts made available within the instance.
min_cpu_platform str
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
network_interfaces Changes to this property will trigger replacement. Sequence[InstanceFromTemplateNetworkInterfaceArgs]
The networks attached to the instance.
network_performance_config Changes to this property will trigger replacement. InstanceFromTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. InstanceFromTemplateParamsArgs
Stores additional params passed with the request, but not persisted as part of resource payload.
partner_metadata Mapping[str, str]
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
reservation_affinity Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from.
resource_policies str
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling InstanceFromTemplateSchedulingArgs
The scheduling strategy being used by the instance.
scratch_disks Changes to this property will trigger replacement. Sequence[InstanceFromTemplateScratchDiskArgs]
The scratch disks attached to the instance.
self_link str
The URI of the created resource.
service_account InstanceFromTemplateServiceAccountArgs
The service account to attach to the instance.
shielded_instance_config InstanceFromTemplateShieldedInstanceConfigArgs
The shielded vm config being used by the instance.
source_instance_template Changes to this property will trigger replacement. str
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


tags Sequence[str]
The list of tags attached to the instance.
tags_fingerprint str
The unique fingerprint of the tags.
zone Changes to this property will trigger replacement. str

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

advancedMachineFeatures Property Map
Controls for advanced machine-related behavior features.
allowStoppingForUpdate Boolean
attachedDisks List<Property Map>
List of disks attached to the instance
bootDisk Changes to this property will trigger replacement. Property Map
The boot disk for the instance.
canIpForward Boolean
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidentialInstanceConfig Changes to this property will trigger replacement. Property Map
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
cpuPlatform String
The CPU platform used by this instance.
creationTimestamp String
Creation timestamp in RFC3339 text format.
currentStatus String
Current status of the instance. This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. For more information about the status of the instance, see Instance life cycle.
deletionProtection Boolean
Whether deletion protection is enabled on this instance.
description String
A brief description of the resource.
desiredStatus String
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
effectiveLabels Map<String>
enableDisplay Boolean
Whether the instance has virtual displays enabled.
guestAccelerators Changes to this property will trigger replacement. List<Property Map>
List of the type and count of accelerator cards attached to the instance.
hostname Changes to this property will trigger replacement. String
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
instanceEncryptionKey Changes to this property will trigger replacement. Property Map
Encryption key used to provide data encryption on the given instance.
instanceId String
The server-assigned unique identifier of this instance.
keyRevocationActionType Changes to this property will trigger replacement. String
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
labelFingerprint String
The unique fingerprint of the labels.
labels Map<String>
A set of key/value label pairs assigned to the instance. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
machineType String
The machine type to create.
metadata Map<String>
Metadata key/value pairs made available within the instance.
metadataFingerprint String
The unique fingerprint of the metadata.
metadataStartupScript String
Metadata startup scripts made available within the instance.
minCpuPlatform String
The minimum CPU platform specified for the VM instance.
name Changes to this property will trigger replacement. String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
networkInterfaces Changes to this property will trigger replacement. List<Property Map>
The networks attached to the instance.
networkPerformanceConfig Changes to this property will trigger replacement. Property Map
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params Changes to this property will trigger replacement. Property Map
Stores additional params passed with the request, but not persisted as part of resource payload.
partnerMetadata Map<String>
Partner Metadata Map made available within the instance.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
reservationAffinity Changes to this property will trigger replacement. Property Map
Specifies the reservations that this instance can consume from.
resourcePolicies String
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling Property Map
The scheduling strategy being used by the instance.
scratchDisks Changes to this property will trigger replacement. List<Property Map>
The scratch disks attached to the instance.
selfLink String
The URI of the created resource.
serviceAccount Property Map
The service account to attach to the instance.
shieldedInstanceConfig Property Map
The shielded vm config being used by the instance.
sourceInstanceTemplate Changes to this property will trigger replacement. String
Name or self link of an instance template to create the instance based on. It is recommended to reference instance templates through their unique id (self_link_unique attribute).


tags List<String>
The list of tags attached to the instance.
tagsFingerprint String
The unique fingerprint of the tags.
zone Changes to this property will trigger replacement. String

The zone that the machine should be created in. If not set, the provider zone is used.

In addition to these, all arguments from gcp.compute.Instance are supported as a way to override the properties in the template. All exported attributes from gcp.compute.Instance are likewise exported here.

Supporting Types

InstanceFromTemplateAdvancedMachineFeatures
, InstanceFromTemplateAdvancedMachineFeaturesArgs

EnableNestedVirtualization bool
Whether to enable nested virtualization or not.
EnableUefiNetworking Changes to this property will trigger replacement. bool
Whether to enable UEFI networking for the instance.
PerformanceMonitoringUnit string
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
ThreadsPerCore int
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
TurboMode string
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
VisibleCoreCount int
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
EnableNestedVirtualization bool
Whether to enable nested virtualization or not.
EnableUefiNetworking Changes to this property will trigger replacement. bool
Whether to enable UEFI networking for the instance.
PerformanceMonitoringUnit string
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
ThreadsPerCore int
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
TurboMode string
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
VisibleCoreCount int
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
enableNestedVirtualization Boolean
Whether to enable nested virtualization or not.
enableUefiNetworking Changes to this property will trigger replacement. Boolean
Whether to enable UEFI networking for the instance.
performanceMonitoringUnit String
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threadsPerCore Integer
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
turboMode String
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visibleCoreCount Integer
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
enableNestedVirtualization boolean
Whether to enable nested virtualization or not.
enableUefiNetworking Changes to this property will trigger replacement. boolean
Whether to enable UEFI networking for the instance.
performanceMonitoringUnit string
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threadsPerCore number
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
turboMode string
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visibleCoreCount number
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
enable_nested_virtualization bool
Whether to enable nested virtualization or not.
enable_uefi_networking Changes to this property will trigger replacement. bool
Whether to enable UEFI networking for the instance.
performance_monitoring_unit str
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threads_per_core int
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
turbo_mode str
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visible_core_count int
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
enableNestedVirtualization Boolean
Whether to enable nested virtualization or not.
enableUefiNetworking Changes to this property will trigger replacement. Boolean
Whether to enable UEFI networking for the instance.
performanceMonitoringUnit String
The PMU is a hardware component within the CPU core that monitors how the processor runs code. Valid values for the level of PMU are "STANDARD", "ENHANCED", and "ARCHITECTURAL".
threadsPerCore Number
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
turboMode String
Turbo frequency mode to use for the instance. Currently supported modes is "ALL_CORE_MAX".
visibleCoreCount Number
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.

InstanceFromTemplateAttachedDisk
, InstanceFromTemplateAttachedDiskArgs

Source This property is required. string
The name or self_link of the disk attached to this instance.
DeviceName string
Name with which the attached disk is accessible under /dev/disk/by-id/
DiskEncryptionKeyRaw string
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
DiskEncryptionKeyRsa string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
DiskEncryptionKeySha256 string
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
DiskEncryptionServiceAccount string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
KmsKeySelfLink string
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
Mode string
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
Source This property is required. string
The name or self_link of the disk attached to this instance.
DeviceName string
Name with which the attached disk is accessible under /dev/disk/by-id/
DiskEncryptionKeyRaw string
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
DiskEncryptionKeyRsa string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
DiskEncryptionKeySha256 string
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
DiskEncryptionServiceAccount string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
KmsKeySelfLink string
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
Mode string
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source This property is required. String
The name or self_link of the disk attached to this instance.
deviceName String
Name with which the attached disk is accessible under /dev/disk/by-id/
diskEncryptionKeyRaw String
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
diskEncryptionKeyRsa String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
diskEncryptionKeySha256 String
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
diskEncryptionServiceAccount String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
kmsKeySelfLink String
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
mode String
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source This property is required. string
The name or self_link of the disk attached to this instance.
deviceName string
Name with which the attached disk is accessible under /dev/disk/by-id/
diskEncryptionKeyRaw string
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
diskEncryptionKeyRsa string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
diskEncryptionKeySha256 string
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
diskEncryptionServiceAccount string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
kmsKeySelfLink string
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
mode string
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source This property is required. str
The name or self_link of the disk attached to this instance.
device_name str
Name with which the attached disk is accessible under /dev/disk/by-id/
disk_encryption_key_raw str
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
disk_encryption_key_rsa str
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
disk_encryption_key_sha256 str
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
disk_encryption_service_account str
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
kms_key_self_link str
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
mode str
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source This property is required. String
The name or self_link of the disk attached to this instance.
deviceName String
Name with which the attached disk is accessible under /dev/disk/by-id/
diskEncryptionKeyRaw String
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
diskEncryptionKeyRsa String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
diskEncryptionKeySha256 String
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
diskEncryptionServiceAccount String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
kmsKeySelfLink String
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_rsa and disk_encryption_key_raw may be set.
mode String
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".

InstanceFromTemplateBootDisk
, InstanceFromTemplateBootDiskArgs

AutoDelete bool
Whether the disk will be auto-deleted when the instance is deleted.
DeviceName Changes to this property will trigger replacement. string
Name with which attached disk will be accessible under /dev/disk/by-id/
DiskEncryptionKeyRaw Changes to this property will trigger replacement. string
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
DiskEncryptionKeyRsa Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
DiskEncryptionKeySha256 string
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
DiskEncryptionServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
GuestOsFeatures Changes to this property will trigger replacement. List<string>
A list of features to enable on the guest operating system. Applicable only for bootable images.
InitializeParams Changes to this property will trigger replacement. InstanceFromTemplateBootDiskInitializeParams
Parameters with which a disk was created alongside the instance.
Interface string
The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
KmsKeySelfLink Changes to this property will trigger replacement. string
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
Mode Changes to this property will trigger replacement. string
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
Source Changes to this property will trigger replacement. string
The name or self_link of the disk attached to this instance.
AutoDelete bool
Whether the disk will be auto-deleted when the instance is deleted.
DeviceName Changes to this property will trigger replacement. string
Name with which attached disk will be accessible under /dev/disk/by-id/
DiskEncryptionKeyRaw Changes to this property will trigger replacement. string
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
DiskEncryptionKeyRsa Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
DiskEncryptionKeySha256 string
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
DiskEncryptionServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
GuestOsFeatures Changes to this property will trigger replacement. []string
A list of features to enable on the guest operating system. Applicable only for bootable images.
InitializeParams Changes to this property will trigger replacement. InstanceFromTemplateBootDiskInitializeParams
Parameters with which a disk was created alongside the instance.
Interface string
The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
KmsKeySelfLink Changes to this property will trigger replacement. string
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
Mode Changes to this property will trigger replacement. string
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
Source Changes to this property will trigger replacement. string
The name or self_link of the disk attached to this instance.
autoDelete Boolean
Whether the disk will be auto-deleted when the instance is deleted.
deviceName Changes to this property will trigger replacement. String
Name with which attached disk will be accessible under /dev/disk/by-id/
diskEncryptionKeyRaw Changes to this property will trigger replacement. String
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
diskEncryptionKeyRsa Changes to this property will trigger replacement. String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
diskEncryptionKeySha256 String
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
diskEncryptionServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
guestOsFeatures Changes to this property will trigger replacement. List<String>
A list of features to enable on the guest operating system. Applicable only for bootable images.
initializeParams Changes to this property will trigger replacement. InstanceFromTemplateBootDiskInitializeParams
Parameters with which a disk was created alongside the instance.
interface_ String
The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
kmsKeySelfLink Changes to this property will trigger replacement. String
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
mode Changes to this property will trigger replacement. String
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source Changes to this property will trigger replacement. String
The name or self_link of the disk attached to this instance.
autoDelete boolean
Whether the disk will be auto-deleted when the instance is deleted.
deviceName Changes to this property will trigger replacement. string
Name with which attached disk will be accessible under /dev/disk/by-id/
diskEncryptionKeyRaw Changes to this property will trigger replacement. string
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
diskEncryptionKeyRsa Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
diskEncryptionKeySha256 string
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
diskEncryptionServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
guestOsFeatures Changes to this property will trigger replacement. string[]
A list of features to enable on the guest operating system. Applicable only for bootable images.
initializeParams Changes to this property will trigger replacement. InstanceFromTemplateBootDiskInitializeParams
Parameters with which a disk was created alongside the instance.
interface string
The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
kmsKeySelfLink Changes to this property will trigger replacement. string
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
mode Changes to this property will trigger replacement. string
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source Changes to this property will trigger replacement. string
The name or self_link of the disk attached to this instance.
auto_delete bool
Whether the disk will be auto-deleted when the instance is deleted.
device_name Changes to this property will trigger replacement. str
Name with which attached disk will be accessible under /dev/disk/by-id/
disk_encryption_key_raw Changes to this property will trigger replacement. str
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
disk_encryption_key_rsa Changes to this property will trigger replacement. str
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
disk_encryption_key_sha256 str
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
disk_encryption_service_account Changes to this property will trigger replacement. str
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
guest_os_features Changes to this property will trigger replacement. Sequence[str]
A list of features to enable on the guest operating system. Applicable only for bootable images.
initialize_params Changes to this property will trigger replacement. InstanceFromTemplateBootDiskInitializeParams
Parameters with which a disk was created alongside the instance.
interface str
The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
kms_key_self_link Changes to this property will trigger replacement. str
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
mode Changes to this property will trigger replacement. str
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source Changes to this property will trigger replacement. str
The name or self_link of the disk attached to this instance.
autoDelete Boolean
Whether the disk will be auto-deleted when the instance is deleted.
deviceName Changes to this property will trigger replacement. String
Name with which attached disk will be accessible under /dev/disk/by-id/
diskEncryptionKeyRaw Changes to this property will trigger replacement. String
A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
diskEncryptionKeyRsa Changes to this property will trigger replacement. String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
diskEncryptionKeySha256 String
The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource.
diskEncryptionServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used
guestOsFeatures Changes to this property will trigger replacement. List<String>
A list of features to enable on the guest operating system. Applicable only for bootable images.
initializeParams Changes to this property will trigger replacement. Property Map
Parameters with which a disk was created alongside the instance.
interface String
The disk interface used for attaching this disk. One of SCSI or NVME. (This field is shared with attached_disk and only used for specific cases, please don't specify this field without advice from Google.)
kmsKeySelfLink Changes to this property will trigger replacement. String
The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link, disk_encryption_key_raw and disk_encryption_key_rsa may be set.
mode Changes to this property will trigger replacement. String
Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE".
source Changes to this property will trigger replacement. String
The name or self_link of the disk attached to this instance.

InstanceFromTemplateBootDiskInitializeParams
, InstanceFromTemplateBootDiskInitializeParamsArgs

Architecture Changes to this property will trigger replacement. string
The architecture of the disk. One of "X86_64" or "ARM64".
EnableConfidentialCompute Changes to this property will trigger replacement. bool
A flag to enable confidential compute mode on boot disk
Image Changes to this property will trigger replacement. string
The image from which this disk was initialised.
Labels Changes to this property will trigger replacement. Dictionary<string, string>
A set of key/value label pairs assigned to the disk.
ProvisionedIops Changes to this property will trigger replacement. int
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
ProvisionedThroughput Changes to this property will trigger replacement. int
Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
ResourceManagerTags Changes to this property will trigger replacement. Dictionary<string, string>
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
ResourcePolicies Changes to this property will trigger replacement. string
A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
Size Changes to this property will trigger replacement. int
The size of the image in gigabytes.
Snapshot Changes to this property will trigger replacement. string
The snapshot from which this disk was initialised.
SourceImageEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKey
The encryption key used to decrypt the source image.
SourceSnapshotEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKey
The encryption key used to decrypt the source snapshot.
StoragePool Changes to this property will trigger replacement. string
The URL of the storage pool in which the new disk is created
Type Changes to this property will trigger replacement. string
The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
Architecture Changes to this property will trigger replacement. string
The architecture of the disk. One of "X86_64" or "ARM64".
EnableConfidentialCompute Changes to this property will trigger replacement. bool
A flag to enable confidential compute mode on boot disk
Image Changes to this property will trigger replacement. string
The image from which this disk was initialised.
Labels Changes to this property will trigger replacement. map[string]string
A set of key/value label pairs assigned to the disk.
ProvisionedIops Changes to this property will trigger replacement. int
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
ProvisionedThroughput Changes to this property will trigger replacement. int
Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
ResourceManagerTags Changes to this property will trigger replacement. map[string]string
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
ResourcePolicies Changes to this property will trigger replacement. string
A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
Size Changes to this property will trigger replacement. int
The size of the image in gigabytes.
Snapshot Changes to this property will trigger replacement. string
The snapshot from which this disk was initialised.
SourceImageEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKey
The encryption key used to decrypt the source image.
SourceSnapshotEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKey
The encryption key used to decrypt the source snapshot.
StoragePool Changes to this property will trigger replacement. string
The URL of the storage pool in which the new disk is created
Type Changes to this property will trigger replacement. string
The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
architecture Changes to this property will trigger replacement. String
The architecture of the disk. One of "X86_64" or "ARM64".
enableConfidentialCompute Changes to this property will trigger replacement. Boolean
A flag to enable confidential compute mode on boot disk
image Changes to this property will trigger replacement. String
The image from which this disk was initialised.
labels Changes to this property will trigger replacement. Map<String,String>
A set of key/value label pairs assigned to the disk.
provisionedIops Changes to this property will trigger replacement. Integer
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
provisionedThroughput Changes to this property will trigger replacement. Integer
Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
resourceManagerTags Changes to this property will trigger replacement. Map<String,String>
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resourcePolicies Changes to this property will trigger replacement. String
A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
size Changes to this property will trigger replacement. Integer
The size of the image in gigabytes.
snapshot Changes to this property will trigger replacement. String
The snapshot from which this disk was initialised.
sourceImageEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKey
The encryption key used to decrypt the source image.
sourceSnapshotEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKey
The encryption key used to decrypt the source snapshot.
storagePool Changes to this property will trigger replacement. String
The URL of the storage pool in which the new disk is created
type Changes to this property will trigger replacement. String
The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
architecture Changes to this property will trigger replacement. string
The architecture of the disk. One of "X86_64" or "ARM64".
enableConfidentialCompute Changes to this property will trigger replacement. boolean
A flag to enable confidential compute mode on boot disk
image Changes to this property will trigger replacement. string
The image from which this disk was initialised.
labels Changes to this property will trigger replacement. {[key: string]: string}
A set of key/value label pairs assigned to the disk.
provisionedIops Changes to this property will trigger replacement. number
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
provisionedThroughput Changes to this property will trigger replacement. number
Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
resourceManagerTags Changes to this property will trigger replacement. {[key: string]: string}
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resourcePolicies Changes to this property will trigger replacement. string
A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
size Changes to this property will trigger replacement. number
The size of the image in gigabytes.
snapshot Changes to this property will trigger replacement. string
The snapshot from which this disk was initialised.
sourceImageEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKey
The encryption key used to decrypt the source image.
sourceSnapshotEncryptionKey InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKey
The encryption key used to decrypt the source snapshot.
storagePool Changes to this property will trigger replacement. string
The URL of the storage pool in which the new disk is created
type Changes to this property will trigger replacement. string
The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
architecture Changes to this property will trigger replacement. str
The architecture of the disk. One of "X86_64" or "ARM64".
enable_confidential_compute Changes to this property will trigger replacement. bool
A flag to enable confidential compute mode on boot disk
image Changes to this property will trigger replacement. str
The image from which this disk was initialised.
labels Changes to this property will trigger replacement. Mapping[str, str]
A set of key/value label pairs assigned to the disk.
provisioned_iops Changes to this property will trigger replacement. int
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
provisioned_throughput Changes to this property will trigger replacement. int
Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
resource_manager_tags Changes to this property will trigger replacement. Mapping[str, str]
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resource_policies Changes to this property will trigger replacement. str
A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
size Changes to this property will trigger replacement. int
The size of the image in gigabytes.
snapshot Changes to this property will trigger replacement. str
The snapshot from which this disk was initialised.
source_image_encryption_key InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKey
The encryption key used to decrypt the source image.
source_snapshot_encryption_key InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKey
The encryption key used to decrypt the source snapshot.
storage_pool Changes to this property will trigger replacement. str
The URL of the storage pool in which the new disk is created
type Changes to this property will trigger replacement. str
The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.
architecture Changes to this property will trigger replacement. String
The architecture of the disk. One of "X86_64" or "ARM64".
enableConfidentialCompute Changes to this property will trigger replacement. Boolean
A flag to enable confidential compute mode on boot disk
image Changes to this property will trigger replacement. String
The image from which this disk was initialised.
labels Changes to this property will trigger replacement. Map<String>
A set of key/value label pairs assigned to the disk.
provisionedIops Changes to this property will trigger replacement. Number
Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
provisionedThroughput Changes to this property will trigger replacement. Number
Indicates how much throughput to provision for the disk. This sets the number of throughput mb per second that the disk can handle.
resourceManagerTags Changes to this property will trigger replacement. Map<String>
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resourcePolicies Changes to this property will trigger replacement. String
A list of self_links of resource policies to attach to the instance's boot disk. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
size Changes to this property will trigger replacement. Number
The size of the image in gigabytes.
snapshot Changes to this property will trigger replacement. String
The snapshot from which this disk was initialised.
sourceImageEncryptionKey Property Map
The encryption key used to decrypt the source image.
sourceSnapshotEncryptionKey Property Map
The encryption key used to decrypt the source snapshot.
storagePool Changes to this property will trigger replacement. String
The URL of the storage pool in which the new disk is created
type Changes to this property will trigger replacement. String
The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced.

InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKey
, InstanceFromTemplateBootDiskInitializeParamsSourceImageEncryptionKeyArgs

KmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
KmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
RawKey Changes to this property will trigger replacement. string
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
RsaEncryptedKey Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
Sha256 string
The SHA256 hash of the encryption key used to encrypt this disk.
KmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
KmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
RawKey Changes to this property will trigger replacement. string
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
RsaEncryptedKey Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
Sha256 string
The SHA256 hash of the encryption key used to encrypt this disk.
kmsKeySelfLink Changes to this property will trigger replacement. String
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kmsKeyServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
rawKey Changes to this property will trigger replacement. String
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsaEncryptedKey Changes to this property will trigger replacement. String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 String
The SHA256 hash of the encryption key used to encrypt this disk.
kmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
rawKey Changes to this property will trigger replacement. string
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsaEncryptedKey Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 string
The SHA256 hash of the encryption key used to encrypt this disk.
kms_key_self_link Changes to this property will trigger replacement. str
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kms_key_service_account Changes to this property will trigger replacement. str
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
raw_key Changes to this property will trigger replacement. str
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsa_encrypted_key Changes to this property will trigger replacement. str
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 str
The SHA256 hash of the encryption key used to encrypt this disk.
kmsKeySelfLink Changes to this property will trigger replacement. String
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kmsKeyServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
rawKey Changes to this property will trigger replacement. String
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsaEncryptedKey Changes to this property will trigger replacement. String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 String
The SHA256 hash of the encryption key used to encrypt this disk.

InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKey
, InstanceFromTemplateBootDiskInitializeParamsSourceSnapshotEncryptionKeyArgs

KmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
KmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
RawKey Changes to this property will trigger replacement. string
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
RsaEncryptedKey Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
Sha256 string
The SHA256 hash of the encryption key used to encrypt this disk.
KmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
KmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
RawKey Changes to this property will trigger replacement. string
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
RsaEncryptedKey Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
Sha256 string
The SHA256 hash of the encryption key used to encrypt this disk.
kmsKeySelfLink Changes to this property will trigger replacement. String
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kmsKeyServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
rawKey Changes to this property will trigger replacement. String
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsaEncryptedKey Changes to this property will trigger replacement. String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 String
The SHA256 hash of the encryption key used to encrypt this disk.
kmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
rawKey Changes to this property will trigger replacement. string
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsaEncryptedKey Changes to this property will trigger replacement. string
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 string
The SHA256 hash of the encryption key used to encrypt this disk.
kms_key_self_link Changes to this property will trigger replacement. str
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kms_key_service_account Changes to this property will trigger replacement. str
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
raw_key Changes to this property will trigger replacement. str
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsa_encrypted_key Changes to this property will trigger replacement. str
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 str
The SHA256 hash of the encryption key used to encrypt this disk.
kmsKeySelfLink Changes to this property will trigger replacement. String
The self link of the encryption key that is stored in Google Cloud KMS. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
kmsKeyServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
rawKey Changes to this property will trigger replacement. String
Specifies a 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
rsaEncryptedKey Changes to this property will trigger replacement. String
Specifies an RFC 4648 base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. Only one of kms_key_self_link, rsa_encrypted_key and raw_key may be set.
sha256 String
The SHA256 hash of the encryption key used to encrypt this disk.

InstanceFromTemplateConfidentialInstanceConfig
, InstanceFromTemplateConfidentialInstanceConfigArgs

ConfidentialInstanceType string
The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
EnableConfidentialCompute bool
Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
ConfidentialInstanceType string
The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
EnableConfidentialCompute bool
Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
confidentialInstanceType String
The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
enableConfidentialCompute Boolean
Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
confidentialInstanceType string
The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
enableConfidentialCompute boolean
Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
confidential_instance_type str
The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
enable_confidential_compute bool
Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release
confidentialInstanceType String
The confidential computing technology the instance uses. SEV is an AMD feature. TDX is an Intel feature. One of the following values is required: SEV, SEV_SNP, TDX. If SEV_SNP, min_cpu_platform = "AMD Milan" is currently required.
enableConfidentialCompute Boolean
Defines whether the instance should have confidential compute enabled. Field will be deprecated in a future release

InstanceFromTemplateGuestAccelerator
, InstanceFromTemplateGuestAcceleratorArgs

Count
This property is required.
Changes to this property will trigger replacement.
int
The number of the guest accelerator cards exposed to this instance.
Type
This property is required.
Changes to this property will trigger replacement.
string
The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80.
Count
This property is required.
Changes to this property will trigger replacement.
int
The number of the guest accelerator cards exposed to this instance.
Type
This property is required.
Changes to this property will trigger replacement.
string
The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80.
count
This property is required.
Changes to this property will trigger replacement.
Integer
The number of the guest accelerator cards exposed to this instance.
type
This property is required.
Changes to this property will trigger replacement.
String
The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80.
count
This property is required.
Changes to this property will trigger replacement.
number
The number of the guest accelerator cards exposed to this instance.
type
This property is required.
Changes to this property will trigger replacement.
string
The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80.
count
This property is required.
Changes to this property will trigger replacement.
int
The number of the guest accelerator cards exposed to this instance.
type
This property is required.
Changes to this property will trigger replacement.
str
The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80.
count
This property is required.
Changes to this property will trigger replacement.
Number
The number of the guest accelerator cards exposed to this instance.
type
This property is required.
Changes to this property will trigger replacement.
String
The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80.

InstanceFromTemplateInstanceEncryptionKey
, InstanceFromTemplateInstanceEncryptionKeyArgs

KmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS.
KmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
Sha256 string
The SHA256 hash of the customer's encryption key.
KmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS.
KmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
Sha256 string
The SHA256 hash of the customer's encryption key.
kmsKeySelfLink Changes to this property will trigger replacement. String
The self link of the encryption key that is stored in Google Cloud KMS.
kmsKeyServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
sha256 String
The SHA256 hash of the customer's encryption key.
kmsKeySelfLink Changes to this property will trigger replacement. string
The self link of the encryption key that is stored in Google Cloud KMS.
kmsKeyServiceAccount Changes to this property will trigger replacement. string
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
sha256 string
The SHA256 hash of the customer's encryption key.
kms_key_self_link Changes to this property will trigger replacement. str
The self link of the encryption key that is stored in Google Cloud KMS.
kms_key_service_account Changes to this property will trigger replacement. str
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
sha256 str
The SHA256 hash of the customer's encryption key.
kmsKeySelfLink Changes to this property will trigger replacement. String
The self link of the encryption key that is stored in Google Cloud KMS.
kmsKeyServiceAccount Changes to this property will trigger replacement. String
The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
sha256 String
The SHA256 hash of the customer's encryption key.

InstanceFromTemplateNetworkInterface
, InstanceFromTemplateNetworkInterfaceArgs

AccessConfigs List<InstanceFromTemplateNetworkInterfaceAccessConfig>
Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
AliasIpRanges List<InstanceFromTemplateNetworkInterfaceAliasIpRange>
An array of alias IP ranges for this network interface.
InternalIpv6PrefixLength int
The prefix length of the primary internal IPv6 range.
Ipv6AccessConfigs List<InstanceFromTemplateNetworkInterfaceIpv6AccessConfig>
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
Ipv6AccessType string
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
Ipv6Address string
An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
Network string
The name or self_link of the network attached to this interface.
NetworkAttachment Changes to this property will trigger replacement. string
The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
NetworkIp string
The private IP address assigned to the instance.
NicType Changes to this property will trigger replacement. string
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF, MRDMA, and IRDMA
QueueCount Changes to this property will trigger replacement. int
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
SecurityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
StackType string
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
Subnetwork string
The name or self_link of the subnetwork attached to this interface.
SubnetworkProject string
The project in which the subnetwork belongs.
AccessConfigs []InstanceFromTemplateNetworkInterfaceAccessConfig
Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
AliasIpRanges []InstanceFromTemplateNetworkInterfaceAliasIpRange
An array of alias IP ranges for this network interface.
InternalIpv6PrefixLength int
The prefix length of the primary internal IPv6 range.
Ipv6AccessConfigs []InstanceFromTemplateNetworkInterfaceIpv6AccessConfig
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
Ipv6AccessType string
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
Ipv6Address string
An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
Name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
Network string
The name or self_link of the network attached to this interface.
NetworkAttachment Changes to this property will trigger replacement. string
The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
NetworkIp string
The private IP address assigned to the instance.
NicType Changes to this property will trigger replacement. string
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF, MRDMA, and IRDMA
QueueCount Changes to this property will trigger replacement. int
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
SecurityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
StackType string
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
Subnetwork string
The name or self_link of the subnetwork attached to this interface.
SubnetworkProject string
The project in which the subnetwork belongs.
accessConfigs List<InstanceFromTemplateNetworkInterfaceAccessConfig>
Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
aliasIpRanges List<InstanceFromTemplateNetworkInterfaceAliasIpRange>
An array of alias IP ranges for this network interface.
internalIpv6PrefixLength Integer
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs List<InstanceFromTemplateNetworkInterfaceIpv6AccessConfig>
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
ipv6AccessType String
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
ipv6Address String
An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
name String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
network String
The name or self_link of the network attached to this interface.
networkAttachment Changes to this property will trigger replacement. String
The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
networkIp String
The private IP address assigned to the instance.
nicType Changes to this property will trigger replacement. String
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF, MRDMA, and IRDMA
queueCount Changes to this property will trigger replacement. Integer
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
securityPolicy String
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
stackType String
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
subnetwork String
The name or self_link of the subnetwork attached to this interface.
subnetworkProject String
The project in which the subnetwork belongs.
accessConfigs InstanceFromTemplateNetworkInterfaceAccessConfig[]
Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
aliasIpRanges InstanceFromTemplateNetworkInterfaceAliasIpRange[]
An array of alias IP ranges for this network interface.
internalIpv6PrefixLength number
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs InstanceFromTemplateNetworkInterfaceIpv6AccessConfig[]
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
ipv6AccessType string
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
ipv6Address string
An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
name string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
network string
The name or self_link of the network attached to this interface.
networkAttachment Changes to this property will trigger replacement. string
The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
networkIp string
The private IP address assigned to the instance.
nicType Changes to this property will trigger replacement. string
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF, MRDMA, and IRDMA
queueCount Changes to this property will trigger replacement. number
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
securityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
stackType string
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
subnetwork string
The name or self_link of the subnetwork attached to this interface.
subnetworkProject string
The project in which the subnetwork belongs.
access_configs Sequence[InstanceFromTemplateNetworkInterfaceAccessConfig]
Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
alias_ip_ranges Sequence[InstanceFromTemplateNetworkInterfaceAliasIpRange]
An array of alias IP ranges for this network interface.
internal_ipv6_prefix_length int
The prefix length of the primary internal IPv6 range.
ipv6_access_configs Sequence[InstanceFromTemplateNetworkInterfaceIpv6AccessConfig]
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
ipv6_access_type str
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
ipv6_address str
An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
name str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
network str
The name or self_link of the network attached to this interface.
network_attachment Changes to this property will trigger replacement. str
The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
network_ip str
The private IP address assigned to the instance.
nic_type Changes to this property will trigger replacement. str
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF, MRDMA, and IRDMA
queue_count Changes to this property will trigger replacement. int
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
security_policy str
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
stack_type str
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
subnetwork str
The name or self_link of the subnetwork attached to this interface.
subnetwork_project str
The project in which the subnetwork belongs.
accessConfigs List<Property Map>
Access configurations, i.e. IPs via which this instance can be accessed via the Internet.
aliasIpRanges List<Property Map>
An array of alias IP ranges for this network interface.
internalIpv6PrefixLength Number
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs List<Property Map>
An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
ipv6AccessType String
One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
ipv6Address String
An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork.
name String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
network String
The name or self_link of the network attached to this interface.
networkAttachment Changes to this property will trigger replacement. String
The URL of the network attachment that this interface should connect to in the following format: projects/{projectNumber}/regions/{region_name}/networkAttachments/{network_attachment_name}.
networkIp String
The private IP address assigned to the instance.
nicType Changes to this property will trigger replacement. String
The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET, IDPF, MRDMA, and IRDMA
queueCount Changes to this property will trigger replacement. Number
The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified.
securityPolicy String
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
stackType String
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used.
subnetwork String
The name or self_link of the subnetwork attached to this interface.
subnetworkProject String
The project in which the subnetwork belongs.

InstanceFromTemplateNetworkInterfaceAccessConfig
, InstanceFromTemplateNetworkInterfaceAccessConfigArgs

NatIp string
The IP address that is be 1:1 mapped to the instance's network ip.
NetworkTier string
The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
PublicPtrDomainName string
The DNS domain name for the public PTR record.
SecurityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
NatIp string
The IP address that is be 1:1 mapped to the instance's network ip.
NetworkTier string
The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
PublicPtrDomainName string
The DNS domain name for the public PTR record.
SecurityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
natIp String
The IP address that is be 1:1 mapped to the instance's network ip.
networkTier String
The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
publicPtrDomainName String
The DNS domain name for the public PTR record.
securityPolicy String
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
natIp string
The IP address that is be 1:1 mapped to the instance's network ip.
networkTier string
The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
publicPtrDomainName string
The DNS domain name for the public PTR record.
securityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
nat_ip str
The IP address that is be 1:1 mapped to the instance's network ip.
network_tier str
The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
public_ptr_domain_name str
The DNS domain name for the public PTR record.
security_policy str
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
natIp String
The IP address that is be 1:1 mapped to the instance's network ip.
networkTier String
The networking tier used for configuring this instance. One of PREMIUM or STANDARD.
publicPtrDomainName String
The DNS domain name for the public PTR record.
securityPolicy String
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.

InstanceFromTemplateNetworkInterfaceAliasIpRange
, InstanceFromTemplateNetworkInterfaceAliasIpRangeArgs

IpCidrRange This property is required. string
The IP CIDR range represented by this alias IP range.
SubnetworkRangeName string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
IpCidrRange This property is required. string
The IP CIDR range represented by this alias IP range.
SubnetworkRangeName string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
ipCidrRange This property is required. String
The IP CIDR range represented by this alias IP range.
subnetworkRangeName String
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
ipCidrRange This property is required. string
The IP CIDR range represented by this alias IP range.
subnetworkRangeName string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
ip_cidr_range This property is required. str
The IP CIDR range represented by this alias IP range.
subnetwork_range_name str
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.
ipCidrRange This property is required. String
The IP CIDR range represented by this alias IP range.
subnetworkRangeName String
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range.

InstanceFromTemplateNetworkInterfaceIpv6AccessConfig
, InstanceFromTemplateNetworkInterfaceIpv6AccessConfigArgs

NetworkTier This property is required. string
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
ExternalIpv6 Changes to this property will trigger replacement. string
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
ExternalIpv6PrefixLength Changes to this property will trigger replacement. string
The prefix length of the external IPv6 range.
Name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
PublicPtrDomainName string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
SecurityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
NetworkTier This property is required. string
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
ExternalIpv6 Changes to this property will trigger replacement. string
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
ExternalIpv6PrefixLength Changes to this property will trigger replacement. string
The prefix length of the external IPv6 range.
Name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
PublicPtrDomainName string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
SecurityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
networkTier This property is required. String
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
externalIpv6 Changes to this property will trigger replacement. String
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
externalIpv6PrefixLength Changes to this property will trigger replacement. String
The prefix length of the external IPv6 range.
name Changes to this property will trigger replacement. String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
publicPtrDomainName String
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
securityPolicy String
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
networkTier This property is required. string
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
externalIpv6 Changes to this property will trigger replacement. string
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
externalIpv6PrefixLength Changes to this property will trigger replacement. string
The prefix length of the external IPv6 range.
name Changes to this property will trigger replacement. string
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
publicPtrDomainName string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
securityPolicy string
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
network_tier This property is required. str
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
external_ipv6 Changes to this property will trigger replacement. str
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
external_ipv6_prefix_length Changes to this property will trigger replacement. str
The prefix length of the external IPv6 range.
name Changes to this property will trigger replacement. str
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
public_ptr_domain_name str
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
security_policy str
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.
networkTier This property is required. String
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6
externalIpv6 Changes to this property will trigger replacement. String
The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork.
externalIpv6PrefixLength Changes to this property will trigger replacement. String
The prefix length of the external IPv6 range.
name Changes to this property will trigger replacement. String
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
publicPtrDomainName String
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
securityPolicy String
A full or partial URL to a security policy to add to this instance. If this field is set to an empty string it will remove the associated security policy.

InstanceFromTemplateNetworkPerformanceConfig
, InstanceFromTemplateNetworkPerformanceConfigArgs

TotalEgressBandwidthTier
This property is required.
Changes to this property will trigger replacement.
string
The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
TotalEgressBandwidthTier
This property is required.
Changes to this property will trigger replacement.
string
The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
totalEgressBandwidthTier
This property is required.
Changes to this property will trigger replacement.
String
The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
totalEgressBandwidthTier
This property is required.
Changes to this property will trigger replacement.
string
The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
total_egress_bandwidth_tier
This property is required.
Changes to this property will trigger replacement.
str
The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
totalEgressBandwidthTier
This property is required.
Changes to this property will trigger replacement.
String
The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT

InstanceFromTemplateParams
, InstanceFromTemplateParamsArgs

ResourceManagerTags Dictionary<string, string>
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
ResourceManagerTags map[string]string
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resourceManagerTags Map<String,String>
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resourceManagerTags {[key: string]: string}
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resource_manager_tags Mapping[str, str]
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.
resourceManagerTags Map<String>
A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty.

InstanceFromTemplateReservationAffinity
, InstanceFromTemplateReservationAffinityArgs

Type
This property is required.
Changes to this property will trigger replacement.
string
The type of reservation from which this instance can consume resources.
SpecificReservation Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.
Type
This property is required.
Changes to this property will trigger replacement.
string
The type of reservation from which this instance can consume resources.
SpecificReservation Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.
type
This property is required.
Changes to this property will trigger replacement.
String
The type of reservation from which this instance can consume resources.
specificReservation Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.
type
This property is required.
Changes to this property will trigger replacement.
string
The type of reservation from which this instance can consume resources.
specificReservation Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.
type
This property is required.
Changes to this property will trigger replacement.
str
The type of reservation from which this instance can consume resources.
specific_reservation Changes to this property will trigger replacement. InstanceFromTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.
type
This property is required.
Changes to this property will trigger replacement.
String
The type of reservation from which this instance can consume resources.
specificReservation Changes to this property will trigger replacement. Property Map
Specifies the label selector for the reservation to use.

InstanceFromTemplateReservationAffinitySpecificReservation
, InstanceFromTemplateReservationAffinitySpecificReservationArgs

Key
This property is required.
Changes to this property will trigger replacement.
string
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
Values
This property is required.
Changes to this property will trigger replacement.
List<string>
Corresponds to the label values of a reservation resource.
Key
This property is required.
Changes to this property will trigger replacement.
string
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
Values
This property is required.
Changes to this property will trigger replacement.
[]string
Corresponds to the label values of a reservation resource.
key
This property is required.
Changes to this property will trigger replacement.
String
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
values
This property is required.
Changes to this property will trigger replacement.
List<String>
Corresponds to the label values of a reservation resource.
key
This property is required.
Changes to this property will trigger replacement.
string
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
values
This property is required.
Changes to this property will trigger replacement.
string[]
Corresponds to the label values of a reservation resource.
key
This property is required.
Changes to this property will trigger replacement.
str
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
values
This property is required.
Changes to this property will trigger replacement.
Sequence[str]
Corresponds to the label values of a reservation resource.
key
This property is required.
Changes to this property will trigger replacement.
String
Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.
values
This property is required.
Changes to this property will trigger replacement.
List<String>
Corresponds to the label values of a reservation resource.

InstanceFromTemplateScheduling
, InstanceFromTemplateSchedulingArgs

AutomaticRestart bool
Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
AvailabilityDomain int
Specifies the availability domain, which this instance should be scheduled on.
GracefulShutdown InstanceFromTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
HostErrorTimeoutSeconds int
Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
InstanceTerminationAction string
Specifies the action GCE should take when SPOT VM is preempted.
LocalSsdRecoveryTimeout Changes to this property will trigger replacement. InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
MaintenanceInterval string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
MaxRunDuration Changes to this property will trigger replacement. InstanceFromTemplateSchedulingMaxRunDuration
The timeout for new network connections to hosts.
MinNodeCpus int
NodeAffinities List<InstanceFromTemplateSchedulingNodeAffinity>
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
OnHostMaintenance string
Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
OnInstanceStopAction Changes to this property will trigger replacement. InstanceFromTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
Preemptible Changes to this property will trigger replacement. bool
Whether the instance is preemptible.
ProvisioningModel Changes to this property will trigger replacement. string
Whether the instance is spot. If this is set as SPOT.
TerminationTime Changes to this property will trigger replacement. string
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
AutomaticRestart bool
Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
AvailabilityDomain int
Specifies the availability domain, which this instance should be scheduled on.
GracefulShutdown InstanceFromTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
HostErrorTimeoutSeconds int
Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
InstanceTerminationAction string
Specifies the action GCE should take when SPOT VM is preempted.
LocalSsdRecoveryTimeout Changes to this property will trigger replacement. InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
MaintenanceInterval string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
MaxRunDuration Changes to this property will trigger replacement. InstanceFromTemplateSchedulingMaxRunDuration
The timeout for new network connections to hosts.
MinNodeCpus int
NodeAffinities []InstanceFromTemplateSchedulingNodeAffinity
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
OnHostMaintenance string
Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
OnInstanceStopAction Changes to this property will trigger replacement. InstanceFromTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
Preemptible Changes to this property will trigger replacement. bool
Whether the instance is preemptible.
ProvisioningModel Changes to this property will trigger replacement. string
Whether the instance is spot. If this is set as SPOT.
TerminationTime Changes to this property will trigger replacement. string
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automaticRestart Boolean
Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
availabilityDomain Integer
Specifies the availability domain, which this instance should be scheduled on.
gracefulShutdown InstanceFromTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds Integer
Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
instanceTerminationAction String
Specifies the action GCE should take when SPOT VM is preempted.
localSsdRecoveryTimeout Changes to this property will trigger replacement. InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
maintenanceInterval String
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDuration Changes to this property will trigger replacement. InstanceFromTemplateSchedulingMaxRunDuration
The timeout for new network connections to hosts.
minNodeCpus Integer
nodeAffinities List<InstanceFromTemplateSchedulingNodeAffinity>
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
onHostMaintenance String
Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
onInstanceStopAction Changes to this property will trigger replacement. InstanceFromTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
preemptible Changes to this property will trigger replacement. Boolean
Whether the instance is preemptible.
provisioningModel Changes to this property will trigger replacement. String
Whether the instance is spot. If this is set as SPOT.
terminationTime Changes to this property will trigger replacement. String
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automaticRestart boolean
Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
availabilityDomain number
Specifies the availability domain, which this instance should be scheduled on.
gracefulShutdown InstanceFromTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds number
Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
instanceTerminationAction string
Specifies the action GCE should take when SPOT VM is preempted.
localSsdRecoveryTimeout Changes to this property will trigger replacement. InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
maintenanceInterval string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDuration Changes to this property will trigger replacement. InstanceFromTemplateSchedulingMaxRunDuration
The timeout for new network connections to hosts.
minNodeCpus number
nodeAffinities InstanceFromTemplateSchedulingNodeAffinity[]
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
onHostMaintenance string
Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
onInstanceStopAction Changes to this property will trigger replacement. InstanceFromTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
preemptible Changes to this property will trigger replacement. boolean
Whether the instance is preemptible.
provisioningModel Changes to this property will trigger replacement. string
Whether the instance is spot. If this is set as SPOT.
terminationTime Changes to this property will trigger replacement. string
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automatic_restart bool
Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
availability_domain int
Specifies the availability domain, which this instance should be scheduled on.
graceful_shutdown InstanceFromTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
host_error_timeout_seconds int
Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
instance_termination_action str
Specifies the action GCE should take when SPOT VM is preempted.
local_ssd_recovery_timeout Changes to this property will trigger replacement. InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
maintenance_interval str
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
max_run_duration Changes to this property will trigger replacement. InstanceFromTemplateSchedulingMaxRunDuration
The timeout for new network connections to hosts.
min_node_cpus int
node_affinities Sequence[InstanceFromTemplateSchedulingNodeAffinity]
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
on_host_maintenance str
Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
on_instance_stop_action Changes to this property will trigger replacement. InstanceFromTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
preemptible Changes to this property will trigger replacement. bool
Whether the instance is preemptible.
provisioning_model Changes to this property will trigger replacement. str
Whether the instance is spot. If this is set as SPOT.
termination_time Changes to this property will trigger replacement. str
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.
automaticRestart Boolean
Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user).
availabilityDomain Number
Specifies the availability domain, which this instance should be scheduled on.
gracefulShutdown Property Map
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds Number
Specify the time in seconds for host error detection, the value must be within the range of [90, 330] with the increment of 30, if unset, the default behavior of host error recovery will be used.
instanceTerminationAction String
Specifies the action GCE should take when SPOT VM is preempted.
localSsdRecoveryTimeout Changes to this property will trigger replacement. Property Map
Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
maintenanceInterval String
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDuration Changes to this property will trigger replacement. Property Map
The timeout for new network connections to hosts.
minNodeCpus Number
nodeAffinities List<Property Map>
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems.
onHostMaintenance String
Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,
onInstanceStopAction Changes to this property will trigger replacement. Property Map
Defines the behaviour for instances with the instance_termination_action.
preemptible Changes to this property will trigger replacement. Boolean
Whether the instance is preemptible.
provisioningModel Changes to this property will trigger replacement. String
Whether the instance is spot. If this is set as SPOT.
terminationTime Changes to this property will trigger replacement. String
Specifies the timestamp, when the instance will be terminated, in RFC3339 text format. If specified, the instance termination action will be performed at the termination time.

InstanceFromTemplateSchedulingGracefulShutdown
, InstanceFromTemplateSchedulingGracefulShutdownArgs

Enabled This property is required. bool
Opts-in for graceful shutdown.
MaxDuration InstanceFromTemplateSchedulingGracefulShutdownMaxDuration
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
Enabled This property is required. bool
Opts-in for graceful shutdown.
MaxDuration InstanceFromTemplateSchedulingGracefulShutdownMaxDuration
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. Boolean
Opts-in for graceful shutdown.
maxDuration InstanceFromTemplateSchedulingGracefulShutdownMaxDuration
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. boolean
Opts-in for graceful shutdown.
maxDuration InstanceFromTemplateSchedulingGracefulShutdownMaxDuration
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. bool
Opts-in for graceful shutdown.
max_duration InstanceFromTemplateSchedulingGracefulShutdownMaxDuration
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.
enabled This property is required. Boolean
Opts-in for graceful shutdown.
maxDuration Property Map
The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state.

InstanceFromTemplateSchedulingGracefulShutdownMaxDuration
, InstanceFromTemplateSchedulingGracefulShutdownMaxDurationArgs

Seconds This property is required. int
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
Nanos int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
Seconds This property is required. int
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
Nanos int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds This property is required. Integer
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos Integer
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds This property is required. number
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos number
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds This property is required. int
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds This property is required. Number
Span of time at a resolution of a second. The value must be between 1 and 3600, which is 3,600 seconds (one hour).
nanos Number
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

InstanceFromTemplateSchedulingLocalSsdRecoveryTimeout
, InstanceFromTemplateSchedulingLocalSsdRecoveryTimeoutArgs

Seconds
This property is required.
Changes to this property will trigger replacement.
int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
Nanos Changes to this property will trigger replacement. int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
Seconds
This property is required.
Changes to this property will trigger replacement.
int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
Nanos Changes to this property will trigger replacement. int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
Integer
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. Integer
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. number
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
Number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. Number
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

InstanceFromTemplateSchedulingMaxRunDuration
, InstanceFromTemplateSchedulingMaxRunDurationArgs

Seconds
This property is required.
Changes to this property will trigger replacement.
int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
Nanos Changes to this property will trigger replacement. int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
Seconds
This property is required.
Changes to this property will trigger replacement.
int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
Nanos Changes to this property will trigger replacement. int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
Integer
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. Integer
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. number
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
int
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. int
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.
seconds
This property is required.
Changes to this property will trigger replacement.
Number
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
nanos Changes to this property will trigger replacement. Number
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive.

InstanceFromTemplateSchedulingNodeAffinity
, InstanceFromTemplateSchedulingNodeAffinityArgs

Key This property is required. string
Operator This property is required. string
Values This property is required. List<string>
Key This property is required. string
Operator This property is required. string
Values This property is required. []string
key This property is required. String
operator This property is required. String
values This property is required. List<String>
key This property is required. string
operator This property is required. string
values This property is required. string[]
key This property is required. str
operator This property is required. str
values This property is required. Sequence[str]
key This property is required. String
operator This property is required. String
values This property is required. List<String>

InstanceFromTemplateSchedulingOnInstanceStopAction
, InstanceFromTemplateSchedulingOnInstanceStopActionArgs

DiscardLocalSsd Changes to this property will trigger replacement. bool
If true, the contents of any attached Local SSD disks will be discarded.
DiscardLocalSsd Changes to this property will trigger replacement. bool
If true, the contents of any attached Local SSD disks will be discarded.
discardLocalSsd Changes to this property will trigger replacement. Boolean
If true, the contents of any attached Local SSD disks will be discarded.
discardLocalSsd Changes to this property will trigger replacement. boolean
If true, the contents of any attached Local SSD disks will be discarded.
discard_local_ssd Changes to this property will trigger replacement. bool
If true, the contents of any attached Local SSD disks will be discarded.
discardLocalSsd Changes to this property will trigger replacement. Boolean
If true, the contents of any attached Local SSD disks will be discarded.

InstanceFromTemplateScratchDisk
, InstanceFromTemplateScratchDiskArgs

Interface This property is required. string
The disk interface used for attaching this disk. One of SCSI or NVME.
DeviceName string
Name with which the attached disk is accessible under /dev/disk/by-id/
Size Changes to this property will trigger replacement. int
The size of the disk in gigabytes. One of 375 or 3000.
Interface This property is required. string
The disk interface used for attaching this disk. One of SCSI or NVME.
DeviceName string
Name with which the attached disk is accessible under /dev/disk/by-id/
Size Changes to this property will trigger replacement. int
The size of the disk in gigabytes. One of 375 or 3000.
interface_ This property is required. String
The disk interface used for attaching this disk. One of SCSI or NVME.
deviceName String
Name with which the attached disk is accessible under /dev/disk/by-id/
size Changes to this property will trigger replacement. Integer
The size of the disk in gigabytes. One of 375 or 3000.
interface This property is required. string
The disk interface used for attaching this disk. One of SCSI or NVME.
deviceName string
Name with which the attached disk is accessible under /dev/disk/by-id/
size Changes to this property will trigger replacement. number
The size of the disk in gigabytes. One of 375 or 3000.
interface This property is required. str
The disk interface used for attaching this disk. One of SCSI or NVME.
device_name str
Name with which the attached disk is accessible under /dev/disk/by-id/
size Changes to this property will trigger replacement. int
The size of the disk in gigabytes. One of 375 or 3000.
interface This property is required. String
The disk interface used for attaching this disk. One of SCSI or NVME.
deviceName String
Name with which the attached disk is accessible under /dev/disk/by-id/
size Changes to this property will trigger replacement. Number
The size of the disk in gigabytes. One of 375 or 3000.

InstanceFromTemplateServiceAccount
, InstanceFromTemplateServiceAccountArgs

Scopes This property is required. List<string>
A list of service scopes.
Email string
The service account e-mail address.
Scopes This property is required. []string
A list of service scopes.
Email string
The service account e-mail address.
scopes This property is required. List<String>
A list of service scopes.
email String
The service account e-mail address.
scopes This property is required. string[]
A list of service scopes.
email string
The service account e-mail address.
scopes This property is required. Sequence[str]
A list of service scopes.
email str
The service account e-mail address.
scopes This property is required. List<String>
A list of service scopes.
email String
The service account e-mail address.

InstanceFromTemplateShieldedInstanceConfig
, InstanceFromTemplateShieldedInstanceConfigArgs

EnableIntegrityMonitoring bool
Whether integrity monitoring is enabled for the instance.
EnableSecureBoot bool
Whether secure boot is enabled for the instance.
EnableVtpm bool
Whether the instance uses vTPM.
EnableIntegrityMonitoring bool
Whether integrity monitoring is enabled for the instance.
EnableSecureBoot bool
Whether secure boot is enabled for the instance.
EnableVtpm bool
Whether the instance uses vTPM.
enableIntegrityMonitoring Boolean
Whether integrity monitoring is enabled for the instance.
enableSecureBoot Boolean
Whether secure boot is enabled for the instance.
enableVtpm Boolean
Whether the instance uses vTPM.
enableIntegrityMonitoring boolean
Whether integrity monitoring is enabled for the instance.
enableSecureBoot boolean
Whether secure boot is enabled for the instance.
enableVtpm boolean
Whether the instance uses vTPM.
enable_integrity_monitoring bool
Whether integrity monitoring is enabled for the instance.
enable_secure_boot bool
Whether secure boot is enabled for the instance.
enable_vtpm bool
Whether the instance uses vTPM.
enableIntegrityMonitoring Boolean
Whether integrity monitoring is enabled for the instance.
enableSecureBoot Boolean
Whether secure boot is enabled for the instance.
enableVtpm Boolean
Whether the instance uses vTPM.

Import

This resource does not support import.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Google Cloud (GCP) Classic pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.