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

gcp.compute.RegionInstanceTemplate

Explore with Pulumi AI

Import

Instance templates can be imported using any of these accepted formats:

  • projects/{{project}}/regions/{{region}}/instanceTemplates/{{name}}

  • {{project}}/{{name}}

  • {{name}}

When using the pulumi import command, instance templates can be imported using one of the formats above. For example:

$ pulumi import gcp:compute/regionInstanceTemplate:RegionInstanceTemplate default projects/{{project}}/regions/{{region}}/instanceTemplates/{{name}}
Copy
$ pulumi import gcp:compute/regionInstanceTemplate:RegionInstanceTemplate default {{project}}/{{name}}
Copy
$ pulumi import gcp:compute/regionInstanceTemplate:RegionInstanceTemplate default {{name}}
Copy

Create RegionInstanceTemplate Resource

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

Constructor syntax

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

@overload
def RegionInstanceTemplate(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           disks: Optional[Sequence[RegionInstanceTemplateDiskArgs]] = None,
                           machine_type: Optional[str] = None,
                           name: Optional[str] = None,
                           scheduling: Optional[RegionInstanceTemplateSchedulingArgs] = None,
                           confidential_instance_config: Optional[RegionInstanceTemplateConfidentialInstanceConfigArgs] = None,
                           enable_display: Optional[bool] = None,
                           guest_accelerators: Optional[Sequence[RegionInstanceTemplateGuestAcceleratorArgs]] = None,
                           instance_description: Optional[str] = None,
                           key_revocation_action_type: Optional[str] = None,
                           labels: Optional[Mapping[str, str]] = None,
                           can_ip_forward: Optional[bool] = None,
                           metadata: Optional[Mapping[str, str]] = None,
                           metadata_startup_script: Optional[str] = None,
                           min_cpu_platform: Optional[str] = None,
                           description: Optional[str] = None,
                           advanced_machine_features: Optional[RegionInstanceTemplateAdvancedMachineFeaturesArgs] = None,
                           region: Optional[str] = None,
                           network_performance_config: Optional[RegionInstanceTemplateNetworkPerformanceConfigArgs] = None,
                           partner_metadata: Optional[Mapping[str, str]] = None,
                           project: Optional[str] = None,
                           network_interfaces: Optional[Sequence[RegionInstanceTemplateNetworkInterfaceArgs]] = None,
                           reservation_affinity: Optional[RegionInstanceTemplateReservationAffinityArgs] = None,
                           resource_manager_tags: Optional[Mapping[str, str]] = None,
                           resource_policies: Optional[str] = None,
                           name_prefix: Optional[str] = None,
                           service_account: Optional[RegionInstanceTemplateServiceAccountArgs] = None,
                           shielded_instance_config: Optional[RegionInstanceTemplateShieldedInstanceConfigArgs] = None,
                           tags: Optional[Sequence[str]] = None)
