Show / Hide Table of Contents

Class NetworkAclEntry

Define an entry in a Network ACL table.

Inheritance
object
Resource
NetworkAclEntry
Implements
INetworkAclEntry
IResource
INetworkAclEntryRef
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.With(params IMixin[])
Resource.Env
Resource.PhysicalName
Resource.Stack
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

INetworkAcl

Remarks

ExampleMetadata: fixture=_generated

NetworkAclEntryRef

A reference to a NetworkAclEntry resource.

public virtual INetworkAclEntryReference NetworkAclEntryRef { get; }
Property Value

INetworkAclEntryReference

Remarks

ExampleMetadata: fixture=_generated

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

ExampleMetadata: fixture=_generated

Implements

INetworkAclEntry
IResource
INetworkAclEntryRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX