CfnNetworkInsightsPathPropsMixin
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnNetworkInsightsPathPropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies 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:
- 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:
props (
Union[CfnNetworkInsightsPathMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
FilterPortRangeProperty
- class CfnNetworkInsightsPathPropsMixin.FilterPortRangeProperty(*, from_port=None, to_port=None)
Bases:
objectDescribes 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:
- 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.
PathFilterProperty
- class CfnNetworkInsightsPathPropsMixin.PathFilterProperty(*, destination_address=None, destination_port_range=None, source_address=None, source_port_range=None)
Bases:
objectDescribes 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:
- 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.
- destination_port_range
The destination port range.
- source_address
The source IPv4 address.
- source_port_range
The source port range.