Show / Hide Table of Contents

Class CommonNetworkAclEntryOptions

Basic NetworkACL entry props.

Inheritance
System.Object
CommonNetworkAclEntryOptions
Implements
ICommonNetworkAclEntryOptions
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CommonNetworkAclEntryOptions : Object, ICommonNetworkAclEntryOptions
Syntax (vb)
Public Class CommonNetworkAclEntryOptions
    Inherits Object
    Implements ICommonNetworkAclEntryOptions
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;

var commonNetworkAclEntryOptions = new CommonNetworkAclEntryOptions {
    Cidr = aclCidr,
    RuleNumber = 123,
    Traffic = aclTraffic,

    // the properties below are optional
    Direction = TrafficDirection.EGRESS,
    NetworkAclEntryName = "networkAclEntryName",
    RuleAction = Action.ALLOW
};

Synopsis

Constructors

CommonNetworkAclEntryOptions()

Properties

Cidr

The CIDR range to allow or deny.

Direction

Traffic direction, with respect to the subnet, this rule applies to.

NetworkAclEntryName

The name of the NetworkAclEntry.

RuleAction

Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny".

RuleNumber

Rule number to assign to the entry, such as 100.

Traffic

What kind of traffic this ACL rule applies to.

Constructors

CommonNetworkAclEntryOptions()

public CommonNetworkAclEntryOptions()

Properties

Cidr

The CIDR range to allow or deny.

public AclCidr Cidr { get; set; }
Property Value

AclCidr

Direction

Traffic direction, with respect to the subnet, this rule applies to.

public Nullable<TrafficDirection> Direction { get; set; }
Property Value

System.Nullable<TrafficDirection>

Remarks

Default: TrafficDirection.INGRESS

NetworkAclEntryName

The name of the NetworkAclEntry.

public string NetworkAclEntryName { get; set; }
Property Value

System.String

Remarks

It is not recommended to use an explicit group name.

Default: If you don't specify a NetworkAclName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

RuleAction

Whether to allow or deny traffic that matches the rule; valid values are "allow" or "deny".

public Nullable<Action> RuleAction { get; set; }
Property Value

System.Nullable<Action>

Remarks

Any traffic that is not explicitly allowed is automatically denied in a custom ACL, all traffic is automatically allowed in a default ACL.

Default: ALLOW

RuleNumber

Rule number to assign to the entry, such as 100.

public double RuleNumber { get; set; }
Property Value

System.Double

Remarks

ACL entries are processed in ascending order by rule number. Entries can't use the same rule number unless one is an egress rule and the other is an ingress rule.

Traffic

What kind of traffic this ACL rule applies to.

public AclTraffic Traffic { get; set; }
Property Value

AclTraffic

Implements

ICommonNetworkAclEntryOptions
Back to top Generated by DocFX