InstanceFromTemplateState class
Input properties used for looking up and filtering InstanceFromTemplate resources.
Constructors
-
InstanceFromTemplateState({Input<
InstanceFromTemplateAdvancedMachineFeatures?> ? advancedMachineFeatures, Input<bool?> ? allowStoppingForUpdate, Input<List< ? attachedDisks, Input<InstanceFromTemplateAttachedDisk> ?>InstanceFromTemplateBootDisk?> ? bootDisk, Input<bool?> ? canIpForward, Input<InstanceFromTemplateConfidentialInstanceConfig?> ? confidentialInstanceConfig, Input<String?> ? cpuPlatform, Input<String?> ? creationTimestamp, Input<String?> ? currentStatus, Input<String?> ? deletionPolicy, Input<bool?> ? deletionProtection, Input<String?> ? description, Input<String?> ? desiredStatus, Input<Map< ? effectiveLabels, Input<String, String> ?>bool?> ? enableDisplay, Input<bool?> ? eraseWindowsVssSignature, Input<List< ? guestAccelerators, Input<InstanceFromTemplateGuestAccelerator> ?>String?> ? hostname, Input<InstanceFromTemplateInstanceEncryptionKey?> ? instanceEncryptionKey, Input<String?> ? instanceId, Input<String?> ? keyRevocationActionType, Input<String?> ? labelFingerprint, Input<Map< ? labels, Input<String, String> ?>String?> ? machineType, Input<Map< ? metadata, Input<String, String> ?>String?> ? metadataFingerprint, Input<String?> ? metadataStartupScript, Input<String?> ? minCpuPlatform, Input<String?> ? name, Input<List< ? networkInterfaces, Input<InstanceFromTemplateNetworkInterface> ?>InstanceFromTemplateNetworkPerformanceConfig?> ? networkPerformanceConfig, Input<InstanceFromTemplateParams?> ? params, Input<Map< ? partnerMetadata, Input<String, String> ?>String?> ? project, Input<Map< ? pulumiLabels, Input<String, String> ?>InstanceFromTemplateReservationAffinity?> ? reservationAffinity, Input<String?> ? resourcePolicies, Input<InstanceFromTemplateScheduling?> ? scheduling, Input<List< ? scratchDisks, Input<InstanceFromTemplateScratchDisk> ?>String?> ? selfLink, Input<InstanceFromTemplateServiceAccount?> ? serviceAccount, Input<InstanceFromTemplateShieldedInstanceConfig?> ? shieldedInstanceConfig, Input<String?> ? sourceInstanceTemplate, Input<List< ? tags, Input<String> ?>String?> ? tagsFingerprint, Input<InstanceFromTemplateWorkloadIdentityConfig?> ? workloadIdentityConfig, Input<String?> ? zone}) -
Creates a new InstanceFromTemplateState.
advancedMachineFeaturesControls for advanced machine-related behavior features.allowStoppingForUpdateIf true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.attachedDisksList of disks attached to the instancebootDiskThe boot disk for the instance.canIpForwardWhether sending and receiving of packets with non-matching source or destination IPs is allowed.confidentialInstanceConfigThe Confidential VM config being used by the instance. onHostMaintenance has to be set to TERMINATE or this will fail to create.cpuPlatformThe CPU platform used by this instance.creationTimestampCreation timestamp in RFC3339 text format.currentStatusCurrent status of the instance.deletionPolicyWhether Terraform will be prevented from destroying the instance. Defaults to "DELETE".deletionProtectionWhether deletion protection is enabled on this instance.descriptionA brief description of the resource.desiredStatusDesired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".effectiveLabelsAll of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.enableDisplayWhether the instance has virtual displays enabled.eraseWindowsVssSignatureSpecifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature.guestAcceleratorsList of the type and count of accelerator cards attached to the instance.hostnameA custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.instanceEncryptionKeyEncryption key used to provide data encryption on the given instance.instanceIdThe server-assigned unique identifier of this instance.keyRevocationActionTypeAction to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.labelFingerprintThe unique fingerprint of the labels.labelsA set of key/value label pairs assigned to the instance.machineTypeThe machine type to create.metadataMetadata key/value pairs made available within the instance.metadataFingerprintThe unique fingerprint of the metadata.metadataStartupScriptMetadata startup scripts made available within the instance.minCpuPlatformThe minimum CPU platform specified for the VM instance.nameA unique name for the resource, required by GCE.networkInterfacesThe networks attached to the instance.networkPerformanceConfigConfigures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.paramsStores additional params passed with the request, but not persisted as part of resource payload.partnerMetadataPartner Metadata Map made available within the instance.projectThe ID of the project in which the resource belongs. If selfLink is provided, this value is ignored. If neither selfLink nor project are provided, the provider project is used.pulumiLabelsThe combination of labels configured directly on the resource and default labels configured on the provider.reservationAffinitySpecifies the reservations that this instance can consume from.resourcePoliciesA list of selfLinks of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.schedulingThe scheduling strategy being used by the instance.scratchDisks*network_interface.alias_ip_rangeselfLinkThe URI of the created resource.serviceAccountThe service account to attach to the instance.shieldedInstanceConfigThe shielded vm config being used by the instance.sourceInstanceTemplateName or self link of an instancetagsThe list of tags attached to the instance.tagsFingerprintThe unique fingerprint of the tags.workloadIdentityConfigWorkload identity config.zoneThe zone that the machine should be created in. If notconst -
InstanceFromTemplateState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
advancedMachineFeatures
→ Input<
InstanceFromTemplateAdvancedMachineFeatures?> ? -
Controls for advanced machine-related behavior features.
final
-
allowStoppingForUpdate
→ Input<
bool?> ? -
If true, allows Terraform to stop the instance to update its properties. If you try to update a property that requires stopping the instance without setting this field, the update will fail.
final
-
attachedDisks
→ Input<
List< ?InstanceFromTemplateAttachedDisk> ?> -
List of disks attached to the instance
final
-
bootDisk
→ Input<
InstanceFromTemplateBootDisk?> ? -
The boot disk for the instance.
final
-
canIpForward
→ Input<
bool?> ? -
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
final
-
confidentialInstanceConfig
→ Input<
InstanceFromTemplateConfidentialInstanceConfig?> ? -
The Confidential VM config being used by the instance. onHostMaintenance has to be set to TERMINATE or this will fail to create.
final
-
cpuPlatform
→ Input<
String?> ? -
The CPU platform used by this instance.
final
-
creationTimestamp
→ Input<
String?> ? -
Creation timestamp in RFC3339 text format.
final
-
currentStatus
→ Input<
String?> ? -
Current status of the instance.
This could be one of the following values: PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED.
For more information about the status of the instance, see Instance life cycle.
final
-
deletionPolicy
→ Input<
String?> ? -
Whether Terraform will be prevented from destroying the instance. Defaults to "DELETE".
When a 'terraform destroy' or 'terraform apply' would delete the instance,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
final
-
deletionProtection
→ Input<
bool?> ? -
Whether deletion protection is enabled on this instance.
final
-
description
→ Input<
String?> ? -
A brief description of the resource.
final
-
desiredStatus
→ Input<
String?> ? -
Desired status of the instance. Either "RUNNING", "SUSPENDED" or "TERMINATED".
final
-
effectiveLabels
→ Input<
Map< ?String, String> ?> -
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
final
-
enableDisplay
→ Input<
bool?> ? -
Whether the instance has virtual displays enabled.
final
-
eraseWindowsVssSignature
→ Input<
bool?> ? -
Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature.
final
-
guestAccelerators
→ Input<
List< ?InstanceFromTemplateGuestAccelerator> ?> -
List of the type and count of accelerator cards attached to the instance.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
hostname
→ Input<
String?> ? -
A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
final
-
instanceEncryptionKey
→ Input<
InstanceFromTemplateInstanceEncryptionKey?> ? -
Encryption key used to provide data encryption on the given instance.
final
-
instanceId
→ Input<
String?> ? -
The server-assigned unique identifier of this instance.
final
-
keyRevocationActionType
→ Input<
String?> ? -
Action to be taken when a customer's encryption key is revoked. Supports "STOP" and "NONE", with "NONE" being the default.
final
-
labelFingerprint
→ Input<
String?> ? -
The unique fingerprint of the labels.
final
-
labels
→ Input<
Map< ?String, String> ?> -
A set of key/value label pairs assigned to the instance.
final
-
machineType
→ Input<
String?> ? -
The machine type to create.
final
-
metadata
→ Input<
Map< ?String, String> ?> -
Metadata key/value pairs made available within the instance.
final
-
metadataFingerprint
→ Input<
String?> ? -
The unique fingerprint of the metadata.
final
-
metadataStartupScript
→ Input<
String?> ? -
Metadata startup scripts made available within the instance.
final
-
minCpuPlatform
→ Input<
String?> ? -
The minimum CPU platform specified for the VM instance.
final
-
name
→ Input<
String?> ? -
A unique name for the resource, required by GCE.
Changing this forces a new resource to be created.
final
-
networkInterfaces
→ Input<
List< ?InstanceFromTemplateNetworkInterface> ?> -
The networks attached to the instance.
final
-
networkPerformanceConfig
→ Input<
InstanceFromTemplateNetworkPerformanceConfig?> ? -
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
final
-
params
→ Input<
InstanceFromTemplateParams?> ? -
Stores additional params passed with the request, but not persisted as part of resource payload.
final
-
partnerMetadata
→ Input<
Map< ?String, String> ?> -
Partner Metadata Map made available within the instance.
final
-
project
→ Input<
String?> ? -
The ID of the project in which the resource belongs. If selfLink is provided, this value is ignored. If neither selfLink nor project are provided, the provider project is used.
final
-
pulumiLabels
→ Input<
Map< ?String, String> ?> -
The combination of labels configured directly on the resource and default labels configured on the provider.
final
-
reservationAffinity
→ Input<
InstanceFromTemplateReservationAffinity?> ? -
Specifies the reservations that this instance can consume from.
final
-
resourcePolicies
→ Input<
String?> ? -
A list of selfLinks of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
scheduling
→ Input<
InstanceFromTemplateScheduling?> ? -
The scheduling strategy being used by the instance.
final
-
scratchDisks
→ Input<
List< ?InstanceFromTemplateScratchDisk> ?> -
network_interface.alias_ip_rangenetwork_interface.alias_ipv6_rangeBetanetwork_interface.access_configfinal -
selfLink
→ Input<
String?> ? -
The URI of the created resource.
final
-
serviceAccount
→ Input<
InstanceFromTemplateServiceAccount?> ? -
The service account to attach to the instance.
final
-
shieldedInstanceConfig
→ Input<
InstanceFromTemplateShieldedInstanceConfig?> ? -
The shielded vm config being used by the instance.
final
-
sourceInstanceTemplate
→ Input<
String?> ? -
Name or self link of an instance
template to create the instance based on. It is recommended to reference
instance templates through their unique id (
selfLinkUniqueattribute).final -
The list of tags attached to the instance.
final
-
The unique fingerprint of the tags.
final
-
workloadIdentityConfig
→ Input<
InstanceFromTemplateWorkloadIdentityConfig?> ? -
Workload identity config.
final
-
zone
→ Input<
String?> ? -
The zone that the machine should be created in. If not
set, the provider zone is used.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited