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:
- API documentation
- How-to Guides
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,
},
});
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,
})
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
})
}
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,
},
});
});
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());
}
}
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
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,
},
});
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,
})
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
})
}
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,
},
});
});
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());
}
}
resources:
runtime-template:
type: gcp:colab:RuntimeTemplate
properties:
displayName: Runtime template no name
location: us-central1
machineSpec:
machineType: e2-standard-4
networkSpec:
enableInternetAccess: true
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",
},
},
});
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",
},
})
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
})
}
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",
},
},
});
});
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());
}
}
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
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",
},
},
});
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"),
},
},
})
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());
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",
},
})
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",
},
},
});
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
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:
- Display
Name This property is required. Changes to this property will trigger replacement.
- Required. The display name of the Runtime Template.
- Location
This property is required. Changes to this property will trigger replacement.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- Data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec - The configuration for the data disk of the runtime. Structure is documented below.
- Description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- Encryption
Spec Changes to this property will trigger replacement.
Template Encryption Spec - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- Euc
Config Changes to this property will trigger replacement.
Template Euc Config - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- Idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config - 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. - Machine
Spec Changes to this property will trigger replacement.
Template Machine Spec - 'The machine configuration of the runtime.' Structure is documented below.
- Name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- Network
Spec Changes to this property will trigger replacement.
Template Network Spec - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- Project
Changes to this property will trigger replacement.
- 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.
Template Shielded Vm Config - Runtime Shielded VM spec. Structure is documented below.
- Software
Config Changes to this property will trigger replacement.
Template Software Config - 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.
- Required. The display name of the Runtime Template.
- Location
This property is required. Changes to this property will trigger replacement.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- Data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec Args - The configuration for the data disk of the runtime. Structure is documented below.
- Description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- Encryption
Spec Changes to this property will trigger replacement.
Template Encryption Spec Args - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- Euc
Config Changes to this property will trigger replacement.
Template Euc Config Args - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- Idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config Args - 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. - Machine
Spec Changes to this property will trigger replacement.
Template Machine Spec Args - 'The machine configuration of the runtime.' Structure is documented below.
- Name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- Network
Spec Changes to this property will trigger replacement.
Template Network Spec Args - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- Project
Changes to this property will trigger replacement.
- 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.
Template Shielded Vm Config Args - Runtime Shielded VM spec. Structure is documented below.
- Software
Config Changes to this property will trigger replacement.
Template Software Config Args - 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.
- Required. The display name of the Runtime Template.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec - The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- encryption
Spec Changes to this property will trigger replacement.
Template Encryption Spec - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc
Config Changes to this property will trigger replacement.
Template Euc Config - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config - 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. - machine
Spec Changes to this property will trigger replacement.
Template Machine Spec - 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network
Spec Changes to this property will trigger replacement.
Template Network Spec - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- 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.
Template Shielded Vm Config - Runtime Shielded VM spec. Structure is documented below.
- software
Config Changes to this property will trigger replacement.
Template Software Config - 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.
- Required. The display name of the Runtime Template.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec - The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- encryption
Spec Changes to this property will trigger replacement.
Template Encryption Spec - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc
Config Changes to this property will trigger replacement.
Template Euc Config - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config - 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. - machine
Spec Changes to this property will trigger replacement.
Template Machine Spec - 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network
Spec Changes to this property will trigger replacement.
Template Network Spec - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- 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.
Template Shielded Vm Config - Runtime Shielded VM spec. Structure is documented below.
- software
Config Changes to this property will trigger replacement.
Template Software Config - 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.
- Required. The display name of the Runtime Template.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- data_
persistent_ disk_ spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec Args - The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- encryption_
spec Changes to this property will trigger replacement.
Template Encryption Spec Args - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc_
config Changes to this property will trigger replacement.
Template Euc Config Args - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle_
shutdown_ config Changes to this property will trigger replacement.
Template Idle Shutdown Config Args - 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.
Template Machine Spec Args - 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network_
spec Changes to this property will trigger replacement.
Template Network Spec Args - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- 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.
Template Shielded Vm Config Args - Runtime Shielded VM spec. Structure is documented below.
- software_
config Changes to this property will trigger replacement.
Template Software Config Args - 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.
- Required. The display name of the Runtime Template.
- location
This property is required. Changes to this property will trigger replacement.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- data
Persistent Disk Spec Changes to this property will trigger replacement.
- The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- encryption
Spec Changes to this property will trigger replacement.
- Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc
Config Changes to this property will trigger replacement.
- EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle
Shutdown Config Changes to this property will trigger replacement.
- 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. - machine
Spec Changes to this property will trigger replacement.
- 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network
Spec Changes to this property will trigger replacement.
- The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- 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.
- Runtime Shielded VM spec. Structure is documented below.
- software
Config Changes to this property will trigger replacement.
- 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:
- Effective
Labels 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.
- Pulumi
Labels Dictionary<string, string> - The combination of labels configured directly on the resource and default labels configured on the provider.
- Effective
Labels 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.
- Pulumi
Labels map[string]string - The combination of labels configured directly on the resource and default labels configured on the provider.
- effective
Labels 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.
- pulumi
Labels Map<String,String> - The combination of labels configured directly on the resource and default labels configured on the provider.
- effective
Labels {[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.
- pulumi
Labels {[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.
- effective
Labels 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.
- pulumi
Labels 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.
- Data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec - The configuration for the data disk of the runtime. Structure is documented below.
- Description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- Display
Name Changes to this property will trigger replacement.
- Required. The display name of the Runtime Template.
- Effective
Labels Changes to this property will trigger replacement.
- 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.
Template Encryption Spec - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- Euc
Config Changes to this property will trigger replacement.
Template Euc Config - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- Idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config - 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.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- Machine
Spec Changes to this property will trigger replacement.
Template Machine Spec - 'The machine configuration of the runtime.' Structure is documented below.
- Name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- Network
Spec Changes to this property will trigger replacement.
Template Network Spec - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- Project
Changes to this property will trigger replacement.
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> - 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.
Template Shielded Vm Config - Runtime Shielded VM spec. Structure is documented below.
- Software
Config Changes to this property will trigger replacement.
Template Software Config - The notebook software configuration of the notebook runtime. Structure is documented below.
- Data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec Args - The configuration for the data disk of the runtime. Structure is documented below.
- Description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- Display
Name Changes to this property will trigger replacement.
- Required. The display name of the Runtime Template.
- Effective
Labels Changes to this property will trigger replacement.
- 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.
Template Encryption Spec Args - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- Euc
Config Changes to this property will trigger replacement.
Template Euc Config Args - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- Idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config Args - 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.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- Machine
Spec Changes to this property will trigger replacement.
Template Machine Spec Args - 'The machine configuration of the runtime.' Structure is documented below.
- Name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- Network
Spec Changes to this property will trigger replacement.
Template Network Spec Args - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- Project
Changes to this property will trigger replacement.
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string - 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.
Template Shielded Vm Config Args - Runtime Shielded VM spec. Structure is documented below.
- Software
Config Changes to this property will trigger replacement.
Template Software Config Args - The notebook software configuration of the notebook runtime. Structure is documented below.
- data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec - The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- display
Name Changes to this property will trigger replacement.
- Required. The display name of the Runtime Template.
- effective
Labels Changes to this property will trigger replacement.
- 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.
Template Encryption Spec - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc
Config Changes to this property will trigger replacement.
Template Euc Config - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config - 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.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- machine
Spec Changes to this property will trigger replacement.
Template Machine Spec - 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network
Spec Changes to this property will trigger replacement.
Template Network Spec - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> - 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.
Template Shielded Vm Config - Runtime Shielded VM spec. Structure is documented below.
- software
Config Changes to this property will trigger replacement.
Template Software Config - The notebook software configuration of the notebook runtime. Structure is documented below.
- data
Persistent Disk Spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec - The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- display
Name Changes to this property will trigger replacement.
- Required. The display name of the Runtime Template.
- effective
Labels Changes to this property will trigger replacement.
- 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.
Template Encryption Spec - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc
Config Changes to this property will trigger replacement.
Template Euc Config - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle
Shutdown Config Changes to this property will trigger replacement.
Template Idle Shutdown Config - 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.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- machine
Spec Changes to this property will trigger replacement.
Template Machine Spec - 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network
Spec Changes to this property will trigger replacement.
Template Network Spec - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} - 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.
Template Shielded Vm Config - Runtime Shielded VM spec. Structure is documented below.
- software
Config Changes to this property will trigger replacement.
Template Software Config - The notebook software configuration of the notebook runtime. Structure is documented below.
- data_
persistent_ disk_ spec Changes to this property will trigger replacement.
Template Data Persistent Disk Spec Args - The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- display_
name Changes to this property will trigger replacement.
- Required. The display name of the Runtime Template.
- effective_
labels Changes to this property will trigger replacement.
- 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.
Template Encryption Spec Args - Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc_
config Changes to this property will trigger replacement.
Template Euc Config Args - EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle_
shutdown_ config Changes to this property will trigger replacement.
Template Idle Shutdown Config Args - 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.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- machine_
spec Changes to this property will trigger replacement.
Template Machine Spec Args - 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network_
spec Changes to this property will trigger replacement.
Template Network Spec Args - The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- 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.
Template Shielded Vm Config Args - Runtime Shielded VM spec. Structure is documented below.
- software_
config Changes to this property will trigger replacement.
Template Software Config Args - The notebook software configuration of the notebook runtime. Structure is documented below.
- data
Persistent Disk Spec Changes to this property will trigger replacement.
- The configuration for the data disk of the runtime. Structure is documented below.
- description
Changes to this property will trigger replacement.
- The description of the Runtime Template.
- display
Name Changes to this property will trigger replacement.
- Required. The display name of the Runtime Template.
- effective
Labels Changes to this property will trigger replacement.
- 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.
- Customer-managed encryption key spec for the notebook runtime. Structure is documented below.
- euc
Config Changes to this property will trigger replacement.
- EUC configuration of the NotebookRuntimeTemplate. Structure is documented below.
- idle
Shutdown Config Changes to this property will trigger replacement.
- 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.
- The location for the resource: https://cloud.google.com/colab/docs/locations
- machine
Spec Changes to this property will trigger replacement.
- 'The machine configuration of the runtime.' Structure is documented below.
- name
Changes to this property will trigger replacement.
- The resource name of the Runtime Template
- network
Spec Changes to this property will trigger replacement.
- The network configuration for the runtime. Structure is documented below.
Changes to this property will trigger replacement.
- Applies the given Compute Engine tags to the runtime.
- project
Changes to this property will trigger replacement.
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> - 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.
- Runtime Shielded VM spec. Structure is documented below.
- software
Config Changes to this property will trigger replacement.
- The notebook software configuration of the notebook runtime. Structure is documented below.
Supporting Types
RuntimeTemplateDataPersistentDiskSpec, RuntimeTemplateDataPersistentDiskSpecArgs
- Disk
Size Gb Changes to this property will trigger replacement.
- 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.
- The type of the persistent disk.
- Disk
Size Gb Changes to this property will trigger replacement.
- 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.
- The type of the persistent disk.
- disk
Size Gb Changes to this property will trigger replacement.
- 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.
- The type of the persistent disk.
- disk
Size Gb Changes to this property will trigger replacement.
- 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.
- The type of the persistent disk.
- disk_
size_ gb Changes to this property will trigger replacement.
- 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.
- The type of the persistent disk.
- disk
Size Gb Changes to this property will trigger replacement.
- 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.
- The type of the persistent disk.
RuntimeTemplateEncryptionSpec, RuntimeTemplateEncryptionSpecArgs
- Kms
Key Name Changes to this property will trigger replacement.
- The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
- Kms
Key Name Changes to this property will trigger replacement.
- The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
- kms
Key Name Changes to this property will trigger replacement.
- The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
- kms
Key Name Changes to this property will trigger replacement.
- The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
- kms_
key_ name Changes to this property will trigger replacement.
- The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
- kms
Key Name Changes to this property will trigger replacement.
- The Cloud KMS encryption key (customer-managed encryption key) used to protect the runtime.
RuntimeTemplateEucConfig, RuntimeTemplateEucConfigArgs
- Euc
Disabled Changes to this property will trigger replacement.
- Disable end user credential access for the runtime.
- Euc
Disabled Changes to this property will trigger replacement.
- Disable end user credential access for the runtime.
- euc
Disabled Changes to this property will trigger replacement.
- Disable end user credential access for the runtime.
- euc
Disabled Changes to this property will trigger replacement.
- Disable end user credential access for the runtime.
- euc_
disabled Changes to this property will trigger replacement.
- Disable end user credential access for the runtime.
- euc
Disabled Changes to this property will trigger replacement.
- Disable end user credential access for the runtime.
RuntimeTemplateIdleShutdownConfig, RuntimeTemplateIdleShutdownConfigArgs
- Idle
Timeout Changes to this property will trigger replacement.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- Accelerator
Count Changes to this property will trigger replacement.
- The number of accelerators used by the runtime.
- Accelerator
Type Changes to this property will trigger replacement.
- 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.
- The Compute Engine machine type selected for the runtime.
- Accelerator
Count Changes to this property will trigger replacement.
- The number of accelerators used by the runtime.
- Accelerator
Type Changes to this property will trigger replacement.
- 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.
- The Compute Engine machine type selected for the runtime.
- accelerator
Count Changes to this property will trigger replacement.
- The number of accelerators used by the runtime.
- accelerator
Type Changes to this property will trigger replacement.
- 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.
- The Compute Engine machine type selected for the runtime.
- accelerator
Count Changes to this property will trigger replacement.
- The number of accelerators used by the runtime.
- accelerator
Type Changes to this property will trigger replacement.
- 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.
- The Compute Engine machine type selected for the runtime.
- accelerator_
count Changes to this property will trigger replacement.
- The number of accelerators used by the runtime.
- accelerator_
type Changes to this property will trigger replacement.
- 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.
- The Compute Engine machine type selected for the runtime.
- accelerator
Count Changes to this property will trigger replacement.
- The number of accelerators used by the runtime.
- accelerator
Type Changes to this property will trigger replacement.
- 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.
- The Compute Engine machine type selected for the runtime.
RuntimeTemplateNetworkSpec, RuntimeTemplateNetworkSpecArgs
- Enable
Internet Access Changes to this property will trigger replacement.
- Enable public internet access for the runtime.
- Network
Changes to this property will trigger replacement.
- The name of the VPC that this runtime is in.
- Subnetwork
Changes to this property will trigger replacement.
- The name of the subnetwork that this runtime is in.
- Enable
Internet Access Changes to this property will trigger replacement.
- Enable public internet access for the runtime.
- Network
Changes to this property will trigger replacement.
- The name of the VPC that this runtime is in.
- Subnetwork
Changes to this property will trigger replacement.
- The name of the subnetwork that this runtime is in.
- enable
Internet Access Changes to this property will trigger replacement.
- Enable public internet access for the runtime.
- network
Changes to this property will trigger replacement.
- The name of the VPC that this runtime is in.
- subnetwork
Changes to this property will trigger replacement.
- The name of the subnetwork that this runtime is in.
- enable
Internet Access Changes to this property will trigger replacement.
- Enable public internet access for the runtime.
- network
Changes to this property will trigger replacement.
- The name of the VPC that this runtime is in.
- subnetwork
Changes to this property will trigger replacement.
- The name of the subnetwork that this runtime is in.
- enable_
internet_ access Changes to this property will trigger replacement.
- Enable public internet access for the runtime.
- network
Changes to this property will trigger replacement.
- The name of the VPC that this runtime is in.
- subnetwork
Changes to this property will trigger replacement.
- The name of the subnetwork that this runtime is in.
- enable
Internet Access Changes to this property will trigger replacement.
- Enable public internet access for the runtime.
- network
Changes to this property will trigger replacement.
- The name of the VPC that this runtime is in.
- subnetwork
Changes to this property will trigger replacement.
- The name of the subnetwork that this runtime is in.
RuntimeTemplateShieldedVmConfig, RuntimeTemplateShieldedVmConfigArgs
- Enable
Secure Boot Changes to this property will trigger replacement.
- Enables secure boot for the runtime.
- Enable
Secure Boot Changes to this property will trigger replacement.
- Enables secure boot for the runtime.
- enable
Secure Boot Changes to this property will trigger replacement.
- Enables secure boot for the runtime.
- enable
Secure Boot Changes to this property will trigger replacement.
- Enables secure boot for the runtime.
- enable_
secure_ boot Changes to this property will trigger replacement.
- Enables secure boot for the runtime.
- enable
Secure Boot Changes to this property will trigger replacement.
- Enables secure boot for the runtime.
RuntimeTemplateSoftwareConfig, RuntimeTemplateSoftwareConfigArgs
- Envs
Changes to this property will trigger replacement.
Template Software Config Env> - Environment variables to be passed to the container. Structure is documented below.
- Post
Startup Script Config Changes to this property will trigger replacement.
Template Software Config Post Startup Script Config - Post startup script config. Structure is documented below.
- Envs
Changes to this property will trigger replacement.
Template Software Config Env - Environment variables to be passed to the container. Structure is documented below.
- Post
Startup Script Config Changes to this property will trigger replacement.
Template Software Config Post Startup Script Config - Post startup script config. Structure is documented below.
- envs
Changes to this property will trigger replacement.
Template Software Config Env> - Environment variables to be passed to the container. Structure is documented below.
- post
Startup Script Config Changes to this property will trigger replacement.
Template Software Config Post Startup Script Config - Post startup script config. Structure is documented below.
- envs
Changes to this property will trigger replacement.
Template Software Config Env[] - Environment variables to be passed to the container. Structure is documented below.
- post
Startup Script Config Changes to this property will trigger replacement.
Template Software Config Post Startup Script Config - Post startup script config. Structure is documented below.
- envs
Changes to this property will trigger replacement.
Template Software Config Env] - Environment variables to be passed to the container. Structure is documented below.
- post_
startup_ script_ config Changes to this property will trigger replacement.
Template Software Config Post Startup Script Config - Post startup script config. Structure is documented below.
- envs
Changes to this property will trigger replacement.
- Environment variables to be passed to the container. Structure is documented below.
- post
Startup Script Config Changes to this property will trigger replacement.
- Post startup script config. Structure is documented below.
RuntimeTemplateSoftwareConfigEnv, RuntimeTemplateSoftwareConfigEnvArgs
- Name
Changes to this property will trigger replacement.
- Name of the environment variable. Must be a valid C identifier.
- Value
Changes to this property will trigger replacement.
- 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.
- Name of the environment variable. Must be a valid C identifier.
- Value
Changes to this property will trigger replacement.
- 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.
- Name of the environment variable. Must be a valid C identifier.
- value
Changes to this property will trigger replacement.
- 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.
- Name of the environment variable. Must be a valid C identifier.
- value
Changes to this property will trigger replacement.
- 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.
- Name of the environment variable. Must be a valid C identifier.
- value
Changes to this property will trigger replacement.
- 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.
- Name of the environment variable. Must be a valid C identifier.
- value
Changes to this property will trigger replacement.
- 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
- Post
Startup Script Changes to this property will trigger replacement.
- Post startup script to run after runtime is started.
- Post
Startup Script Behavior Changes to this property will trigger replacement.
- 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.
- Post startup script url to download. Example: https://bucket/script.sh.
- Post
Startup Script Changes to this property will trigger replacement.
- Post startup script to run after runtime is started.
- Post
Startup Script Behavior Changes to this property will trigger replacement.
- 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.
- Post startup script url to download. Example: https://bucket/script.sh.
- post
Startup Script Changes to this property will trigger replacement.
- Post startup script to run after runtime is started.
- post
Startup Script Behavior Changes to this property will trigger replacement.
- 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.
- Post startup script url to download. Example: https://bucket/script.sh.
- post
Startup Script Changes to this property will trigger replacement.
- Post startup script to run after runtime is started.
- post
Startup Script Behavior Changes to this property will trigger replacement.
- 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.
- Post startup script url to download. Example: https://bucket/script.sh.
- post_
startup_ script Changes to this property will trigger replacement.
- Post startup script to run after runtime is started.
- post_
startup_ script_ behavior Changes to this property will trigger replacement.
- 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.
- Post startup script url to download. Example: https://bucket/script.sh.
- post
Startup Script Changes to this property will trigger replacement.
- Post startup script to run after runtime is started.
- post
Startup Script Behavior Changes to this property will trigger replacement.
- 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.
- 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}}
$ pulumi import gcp:colab/runtimeTemplate:RuntimeTemplate default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:colab/runtimeTemplate:RuntimeTemplate default {{location}}/{{name}}
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.