Class CfnPrivateVirtualInterface
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.directconnect.CfnPrivateVirtualInterface
- All Implemented Interfaces:
IInspectable,IPrivateVirtualInterfaceRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:41.941Z")
@Stability(Stable)
public class CfnPrivateVirtualInterface
extends CfnResource
implements IInspectable, IPrivateVirtualInterfaceRef, ITaggableV2
Resource Type definition for AWS::DirectConnect::PrivateVirtualInterface.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.directconnect.*;
CfnPrivateVirtualInterface cfnPrivateVirtualInterface = CfnPrivateVirtualInterface.Builder.create(this, "MyCfnPrivateVirtualInterface")
.bgpPeers(List.of(BgpPeerProperty.builder()
.addressFamily("addressFamily")
.asn("asn")
// the properties below are optional
.amazonAddress("amazonAddress")
.authKey("authKey")
.bgpPeerId("bgpPeerId")
.customerAddress("customerAddress")
.build()))
.connectionId("connectionId")
.virtualInterfaceName("virtualInterfaceName")
.vlan(123)
// the properties below are optional
.allocatePrivateVirtualInterfaceRoleArn("allocatePrivateVirtualInterfaceRoleArn")
.directConnectGatewayId("directConnectGatewayId")
.enableSiteLink(false)
.mtu(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.virtualGatewayId("virtualGatewayId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInformation about a BGP peer.static final classA fluent builder forCfnPrivateVirtualInterface.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.directconnect.IPrivateVirtualInterfaceRef
IPrivateVirtualInterfaceRef.Jsii$Default, IPrivateVirtualInterfaceRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPrivateVirtualInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPrivateVirtualInterface(software.amazon.jsii.JsiiObjectRef objRef) CfnPrivateVirtualInterface(software.constructs.Construct scope, String id, CfnPrivateVirtualInterfaceProps props) Create a newAWS::DirectConnect::PrivateVirtualInterface. -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the role to allocate the private virtual interface.The ID of the virtual interface.The ID of the virtual interface.The BGP peers configured on this virtual interface.Tag Manager which manages the tags for this resource.Indicates whether to enable or disable SiteLink.getMtu()The maximum transmission unit (MTU), in bytes.A reference to a PrivateVirtualInterface resource.getTags()The tags associated with the private virtual interface.The ID or ARN of the virtual private gateway.The name of the virtual interface assigned by the customer network.getVlan()The ID of the VLAN.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnPrivateVirtualInterface.renderProperties(Map<String, Object> props) voidThe Amazon Resource Name (ARN) of the role to allocate the private virtual interface.voidsetBgpPeers(List<Object> value) The BGP peers configured on this virtual interface.voidsetBgpPeers(IResolvable value) The BGP peers configured on this virtual interface.voidsetConnectionId(String value) voidsetDirectConnectGatewayId(String value) voidsetEnableSiteLink(Boolean value) Indicates whether to enable or disable SiteLink.voidsetEnableSiteLink(IResolvable value) Indicates whether to enable or disable SiteLink.voidThe maximum transmission unit (MTU), in bytes.voidThe tags associated with the private virtual interface.voidsetVirtualGatewayId(String value) The ID or ARN of the virtual private gateway.voidsetVirtualInterfaceName(String value) The name of the virtual interface assigned by the customer network.voidThe ID of the VLAN.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPrivateVirtualInterface
protected CfnPrivateVirtualInterface(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPrivateVirtualInterface
protected CfnPrivateVirtualInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPrivateVirtualInterface
@Stability(Stable) public CfnPrivateVirtualInterface(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPrivateVirtualInterfaceProps props) Create a newAWS::DirectConnect::PrivateVirtualInterface.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnPrivateVirtualInterface
Checks whether the given object is a CfnPrivateVirtualInterface.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrVirtualInterfaceArn
The ID of the virtual interface. -
getAttrVirtualInterfaceId
The ID of the virtual interface. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPrivateVirtualInterfaceRef
A reference to a PrivateVirtualInterface resource.- Specified by:
getPrivateVirtualInterfaceRefin interfaceIPrivateVirtualInterfaceRef
-
getBgpPeers
The BGP peers configured on this virtual interface.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPrivateVirtualInterface.BgpPeerProperty> -
setBgpPeers
The BGP peers configured on this virtual interface. -
setBgpPeers
The BGP peers configured on this virtual interface. -
getConnectionId
-
setConnectionId
-
getVirtualInterfaceName
The name of the virtual interface assigned by the customer network. -
setVirtualInterfaceName
The name of the virtual interface assigned by the customer network. -
getVlan
The ID of the VLAN. -
setVlan
The ID of the VLAN. -
getAllocatePrivateVirtualInterfaceRoleArn
The Amazon Resource Name (ARN) of the role to allocate the private virtual interface. -
setAllocatePrivateVirtualInterfaceRoleArn
The Amazon Resource Name (ARN) of the role to allocate the private virtual interface. -
getDirectConnectGatewayId
-
setDirectConnectGatewayId
-
getEnableSiteLink
Indicates whether to enable or disable SiteLink.Returns union: either
BooleanorIResolvable -
setEnableSiteLink
Indicates whether to enable or disable SiteLink. -
setEnableSiteLink
Indicates whether to enable or disable SiteLink. -
getMtu
The maximum transmission unit (MTU), in bytes. -
setMtu
The maximum transmission unit (MTU), in bytes. -
getTags
The tags associated with the private virtual interface. -
setTags
The tags associated with the private virtual interface. -
getVirtualGatewayId
The ID or ARN of the virtual private gateway. -
setVirtualGatewayId
The ID or ARN of the virtual private gateway.
-