Class CfnPublicVirtualInterface
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.CfnPublicVirtualInterface
- All Implemented Interfaces:
IInspectable,IPublicVirtualInterfaceRef,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.943Z")
@Stability(Stable)
public class CfnPublicVirtualInterface
extends CfnResource
implements IInspectable, IPublicVirtualInterfaceRef, ITaggableV2
Resource Type definition for AWS::DirectConnect::PublicVirtualInterface.
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.*;
CfnPublicVirtualInterface cfnPublicVirtualInterface = CfnPublicVirtualInterface.Builder.create(this, "MyCfnPublicVirtualInterface")
.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
.allocatePublicVirtualInterfaceRoleArn("allocatePublicVirtualInterfaceRoleArn")
.routeFilterPrefixes(List.of("routeFilterPrefixes"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInformation about a BGP peer.static final classA fluent builder forCfnPublicVirtualInterface.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.IPublicVirtualInterfaceRef
IPublicVirtualInterfaceRef.Jsii$Default, IPublicVirtualInterfaceRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnPublicVirtualInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPublicVirtualInterface(software.amazon.jsii.JsiiObjectRef objRef) CfnPublicVirtualInterface(software.constructs.Construct scope, String id, CfnPublicVirtualInterfaceProps props) Create a newAWS::DirectConnect::PublicVirtualInterface. -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the role to allocate the public virtual interface.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.A reference to a PublicVirtualInterface resource.The routes to be advertised to the AWS network in this region.getTags()The tags associated with the public virtual interface.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 CfnPublicVirtualInterface.renderProperties(Map<String, Object> props) voidThe Amazon Resource Name (ARN) of the role to allocate the public 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) voidsetRouteFilterPrefixes(List<String> value) The routes to be advertised to the AWS network in this region.voidThe tags associated with the public 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
-
CfnPublicVirtualInterface
protected CfnPublicVirtualInterface(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPublicVirtualInterface
protected CfnPublicVirtualInterface(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPublicVirtualInterface
@Stability(Stable) public CfnPublicVirtualInterface(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPublicVirtualInterfaceProps props) Create a newAWS::DirectConnect::PublicVirtualInterface.- 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
-
isCfnPublicVirtualInterface
Checks whether the given object is a CfnPublicVirtualInterface.- 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
-
getPublicVirtualInterfaceRef
A reference to a PublicVirtualInterface resource.- Specified by:
getPublicVirtualInterfaceRefin interfaceIPublicVirtualInterfaceRef
-
getBgpPeers
The BGP peers configured on this virtual interface.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnPublicVirtualInterface.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. -
getAllocatePublicVirtualInterfaceRoleArn
The Amazon Resource Name (ARN) of the role to allocate the public virtual interface. -
setAllocatePublicVirtualInterfaceRoleArn
The Amazon Resource Name (ARN) of the role to allocate the public virtual interface. -
getRouteFilterPrefixes
The routes to be advertised to the AWS network in this region. -
setRouteFilterPrefixes
The routes to be advertised to the AWS network in this region. -
getTags
The tags associated with the public virtual interface. -
setTags
The tags associated with the public virtual interface.
-