Class InstanceFromTemplateState


  • public final class InstanceFromTemplateState
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • allowStoppingForUpdate

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> allowStoppingForUpdate()
        Returns:
        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.
      • attachedDisks

        public java.util.Optional<com.pulumi.core.Output<java.util.List<InstanceFromTemplateAttachedDiskArgs>>> attachedDisks()
        Returns:
        List of disks attached to the instance
      • canIpForward

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> canIpForward()
        Returns:
        Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
      • confidentialInstanceConfig

        public java.util.Optional<com.pulumi.core.Output<InstanceFromTemplateConfidentialInstanceConfigArgs>> confidentialInstanceConfig()
        Returns:
        The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
      • cpuPlatform

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> cpuPlatform()
        Returns:
        The CPU platform used by this instance.
      • currentStatus

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> currentStatus()
        Returns:
        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](https://cloud.google.com/compute/docs/instances/instance-life-cycle).
      • deletionProtection

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> deletionProtection()
        Returns:
        Whether deletion protection is enabled on this instance.
      • description

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
        Returns:
        A brief description of the resource.
      • desiredStatus

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> desiredStatus()
        Returns:
        Desired status of the instance. Either "RUNNING" or "TERMINATED".
      • effectiveLabels

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> effectiveLabels()
        Returns:
        All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
      • enableDisplay

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> enableDisplay()
        Returns:
        Whether the instance has virtual displays enabled.
      • guestAccelerators

        public java.util.Optional<com.pulumi.core.Output<java.util.List<InstanceFromTemplateGuestAcceleratorArgs>>> guestAccelerators()
        Returns:
        List of the type and count of accelerator cards attached to the instance.
      • hostname

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> hostname()
        Returns:
        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]([-a-z0-9]*[a-z0-9]), concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created.
      • instanceId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> instanceId()
        Returns:
        The server-assigned unique identifier of this instance.
      • labelFingerprint

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> labelFingerprint()
        Returns:
        The unique fingerprint of the labels.
      • labels

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> labels()
        Returns:
        A set of key/value label pairs assigned to the instance. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource.
      • machineType

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> machineType()
        Returns:
        The machine type to create.
      • metadata

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> metadata()
        Returns:
        Metadata key/value pairs made available within the instance.
      • metadataFingerprint

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> metadataFingerprint()
        Returns:
        The unique fingerprint of the metadata.
      • metadataStartupScript

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> metadataStartupScript()
        Returns:
        Metadata startup scripts made available within the instance.
      • minCpuPlatform

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> minCpuPlatform()
        Returns:
        The minimum CPU platform specified for the VM instance.
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
      • networkPerformanceConfig

        public java.util.Optional<com.pulumi.core.Output<InstanceFromTemplateNetworkPerformanceConfigArgs>> networkPerformanceConfig()
        Returns:
        Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
      • params

        public java.util.Optional<com.pulumi.core.Output<InstanceFromTemplateParamsArgs>> params()
        Returns:
        Stores additional params passed with the request, but not persisted as part of resource payload.
      • project

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> project()
        Returns:
        The ID of the project in which the resource belongs. If self_link is provided, this value is ignored. If neither self_link nor project are provided, the provider project is used.
      • pulumiLabels

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>>> pulumiLabels()
        Returns:
        The combination of labels configured directly on the resource and default labels configured on the provider.
      • resourcePolicies

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> resourcePolicies()
        Returns:
        A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
      • scheduling

        public java.util.Optional<com.pulumi.core.Output<InstanceFromTemplateSchedulingArgs>> scheduling()
        Returns:
        The scheduling strategy being used by the instance.
      • scratchDisks

        public java.util.Optional<com.pulumi.core.Output<java.util.List<InstanceFromTemplateScratchDiskArgs>>> scratchDisks()
        Returns:
        The scratch disks attached to the instance.
      • selfLink

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> selfLink()
        Returns:
        The URI of the created resource.
      • sourceInstanceTemplate

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> sourceInstanceTemplate()
        Returns:
        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 (`self_link_unique` attribute). ***
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> tags()
        Returns:
        The list of tags attached to the instance.
      • tagsFingerprint

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> tagsFingerprint()
        Returns:
        The unique fingerprint of the tags.
      • zone

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> zone()
        Returns:
        The zone that the machine should be created in. If not set, the provider zone is used. In addition to these, all arguments from `gcp.compute.Instance` are supported as a way to override the properties in the template. All exported attributes from `gcp.compute.Instance` are likewise exported here.