Class CfnPublicVirtualInterface.Builder
java.lang.Object
software.amazon.awscdk.services.directconnect.CfnPublicVirtualInterface.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPublicVirtualInterface>
- Enclosing class:
CfnPublicVirtualInterface
@Stability(Stable)
public static final class CfnPublicVirtualInterface.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPublicVirtualInterface>
A fluent builder for
CfnPublicVirtualInterface.-
Method Summary
Modifier and TypeMethodDescriptionallocatePublicVirtualInterfaceRoleArn(String allocatePublicVirtualInterfaceRoleArn) The Amazon Resource Name (ARN) of the role to allocate the public virtual interface.The BGP peers configured on this virtual interface.bgpPeers(IResolvable bgpPeers) The BGP peers configured on this virtual interface.build()connectionId(String connectionId) connectionId(IConnectionRef connectionId) connectionId(ILagRef connectionId) routeFilterPrefixes(List<String> routeFilterPrefixes) The routes to be advertised to the AWS network in this region.The tags associated with the public virtual interface.virtualInterfaceName(String virtualInterfaceName) The name of the virtual interface assigned by the customer network.The ID of the VLAN.
-
Method Details
-
create
@Stability(Stable) public static CfnPublicVirtualInterface.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnPublicVirtualInterface.Builder.
-
bgpPeers
The BGP peers configured on this virtual interface.- Parameters:
bgpPeers- The BGP peers configured on this virtual interface. This parameter is required.- Returns:
this- See Also:
-
bgpPeers
@Stability(Stable) public CfnPublicVirtualInterface.Builder bgpPeers(List<? extends Object> bgpPeers) The BGP peers configured on this virtual interface.- Parameters:
bgpPeers- The BGP peers configured on this virtual interface. This parameter is required.- Returns:
this- See Also:
-
connectionId
- Parameters:
connectionId- This parameter is required.- Returns:
this- See Also:
-
connectionId
@Stability(Stable) public CfnPublicVirtualInterface.Builder connectionId(IConnectionRef connectionId) - Parameters:
connectionId- This parameter is required.- Returns:
this- See Also:
-
connectionId
- Parameters:
connectionId- This parameter is required.- Returns:
this- See Also:
-
virtualInterfaceName
@Stability(Stable) public CfnPublicVirtualInterface.Builder virtualInterfaceName(String virtualInterfaceName) The name of the virtual interface assigned by the customer network.The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
- Parameters:
virtualInterfaceName- The name of the virtual interface assigned by the customer network. This parameter is required.- Returns:
this- See Also:
-
vlan
The ID of the VLAN.- Parameters:
vlan- The ID of the VLAN. This parameter is required.- Returns:
this- See Also:
-
allocatePublicVirtualInterfaceRoleArn
@Stability(Stable) public CfnPublicVirtualInterface.Builder allocatePublicVirtualInterfaceRoleArn(String allocatePublicVirtualInterfaceRoleArn) The Amazon Resource Name (ARN) of the role to allocate the public virtual interface.Needs directconnect:AllocatePublicVirtualInterface permissions and tag permissions if applicable.
- Parameters:
allocatePublicVirtualInterfaceRoleArn- The Amazon Resource Name (ARN) of the role to allocate the public virtual interface. This parameter is required.- Returns:
this- See Also:
-
routeFilterPrefixes
@Stability(Stable) public CfnPublicVirtualInterface.Builder routeFilterPrefixes(List<String> routeFilterPrefixes) The routes to be advertised to the AWS network in this region.- Parameters:
routeFilterPrefixes- The routes to be advertised to the AWS network in this region. This parameter is required.- Returns:
this- See Also:
-
tags
The tags associated with the public virtual interface.- Parameters:
tags- The tags associated with the public virtual interface. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPublicVirtualInterface>- Returns:
- a newly built instance of
CfnPublicVirtualInterface.
-