Class NetworkAclEntry
Define an entry in a Network ACL table.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class NetworkAclEntry : Resource, INetworkAclEntry, IResource, INetworkAclEntryRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class NetworkAclEntry Inherits Resource Implements INetworkAclEntry, IResource, INetworkAclEntryRef, IConstruct, IDependable, IEnvironmentAware
Remarks
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;
AclCidr aclCidr;
AclTraffic aclTraffic;
NetworkAcl networkAcl;
var networkAclEntry = new NetworkAclEntry(this, "MyNetworkAclEntry", new NetworkAclEntryProps {
Cidr = aclCidr,
NetworkAcl = networkAcl,
RuleNumber = 123,
Traffic = aclTraffic,
// the properties below are optional
Direction = TrafficDirection.EGRESS,
NetworkAclEntryName = "networkAclEntryName",
RuleAction = Action.ALLOW
});
Synopsis
Constructors
| NetworkAclEntry(Construct, string, INetworkAclEntryProps) | Define an entry in a Network ACL table. |
Properties
| NetworkAcl | The network ACL. |
| NetworkAclEntryRef | A reference to a NetworkAclEntry resource. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
NetworkAclEntry(Construct, string, INetworkAclEntryProps)
Define an entry in a Network ACL table.
public NetworkAclEntry(Construct scope, string id, INetworkAclEntryProps props)
Parameters
- scope Construct
- id string
- props INetworkAclEntryProps
Remarks
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;
AclCidr aclCidr;
AclTraffic aclTraffic;
NetworkAcl networkAcl;
var networkAclEntry = new NetworkAclEntry(this, "MyNetworkAclEntry", new NetworkAclEntryProps {
Cidr = aclCidr,
NetworkAcl = networkAcl,
RuleNumber = 123,
Traffic = aclTraffic,
// the properties below are optional
Direction = TrafficDirection.EGRESS,
NetworkAclEntryName = "networkAclEntryName",
RuleAction = Action.ALLOW
});
Properties
NetworkAcl
The network ACL.
public virtual INetworkAcl NetworkAcl { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
NetworkAclEntryRef
A reference to a NetworkAclEntry resource.
public virtual INetworkAclEntryReference NetworkAclEntryRef { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Implements
Constructs.IConstruct
Constructs.IDependable