Class CfnNetworkInsightsPath
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.ec2.CfnNetworkInsightsPath
- All Implemented Interfaces:
IInspectable,ITaggable,INetworkInsightsPathRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:37.103Z")
@Stability(Stable)
public class CfnNetworkInsightsPath
extends CfnResource
implements IInspectable, INetworkInsightsPathRef, ITaggable
Specifies a path to analyze for reachability.
VPC Reachability Analyzer enables you to analyze and debug network reachability between two resources in your virtual private cloud (VPC). For more information, see the Reachability Analyzer User Guide .
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.ec2.*;
CfnNetworkInsightsPath cfnNetworkInsightsPath = CfnNetworkInsightsPath.Builder.create(this, "MyCfnNetworkInsightsPath")
.protocol("protocol")
.source("source")
// the properties below are optional
.destination("destination")
.destinationIp("destinationIp")
.destinationPort(123)
.filterAtDestination(PathFilterProperty.builder()
.destinationAddress("destinationAddress")
.destinationPortRange(FilterPortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build())
.sourceAddress("sourceAddress")
.sourcePortRange(FilterPortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build())
.build())
.filterAtSource(PathFilterProperty.builder()
.destinationAddress("destinationAddress")
.destinationPortRange(FilterPortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build())
.sourceAddress("sourceAddress")
.sourcePortRange(FilterPortRangeProperty.builder()
.fromPort(123)
.toPort(123)
.build())
.build())
.sourceIp("sourceIp")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnNetworkInsightsPath.static interfaceDescribes a port range.static interfaceDescribes a set of filters for a path analysis.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.services.ec2.INetworkInsightsPathRef
INetworkInsightsPathRef.Jsii$Default, INetworkInsightsPathRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnNetworkInsightsPath(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnNetworkInsightsPath(software.amazon.jsii.JsiiObjectRef objRef) CfnNetworkInsightsPath(software.constructs.Construct scope, String id, CfnNetworkInsightsPathProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic INetworkInsightsPathReffromNetworkInsightsPathArn(software.constructs.Construct scope, String id, String arn) Creates a new INetworkInsightsPathRef from an ARN.static INetworkInsightsPathReffromNetworkInsightsPathId(software.constructs.Construct scope, String id, String networkInsightsPathId) Creates a new INetworkInsightsPathRef from a networkInsightsPathId.The time stamp when the path was created.The Amazon Resource Name (ARN) of the destination.The Amazon Resource Name (ARN) of the path.The ID of the path.The Amazon Resource Name (ARN) of the source.The ID or ARN of the destination.The IP address of the destination.The destination port.Scopes the analysis to network paths that match specific filters at the destination.Scopes the analysis to network paths that match specific filters at the source.A reference to a NetworkInsightsPath resource.The protocol.The ID or ARN of the source.The IP address of the source.getTags()Tag Manager which manages the tags for this resource.The tags to add to the path.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDestination(String value) The ID or ARN of the destination.voidsetDestinationIp(String value) The IP address of the destination.voidsetDestinationPort(Number value) The destination port.voidScopes the analysis to network paths that match specific filters at the destination.voidScopes the analysis to network paths that match specific filters at the destination.voidsetFilterAtSource(IResolvable value) Scopes the analysis to network paths that match specific filters at the source.voidScopes the analysis to network paths that match specific filters at the source.voidsetProtocol(String value) The protocol.voidThe ID or ARN of the source.voidsetSourceIp(String value) The IP address of the source.voidsetTagsRaw(List<CfnTag> value) The tags to add to the path.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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, overrideLogicalIdMethods 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
getNodeMethods 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
-
CfnNetworkInsightsPath
protected CfnNetworkInsightsPath(software.amazon.jsii.JsiiObjectRef objRef) -
CfnNetworkInsightsPath
protected CfnNetworkInsightsPath(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnNetworkInsightsPath
@Stability(Stable) public CfnNetworkInsightsPath(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnNetworkInsightsPathProps props) - 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
-
fromNetworkInsightsPathArn
@Stability(Stable) @NotNull public static INetworkInsightsPathRef fromNetworkInsightsPathArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new INetworkInsightsPathRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromNetworkInsightsPathId
@Stability(Stable) @NotNull public static INetworkInsightsPathRef fromNetworkInsightsPathId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String networkInsightsPathId) Creates a new INetworkInsightsPathRef from a networkInsightsPathId.- Parameters:
scope- This parameter is required.id- This parameter is required.networkInsightsPathId- 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.
-
getAttrCreatedDate
The time stamp when the path was created. -
getAttrDestinationArn
The Amazon Resource Name (ARN) of the destination. -
getAttrNetworkInsightsPathArn
The Amazon Resource Name (ARN) of the path. -
getAttrNetworkInsightsPathId
The ID of the path. -
getAttrSourceArn
The Amazon Resource Name (ARN) of the source. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getNetworkInsightsPathRef
A reference to a NetworkInsightsPath resource.- Specified by:
getNetworkInsightsPathRefin interfaceINetworkInsightsPathRef
-
getTags
Tag Manager which manages the tags for this resource. -
getProtocol
The protocol. -
setProtocol
The protocol. -
getSource
The ID or ARN of the source. -
setSource
The ID or ARN of the source. -
getDestination
The ID or ARN of the destination. -
setDestination
The ID or ARN of the destination. -
getDestinationIp
The IP address of the destination. -
setDestinationIp
The IP address of the destination. -
getDestinationPort
The destination port. -
setDestinationPort
The destination port. -
getFilterAtDestination
Scopes the analysis to network paths that match specific filters at the destination.Returns union: either
IResolvableorCfnNetworkInsightsPath.PathFilterProperty -
setFilterAtDestination
Scopes the analysis to network paths that match specific filters at the destination. -
setFilterAtDestination
@Stability(Stable) public void setFilterAtDestination(@Nullable CfnNetworkInsightsPath.PathFilterProperty value) Scopes the analysis to network paths that match specific filters at the destination. -
getFilterAtSource
Scopes the analysis to network paths that match specific filters at the source.Returns union: either
IResolvableorCfnNetworkInsightsPath.PathFilterProperty -
setFilterAtSource
Scopes the analysis to network paths that match specific filters at the source. -
setFilterAtSource
@Stability(Stable) public void setFilterAtSource(@Nullable CfnNetworkInsightsPath.PathFilterProperty value) Scopes the analysis to network paths that match specific filters at the source. -
getSourceIp
The IP address of the source. -
setSourceIp
The IP address of the source. -
getTagsRaw
The tags to add to the path. -
setTagsRaw
The tags to add to the path.
-