pub struct InstanceFromMachineImageArgs {Show 30 fields
pub advanced_machine_features: Output<Option<InstanceFromMachineImageAdvancedMachineFeatures>>,
pub allow_stopping_for_update: Output<Option<bool>>,
pub can_ip_forward: Output<Option<bool>>,
pub confidential_instance_config: Output<Option<InstanceFromMachineImageConfidentialInstanceConfig>>,
pub deletion_protection: Output<Option<bool>>,
pub description: Output<Option<String>>,
pub desired_status: Output<Option<String>>,
pub enable_display: Output<Option<bool>>,
pub guest_accelerators: Output<Option<Vec<InstanceFromMachineImageGuestAccelerator>>>,
pub hostname: Output<Option<String>>,
pub key_revocation_action_type: Output<Option<String>>,
pub labels: Output<Option<HashMap<String, String>>>,
pub machine_type: Output<Option<String>>,
pub metadata: Output<Option<HashMap<String, String>>>,
pub metadata_startup_script: Output<Option<String>>,
pub min_cpu_platform: Output<Option<String>>,
pub name: Output<Option<String>>,
pub network_interfaces: Output<Option<Vec<InstanceFromMachineImageNetworkInterface>>>,
pub network_performance_config: Output<Option<InstanceFromMachineImageNetworkPerformanceConfig>>,
pub params: Output<Option<InstanceFromMachineImageParams>>,
pub partner_metadata: Output<Option<HashMap<String, String>>>,
pub project: Output<Option<String>>,
pub reservation_affinity: Output<Option<InstanceFromMachineImageReservationAffinity>>,
pub resource_policies: Output<Option<String>>,
pub scheduling: Output<Option<InstanceFromMachineImageScheduling>>,
pub service_account: Output<Option<InstanceFromMachineImageServiceAccount>>,
pub shielded_instance_config: Output<Option<InstanceFromMachineImageShieldedInstanceConfig>>,
pub source_machine_image: Output<String>,
pub tags: Output<Option<Vec<String>>>,
pub zone: Output<Option<String>>,
}
Fields§
§advanced_machine_features: Output<Option<InstanceFromMachineImageAdvancedMachineFeatures>>
Controls for advanced machine-related behavior features.
allow_stopping_for_update: Output<Option<bool>>
§can_ip_forward: Output<Option<bool>>
Whether sending and receiving of packets with non-matching source or destination IPs is allowed.
confidential_instance_config: Output<Option<InstanceFromMachineImageConfidentialInstanceConfig>>
The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create.
deletion_protection: Output<Option<bool>>
Whether deletion protection is enabled on this instance.
description: Output<Option<String>>
A brief description of the resource.
desired_status: Output<Option<String>>
Desired status of the instance. Either “RUNNING”, “SUSPENDED” or “TERMINATED”.
enable_display: Output<Option<bool>>
Whether the instance has virtual displays enabled.
guest_accelerators: Output<Option<Vec<InstanceFromMachineImageGuestAccelerator>>>
List of the type and count of accelerator cards attached to the instance.
hostname: Output<Option<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.
key_revocation_action_type: Output<Option<String>>
Action to be taken when a customer’s encryption key is revoked. Supports “STOP” and “NONE”, with “NONE” being the default.
labels: Output<Option<HashMap<String, String>>>
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.
machine_type: Output<Option<String>>
The machine type to create.
metadata: Output<Option<HashMap<String, String>>>
Metadata key/value pairs made available within the instance.
metadata_startup_script: Output<Option<String>>
Metadata startup scripts made available within the instance.
min_cpu_platform: Output<Option<String>>
The minimum CPU platform specified for the VM instance.
name: Output<Option<String>>
A unique name for the resource, required by GCE. Changing this forces a new resource to be created.
network_interfaces: Output<Option<Vec<InstanceFromMachineImageNetworkInterface>>>
The networks attached to the instance.
network_performance_config: Output<Option<InstanceFromMachineImageNetworkPerformanceConfig>>
Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration.
params: Output<Option<InstanceFromMachineImageParams>>
Stores additional params passed with the request, but not persisted as part of resource payload.
partner_metadata: Output<Option<HashMap<String, String>>>
Partner Metadata Map made available within the instance.
project: Output<Option<String>>
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.
reservation_affinity: Output<Option<InstanceFromMachineImageReservationAffinity>>
Specifies the reservations that this instance can consume from.
resource_policies: Output<Option<String>>
A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported.
scheduling: Output<Option<InstanceFromMachineImageScheduling>>
The scheduling strategy being used by the instance.
service_account: Output<Option<InstanceFromMachineImageServiceAccount>>
The service account to attach to the instance.
shielded_instance_config: Output<Option<InstanceFromMachineImageShieldedInstanceConfig>>
The shielded vm config being used by the instance.
source_machine_image: Output<String>
Name or self link of a machine image to create the instance based on.
The list of tags attached to the instance.
zone: Output<Option<String>>
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.
Implementations§
source§impl InstanceFromMachineImageArgs
impl InstanceFromMachineImageArgs
sourcepub fn builder() -> InstanceFromMachineImageArgsBuilder
pub fn builder() -> InstanceFromMachineImageArgsBuilder
Create an instance of InstanceFromMachineImageArgs
using the builder syntax
Trait Implementations§
source§impl Clone for InstanceFromMachineImageArgs
impl Clone for InstanceFromMachineImageArgs
source§fn clone(&self) -> InstanceFromMachineImageArgs
fn clone(&self) -> InstanceFromMachineImageArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for InstanceFromMachineImageArgs
impl RefUnwindSafe for InstanceFromMachineImageArgs
impl Send for InstanceFromMachineImageArgs
impl Sync for InstanceFromMachineImageArgs
impl Unpin for InstanceFromMachineImageArgs
impl UnwindSafe for InstanceFromMachineImageArgs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)