Class ComputeInterconnectAttachment.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_interconnect_attachment.ComputeInterconnectAttachment.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeInterconnectAttachment>
- Enclosing class:
- ComputeInterconnectAttachment
@Stability(Stable) public static final class ComputeInterconnectAttachment.Builder extends Object implements software.amazon.jsii.Builder<ComputeInterconnectAttachment>
A fluent builder forComputeInterconnectAttachment.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputeInterconnectAttachment.BuilderadminEnabled(com.hashicorp.cdktf.IResolvable adminEnabled)Whether the VLAN attachment is enabled or disabled.ComputeInterconnectAttachment.BuilderadminEnabled(Boolean adminEnabled)Whether the VLAN attachment is enabled or disabled.ComputeInterconnectAttachment.Builderbandwidth(String bandwidth)Provisioned bandwidth capacity for the interconnect attachment.ComputeInterconnectAttachmentbuild()ComputeInterconnectAttachment.BuildercandidateSubnets(List<String> candidateSubnets)Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment.ComputeInterconnectAttachment.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)ComputeInterconnectAttachment.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)ComputeInterconnectAttachment.Buildercount(com.hashicorp.cdktf.TerraformCount count)ComputeInterconnectAttachment.Buildercount(Number count)static ComputeInterconnectAttachment.Buildercreate(software.constructs.Construct scope, String id)ComputeInterconnectAttachment.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)ComputeInterconnectAttachment.Builderdescription(String description)An optional description of this resource.ComputeInterconnectAttachment.BuilderedgeAvailabilityDomain(String edgeAvailabilityDomain)Desired availability domain for the attachment.ComputeInterconnectAttachment.Builderencryption(String encryption)Indicates the user-supplied encryption option of this interconnect attachment.ComputeInterconnectAttachment.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)ComputeInterconnectAttachment.Builderid(String id)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#id ComputeInterconnectAttachment#id}.ComputeInterconnectAttachment.Builderinterconnect(String interconnect)URL of the underlying Interconnect object that this attachment's traffic will traverse through.ComputeInterconnectAttachment.BuilderipsecInternalAddresses(List<String> ipsecInternalAddresses)URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC.ComputeInterconnectAttachment.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)ComputeInterconnectAttachment.Buildermtu(String mtu)Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment.ComputeInterconnectAttachment.Buildername(String name)Name of the resource.ComputeInterconnectAttachment.Builderproject(String project)Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#project ComputeInterconnectAttachment#project}.ComputeInterconnectAttachment.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)ComputeInterconnectAttachment.Builderprovisioners(List<? extends Object> provisioners)ComputeInterconnectAttachment.Builderregion(String region)Region where the regional interconnect attachment resides.ComputeInterconnectAttachment.Builderrouter(String router)URL of the cloud router to be used for dynamic routing.ComputeInterconnectAttachment.BuilderstackType(String stackType)The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not.ComputeInterconnectAttachment.BuildersubnetLength(Number subnetLength)Length of the IPv4 subnet mask.ComputeInterconnectAttachment.Buildertimeouts(ComputeInterconnectAttachmentTimeouts timeouts)timeouts block.ComputeInterconnectAttachment.Buildertype(String type)The type of InterconnectAttachment you wish to create.ComputeInterconnectAttachment.BuildervlanTag8021Q(Number vlanTag8021Q)The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ComputeInterconnectAttachment.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
ComputeInterconnectAttachment.Builder.
-
connection
@Stability(Experimental) public ComputeInterconnectAttachment.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public ComputeInterconnectAttachment.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeInterconnectAttachment.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public ComputeInterconnectAttachment.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public ComputeInterconnectAttachment.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public ComputeInterconnectAttachment.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public ComputeInterconnectAttachment.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public ComputeInterconnectAttachment.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public ComputeInterconnectAttachment.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public ComputeInterconnectAttachment.Builder name(String name)
Name of the resource.Provided by the client when the resource is created. The 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](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' 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. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#name ComputeInterconnectAttachment#name}
- Parameters:
name- Name of the resource. This parameter is required.- Returns:
this
-
router
@Stability(Stable) public ComputeInterconnectAttachment.Builder router(String router)
URL of the cloud router to be used for dynamic routing.This router must be in the same region as this InterconnectAttachment. The InterconnectAttachment will automatically connect the Interconnect to the network & region within which the Cloud Router is configured. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#router ComputeInterconnectAttachment#router}
- Parameters:
router- URL of the cloud router to be used for dynamic routing. This parameter is required.- Returns:
this
-
adminEnabled
@Stability(Stable) public ComputeInterconnectAttachment.Builder adminEnabled(Boolean adminEnabled)
Whether the VLAN attachment is enabled or disabled. When using PARTNER type this will Pre-Activate the interconnect attachment.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#admin_enabled ComputeInterconnectAttachment#admin_enabled}
- Parameters:
adminEnabled- Whether the VLAN attachment is enabled or disabled. When using PARTNER type this will Pre-Activate the interconnect attachment. This parameter is required.- Returns:
this
-
adminEnabled
@Stability(Stable) public ComputeInterconnectAttachment.Builder adminEnabled(com.hashicorp.cdktf.IResolvable adminEnabled)
Whether the VLAN attachment is enabled or disabled. When using PARTNER type this will Pre-Activate the interconnect attachment.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#admin_enabled ComputeInterconnectAttachment#admin_enabled}
- Parameters:
adminEnabled- Whether the VLAN attachment is enabled or disabled. When using PARTNER type this will Pre-Activate the interconnect attachment. This parameter is required.- Returns:
this
-
bandwidth
@Stability(Stable) public ComputeInterconnectAttachment.Builder bandwidth(String bandwidth)
Provisioned bandwidth capacity for the interconnect attachment.For attachments of type DEDICATED, the user can set the bandwidth. For attachments of type PARTNER, the Google Partner that is operating the interconnect must set the bandwidth. Output only for PARTNER type, mutable for PARTNER_PROVIDER and DEDICATED, Defaults to BPS_10G Possible values: ["BPS_50M", "BPS_100M", "BPS_200M", "BPS_300M", "BPS_400M", "BPS_500M", "BPS_1G", "BPS_2G", "BPS_5G", "BPS_10G", "BPS_20G", "BPS_50G"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#bandwidth ComputeInterconnectAttachment#bandwidth}
- Parameters:
bandwidth- Provisioned bandwidth capacity for the interconnect attachment. This parameter is required.- Returns:
this
-
candidateSubnets
@Stability(Stable) public ComputeInterconnectAttachment.Builder candidateSubnets(List<String> candidateSubnets)
Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment.All prefixes must be within link-local address space (169.254.0.0/16) and must be /29 or shorter (/28, /27, etc). Google will attempt to select an unused /29 from the supplied candidate prefix(es). The request will fail if all possible /29s are in use on Google's edge. If not supplied, Google will randomly select an unused /29 from all of link-local space. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#candidate_subnets ComputeInterconnectAttachment#candidate_subnets}
- Parameters:
candidateSubnets- Up to 16 candidate prefixes that can be used to restrict the allocation of cloudRouterIpAddress and customerRouterIpAddress for this attachment. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public ComputeInterconnectAttachment.Builder description(String description)
An optional description of this resource.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#description ComputeInterconnectAttachment#description}
- Parameters:
description- An optional description of this resource. This parameter is required.- Returns:
this
-
edgeAvailabilityDomain
@Stability(Stable) public ComputeInterconnectAttachment.Builder edgeAvailabilityDomain(String edgeAvailabilityDomain)
Desired availability domain for the attachment.Only available for type PARTNER, at creation time. For improved reliability, customers should configure a pair of attachments with one per availability domain. The selected availability domain will be provided to the Partner via the pairing key so that the provisioned circuit will lie in the specified domain. If not specified, the value will default to AVAILABILITY_DOMAIN_ANY. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#edge_availability_domain ComputeInterconnectAttachment#edge_availability_domain}
- Parameters:
edgeAvailabilityDomain- Desired availability domain for the attachment. This parameter is required.- Returns:
this
-
encryption
@Stability(Stable) public ComputeInterconnectAttachment.Builder encryption(String encryption)
Indicates the user-supplied encryption option of this interconnect attachment.Can only be specified at attachment creation for PARTNER or DEDICATED attachments. * NONE - This is the default value, which means that the VLAN attachment carries unencrypted traffic. VMs are able to send traffic to, or receive traffic from, such a VLAN attachment. * IPSEC - The VLAN attachment carries only encrypted traffic that is encrypted by an IPsec device, such as an HA VPN gateway or third-party IPsec VPN. VMs cannot directly send traffic to, or receive traffic from, such a VLAN attachment. To use HA VPN over Cloud Interconnect, the VLAN attachment must be created with this option. Default value: "NONE" Possible values: ["NONE", "IPSEC"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#encryption ComputeInterconnectAttachment#encryption}
- Parameters:
encryption- Indicates the user-supplied encryption option of this interconnect attachment. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public ComputeInterconnectAttachment.Builder id(String id)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#id ComputeInterconnectAttachment#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.
- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#id ComputeInterconnectAttachment#id}. This parameter is required.- Returns:
this
-
interconnect
@Stability(Stable) public ComputeInterconnectAttachment.Builder interconnect(String interconnect)
URL of the underlying Interconnect object that this attachment's traffic will traverse through.Required if type is DEDICATED, must not be set if type is PARTNER. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#interconnect ComputeInterconnectAttachment#interconnect}
- Parameters:
interconnect- URL of the underlying Interconnect object that this attachment's traffic will traverse through. This parameter is required.- Returns:
this
-
ipsecInternalAddresses
@Stability(Stable) public ComputeInterconnectAttachment.Builder ipsecInternalAddresses(List<String> ipsecInternalAddresses)
URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC.The addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway over the interconnect attachment, if the attachment is configured to use an RFC 1918 IP address, then the VPN gateway's IP address will be allocated from the IP address range specified here. For example, if the HA VPN gateway's interface 0 is paired to this interconnect attachment, then an RFC 1918 IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this interconnect attachment. If this field is not specified for interconnect attachment that has encryption option as IPSEC, later on when creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's IP address will be allocated from regional external IP address pool. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#ipsec_internal_addresses ComputeInterconnectAttachment#ipsec_internal_addresses}
- Parameters:
ipsecInternalAddresses- URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. This parameter is required.- Returns:
this
-
mtu
@Stability(Stable) public ComputeInterconnectAttachment.Builder mtu(String mtu)
Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment.Currently, only 1440 and 1500 are allowed. If not specified, the value will default to 1440. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#mtu ComputeInterconnectAttachment#mtu}
- Parameters:
mtu- Maximum Transmission Unit (MTU), in bytes, of packets passing through this interconnect attachment. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public ComputeInterconnectAttachment.Builder project(String project)
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#project ComputeInterconnectAttachment#project}.- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#project ComputeInterconnectAttachment#project}. This parameter is required.- Returns:
this
-
region
@Stability(Stable) public ComputeInterconnectAttachment.Builder region(String region)
Region where the regional interconnect attachment resides.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#region ComputeInterconnectAttachment#region}
- Parameters:
region- Region where the regional interconnect attachment resides. This parameter is required.- Returns:
this
-
stackType
@Stability(Stable) public ComputeInterconnectAttachment.Builder stackType(String stackType)
The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not.If not specified, IPV4_ONLY will be used. This field can be both set at interconnect attachments creation and update interconnect attachment operations. Possible values: ["IPV4_IPV6", "IPV4_ONLY"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#stack_type ComputeInterconnectAttachment#stack_type}
- Parameters:
stackType- The stack type for this interconnect attachment to identify whether the IPv6 feature is enabled or not. This parameter is required.- Returns:
this
-
subnetLength
@Stability(Stable) public ComputeInterconnectAttachment.Builder subnetLength(Number subnetLength)
Length of the IPv4 subnet mask.Allowed values: 29 (default), 30. The default value is 29, except for Cross-Cloud Interconnect connections that use an InterconnectRemoteLocation with a constraints.subnetLengthRange.min equal to 30. For example, connections that use an Azure remote location fall into this category. In these cases, the default value is 30, and requesting 29 returns an error. Where both 29 and 30 are allowed, 29 is preferred, because it gives Google Cloud Support more debugging visibility. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#subnet_length ComputeInterconnectAttachment#subnet_length}
- Parameters:
subnetLength- Length of the IPv4 subnet mask. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public ComputeInterconnectAttachment.Builder timeouts(ComputeInterconnectAttachmentTimeouts timeouts)
timeouts block.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#timeouts ComputeInterconnectAttachment#timeouts}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
type
@Stability(Stable) public ComputeInterconnectAttachment.Builder type(String type)
The type of InterconnectAttachment you wish to create. Defaults to DEDICATED. Possible values: ["DEDICATED", "PARTNER", "PARTNER_PROVIDER"].Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#type ComputeInterconnectAttachment#type}
- Parameters:
type- The type of InterconnectAttachment you wish to create. Defaults to DEDICATED. Possible values: ["DEDICATED", "PARTNER", "PARTNER_PROVIDER"]. This parameter is required.- Returns:
this
-
vlanTag8021Q
@Stability(Stable) public ComputeInterconnectAttachment.Builder vlanTag8021Q(Number vlanTag8021Q)
The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. When using PARTNER type this will be managed upstream.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_interconnect_attachment#vlan_tag8021q ComputeInterconnectAttachment#vlan_tag8021q}
- Parameters:
vlanTag8021Q- The IEEE 802.1Q VLAN tag for this attachment, in the range 2-4094. When using PARTNER type this will be managed upstream. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ComputeInterconnectAttachment build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeInterconnectAttachment>- Returns:
- a newly built instance of
ComputeInterconnectAttachment.
-
-