Class InstanceTemplateArgs
Inherited Members
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public sealed class InstanceTemplateArgs : ResourceArgs
Constructors
View SourceInstanceTemplateArgs()
Declaration
public InstanceTemplateArgs()
Properties
View SourceCanIpForward
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.
Declaration
public Input<bool> CanIpForward { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
Description
A brief description of this resource.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Disks
Disks to attach to instances created from this template. This can be specified multiple times for multiple disks. Structure is documented below.
Declaration
public InputList<InstanceTemplateDiskArgs> Disks { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstanceTemplateDiskArgs> |
EnableDisplay
Enable Virtual Displays on this instance.
Note: allow_stopping_for_update must be set to true in order to update this field.
Declaration
public Input<bool> EnableDisplay { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
GuestAccelerators
List of the type and count of accelerator cards attached to the instance. Structure documented below.
Declaration
public InputList<InstanceTemplateGuestAcceleratorArgs> GuestAccelerators { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstanceTemplateGuestAcceleratorArgs> |
InstanceDescription
A brief description to use for instances created from this template.
Declaration
public Input<string> InstanceDescription { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Labels
A set of key/value label pairs to assign to instances created from this template,
Declaration
public InputMap<string> Labels { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.String> |
MachineType
The machine type to create.
Declaration
public Input<string> MachineType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Metadata
Metadata key/value pairs to make available from within instances created from this template.
Declaration
public InputMap<object> Metadata { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |
MetadataStartupScript
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource. This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously.
Declaration
public Input<string> MetadataStartupScript { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
MinCpuPlatform
Specifies a minimum CPU platform. Applicable values are the friendly names of CPU platforms, such as
Intel Haswell or Intel Skylake. See the complete list here.
Declaration
public Input<string> MinCpuPlatform { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Name
The name of the instance template. If you leave this blank, the provider will auto-generate a unique name.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NamePrefix
Creates a unique name beginning with the specified
prefix. Conflicts with name.
Declaration
public Input<string> NamePrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NetworkInterfaces
Networks to attach to instances created from this template. This can be specified multiple times for multiple networks. Structure is documented below.
Declaration
public InputList<InstanceTemplateNetworkInterfaceArgs> NetworkInterfaces { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<InstanceTemplateNetworkInterfaceArgs> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Input<string> Project { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Region
An instance template is a global resource that is not
bound to a zone or a region. However, you can still specify some regional
resources in an instance template, which restricts the template to the
region where that resource resides. For example, a custom subnetwork
resource is tied to a specific region. Defaults to the region of the
Provider if no value is given.
Declaration
public Input<string> Region { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Scheduling
The scheduling strategy to use. More details about this configuration option are detailed below.
Declaration
public Input<InstanceTemplateSchedulingArgs> Scheduling { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<InstanceTemplateSchedulingArgs> |
ServiceAccount
Service account to attach to the instance. Structure is documented below.
Declaration
public Input<InstanceTemplateServiceAccountArgs> ServiceAccount { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<InstanceTemplateServiceAccountArgs> |
ShieldedInstanceConfig
Enable Shielded VM on this instance. Shielded VM provides verifiable integrity to prevent against malware and rootkits. Defaults to disabled. Structure is documented below.
Note: shielded_instance_config can only be used with boot images with shielded vm support. See the complete list here.
Declaration
public Input<InstanceTemplateShieldedInstanceConfigArgs> ShieldedInstanceConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<InstanceTemplateShieldedInstanceConfigArgs> |
Tags
Tags to attach to the instance.
Declaration
public InputList<string> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |