Class InstanceFromMachineImageArgs


  • public final class InstanceFromMachineImageArgs
    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.
      • 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<InstanceFromMachineImageConfidentialInstanceConfigArgs>> 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.
      • 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".
      • 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<InstanceFromMachineImageGuestAcceleratorArgs>>> 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.
      • 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.
      • 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.
      • 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<InstanceFromMachineImageNetworkPerformanceConfigArgs>> 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<InstanceFromMachineImageParamsArgs>> 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.
      • 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.
      • sourceMachineImage

        public com.pulumi.core.Output<java.lang.String> sourceMachineImage()
        Returns:
        Name or self link of a machine image to create the instance based on. ***
      • 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.
      • 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, most* arguments from `gcp.compute.Instance` are supported as a way to override the properties in the machine image. All exported attributes from `gcp.compute.Instance` are likewise exported here. > **Warning:** *Due to API limitations, disk overrides are currently disabled. This includes the "boot_disk", "attached_disk", and "scratch_disk" fields.