InstanceArgs

data class InstanceArgs(val advancedMachineFeatures: Output<AdvancedMachineFeaturesArgs>? = null, val canIpForward: Output<Boolean>? = null, val confidentialInstanceConfig: Output<ConfidentialInstanceConfigArgs>? = null, val deletionProtection: Output<Boolean>? = null, val description: Output<String>? = null, val disks: Output<List<AttachedDiskArgs>>? = null, val displayDevice: Output<DisplayDeviceArgs>? = null, val eraseWindowsVssSignature: Output<Boolean>? = null, val guestAccelerators: Output<List<AcceleratorConfigArgs>>? = null, val hostname: Output<String>? = null, val instanceEncryptionKey: Output<CustomerEncryptionKeyArgs>? = null, val keyRevocationActionType: Output<InstanceKeyRevocationActionType>? = null, val labels: Output<Map<String, String>>? = null, val machineType: Output<String>? = null, val metadata: Output<MetadataArgs>? = null, val minCpuPlatform: Output<String>? = null, val name: Output<String>? = null, val networkInterfaces: Output<List<NetworkInterfaceArgs>>? = null, val networkPerformanceConfig: Output<NetworkPerformanceConfigArgs>? = null, val params: Output<InstanceParamsArgs>? = null, val postKeyRevocationActionType: Output<InstancePostKeyRevocationActionType>? = null, val preservedStateSizeGb: Output<String>? = null, val privateIpv6GoogleAccess: Output<InstancePrivateIpv6GoogleAccess>? = null, val project: Output<String>? = null, val requestId: Output<String>? = null, val reservationAffinity: Output<ReservationAffinityArgs>? = null, val resourcePolicies: Output<List<String>>? = null, val scheduling: Output<SchedulingArgs>? = null, val secureTags: Output<List<String>>? = null, val serviceAccounts: Output<List<ServiceAccountArgs>>? = null, val serviceIntegrationSpecs: Output<Map<String, String>>? = null, val shieldedInstanceConfig: Output<ShieldedInstanceConfigArgs>? = null, val shieldedInstanceIntegrityPolicy: Output<ShieldedInstanceIntegrityPolicyArgs>? = null, val shieldedVmConfig: Output<ShieldedVmConfigArgs>? = null, val shieldedVmIntegrityPolicy: Output<ShieldedVmIntegrityPolicyArgs>? = null, val sourceInstanceTemplate: Output<String>? = null, val sourceMachineImage: Output<String>? = null, val sourceMachineImageEncryptionKey: Output<CustomerEncryptionKeyArgs>? = null, val tags: Output<TagsArgs>? = null, val zone: Output<String>? = null) : ConvertibleToJava<InstanceArgs>

Creates an instance resource in the specified project using the data included in the request.

Constructors

Link copied to clipboard
fun InstanceArgs(advancedMachineFeatures: Output<AdvancedMachineFeaturesArgs>? = null, canIpForward: Output<Boolean>? = null, confidentialInstanceConfig: Output<ConfidentialInstanceConfigArgs>? = null, deletionProtection: Output<Boolean>? = null, description: Output<String>? = null, disks: Output<List<AttachedDiskArgs>>? = null, displayDevice: Output<DisplayDeviceArgs>? = null, eraseWindowsVssSignature: Output<Boolean>? = null, guestAccelerators: Output<List<AcceleratorConfigArgs>>? = null, hostname: Output<String>? = null, instanceEncryptionKey: Output<CustomerEncryptionKeyArgs>? = null, keyRevocationActionType: Output<InstanceKeyRevocationActionType>? = null, labels: Output<Map<String, String>>? = null, machineType: Output<String>? = null, metadata: Output<MetadataArgs>? = null, minCpuPlatform: Output<String>? = null, name: Output<String>? = null, networkInterfaces: Output<List<NetworkInterfaceArgs>>? = null, networkPerformanceConfig: Output<NetworkPerformanceConfigArgs>? = null, params: Output<InstanceParamsArgs>? = null, postKeyRevocationActionType: Output<InstancePostKeyRevocationActionType>? = null, preservedStateSizeGb: Output<String>? = null, privateIpv6GoogleAccess: Output<InstancePrivateIpv6GoogleAccess>? = null, project: Output<String>? = null, requestId: Output<String>? = null, reservationAffinity: Output<ReservationAffinityArgs>? = null, resourcePolicies: Output<List<String>>? = null, scheduling: Output<SchedulingArgs>? = null, secureTags: Output<List<String>>? = null, serviceAccounts: Output<List<ServiceAccountArgs>>? = null, serviceIntegrationSpecs: Output<Map<String, String>>? = null, shieldedInstanceConfig: Output<ShieldedInstanceConfigArgs>? = null, shieldedInstanceIntegrityPolicy: Output<ShieldedInstanceIntegrityPolicyArgs>? = null, shieldedVmConfig: Output<ShieldedVmConfigArgs>? = null, shieldedVmIntegrityPolicy: Output<ShieldedVmIntegrityPolicyArgs>? = null, sourceInstanceTemplate: Output<String>? = null, sourceMachineImage: Output<String>? = null, sourceMachineImageEncryptionKey: Output<CustomerEncryptionKeyArgs>? = null, tags: Output<TagsArgs>? = null, zone: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): InstanceArgs