func NewRegionInstanceTemplate(ctx *Context, name string, args RegionInstanceTemplateArgs, opts ...ResourceOption) (*RegionInstanceTemplate, error)
public RegionInstanceTemplate(string name, RegionInstanceTemplateArgs args, CustomResourceOptions? opts = null)
public RegionInstanceTemplate(String name, RegionInstanceTemplateArgs args)
public RegionInstanceTemplate(String name, RegionInstanceTemplateArgs args, CustomResourceOptions options)
type: gcp:compute:RegionInstanceTemplate
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. RegionInstanceTemplateArgs
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. RegionInstanceTemplateArgs
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. RegionInstanceTemplateArgs
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. RegionInstanceTemplateArgs
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. RegionInstanceTemplateArgs
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 regionInstanceTemplateResource = new Gcp.Compute.RegionInstanceTemplate("regionInstanceTemplateResource", new()
{
    Disks = new[]
    {
        new Gcp.Compute.Inputs.RegionInstanceTemplateDiskArgs
        {
            AutoDelete = false,
            Boot = false,
            DeviceName = "string",
            DiskEncryptionKey = new Gcp.Compute.Inputs.RegionInstanceTemplateDiskDiskEncryptionKeyArgs
            {
                KmsKeySelfLink = "string",
            },
            DiskName = "string",
            DiskSizeGb = 0,
            DiskType = "string",
            Interface = "string",
            Labels = 
            {
                { "string", "string" },
            },
            Mode = "string",
            ProvisionedIops = 0,
            ProvisionedThroughput = 0,
            ResourceManagerTags = 
            {
                { "string", "string" },
            },
            ResourcePolicies = "string",
            Source = "string",
            SourceImage = "string",
            SourceImageEncryptionKey = new Gcp.Compute.Inputs.RegionInstanceTemplateDiskSourceImageEncryptionKeyArgs
            {
                KmsKeySelfLink = "string",
                KmsKeyServiceAccount = "string",
            },
            SourceSnapshot = "string",
            SourceSnapshotEncryptionKey = new Gcp.Compute.Inputs.RegionInstanceTemplateDiskSourceSnapshotEncryptionKeyArgs
            {
                KmsKeySelfLink = "string",
                KmsKeyServiceAccount = "string",
            },
            Type = "string",
        },
    },
    MachineType = "string",
    Name = "string",
    Scheduling = new Gcp.Compute.Inputs.RegionInstanceTemplateSchedulingArgs
    {
        AutomaticRestart = false,
        AvailabilityDomain = 0,
        GracefulShutdown = new Gcp.Compute.Inputs.RegionInstanceTemplateSchedulingGracefulShutdownArgs
        {
            Enabled = false,
            MaxDuration = new Gcp.Compute.Inputs.RegionInstanceTemplateSchedulingGracefulShutdownMaxDurationArgs
            {
                Seconds = 0,
                Nanos = 0,
            },
        },
        HostErrorTimeoutSeconds = 0,
        InstanceTerminationAction = "string",
        LocalSsdRecoveryTimeouts = new[]
        {
            new Gcp.Compute.Inputs.RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeoutArgs
            {
                Seconds = 0,
                Nanos = 0,
            },
        },
        MaintenanceInterval = "string",
        MaxRunDuration = new Gcp.Compute.Inputs.RegionInstanceTemplateSchedulingMaxRunDurationArgs
        {
            Seconds = 0,
            Nanos = 0,
        },
        MinNodeCpus = 0,
        NodeAffinities = new[]
        {
            new Gcp.Compute.Inputs.RegionInstanceTemplateSchedulingNodeAffinityArgs
            {
                Key = "string",
                Operator = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
        OnHostMaintenance = "string",
        OnInstanceStopAction = new Gcp.Compute.Inputs.RegionInstanceTemplateSchedulingOnInstanceStopActionArgs
        {
            DiscardLocalSsd = false,
        },
        Preemptible = false,
        ProvisioningModel = "string",
        TerminationTime = "string",
    },
    ConfidentialInstanceConfig = new Gcp.Compute.Inputs.RegionInstanceTemplateConfidentialInstanceConfigArgs
    {
        ConfidentialInstanceType = "string",
        EnableConfidentialCompute = false,
    },
    EnableDisplay = false,
    GuestAccelerators = new[]
    {
        new Gcp.Compute.Inputs.RegionInstanceTemplateGuestAcceleratorArgs
        {
            Count = 0,
            Type = "string",
        },
    },
    InstanceDescription = "string",
    KeyRevocationActionType = "string",
    Labels = 
    {
        { "string", "string" },
    },
    CanIpForward = false,
    Metadata = 
    {
        { "string", "string" },
    },
    MetadataStartupScript = "string",
    MinCpuPlatform = "string",
    Description = "string",
    AdvancedMachineFeatures = new Gcp.Compute.Inputs.RegionInstanceTemplateAdvancedMachineFeaturesArgs
    {
        EnableNestedVirtualization = false,
        EnableUefiNetworking = false,
        PerformanceMonitoringUnit = "string",
        ThreadsPerCore = 0,
        TurboMode = "string",
        VisibleCoreCount = 0,
    },
    Region = "string",
    NetworkPerformanceConfig = new Gcp.Compute.Inputs.RegionInstanceTemplateNetworkPerformanceConfigArgs
    {
        TotalEgressBandwidthTier = "string",
    },
    PartnerMetadata = 
    {
        { "string", "string" },
    },
    Project = "string",
    NetworkInterfaces = new[]
    {
        new Gcp.Compute.Inputs.RegionInstanceTemplateNetworkInterfaceArgs
        {
            AccessConfigs = new[]
            {
                new Gcp.Compute.Inputs.RegionInstanceTemplateNetworkInterfaceAccessConfigArgs
                {
                    NatIp = "string",
                    NetworkTier = "string",
                    PublicPtrDomainName = "string",
                },
            },
            AliasIpRanges = new[]
            {
                new Gcp.Compute.Inputs.RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs
                {
                    IpCidrRange = "string",
                    SubnetworkRangeName = "string",
                },
            },
            InternalIpv6PrefixLength = 0,
            Ipv6AccessConfigs = new[]
            {
                new Gcp.Compute.Inputs.RegionInstanceTemplateNetworkInterfaceIpv6AccessConfigArgs
                {
                    NetworkTier = "string",
                    ExternalIpv6 = "string",
                    ExternalIpv6PrefixLength = "string",
                    Name = "string",
                    PublicPtrDomainName = "string",
                },
            },
            Ipv6AccessType = "string",
            Ipv6Address = "string",
            Name = "string",
            Network = "string",
            NetworkIp = "string",
            NicType = "string",
            QueueCount = 0,
            StackType = "string",
            Subnetwork = "string",
            SubnetworkProject = "string",
        },
    },
    ReservationAffinity = new Gcp.Compute.Inputs.RegionInstanceTemplateReservationAffinityArgs
    {
        Type = "string",
        SpecificReservation = new Gcp.Compute.Inputs.RegionInstanceTemplateReservationAffinitySpecificReservationArgs
        {
            Key = "string",
            Values = new[]
            {
                "string",
            },
        },
    },
    ResourceManagerTags = 
    {
        { "string", "string" },
    },
    ResourcePolicies = "string",
    NamePrefix = "string",
    ServiceAccount = new Gcp.Compute.Inputs.RegionInstanceTemplateServiceAccountArgs
    {
        Scopes = new[]
        {
            "string",
        },
        Email = "string",
    },
    ShieldedInstanceConfig = new Gcp.Compute.Inputs.RegionInstanceTemplateShieldedInstanceConfigArgs
    {
        EnableIntegrityMonitoring = false,
        EnableSecureBoot = false,
        EnableVtpm = false,
    },
    Tags = new[]
    {
        "string",
    },
});
Copy
example, err := compute.NewRegionInstanceTemplate(ctx, "regionInstanceTemplateResource", &compute.RegionInstanceTemplateArgs{
	Disks: compute.RegionInstanceTemplateDiskArray{
		&compute.RegionInstanceTemplateDiskArgs{
			AutoDelete: pulumi.Bool(false),
			Boot:       pulumi.Bool(false),
			DeviceName: pulumi.String("string"),
			DiskEncryptionKey: &compute.RegionInstanceTemplateDiskDiskEncryptionKeyArgs{
				KmsKeySelfLink: pulumi.String("string"),
			},
			DiskName:   pulumi.String("string"),
			DiskSizeGb: pulumi.Int(0),
			DiskType:   pulumi.String("string"),
			Interface:  pulumi.String("string"),
			Labels: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			Mode:                  pulumi.String("string"),
			ProvisionedIops:       pulumi.Int(0),
			ProvisionedThroughput: pulumi.Int(0),
			ResourceManagerTags: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
			ResourcePolicies: pulumi.String("string"),
			Source:           pulumi.String("string"),
			SourceImage:      pulumi.String("string"),
			SourceImageEncryptionKey: &compute.RegionInstanceTemplateDiskSourceImageEncryptionKeyArgs{
				KmsKeySelfLink:       pulumi.String("string"),
				KmsKeyServiceAccount: pulumi.String("string"),
			},
			SourceSnapshot: pulumi.String("string"),
			SourceSnapshotEncryptionKey: &compute.RegionInstanceTemplateDiskSourceSnapshotEncryptionKeyArgs{
				KmsKeySelfLink:       pulumi.String("string"),
				KmsKeyServiceAccount: pulumi.String("string"),
			},
			Type: pulumi.String("string"),
		},
	},
	MachineType: pulumi.String("string"),
	Name:        pulumi.String("string"),
	Scheduling: &compute.RegionInstanceTemplateSchedulingArgs{
		AutomaticRestart:   pulumi.Bool(false),
		AvailabilityDomain: pulumi.Int(0),
		GracefulShutdown: &compute.RegionInstanceTemplateSchedulingGracefulShutdownArgs{
			Enabled: pulumi.Bool(false),
			MaxDuration: &compute.RegionInstanceTemplateSchedulingGracefulShutdownMaxDurationArgs{
				Seconds: pulumi.Int(0),
				Nanos:   pulumi.Int(0),
			},
		},
		HostErrorTimeoutSeconds:   pulumi.Int(0),
		InstanceTerminationAction: pulumi.String("string"),
		LocalSsdRecoveryTimeouts: compute.RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeoutArray{
			&compute.RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeoutArgs{
				Seconds: pulumi.Int(0),
				Nanos:   pulumi.Int(0),
			},
		},
		MaintenanceInterval: pulumi.String("string"),
		MaxRunDuration: &compute.RegionInstanceTemplateSchedulingMaxRunDurationArgs{
			Seconds: pulumi.Int(0),
			Nanos:   pulumi.Int(0),
		},
		MinNodeCpus: pulumi.Int(0),
		NodeAffinities: compute.RegionInstanceTemplateSchedulingNodeAffinityArray{
			&compute.RegionInstanceTemplateSchedulingNodeAffinityArgs{
				Key:      pulumi.String("string"),
				Operator: pulumi.String("string"),
				Values: pulumi.StringArray{
					pulumi.String("string"),
				},
			},
		},
		OnHostMaintenance: pulumi.String("string"),
		OnInstanceStopAction: &compute.RegionInstanceTemplateSchedulingOnInstanceStopActionArgs{
			DiscardLocalSsd: pulumi.Bool(false),
		},
		Preemptible:       pulumi.Bool(false),
		ProvisioningModel: pulumi.String("string"),
		TerminationTime:   pulumi.String("string"),
	},
	ConfidentialInstanceConfig: &compute.RegionInstanceTemplateConfidentialInstanceConfigArgs{
		ConfidentialInstanceType:  pulumi.String("string"),
		EnableConfidentialCompute: pulumi.Bool(false),
	},
	EnableDisplay: pulumi.Bool(false),
	GuestAccelerators: compute.RegionInstanceTemplateGuestAcceleratorArray{
		&compute.RegionInstanceTemplateGuestAcceleratorArgs{
			Count: pulumi.Int(0),
			Type:  pulumi.String("string"),
		},
	},
	InstanceDescription:     pulumi.String("string"),
	KeyRevocationActionType: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	CanIpForward: pulumi.Bool(false),
	Metadata: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	MetadataStartupScript: pulumi.String("string"),
	MinCpuPlatform:        pulumi.String("string"),
	Description:           pulumi.String("string"),
	AdvancedMachineFeatures: &compute.RegionInstanceTemplateAdvancedMachineFeaturesArgs{
		EnableNestedVirtualization: pulumi.Bool(false),
		EnableUefiNetworking:       pulumi.Bool(false),
		PerformanceMonitoringUnit:  pulumi.String("string"),
		ThreadsPerCore:             pulumi.Int(0),
		TurboMode:                  pulumi.String("string"),
		VisibleCoreCount:           pulumi.Int(0),
	},
	Region: pulumi.String("string"),
	NetworkPerformanceConfig: &compute.RegionInstanceTemplateNetworkPerformanceConfigArgs{
		TotalEgressBandwidthTier: pulumi.String("string"),
	},
	PartnerMetadata: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Project: pulumi.String("string"),
	NetworkInterfaces: compute.RegionInstanceTemplateNetworkInterfaceArray{
		&compute.RegionInstanceTemplateNetworkInterfaceArgs{
			AccessConfigs: compute.RegionInstanceTemplateNetworkInterfaceAccessConfigArray{
				&compute.RegionInstanceTemplateNetworkInterfaceAccessConfigArgs{
					NatIp:               pulumi.String("string"),
					NetworkTier:         pulumi.String("string"),
					PublicPtrDomainName: pulumi.String("string"),
				},
			},
			AliasIpRanges: compute.RegionInstanceTemplateNetworkInterfaceAliasIpRangeArray{
				&compute.RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs{
					IpCidrRange:         pulumi.String("string"),
					SubnetworkRangeName: pulumi.String("string"),
				},
			},
			InternalIpv6PrefixLength: pulumi.Int(0),
			Ipv6AccessConfigs: compute.RegionInstanceTemplateNetworkInterfaceIpv6AccessConfigArray{
				&compute.RegionInstanceTemplateNetworkInterfaceIpv6AccessConfigArgs{
					NetworkTier:              pulumi.String("string"),
					ExternalIpv6:             pulumi.String("string"),
					ExternalIpv6PrefixLength: pulumi.String("string"),
					Name:                     pulumi.String("string"),
					PublicPtrDomainName:      pulumi.String("string"),
				},
			},
			Ipv6AccessType:    pulumi.String("string"),
			Ipv6Address:       pulumi.String("string"),
			Name:              pulumi.String("string"),
			Network:           pulumi.String("string"),
			NetworkIp:         pulumi.String("string"),
			NicType:           pulumi.String("string"),
			QueueCount:        pulumi.Int(0),
			StackType:         pulumi.String("string"),
			Subnetwork:        pulumi.String("string"),
			SubnetworkProject: pulumi.String("string"),
		},
	},
	ReservationAffinity: &compute.RegionInstanceTemplateReservationAffinityArgs{
		Type: pulumi.String("string"),
		SpecificReservation: &compute.RegionInstanceTemplateReservationAffinitySpecificReservationArgs{
			Key: pulumi.String("string"),
			Values: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	ResourceManagerTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	ResourcePolicies: pulumi.String("string"),
	NamePrefix:       pulumi.String("string"),
	ServiceAccount: &compute.RegionInstanceTemplateServiceAccountArgs{
		Scopes: pulumi.StringArray{
			pulumi.String("string"),
		},
		Email: pulumi.String("string"),
	},
	ShieldedInstanceConfig: &compute.RegionInstanceTemplateShieldedInstanceConfigArgs{
		EnableIntegrityMonitoring: pulumi.Bool(false),
		EnableSecureBoot:          pulumi.Bool(false),
		EnableVtpm:                pulumi.Bool(false),
	},
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
})
Copy
var regionInstanceTemplateResource = new RegionInstanceTemplate("regionInstanceTemplateResource", RegionInstanceTemplateArgs.builder()
    .disks(RegionInstanceTemplateDiskArgs.builder()
        .autoDelete(false)
        .boot(false)
        .deviceName("string")
        .diskEncryptionKey(RegionInstanceTemplateDiskDiskEncryptionKeyArgs.builder()
            .kmsKeySelfLink("string")
            .build())
        .diskName("string")
        .diskSizeGb(0)
        .diskType("string")
        .interface_("string")
        .labels(Map.of("string", "string"))
        .mode("string")
        .provisionedIops(0)
        .provisionedThroughput(0)
        .resourceManagerTags(Map.of("string", "string"))
        .resourcePolicies("string")
        .source("string")
        .sourceImage("string")
        .sourceImageEncryptionKey(RegionInstanceTemplateDiskSourceImageEncryptionKeyArgs.builder()
            .kmsKeySelfLink("string")
            .kmsKeyServiceAccount("string")
            .build())
        .sourceSnapshot("string")
        .sourceSnapshotEncryptionKey(RegionInstanceTemplateDiskSourceSnapshotEncryptionKeyArgs.builder()
            .kmsKeySelfLink("string")
            .kmsKeyServiceAccount("string")
            .build())
        .type("string")
        .build())
    .machineType("string")
    .name("string")
    .scheduling(RegionInstanceTemplateSchedulingArgs.builder()
        .automaticRestart(false)
        .availabilityDomain(0)
        .gracefulShutdown(RegionInstanceTemplateSchedulingGracefulShutdownArgs.builder()
            .enabled(false)
            .maxDuration(RegionInstanceTemplateSchedulingGracefulShutdownMaxDurationArgs.builder()
                .seconds(0)
                .nanos(0)
                .build())
            .build())
        .hostErrorTimeoutSeconds(0)
        .instanceTerminationAction("string")
        .localSsdRecoveryTimeouts(RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeoutArgs.builder()
            .seconds(0)
            .nanos(0)
            .build())
        .maintenanceInterval("string")
        .maxRunDuration(RegionInstanceTemplateSchedulingMaxRunDurationArgs.builder()
            .seconds(0)
            .nanos(0)
            .build())
        .minNodeCpus(0)
        .nodeAffinities(RegionInstanceTemplateSchedulingNodeAffinityArgs.builder()
            .key("string")
            .operator("string")
            .values("string")
            .build())
        .onHostMaintenance("string")
        .onInstanceStopAction(RegionInstanceTemplateSchedulingOnInstanceStopActionArgs.builder()
            .discardLocalSsd(false)
            .build())
        .preemptible(false)
        .provisioningModel("string")
        .terminationTime("string")
        .build())
    .confidentialInstanceConfig(RegionInstanceTemplateConfidentialInstanceConfigArgs.builder()
        .confidentialInstanceType("string")
        .enableConfidentialCompute(false)
        .build())
    .enableDisplay(false)
    .guestAccelerators(RegionInstanceTemplateGuestAcceleratorArgs.builder()
        .count(0)
        .type("string")
        .build())
    .instanceDescription("string")
    .keyRevocationActionType("string")
    .labels(Map.of("string", "string"))
    .canIpForward(false)
    .metadata(Map.of("string", "string"))
    .metadataStartupScript("string")
    .minCpuPlatform("string")
    .description("string")
    .advancedMachineFeatures(RegionInstanceTemplateAdvancedMachineFeaturesArgs.builder()
        .enableNestedVirtualization(false)
        .enableUefiNetworking(false)
        .performanceMonitoringUnit("string")
        .threadsPerCore(0)
        .turboMode("string")
        .visibleCoreCount(0)
        .build())
    .region("string")
    .networkPerformanceConfig(RegionInstanceTemplateNetworkPerformanceConfigArgs.builder()
        .totalEgressBandwidthTier("string")
        .build())
    .partnerMetadata(Map.of("string", "string"))
    .project("string")
    .networkInterfaces(RegionInstanceTemplateNetworkInterfaceArgs.builder()
        .accessConfigs(RegionInstanceTemplateNetworkInterfaceAccessConfigArgs.builder()
            .natIp("string")
            .networkTier("string")
            .publicPtrDomainName("string")
            .build())
        .aliasIpRanges(RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs.builder()
            .ipCidrRange("string")
            .subnetworkRangeName("string")
            .build())
        .internalIpv6PrefixLength(0)
        .ipv6AccessConfigs(RegionInstanceTemplateNetworkInterfaceIpv6AccessConfigArgs.builder()
            .networkTier("string")
            .externalIpv6("string")
            .externalIpv6PrefixLength("string")
            .name("string")
            .publicPtrDomainName("string")
            .build())
        .ipv6AccessType("string")
        .ipv6Address("string")
        .name("string")
        .network("string")
        .networkIp("string")
        .nicType("string")
        .queueCount(0)
        .stackType("string")
        .subnetwork("string")
        .subnetworkProject("string")
        .build())
    .reservationAffinity(RegionInstanceTemplateReservationAffinityArgs.builder()
        .type("string")
        .specificReservation(RegionInstanceTemplateReservationAffinitySpecificReservationArgs.builder()
            .key("string")
            .values("string")
            .build())
        .build())
    .resourceManagerTags(Map.of("string", "string"))
    .resourcePolicies("string")
    .namePrefix("string")
    .serviceAccount(RegionInstanceTemplateServiceAccountArgs.builder()
        .scopes("string")
        .email("string")
        .build())
    .shieldedInstanceConfig(RegionInstanceTemplateShieldedInstanceConfigArgs.builder()
        .enableIntegrityMonitoring(false)
        .enableSecureBoot(false)
        .enableVtpm(false)
        .build())
    .tags("string")
    .build());
Copy
region_instance_template_resource = gcp.compute.RegionInstanceTemplate("regionInstanceTemplateResource",
    disks=[{
        "auto_delete": False,
        "boot": False,
        "device_name": "string",
        "disk_encryption_key": {
            "kms_key_self_link": "string",
        },
        "disk_name": "string",
        "disk_size_gb": 0,
        "disk_type": "string",
        "interface": "string",
        "labels": {
            "string": "string",
        },
        "mode": "string",
        "provisioned_iops": 0,
        "provisioned_throughput": 0,
        "resource_manager_tags": {
            "string": "string",
        },
        "resource_policies": "string",
        "source": "string",
        "source_image": "string",
        "source_image_encryption_key": {
            "kms_key_self_link": "string",
            "kms_key_service_account": "string",
        },
        "source_snapshot": "string",
        "source_snapshot_encryption_key": {
            "kms_key_self_link": "string",
            "kms_key_service_account": "string",
        },
        "type": "string",
    }],
    machine_type="string",
    name="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_timeouts": [{
            "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",
    },
    confidential_instance_config={
        "confidential_instance_type": "string",
        "enable_confidential_compute": False,
    },
    enable_display=False,
    guest_accelerators=[{
        "count": 0,
        "type": "string",
    }],
    instance_description="string",
    key_revocation_action_type="string",
    labels={
        "string": "string",
    },
    can_ip_forward=False,
    metadata={
        "string": "string",
    },
    metadata_startup_script="string",
    min_cpu_platform="string",
    description="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,
    },
    region="string",
    network_performance_config={
        "total_egress_bandwidth_tier": "string",
    },
    partner_metadata={
        "string": "string",
    },
    project="string",
    network_interfaces=[{
        "access_configs": [{
            "nat_ip": "string",
            "network_tier": "string",
            "public_ptr_domain_name": "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",
        }],
        "ipv6_access_type": "string",
        "ipv6_address": "string",
        "name": "string",
        "network": "string",
        "network_ip": "string",
        "nic_type": "string",
        "queue_count": 0,
        "stack_type": "string",
        "subnetwork": "string",
        "subnetwork_project": "string",
    }],
    reservation_affinity={
        "type": "string",
        "specific_reservation": {
            "key": "string",
            "values": ["string"],
        },
    },
    resource_manager_tags={
        "string": "string",
    },
    resource_policies="string",
    name_prefix="string",
    service_account={
        "scopes": ["string"],
        "email": "string",
    },
    shielded_instance_config={
        "enable_integrity_monitoring": False,
        "enable_secure_boot": False,
        "enable_vtpm": False,
    },
    tags=["string"])
Copy
const regionInstanceTemplateResource = new gcp.compute.RegionInstanceTemplate("regionInstanceTemplateResource", {
    disks: [{
        autoDelete: false,
        boot: false,
        deviceName: "string",
        diskEncryptionKey: {
            kmsKeySelfLink: "string",
        },
        diskName: "string",
        diskSizeGb: 0,
        diskType: "string",
        "interface": "string",
        labels: {
            string: "string",
        },
        mode: "string",
        provisionedIops: 0,
        provisionedThroughput: 0,
        resourceManagerTags: {
            string: "string",
        },
        resourcePolicies: "string",
        source: "string",
        sourceImage: "string",
        sourceImageEncryptionKey: {
            kmsKeySelfLink: "string",
            kmsKeyServiceAccount: "string",
        },
        sourceSnapshot: "string",
        sourceSnapshotEncryptionKey: {
            kmsKeySelfLink: "string",
            kmsKeyServiceAccount: "string",
        },
        type: "string",
    }],
    machineType: "string",
    name: "string",
    scheduling: {
        automaticRestart: false,
        availabilityDomain: 0,
        gracefulShutdown: {
            enabled: false,
            maxDuration: {
                seconds: 0,
                nanos: 0,
            },
        },
        hostErrorTimeoutSeconds: 0,
        instanceTerminationAction: "string",
        localSsdRecoveryTimeouts: [{
            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",
    },
    confidentialInstanceConfig: {
        confidentialInstanceType: "string",
        enableConfidentialCompute: false,
    },
    enableDisplay: false,
    guestAccelerators: [{
        count: 0,
        type: "string",
    }],
    instanceDescription: "string",
    keyRevocationActionType: "string",
    labels: {
        string: "string",
    },
    canIpForward: false,
    metadata: {
        string: "string",
    },
    metadataStartupScript: "string",
    minCpuPlatform: "string",
    description: "string",
    advancedMachineFeatures: {
        enableNestedVirtualization: false,
        enableUefiNetworking: false,
        performanceMonitoringUnit: "string",
        threadsPerCore: 0,
        turboMode: "string",
        visibleCoreCount: 0,
    },
    region: "string",
    networkPerformanceConfig: {
        totalEgressBandwidthTier: "string",
    },
    partnerMetadata: {
        string: "string",
    },
    project: "string",
    networkInterfaces: [{
        accessConfigs: [{
            natIp: "string",
            networkTier: "string",
            publicPtrDomainName: "string",
        }],
        aliasIpRanges: [{
            ipCidrRange: "string",
            subnetworkRangeName: "string",
        }],
        internalIpv6PrefixLength: 0,
        ipv6AccessConfigs: [{
            networkTier: "string",
            externalIpv6: "string",
            externalIpv6PrefixLength: "string",
            name: "string",
            publicPtrDomainName: "string",
        }],
        ipv6AccessType: "string",
        ipv6Address: "string",
        name: "string",
        network: "string",
        networkIp: "string",
        nicType: "string",
        queueCount: 0,
        stackType: "string",
        subnetwork: "string",
        subnetworkProject: "string",
    }],
    reservationAffinity: {
        type: "string",
        specificReservation: {
            key: "string",
            values: ["string"],
        },
    },
    resourceManagerTags: {
        string: "string",
    },
    resourcePolicies: "string",
    namePrefix: "string",
    serviceAccount: {
        scopes: ["string"],
        email: "string",
    },
    shieldedInstanceConfig: {
        enableIntegrityMonitoring: false,
        enableSecureBoot: false,
        enableVtpm: false,
    },
    tags: ["string"],
});
Copy
type: gcp:compute:RegionInstanceTemplate
properties:
    advancedMachineFeatures:
        enableNestedVirtualization: false
        enableUefiNetworking: false
        performanceMonitoringUnit: string
        threadsPerCore: 0
        turboMode: string
        visibleCoreCount: 0
    canIpForward: false
    confidentialInstanceConfig:
        confidentialInstanceType: string
        enableConfidentialCompute: false
    description: string
    disks:
        - autoDelete: false
          boot: false
          deviceName: string
          diskEncryptionKey:
            kmsKeySelfLink: string
          diskName: string
          diskSizeGb: 0
          diskType: string
          interface: string
          labels:
            string: string
          mode: string
          provisionedIops: 0
          provisionedThroughput: 0
          resourceManagerTags:
            string: string
          resourcePolicies: string
          source: string
          sourceImage: string
          sourceImageEncryptionKey:
            kmsKeySelfLink: string
            kmsKeyServiceAccount: string
          sourceSnapshot: string
          sourceSnapshotEncryptionKey:
            kmsKeySelfLink: string
            kmsKeyServiceAccount: string
          type: string
    enableDisplay: false
    guestAccelerators:
        - count: 0
          type: string
    instanceDescription: string
    keyRevocationActionType: string
    labels:
        string: string
    machineType: string
    metadata:
        string: string
    metadataStartupScript: string
    minCpuPlatform: string
    name: string
    namePrefix: string
    networkInterfaces:
        - accessConfigs:
            - natIp: string
              networkTier: string
              publicPtrDomainName: string
          aliasIpRanges:
            - ipCidrRange: string
              subnetworkRangeName: string
          internalIpv6PrefixLength: 0
          ipv6AccessConfigs:
            - externalIpv6: string
              externalIpv6PrefixLength: string
              name: string
              networkTier: string
              publicPtrDomainName: string
          ipv6AccessType: string
          ipv6Address: string
          name: string
          network: string
          networkIp: string
          nicType: string
          queueCount: 0
          stackType: string
          subnetwork: string
          subnetworkProject: string
    networkPerformanceConfig:
        totalEgressBandwidthTier: string
    partnerMetadata:
        string: string
    project: string
    region: string
    reservationAffinity:
        specificReservation:
            key: string
            values:
                - string
        type: string
    resourceManagerTags:
        string: string
    resourcePolicies: string
    scheduling:
        automaticRestart: false
        availabilityDomain: 0
        gracefulShutdown:
            enabled: false
            maxDuration:
                nanos: 0
                seconds: 0
        hostErrorTimeoutSeconds: 0
        instanceTerminationAction: string
        localSsdRecoveryTimeouts:
            - 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
    serviceAccount:
        email: string
        scopes:
            - string
    shieldedInstanceConfig:
        enableIntegrityMonitoring: false
        enableSecureBoot: false
        enableVtpm: false
    tags:
        - string
Copy

RegionInstanceTemplate 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 RegionInstanceTemplate resource accepts the following input properties:

Disks
This property is required.
Changes to this property will trigger replacement.
List<RegionInstanceTemplateDisk>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
MachineType
This property is required.
Changes to this property will trigger replacement.
string

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


AdvancedMachineFeatures Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeatures
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
CanIpForward Changes to this property will trigger replacement. bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
ConfidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfig
Enable Confidential Mode on this VM. Structure is documented below
Description Changes to this property will trigger replacement. string
A brief description of this resource.
EnableDisplay Changes to this property will trigger replacement. bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
GuestAccelerators Changes to this property will trigger replacement. List<RegionInstanceTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
InstanceDescription Changes to this property will trigger replacement. string
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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.

Metadata Changes to this property will trigger replacement. Dictionary<string, string>
Metadata key/value pairs to make available from within instances created from this template.
MetadataStartupScript Changes to this property will trigger replacement. string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
MinCpuPlatform Changes to this property will trigger replacement. string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
Name Changes to this property will trigger replacement. string
NamePrefix Changes to this property will trigger replacement. string

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

NetworkInterfaces Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterface>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
NetworkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfig
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
PartnerMetadata Dictionary<string, string>
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Region Changes to this property will trigger replacement. string
The Region in which the resource belongs. If region is not provided, the provider region is used.
ReservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinity
Specifies the reservations that this instance can consume from. Structure is documented below.
ResourceManagerTags Changes to this property will trigger replacement. Dictionary<string, string>
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
ResourcePolicies Changes to this property will trigger replacement. string
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
Scheduling Changes to this property will trigger replacement. RegionInstanceTemplateScheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
ServiceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccount
Service account to attach to the instance. Structure is documented below.
ShieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
Tags Changes to this property will trigger replacement. List<string>
Tags to attach to the instance.
Disks
This property is required.
Changes to this property will trigger replacement.
[]RegionInstanceTemplateDiskArgs
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
MachineType
This property is required.
Changes to this property will trigger replacement.
string

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


AdvancedMachineFeatures Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeaturesArgs
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
CanIpForward Changes to this property will trigger replacement. bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
ConfidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfigArgs
Enable Confidential Mode on this VM. Structure is documented below
Description Changes to this property will trigger replacement. string
A brief description of this resource.
EnableDisplay Changes to this property will trigger replacement. bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
GuestAccelerators Changes to this property will trigger replacement. []RegionInstanceTemplateGuestAcceleratorArgs
List of the type and count of accelerator cards attached to the instance. Structure documented below.
InstanceDescription Changes to this property will trigger replacement. string
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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.

Metadata Changes to this property will trigger replacement. map[string]string
Metadata key/value pairs to make available from within instances created from this template.
MetadataStartupScript Changes to this property will trigger replacement. string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
MinCpuPlatform Changes to this property will trigger replacement. string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
Name Changes to this property will trigger replacement. string
NamePrefix Changes to this property will trigger replacement. string

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

NetworkInterfaces Changes to this property will trigger replacement. []RegionInstanceTemplateNetworkInterfaceArgs
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
NetworkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
PartnerMetadata map[string]string
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Region Changes to this property will trigger replacement. string
The Region in which the resource belongs. If region is not provided, the provider region is used.
ReservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from. Structure is documented below.
ResourceManagerTags Changes to this property will trigger replacement. map[string]string
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
ResourcePolicies Changes to this property will trigger replacement. string
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
Scheduling Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingArgs
The scheduling strategy to use. More details about this configuration option are detailed below.
ServiceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccountArgs
Service account to attach to the instance. Structure is documented below.
ShieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfigArgs
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
Tags Changes to this property will trigger replacement. []string
Tags to attach to the instance.
disks
This property is required.
Changes to this property will trigger replacement.
List<RegionInstanceTemplateDisk>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
machineType
This property is required.
Changes to this property will trigger replacement.
String

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


advancedMachineFeatures Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeatures
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
canIpForward Changes to this property will trigger replacement. Boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfig
Enable Confidential Mode on this VM. Structure is documented below
description Changes to this property will trigger replacement. String
A brief description of this resource.
enableDisplay Changes to this property will trigger replacement. Boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators Changes to this property will trigger replacement. List<RegionInstanceTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instanceDescription Changes to this property will trigger replacement. String
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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.

metadata Changes to this property will trigger replacement. Map<String,String>
Metadata key/value pairs to make available from within instances created from this template.
metadataStartupScript Changes to this property will trigger replacement. String
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform Changes to this property will trigger replacement. String
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. String
namePrefix Changes to this property will trigger replacement. String

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

networkInterfaces Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterface>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfig
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partnerMetadata Map<String,String>
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. String
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinity
Specifies the reservations that this instance can consume from. Structure is documented below.
resourceManagerTags Changes to this property will trigger replacement. Map<String,String>
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. String
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. RegionInstanceTemplateScheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
serviceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccount
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. List<String>
Tags to attach to the instance.
disks
This property is required.
Changes to this property will trigger replacement.
RegionInstanceTemplateDisk[]
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
machineType
This property is required.
Changes to this property will trigger replacement.
string

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


advancedMachineFeatures Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeatures
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
canIpForward Changes to this property will trigger replacement. boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfig
Enable Confidential Mode on this VM. Structure is documented below
description Changes to this property will trigger replacement. string
A brief description of this resource.
enableDisplay Changes to this property will trigger replacement. boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators Changes to this property will trigger replacement. RegionInstanceTemplateGuestAccelerator[]
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instanceDescription Changes to this property will trigger replacement. string
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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.

metadata Changes to this property will trigger replacement. {[key: string]: string}
Metadata key/value pairs to make available from within instances created from this template.
metadataStartupScript Changes to this property will trigger replacement. string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform Changes to this property will trigger replacement. string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. string
namePrefix Changes to this property will trigger replacement. string

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

networkInterfaces Changes to this property will trigger replacement. RegionInstanceTemplateNetworkInterface[]
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfig
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partnerMetadata {[key: string]: string}
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. string
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinity
Specifies the reservations that this instance can consume from. Structure is documented below.
resourceManagerTags Changes to this property will trigger replacement. {[key: string]: string}
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. string
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. RegionInstanceTemplateScheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
serviceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccount
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. string[]
Tags to attach to the instance.
disks
This property is required.
Changes to this property will trigger replacement.
Sequence[RegionInstanceTemplateDiskArgs]
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
machine_type
This property is required.
Changes to this property will trigger replacement.
str

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


advanced_machine_features Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeaturesArgs
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
can_ip_forward Changes to this property will trigger replacement. bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidential_instance_config Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfigArgs
Enable Confidential Mode on this VM. Structure is documented below
description Changes to this property will trigger replacement. str
A brief description of this resource.
enable_display Changes to this property will trigger replacement. bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guest_accelerators Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateGuestAcceleratorArgs]
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instance_description Changes to this property will trigger replacement. str
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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.

metadata Changes to this property will trigger replacement. Mapping[str, str]
Metadata key/value pairs to make available from within instances created from this template.
metadata_startup_script Changes to this property will trigger replacement. str
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
min_cpu_platform Changes to this property will trigger replacement. str
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. str
name_prefix Changes to this property will trigger replacement. str

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

network_interfaces Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateNetworkInterfaceArgs]
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
network_performance_config Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partner_metadata Mapping[str, str]
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. str
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservation_affinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from. Structure is documented below.
resource_manager_tags Changes to this property will trigger replacement. Mapping[str, str]
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resource_policies Changes to this property will trigger replacement. str
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingArgs
The scheduling strategy to use. More details about this configuration option are detailed below.
service_account Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccountArgs
Service account to attach to the instance. Structure is documented below.
shielded_instance_config Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfigArgs
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. Sequence[str]
Tags to attach to the instance.
disks
This property is required.
Changes to this property will trigger replacement.
List<Property Map>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
machineType
This property is required.
Changes to this property will trigger replacement.
String

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


advancedMachineFeatures Changes to this property will trigger replacement. Property Map
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
canIpForward Changes to this property will trigger replacement. Boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfig Changes to this property will trigger replacement. Property Map
Enable Confidential Mode on this VM. Structure is documented below
description Changes to this property will trigger replacement. String
A brief description of this resource.
enableDisplay Changes to this property will trigger replacement. Boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators Changes to this property will trigger replacement. List<Property Map>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instanceDescription Changes to this property will trigger replacement. String
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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.

metadata Changes to this property will trigger replacement. Map<String>
Metadata key/value pairs to make available from within instances created from this template.
metadataStartupScript Changes to this property will trigger replacement. String
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform Changes to this property will trigger replacement. String
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. String
namePrefix Changes to this property will trigger replacement. String

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

networkInterfaces Changes to this property will trigger replacement. List<Property Map>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfig Changes to this property will trigger replacement. Property Map
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partnerMetadata Map<String>
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region Changes to this property will trigger replacement. String
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservationAffinity Changes to this property will trigger replacement. Property Map
Specifies the reservations that this instance can consume from. Structure is documented below.
resourceManagerTags Changes to this property will trigger replacement. Map<String>
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. String
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. Property Map
The scheduling strategy to use. More details about this configuration option are detailed below.
serviceAccount Changes to this property will trigger replacement. Property Map
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfig Changes to this property will trigger replacement. Property Map
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. List<String>
Tags to attach to the instance.

Outputs

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

CreationTimestamp string
Creation timestamp in RFC3339 text format.
EffectiveLabels Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
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.
CreationTimestamp string
Creation timestamp in RFC3339 text format.
EffectiveLabels map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
Id string
The provider-assigned unique ID for this managed resource.
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.
creationTimestamp String
Creation timestamp in RFC3339 text format.
effectiveLabels Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
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.
creationTimestamp string
Creation timestamp in RFC3339 text format.
effectiveLabels {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id string
The provider-assigned unique ID for this managed resource.
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.
creation_timestamp str
Creation timestamp in RFC3339 text format.
effective_labels Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id str
The provider-assigned unique ID for this managed resource.
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.
creationTimestamp String
Creation timestamp in RFC3339 text format.
effectiveLabels Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
id String
The provider-assigned unique ID for this managed resource.
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 RegionInstanceTemplate Resource

Get an existing RegionInstanceTemplate 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?: RegionInstanceTemplateState, opts?: CustomResourceOptions): RegionInstanceTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        advanced_machine_features: Optional[RegionInstanceTemplateAdvancedMachineFeaturesArgs] = None,
        can_ip_forward: Optional[bool] = None,
        confidential_instance_config: Optional[RegionInstanceTemplateConfidentialInstanceConfigArgs] = None,
        creation_timestamp: Optional[str] = None,
        description: Optional[str] = None,
        disks: Optional[Sequence[RegionInstanceTemplateDiskArgs]] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        enable_display: Optional[bool] = None,
        guest_accelerators: Optional[Sequence[RegionInstanceTemplateGuestAcceleratorArgs]] = None,
        instance_description: Optional[str] = None,
        key_revocation_action_type: 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,
        name_prefix: Optional[str] = None,
        network_interfaces: Optional[Sequence[RegionInstanceTemplateNetworkInterfaceArgs]] = None,
        network_performance_config: Optional[RegionInstanceTemplateNetworkPerformanceConfigArgs] = None,
        partner_metadata: Optional[Mapping[str, str]] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        region: Optional[str] = None,
        reservation_affinity: Optional[RegionInstanceTemplateReservationAffinityArgs] = None,
        resource_manager_tags: Optional[Mapping[str, str]] = None,
        resource_policies: Optional[str] = None,
        scheduling: Optional[RegionInstanceTemplateSchedulingArgs] = None,
        self_link: Optional[str] = None,
        service_account: Optional[RegionInstanceTemplateServiceAccountArgs] = None,
        shielded_instance_config: Optional[RegionInstanceTemplateShieldedInstanceConfigArgs] = None,
        tags: Optional[Sequence[str]] = None,
        tags_fingerprint: Optional[str] = None) -> RegionInstanceTemplate
func GetRegionInstanceTemplate(ctx *Context, name string, id IDInput, state *RegionInstanceTemplateState, opts ...ResourceOption) (*RegionInstanceTemplate, error)
public static RegionInstanceTemplate Get(string name, Input<string> id, RegionInstanceTemplateState? state, CustomResourceOptions? opts = null)
public static RegionInstanceTemplate get(String name, Output<String> id, RegionInstanceTemplateState state, CustomResourceOptions options)
resources:  _:    type: gcp:compute:RegionInstanceTemplate    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 Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeatures
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
CanIpForward Changes to this property will trigger replacement. bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
ConfidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfig
Enable Confidential Mode on this VM. Structure is documented below
CreationTimestamp Changes to this property will trigger replacement. string
Creation timestamp in RFC3339 text format.
Description Changes to this property will trigger replacement. string
A brief description of this resource.
Disks Changes to this property will trigger replacement. List<RegionInstanceTemplateDisk>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
EffectiveLabels Changes to this property will trigger replacement. Dictionary<string, string>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
EnableDisplay Changes to this property will trigger replacement. bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
GuestAccelerators Changes to this property will trigger replacement. List<RegionInstanceTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
InstanceDescription Changes to this property will trigger replacement. string
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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 Changes to this property will trigger replacement. string

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


Metadata Changes to this property will trigger replacement. Dictionary<string, string>
Metadata key/value pairs to make available from within instances created from this template.
MetadataFingerprint Changes to this property will trigger replacement. string
The unique fingerprint of the metadata.
MetadataStartupScript Changes to this property will trigger replacement. string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
MinCpuPlatform Changes to this property will trigger replacement. string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
Name Changes to this property will trigger replacement. string
NamePrefix Changes to this property will trigger replacement. string

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

NetworkInterfaces Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterface>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
NetworkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfig
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
PartnerMetadata Dictionary<string, string>
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not 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.
Region Changes to this property will trigger replacement. string
The Region in which the resource belongs. If region is not provided, the provider region is used.
ReservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinity
Specifies the reservations that this instance can consume from. Structure is documented below.
ResourceManagerTags Changes to this property will trigger replacement. Dictionary<string, string>
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
ResourcePolicies Changes to this property will trigger replacement. string
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
Scheduling Changes to this property will trigger replacement. RegionInstanceTemplateScheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
SelfLink Changes to this property will trigger replacement. string
The URI of the created resource.
ServiceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccount
Service account to attach to the instance. Structure is documented below.
ShieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
Tags Changes to this property will trigger replacement. List<string>
Tags to attach to the instance.
TagsFingerprint Changes to this property will trigger replacement. string
The unique fingerprint of the tags.
AdvancedMachineFeatures Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeaturesArgs
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
CanIpForward Changes to this property will trigger replacement. bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
ConfidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfigArgs
Enable Confidential Mode on this VM. Structure is documented below
CreationTimestamp Changes to this property will trigger replacement. string
Creation timestamp in RFC3339 text format.
Description Changes to this property will trigger replacement. string
A brief description of this resource.
Disks Changes to this property will trigger replacement. []RegionInstanceTemplateDiskArgs
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
EffectiveLabels Changes to this property will trigger replacement. map[string]string
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
EnableDisplay Changes to this property will trigger replacement. bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
GuestAccelerators Changes to this property will trigger replacement. []RegionInstanceTemplateGuestAcceleratorArgs
List of the type and count of accelerator cards attached to the instance. Structure documented below.
InstanceDescription Changes to this property will trigger replacement. string
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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 Changes to this property will trigger replacement. string

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


Metadata Changes to this property will trigger replacement. map[string]string
Metadata key/value pairs to make available from within instances created from this template.
MetadataFingerprint Changes to this property will trigger replacement. string
The unique fingerprint of the metadata.
MetadataStartupScript Changes to this property will trigger replacement. string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
MinCpuPlatform Changes to this property will trigger replacement. string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
Name Changes to this property will trigger replacement. string
NamePrefix Changes to this property will trigger replacement. string

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

NetworkInterfaces Changes to this property will trigger replacement. []RegionInstanceTemplateNetworkInterfaceArgs
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
NetworkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
PartnerMetadata map[string]string
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
Project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not 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.
Region Changes to this property will trigger replacement. string
The Region in which the resource belongs. If region is not provided, the provider region is used.
ReservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from. Structure is documented below.
ResourceManagerTags Changes to this property will trigger replacement. map[string]string
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
ResourcePolicies Changes to this property will trigger replacement. string
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
Scheduling Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingArgs
The scheduling strategy to use. More details about this configuration option are detailed below.
SelfLink Changes to this property will trigger replacement. string
The URI of the created resource.
ServiceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccountArgs
Service account to attach to the instance. Structure is documented below.
ShieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfigArgs
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
Tags Changes to this property will trigger replacement. []string
Tags to attach to the instance.
TagsFingerprint Changes to this property will trigger replacement. string
The unique fingerprint of the tags.
advancedMachineFeatures Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeatures
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
canIpForward Changes to this property will trigger replacement. Boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfig
Enable Confidential Mode on this VM. Structure is documented below
creationTimestamp Changes to this property will trigger replacement. String
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. String
A brief description of this resource.
disks Changes to this property will trigger replacement. List<RegionInstanceTemplateDisk>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effectiveLabels Changes to this property will trigger replacement. Map<String,String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
enableDisplay Changes to this property will trigger replacement. Boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators Changes to this property will trigger replacement. List<RegionInstanceTemplateGuestAccelerator>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instanceDescription Changes to this property will trigger replacement. String
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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 Changes to this property will trigger replacement. String

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


metadata Changes to this property will trigger replacement. Map<String,String>
Metadata key/value pairs to make available from within instances created from this template.
metadataFingerprint Changes to this property will trigger replacement. String
The unique fingerprint of the metadata.
metadataStartupScript Changes to this property will trigger replacement. String
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform Changes to this property will trigger replacement. String
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. String
namePrefix Changes to this property will trigger replacement. String

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

networkInterfaces Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterface>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfig
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partnerMetadata Map<String,String>
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not 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.
region Changes to this property will trigger replacement. String
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinity
Specifies the reservations that this instance can consume from. Structure is documented below.
resourceManagerTags Changes to this property will trigger replacement. Map<String,String>
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. String
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. RegionInstanceTemplateScheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
selfLink Changes to this property will trigger replacement. String
The URI of the created resource.
serviceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccount
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. List<String>
Tags to attach to the instance.
tagsFingerprint Changes to this property will trigger replacement. String
The unique fingerprint of the tags.
advancedMachineFeatures Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeatures
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
canIpForward Changes to this property will trigger replacement. boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfig
Enable Confidential Mode on this VM. Structure is documented below
creationTimestamp Changes to this property will trigger replacement. string
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. string
A brief description of this resource.
disks Changes to this property will trigger replacement. RegionInstanceTemplateDisk[]
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effectiveLabels Changes to this property will trigger replacement. {[key: string]: string}
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
enableDisplay Changes to this property will trigger replacement. boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators Changes to this property will trigger replacement. RegionInstanceTemplateGuestAccelerator[]
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instanceDescription Changes to this property will trigger replacement. string
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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 Changes to this property will trigger replacement. string

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


metadata Changes to this property will trigger replacement. {[key: string]: string}
Metadata key/value pairs to make available from within instances created from this template.
metadataFingerprint Changes to this property will trigger replacement. string
The unique fingerprint of the metadata.
metadataStartupScript Changes to this property will trigger replacement. string
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform Changes to this property will trigger replacement. string
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. string
namePrefix Changes to this property will trigger replacement. string

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

networkInterfaces Changes to this property will trigger replacement. RegionInstanceTemplateNetworkInterface[]
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfig
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partnerMetadata {[key: string]: string}
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. string
The ID of the project in which the resource belongs. If it is not 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.
region Changes to this property will trigger replacement. string
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservationAffinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinity
Specifies the reservations that this instance can consume from. Structure is documented below.
resourceManagerTags Changes to this property will trigger replacement. {[key: string]: string}
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. string
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. RegionInstanceTemplateScheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
selfLink Changes to this property will trigger replacement. string
The URI of the created resource.
serviceAccount Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccount
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfig Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. string[]
Tags to attach to the instance.
tagsFingerprint Changes to this property will trigger replacement. string
The unique fingerprint of the tags.
advanced_machine_features Changes to this property will trigger replacement. RegionInstanceTemplateAdvancedMachineFeaturesArgs
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
can_ip_forward Changes to this property will trigger replacement. bool
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidential_instance_config Changes to this property will trigger replacement. RegionInstanceTemplateConfidentialInstanceConfigArgs
Enable Confidential Mode on this VM. Structure is documented below
creation_timestamp Changes to this property will trigger replacement. str
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. str
A brief description of this resource.
disks Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateDiskArgs]
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effective_labels Changes to this property will trigger replacement. Mapping[str, str]
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
enable_display Changes to this property will trigger replacement. bool
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guest_accelerators Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateGuestAcceleratorArgs]
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instance_description Changes to this property will trigger replacement. str
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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 Changes to this property will trigger replacement. str

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


metadata Changes to this property will trigger replacement. Mapping[str, str]
Metadata key/value pairs to make available from within instances created from this template.
metadata_fingerprint Changes to this property will trigger replacement. str
The unique fingerprint of the metadata.
metadata_startup_script Changes to this property will trigger replacement. str
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
min_cpu_platform Changes to this property will trigger replacement. str
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. str
name_prefix Changes to this property will trigger replacement. str

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

network_interfaces Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateNetworkInterfaceArgs]
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
network_performance_config Changes to this property will trigger replacement. RegionInstanceTemplateNetworkPerformanceConfigArgs
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partner_metadata Mapping[str, str]
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. str
The ID of the project in which the resource belongs. If it is not 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.
region Changes to this property will trigger replacement. str
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservation_affinity Changes to this property will trigger replacement. RegionInstanceTemplateReservationAffinityArgs
Specifies the reservations that this instance can consume from. Structure is documented below.
resource_manager_tags Changes to this property will trigger replacement. Mapping[str, str]
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resource_policies Changes to this property will trigger replacement. str
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingArgs
The scheduling strategy to use. More details about this configuration option are detailed below.
self_link Changes to this property will trigger replacement. str
The URI of the created resource.
service_account Changes to this property will trigger replacement. RegionInstanceTemplateServiceAccountArgs
Service account to attach to the instance. Structure is documented below.
shielded_instance_config Changes to this property will trigger replacement. RegionInstanceTemplateShieldedInstanceConfigArgs
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. Sequence[str]
Tags to attach to the instance.
tags_fingerprint Changes to this property will trigger replacement. str
The unique fingerprint of the tags.
advancedMachineFeatures Changes to this property will trigger replacement. Property Map
Configure Nested Virtualisation and Simultaneous Hyper Threading on this VM. Structure is documented below
canIpForward Changes to this property will trigger replacement. Boolean
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
confidentialInstanceConfig Changes to this property will trigger replacement. Property Map
Enable Confidential Mode on this VM. Structure is documented below
creationTimestamp Changes to this property will trigger replacement. String
Creation timestamp in RFC3339 text format.
description Changes to this property will trigger replacement. String
A brief description of this resource.
disks Changes to this property will trigger replacement. List<Property Map>
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
effectiveLabels Changes to this property will trigger replacement. Map<String>
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
enableDisplay Changes to this property will trigger replacement. Boolean
Enable Virtual Displays on this instance. Note: allow_stopping_for_update must be set to true in order to update this field.
guestAccelerators Changes to this property will trigger replacement. List<Property Map>
List of the type and count of accelerator cards attached to the instance. Structure documented below.
instanceDescription Changes to this property will trigger replacement. String
A brief description to use for instances created from this template.
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 to assign to instances created from this template.

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 Changes to this property will trigger replacement. String

