permalink |
---|
/compute_instance/ |
compute_instance
represents the google_compute_instance
Terraform resource.
This package contains functions and utilities for setting up the resource using Jsonnet code.
fn new()
fn newAttrs()
fn withAdvancedMachineFeatures()
fn withAdvancedMachineFeaturesMixin()
fn withAllowStoppingForUpdate()
fn withAttachedDisk()
fn withAttachedDiskMixin()
fn withBootDisk()
fn withBootDiskMixin()
fn withCanIpForward()
fn withConfidentialInstanceConfig()
fn withConfidentialInstanceConfigMixin()
fn withDeletionProtection()
fn withDescription()
fn withDesiredStatus()
fn withEnableDisplay()
fn withGuestAccelerator()
fn withHostname()
fn withLabels()
fn withMachineType()
fn withMetadata()
fn withMetadataStartupScript()
fn withMinCpuPlatform()
fn withName()
fn withNetworkInterface()
fn withNetworkInterfaceMixin()
fn withNetworkPerformanceConfig()
fn withNetworkPerformanceConfigMixin()
fn withParams()
fn withParamsMixin()
fn withProject()
fn withReservationAffinity()
fn withReservationAffinityMixin()
fn withResourcePolicies()
fn withScheduling()
fn withSchedulingMixin()
fn withScratchDisk()
fn withScratchDiskMixin()
fn withServiceAccount()
fn withServiceAccountMixin()
fn withShieldedInstanceConfig()
fn withShieldedInstanceConfigMixin()
fn withTags()
fn withTimeouts()
fn withTimeoutsMixin()
fn withZone()
obj advanced_machine_features
obj attached_disk
obj boot_disk
obj confidential_instance_config
obj network_interface
obj network_performance_config
obj params
obj reservation_affinity
obj scheduling
obj scratch_disk
obj service_account
obj shielded_instance_config
obj timeouts
new()
google.compute_instance.new
injects a new google_compute_instance
Terraform resource
block into the root module document.
Additionally, this inserts a private function into the _ref
attribute that generates references to attributes of the
resource. For example, if you added a new instance to the root using:
# arguments omitted for brevity
google.compute_instance.new('some_id')
You can get the reference to the id
field of the created google.compute_instance
using the reference:
$._ref.google_compute_instance.some_id.get('id')
This is the same as directly entering "${ google_compute_instance.some_id.id }"
as the value.
NOTE: if you are chaining multiple resources together in a merge operation, you may not be able to use super
, self
,
or $
to refer to the root object. Instead, make an explicit outer object using local
.
Args:
resourceLabel
(string
): The name label of the block.allow_stopping_for_update
(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. Whennull
, theallow_stopping_for_update
field will be omitted from the resulting object.can_ip_forward
(bool
): Whether sending and receiving of packets with non-matching source or destination IPs is allowed. Whennull
, thecan_ip_forward
field will be omitted from the resulting object.deletion_protection
(bool
): Whether deletion protection is enabled on this instance. Whennull
, thedeletion_protection
field will be omitted from the resulting object.description
(string
): A brief description of the resource. Whennull
, thedescription
field will be omitted from the resulting object.desired_status
(string
): Desired status of the instance. Either "RUNNING" or "TERMINATED". Whennull
, thedesired_status
field will be omitted from the resulting object.enable_display
(bool
): Whether the instance has virtual displays enabled. Whennull
, theenable_display
field will be omitted from the resulting object.guest_accelerator
(list
): List of the type and count of accelerator cards attached to the instance. Whennull
, theguest_accelerator
field will be omitted from the resulting object.hostname
(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. Whennull
, thehostname
field will be omitted from the resulting object.labels
(obj
): A set of key/value label pairs assigned to the instance. Whennull
, thelabels
field will be omitted from the resulting object.machine_type
(string
): The machine type to create.metadata
(obj
): Metadata key/value pairs made available within the instance. Whennull
, themetadata
field will be omitted from the resulting object.metadata_startup_script
(string
): Metadata startup scripts made available within the instance. Whennull
, themetadata_startup_script
field will be omitted from the resulting object.min_cpu_platform
(string
): The minimum CPU platform specified for the VM instance. Whennull
, themin_cpu_platform
field will be omitted from the resulting object.name
(string
): The name of the instance. One of name or self_link must be provided.project
(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. Whennull
, theproject
field will be omitted from the resulting object.resource_policies
(list
): A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported. Whennull
, theresource_policies
field will be omitted from the resulting object.tags
(list
): The list of tags attached to the instance. Whennull
, thetags
field will be omitted from the resulting object.zone
(string
): The zone of the instance. If self_link is provided, this value is ignored. If neither self_link nor zone are provided, the provider zone is used. Whennull
, thezone
field will be omitted from the resulting object.advanced_machine_features
(list[obj]
): Controls for advanced machine-related behavior features. Whennull
, theadvanced_machine_features
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.advanced_machine_features.new constructor.attached_disk
(list[obj]
): List of disks attached to the instance Whennull
, theattached_disk
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.attached_disk.new constructor.boot_disk
(list[obj]
): The boot disk for the instance. Whennull
, theboot_disk
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.boot_disk.new constructor.confidential_instance_config
(list[obj]
): The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create. Whennull
, theconfidential_instance_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.confidential_instance_config.new constructor.network_interface
(list[obj]
): The networks attached to the instance. Whennull
, thenetwork_interface
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.network_interface.new constructor.network_performance_config
(list[obj]
): Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration. Whennull
, thenetwork_performance_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.network_performance_config.new constructor.params
(list[obj]
): Stores additional params passed with the request, but not persisted as part of resource payload. Whennull
, theparams
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.params.new constructor.reservation_affinity
(list[obj]
): Specifies the reservations that this instance can consume from. Whennull
, thereservation_affinity
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.reservation_affinity.new constructor.scheduling
(list[obj]
): The scheduling strategy being used by the instance. Whennull
, thescheduling
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.scheduling.new constructor.scratch_disk
(list[obj]
): The scratch disks attached to the instance. Whennull
, thescratch_disk
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.scratch_disk.new constructor.service_account
(list[obj]
): The service account to attach to the instance. Whennull
, theservice_account
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.service_account.new constructor.shielded_instance_config
(list[obj]
): The shielded vm config being used by the instance. Whennull
, theshielded_instance_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.shielded_instance_config.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting resource block. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.timeouts.new constructor.
Returns:
- A mixin object that injects the new resource into the root Terraform configuration.
newAttrs()
google.compute_instance.newAttrs
constructs a new object with attributes and blocks configured for the compute_instance
Terraform resource.
Unlike google.compute_instance.new, this function will not inject the resource
block into the root Terraform document. Instead, this must be passed in as the attrs
argument for the
tf.withResource function to build a complete block.
This is most useful when you need to preprocess the attributes with functions, conditional, or looping logic prior to injecting into a complete block.
Args:
allow_stopping_for_update
(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. Whennull
, theallow_stopping_for_update
field will be omitted from the resulting object.can_ip_forward
(bool
): Whether sending and receiving of packets with non-matching source or destination IPs is allowed. Whennull
, thecan_ip_forward
field will be omitted from the resulting object.deletion_protection
(bool
): Whether deletion protection is enabled on this instance. Whennull
, thedeletion_protection
field will be omitted from the resulting object.description
(string
): A brief description of the resource. Whennull
, thedescription
field will be omitted from the resulting object.desired_status
(string
): Desired status of the instance. Either "RUNNING" or "TERMINATED". Whennull
, thedesired_status
field will be omitted from the resulting object.enable_display
(bool
): Whether the instance has virtual displays enabled. Whennull
, theenable_display
field will be omitted from the resulting object.guest_accelerator
(list
): List of the type and count of accelerator cards attached to the instance. Whennull
, theguest_accelerator
field will be omitted from the resulting object.hostname
(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. Whennull
, thehostname
field will be omitted from the resulting object.labels
(obj
): A set of key/value label pairs assigned to the instance. Whennull
, thelabels
field will be omitted from the resulting object.machine_type
(string
): The machine type to create.metadata
(obj
): Metadata key/value pairs made available within the instance. Whennull
, themetadata
field will be omitted from the resulting object.metadata_startup_script
(string
): Metadata startup scripts made available within the instance. Whennull
, themetadata_startup_script
field will be omitted from the resulting object.min_cpu_platform
(string
): The minimum CPU platform specified for the VM instance. Whennull
, themin_cpu_platform
field will be omitted from the resulting object.name
(string
): The name of the instance. One of name or self_link must be provided.project
(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. Whennull
, theproject
field will be omitted from the resulting object.resource_policies
(list
): A list of self_links of resource policies to attach to the instance. Currently a max of 1 resource policy is supported. Whennull
, theresource_policies
field will be omitted from the resulting object.tags
(list
): The list of tags attached to the instance. Whennull
, thetags
field will be omitted from the resulting object.zone
(string
): The zone of the instance. If self_link is provided, this value is ignored. If neither self_link nor zone are provided, the provider zone is used. Whennull
, thezone
field will be omitted from the resulting object.advanced_machine_features
(list[obj]
): Controls for advanced machine-related behavior features. Whennull
, theadvanced_machine_features
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.advanced_machine_features.new constructor.attached_disk
(list[obj]
): List of disks attached to the instance Whennull
, theattached_disk
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.attached_disk.new constructor.boot_disk
(list[obj]
): The boot disk for the instance. Whennull
, theboot_disk
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.boot_disk.new constructor.confidential_instance_config
(list[obj]
): The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create. Whennull
, theconfidential_instance_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.confidential_instance_config.new constructor.network_interface
(list[obj]
): The networks attached to the instance. Whennull
, thenetwork_interface
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.network_interface.new constructor.network_performance_config
(list[obj]
): Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration. Whennull
, thenetwork_performance_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.network_performance_config.new constructor.params
(list[obj]
): Stores additional params passed with the request, but not persisted as part of resource payload. Whennull
, theparams
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.params.new constructor.reservation_affinity
(list[obj]
): Specifies the reservations that this instance can consume from. Whennull
, thereservation_affinity
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.reservation_affinity.new constructor.scheduling
(list[obj]
): The scheduling strategy being used by the instance. Whennull
, thescheduling
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.scheduling.new constructor.scratch_disk
(list[obj]
): The scratch disks attached to the instance. Whennull
, thescratch_disk
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.scratch_disk.new constructor.service_account
(list[obj]
): The service account to attach to the instance. Whennull
, theservice_account
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.service_account.new constructor.shielded_instance_config
(list[obj]
): The shielded vm config being used by the instance. Whennull
, theshielded_instance_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.shielded_instance_config.new constructor.timeouts
(obj
): Set thetimeouts
field on the resulting object. Whennull
, thetimeouts
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.timeouts.new constructor.
Returns:
- An attribute object that can be used with tf.withResource to construct a new
compute_instance
resource into the root Terraform configuration.
withAdvancedMachineFeatures()
google.list[obj].withAdvancedMachineFeatures
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the advanced_machine_features field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withAdvancedMachineFeaturesMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theadvanced_machine_features
field.
withAdvancedMachineFeaturesMixin()
google.list[obj].withAdvancedMachineFeaturesMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the advanced_machine_features field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withAdvancedMachineFeatures
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theadvanced_machine_features
field.
withAllowStoppingForUpdate()
google.bool.withAllowStoppingForUpdate
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the allow_stopping_for_update field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theallow_stopping_for_update
field.
withAttachedDisk()
google.list[obj].withAttachedDisk
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the attached_disk field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withAttachedDiskMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theattached_disk
field.
withAttachedDiskMixin()
google.list[obj].withAttachedDiskMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the attached_disk field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withAttachedDisk
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theattached_disk
field.
withBootDisk()
google.list[obj].withBootDisk
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the boot_disk field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withBootDiskMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theboot_disk
field.
withBootDiskMixin()
google.list[obj].withBootDiskMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the boot_disk field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withBootDisk
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theboot_disk
field.
withCanIpForward()
google.bool.withCanIpForward
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the can_ip_forward field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thecan_ip_forward
field.
withConfidentialInstanceConfig()
google.list[obj].withConfidentialInstanceConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the confidential_instance_config field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withConfidentialInstanceConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theconfidential_instance_config
field.
withConfidentialInstanceConfigMixin()
google.list[obj].withConfidentialInstanceConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the confidential_instance_config field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withConfidentialInstanceConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theconfidential_instance_config
field.
withDeletionProtection()
google.bool.withDeletionProtection
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the deletion_protection field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for thedeletion_protection
field.
withDescription()
google.string.withDescription
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the description field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedescription
field.
withDesiredStatus()
google.string.withDesiredStatus
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the desired_status field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thedesired_status
field.
withEnableDisplay()
google.bool.withEnableDisplay
constructs a mixin object that can be merged into the bool
Terraform resource block to set or update the enable_display field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(bool
): The value to set for theenable_display
field.
withGuestAccelerator()
google.list.withGuestAccelerator
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the guest_accelerator field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theguest_accelerator
field.
withHostname()
google.string.withHostname
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the hostname field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thehostname
field.
withLabels()
google.obj.withLabels
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the labels field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thelabels
field.
withMachineType()
google.string.withMachineType
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the machine_type field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themachine_type
field.
withMetadata()
google.obj.withMetadata
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the metadata field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for themetadata
field.
withMetadataStartupScript()
google.string.withMetadataStartupScript
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the metadata_startup_script field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themetadata_startup_script
field.
withMinCpuPlatform()
google.string.withMinCpuPlatform
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the min_cpu_platform field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for themin_cpu_platform
field.
withName()
google.string.withName
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the name field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thename
field.
withNetworkInterface()
google.list[obj].withNetworkInterface
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the network_interface field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withNetworkInterfaceMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetwork_interface
field.
withNetworkInterfaceMixin()
google.list[obj].withNetworkInterfaceMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the network_interface field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withNetworkInterface
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetwork_interface
field.
withNetworkPerformanceConfig()
google.list[obj].withNetworkPerformanceConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the network_performance_config field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withNetworkPerformanceConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetwork_performance_config
field.
withNetworkPerformanceConfigMixin()
google.list[obj].withNetworkPerformanceConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the network_performance_config field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withNetworkPerformanceConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thenetwork_performance_config
field.
withParams()
google.list[obj].withParams
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the params field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withParamsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theparams
field.
withParamsMixin()
google.list[obj].withParamsMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the params field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withParams
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theparams
field.
withProject()
google.string.withProject
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the project field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for theproject
field.
withReservationAffinity()
google.list[obj].withReservationAffinity
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the reservation_affinity field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withReservationAffinityMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thereservation_affinity
field.
withReservationAffinityMixin()
google.list[obj].withReservationAffinityMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the reservation_affinity field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withReservationAffinity
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thereservation_affinity
field.
withResourcePolicies()
google.list.withResourcePolicies
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the resource_policies field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for theresource_policies
field.
withScheduling()
google.list[obj].withScheduling
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the scheduling field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withSchedulingMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thescheduling
field.
withSchedulingMixin()
google.list[obj].withSchedulingMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the scheduling field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withScheduling
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thescheduling
field.
withScratchDisk()
google.list[obj].withScratchDisk
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the scratch_disk field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withScratchDiskMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thescratch_disk
field.
withScratchDiskMixin()
google.list[obj].withScratchDiskMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the scratch_disk field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withScratchDisk
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for thescratch_disk
field.
withServiceAccount()
google.list[obj].withServiceAccount
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the service_account field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withServiceAccountMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theservice_account
field.
withServiceAccountMixin()
google.list[obj].withServiceAccountMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the service_account field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withServiceAccount
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theservice_account
field.
withShieldedInstanceConfig()
google.list[obj].withShieldedInstanceConfig
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the shielded_instance_config field.
This function will replace the array with the passed in value
. If you wish to instead append the
passed in value to the existing array, use the google.list[obj].withShieldedInstanceConfigMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theshielded_instance_config
field.
withShieldedInstanceConfigMixin()
google.list[obj].withShieldedInstanceConfigMixin
constructs a mixin object that can be merged into the list[obj]
Terraform resource block to set or update the shielded_instance_config field.
This function will append the passed in array or object to the existing array. If you wish
to instead replace the array with the passed in value
, use the google.list[obj].withShieldedInstanceConfig
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list[obj]
): The value to set for theshielded_instance_config
field.
withTags()
google.list.withTags
constructs a mixin object that can be merged into the list
Terraform resource block to set or update the tags field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(list
): The value to set for thetags
field.
withTimeouts()
google.obj.withTimeouts
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will replace the map with the passed in value
. If you wish to instead merge the
passed in value to the existing map, use the google.obj.withTimeoutsMixin function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withTimeoutsMixin()
google.obj.withTimeoutsMixin
constructs a mixin object that can be merged into the obj
Terraform resource block to set or update the timeouts field.
This function will merge the passed in value to the existing map. If you wish
to instead replace the entire map with the passed in value
, use the google.obj.withTimeouts
function.
Args:
resourceLabel
(string
): The name label of the block to update.value
(obj
): The value to set for thetimeouts
field.
withZone()
google.string.withZone
constructs a mixin object that can be merged into the string
Terraform resource block to set or update the zone field.
Args:
resourceLabel
(string
): The name label of the block to update.value
(string
): The value to set for thezone
field.
new()
google.compute_instance.advanced_machine_features.new
constructs a new object with attributes and blocks configured for the advanced_machine_features
Terraform sub block.
Args:
enable_nested_virtualization
(bool
): Whether to enable nested virtualization or not. Whennull
, theenable_nested_virtualization
field will be omitted from the resulting object.threads_per_core
(number
): The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed. Whennull
, thethreads_per_core
field will be omitted from the resulting object.visible_core_count
(number
): The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width. Whennull
, thevisible_core_count
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
advanced_machine_features
sub block.
new()
google.compute_instance.attached_disk.new
constructs a new object with attributes and blocks configured for the attached_disk
Terraform sub block.
Args:
device_name
(string
): Name with which the attached disk is accessible under /dev/disk/by-id/ Whennull
, thedevice_name
field will be omitted from the resulting object.disk_encryption_key_raw
(string
): A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. Whennull
, thedisk_encryption_key_raw
field will be omitted from the resulting object.kms_key_self_link
(string
): The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. Whennull
, thekms_key_self_link
field will be omitted from the resulting object.mode
(string
): Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE". Whennull
, themode
field will be omitted from the resulting object.source
(string
): The name or self_link of the disk attached to this instance.
Returns:
- An attribute object that represents the
attached_disk
sub block.
new()
google.compute_instance.boot_disk.new
constructs a new object with attributes and blocks configured for the boot_disk
Terraform sub block.
Args:
auto_delete
(bool
): Whether the disk will be auto-deleted when the instance is deleted. Whennull
, theauto_delete
field will be omitted from the resulting object.device_name
(string
): Name with which attached disk will be accessible under /dev/disk/by-id/ Whennull
, thedevice_name
field will be omitted from the resulting object.disk_encryption_key_raw
(string
): A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. Whennull
, thedisk_encryption_key_raw
field will be omitted from the resulting object.kms_key_self_link
(string
): The self_link of the encryption key that is stored in Google Cloud KMS to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set. Whennull
, thekms_key_self_link
field will be omitted from the resulting object.mode
(string
): Read/write mode for the disk. One of "READ_ONLY" or "READ_WRITE". Whennull
, themode
field will be omitted from the resulting object.source
(string
): The name or self_link of the disk attached to this instance. Whennull
, thesource
field will be omitted from the resulting object.initialize_params
(list[obj]
): Parameters with which a disk was created alongside the instance. Whennull
, theinitialize_params
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.boot_disk.initialize_params.new constructor.
Returns:
- An attribute object that represents the
boot_disk
sub block.
new()
google.compute_instance.boot_disk.initialize_params.new
constructs a new object with attributes and blocks configured for the initialize_params
Terraform sub block.
Args:
image
(string
): The image from which this disk was initialised. Whennull
, theimage
field will be omitted from the resulting object.labels
(obj
): A set of key/value label pairs assigned to the disk. Whennull
, thelabels
field will be omitted from the resulting object.resource_manager_tags
(obj
): A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty. Whennull
, theresource_manager_tags
field will be omitted from the resulting object.size
(number
): The size of the image in gigabytes. Whennull
, thesize
field will be omitted from the resulting object.type
(string
): The Google Compute Engine disk type. Such as pd-standard, pd-ssd or pd-balanced. Whennull
, thetype
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
initialize_params
sub block.
new()
google.compute_instance.confidential_instance_config.new
constructs a new object with attributes and blocks configured for the confidential_instance_config
Terraform sub block.
Args:
enable_confidential_compute
(bool
): Defines whether the instance should have confidential compute enabled.
Returns:
- An attribute object that represents the
confidential_instance_config
sub block.
new()
google.compute_instance.network_interface.new
constructs a new object with attributes and blocks configured for the network_interface
Terraform sub block.
Args:
internal_ipv6_prefix_length
(number
): The prefix length of the primary internal IPv6 range. Whennull
, theinternal_ipv6_prefix_length
field will be omitted from the resulting object.ipv6_address
(string
): An IPv6 internal network address for this network interface. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance's subnetwork. Whennull
, theipv6_address
field will be omitted from the resulting object.network
(string
): The name or self_link of the network attached to this interface. Whennull
, thenetwork
field will be omitted from the resulting object.network_ip
(string
): The private IP address assigned to the instance. Whennull
, thenetwork_ip
field will be omitted from the resulting object.nic_type
(string
): The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET Whennull
, thenic_type
field will be omitted from the resulting object.queue_count
(number
): The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified. Whennull
, thequeue_count
field will be omitted from the resulting object.stack_type
(string
): The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used. Whennull
, thestack_type
field will be omitted from the resulting object.subnetwork
(string
): The name or self_link of the subnetwork attached to this interface. Whennull
, thesubnetwork
field will be omitted from the resulting object.subnetwork_project
(string
): The project in which the subnetwork belongs. Whennull
, thesubnetwork_project
field will be omitted from the resulting object.access_config
(list[obj]
): Access configurations, i.e. IPs via which this instance can be accessed via the Internet. Whennull
, theaccess_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.network_interface.access_config.new constructor.alias_ip_range
(list[obj]
): An array of alias IP ranges for this network interface. Whennull
, thealias_ip_range
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.network_interface.alias_ip_range.new constructor.ipv6_access_config
(list[obj]
): An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access. Whennull
, theipv6_access_config
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.network_interface.ipv6_access_config.new constructor.
Returns:
- An attribute object that represents the
network_interface
sub block.
new()
google.compute_instance.network_interface.access_config.new
constructs a new object with attributes and blocks configured for the access_config
Terraform sub block.
Args:
nat_ip
(string
): The IP address that is be 1:1 mapped to the instance's network ip. Whennull
, thenat_ip
field will be omitted from the resulting object.network_tier
(string
): The networking tier used for configuring this instance. One of PREMIUM or STANDARD. Whennull
, thenetwork_tier
field will be omitted from the resulting object.public_ptr_domain_name
(string
): The DNS domain name for the public PTR record. Whennull
, thepublic_ptr_domain_name
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
access_config
sub block.
new()
google.compute_instance.network_interface.alias_ip_range.new
constructs a new object with attributes and blocks configured for the alias_ip_range
Terraform sub block.
Args:
ip_cidr_range
(string
): The IP CIDR range represented by this alias IP range.subnetwork_range_name
(string
): The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range. Whennull
, thesubnetwork_range_name
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
alias_ip_range
sub block.
new()
google.compute_instance.network_interface.ipv6_access_config.new
constructs a new object with attributes and blocks configured for the ipv6_access_config
Terraform sub block.
Args:
external_ipv6
(string
): The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. To use a static external IP address, it must be unused and in the same region as the instance's zone. If not specified, Google Cloud will automatically assign an external IPv6 address from the instance's subnetwork. Whennull
, theexternal_ipv6
field will be omitted from the resulting object.external_ipv6_prefix_length
(string
): The prefix length of the external IPv6 range. Whennull
, theexternal_ipv6_prefix_length
field will be omitted from the resulting object.name
(string
): The name of this access configuration. In ipv6AccessConfigs, the recommended name is External IPv6. Whennull
, thename
field will be omitted from the resulting object.network_tier
(string
): The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6public_ptr_domain_name
(string
): The domain name to be used when creating DNSv6 records for the external IPv6 ranges. Whennull
, thepublic_ptr_domain_name
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
ipv6_access_config
sub block.
new()
google.compute_instance.network_performance_config.new
constructs a new object with attributes and blocks configured for the network_performance_config
Terraform sub block.
Args:
total_egress_bandwidth_tier
(string
): The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT
Returns:
- An attribute object that represents the
network_performance_config
sub block.
new()
google.compute_instance.params.new
constructs a new object with attributes and blocks configured for the params
Terraform sub block.
Args:
resource_manager_tags
(obj
): A map of resource manager tags. Resource manager tag keys and values have the same definition as resource manager tags. Keys must be in the format tagKeys/{tag_key_id}, and values are in the format tagValues/456. The field is ignored (both PUT & PATCH) when empty. Whennull
, theresource_manager_tags
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
params
sub block.
new()
google.compute_instance.reservation_affinity.new
constructs a new object with attributes and blocks configured for the reservation_affinity
Terraform sub block.
Args:
type
(string
): The type of reservation from which this instance can consume resources.specific_reservation
(list[obj]
): Specifies the label selector for the reservation to use. Whennull
, thespecific_reservation
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.reservation_affinity.specific_reservation.new constructor.
Returns:
- An attribute object that represents the
reservation_affinity
sub block.
new()
google.compute_instance.reservation_affinity.specific_reservation.new
constructs a new object with attributes and blocks configured for the specific_reservation
Terraform sub block.
Args:
key
(string
): Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.values
(list
): Corresponds to the label values of a reservation resource.
Returns:
- An attribute object that represents the
specific_reservation
sub block.
new()
google.compute_instance.scheduling.new
constructs a new object with attributes and blocks configured for the scheduling
Terraform sub block.
Args:
automatic_restart
(bool
): Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user). Whennull
, theautomatic_restart
field will be omitted from the resulting object.instance_termination_action
(string
): Specifies the action GCE should take when SPOT VM is preempted. Whennull
, theinstance_termination_action
field will be omitted from the resulting object.min_node_cpus
(number
): Set themin_node_cpus
field on the resulting object. Whennull
, themin_node_cpus
field will be omitted from the resulting object.on_host_maintenance
(string
): Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE, Whennull
, theon_host_maintenance
field will be omitted from the resulting object.preemptible
(bool
): Whether the instance is preemptible. Whennull
, thepreemptible
field will be omitted from the resulting object.provisioning_model
(string
): Whether the instance is spot. If this is set as SPOT. Whennull
, theprovisioning_model
field will be omitted from the resulting object.local_ssd_recovery_timeout
(list[obj]
): Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour. Whennull
, thelocal_ssd_recovery_timeout
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.scheduling.local_ssd_recovery_timeout.new constructor.node_affinities
(list[obj]
): Specifies node affinities or anti-affinities to determine which sole-tenant nodes your instances and managed instance groups will use as host systems. Whennull
, thenode_affinities
sub block will be omitted from the resulting object. When setting the sub block, it is recommended to construct the object using the google.compute_instance.scheduling.node_affinities.new constructor.
Returns:
- An attribute object that represents the
scheduling
sub block.
new()
google.compute_instance.scheduling.local_ssd_recovery_timeout.new
constructs a new object with attributes and blocks configured for the local_ssd_recovery_timeout
Terraform sub block.
Args:
nanos
(number
): Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 seconds field and a positive nanos field. Must be from 0 to 999,999,999 inclusive. Whennull
, thenanos
field will be omitted from the resulting object.seconds
(number
): Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive.
Returns:
- An attribute object that represents the
local_ssd_recovery_timeout
sub block.
new()
google.compute_instance.scheduling.node_affinities.new
constructs a new object with attributes and blocks configured for the node_affinities
Terraform sub block.
Args:
key
(string
): Set thekey
field on the resulting object.operator
(string
): Set theoperator
field on the resulting object.values
(list
): Set thevalues
field on the resulting object.
Returns:
- An attribute object that represents the
node_affinities
sub block.
new()
google.compute_instance.scratch_disk.new
constructs a new object with attributes and blocks configured for the scratch_disk
Terraform sub block.
Args:
interface
(string
): The disk interface used for attaching this disk. One of SCSI or NVME.size
(number
): The size of the disk in gigabytes. One of 375 or 3000. Whennull
, thesize
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
scratch_disk
sub block.
new()
google.compute_instance.service_account.new
constructs a new object with attributes and blocks configured for the service_account
Terraform sub block.
Args:
email
(string
): The service account e-mail address. Whennull
, theemail
field will be omitted from the resulting object.scopes
(list
): A list of service scopes.
Returns:
- An attribute object that represents the
service_account
sub block.
new()
google.compute_instance.shielded_instance_config.new
constructs a new object with attributes and blocks configured for the shielded_instance_config
Terraform sub block.
Args:
enable_integrity_monitoring
(bool
): Whether integrity monitoring is enabled for the instance. Whennull
, theenable_integrity_monitoring
field will be omitted from the resulting object.enable_secure_boot
(bool
): Whether secure boot is enabled for the instance. Whennull
, theenable_secure_boot
field will be omitted from the resulting object.enable_vtpm
(bool
): Whether the instance uses vTPM. Whennull
, theenable_vtpm
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
shielded_instance_config
sub block.
new()
google.compute_instance.timeouts.new
constructs a new object with attributes and blocks configured for the timeouts
Terraform sub block.
Args:
create
(string
): Set thecreate
field on the resulting object. Whennull
, thecreate
field will be omitted from the resulting object.delete
(string
): Set thedelete
field on the resulting object. Whennull
, thedelete
field will be omitted from the resulting object.update
(string
): Set theupdate
field on the resulting object. Whennull
, theupdate
field will be omitted from the resulting object.
Returns:
- An attribute object that represents the
timeouts
sub block.