Class CfnNetworkInsightsAccessScope
Describes a Network Access Scope.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNetworkInsightsAccessScope : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnNetworkInsightsAccessScope
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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 .
CloudformationResource: AWS::EC2::NetworkInsightsAccessScope
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnNetworkInsightsAccessScope = new CfnNetworkInsightsAccessScope(this, "MyCfnNetworkInsightsAccessScope", new CfnNetworkInsightsAccessScopeProps {
ExcludePaths = new [] { new AccessScopePathRequestProperty {
Destination = new PathStatementRequestProperty {
PacketHeaderStatement = new PacketHeaderStatementRequestProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPorts = new [] { "destinationPorts" },
DestinationPrefixLists = new [] { "destinationPrefixLists" },
Protocols = new [] { "protocols" },
SourceAddresses = new [] { "sourceAddresses" },
SourcePorts = new [] { "sourcePorts" },
SourcePrefixLists = new [] { "sourcePrefixLists" }
},
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
},
Source = new PathStatementRequestProperty {
PacketHeaderStatement = new PacketHeaderStatementRequestProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPorts = new [] { "destinationPorts" },
DestinationPrefixLists = new [] { "destinationPrefixLists" },
Protocols = new [] { "protocols" },
SourceAddresses = new [] { "sourceAddresses" },
SourcePorts = new [] { "sourcePorts" },
SourcePrefixLists = new [] { "sourcePrefixLists" }
},
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
},
ThroughResources = new [] { new ThroughResourcesStatementRequestProperty {
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
} }
} },
MatchPaths = new [] { new AccessScopePathRequestProperty {
Destination = new PathStatementRequestProperty {
PacketHeaderStatement = new PacketHeaderStatementRequestProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPorts = new [] { "destinationPorts" },
DestinationPrefixLists = new [] { "destinationPrefixLists" },
Protocols = new [] { "protocols" },
SourceAddresses = new [] { "sourceAddresses" },
SourcePorts = new [] { "sourcePorts" },
SourcePrefixLists = new [] { "sourcePrefixLists" }
},
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
},
Source = new PathStatementRequestProperty {
PacketHeaderStatement = new PacketHeaderStatementRequestProperty {
DestinationAddresses = new [] { "destinationAddresses" },
DestinationPorts = new [] { "destinationPorts" },
DestinationPrefixLists = new [] { "destinationPrefixLists" },
Protocols = new [] { "protocols" },
SourceAddresses = new [] { "sourceAddresses" },
SourcePorts = new [] { "sourcePorts" },
SourcePrefixLists = new [] { "sourcePrefixLists" }
},
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
},
ThroughResources = new [] { new ThroughResourcesStatementRequestProperty {
ResourceStatement = new ResourceStatementRequestProperty {
Resources = new [] { "resources" },
ResourceTypes = new [] { "resourceTypes" }
}
} }
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnNetworkInsightsAccessScope(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnNetworkInsightsAccessScope(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnNetworkInsightsAccessScope(Construct, String, ICfnNetworkInsightsAccessScopeProps) |
Properties
AttrCreatedDate | The creation date. |
AttrNetworkInsightsAccessScopeArn | The ARN of the Network Access Scope. |
AttrNetworkInsightsAccessScopeId | The ID of the Network Access Scope. |
AttrUpdatedDate | The last updated date. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ExcludePaths | The paths to exclude. |
MatchPaths | The paths to match. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnNetworkInsightsAccessScope(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnNetworkInsightsAccessScope(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnNetworkInsightsAccessScope(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnNetworkInsightsAccessScope(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnNetworkInsightsAccessScope(Construct, String, ICfnNetworkInsightsAccessScopeProps)
public CfnNetworkInsightsAccessScope(Construct scope, string id, ICfnNetworkInsightsAccessScopeProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnNetworkInsightsAccessScopeProps
Resource properties.
Properties
AttrCreatedDate
The creation date.
public virtual string AttrCreatedDate { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CreatedDate
AttrNetworkInsightsAccessScopeArn
The ARN of the Network Access Scope.
public virtual string AttrNetworkInsightsAccessScopeArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: NetworkInsightsAccessScopeArn
AttrNetworkInsightsAccessScopeId
The ID of the Network Access Scope.
public virtual string AttrNetworkInsightsAccessScopeId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: NetworkInsightsAccessScopeId
AttrUpdatedDate
The last updated date.
public virtual string AttrUpdatedDate { get; }
Property Value
System.String
Remarks
CloudformationAttribute: UpdatedDate
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ExcludePaths
The paths to exclude.
public virtual object ExcludePaths { get; set; }
Property Value
System.Object
MatchPaths
The paths to match.
public virtual object MatchPaths { get; set; }
Property Value
System.Object
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>