The machine type to create.

To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM.


metadata Changes to this property will trigger replacement. Map<String>
Metadata key/value pairs to make available from within instances created from this template.
metadataFingerprint Changes to this property will trigger replacement. String
The unique fingerprint of the metadata.
metadataStartupScript Changes to this property will trigger replacement. String
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
minCpuPlatform Changes to this property will trigger replacement. String
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. See the complete list here.
name Changes to this property will trigger replacement. String
namePrefix Changes to this property will trigger replacement. String

Creates a unique name beginning with the specified prefix. Conflicts with name. Max length is 54 characters. Prefixes with lengths longer than 37 characters will use a shortened UUID that will be more prone to collisions.

Resulting name for a name_prefix <= 37 characters: name_prefix + YYYYmmddHHSSssss + 8 digit incremental counter Resulting name for a name_prefix 38 - 54 characters: name_prefix + YYmmdd + 3 digit incremental counter

networkInterfaces Changes to this property will trigger replacement. List<Property Map>
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
networkPerformanceConfig Changes to this property will trigger replacement. Property Map
Configures network performance settings for the instance created from the template. Structure is documented below. Note: machine_type must be a supported type, the image used must include the GVNIC in guest-os-features, and network_interface.0.nic-type must be GVNIC in order for this setting to take effect.
partnerMetadata Map<String>
Beta key/value pair represents partner metadata assigned to instance template where key represent a defined namespace and value is a json string represent the entries associted with the namespace.
project Changes to this property will trigger replacement. String
The ID of the project in which the resource belongs. If it is not 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.
region Changes to this property will trigger replacement. String
The Region in which the resource belongs. If region is not provided, the provider region is used.
reservationAffinity Changes to this property will trigger replacement. Property Map
Specifies the reservations that this instance can consume from. Structure is documented below.
resourceManagerTags Changes to this property will trigger replacement. Map<String>
A set of key/value resource manager tag pairs to bind to the instance. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. String
  • A list of self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.
