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

gcp.colab.RuntimeTemplate

Explore with Pulumi AI

‘A runtime template is a VM configuration that specifies a machine type and other characteristics of the VM, as well as common settings such as the network and whether public internet access is enabled. When you create a runtime, its VM is created according to the specifications of a runtime template.’

To get more information about RuntimeTemplate, see:

Example Usage

Colab Runtime Template Basic

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

const runtime_template = new gcp.colab.RuntimeTemplate("runtime-template", {
    name: "colab-runtime-template",
    displayName: "Runtime template basic",
    location: "us-central1",
    machineSpec: {
        machineType: "e2-standard-4",
    },
    networkSpec: {
        enableInternetAccess: true,
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

runtime_template = gcp.colab.RuntimeTemplate("runtime-template",
    name="colab-runtime-template",
    display_name="Runtime template basic",
    location="us-central1",
    machine_spec={
        "machine_type": "e2-standard-4",
    },
    network_spec={
        "enable_internet_access": True,
    })
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := colab.NewRuntimeTemplate(ctx, "runtime-template", &colab.RuntimeTemplateArgs{
			Name:        pulumi.String("colab-runtime-template"),
			DisplayName: pulumi.String("Runtime template basic"),
			Location:    pulumi.String("us-central1"),
			MachineSpec: &colab.RuntimeTemplateMachineSpecArgs{
				MachineType: pulumi.String("e2-standard-4"),
			},
			NetworkSpec: &colab.RuntimeTemplateNetworkSpecArgs{
				EnableInternetAccess: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var runtime_template = new Gcp.Colab.RuntimeTemplate("runtime-template", new()
    {
        Name = "colab-runtime-template",
        DisplayName = "Runtime template basic",
        Location = "us-central1",
        MachineSpec = new Gcp.Colab.Inputs.RuntimeTemplateMachineSpecArgs
        {
            MachineType = "e2-standard-4",
        },
        NetworkSpec = new Gcp.Colab.Inputs.RuntimeTemplateNetworkSpecArgs
        {
            EnableInternetAccess = true,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.colab.RuntimeTemplate;
import com.pulumi.gcp.colab.RuntimeTemplateArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateMachineSpecArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateNetworkSpecArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

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

    public static void stack(Context ctx) {
        var runtime_template = new RuntimeTemplate("runtime-template", RuntimeTemplateArgs.builder()
            .name("colab-runtime-template")
            .displayName("Runtime template basic")
            .location("us-central1")
            .machineSpec(RuntimeTemplateMachineSpecArgs.builder()
                .machineType("e2-standard-4")
                .build())
            .networkSpec(RuntimeTemplateNetworkSpecArgs.builder()
                .enableInternetAccess(true)
                .build())
            .build());

    }
}
Copy
resources:
  runtime-template:
    type: gcp:colab:RuntimeTemplate
    properties:
      name: colab-runtime-template
      displayName: Runtime template basic
      location: us-central1
      machineSpec:
        machineType: e2-standard-4
      networkSpec:
        enableInternetAccess: true
Copy

Colab Runtime Template No Name

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

const runtime_template = new gcp.colab.RuntimeTemplate("runtime-template", {
    displayName: "Runtime template no name",
    location: "us-central1",
    machineSpec: {
        machineType: "e2-standard-4",
    },
    networkSpec: {
        enableInternetAccess: true,
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

runtime_template = gcp.colab.RuntimeTemplate("runtime-template",
    display_name="Runtime template no name",
    location="us-central1",
    machine_spec={
        "machine_type": "e2-standard-4",
    },
    network_spec={
        "enable_internet_access": True,
    })
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := colab.NewRuntimeTemplate(ctx, "runtime-template", &colab.RuntimeTemplateArgs{
			DisplayName: pulumi.String("Runtime template no name"),
			Location:    pulumi.String("us-central1"),
			MachineSpec: &colab.RuntimeTemplateMachineSpecArgs{
				MachineType: pulumi.String("e2-standard-4"),
			},
			NetworkSpec: &colab.RuntimeTemplateNetworkSpecArgs{
				EnableInternetAccess: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var runtime_template = new Gcp.Colab.RuntimeTemplate("runtime-template", new()
    {
        DisplayName = "Runtime template no name",
        Location = "us-central1",
        MachineSpec = new Gcp.Colab.Inputs.RuntimeTemplateMachineSpecArgs
        {
            MachineType = "e2-standard-4",
        },
        NetworkSpec = new Gcp.Colab.Inputs.RuntimeTemplateNetworkSpecArgs
        {
            EnableInternetAccess = true,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.colab.RuntimeTemplate;
import com.pulumi.gcp.colab.RuntimeTemplateArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateMachineSpecArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateNetworkSpecArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

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

    public static void stack(Context ctx) {
        var runtime_template = new RuntimeTemplate("runtime-template", RuntimeTemplateArgs.builder()
            .displayName("Runtime template no name")
            .location("us-central1")
            .machineSpec(RuntimeTemplateMachineSpecArgs.builder()
                .machineType("e2-standard-4")
                .build())
            .networkSpec(RuntimeTemplateNetworkSpecArgs.builder()
                .enableInternetAccess(true)
                .build())
            .build());

    }
}
Copy
resources:
  runtime-template:
    type: gcp:colab:RuntimeTemplate
    properties:
      displayName: Runtime template no name
      location: us-central1
      machineSpec:
        machineType: e2-standard-4
      networkSpec:
        enableInternetAccess: true
Copy

Colab Runtime Template Full

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

const myNetwork = new gcp.compute.Network("my_network", {
    name: "colab-test-default",
    autoCreateSubnetworks: false,
});
const mySubnetwork = new gcp.compute.Subnetwork("my_subnetwork", {
    name: "colab-test-default",
    network: myNetwork.id,
    region: "us-central1",
    ipCidrRange: "10.0.1.0/24",
});
const runtime_template = new gcp.colab.RuntimeTemplate("runtime-template", {
    name: "colab-runtime-template",
    displayName: "Runtime template full",
    location: "us-central1",
    description: "Full runtime template",
    machineSpec: {
        machineType: "n1-standard-2",
        acceleratorType: "NVIDIA_TESLA_T4",
        acceleratorCount: 1,
    },
    dataPersistentDiskSpec: {
        diskType: "pd-standard",
        diskSizeGb: "200",
    },
    networkSpec: {
        enableInternetAccess: true,
        network: myNetwork.id,
        subnetwork: mySubnetwork.id,
    },
    labels: {
        k: "val",
    },
    idleShutdownConfig: {
        idleTimeout: "3600s",
    },
    eucConfig: {
        eucDisabled: true,
    },
    shieldedVmConfig: {
        enableSecureBoot: true,
    },
    networkTags: [
        "abc",
        "def",
    ],
    encryptionSpec: {
        kmsKeyName: "my-crypto-key",
    },
    softwareConfig: {
        envs: [{
            name: "TEST",
            value: "1",
        }],
        postStartupScriptConfig: {
            postStartupScript: "echo 'hello world'",
            postStartupScriptUrl: "gs://colab-enterprise-pss-secure/secure_pss.sh",
            postStartupScriptBehavior: "RUN_ONCE",
        },
    },
});
Copy
import pulumi
import pulumi_gcp as gcp

my_network = gcp.compute.Network("my_network",
    name="colab-test-default",
    auto_create_subnetworks=False)
my_subnetwork = gcp.compute.Subnetwork("my_subnetwork",
    name="colab-test-default",
    network=my_network.id,
    region="us-central1",
    ip_cidr_range="10.0.1.0/24")
runtime_template = gcp.colab.RuntimeTemplate("runtime-template",
    name="colab-runtime-template",
    display_name="Runtime template full",
    location="us-central1",
    description="Full runtime template",
    machine_spec={
        "machine_type": "n1-standard-2",
        "accelerator_type": "NVIDIA_TESLA_T4",
        "accelerator_count": 1,
    },
    data_persistent_disk_spec={
        "disk_type": "pd-standard",
        "disk_size_gb": "200",
    },
    network_spec={
        "enable_internet_access": True,
        "network": my_network.id,
        "subnetwork": my_subnetwork.id,
    },
    labels={
        "k": "val",
    },
    idle_shutdown_config={
        "idle_timeout": "3600s",
    },
    euc_config={
        "euc_disabled": True,
    },
    shielded_vm_config={
        "enable_secure_boot": True,
    },
    network_tags=[
        "abc",
        "def",
    ],
    encryption_spec={
        "kms_key_name": "my-crypto-key",
    },
    software_config={
        "envs": [{
            "name": "TEST",
            "value": "1",
        }],
        "post_startup_script_config": {
            "post_startup_script": "echo 'hello world'",
            "post_startup_script_url": "gs://colab-enterprise-pss-secure/secure_pss.sh",
            "post_startup_script_behavior": "RUN_ONCE",
        },
    })
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		myNetwork, err := compute.NewNetwork(ctx, "my_network", &compute.NetworkArgs{
			Name:                  pulumi.String("colab-test-default"),
			AutoCreateSubnetworks: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		mySubnetwork, err := compute.NewSubnetwork(ctx, "my_subnetwork", &compute.SubnetworkArgs{
			Name:        pulumi.String("colab-test-default"),
			Network:     myNetwork.ID(),
			Region:      pulumi.String("us-central1"),
			IpCidrRange: pulumi.String("10.0.1.0/24"),
		})
		if err != nil {
			return err
		}
		_, err = colab.NewRuntimeTemplate(ctx, "runtime-template", &colab.RuntimeTemplateArgs{
			Name:        pulumi.String("colab-runtime-template"),
			DisplayName: pulumi.String("Runtime template full"),
			Location:    pulumi.String("us-central1"),
			Description: pulumi.String("Full runtime template"),
			MachineSpec: &colab.RuntimeTemplateMachineSpecArgs{
				MachineType:      pulumi.String("n1-standard-2"),
				AcceleratorType:  pulumi.String("NVIDIA_TESLA_T4"),
				AcceleratorCount: pulumi.Int(1),
			},
			DataPersistentDiskSpec: &colab.RuntimeTemplateDataPersistentDiskSpecArgs{
				DiskType:   pulumi.String("pd-standard"),
				DiskSizeGb: pulumi.String("200"),
			},
			NetworkSpec: &colab.RuntimeTemplateNetworkSpecArgs{
				EnableInternetAccess: pulumi.Bool(true),
				Network:              myNetwork.ID(),
				Subnetwork:           mySubnetwork.ID(),
			},
			Labels: pulumi.StringMap{
				"k": pulumi.String("val"),
			},
			IdleShutdownConfig: &colab.RuntimeTemplateIdleShutdownConfigArgs{
				IdleTimeout: pulumi.String("3600s"),
			},
			EucConfig: &colab.RuntimeTemplateEucConfigArgs{
				EucDisabled: pulumi.Bool(true),
			},
			ShieldedVmConfig: &colab.RuntimeTemplateShieldedVmConfigArgs{
				EnableSecureBoot: pulumi.Bool(true),
			},
			NetworkTags: pulumi.StringArray{
				pulumi.String("abc"),
				pulumi.String("def"),
			},
			EncryptionSpec: &colab.RuntimeTemplateEncryptionSpecArgs{
				KmsKeyName: pulumi.String("my-crypto-key"),
			},
			SoftwareConfig: &colab.RuntimeTemplateSoftwareConfigArgs{
				Envs: colab.RuntimeTemplateSoftwareConfigEnvArray{
					&colab.RuntimeTemplateSoftwareConfigEnvArgs{
						Name:  pulumi.String("TEST"),
						Value: pulumi.String("1"),
					},
				},
				PostStartupScriptConfig: &colab.RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs{
					PostStartupScript:         pulumi.String("echo 'hello world'"),
					PostStartupScriptUrl:      pulumi.String("gs://colab-enterprise-pss-secure/secure_pss.sh"),
					PostStartupScriptBehavior: pulumi.String("RUN_ONCE"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;

return await Deployment.RunAsync(() => 
{
    var myNetwork = new Gcp.Compute.Network("my_network", new()
    {
        Name = "colab-test-default",
        AutoCreateSubnetworks = false,
    });

    var mySubnetwork = new Gcp.Compute.Subnetwork("my_subnetwork", new()
    {
        Name = "colab-test-default",
        Network = myNetwork.Id,
        Region = "us-central1",
        IpCidrRange = "10.0.1.0/24",
    });

    var runtime_template = new Gcp.Colab.RuntimeTemplate("runtime-template", new()
    {
        Name = "colab-runtime-template",
        DisplayName = "Runtime template full",
        Location = "us-central1",
        Description = "Full runtime template",
        MachineSpec = new Gcp.Colab.Inputs.RuntimeTemplateMachineSpecArgs
        {
            MachineType = "n1-standard-2",
            AcceleratorType = "NVIDIA_TESLA_T4",
            AcceleratorCount = 1,
        },
        DataPersistentDiskSpec = new Gcp.Colab.Inputs.RuntimeTemplateDataPersistentDiskSpecArgs
        {
            DiskType = "pd-standard",
            DiskSizeGb = "200",
        },
        NetworkSpec = new Gcp.Colab.Inputs.RuntimeTemplateNetworkSpecArgs
        {
            EnableInternetAccess = true,
            Network = myNetwork.Id,
            Subnetwork = mySubnetwork.Id,
        },
        Labels = 
        {
            { "k", "val" },
        },
        IdleShutdownConfig = new Gcp.Colab.Inputs.RuntimeTemplateIdleShutdownConfigArgs
        {
            IdleTimeout = "3600s",
        },
        EucConfig = new Gcp.Colab.Inputs.RuntimeTemplateEucConfigArgs
        {
            EucDisabled = true,
        },
        ShieldedVmConfig = new Gcp.Colab.Inputs.RuntimeTemplateShieldedVmConfigArgs
        {
            EnableSecureBoot = true,
        },
        NetworkTags = new[]
        {
            "abc",
            "def",
        },
        EncryptionSpec = new Gcp.Colab.Inputs.RuntimeTemplateEncryptionSpecArgs
        {
            KmsKeyName = "my-crypto-key",
        },
        SoftwareConfig = new Gcp.Colab.Inputs.RuntimeTemplateSoftwareConfigArgs
        {
            Envs = new[]
            {
                new Gcp.Colab.Inputs.RuntimeTemplateSoftwareConfigEnvArgs
                {
                    Name = "TEST",
                    Value = "1",
                },
            },
            PostStartupScriptConfig = new Gcp.Colab.Inputs.RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs
            {
                PostStartupScript = "echo 'hello world'",
                PostStartupScriptUrl = "gs://colab-enterprise-pss-secure/secure_pss.sh",
                PostStartupScriptBehavior = "RUN_ONCE",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.Subnetwork;
import com.pulumi.gcp.compute.SubnetworkArgs;
import com.pulumi.gcp.colab.RuntimeTemplate;
import com.pulumi.gcp.colab.RuntimeTemplateArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateMachineSpecArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateDataPersistentDiskSpecArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateNetworkSpecArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateIdleShutdownConfigArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateEucConfigArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateShieldedVmConfigArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateEncryptionSpecArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateSoftwareConfigArgs;
import com.pulumi.gcp.colab.inputs.RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

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

    public static void stack(Context ctx) {
        var myNetwork = new Network("myNetwork", NetworkArgs.builder()
            .name("colab-test-default")
            .autoCreateSubnetworks(false)
            .build());

        var mySubnetwork = new Subnetwork("mySubnetwork", SubnetworkArgs.builder()
            .name("colab-test-default")
            .network(myNetwork.id())
            .region("us-central1")
            .ipCidrRange("10.0.1.0/24")
            .build());

        var runtime_template = new RuntimeTemplate("runtime-template", RuntimeTemplateArgs.builder()
            .name("colab-runtime-template")
            .displayName("Runtime template full")
            .location("us-central1")
            .description("Full runtime template")
            .machineSpec(RuntimeTemplateMachineSpecArgs.builder()
                .machineType("n1-standard-2")
                .acceleratorType("NVIDIA_TESLA_T4")
                .acceleratorCount("1")
                .build())
            .dataPersistentDiskSpec(RuntimeTemplateDataPersistentDiskSpecArgs.builder()
                .diskType("pd-standard")
                .diskSizeGb(200)
                .build())
            .networkSpec(RuntimeTemplateNetworkSpecArgs.builder()
                .enableInternetAccess(true)
                .network(myNetwork.id())
                .subnetwork(mySubnetwork.id())
                .build())
            .labels(Map.of("k", "val"))
            .idleShutdownConfig(RuntimeTemplateIdleShutdownConfigArgs.builder()
                .idleTimeout("3600s")
                .build())
            .eucConfig(RuntimeTemplateEucConfigArgs.builder()
                .eucDisabled(true)
                .build())
            .shieldedVmConfig(RuntimeTemplateShieldedVmConfigArgs.builder()
                .enableSecureBoot(true)
                .build())
            .networkTags(            
                "abc",
                "def")
            .encryptionSpec(RuntimeTemplateEncryptionSpecArgs.builder()
                .kmsKeyName("my-crypto-key")
                .build())
            .softwareConfig(RuntimeTemplateSoftwareConfigArgs.builder()
                .envs(RuntimeTemplateSoftwareConfigEnvArgs.builder()
                    .name("TEST")
                    .value(1)
                    .build())
                .postStartupScriptConfig(RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs.builder()
                    .postStartupScript("echo 'hello world'")
                    .postStartupScriptUrl("gs://colab-enterprise-pss-secure/secure_pss.sh")
                    .postStartupScriptBehavior("RUN_ONCE")
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  myNetwork:
    type: gcp:compute:Network
    name: my_network
    properties:
      name: colab-test-default
      autoCreateSubnetworks: false
  mySubnetwork:
    type: gcp:compute:Subnetwork
    name: my_subnetwork
    properties:
      name: colab-test-default
      network: ${myNetwork.id}
      region: us-central1
      ipCidrRange: 10.0.1.0/24
  runtime-template:
    type: gcp:colab:RuntimeTemplate
    properties:
      name: colab-runtime-template
      displayName: Runtime template full
      location: us-central1
      description: Full runtime template
      machineSpec:
        machineType: n1-standard-2
        acceleratorType: NVIDIA_TESLA_T4
        acceleratorCount: '1'
      dataPersistentDiskSpec:
        diskType: pd-standard
        diskSizeGb: 200
      networkSpec:
        enableInternetAccess: true
        network: ${myNetwork.id}
        subnetwork: ${mySubnetwork.id}
      labels:
        k: val
      idleShutdownConfig:
        idleTimeout: 3600s
      eucConfig:
        eucDisabled: true
      shieldedVmConfig:
        enableSecureBoot: true
      networkTags:
        - abc
        - def
      encryptionSpec:
        kmsKeyName: my-crypto-key
      softwareConfig:
        envs:
          - name: TEST
            value: 1
        postStartupScriptConfig:
          postStartupScript: echo 'hello world'
          postStartupScriptUrl: gs://colab-enterprise-pss-secure/secure_pss.sh
          postStartupScriptBehavior: RUN_ONCE
Copy

Create RuntimeTemplate Resource

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

Constructor syntax

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

@overload
def RuntimeTemplate(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    display_name: Optional[str] = None,
                    location: Optional[str] = None,
                    labels: Optional[Mapping[str, str]] = None,
                    encryption_spec: Optional[RuntimeTemplateEncryptionSpecArgs] = None,
                    euc_config: Optional[RuntimeTemplateEucConfigArgs] = None,
                    idle_shutdown_config: Optional[RuntimeTemplateIdleShutdownConfigArgs] = None,
                    data_persistent_disk_spec: Optional[RuntimeTemplateDataPersistentDiskSpecArgs] = None,
                    description: Optional[str] = None,
                    machine_spec: Optional[RuntimeTemplateMachineSpecArgs] = None,
                    name: Optional[str] = None,
                    network_spec: Optional[RuntimeTemplateNetworkSpecArgs] = None,
                    network_tags: Optional[Sequence[str]] = None,
                    project: Optional[str] = None,
                    shielded_vm_config: Optional[RuntimeTemplateShieldedVmConfigArgs] = None,
                    software_config: Optional[RuntimeTemplateSoftwareConfigArgs] = None)
func NewRuntimeTemplate(ctx *Context, name string, args RuntimeTemplateArgs, opts ...ResourceOption) (*RuntimeTemplate, error)
public RuntimeTemplate(string name, RuntimeTemplateArgs args, CustomResourceOptions? opts = null)
public RuntimeTemplate(String name, RuntimeTemplateArgs args)
public RuntimeTemplate(String name, RuntimeTemplateArgs args, CustomResourceOptions options)
type: gcp:colab:RuntimeTemplate
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. RuntimeTemplateArgs
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. RuntimeTemplateArgs
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. RuntimeTemplateArgs
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. RuntimeTemplateArgs
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. RuntimeTemplateArgs
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 runtimeTemplateResource = new Gcp.Colab.RuntimeTemplate("runtimeTemplateResource", new()
{
    DisplayName = "string",
    Location = "string",
    Labels = 
    {
        { "string", "string" },
    },
    EncryptionSpec = new Gcp.Colab.Inputs.RuntimeTemplateEncryptionSpecArgs
    {
        KmsKeyName = "string",
    },
    EucConfig = new Gcp.Colab.Inputs.RuntimeTemplateEucConfigArgs
    {
        EucDisabled = false,
    },
    IdleShutdownConfig = new Gcp.Colab.Inputs.RuntimeTemplateIdleShutdownConfigArgs
    {
        IdleTimeout = "string",
    },
    DataPersistentDiskSpec = new Gcp.Colab.Inputs.RuntimeTemplateDataPersistentDiskSpecArgs
    {
        DiskSizeGb = "string",
        DiskType = "string",
    },
    Description = "string",
    MachineSpec = new Gcp.Colab.Inputs.RuntimeTemplateMachineSpecArgs
    {
        AcceleratorCount = 0,
        AcceleratorType = "string",
        MachineType = "string",
    },
    Name = "string",
    NetworkSpec = new Gcp.Colab.Inputs.RuntimeTemplateNetworkSpecArgs
    {
        EnableInternetAccess = false,
        Network = "string",
        Subnetwork = "string",
    },
    NetworkTags = new[]
    {
        "string",
    },
    Project = "string",
    ShieldedVmConfig = new Gcp.Colab.Inputs.RuntimeTemplateShieldedVmConfigArgs
    {
        EnableSecureBoot = false,
    },
    SoftwareConfig = new Gcp.Colab.Inputs.RuntimeTemplateSoftwareConfigArgs
    {
        Envs = new[]
        {
            new Gcp.Colab.Inputs.RuntimeTemplateSoftwareConfigEnvArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        PostStartupScriptConfig = new Gcp.Colab.Inputs.RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs
        {
            PostStartupScript = "string",
            PostStartupScriptBehavior = "string",
            PostStartupScriptUrl = "string",
        },
    },
});
Copy
example, err := colab.NewRuntimeTemplate(ctx, "runtimeTemplateResource", &colab.RuntimeTemplateArgs{
	DisplayName: pulumi.String("string"),
	Location:    pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	EncryptionSpec: &colab.RuntimeTemplateEncryptionSpecArgs{
		KmsKeyName: pulumi.String("string"),
	},
	EucConfig: &colab.RuntimeTemplateEucConfigArgs{
		EucDisabled: pulumi.Bool(false),
	},
	IdleShutdownConfig: &colab.RuntimeTemplateIdleShutdownConfigArgs{
		IdleTimeout: pulumi.String("string"),
	},
	DataPersistentDiskSpec: &colab.RuntimeTemplateDataPersistentDiskSpecArgs{
		DiskSizeGb: pulumi.String("string"),
		DiskType:   pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	MachineSpec: &colab.RuntimeTemplateMachineSpecArgs{
		AcceleratorCount: pulumi.Int(0),
		AcceleratorType:  pulumi.String("string"),
		MachineType:      pulumi.String("string"),
	},
	Name: pulumi.String("string"),
	NetworkSpec: &colab.RuntimeTemplateNetworkSpecArgs{
		EnableInternetAccess: pulumi.Bool(false),
		Network:              pulumi.String("string"),
		Subnetwork:           pulumi.String("string"),
	},
	NetworkTags: pulumi.StringArray{
		pulumi.String("string"),
	},
	Project: pulumi.String("string"),
	ShieldedVmConfig: &colab.RuntimeTemplateShieldedVmConfigArgs{
		EnableSecureBoot: pulumi.Bool(false),
	},
	SoftwareConfig: &colab.RuntimeTemplateSoftwareConfigArgs{
		Envs: colab.RuntimeTemplateSoftwareConfigEnvArray{
			&colab.RuntimeTemplateSoftwareConfigEnvArgs{
				Name:  pulumi.String("string"),
				Value: pulumi.String("string"),
			},
		},
		PostStartupScriptConfig: &colab.RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs{
			PostStartupScript:         pulumi.String("string"),
			PostStartupScriptBehavior: pulumi.String("string"),
			PostStartupScriptUrl:      pulumi.String("string"),
		},
	},
})
Copy
var runtimeTemplateResource = new RuntimeTemplate("runtimeTemplateResource", RuntimeTemplateArgs.builder()
    .displayName("string")
    .location("string")
    .labels(Map.of("string", "string"))
    .encryptionSpec(RuntimeTemplateEncryptionSpecArgs.builder()
        .kmsKeyName("string")
        .build())
    .eucConfig(RuntimeTemplateEucConfigArgs.builder()
        .eucDisabled(false)
        .build())
    .idleShutdownConfig(RuntimeTemplateIdleShutdownConfigArgs.builder()
        .idleTimeout("string")
        .build())
    .dataPersistentDiskSpec(RuntimeTemplateDataPersistentDiskSpecArgs.builder()
        .diskSizeGb("string")
        .diskType("string")
        .build())
    .description("string")
    .machineSpec(RuntimeTemplateMachineSpecArgs.builder()
        .acceleratorCount(0)
        .acceleratorType("string")
        .machineType("string")
        .build())
    .name("string")
    .networkSpec(RuntimeTemplateNetworkSpecArgs.builder()
        .enableInternetAccess(false)
        .network("string")
        .subnetwork("string")
        .build())
    .networkTags("string")
    .project("string")
    .shieldedVmConfig(RuntimeTemplateShieldedVmConfigArgs.builder()
        .enableSecureBoot(false)
        .build())
    .softwareConfig(RuntimeTemplateSoftwareConfigArgs.builder()
        .envs(RuntimeTemplateSoftwareConfigEnvArgs.builder()
            .name("string")
            .value("string")
            .build())
        .postStartupScriptConfig(RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs.builder()
            .postStartupScript("string")
            .postStartupScriptBehavior("string")
            .postStartupScriptUrl("string")
            .build())
        .build())
    .build());
Copy
runtime_template_resource = gcp.colab.RuntimeTemplate("runtimeTemplateResource",
    display_name="string",
    location="string",
    labels={
        "string": "string",
    },
    encryption_spec={
        "kms_key_name": "string",
    },
    euc_config={
        "euc_disabled": False,
    },
    idle_shutdown_config={
        "idle_timeout": "string",
    },
    data_persistent_disk_spec={
        "disk_size_gb": "string",
        "disk_type": "string",
    },
    description="string",
    machine_spec={
        "accelerator_count": 0,
        "accelerator_type": "string",
        "machine_type": "string",
    },
    name="string",
    network_spec={
        "enable_internet_access": False,
        "network": "string",
        "subnetwork": "string",
    },
    network_tags=["string"],
    project="string",
    shielded_vm_config={
        "enable_secure_boot": False,
    },
    software_config={
        "envs": [{
            "name": "string",
            "value": "string",
        }],
        "post_startup_script_config": {
            "post_startup_script": "string",
            "post_startup_script_behavior": "string",
            "post_startup_script_url": "string",
        },
    })
Copy
const runtimeTemplateResource = new gcp.colab.RuntimeTemplate("runtimeTemplateResource", {
    displayName: "string",
    location: "string",
    labels: {
        string: "string",
    },
    encryptionSpec: {
        kmsKeyName: "string",
    },
    eucConfig: {
        eucDisabled: false,
    },
    idleShutdownConfig: {
        idleTimeout: "string",
    },
    dataPersistentDiskSpec: {
        diskSizeGb: "string",
        diskType: "string",
    },
    description: "string",
    machineSpec: {
        acceleratorCount: 0,
        acceleratorType: "string",
        machineType: "string",
    },
    name: "string",
    networkSpec: {
        enableInternetAccess: false,
        network: "string",
        subnetwork: "string",
    },
    networkTags: ["string"],
    project: "string",
    shieldedVmConfig: {
        enableSecureBoot: false,
    },
    softwareConfig: {
        envs: [{
            name: "string",
            value: "string",
        }],
        postStartupScriptConfig: {
            postStartupScript: "string",
            postStartupScriptBehavior: "string",
            postStartupScriptUrl: "string",
        },
    },
});
Copy
type: gcp:colab:RuntimeTemplate
properties:
    dataPersistentDiskSpec:
        diskSizeGb: string
        diskType: string
    description: string
    displayName: string
    encryptionSpec:
        kmsKeyName: string
    eucConfig:
        eucDisabled: false
    idleShutdownConfig:
        idleTimeout: string
    labels:
        string: string
    location: string
    machineSpec:
        acceleratorCount: 0
        acceleratorType: string
        machineType: string
    name: string
    networkSpec:
        enableInternetAccess: false
        network: string
        subnetwork: string
    networkTags:
        - string
    project: string
    shieldedVmConfig:
        enableSecureBoot: false
    softwareConfig:
        envs:
            - name: string
              value: string
        postStartupScriptConfig:
            postStartupScript: string
            postStartupScriptBehavior: string
            postStartupScriptUrl: string
Copy

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

DisplayName
This property is required.
Changes to this property will trigger replacement.
string
Required. The display name of the Runtime Template.
Location
This property is required.
Changes to this property will trigger replacement.
string
The location for the resource: https://cloud.google.com/colab/docs/locations


DataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpec
The configuration for the data disk of the runtime. Structure is documented below.
Description Changes to this property will trigger replacement. string
The description of the Runtime Template.
EncryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpec
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
EucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfig
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
IdleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfig
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
Labels Dictionary<string, string>
Labels to identify and group the runtime 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.
MachineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpec
'The machine configuration of the runtime.' Structure is documented below.
Name Changes to this property will trigger replacement. string
The resource name of the Runtime Template
NetworkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpec
The network configuration for the runtime. Structure is documented below.
NetworkTags Changes to this property will trigger replacement. List<string>
Applies the given Compute Engine tags to the runtime.
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.
ShieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfig
Runtime Shielded VM spec. Structure is documented below.
SoftwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfig
The notebook software configuration of the notebook runtime. Structure is documented below.
DisplayName
This property is required.
Changes to this property will trigger replacement.
string
Required. The display name of the Runtime Template.
Location
This property is required.
Changes to this property will trigger replacement.
string
The location for the resource: https://cloud.google.com/colab/docs/locations


DataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpecArgs
The configuration for the data disk of the runtime. Structure is documented below.
Description Changes to this property will trigger replacement. string
The description of the Runtime Template.
EncryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpecArgs
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
EucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfigArgs
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
IdleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfigArgs
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
Labels map[string]string
Labels to identify and group the runtime 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.
MachineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpecArgs
'The machine configuration of the runtime.' Structure is documented below.
Name Changes to this property will trigger replacement. string
The resource name of the Runtime Template
NetworkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpecArgs
The network configuration for the runtime. Structure is documented below.
NetworkTags Changes to this property will trigger replacement. []string
Applies the given Compute Engine tags to the runtime.
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.
ShieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfigArgs
Runtime Shielded VM spec. Structure is documented below.
SoftwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigArgs
The notebook software configuration of the notebook runtime. Structure is documented below.
displayName
This property is required.
Changes to this property will trigger replacement.
String
Required. The display name of the Runtime Template.
location
This property is required.
Changes to this property will trigger replacement.
String
The location for the resource: https://cloud.google.com/colab/docs/locations


dataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpec
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. String
The description of the Runtime Template.
encryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpec
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
eucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfig
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfig
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels Map<String,String>
Labels to identify and group the runtime 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.
machineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpec
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. String
The resource name of the Runtime Template
networkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpec
The network configuration for the runtime. Structure is documented below.
networkTags Changes to this property will trigger replacement. List<String>
Applies the given Compute Engine tags to the runtime.
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.
shieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfig
Runtime Shielded VM spec. Structure is documented below.
softwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfig
The notebook software configuration of the notebook runtime. Structure is documented below.
displayName
This property is required.
Changes to this property will trigger replacement.
string
Required. The display name of the Runtime Template.
location
This property is required.
Changes to this property will trigger replacement.
string
The location for the resource: https://cloud.google.com/colab/docs/locations


dataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpec
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. string
The description of the Runtime Template.
encryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpec
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
eucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfig
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfig
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels {[key: string]: string}
Labels to identify and group the runtime 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.
machineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpec
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. string
The resource name of the Runtime Template
networkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpec
The network configuration for the runtime. Structure is documented below.
networkTags Changes to this property will trigger replacement. string[]
Applies the given Compute Engine tags to the runtime.
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.
shieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfig
Runtime Shielded VM spec. Structure is documented below.
softwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfig
The notebook software configuration of the notebook runtime. Structure is documented below.
display_name
This property is required.
Changes to this property will trigger replacement.
str
Required. The display name of the Runtime Template.
location
This property is required.
Changes to this property will trigger replacement.
str
The location for the resource: https://cloud.google.com/colab/docs/locations


data_persistent_disk_spec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpecArgs
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. str
The description of the Runtime Template.
encryption_spec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpecArgs
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
euc_config Changes to this property will trigger replacement. RuntimeTemplateEucConfigArgs
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idle_shutdown_config Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfigArgs
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels Mapping[str, str]
Labels to identify and group the runtime 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_spec Changes to this property will trigger replacement. RuntimeTemplateMachineSpecArgs
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. str
The resource name of the Runtime Template
network_spec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpecArgs
The network configuration for the runtime. Structure is documented below.
network_tags Changes to this property will trigger replacement. Sequence[str]
Applies the given Compute Engine tags to the runtime.
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.
shielded_vm_config Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfigArgs
Runtime Shielded VM spec. Structure is documented below.
software_config Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigArgs
The notebook software configuration of the notebook runtime. Structure is documented below.
displayName
This property is required.
Changes to this property will trigger replacement.
String
Required. The display name of the Runtime Template.
location
This property is required.
Changes to this property will trigger replacement.
String
The location for the resource: https://cloud.google.com/colab/docs/locations


dataPersistentDiskSpec Changes to this property will trigger replacement. Property Map
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. String
The description of the Runtime Template.
encryptionSpec Changes to this property will trigger replacement. Property Map
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
eucConfig Changes to this property will trigger replacement. Property Map
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idleShutdownConfig Changes to this property will trigger replacement. Property Map
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels Map<String>
Labels to identify and group the runtime 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.
machineSpec Changes to this property will trigger replacement. Property Map
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. String
The resource name of the Runtime Template
networkSpec Changes to this property will trigger replacement. Property Map
The network configuration for the runtime. Structure is documented below.
networkTags Changes to this property will trigger replacement. List<String>
Applies the given Compute Engine tags to the runtime.
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.
shieldedVmConfig Changes to this property will trigger replacement. Property Map
Runtime Shielded VM spec. Structure is documented below.
softwareConfig Changes to this property will trigger replacement. Property Map
The notebook software configuration of the notebook runtime. Structure is documented below.

Outputs

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

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.
PulumiLabels Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
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.
PulumiLabels map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
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.
pulumiLabels Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
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.
pulumiLabels {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
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.
pulumi_labels Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
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.
pulumiLabels Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.

Look up Existing RuntimeTemplate Resource

Get an existing RuntimeTemplate 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?: RuntimeTemplateState, opts?: CustomResourceOptions): RuntimeTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        data_persistent_disk_spec: Optional[RuntimeTemplateDataPersistentDiskSpecArgs] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        encryption_spec: Optional[RuntimeTemplateEncryptionSpecArgs] = None,
        euc_config: Optional[RuntimeTemplateEucConfigArgs] = None,
        idle_shutdown_config: Optional[RuntimeTemplateIdleShutdownConfigArgs] = None,
        labels: Optional[Mapping[str, str]] = None,
        location: Optional[str] = None,
        machine_spec: Optional[RuntimeTemplateMachineSpecArgs] = None,
        name: Optional[str] = None,
        network_spec: Optional[RuntimeTemplateNetworkSpecArgs] = None,
        network_tags: Optional[Sequence[str]] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        shielded_vm_config: Optional[RuntimeTemplateShieldedVmConfigArgs] = None,
        software_config: Optional[RuntimeTemplateSoftwareConfigArgs] = None) -> RuntimeTemplate
func GetRuntimeTemplate(ctx *Context, name string, id IDInput, state *RuntimeTemplateState, opts ...ResourceOption) (*RuntimeTemplate, error)
public static RuntimeTemplate Get(string name, Input<string> id, RuntimeTemplateState? state, CustomResourceOptions? opts = null)
public static RuntimeTemplate get(String name, Output<String> id, RuntimeTemplateState state, CustomResourceOptions options)
resources:  _:    type: gcp:colab:RuntimeTemplate    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:
DataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpec
The configuration for the data disk of the runtime. Structure is documented below.
Description Changes to this property will trigger replacement. string
The description of the Runtime Template.
DisplayName Changes to this property will trigger replacement. string
Required. The display name of the Runtime Template.
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.
EncryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpec
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
EucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfig
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
IdleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfig
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
Labels Dictionary<string, string>
Labels to identify and group the runtime 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.
Location Changes to this property will trigger replacement. string
The location for the resource: https://cloud.google.com/colab/docs/locations


MachineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpec
'The machine configuration of the runtime.' Structure is documented below.
Name Changes to this property will trigger replacement. string
The resource name of the Runtime Template
NetworkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpec
The network configuration for the runtime. Structure is documented below.
NetworkTags Changes to this property will trigger replacement. List<string>
Applies the given Compute Engine tags to the runtime.
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.
ShieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfig
Runtime Shielded VM spec. Structure is documented below.
SoftwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfig
The notebook software configuration of the notebook runtime. Structure is documented below.
DataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpecArgs
The configuration for the data disk of the runtime. Structure is documented below.
Description Changes to this property will trigger replacement. string
The description of the Runtime Template.
DisplayName Changes to this property will trigger replacement. string
Required. The display name of the Runtime Template.
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.
EncryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpecArgs
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
EucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfigArgs
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
IdleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfigArgs
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
Labels map[string]string
Labels to identify and group the runtime 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.
Location Changes to this property will trigger replacement. string
The location for the resource: https://cloud.google.com/colab/docs/locations


MachineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpecArgs
'The machine configuration of the runtime.' Structure is documented below.
Name Changes to this property will trigger replacement. string
The resource name of the Runtime Template
NetworkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpecArgs
The network configuration for the runtime. Structure is documented below.
NetworkTags Changes to this property will trigger replacement. []string
Applies the given Compute Engine tags to the runtime.
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.
ShieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfigArgs
Runtime Shielded VM spec. Structure is documented below.
SoftwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigArgs
The notebook software configuration of the notebook runtime. Structure is documented below.
dataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpec
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. String
The description of the Runtime Template.
displayName Changes to this property will trigger replacement. String
Required. The display name of the Runtime Template.
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.
encryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpec
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
eucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfig
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfig
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels Map<String,String>
Labels to identify and group the runtime 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.
location Changes to this property will trigger replacement. String
The location for the resource: https://cloud.google.com/colab/docs/locations


machineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpec
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. String
The resource name of the Runtime Template
networkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpec
The network configuration for the runtime. Structure is documented below.
networkTags Changes to this property will trigger replacement. List<String>
Applies the given Compute Engine tags to the runtime.
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.
shieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfig
Runtime Shielded VM spec. Structure is documented below.
softwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfig
The notebook software configuration of the notebook runtime. Structure is documented below.
dataPersistentDiskSpec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpec
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. string
The description of the Runtime Template.
displayName Changes to this property will trigger replacement. string
Required. The display name of the Runtime Template.
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.
encryptionSpec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpec
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
eucConfig Changes to this property will trigger replacement. RuntimeTemplateEucConfig
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idleShutdownConfig Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfig
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels {[key: string]: string}
Labels to identify and group the runtime 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.
location Changes to this property will trigger replacement. string
The location for the resource: https://cloud.google.com/colab/docs/locations


machineSpec Changes to this property will trigger replacement. RuntimeTemplateMachineSpec
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. string
The resource name of the Runtime Template
networkSpec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpec
The network configuration for the runtime. Structure is documented below.
networkTags Changes to this property will trigger replacement. string[]
Applies the given Compute Engine tags to the runtime.
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.
shieldedVmConfig Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfig
Runtime Shielded VM spec. Structure is documented below.
softwareConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfig
The notebook software configuration of the notebook runtime. Structure is documented below.
data_persistent_disk_spec Changes to this property will trigger replacement. RuntimeTemplateDataPersistentDiskSpecArgs
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. str
The description of the Runtime Template.
display_name Changes to this property will trigger replacement. str
Required. The display name of the Runtime Template.
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.
encryption_spec Changes to this property will trigger replacement. RuntimeTemplateEncryptionSpecArgs
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
euc_config Changes to this property will trigger replacement. RuntimeTemplateEucConfigArgs
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idle_shutdown_config Changes to this property will trigger replacement. RuntimeTemplateIdleShutdownConfigArgs
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels Mapping[str, str]
Labels to identify and group the runtime 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.
location Changes to this property will trigger replacement. str
The location for the resource: https://cloud.google.com/colab/docs/locations


machine_spec Changes to this property will trigger replacement. RuntimeTemplateMachineSpecArgs
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. str
The resource name of the Runtime Template
network_spec Changes to this property will trigger replacement. RuntimeTemplateNetworkSpecArgs
The network configuration for the runtime. Structure is documented below.
network_tags Changes to this property will trigger replacement. Sequence[str]
Applies the given Compute Engine tags to the runtime.
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.
shielded_vm_config Changes to this property will trigger replacement. RuntimeTemplateShieldedVmConfigArgs
Runtime Shielded VM spec. Structure is documented below.
software_config Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigArgs
The notebook software configuration of the notebook runtime. Structure is documented below.
dataPersistentDiskSpec Changes to this property will trigger replacement. Property Map
The configuration for the data disk of the runtime. Structure is documented below.
description Changes to this property will trigger replacement. String
The description of the Runtime Template.
displayName Changes to this property will trigger replacement. String
Required. The display name of the Runtime Template.
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.
encryptionSpec Changes to this property will trigger replacement. Property Map
Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
eucConfig Changes to this property will trigger replacement. Property Map
EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
idleShutdownConfig Changes to this property will trigger replacement. Property Map
Notebook Idle Shutdown configuration for the runtime. Structure is documented below.
labels Map<String>
Labels to identify and group the runtime 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.
location Changes to this property will trigger replacement. String
The location for the resource: https://cloud.google.com/colab/docs/locations


machineSpec Changes to this property will trigger replacement. Property Map
'The machine configuration of the runtime.' Structure is documented below.
name Changes to this property will trigger replacement. String
The resource name of the Runtime Template
networkSpec Changes to this property will trigger replacement. Property Map
The network configuration for the runtime. Structure is documented below.
networkTags Changes to this property will trigger replacement. List<String>
Applies the given Compute Engine tags to the runtime.
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.
shieldedVmConfig Changes to this property will trigger replacement. Property Map
Runtime Shielded VM spec. Structure is documented below.
softwareConfig Changes to this property will trigger replacement. Property Map
The notebook software configuration of the notebook runtime. Structure is documented below.

Supporting Types

RuntimeTemplateDataPersistentDiskSpec
, RuntimeTemplateDataPersistentDiskSpecArgs

DiskSizeGb Changes to this property will trigger replacement. string
The disk size of the runtime in GB. If specified, the diskType must also be specified. The minimum size is 10GB and the maximum is 65536GB.
DiskType Changes to this property will trigger replacement. string
The type of the persistent disk.
DiskSizeGb Changes to this property will trigger replacement. string
The disk size of the runtime in GB. If specified, the diskType must also be specified. The minimum size is 10GB and the maximum is 65536GB.
DiskType Changes to this property will trigger replacement. string
The type of the persistent disk.
diskSizeGb Changes to this property will trigger replacement. String
The disk size of the runtime in GB. If specified, the diskType must also be specified. The minimum size is 10GB and the maximum is 65536GB.
diskType Changes to this property will trigger replacement. String
The type of the persistent disk.
diskSizeGb Changes to this property will trigger replacement. string
The disk size of the runtime in GB. If specified, the diskType must also be specified. The minimum size is 10GB and the maximum is 65536GB.
diskType Changes to this property will trigger replacement. string
The type of the persistent disk.
disk_size_gb Changes to this property will trigger replacement. str
The disk size of the runtime in GB. If specified, the diskType must also be specified. The minimum size is 10GB and the maximum is 65536GB.
disk_type Changes to this property will trigger replacement. str
The type of the persistent disk.
diskSizeGb Changes to this property will trigger replacement. String
The disk size of the runtime in GB. If specified, the diskType must also be specified. The minimum size is 10GB and the maximum is 65536GB.
diskType Changes to this property will trigger replacement. String
The type of the persistent disk.

RuntimeTemplateEncryptionSpec
, RuntimeTemplateEncryptionSpecArgs

KmsKeyName Changes to this property will trigger replacement. string
The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
KmsKeyName Changes to this property will trigger replacement. string
The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
kmsKeyName Changes to this property will trigger replacement. String
The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
kmsKeyName Changes to this property will trigger replacement. string
The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
kms_key_name Changes to this property will trigger replacement. str
The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
kmsKeyName Changes to this property will trigger replacement. String
The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.

RuntimeTemplateEucConfig
, RuntimeTemplateEucConfigArgs

EucDisabled Changes to this property will trigger replacement. bool
Disable end user credential access for the runtime.
EucDisabled Changes to this property will trigger replacement. bool
Disable end user credential access for the runtime.
eucDisabled Changes to this property will trigger replacement. Boolean
Disable end user credential access for the runtime.
eucDisabled Changes to this property will trigger replacement. boolean
Disable end user credential access for the runtime.
euc_disabled Changes to this property will trigger replacement. bool
Disable end user credential access for the runtime.
eucDisabled Changes to this property will trigger replacement. Boolean
Disable end user credential access for the runtime.

RuntimeTemplateIdleShutdownConfig
, RuntimeTemplateIdleShutdownConfigArgs

IdleTimeout Changes to this property will trigger replacement. string
The duration after which the runtime is automatically shut down. An input of 0s disables the idle shutdown feature, and a valid range is [10m, 24h].
IdleTimeout Changes to this property will trigger replacement. string
The duration after which the runtime is automatically shut down. An input of 0s disables the idle shutdown feature, and a valid range is [10m, 24h].
idleTimeout Changes to this property will trigger replacement. String
The duration after which the runtime is automatically shut down. An input of 0s disables the idle shutdown feature, and a valid range is [10m, 24h].
idleTimeout Changes to this property will trigger replacement. string
The duration after which the runtime is automatically shut down. An input of 0s disables the idle shutdown feature, and a valid range is [10m, 24h].
idle_timeout Changes to this property will trigger replacement. str
The duration after which the runtime is automatically shut down. An input of 0s disables the idle shutdown feature, and a valid range is [10m, 24h].
idleTimeout Changes to this property will trigger replacement. String
The duration after which the runtime is automatically shut down. An input of 0s disables the idle shutdown feature, and a valid range is [10m, 24h].

RuntimeTemplateMachineSpec
, RuntimeTemplateMachineSpecArgs

AcceleratorCount Changes to this property will trigger replacement. int
The number of accelerators used by the runtime.
AcceleratorType Changes to this property will trigger replacement. string
The type of hardware accelerator used by the runtime. If specified, acceleratorCount must also be specified.
MachineType Changes to this property will trigger replacement. string
The Compute Engine machine type selected for the runtime.
AcceleratorCount Changes to this property will trigger replacement. int
The number of accelerators used by the runtime.
AcceleratorType Changes to this property will trigger replacement. string
The type of hardware accelerator used by the runtime. If specified, acceleratorCount must also be specified.
MachineType Changes to this property will trigger replacement. string
The Compute Engine machine type selected for the runtime.
acceleratorCount Changes to this property will trigger replacement. Integer
The number of accelerators used by the runtime.
acceleratorType Changes to this property will trigger replacement. String
The type of hardware accelerator used by the runtime. If specified, acceleratorCount must also be specified.
machineType Changes to this property will trigger replacement. String
The Compute Engine machine type selected for the runtime.
acceleratorCount Changes to this property will trigger replacement. number
The number of accelerators used by the runtime.
acceleratorType Changes to this property will trigger replacement. string
The type of hardware accelerator used by the runtime. If specified, acceleratorCount must also be specified.
machineType Changes to this property will trigger replacement. string
The Compute Engine machine type selected for the runtime.
accelerator_count Changes to this property will trigger replacement. int
The number of accelerators used by the runtime.
accelerator_type Changes to this property will trigger replacement. str
The type of hardware accelerator used by the runtime. If specified, acceleratorCount must also be specified.
machine_type Changes to this property will trigger replacement. str
The Compute Engine machine type selected for the runtime.
acceleratorCount Changes to this property will trigger replacement. Number
The number of accelerators used by the runtime.
acceleratorType Changes to this property will trigger replacement. String
The type of hardware accelerator used by the runtime. If specified, acceleratorCount must also be specified.
machineType Changes to this property will trigger replacement. String
The Compute Engine machine type selected for the runtime.

RuntimeTemplateNetworkSpec
, RuntimeTemplateNetworkSpecArgs

EnableInternetAccess Changes to this property will trigger replacement. bool
Enable public internet access for the runtime.
Network Changes to this property will trigger replacement. string
The name of the VPC that this runtime is in.
Subnetwork Changes to this property will trigger replacement. string
The name of the subnetwork that this runtime is in.
EnableInternetAccess Changes to this property will trigger replacement. bool
Enable public internet access for the runtime.
Network Changes to this property will trigger replacement. string
The name of the VPC that this runtime is in.
Subnetwork Changes to this property will trigger replacement. string
The name of the subnetwork that this runtime is in.
enableInternetAccess Changes to this property will trigger replacement. Boolean
Enable public internet access for the runtime.
network Changes to this property will trigger replacement. String
The name of the VPC that this runtime is in.
subnetwork Changes to this property will trigger replacement. String
The name of the subnetwork that this runtime is in.
enableInternetAccess Changes to this property will trigger replacement. boolean
Enable public internet access for the runtime.
network Changes to this property will trigger replacement. string
The name of the VPC that this runtime is in.
subnetwork Changes to this property will trigger replacement. string
The name of the subnetwork that this runtime is in.
enable_internet_access Changes to this property will trigger replacement. bool
Enable public internet access for the runtime.
network Changes to this property will trigger replacement. str
The name of the VPC that this runtime is in.
subnetwork Changes to this property will trigger replacement. str
The name of the subnetwork that this runtime is in.
enableInternetAccess Changes to this property will trigger replacement. Boolean
Enable public internet access for the runtime.
network Changes to this property will trigger replacement. String
The name of the VPC that this runtime is in.
subnetwork Changes to this property will trigger replacement. String
The name of the subnetwork that this runtime is in.

RuntimeTemplateShieldedVmConfig
, RuntimeTemplateShieldedVmConfigArgs

EnableSecureBoot Changes to this property will trigger replacement. bool
Enables secure boot for the runtime.
EnableSecureBoot Changes to this property will trigger replacement. bool
Enables secure boot for the runtime.
enableSecureBoot Changes to this property will trigger replacement. Boolean
Enables secure boot for the runtime.
enableSecureBoot Changes to this property will trigger replacement. boolean
Enables secure boot for the runtime.
enable_secure_boot Changes to this property will trigger replacement. bool
Enables secure boot for the runtime.
enableSecureBoot Changes to this property will trigger replacement. Boolean
Enables secure boot for the runtime.

RuntimeTemplateSoftwareConfig
, RuntimeTemplateSoftwareConfigArgs

Envs Changes to this property will trigger replacement. List<RuntimeTemplateSoftwareConfigEnv>
Environment variables to be passed to the container. Structure is documented below.
PostStartupScriptConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigPostStartupScriptConfig
Post startup script config. Structure is documented below.
Envs Changes to this property will trigger replacement. []RuntimeTemplateSoftwareConfigEnv
Environment variables to be passed to the container. Structure is documented below.
PostStartupScriptConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigPostStartupScriptConfig
Post startup script config. Structure is documented below.
envs Changes to this property will trigger replacement. List<RuntimeTemplateSoftwareConfigEnv>
Environment variables to be passed to the container. Structure is documented below.
postStartupScriptConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigPostStartupScriptConfig
Post startup script config. Structure is documented below.
envs Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigEnv[]
Environment variables to be passed to the container. Structure is documented below.
postStartupScriptConfig Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigPostStartupScriptConfig
Post startup script config. Structure is documented below.
envs Changes to this property will trigger replacement. Sequence[RuntimeTemplateSoftwareConfigEnv]
Environment variables to be passed to the container. Structure is documented below.
post_startup_script_config Changes to this property will trigger replacement. RuntimeTemplateSoftwareConfigPostStartupScriptConfig
Post startup script config. Structure is documented below.
envs Changes to this property will trigger replacement. List<Property Map>
Environment variables to be passed to the container. Structure is documented below.
postStartupScriptConfig Changes to this property will trigger replacement. Property Map
Post startup script config. Structure is documented below.

RuntimeTemplateSoftwareConfigEnv
, RuntimeTemplateSoftwareConfigEnvArgs

Name Changes to this property will trigger replacement. string
Name of the environment variable. Must be a valid C identifier.
Value Changes to this property will trigger replacement. string
Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.
Name Changes to this property will trigger replacement. string
Name of the environment variable. Must be a valid C identifier.
Value Changes to this property will trigger replacement. string
Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.
name Changes to this property will trigger replacement. String
Name of the environment variable. Must be a valid C identifier.
value Changes to this property will trigger replacement. String
Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.
name Changes to this property will trigger replacement. string
Name of the environment variable. Must be a valid C identifier.
value Changes to this property will trigger replacement. string
Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.
name Changes to this property will trigger replacement. str
Name of the environment variable. Must be a valid C identifier.
value Changes to this property will trigger replacement. str
Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.
name Changes to this property will trigger replacement. String
Name of the environment variable. Must be a valid C identifier.
value Changes to this property will trigger replacement. String
Variables that reference a $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not.

RuntimeTemplateSoftwareConfigPostStartupScriptConfig
, RuntimeTemplateSoftwareConfigPostStartupScriptConfigArgs

PostStartupScript Changes to this property will trigger replacement. string
Post startup script to run after runtime is started.
PostStartupScriptBehavior Changes to this property will trigger replacement. string
Post startup script behavior that defines download and execution behavior. Possible values are: RUN_ONCE, RUN_EVERY_START, DOWNLOAD_AND_RUN_EVERY_START.
PostStartupScriptUrl Changes to this property will trigger replacement. string
Post startup script url to download. Example: https://bucket/script.sh.
PostStartupScript Changes to this property will trigger replacement. string
Post startup script to run after runtime is started.
PostStartupScriptBehavior Changes to this property will trigger replacement. string
Post startup script behavior that defines download and execution behavior. Possible values are: RUN_ONCE, RUN_EVERY_START, DOWNLOAD_AND_RUN_EVERY_START.
PostStartupScriptUrl Changes to this property will trigger replacement. string
Post startup script url to download. Example: https://bucket/script.sh.
postStartupScript Changes to this property will trigger replacement. String
Post startup script to run after runtime is started.
postStartupScriptBehavior Changes to this property will trigger replacement. String
Post startup script behavior that defines download and execution behavior. Possible values are: RUN_ONCE, RUN_EVERY_START, DOWNLOAD_AND_RUN_EVERY_START.
postStartupScriptUrl Changes to this property will trigger replacement. String
Post startup script url to download. Example: https://bucket/script.sh.
postStartupScript Changes to this property will trigger replacement. string
Post startup script to run after runtime is started.
postStartupScriptBehavior Changes to this property will trigger replacement. string
Post startup script behavior that defines download and execution behavior. Possible values are: RUN_ONCE, RUN_EVERY_START, DOWNLOAD_AND_RUN_EVERY_START.
postStartupScriptUrl Changes to this property will trigger replacement. string
Post startup script url to download. Example: https://bucket/script.sh.
post_startup_script Changes to this property will trigger replacement. str
Post startup script to run after runtime is started.
post_startup_script_behavior Changes to this property will trigger replacement. str
Post startup script behavior that defines download and execution behavior. Possible values are: RUN_ONCE, RUN_EVERY_START, DOWNLOAD_AND_RUN_EVERY_START.
post_startup_script_url Changes to this property will trigger replacement. str
Post startup script url to download. Example: https://bucket/script.sh.
postStartupScript Changes to this property will trigger replacement. String
Post startup script to run after runtime is started.
postStartupScriptBehavior Changes to this property will trigger replacement. String
Post startup script behavior that defines download and execution behavior. Possible values are: RUN_ONCE, RUN_EVERY_START, DOWNLOAD_AND_RUN_EVERY_START.
postStartupScriptUrl Changes to this property will trigger replacement. String
Post startup script url to download. Example: https://bucket/script.sh.

Import

RuntimeTemplate can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/notebookRuntimeTemplates/{{name}}

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

  • {{location}}/{{name}}

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

$ pulumi import gcp:colab/runtimeTemplate:RuntimeTemplate default projects/{{project}}/locations/{{location}}/notebookRuntimeTemplates/{{name}}
Copy
$ pulumi import gcp:colab/runtimeTemplate:RuntimeTemplate default {{project}}/{{location}}/{{name}}
Copy
$ pulumi import gcp:colab/runtimeTemplate:RuntimeTemplate default {{location}}/{{name}}
Copy

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

Package Details

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