CfnNetworkInsightsPathProps

class aws_cdk.aws_ec2.CfnNetworkInsightsPathProps(*, protocol, source, destination=None, destination_ip=None, destination_port=None, filter_at_destination=None, filter_at_source=None, source_ip=None, tags=None)

Bases: object

Properties for defining a CfnNetworkInsightsPath.

Parameters:
  • protocol (str) – The protocol.

  • source (str) – The ID or ARN of the source. If the resource is in another account, you must specify an ARN.

  • destination (Optional[str]) – The ID or ARN of the destination. If the resource is in another account, you must specify an ARN.

  • destination_ip (Optional[str]) – The IP address of the destination.

  • destination_port (Union[int, float, None]) – The destination port.

  • filter_at_destination (Union[IResolvable, PathFilterProperty, Dict[str, Any], None]) – 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.

  • filter_at_source (Union[IResolvable, PathFilterProperty, Dict[str, Any], None]) – 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.

  • source_ip (Optional[str]) – The IP address of the source.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags to add to the path.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_network_insights_path_props = ec2.CfnNetworkInsightsPathProps(
    protocol="protocol",
    source="source",

    # the properties below are optional
    destination="destination",
    destination_ip="destinationIp",
    destination_port=123,
    filter_at_destination=ec2.CfnNetworkInsightsPath.PathFilterProperty(
        destination_address="destinationAddress",
        destination_port_range=ec2.CfnNetworkInsightsPath.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        ),
        source_address="sourceAddress",
        source_port_range=ec2.CfnNetworkInsightsPath.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        )
    ),
    filter_at_source=ec2.CfnNetworkInsightsPath.PathFilterProperty(
        destination_address="destinationAddress",
        destination_port_range=ec2.CfnNetworkInsightsPath.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        ),
        source_address="sourceAddress",
        source_port_range=ec2.CfnNetworkInsightsPath.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        )
    ),
    source_ip="sourceIp",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

destination

The ID or ARN of the destination.

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-destination

destination_ip

The IP address of the destination.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-destinationip

destination_port

The destination port.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-destinationport

filter_at_destination

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-filteratdestination

filter_at_source

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-filteratsource

protocol

The protocol.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-protocol

source

The ID or ARN of the source.

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

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-source

source_ip

The IP address of the source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-sourceip

tags

The tags to add to the path.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinsightspath.html#cfn-ec2-networkinsightspath-tags