scheduling Changes to this property will trigger replacement. Property Map
The scheduling strategy to use. More details about this configuration option are detailed below.
selfLink Changes to this property will trigger replacement. String
The URI of the created resource.
serviceAccount Changes to this property will trigger replacement. Property Map
Service account to attach to the instance. Structure is documented below.
shieldedInstanceConfig Changes to this property will trigger replacement. Property Map
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below. Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
tags Changes to this property will trigger replacement. List<String>
Tags to attach to the instance.
tagsFingerprint Changes to this property will trigger replacement. String
The unique fingerprint of the tags.

Supporting Types

RegionInstanceTemplateAdvancedMachineFeatures
, RegionInstanceTemplateAdvancedMachineFeaturesArgs

EnableNestedVirtualization Changes to this property will trigger replacement. bool
Defines whether the instance should have nested virtualization enabled. Defaults to false.
EnableUefiNetworking Changes to this property will trigger replacement. bool
Whether to enable UEFI networking for instance creation.
PerformanceMonitoringUnit Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
TurboMode string
Turbo frequency mode to use for the instance. Supported modes are currently either ALL_CORE_MAX or unset (default).
VisibleCoreCount Changes to this property will trigger replacement. int
The number of physical cores to expose to an instance. visible cores info (VC).
EnableNestedVirtualization Changes to this property will trigger replacement. bool
Defines whether the instance should have nested virtualization enabled. Defaults to false.
EnableUefiNetworking Changes to this property will trigger replacement. bool
Whether to enable UEFI networking for instance creation.
PerformanceMonitoringUnit Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
TurboMode string
Turbo frequency mode to use for the instance. Supported modes are currently either ALL_CORE_MAX or unset (default).
VisibleCoreCount Changes to this property will trigger replacement. int
The number of physical cores to expose to an instance. visible cores info (VC).
enableNestedVirtualization Changes to this property will trigger replacement. Boolean
Defines whether the instance should have nested virtualization enabled. Defaults to false.
enableUefiNetworking Changes to this property will trigger replacement. Boolean
Whether to enable UEFI networking for instance creation.
performanceMonitoringUnit Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Integer
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
turboMode String
Turbo frequency mode to use for the instance. Supported modes are currently either ALL_CORE_MAX or unset (default).
visibleCoreCount Changes to this property will trigger replacement. Integer
The number of physical cores to expose to an instance. visible cores info (VC).
enableNestedVirtualization Changes to this property will trigger replacement. boolean
Defines whether the instance should have nested virtualization enabled. Defaults to false.
enableUefiNetworking Changes to this property will trigger replacement. boolean
Whether to enable UEFI networking for instance creation.
performanceMonitoringUnit Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. number
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
turboMode string
Turbo frequency mode to use for the instance. Supported modes are currently either ALL_CORE_MAX or unset (default).
visibleCoreCount Changes to this property will trigger replacement. number
The number of physical cores to expose to an instance. visible cores info (VC).
enable_nested_virtualization Changes to this property will trigger replacement. bool
Defines whether the instance should have nested virtualization enabled. Defaults to false.
enable_uefi_networking Changes to this property will trigger replacement. bool
Whether to enable UEFI networking for instance creation.
performance_monitoring_unit Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. int
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
turbo_mode str
Turbo frequency mode to use for the instance. Supported modes are currently either ALL_CORE_MAX or unset (default).
visible_core_count Changes to this property will trigger replacement. int
The number of physical cores to expose to an instance. visible cores info (VC).
enableNestedVirtualization Changes to this property will trigger replacement. Boolean
Defines whether the instance should have nested virtualization enabled. Defaults to false.
enableUefiNetworking Changes to this property will trigger replacement. Boolean
Whether to enable UEFI networking for instance creation.
performanceMonitoringUnit Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Number
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1.
turboMode String
Turbo frequency mode to use for the instance. Supported modes are currently either ALL_CORE_MAX or unset (default).
visibleCoreCount Changes to this property will trigger replacement. Number
The number of physical cores to expose to an instance. visible cores info (VC).