Properties

Link copied to clipboard

Controls for advanced machine-related behavior features.

Link copied to clipboard
val canIpForward: Output<Boolean>? = null

Allows this instance to send and receive packets with non-matching destination or source IPs. This is required if you plan to use this instance to forward routes. For more information, see Enabling IP Forwarding .

Link copied to clipboard
val deletionProtection: Output<Boolean>? = null

Whether the resource should be protected against deletion.

Link copied to clipboard
val description: Output<String>? = null

An optional description of this resource. Provide this property when you create the resource.

Link copied to clipboard
val disks: Output<List<AttachedDiskArgs>>? = null

Array of disks associated with this instance. Persistent disks must be created before you can assign them.

Link copied to clipboard
val displayDevice: Output<DisplayDeviceArgs>? = null

Enables display device for the instance.

Link copied to clipboard
val eraseWindowsVssSignature: Output<Boolean>? = null

Specifies whether the disks restored from source snapshots or source machine image should erase Windows specific VSS signature.

Link copied to clipboard

A list of the type and count of accelerator cards attached to the instance.

Link copied to clipboard
val hostname: Output<String>? = null

Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is INSTANCE_NAME.c.PROJECT_ID.internal when using the global DNS, and INSTANCE_NAME.ZONE.c.PROJECT_ID.internal when using zonal DNS.

Link copied to clipboard

Encrypts suspended data for an instance with a customer-managed encryption key. If you are creating a new instance, this field will encrypt the local SSD and in-memory contents of the instance during the suspend operation. If you do not provide an encryption key when creating the instance, then the local SSD and in-memory contents will be encrypted using an automatically generated key during the suspend operation.

Link copied to clipboard

KeyRevocationActionType of the instance. Supported options are "STOP" and "NONE". The default value is "NONE" if it is not specified.

Link copied to clipboard
val labels: Output<Map<String, String>>? = null

Labels to apply to this instance. These can be later modified by the setLabels method.

Link copied to clipboard
val machineType: Output<String>? = null

Full or partial URL of the machine type resource to use for this instance, in the format: zones/zone/machineTypes/machine-type. This is provided by the client when the instance is created. For example, the following is a valid partial url to a predefined machine type: zones/us-central1-f/machineTypes/n1-standard-1 To create a custom machine type, provide a URL to a machine type in the following format, where CPUS is 1 or an even number up to 32 (2, 4, 6, ... 24, etc), and MEMORY is the total memory for this instance. Memory must be a multiple of 256 MB and must be supplied in MB (e.g. 5 GB of memory is 5120 MB): zones/zone/machineTypes/custom-CPUS-MEMORY For example: zones/us-central1-f/machineTypes/custom-4-5120 For a full list of restrictions, read the Specifications for custom machine types.

Link copied to clipboard
val metadata: Output<MetadataArgs>? = null

The metadata key/value pairs assigned to this instance. This includes custom metadata and predefined keys.

Link copied to clipboard
val minCpuPlatform: Output<String>? = null

Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge".

Link copied to clipboard
val name: Output<String>? = null

The name of the resource, provided by the client when initially creating the resource. The resource name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Link copied to clipboard

An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance.

Link copied to clipboard
val params: Output<InstanceParamsArgs>? = null

Input only. Input Only Additional params passed with the request, but not persisted as part of resource payload.

Link copied to clipboard

PostKeyRevocationActionType of the instance.

Link copied to clipboard
val preservedStateSizeGb: Output<String>? = null

Total amount of preserved state for SUSPENDED instances. Read-only in the api.

Link copied to clipboard

The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val requestId: Output<String>? = null

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).

Link copied to clipboard

Specifies the reservations that this instance can consume from.

Link copied to clipboard
val resourcePolicies: Output<List<String>>? = null

Resource policies applied to this instance.

Link copied to clipboard
val scheduling: Output<SchedulingArgs>? = null

Sets the scheduling options for this instance.

Link copied to clipboard
val secureTags: Output<List<String>>? = null

Input Only Secure tags to apply to this instance. These can be later modified by the update method. Maximum number of secure tags allowed is 50.

Link copied to clipboard

A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. See Service Accounts for more information.

Link copied to clipboard
val serviceIntegrationSpecs: Output<Map<String, String>>? = null

Mapping of user-defined keys to specifications for service integrations. Currently only a single key-value pair is supported.

Link copied to clipboard
Link copied to clipboard

Deprecating, please use shielded_instance_config.

Link copied to clipboard

Deprecating, please use shielded_instance_integrity_policy.

Link copied to clipboard
val sourceInstanceTemplate: Output<String>? = null

Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate

Link copied to clipboard
val sourceMachineImage: Output<String>? = null

Source machine image

Link copied to clipboard

Source machine image encryption key when creating an instance from a machine image.

Link copied to clipboard
val tags: Output<TagsArgs>? = null

Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035. Multiple tags can be specified via the 'tags.items' field.

Link copied to clipboard
val zone: Output<String>? = null