Class CfnNetworkInsightsAccessScopePropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnNetworkInsightsAccessScopePropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:58.555Z") @Stability(Stable) public class CfnNetworkInsightsAccessScopePropsMixin extends Mixin implements software.constructs.IMixin
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 .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.ec2.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnNetworkInsightsAccessScopePropsMixin cfnNetworkInsightsAccessScopePropsMixin = CfnNetworkInsightsAccessScopePropsMixin.Builder.create(CfnNetworkInsightsAccessScopeMixinProps.builder()
         .excludePaths(List.of(AccessScopePathRequestProperty.builder()
                 .destination(PathStatementRequestProperty.builder()
                         .packetHeaderStatement(PacketHeaderStatementRequestProperty.builder()
                                 .destinationAddresses(List.of("destinationAddresses"))
                                 .destinationPorts(List.of("destinationPorts"))
                                 .destinationPrefixLists(List.of("destinationPrefixLists"))
                                 .protocols(List.of("protocols"))
                                 .sourceAddresses(List.of("sourceAddresses"))
                                 .sourcePorts(List.of("sourcePorts"))
                                 .sourcePrefixLists(List.of("sourcePrefixLists"))
                                 .build())
                         .resourceStatement(ResourceStatementRequestProperty.builder()
                                 .resources(List.of("resources"))
                                 .resourceTypes(List.of("resourceTypes"))
                                 .build())
                         .build())
                 .source(PathStatementRequestProperty.builder()
                         .packetHeaderStatement(PacketHeaderStatementRequestProperty.builder()
                                 .destinationAddresses(List.of("destinationAddresses"))
                                 .destinationPorts(List.of("destinationPorts"))
                                 .destinationPrefixLists(List.of("destinationPrefixLists"))
                                 .protocols(List.of("protocols"))
                                 .sourceAddresses(List.of("sourceAddresses"))
                                 .sourcePorts(List.of("sourcePorts"))
                                 .sourcePrefixLists(List.of("sourcePrefixLists"))
                                 .build())
                         .resourceStatement(ResourceStatementRequestProperty.builder()
                                 .resources(List.of("resources"))
                                 .resourceTypes(List.of("resourceTypes"))
                                 .build())
                         .build())
                 .throughResources(List.of(ThroughResourcesStatementRequestProperty.builder()
                         .resourceStatement(ResourceStatementRequestProperty.builder()
                                 .resources(List.of("resources"))
                                 .resourceTypes(List.of("resourceTypes"))
                                 .build())
                         .build()))
                 .build()))
         .matchPaths(List.of(AccessScopePathRequestProperty.builder()
                 .destination(PathStatementRequestProperty.builder()
                         .packetHeaderStatement(PacketHeaderStatementRequestProperty.builder()
                                 .destinationAddresses(List.of("destinationAddresses"))
                                 .destinationPorts(List.of("destinationPorts"))
                                 .destinationPrefixLists(List.of("destinationPrefixLists"))
                                 .protocols(List.of("protocols"))
                                 .sourceAddresses(List.of("sourceAddresses"))
                                 .sourcePorts(List.of("sourcePorts"))
                                 .sourcePrefixLists(List.of("sourcePrefixLists"))
                                 .build())
                         .resourceStatement(ResourceStatementRequestProperty.builder()
                                 .resources(List.of("resources"))
                                 .resourceTypes(List.of("resourceTypes"))
                                 .build())
                         .build())
                 .source(PathStatementRequestProperty.builder()
                         .packetHeaderStatement(PacketHeaderStatementRequestProperty.builder()
                                 .destinationAddresses(List.of("destinationAddresses"))
                                 .destinationPorts(List.of("destinationPorts"))
                                 .destinationPrefixLists(List.of("destinationPrefixLists"))
                                 .protocols(List.of("protocols"))
                                 .sourceAddresses(List.of("sourceAddresses"))
                                 .sourcePorts(List.of("sourcePorts"))
                                 .sourcePrefixLists(List.of("sourcePrefixLists"))
                                 .build())
                         .resourceStatement(ResourceStatementRequestProperty.builder()
                                 .resources(List.of("resources"))
                                 .resourceTypes(List.of("resourceTypes"))
                                 .build())
                         .build())
                 .throughResources(List.of(ThroughResourcesStatementRequestProperty.builder()
                         .resourceStatement(ResourceStatementRequestProperty.builder()
                                 .resources(List.of("resources"))
                                 .resourceTypes(List.of("resourceTypes"))
                                 .build())
                         .build()))
                 .build()))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnNetworkInsightsAccessScopePropsMixin

      protected CfnNetworkInsightsAccessScopePropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnNetworkInsightsAccessScopePropsMixin

      protected CfnNetworkInsightsAccessScopePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnNetworkInsightsAccessScopePropsMixin

      @Stability(Stable) public CfnNetworkInsightsAccessScopePropsMixin(@NotNull CfnNetworkInsightsAccessScopeMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::EC2::NetworkInsightsAccessScope.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnNetworkInsightsAccessScopePropsMixin

      @Stability(Stable) public CfnNetworkInsightsAccessScopePropsMixin(@NotNull CfnNetworkInsightsAccessScopeMixinProps props)
      Create a mixin to apply properties to AWS::EC2::NetworkInsightsAccessScope.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnNetworkInsightsAccessScopeMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()