RegionInstanceTemplateConfidentialInstanceConfig
, RegionInstanceTemplateConfidentialInstanceConfigArgs

ConfidentialInstanceType Changes to this property will trigger replacement. string
Defines 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. on_host_maintenance can be set to MIGRATE if confidential_instance_type is set to SEV and min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM. If SEV_SNP, currently min_cpu_platform has to be set to "AMD Milan" or this will fail to create the VM.
EnableConfidentialCompute Changes to this property will trigger replacement. bool
Defines whether the instance should have confidential compute enabled with AMD SEV. If enabled, on_host_maintenance can be set to MIGRATE if min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
ConfidentialInstanceType Changes to this property will trigger replacement. string
Defines 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. on_host_maintenance can be set to MIGRATE if confidential_instance_type is set to SEV and min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM. If SEV_SNP, currently min_cpu_platform has to be set to "AMD Milan" or this will fail to create the VM.
EnableConfidentialCompute Changes to this property will trigger replacement. bool
Defines whether the instance should have confidential compute enabled with AMD SEV. If enabled, on_host_maintenance can be set to MIGRATE if min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidentialInstanceType Changes to this property will trigger replacement. String
Defines 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. on_host_maintenance can be set to MIGRATE if confidential_instance_type is set to SEV and min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM. If SEV_SNP, currently min_cpu_platform has to be set to "AMD Milan" or this will fail to create the VM.
enableConfidentialCompute Changes to this property will trigger replacement. Boolean
Defines whether the instance should have confidential compute enabled with AMD SEV. If enabled, on_host_maintenance can be set to MIGRATE if min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidentialInstanceType Changes to this property will trigger replacement. string
Defines 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. on_host_maintenance can be set to MIGRATE if confidential_instance_type is set to SEV and min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM. If SEV_SNP, currently min_cpu_platform has to be set to "AMD Milan" or this will fail to create the VM.
enableConfidentialCompute Changes to this property will trigger replacement. boolean
Defines whether the instance should have confidential compute enabled with AMD SEV. If enabled, on_host_maintenance can be set to MIGRATE if min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidential_instance_type Changes to this property will trigger replacement. str
Defines 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. on_host_maintenance can be set to MIGRATE if confidential_instance_type is set to SEV and min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM. If SEV_SNP, currently min_cpu_platform has to be set to "AMD Milan" or this will fail to create the VM.
enable_confidential_compute Changes to this property will trigger replacement. bool
Defines whether the instance should have confidential compute enabled with AMD SEV. If enabled, on_host_maintenance can be set to MIGRATE if min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.
confidentialInstanceType Changes to this property will trigger replacement. String
Defines 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. on_host_maintenance can be set to MIGRATE if confidential_instance_type is set to SEV and min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM. If SEV_SNP, currently min_cpu_platform has to be set to "AMD Milan" or this will fail to create the VM.
enableConfidentialCompute Changes to this property will trigger replacement. Boolean
Defines whether the instance should have confidential compute enabled with AMD SEV. If enabled, on_host_maintenance can be set to MIGRATE if min_cpu_platform is set to "AMD Milan". Otherwise, on_host_maintenance has to be set to TERMINATE or this will fail to create the VM.

