CfnNetworkInsightsAccessScopePropsMixin
- class aws_cdk.mixins_preview.aws_ec2.mixins.CfnNetworkInsightsAccessScopePropsMixin(props, *, strategy=None)
Bases:
MixinDescribes a Network Access Scope.
A Network Access Scope defines outbound (egress) and inbound (ingress) traffic patterns, including sources, destinations, paths, and traffic types.
Network Access Analyzer identifies unintended network access to your resources on AWS . When you start an analysis on a Network Access Scope, Network Access Analyzer produces findings. For more information, see the Network Access Analyzer User Guide .
- See:
- CloudformationResource:
AWS::EC2::NetworkInsightsAccessScope
- 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_access_scope_props_mixin = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin(ec2_mixins.CfnNetworkInsightsAccessScopeMixinProps( exclude_paths=[ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.AccessScopePathRequestProperty( destination=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty( packet_header_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] ), resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) ), source=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty( packet_header_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] ), resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) ), through_resources=[ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ThroughResourcesStatementRequestProperty( resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) )] )], match_paths=[ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.AccessScopePathRequestProperty( destination=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty( packet_header_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] ), resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) ), source=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty( packet_header_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] ), resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) ), through_resources=[ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ThroughResourcesStatementRequestProperty( resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) )] )], tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::EC2::NetworkInsightsAccessScope.- Parameters:
props (
Union[CfnNetworkInsightsAccessScopeMixinProps,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 = ['excludePaths', 'matchPaths', '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
AccessScopePathRequestProperty
- class CfnNetworkInsightsAccessScopePropsMixin.AccessScopePathRequestProperty(*, destination=None, source=None, through_resources=None)
Bases:
objectDescribes a path.
- Parameters:
destination (
Union[IResolvable,PathStatementRequestProperty,Dict[str,Any],None]) – The destination.source (
Union[IResolvable,PathStatementRequestProperty,Dict[str,Any],None]) – The source.through_resources (
Union[IResolvable,Sequence[Union[IResolvable,ThroughResourcesStatementRequestProperty,Dict[str,Any]]],None]) – The through resources.
- 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 access_scope_path_request_property = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.AccessScopePathRequestProperty( destination=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty( packet_header_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] ), resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) ), source=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty( packet_header_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] ), resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) ), through_resources=[ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ThroughResourcesStatementRequestProperty( resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) )] )
Attributes
- destination
The destination.
- source
The source.
PacketHeaderStatementRequestProperty
- class CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty(*, destination_addresses=None, destination_ports=None, destination_prefix_lists=None, protocols=None, source_addresses=None, source_ports=None, source_prefix_lists=None)
Bases:
objectDescribes a packet header statement.
- Parameters:
destination_addresses (
Optional[Sequence[str]]) – The destination addresses.destination_ports (
Optional[Sequence[str]]) – The destination ports.destination_prefix_lists (
Optional[Sequence[str]]) – The destination prefix lists.protocols (
Optional[Sequence[str]]) – The protocols.source_addresses (
Optional[Sequence[str]]) – The source addresses.source_ports (
Optional[Sequence[str]]) – The source ports.source_prefix_lists (
Optional[Sequence[str]]) – The source prefix lists.
- 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 packet_header_statement_request_property = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] )
Attributes
- destination_addresses
The destination addresses.
- destination_ports
The destination ports.
- destination_prefix_lists
The destination prefix lists.
- protocols
The protocols.
- source_addresses
The source addresses.
- source_ports
The source ports.
PathStatementRequestProperty
- class CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty(*, packet_header_statement=None, resource_statement=None)
Bases:
objectDescribes a path statement.
- Parameters:
packet_header_statement (
Union[IResolvable,PacketHeaderStatementRequestProperty,Dict[str,Any],None]) – The packet header statement.resource_statement (
Union[IResolvable,ResourceStatementRequestProperty,Dict[str,Any],None]) – The resource statement.
- 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_statement_request_property = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty( packet_header_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.PacketHeaderStatementRequestProperty( destination_addresses=["destinationAddresses"], destination_ports=["destinationPorts"], destination_prefix_lists=["destinationPrefixLists"], protocols=["protocols"], source_addresses=["sourceAddresses"], source_ports=["sourcePorts"], source_prefix_lists=["sourcePrefixLists"] ), resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) )
Attributes
- packet_header_statement
The packet header statement.
ResourceStatementRequestProperty
- class CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty(*, resources=None, resource_types=None)
Bases:
objectDescribes a resource statement.
- Parameters:
resources (
Optional[Sequence[str]]) – The resources.resource_types (
Optional[Sequence[str]]) – The resource types.
- 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 resource_statement_request_property = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] )
Attributes
- resource_types
The resource types.
ThroughResourcesStatementRequestProperty
- class CfnNetworkInsightsAccessScopePropsMixin.ThroughResourcesStatementRequestProperty(*, resource_statement=None)
Bases:
objectDescribes a through resource statement.
- Parameters:
resource_statement (
Union[IResolvable,ResourceStatementRequestProperty,Dict[str,Any],None]) – The resource statement.- 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 through_resources_statement_request_property = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ThroughResourcesStatementRequestProperty( resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty( resources=["resources"], resource_types=["resourceTypes"] ) )
Attributes