Class CfnTransitVirtualInterface
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.CfnTransitVirtualInterface
- All Implemented Interfaces:
IInspectable,ITransitVirtualInterfaceRef,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.945Z")
@Stability(Stable)
public class CfnTransitVirtualInterface
extends CfnResource
implements IInspectable, ITransitVirtualInterfaceRef, ITaggableV2
Resource Type definition for AWS::DirectConnect::TransitVirtualInterface.
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.*;
CfnTransitVirtualInterface cfnTransitVirtualInterface = CfnTransitVirtualInterface.Builder.create(this, "MyCfnTransitVirtualInterface")
.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")
.directConnectGatewayId("directConnectGatewayId")
.virtualInterfaceName("virtualInterfaceName")
.vlan(123)
// the properties below are optional
.allocateTransitVirtualInterfaceRoleArn("allocateTransitVirtualInterfaceRoleArn")
.enableSiteLink(false)
.mtu(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA key-value pair to associate with a resource.static final classA fluent builder forCfnTransitVirtualInterface.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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.directconnect.ITransitVirtualInterfaceRef
ITransitVirtualInterfaceRef.Jsii$Default, ITransitVirtualInterfaceRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTransitVirtualInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTransitVirtualInterface(software.amazon.jsii.JsiiObjectRef objRef) CfnTransitVirtualInterface(software.constructs.Construct scope, String id, CfnTransitVirtualInterfaceProps props) Create a newAWS::DirectConnect::TransitVirtualInterface. -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation.The ARN 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.getTags()The tags associated with the private virtual interface.A reference to a TransitVirtualInterface resource.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 CfnTransitVirtualInterface.renderProperties(Map<String, Object> props) voidThe Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation.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.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
-
CfnTransitVirtualInterface
protected CfnTransitVirtualInterface(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTransitVirtualInterface
protected CfnTransitVirtualInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTransitVirtualInterface
@Stability(Stable) public CfnTransitVirtualInterface(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransitVirtualInterfaceProps props) Create a newAWS::DirectConnect::TransitVirtualInterface.- 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
-
isCfnTransitVirtualInterface
Checks whether the given object is a CfnTransitVirtualInterface.- 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 ARN 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
-
getTransitVirtualInterfaceRef
A reference to a TransitVirtualInterface resource.- Specified by:
getTransitVirtualInterfaceRefin interfaceITransitVirtualInterfaceRef
-
getBgpPeers
The BGP peers configured on this virtual interface..Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTransitVirtualInterface.BgpPeerProperty> -
setBgpPeers
The BGP peers configured on this virtual interface.. -
setBgpPeers
The BGP peers configured on this virtual interface.. -
getConnectionId
-
setConnectionId
-
getDirectConnectGatewayId
-
setDirectConnectGatewayId
-
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. -
getAllocateTransitVirtualInterfaceRoleArn
The Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation. -
setAllocateTransitVirtualInterfaceRoleArn
The Amazon Resource Name (ARN) of the role to allocate the TransitVifAllocation. -
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.
-