RegionInstanceTemplateDisk
, RegionInstanceTemplateDiskArgs

AutoDelete Changes to this property will trigger replacement. bool
Whether or not the disk should be auto-deleted. This defaults to true.
Boot Changes to this property will trigger replacement. bool
Indicates that this is a boot disk.
DeviceName Changes to this property will trigger replacement. string
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
DiskEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskDiskEncryptionKey

Encrypts or decrypts a disk using a customer-supplied encryption key.

If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.

If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.

If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.

Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. Structure documented below.

DiskName Changes to this property will trigger replacement. string
Name of the disk. When not provided, this defaults to the name of the instance.
DiskSizeGb Changes to this property will trigger replacement. int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
DiskType Changes to this property will trigger replacement. string
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
Interface Changes to this property will trigger replacement. string
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
Labels Changes to this property will trigger replacement. Dictionary<string, string>
A set of ket/value label pairs to assign to disk created from this template
Mode Changes to this property will trigger replacement. string
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
ProvisionedThroughput Changes to this property will trigger replacement. int
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
ResourceManagerTags Changes to this property will trigger replacement. Dictionary<string, string>
A set of key/value resource manager tag pairs to bind to this disk. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
ResourcePolicies Changes to this property will trigger replacement. string
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
Source Changes to this property will trigger replacement. string

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImage Changes to this property will trigger replacement. string

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImageEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceImageEncryptionKey

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. Structure documented below.

SourceSnapshot Changes to this property will trigger replacement. string

The source snapshot to create this disk.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceSnapshotEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceSnapshotEncryptionKey
The customer-supplied encryption key of the source snapshot. Structure documented below.
Type Changes to this property will trigger replacement. string
The type of GCE disk, can be either "SCRATCH" or "PERSISTENT".
AutoDelete Changes to this property will trigger replacement. bool
Whether or not the disk should be auto-deleted. This defaults to true.
Boot Changes to this property will trigger replacement. bool
Indicates that this is a boot disk.
DeviceName Changes to this property will trigger replacement. string
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
DiskEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskDiskEncryptionKey

Encrypts or decrypts a disk using a customer-supplied encryption key.

If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.

If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.

If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.

Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. Structure documented below.

DiskName Changes to this property will trigger replacement. string
Name of the disk. When not provided, this defaults to the name of the instance.
DiskSizeGb Changes to this property will trigger replacement. int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
DiskType Changes to this property will trigger replacement. string
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
Interface Changes to this property will trigger replacement. string
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
Labels Changes to this property will trigger replacement. map[string]string
A set of ket/value label pairs to assign to disk created from this template
Mode Changes to this property will trigger replacement. string
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
ProvisionedThroughput Changes to this property will trigger replacement. int
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
ResourceManagerTags Changes to this property will trigger replacement. map[string]string
A set of key/value resource manager tag pairs to bind to this disk. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
ResourcePolicies Changes to this property will trigger replacement. string
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
Source Changes to this property will trigger replacement. string

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImage Changes to this property will trigger replacement. string

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceImageEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceImageEncryptionKey

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. Structure documented below.

SourceSnapshot Changes to this property will trigger replacement. string

The source snapshot to create this disk.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

SourceSnapshotEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceSnapshotEncryptionKey
The customer-supplied encryption key of the source snapshot. Structure documented below.
Type Changes to this property will trigger replacement. string
The type of GCE disk, can be either "SCRATCH" or "PERSISTENT".
autoDelete Changes to this property will trigger replacement. Boolean
Whether or not the disk should be auto-deleted. This defaults to true.
boot Changes to this property will trigger replacement. Boolean
Indicates that this is a boot disk.
deviceName Changes to this property will trigger replacement. String
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
diskEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskDiskEncryptionKey

Encrypts or decrypts a disk using a customer-supplied encryption key.

If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.

If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.

If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.

Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. Structure documented below.

diskName Changes to this property will trigger replacement. String
Name of the disk. When not provided, this defaults to the name of the instance.
diskSizeGb Changes to this property will trigger replacement. Integer
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
diskType Changes to this property will trigger replacement. String
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface_ Changes to this property will trigger replacement. String
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels Changes to this property will trigger replacement. Map<String,String>
A set of ket/value label pairs to assign to disk created from this template
mode Changes to this property will trigger replacement. String
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisionedThroughput Changes to this property will trigger replacement. Integer
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resourceManagerTags Changes to this property will trigger replacement. Map<String,String>
A set of key/value resource manager tag pairs to bind to this disk. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. String
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source Changes to this property will trigger replacement. String

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImage Changes to this property will trigger replacement. String

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImageEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceImageEncryptionKey

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. Structure documented below.

sourceSnapshot Changes to this property will trigger replacement. String

The source snapshot to create this disk.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceSnapshotEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceSnapshotEncryptionKey
The customer-supplied encryption key of the source snapshot. Structure documented below.
type Changes to this property will trigger replacement. String
The type of GCE disk, can be either "SCRATCH" or "PERSISTENT".
autoDelete Changes to this property will trigger replacement. boolean
Whether or not the disk should be auto-deleted. This defaults to true.
boot Changes to this property will trigger replacement. boolean
Indicates that this is a boot disk.
deviceName Changes to this property will trigger replacement. string
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
diskEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskDiskEncryptionKey

Encrypts or decrypts a disk using a customer-supplied encryption key.

If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.

If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.

If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.

Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. Structure documented below.

diskName Changes to this property will trigger replacement. string
Name of the disk. When not provided, this defaults to the name of the instance.
diskSizeGb Changes to this property will trigger replacement. number
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
diskType Changes to this property will trigger replacement. string
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface Changes to this property will trigger replacement. string
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels Changes to this property will trigger replacement. {[key: string]: string}
A set of ket/value label pairs to assign to disk created from this template
mode Changes to this property will trigger replacement. string
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisionedThroughput Changes to this property will trigger replacement. number
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resourceManagerTags Changes to this property will trigger replacement. {[key: string]: string}
A set of key/value resource manager tag pairs to bind to this disk. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. string
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source Changes to this property will trigger replacement. string

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImage Changes to this property will trigger replacement. string

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImageEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceImageEncryptionKey

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. Structure documented below.

sourceSnapshot Changes to this property will trigger replacement. string

The source snapshot to create this disk.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceSnapshotEncryptionKey Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceSnapshotEncryptionKey
The customer-supplied encryption key of the source snapshot. Structure documented below.
type Changes to this property will trigger replacement. string
The type of GCE disk, can be either "SCRATCH" or "PERSISTENT".
auto_delete Changes to this property will trigger replacement. bool
Whether or not the disk should be auto-deleted. This defaults to true.
boot Changes to this property will trigger replacement. bool
Indicates that this is a boot disk.
device_name Changes to this property will trigger replacement. str
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
disk_encryption_key Changes to this property will trigger replacement. RegionInstanceTemplateDiskDiskEncryptionKey

Encrypts or decrypts a disk using a customer-supplied encryption key.

If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.

If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.

If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.

Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. Structure documented below.

disk_name Changes to this property will trigger replacement. str
Name of the disk. When not provided, this defaults to the name of the instance.
disk_size_gb Changes to this property will trigger replacement. int
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
disk_type Changes to this property will trigger replacement. str
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface Changes to this property will trigger replacement. str
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels Changes to this property will trigger replacement. Mapping[str, str]
A set of ket/value label pairs to assign to disk created from this template
mode Changes to this property will trigger replacement. str
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisioned_throughput Changes to this property will trigger replacement. int
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resource_manager_tags Changes to this property will trigger replacement. Mapping[str, str]
A set of key/value resource manager tag pairs to bind to this disk. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resource_policies Changes to this property will trigger replacement. str
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source Changes to this property will trigger replacement. str

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

source_image Changes to this property will trigger replacement. str

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

source_image_encryption_key Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceImageEncryptionKey

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. Structure documented below.

source_snapshot Changes to this property will trigger replacement. str

The source snapshot to create this disk.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

source_snapshot_encryption_key Changes to this property will trigger replacement. RegionInstanceTemplateDiskSourceSnapshotEncryptionKey
The customer-supplied encryption key of the source snapshot. Structure documented below.
type Changes to this property will trigger replacement. str
The type of GCE disk, can be either "SCRATCH" or "PERSISTENT".
autoDelete Changes to this property will trigger replacement. Boolean
Whether or not the disk should be auto-deleted. This defaults to true.
boot Changes to this property will trigger replacement. Boolean
Indicates that this is a boot disk.
deviceName Changes to this property will trigger replacement. String
A unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk.
diskEncryptionKey Changes to this property will trigger replacement. Property Map

Encrypts or decrypts a disk using a customer-supplied encryption key.

If you are creating a new disk, this field encrypts the new disk using an encryption key that you provide. If you are attaching an existing disk that is already encrypted, this field decrypts the disk using the customer-supplied encryption key.

If you encrypt a disk using a customer-supplied key, you must provide the same key again when you attempt to use this resource at a later time. For example, you must provide the key when you create a snapshot or an image from the disk or when you attach the disk to a virtual machine instance.

If you do not provide an encryption key, then the disk will be encrypted using an automatically generated key and you do not need to provide a key to use the disk later.

Instance templates do not store customer-supplied encryption keys, so you cannot use your own keys to encrypt disks in a managed instance group. Structure documented below.

diskName Changes to this property will trigger replacement. String
Name of the disk. When not provided, this defaults to the name of the instance.
diskSizeGb Changes to this property will trigger replacement. Number
The size of the image in gigabytes. If not specified, it will inherit the size of its base image. For SCRATCH disks, the size must be exactly 375GB.
diskType Changes to this property will trigger replacement. String
The GCE disk type. Such as "pd-ssd", "local-ssd", "pd-balanced" or "pd-standard".
interface Changes to this property will trigger replacement. String
Specifies the disk interface to use for attaching this disk, which is either SCSI or NVME. The default is SCSI. Persistent disks must always use SCSI and the request will fail if you attempt to attach a persistent disk in any other format than SCSI. Local SSDs can use either NVME or SCSI.
labels Changes to this property will trigger replacement. Map<String>
A set of ket/value label pairs to assign to disk created from this template
mode Changes to this property will trigger replacement. String
The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If you are attaching or creating a boot disk, this must read-write mode.
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. Values must be between 10,000 and 120,000. For more details, see the Extreme persistent disk documentation.
provisionedThroughput Changes to this property will trigger replacement. Number
Indicates how much throughput to provision for the disk, in MB/s. This sets the amount of data that can be read or written from the disk per second. Values must greater than or equal to 1. For more details, see the Hyperdisk documentation.
resourceManagerTags Changes to this property will trigger replacement. Map<String>
A set of key/value resource manager tag pairs to bind to this disk. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456.
resourcePolicies Changes to this property will trigger replacement. String
  • A list (short name or id) of resource policies to attach to this disk for automatic snapshot creations. Currently a max of 1 resource policy is supported.
source Changes to this property will trigger replacement. String

The name (not self_link) of the disk (such as those managed by gcp.compute.Disk) to attach.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImage Changes to this property will trigger replacement. String

The image from which to initialize this disk. This can be one of: the image's self_link, projects/{project}/global/images/{image}, projects/{project}/global/images/family/{family}, global/images/{image}, global/images/family/{family}, family/{family}, {project}/{family}, {project}/{image}, {family}, or {image}.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceImageEncryptionKey Changes to this property will trigger replacement. Property Map

The customer-supplied encryption key of the source image. Required if the source image is protected by a customer-supplied encryption key.

Instance templates do not store customer-supplied encryption keys, so you cannot create disks for instances in a managed instance group if the source images are encrypted with your own keys. Structure documented below.

sourceSnapshot Changes to this property will trigger replacement. String

The source snapshot to create this disk.

Note: Either source, source_image, or source_snapshot is required in a disk block unless the disk type is local-ssd. Check the API docs for details.

sourceSnapshotEncryptionKey Changes to this property will trigger replacement. Property Map
The customer-supplied encryption key of the source snapshot. Structure documented below.
type Changes to this property will trigger replacement. String
The type of GCE disk, can be either "SCRATCH" or "PERSISTENT".

RegionInstanceTemplateDiskDiskEncryptionKey
, RegionInstanceTemplateDiskDiskEncryptionKeyArgs

KmsKeySelfLink
This property is required.
Changes to this property will trigger replacement.
string
The self link of the encryption key that is stored in Google Cloud KMS
KmsKeySelfLink
This property is required.
Changes to this property will trigger replacement.
string
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeySelfLink
This property is required.
Changes to this property will trigger replacement.
String
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeySelfLink
This property is required.
Changes to this property will trigger replacement.
string
The self link of the encryption key that is stored in Google Cloud KMS
kms_key_self_link
This property is required.
Changes to this property will trigger replacement.
str
The self link of the encryption key that is stored in Google Cloud KMS
kmsKeySelfLink
This property is required.
Changes to this property will trigger replacement.
String
The self link of the encryption key that is stored in Google Cloud KMS

RegionInstanceTemplateDiskSourceImageEncryptionKey
, RegionInstanceTemplateDiskSourceImageEncryptionKeyArgs

