Class CfnNetworkInsightsPath
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::EC2::NetworkInsightsPath.
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();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnNetworkInsightsPath(Construct scope, String id, CfnNetworkInsightsPathProps props) Create a newAWS::EC2::NetworkInsightsPath.protectedCfnNetworkInsightsPath(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnNetworkInsightsPath(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe 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.The protocol.The ID or ARN of the source.The IP address of the source.getTags()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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnNetworkInsightsPathProps props) Create a newAWS::EC2::NetworkInsightsPath.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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
-
getTags
The tags to add to the path. -
getProtocol
The protocol. -
setProtocol
The protocol. -
getSource
The ID or ARN of the source.If the resource is in another account, you must specify an ARN.
-
setSource
The ID or ARN of the source.If the resource is in another account, you must specify an ARN.
-
getDestination
The ID or ARN of the destination.If the resource is in another account, you must specify an ARN.
-
setDestination
The ID or ARN of the destination.If the resource is in another account, you must specify an ARN.
-
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.If you specify this parameter, you can't specify the parameter for the destination IP address.
-
setFilterAtDestination
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.
-
setFilterAtDestination
@Stability(Stable) public void setFilterAtDestination(@Nullable CfnNetworkInsightsPath.PathFilterProperty value) 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.
-
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.
-
setFilterAtSource
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.
-
setFilterAtSource
@Stability(Stable) public void setFilterAtSource(@Nullable CfnNetworkInsightsPath.PathFilterProperty value) 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.
-
getSourceIp
The IP address of the source. -
setSourceIp
The IP address of the source.
-