Interface ComputeInstanceTemplateConfig
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,com.hashicorp.cdktf.TerraformMetaArguments
- All Known Implementing Classes:
ComputeInstanceTemplateConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-08-31T03:59:18.549Z") @Stability(Stable) public interface ComputeInstanceTemplateConfig extends software.amazon.jsii.JsiiSerializable, com.hashicorp.cdktf.TerraformMetaArguments
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classComputeInstanceTemplateConfig.BuilderA builder forComputeInstanceTemplateConfigstatic classComputeInstanceTemplateConfig.Jsii$ProxyAn implementation forComputeInstanceTemplateConfig
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ComputeInstanceTemplateConfig.Builderbuilder()default ComputeInstanceTemplateAdvancedMachineFeaturesgetAdvancedMachineFeatures()advanced_machine_features block.default ObjectgetCanIpForward()Whether to allow sending and receiving of packets with non-matching source or destination IPs.default ComputeInstanceTemplateConfidentialInstanceConfiggetConfidentialInstanceConfig()confidential_instance_config block.default StringgetDescription()A brief description of this resource.ObjectgetDisk()disk block.default ObjectgetGuestAccelerator()guest_accelerator block.default StringgetId()Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#id ComputeInstanceTemplate#id}.default StringgetInstanceDescription()A description of the instance.default Map<String,String>getLabels()A set of key/value label pairs to assign to instances created from this template.StringgetMachineType()The machine type to create.default Map<String,String>getMetadata()Metadata key/value pairs to make available from within instances created from this template.default StringgetMetadataStartupScript()An alternative to using the startup-script metadata key, mostly to match the compute_instance resource.default StringgetMinCpuPlatform()Specifies a minimum CPU platform.default StringgetName()The name of the instance template.default StringgetNamePrefix()Creates a unique name beginning with the specified prefix.default ObjectgetNetworkInterface()network_interface block.default ComputeInstanceTemplateNetworkPerformanceConfiggetNetworkPerformanceConfig()network_performance_config block.default StringgetProject()The ID of the project in which the resource belongs.default StringgetRegion()An instance template is a global resource that is not bound to a zone or a region.default ComputeInstanceTemplateReservationAffinitygetReservationAffinity()reservation_affinity block.default Map<String,String>getResourceManagerTags()A map of resource manager tags.default List<String>getResourcePolicies()A list of self_links of resource policies to attach to the instance.default ComputeInstanceTemplateSchedulinggetScheduling()scheduling block.default ComputeInstanceTemplateServiceAccountgetServiceAccount()service_account block.default ComputeInstanceTemplateShieldedInstanceConfiggetShieldedInstanceConfig()shielded_instance_config block.default List<String>getTags()Tags to attach to the instance.default ComputeInstanceTemplateTimeoutsgetTimeouts()timeouts block.
-
-
-
Method Detail
-
getDisk
@Stability(Stable) @NotNull Object getDisk()
disk block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#disk ComputeInstanceTemplate#disk}
-
getMachineType
@Stability(Stable) @NotNull String getMachineType()
The machine type to create.To create a machine with a custom type (such as extended memory), format the value like custom-VCPUS-MEM_IN_MB like custom-6-20480 for 6 vCPU and 20GB of RAM. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#machine_type ComputeInstanceTemplate#machine_type}
-
getAdvancedMachineFeatures
@Stability(Stable) @Nullable default ComputeInstanceTemplateAdvancedMachineFeatures getAdvancedMachineFeatures()
advanced_machine_features block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#advanced_machine_features ComputeInstanceTemplate#advanced_machine_features}
-
getCanIpForward
@Stability(Stable) @Nullable default Object getCanIpForward()
Whether to allow sending and receiving of packets with non-matching source or destination IPs. This defaults to false.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#can_ip_forward ComputeInstanceTemplate#can_ip_forward}
-
getConfidentialInstanceConfig
@Stability(Stable) @Nullable default ComputeInstanceTemplateConfidentialInstanceConfig getConfidentialInstanceConfig()
confidential_instance_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#confidential_instance_config ComputeInstanceTemplate#confidential_instance_config}
-
getDescription
@Stability(Stable) @Nullable default String getDescription()
A brief description of this resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#description ComputeInstanceTemplate#description}
-
getGuestAccelerator
@Stability(Stable) @Nullable default Object getGuestAccelerator()
guest_accelerator block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#guest_accelerator ComputeInstanceTemplate#guest_accelerator}
-
getId
@Stability(Stable) @Nullable default String getId()
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#id ComputeInstanceTemplate#id}.Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
-
getInstanceDescription
@Stability(Stable) @Nullable default String getInstanceDescription()
A description of the instance.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#instance_description ComputeInstanceTemplate#instance_description}
-
getLabels
@Stability(Stable) @Nullable default Map<String,String> getLabels()
A set of key/value label pairs to assign to instances created from this template.**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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#labels ComputeInstanceTemplate#labels}
-
getMetadata
@Stability(Stable) @Nullable default Map<String,String> getMetadata()
Metadata key/value pairs to make available from within instances created from this template.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#metadata ComputeInstanceTemplate#metadata}
-
getMetadataStartupScript
@Stability(Stable) @Nullable default String getMetadataStartupScript()
An alternative to using the startup-script metadata key, mostly to match the compute_instance resource.This replaces the startup-script metadata key on the created instance and thus the two mechanisms are not allowed to be used simultaneously. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#metadata_startup_script ComputeInstanceTemplate#metadata_startup_script}
-
getMinCpuPlatform
@Stability(Stable) @Nullable default String getMinCpuPlatform()
Specifies a minimum CPU platform.Applicable values are the friendly names of CPU platforms, such as Intel Haswell or Intel Skylake. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#min_cpu_platform ComputeInstanceTemplate#min_cpu_platform}
-
getName
@Stability(Stable) @Nullable default String getName()
The name of the instance template. If you leave this blank, Terraform will auto-generate a unique name.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#name ComputeInstanceTemplate#name}
-
getNamePrefix
@Stability(Stable) @Nullable default String getNamePrefix()
Creates a unique name beginning with the specified prefix. Conflicts with name.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#name_prefix ComputeInstanceTemplate#name_prefix}
-
getNetworkInterface
@Stability(Stable) @Nullable default Object getNetworkInterface()
network_interface block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#network_interface ComputeInstanceTemplate#network_interface}
-
getNetworkPerformanceConfig
@Stability(Stable) @Nullable default ComputeInstanceTemplateNetworkPerformanceConfig getNetworkPerformanceConfig()
network_performance_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#network_performance_config ComputeInstanceTemplate#network_performance_config}
-
getProject
@Stability(Stable) @Nullable default String getProject()
The ID of the project in which the resource belongs.If it is not provided, the provider project is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#project ComputeInstanceTemplate#project}
-
getRegion
@Stability(Stable) @Nullable default String getRegion()
An instance template is a global resource that is not bound to a zone or a region.However, you can still specify some regional resources in an instance template, which restricts the template to the region where that resource resides. For example, a custom subnetwork resource is tied to a specific region. Defaults to the region of the Provider if no value is given. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#region ComputeInstanceTemplate#region}
-
getReservationAffinity
@Stability(Stable) @Nullable default ComputeInstanceTemplateReservationAffinity getReservationAffinity()
reservation_affinity block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#reservation_affinity ComputeInstanceTemplate#reservation_affinity}
-
getResourceManagerTags
@Stability(Stable) @Nullable default Map<String,String> getResourceManagerTags()
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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#resource_manager_tags ComputeInstanceTemplate#resource_manager_tags}
-
getResourcePolicies
@Stability(Stable) @Nullable default List<String> getResourcePolicies()
A list of self_links of resource policies to attach to the instance.Currently a max of 1 resource policy is supported. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#resource_policies ComputeInstanceTemplate#resource_policies}
-
getScheduling
@Stability(Stable) @Nullable default ComputeInstanceTemplateScheduling getScheduling()
scheduling block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#scheduling ComputeInstanceTemplate#scheduling}
-
getServiceAccount
@Stability(Stable) @Nullable default ComputeInstanceTemplateServiceAccount getServiceAccount()
service_account block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#service_account ComputeInstanceTemplate#service_account}
-
getShieldedInstanceConfig
@Stability(Stable) @Nullable default ComputeInstanceTemplateShieldedInstanceConfig getShieldedInstanceConfig()
shielded_instance_config block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#shielded_instance_config ComputeInstanceTemplate#shielded_instance_config}
-
getTags
@Stability(Stable) @Nullable default List<String> getTags()
Tags to attach to the instance.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#tags ComputeInstanceTemplate#tags}
-
getTimeouts
@Stability(Stable) @Nullable default ComputeInstanceTemplateTimeouts getTimeouts()
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_instance_template#timeouts ComputeInstanceTemplate#timeouts}
-
builder
@Stability(Stable) static ComputeInstanceTemplateConfig.Builder builder()
-
-