KmsKeySelfLink
This property is required.
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.
KmsKeySelfLink
This property is required.
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.
kmsKeySelfLink
This property is required.
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.
kmsKeySelfLink
This property is required.
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.
kms_key_self_link
This property is required.
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.
kmsKeySelfLink
This property is required.
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.

RegionInstanceTemplateDiskSourceSnapshotEncryptionKey
, RegionInstanceTemplateDiskSourceSnapshotEncryptionKeyArgs

KmsKeySelfLink
This property is required.
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.
KmsKeySelfLink
This property is required.
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.
kmsKeySelfLink
This property is required.
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.
kmsKeySelfLink
This property is required.
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.
kms_key_self_link
This property is required.
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.
kmsKeySelfLink
This property is required.
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.

RegionInstanceTemplateGuestAccelerator
, RegionInstanceTemplateGuestAcceleratorArgs

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 to expose 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 to expose 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 to expose 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 to expose 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 to expose 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 to expose to this instance. E.g. nvidia-tesla-k80.

RegionInstanceTemplateNetworkInterface
, RegionInstanceTemplateNetworkInterfaceArgs

AccessConfigs Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterfaceAccessConfig>
AliasIpRanges Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterfaceAliasIpRange>
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
InternalIpv6PrefixLength Changes to this property will trigger replacement. int
The prefix length of the primary internal IPv6 range.
Ipv6AccessConfigs Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterfaceIpv6AccessConfig>
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. Structure documented below.
Ipv6AccessType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The name of the network_interface.
Network Changes to this property will trigger replacement. string
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
NetworkIp Changes to this property will trigger replacement. string
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
NicType Changes to this property will trigger replacement. string
The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, MRDMA, 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.
StackType Changes to this property will trigger replacement. string
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
Subnetwork Changes to this property will trigger replacement. string
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
SubnetworkProject Changes to this property will trigger replacement. string
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
AccessConfigs Changes to this property will trigger replacement. []RegionInstanceTemplateNetworkInterfaceAccessConfig
AliasIpRanges Changes to this property will trigger replacement. []RegionInstanceTemplateNetworkInterfaceAliasIpRange
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
InternalIpv6PrefixLength Changes to this property will trigger replacement. int
The prefix length of the primary internal IPv6 range.
Ipv6AccessConfigs Changes to this property will trigger replacement. []RegionInstanceTemplateNetworkInterfaceIpv6AccessConfig
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. Structure documented below.
Ipv6AccessType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The name of the network_interface.
Network Changes to this property will trigger replacement. string
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
NetworkIp Changes to this property will trigger replacement. string
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
NicType Changes to this property will trigger replacement. string
The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, MRDMA, 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.
StackType Changes to this property will trigger replacement. string
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
Subnetwork Changes to this property will trigger replacement. string
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
SubnetworkProject Changes to this property will trigger replacement. string
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
accessConfigs Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterfaceAccessConfig>
aliasIpRanges Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterfaceAliasIpRange>
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internalIpv6PrefixLength Changes to this property will trigger replacement. Integer
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs Changes to this property will trigger replacement. List<RegionInstanceTemplateNetworkInterfaceIpv6AccessConfig>
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. Structure documented below.
ipv6AccessType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The name of the network_interface.
network Changes to this property will trigger replacement. String
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
networkIp Changes to this property will trigger replacement. String
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
nicType Changes to this property will trigger replacement. String
The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, MRDMA, 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.
stackType Changes to this property will trigger replacement. String
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
subnetwork Changes to this property will trigger replacement. String
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetworkProject Changes to this property will trigger replacement. String
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
accessConfigs Changes to this property will trigger replacement. RegionInstanceTemplateNetworkInterfaceAccessConfig[]
aliasIpRanges Changes to this property will trigger replacement. RegionInstanceTemplateNetworkInterfaceAliasIpRange[]
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internalIpv6PrefixLength Changes to this property will trigger replacement. number
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs Changes to this property will trigger replacement. RegionInstanceTemplateNetworkInterfaceIpv6AccessConfig[]
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. Structure documented below.
ipv6AccessType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The name of the network_interface.
network Changes to this property will trigger replacement. string
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
networkIp Changes to this property will trigger replacement. string
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
nicType Changes to this property will trigger replacement. string
The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, MRDMA, 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.
stackType Changes to this property will trigger replacement. string
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
subnetwork Changes to this property will trigger replacement. string
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetworkProject Changes to this property will trigger replacement. string
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
access_configs Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateNetworkInterfaceAccessConfig]
alias_ip_ranges Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateNetworkInterfaceAliasIpRange]
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internal_ipv6_prefix_length Changes to this property will trigger replacement. int
The prefix length of the primary internal IPv6 range.
ipv6_access_configs Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateNetworkInterfaceIpv6AccessConfig]
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. Structure documented below.
ipv6_access_type Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The name of the network_interface.
network Changes to this property will trigger replacement. str
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
network_ip Changes to this property will trigger replacement. str
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
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, MRDMA, 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.
stack_type Changes to this property will trigger replacement. str
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
subnetwork Changes to this property will trigger replacement. str
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetwork_project Changes to this property will trigger replacement. str
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.
accessConfigs Changes to this property will trigger replacement. List<Property Map>
aliasIpRanges Changes to this property will trigger replacement. List<Property Map>
An array of alias IP ranges for this network interface. Can only be specified for network interfaces on subnet-mode networks. Structure documented below.
internalIpv6PrefixLength Changes to this property will trigger replacement. Number
The prefix length of the primary internal IPv6 range.
ipv6AccessConfigs Changes to this property will trigger replacement. 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. Structure documented below.
ipv6AccessType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The name of the network_interface.
network Changes to this property will trigger replacement. String
The name or self_link of the network to attach this interface to. Use network attribute for Legacy or Auto subnetted networks and subnetwork for custom subnetted networks.
networkIp Changes to this property will trigger replacement. String
The private IP address to assign to the instance. If empty, the address will be automatically assigned.
nicType Changes to this property will trigger replacement. String
The type of vNIC to be used on this interface. Possible values: GVNIC, VIRTIO_NET, MRDMA, 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.
stackType Changes to this property will trigger replacement. String
The stack type for this network interface to identify whether the IPv6 feature is enabled or not. Values are IPV4_IPV6, IPV6_ONLY or IPV4_ONLY. If not specified, IPV4_ONLY will be used.
subnetwork Changes to this property will trigger replacement. String
the name of the subnetwork to attach this interface to. The subnetwork must exist in the same region this instance will be created in. Either network or subnetwork must be provided.
subnetworkProject Changes to this property will trigger replacement. String
The ID of the project in which the subnetwork belongs. If it is not provided, the provider project is used.

RegionInstanceTemplateNetworkInterfaceAccessConfig
, RegionInstanceTemplateNetworkInterfaceAccessConfigArgs

NatIp Changes to this property will trigger replacement. string
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
NetworkTier Changes to this property will trigger replacement. string
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM and STANDARD tier is valid for IPv6.
PublicPtrDomainName Changes to this property will trigger replacement. string
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
NatIp Changes to this property will trigger replacement. string
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
NetworkTier Changes to this property will trigger replacement. string
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM and STANDARD tier is valid for IPv6.
PublicPtrDomainName Changes to this property will trigger replacement. string
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
natIp Changes to this property will trigger replacement. String
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
networkTier Changes to this property will trigger replacement. String
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM and STANDARD tier is valid for IPv6.
publicPtrDomainName Changes to this property will trigger replacement. String
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
natIp Changes to this property will trigger replacement. string
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
networkTier Changes to this property will trigger replacement. string
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM and STANDARD tier is valid for IPv6.
publicPtrDomainName Changes to this property will trigger replacement. string
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
nat_ip Changes to this property will trigger replacement. str
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
network_tier Changes to this property will trigger replacement. str
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM and STANDARD tier is valid for IPv6.
public_ptr_domain_name Changes to this property will trigger replacement. str
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.
natIp Changes to this property will trigger replacement. String
The IP address that will be 1:1 mapped to the instance's network ip. If not given, one will be generated.
networkTier Changes to this property will trigger replacement. String
The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM and STANDARD tier is valid for IPv6.
publicPtrDomainName Changes to this property will trigger replacement. String
The DNS domain name for the public PTR record.The DNS domain name for the public PTR record.

RegionInstanceTemplateNetworkInterfaceAliasIpRange
, RegionInstanceTemplateNetworkInterfaceAliasIpRangeArgs

IpCidrRange
This property is required.
Changes to this property will trigger replacement.
string
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
SubnetworkRangeName Changes to this property will trigger replacement. string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
IpCidrRange
This property is required.
Changes to this property will trigger replacement.
string
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
SubnetworkRangeName Changes to this property will trigger replacement. string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ipCidrRange
This property is required.
Changes to this property will trigger replacement.
String
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetworkRangeName Changes to this property will trigger replacement. String
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ipCidrRange
This property is required.
Changes to this property will trigger replacement.
string
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetworkRangeName Changes to this property will trigger replacement. string
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ip_cidr_range
This property is required.
Changes to this property will trigger replacement.
str
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetwork_range_name Changes to this property will trigger replacement. str
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.
ipCidrRange
This property is required.
Changes to this property will trigger replacement.
String
The IP CIDR range represented by this alias IP range. This IP CIDR range must belong to the specified subnetwork and cannot contain IP addresses reserved by system or used by other network interfaces. At the time of writing only a netmask (e.g. /24) may be supplied, with a CIDR format resulting in an API error.
subnetworkRangeName Changes to this property will trigger replacement. String
The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. If left unspecified, the primary range of the subnetwork will be used.

RegionInstanceTemplateNetworkInterfaceIpv6AccessConfig
, RegionInstanceTemplateNetworkInterfaceIpv6AccessConfigArgs

NetworkTier
This property is required.
Changes to this property will trigger replacement.
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. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
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
The name of this access configuration.
PublicPtrDomainName Changes to this property will trigger replacement. string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
NetworkTier
This property is required.
Changes to this property will trigger replacement.
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. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
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
The name of this access configuration.
PublicPtrDomainName Changes to this property will trigger replacement. string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
networkTier
This property is required.
Changes to this property will trigger replacement.
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. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
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
The name of this access configuration.
publicPtrDomainName Changes to this property will trigger replacement. String
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
networkTier
This property is required.
Changes to this property will trigger replacement.
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. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
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
The name of this access configuration.
publicPtrDomainName Changes to this property will trigger replacement. string
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
network_tier
This property is required.
Changes to this property will trigger replacement.
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. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
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
The name of this access configuration.
public_ptr_domain_name Changes to this property will trigger replacement. str
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.
networkTier
This property is required.
Changes to this property will trigger replacement.
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. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically.
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
The name of this access configuration.
publicPtrDomainName Changes to this property will trigger replacement. String
The domain name to be used when creating DNSv6 records for the external IPv6 ranges.

RegionInstanceTemplateNetworkPerformanceConfig
, RegionInstanceTemplateNetworkPerformanceConfigArgs

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

RegionInstanceTemplateReservationAffinity
, RegionInstanceTemplateReservationAffinityArgs

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. RegionInstanceTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.. Structure is documented below.
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. RegionInstanceTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.. Structure is documented below.
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. RegionInstanceTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.. Structure is documented below.
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. RegionInstanceTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.. Structure is documented below.
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. RegionInstanceTemplateReservationAffinitySpecificReservation
Specifies the label selector for the reservation to use.. Structure is documented below.
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.. Structure is documented below.

RegionInstanceTemplateReservationAffinitySpecificReservation
, RegionInstanceTemplateReservationAffinitySpecificReservationArgs

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.

RegionInstanceTemplateScheduling
, RegionInstanceTemplateSchedulingArgs

