Show / Hide Table of Contents

Interface ICfnNetworkAclEntryProps

Properties for defining a CfnNetworkAclEntry.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnNetworkAclEntryProps
Syntax (vb)
Public Interface ICfnNetworkAclEntryProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html

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 cfnNetworkAclEntryProps = new CfnNetworkAclEntryProps {
                 NetworkAclId = "networkAclId",
                 Protocol = 123,
                 RuleAction = "ruleAction",
                 RuleNumber = 123,

                 // the properties below are optional
                 CidrBlock = "cidrBlock",
                 Egress = false,
                 Icmp = new IcmpProperty {
                     Code = 123,
                     Type = 123
                 },
                 Ipv6CidrBlock = "ipv6CidrBlock",
                 PortRange = new PortRangeProperty {
                     From = 123,
                     To = 123
                 }
             };

Synopsis

Properties

CidrBlock

The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24). You must specify an IPv4 CIDR block or an IPv6 CIDR block.

Egress

Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet ( false ).

Icmp

The Internet Control Message Protocol (ICMP) code and type.

Ipv6CidrBlock

The IPv6 network range to allow or deny, in CIDR notation.

NetworkAclId

The ID of the ACL for the entry.

PortRange

The range of port numbers for the UDP/TCP protocol.

Protocol

The IP protocol that the rule applies to.

RuleAction

Whether to allow or deny traffic that matches the rule;

RuleNumber

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

Properties

CidrBlock

The IPv4 CIDR range to allow or deny, in CIDR notation (for example, 172.16.0.0/24). You must specify an IPv4 CIDR block or an IPv6 CIDR block.

string? CidrBlock { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-cidrblock

Egress

Whether this rule applies to egress traffic from the subnet ( true ) or ingress traffic to the subnet ( false ).

object? Egress { get; }
Property Value

object

Remarks

By default, AWS CloudFormation specifies false .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-egress

Icmp

The Internet Control Message Protocol (ICMP) code and type.

object? Icmp { get; }
Property Value

object

Remarks

Required if specifying 1 (ICMP) for the protocol parameter.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-icmp

Ipv6CidrBlock

The IPv6 network range to allow or deny, in CIDR notation.

string? Ipv6CidrBlock { get; }
Property Value

string

Remarks

You must specify an IPv4 CIDR block or an IPv6 CIDR block.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-ipv6cidrblock

NetworkAclId

The ID of the ACL for the entry.

string NetworkAclId { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-networkaclid

PortRange

The range of port numbers for the UDP/TCP protocol.

object? PortRange { get; }
Property Value

object

Remarks

Required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-portrange

Protocol

The IP protocol that the rule applies to.

double Protocol { get; }
Property Value

double

Remarks

You must specify -1 or a protocol number. You can specify -1 for all protocols.

If you specify -1, all ports are opened and the <code>PortRange</code> property is ignored.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-protocol

RuleAction

Whether to allow or deny traffic that matches the rule;

string RuleAction { get; }
Property Value

string

Remarks

valid values are "allow" or "deny".

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-ruleaction

RuleNumber

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

double RuleNumber { get; }
Property Value

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkaclentry.html#cfn-ec2-networkaclentry-rulenumber

Back to top Generated by DocFX