Class CfnNetworkInsightsPath

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.863Z") @Stability(Stable) public class CfnNetworkInsightsPath extends CfnResource implements IInspectable
A CloudFormation 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();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::EC2::NetworkInsightsPath.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedDate

      @Stability(Stable) @NotNull public String getAttrCreatedDate()
      The time stamp when the path was created.
    • getAttrDestinationArn

      @Stability(Stable) @NotNull public String getAttrDestinationArn()
      The Amazon Resource Name (ARN) of the destination.
    • getAttrNetworkInsightsPathArn

      @Stability(Stable) @NotNull public String getAttrNetworkInsightsPathArn()
      The Amazon Resource Name (ARN) of the path.
    • getAttrNetworkInsightsPathId

      @Stability(Stable) @NotNull public String getAttrNetworkInsightsPathId()
      The ID of the path.
    • getAttrSourceArn

      @Stability(Stable) @NotNull public String getAttrSourceArn()
      The Amazon Resource Name (ARN) of the source.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      The tags to add to the path.
    • getProtocol

      @Stability(Stable) @NotNull public String getProtocol()
      The protocol.
    • setProtocol

      @Stability(Stable) public void setProtocol(@NotNull String value)
      The protocol.
    • getSource

      @Stability(Stable) @NotNull public String getSource()
      The ID or ARN of the source.

      If the resource is in another account, you must specify an ARN.

    • setSource

      @Stability(Stable) public void setSource(@NotNull String value)
      The ID or ARN of the source.

      If the resource is in another account, you must specify an ARN.

    • getDestination

      @Stability(Stable) @Nullable public String getDestination()
      The ID or ARN of the destination.

      If the resource is in another account, you must specify an ARN.

    • setDestination

      @Stability(Stable) public void setDestination(@Nullable String value)
      The ID or ARN of the destination.

      If the resource is in another account, you must specify an ARN.

    • getDestinationIp

      @Stability(Stable) @Nullable public String getDestinationIp()
      The IP address of the destination.
    • setDestinationIp

      @Stability(Stable) public void setDestinationIp(@Nullable String value)
      The IP address of the destination.
    • getDestinationPort

      @Stability(Stable) @Nullable public Number getDestinationPort()
      The destination port.
    • setDestinationPort

      @Stability(Stable) public void setDestinationPort(@Nullable Number value)
      The destination port.
    • getFilterAtDestination

      @Stability(Stable) @Nullable public Object 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

      @Stability(Stable) public void setFilterAtDestination(@Nullable IResolvable 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.

    • 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

      @Stability(Stable) @Nullable public Object 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

      @Stability(Stable) public void setFilterAtSource(@Nullable IResolvable 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.

    • 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

      @Stability(Stable) @Nullable public String getSourceIp()
      The IP address of the source.
    • setSourceIp

      @Stability(Stable) public void setSourceIp(@Nullable String value)
      The IP address of the source.