AutomaticRestart Changes to this property will trigger replacement. bool
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
AvailabilityDomain Changes to this property will trigger replacement. int
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
GracefulShutdown Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
HostErrorTimeoutSeconds Changes to this property will trigger replacement. int
Specifies 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 Changes to this property will trigger replacement. string
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
LocalSsdRecoveryTimeouts Changes to this property will trigger replacement. List<RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout>
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 Changes to this property will trigger replacement. string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
MaxRunDuration Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingMaxRunDuration
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below.
MinNodeCpus Changes to this property will trigger replacement. int
Minimum number of cpus for the instance.
NodeAffinities Changes to this property will trigger replacement. List<RegionInstanceTemplateSchedulingNodeAffinity>
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
OnHostMaintenance Changes to this property will trigger replacement. string
Defines the maintenance behavior for this instance.
OnInstanceStopAction Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
Preemptible Changes to this property will trigger replacement. bool
Allows instance to be preempted. This defaults to false. Read more on this here.
ProvisioningModel Changes to this property will trigger replacement. string
Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here
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 Changes to this property will trigger replacement. bool
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
AvailabilityDomain Changes to this property will trigger replacement. int
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
GracefulShutdown Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
HostErrorTimeoutSeconds Changes to this property will trigger replacement. int
Specifies 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 Changes to this property will trigger replacement. string
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
LocalSsdRecoveryTimeouts Changes to this property will trigger replacement. []RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout
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 Changes to this property will trigger replacement. string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
MaxRunDuration Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingMaxRunDuration
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below.
MinNodeCpus Changes to this property will trigger replacement. int
Minimum number of cpus for the instance.
NodeAffinities Changes to this property will trigger replacement. []RegionInstanceTemplateSchedulingNodeAffinity
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
OnHostMaintenance Changes to this property will trigger replacement. string
Defines the maintenance behavior for this instance.
OnInstanceStopAction Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
Preemptible Changes to this property will trigger replacement. bool
Allows instance to be preempted. This defaults to false. Read more on this here.
ProvisioningModel Changes to this property will trigger replacement. string
Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here
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 Changes to this property will trigger replacement. Boolean
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availabilityDomain Changes to this property will trigger replacement. Integer
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
gracefulShutdown Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds Changes to this property will trigger replacement. Integer
Specifies 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 Changes to this property will trigger replacement. String
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
localSsdRecoveryTimeouts Changes to this property will trigger replacement. List<RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout>
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 Changes to this property will trigger replacement. String
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDuration Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingMaxRunDuration
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below.
minNodeCpus Changes to this property will trigger replacement. Integer
Minimum number of cpus for the instance.
nodeAffinities Changes to this property will trigger replacement. List<RegionInstanceTemplateSchedulingNodeAffinity>
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
onHostMaintenance Changes to this property will trigger replacement. String
Defines the maintenance behavior for this instance.
onInstanceStopAction Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
preemptible Changes to this property will trigger replacement. Boolean
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioningModel Changes to this property will trigger replacement. String
Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here
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 Changes to this property will trigger replacement. boolean
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availabilityDomain Changes to this property will trigger replacement. number
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
gracefulShutdown Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds Changes to this property will trigger replacement. number
Specifies 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 Changes to this property will trigger replacement. string
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
localSsdRecoveryTimeouts Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout[]
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 Changes to this property will trigger replacement. string
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDuration Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingMaxRunDuration
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below.
minNodeCpus Changes to this property will trigger replacement. number
Minimum number of cpus for the instance.
nodeAffinities Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingNodeAffinity[]
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
onHostMaintenance Changes to this property will trigger replacement. string
Defines the maintenance behavior for this instance.
onInstanceStopAction Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
preemptible Changes to this property will trigger replacement. boolean
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioningModel Changes to this property will trigger replacement. string
Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here
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 Changes to this property will trigger replacement. bool
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availability_domain Changes to this property will trigger replacement. int
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
graceful_shutdown Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingGracefulShutdown
Settings for the instance to perform a graceful shutdown.
host_error_timeout_seconds Changes to this property will trigger replacement. int
Specifies 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 Changes to this property will trigger replacement. str
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
local_ssd_recovery_timeouts Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout]
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 Changes to this property will trigger replacement. str
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
max_run_duration Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingMaxRunDuration
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below.
min_node_cpus Changes to this property will trigger replacement. int
Minimum number of cpus for the instance.
node_affinities Changes to this property will trigger replacement. Sequence[RegionInstanceTemplateSchedulingNodeAffinity]
Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Read more on sole-tenant node creation here. Structure documented below.
on_host_maintenance Changes to this property will trigger replacement. str
Defines the maintenance behavior for this instance.
on_instance_stop_action Changes to this property will trigger replacement. RegionInstanceTemplateSchedulingOnInstanceStopAction
Defines the behaviour for instances with the instance_termination_action.
preemptible Changes to this property will trigger replacement. bool
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioning_model Changes to this property will trigger replacement. str
Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here
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 Changes to this property will trigger replacement. Boolean
Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user). This defaults to true.
availabilityDomain Changes to this property will trigger replacement. Number
Specifies the availability domain to place the instance in. The value must be a number between 1 and the number of availability domains specified in the spread placement policy attached to the instance.
gracefulShutdown Changes to this property will trigger replacement. Property Map
Settings for the instance to perform a graceful shutdown.
hostErrorTimeoutSeconds Changes to this property will trigger replacement. Number
Specifies 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 Changes to this property will trigger replacement. String
Describe the type of termination action for SPOT VM. Can be STOP or DELETE. Read more on here
localSsdRecoveryTimeouts Changes to this property will trigger replacement. List<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 Changes to this property will trigger replacement. String
Specifies the frequency of planned maintenance events. The accepted values are: PERIODIC
maxRunDuration Changes to this property will trigger replacement. Property Map
The duration of the instance. Instance will run and be terminated after then, the termination action could be defined in instance_termination_action. Only support DELETE instance_termination_action at this point. Structure is documented below.
minNodeCpus Changes to this property will trigger replacement. Number
Minimum number of cpus for the instance.
nodeAffinities Changes to this property will trigger replacement. 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. Read more on sole-tenant node creation here. Structure documented below.
onHostMaintenance Changes to this property will trigger replacement. String
Defines the maintenance behavior for this instance.
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
Allows instance to be preempted. This defaults to false. Read more on this here.
provisioningModel Changes to this property will trigger replacement. String
Describe the type of preemptible VM. This field accepts the value STANDARD or SPOT. If the value is STANDARD, there will be no discount. If this is set to SPOT, preemptible should be true and automatic_restart should be false. For more info about SPOT, read here
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.

RegionInstanceTemplateSchedulingGracefulShutdown
, RegionInstanceTemplateSchedulingGracefulShutdownArgs

Enabled
This property is required.
Changes to this property will trigger replacement.
bool
Opts-in for graceful shutdown.
MaxDuration RegionInstanceTemplateSchedulingGracefulShutdownMaxDuration
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. Structure is documented below:
Enabled
This property is required.
Changes to this property will trigger replacement.
bool
Opts-in for graceful shutdown.
MaxDuration RegionInstanceTemplateSchedulingGracefulShutdownMaxDuration
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. Structure is documented below:
enabled
This property is required.
Changes to this property will trigger replacement.
Boolean
Opts-in for graceful shutdown.
maxDuration RegionInstanceTemplateSchedulingGracefulShutdownMaxDuration
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. Structure is documented below:
enabled
This property is required.
Changes to this property will trigger replacement.
boolean
Opts-in for graceful shutdown.
maxDuration RegionInstanceTemplateSchedulingGracefulShutdownMaxDuration
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. Structure is documented below:
enabled
This property is required.
Changes to this property will trigger replacement.
bool
Opts-in for graceful shutdown.
max_duration RegionInstanceTemplateSchedulingGracefulShutdownMaxDuration
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. Structure is documented below:
enabled
This property is required.
Changes to this property will trigger replacement.
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. Structure is documented below:

RegionInstanceTemplateSchedulingGracefulShutdownMaxDuration
, RegionInstanceTemplateSchedulingGracefulShutdownMaxDurationArgs

Seconds
This property is required.
Changes to this property will trigger replacement.
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 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. The value must be between 1 and 3600, which is 3,600 seconds (one hour).`
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. The value must be between 1 and 3600, which is 3,600 seconds (one hour).`
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. The value must be between 1 and 3600, which is 3,600 seconds (one hour).`
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. The value must be between 1 and 3600, which is 3,600 seconds (one hour).`
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. The value must be between 1 and 3600, which is 3,600 seconds (one hour).`
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.

RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeout
, RegionInstanceTemplateSchedulingLocalSsdRecoveryTimeoutArgs

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.

RegionInstanceTemplateSchedulingMaxRunDuration
, RegionInstanceTemplateSchedulingMaxRunDurationArgs

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. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years.
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. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years.
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. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years.
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. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years.
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. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years.
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. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years.
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.

RegionInstanceTemplateSchedulingNodeAffinity
, RegionInstanceTemplateSchedulingNodeAffinityArgs

Key This property is required. string
The key for the node affinity label.
Operator This property is required. string
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
Values This property is required. List<string>
Corresponds to the label values of a reservation resource.
Key This property is required. string
The key for the node affinity label.
Operator This property is required. string
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
Values This property is required. []string
Corresponds to the label values of a reservation resource.
key This property is required. String
The key for the node affinity label.
operator This property is required. String
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. List<String>
Corresponds to the label values of a reservation resource.
key This property is required. string
The key for the node affinity label.
operator This property is required. string
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. string[]
Corresponds to the label values of a reservation resource.
key This property is required. str
The key for the node affinity label.
operator This property is required. str
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. Sequence[str]
Corresponds to the label values of a reservation resource.
key This property is required. String
The key for the node affinity label.
operator This property is required. String
The operator. Can be IN for node-affinities or NOT_IN for anti-affinities.
values This property is required. List<String>
Corresponds to the label values of a reservation resource.

RegionInstanceTemplateSchedulingOnInstanceStopAction
, RegionInstanceTemplateSchedulingOnInstanceStopActionArgs

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.

RegionInstanceTemplateServiceAccount
, RegionInstanceTemplateServiceAccountArgs

Scopes
This property is required.
Changes to this property will trigger replacement.
List<string>

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

The service accounts documentation explains that access scopes are the legacy method of specifying permissions for your instance. To follow best practices you should create a dedicated service account with the minimum permissions the VM requires. To use a dedicated service account this field should be configured as a list containing the cloud-platform scope. See Authenticate workloads using service accounts best practices and Best practices for using service accounts.

Email Changes to this property will trigger replacement. string
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
Scopes
This property is required.
Changes to this property will trigger replacement.
[]string

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

The service accounts documentation explains that access scopes are the legacy method of specifying permissions for your instance. To follow best practices you should create a dedicated service account with the minimum permissions the VM requires. To use a dedicated service account this field should be configured as a list containing the cloud-platform scope. See Authenticate workloads using service accounts best practices and Best practices for using service accounts.

Email Changes to this property will trigger replacement. string
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes
This property is required.
Changes to this property will trigger replacement.
List<String>

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

The service accounts documentation explains that access scopes are the legacy method of specifying permissions for your instance. To follow best practices you should create a dedicated service account with the minimum permissions the VM requires. To use a dedicated service account this field should be configured as a list containing the cloud-platform scope. See Authenticate workloads using service accounts best practices and Best practices for using service accounts.

email Changes to this property will trigger replacement. String
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes
This property is required.
Changes to this property will trigger replacement.
string[]

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

The service accounts documentation explains that access scopes are the legacy method of specifying permissions for your instance. To follow best practices you should create a dedicated service account with the minimum permissions the VM requires. To use a dedicated service account this field should be configured as a list containing the cloud-platform scope. See Authenticate workloads using service accounts best practices and Best practices for using service accounts.

email Changes to this property will trigger replacement. string
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes
This property is required.
Changes to this property will trigger replacement.
Sequence[str]

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

The service accounts documentation explains that access scopes are the legacy method of specifying permissions for your instance. To follow best practices you should create a dedicated service account with the minimum permissions the VM requires. To use a dedicated service account this field should be configured as a list containing the cloud-platform scope. See Authenticate workloads using service accounts best practices and Best practices for using service accounts.

email Changes to this property will trigger replacement. str
The service account e-mail address. If not given, the default Google Compute Engine service account is used.
scopes
This property is required.
Changes to this property will trigger replacement.
List<String>

A list of service scopes. Both OAuth2 URLs and gcloud short names are supported. To allow full access to all Cloud APIs, use the cloud-platform scope. See a complete list of scopes here.

The service accounts documentation explains that access scopes are the legacy method of specifying permissions for your instance. To follow best practices you should create a dedicated service account with the minimum permissions the VM requires. To use a dedicated service account this field should be configured as a list containing the cloud-platform scope. See Authenticate workloads using service accounts best practices and Best practices for using service accounts.

email Changes to this property will trigger replacement. String
The service account e-mail address. If not given, the default Google Compute Engine service account is used.

RegionInstanceTemplateShieldedInstanceConfig
, RegionInstanceTemplateShieldedInstanceConfigArgs

EnableIntegrityMonitoring Changes to this property will trigger replacement. bool
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
EnableSecureBoot Changes to this property will trigger replacement. bool
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
EnableVtpm Changes to this property will trigger replacement. bool
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
EnableIntegrityMonitoring Changes to this property will trigger replacement. bool
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
EnableSecureBoot Changes to this property will trigger replacement. bool
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
EnableVtpm Changes to this property will trigger replacement. bool
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enableIntegrityMonitoring Changes to this property will trigger replacement. Boolean
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enableSecureBoot Changes to this property will trigger replacement. Boolean
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enableVtpm Changes to this property will trigger replacement. Boolean
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enableIntegrityMonitoring Changes to this property will trigger replacement. boolean
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enableSecureBoot Changes to this property will trigger replacement. boolean
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enableVtpm Changes to this property will trigger replacement. boolean
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enable_integrity_monitoring Changes to this property will trigger replacement. bool
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enable_secure_boot Changes to this property will trigger replacement. bool
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enable_vtpm Changes to this property will trigger replacement. bool
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.
enableIntegrityMonitoring Changes to this property will trigger replacement. Boolean
  • Compare the most recent boot measurements to the integrity policy baseline and return a pair of pass/fail results depending on whether they match or not. Defaults to true.
enableSecureBoot Changes to this property will trigger replacement. Boolean
  • Verify the digital signature of all boot components, and halt the boot process if signature verification fails. Defaults to false.
enableVtpm Changes to this property will trigger replacement. Boolean
  • Use a virtualized trusted platform module, which is a specialized computer chip you can use to encrypt objects like keys and certificates. Defaults to true.

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.