Class CfnNetworkInsightsAccessScope

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ec2.CfnNetworkInsightsAccessScope
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:05.856Z") @Stability(Stable) public class CfnNetworkInsightsAccessScope extends CfnResource implements IInspectable, ITaggable
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.services.ec2.*;
 CfnNetworkInsightsAccessScope cfnNetworkInsightsAccessScope = CfnNetworkInsightsAccessScope.Builder.create(this, "MyCfnNetworkInsightsAccessScope")
         .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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnNetworkInsightsAccessScope

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

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

      @Stability(Stable) public CfnNetworkInsightsAccessScope(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnNetworkInsightsAccessScopeProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnNetworkInsightsAccessScope

      @Stability(Stable) public CfnNetworkInsightsAccessScope(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreatedDate

      @Stability(Stable) @NotNull public String getAttrCreatedDate()
      The creation date.
    • getAttrNetworkInsightsAccessScopeArn

      @Stability(Stable) @NotNull public String getAttrNetworkInsightsAccessScopeArn()
      The ARN of the Network Access Scope.
    • getAttrNetworkInsightsAccessScopeId

      @Stability(Stable) @NotNull public String getAttrNetworkInsightsAccessScopeId()
      The ID of the Network Access Scope.
    • getAttrUpdatedDate

      @Stability(Stable) @NotNull public String getAttrUpdatedDate()
      The last updated date.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getExcludePaths

      @Stability(Stable) @Nullable public Object getExcludePaths()
      The paths to exclude.
    • setExcludePaths

      @Stability(Stable) public void setExcludePaths(@Nullable IResolvable value)
      The paths to exclude.
    • setExcludePaths

      @Stability(Stable) public void setExcludePaths(@Nullable List<Object> value)
      The paths to exclude.
    • getMatchPaths

      @Stability(Stable) @Nullable public Object getMatchPaths()
      The paths to match.
    • setMatchPaths

      @Stability(Stable) public void setMatchPaths(@Nullable IResolvable value)
      The paths to match.
    • setMatchPaths

      @Stability(Stable) public void setMatchPaths(@Nullable List<Object> value)
      The paths to match.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags.