CfnNetworkInsightsPathPropsMixin

class aws_cdk.mixins_preview.aws_ec2.mixins.CfnNetworkInsightsPathPropsMixin(props, *, strategy=None)

Bases: Mixin

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 .

See:

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

CloudformationResource:

AWS::EC2::NetworkInsightsPath

Mixin:

true

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.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_ec2 import mixins as ec2_mixins

cfn_network_insights_path_props_mixin = ec2_mixins.CfnNetworkInsightsPathPropsMixin(ec2_mixins.CfnNetworkInsightsPathMixinProps(
    destination="destination",
    destination_ip="destinationIp",
    destination_port=123,
    filter_at_destination=ec2_mixins.CfnNetworkInsightsPathPropsMixin.PathFilterProperty(
        destination_address="destinationAddress",
        destination_port_range=ec2_mixins.CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        ),
        source_address="sourceAddress",
        source_port_range=ec2_mixins.CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        )
    ),
    filter_at_source=ec2_mixins.CfnNetworkInsightsPathPropsMixin.PathFilterProperty(
        destination_address="destinationAddress",
        destination_port_range=ec2_mixins.CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        ),
        source_address="sourceAddress",
        source_port_range=ec2_mixins.CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(
            from_port=123,
            to_port=123
        )
    ),
    protocol="protocol",
    source="source",
    source_ip="sourceIp",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::EC2::NetworkInsightsPath.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['destination', 'destinationIp', 'destinationPort', 'filterAtDestination', 'filterAtSource', 'protocol', 'source', 'sourceIp', 'tags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

FilterPortRangeProperty

class CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(*, from_port=None, to_port=None)

Bases: object

Describes a port range.

Parameters:
  • from_port (Union[int, float, None]) – The first port in the range.

  • to_port (Union[int, float, None]) – The last port in the range.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-filterportrange.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.mixins_preview.aws_ec2 import mixins as ec2_mixins

filter_port_range_property = ec2_mixins.CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(
    from_port=123,
    to_port=123
)

Attributes

from_port

The first port in the range.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-filterportrange.html#cfn-ec2-networkinsightspath-filterportrange-fromport

to_port

The last port in the range.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-filterportrange.html#cfn-ec2-networkinsightspath-filterportrange-toport

PathFilterProperty

class CfnNetworkInsightsPathPropsMixin.PathFilterProperty(*, destination_address=None, destination_port_range=None, source_address=None, source_port_range=None)

Bases: object

Describes a set of filters for a path analysis.

Use path filters to scope the analysis when there can be multiple resulting paths.

Parameters:
  • destination_address (Optional[str]) – The destination IPv4 address.

  • destination_port_range (Union[IResolvable, FilterPortRangeProperty, Dict[str, Any], None]) – The destination port range.

  • source_address (Optional[str]) – The source IPv4 address.

  • source_port_range (Union[IResolvable, FilterPortRangeProperty, Dict[str, Any], None]) – The source port range.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-pathfilter.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.mixins_preview.aws_ec2 import mixins as ec2_mixins

path_filter_property = ec2_mixins.CfnNetworkInsightsPathPropsMixin.PathFilterProperty(
    destination_address="destinationAddress",
    destination_port_range=ec2_mixins.CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(
        from_port=123,
        to_port=123
    ),
    source_address="sourceAddress",
    source_port_range=ec2_mixins.CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(
        from_port=123,
        to_port=123
    )
)

Attributes

destination_address

The destination IPv4 address.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-pathfilter.html#cfn-ec2-networkinsightspath-pathfilter-destinationaddress

destination_port_range

The destination port range.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-pathfilter.html#cfn-ec2-networkinsightspath-pathfilter-destinationportrange

source_address

The source IPv4 address.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-pathfilter.html#cfn-ec2-networkinsightspath-pathfilter-sourceaddress

source_port_range

The source port range.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightspath-pathfilter.html#cfn-ec2-networkinsightspath-pathfilter-sourceportrange