Interface CfnNetworkInsightsPathProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNetworkInsightsPathProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.125.0 (build fdbe357)",
date="2026-01-19T12:03:53.006Z")
@Stability(Stable)
public interface CfnNetworkInsightsPathProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnNetworkInsightsPath.
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.*;
CfnNetworkInsightsPathProps cfnNetworkInsightsPathProps = CfnNetworkInsightsPathProps.builder()
.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 TypeInterfaceDescriptionstatic final classA builder forCfnNetworkInsightsPathPropsstatic final classAn implementation forCfnNetworkInsightsPathProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe ID or ARN of the destination.default StringThe IP address of the destination.default NumberThe destination port.default ObjectScopes the analysis to network paths that match specific filters at the destination.default ObjectScopes the analysis to network paths that match specific filters at the source.The protocol.The ID or ARN of the source.default StringThe IP address of the source.getTags()The tags to add to the path.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProtocol
The protocol.- See Also:
-
getSource
The ID or ARN of the source.If the resource is in another account, you must specify an ARN.
- See Also:
-
getDestination
The ID or ARN of the destination.If the resource is in another account, you must specify an ARN.
- See Also:
-
getDestinationIp
The IP address of the destination.- See Also:
-
getDestinationPort
The destination port.- See Also:
-
getFilterAtDestination
Scopes the analysis to network paths that match specific filters at the destination.If you specify this parameter, you can't specify the parameter for the destination IP address.
Returns union: either
IResolvableorCfnNetworkInsightsPath.PathFilterProperty- See Also:
-
getFilterAtSource
Scopes the analysis to network paths that match specific filters at the source.If you specify this parameter, you can't specify the parameters for the source IP address or the destination port.
Returns union: either
IResolvableorCfnNetworkInsightsPath.PathFilterProperty- See Also:
-
getSourceIp
The IP address of the source.- See Also:
-
getTags
The tags to add to the path.- See Also:
-
builder
-