@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.256Z") @Stability(value=Stable) public class CfnNetworkInsightsAccessScope extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnNetworkInsightsAccessScope.AccessScopePathRequestProperty
Describes a path.
|
static class |
CfnNetworkInsightsAccessScope.Builder
A fluent builder for
CfnNetworkInsightsAccessScope. |
static interface |
CfnNetworkInsightsAccessScope.PacketHeaderStatementRequestProperty
Describes a packet header statement.
|
static interface |
CfnNetworkInsightsAccessScope.PathStatementRequestProperty
Describes a path statement.
|
static interface |
CfnNetworkInsightsAccessScope.ResourceStatementRequestProperty
Describes a resource statement.
|
static interface |
CfnNetworkInsightsAccessScope.ThroughResourcesStatementRequestProperty
Describes a through resource statement.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnNetworkInsightsAccessScope(software.constructs.Construct scope,
String id)
Create a new `AWS::EC2::NetworkInsightsAccessScope`.
|
|
CfnNetworkInsightsAccessScope(software.constructs.Construct scope,
String id,
CfnNetworkInsightsAccessScopeProps props)
Create a new `AWS::EC2::NetworkInsightsAccessScope`.
|
protected |
CfnNetworkInsightsAccessScope(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnNetworkInsightsAccessScope(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrCreatedDate()
The creation date.
|
String |
getAttrNetworkInsightsAccessScopeArn()
The ARN of the Network Access Scope.
|
String |
getAttrNetworkInsightsAccessScopeId()
The ID of the Network Access Scope.
|
String |
getAttrUpdatedDate()
The last updated date.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getExcludePaths()
The paths to exclude.
|
Object |
getMatchPaths()
The paths to match.
|
TagManager |
getTags()
The tags.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setExcludePaths(IResolvable value)
The paths to exclude.
|
void |
setExcludePaths(List<Object> value)
The paths to exclude.
|
void |
setMatchPaths(IResolvable value)
The paths to match.
|
void |
setMatchPaths(List<Object> value)
The paths to match.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnNetworkInsightsAccessScope(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnNetworkInsightsAccessScope(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnNetworkInsightsAccessScope(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnNetworkInsightsAccessScopeProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnNetworkInsightsAccessScope(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCreatedDate()
@Stability(value=Stable) @NotNull public String getAttrNetworkInsightsAccessScopeArn()
@Stability(value=Stable) @NotNull public String getAttrNetworkInsightsAccessScopeId()
@Stability(value=Stable) @NotNull public String getAttrUpdatedDate()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public Object getExcludePaths()
@Stability(value=Stable)
public void setExcludePaths(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setExcludePaths(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getMatchPaths()
@Stability(value=Stable)
public void setMatchPaths(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.