@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:28.181Z") 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.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnNetworkInsightsAccessScope(Construct scope,
java.lang.String id)
Create a new `AWS::EC2::NetworkInsightsAccessScope`.
|
|
CfnNetworkInsightsAccessScope(Construct scope,
java.lang.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 |
---|---|
java.lang.String |
getAttrCreatedDate()
The creation date.
|
java.lang.String |
getAttrNetworkInsightsAccessScopeArn()
The ARN of the Network Access Scope.
|
java.lang.String |
getAttrNetworkInsightsAccessScopeId()
The ID of the Network Access Scope.
|
java.lang.String |
getAttrUpdatedDate()
The last updated date.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.Object |
getExcludePaths()
The paths to exclude.
|
java.lang.Object |
getMatchPaths()
The paths to match.
|
TagManager |
getTags()
The tags.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setExcludePaths(IResolvable value)
The paths to exclude.
|
void |
setExcludePaths(java.util.List<java.lang.Object> value)
The paths to exclude.
|
void |
setMatchPaths(IResolvable value)
The paths to match.
|
void |
setMatchPaths(java.util.List<java.lang.Object> value)
The paths to match.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnNetworkInsightsAccessScope(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnNetworkInsightsAccessScope(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnNetworkInsightsAccessScope(Construct scope, java.lang.String id, 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.public CfnNetworkInsightsAccessScope(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrCreatedDate()
public java.lang.String getAttrNetworkInsightsAccessScopeArn()
public java.lang.String getAttrNetworkInsightsAccessScopeId()
public java.lang.String getAttrUpdatedDate()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.Object getExcludePaths()
public void setExcludePaths(IResolvable value)
public void setExcludePaths(java.util.List<java.lang.Object> value)
public java.lang.Object getMatchPaths()
public void setMatchPaths(IResolvable value)
public void setMatchPaths(java.util.List<java.lang.Object> value)