CfnNetworkInsightsAccessScopePropsMixin

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

Bases: Mixin

Describes 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:

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

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:

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 = ['excludePaths', 'matchPaths', '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

AccessScopePathRequestProperty

class CfnNetworkInsightsAccessScopePropsMixin.AccessScopePathRequestProperty(*, destination=None, source=None, through_resources=None)

Bases: object

Describes a path.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-accessscopepathrequest.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

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-accessscopepathrequest.html#cfn-ec2-networkinsightsaccessscope-accessscopepathrequest-destination

source

The source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-accessscopepathrequest.html#cfn-ec2-networkinsightsaccessscope-accessscopepathrequest-source

through_resources

The through resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-accessscopepathrequest.html#cfn-ec2-networkinsightsaccessscope-accessscopepathrequest-throughresources

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: object

Describes 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.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

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.html#cfn-ec2-networkinsightsaccessscope-packetheaderstatementrequest-destinationaddresses

destination_ports

The destination ports.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.html#cfn-ec2-networkinsightsaccessscope-packetheaderstatementrequest-destinationports

destination_prefix_lists

The destination prefix lists.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.html#cfn-ec2-networkinsightsaccessscope-packetheaderstatementrequest-destinationprefixlists

protocols

The protocols.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.html#cfn-ec2-networkinsightsaccessscope-packetheaderstatementrequest-protocols

source_addresses

The source addresses.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.html#cfn-ec2-networkinsightsaccessscope-packetheaderstatementrequest-sourceaddresses

source_ports

The source ports.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.html#cfn-ec2-networkinsightsaccessscope-packetheaderstatementrequest-sourceports

source_prefix_lists

The source prefix lists.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-packetheaderstatementrequest.html#cfn-ec2-networkinsightsaccessscope-packetheaderstatementrequest-sourceprefixlists

PathStatementRequestProperty

class CfnNetworkInsightsAccessScopePropsMixin.PathStatementRequestProperty(*, packet_header_statement=None, resource_statement=None)

Bases: object

Describes a path statement.

Parameters:
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-pathstatementrequest.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_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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-pathstatementrequest.html#cfn-ec2-networkinsightsaccessscope-pathstatementrequest-packetheaderstatement

resource_statement

The resource statement.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-pathstatementrequest.html#cfn-ec2-networkinsightsaccessscope-pathstatementrequest-resourcestatement

ResourceStatementRequestProperty

class CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty(*, resources=None, resource_types=None)

Bases: object

Describes a resource statement.

Parameters:
  • resources (Optional[Sequence[str]]) – The resources.

  • resource_types (Optional[Sequence[str]]) – The resource types.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-resourcestatementrequest.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

resource_statement_request_property = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty(
    resources=["resources"],
    resource_types=["resourceTypes"]
)

Attributes

resource_types

The resource types.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-resourcestatementrequest.html#cfn-ec2-networkinsightsaccessscope-resourcestatementrequest-resourcetypes

resources

The resources.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-resourcestatementrequest.html#cfn-ec2-networkinsightsaccessscope-resourcestatementrequest-resources

ThroughResourcesStatementRequestProperty

class CfnNetworkInsightsAccessScopePropsMixin.ThroughResourcesStatementRequestProperty(*, resource_statement=None)

Bases: object

Describes a through resource statement.

Parameters:

resource_statement (Union[IResolvable, ResourceStatementRequestProperty, Dict[str, Any], None]) – The resource statement.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-throughresourcesstatementrequest.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

through_resources_statement_request_property = ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ThroughResourcesStatementRequestProperty(
    resource_statement=ec2_mixins.CfnNetworkInsightsAccessScopePropsMixin.ResourceStatementRequestProperty(
        resources=["resources"],
        resource_types=["resourceTypes"]
    )
)

Attributes

resource_statement

The resource statement.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-networkinsightsaccessscope-throughresourcesstatementrequest.html#cfn-ec2-networkinsightsaccessscope-throughresourcesstatementrequest-resourcestatement