Show / Hide Table of Contents

Class CfnNetworkAclEntry

Specifies an entry, known as a rule, in a network ACL with a rule number you specify.

Inheritance
object
CfnElement
CfnRefElement
CfnResource
CfnNetworkAclEntry
Implements
IInspectable
INetworkAclEntryRef
IConstruct
IDependable
IEnvironmentAware
Inherited Members
CfnResource.IsCfnResource(object)
CfnResource.AddDeletionOverride(string)
CfnResource.AddDependency(CfnResource)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(string, object)
CfnResource.AddOverride(string, object)
CfnResource.AddPropertyDeletionOverride(string)
CfnResource.AddPropertyOverride(string, object)
CfnResource.ApplyRemovalPolicy(RemovalPolicy?, IRemovalPolicyOptions)
CfnResource.GetAtt(string, ResolutionTypeHint?)
CfnResource.GetMetadata(string)
CfnResource.ObtainDependencies()
CfnResource.ObtainResourceDependencies()
CfnResource.RemoveDependency(CfnResource)
CfnResource.ReplaceDependency(CfnResource, CfnResource)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.Env
CfnResource.UpdatedProperites
CfnResource.UpdatedProperties
CfnRefElement.Ref
CfnElement.IsCfnElement(object)
CfnElement.OverrideLogicalId(string)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnNetworkAclEntry : CfnResource, IInspectable, INetworkAclEntryRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnNetworkAclEntry Inherits CfnResource Implements IInspectable, INetworkAclEntryRef, IConstruct, IDependable, IEnvironmentAware
Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

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 cfnNetworkAclEntry = new CfnNetworkAclEntry(this, "MyCfnNetworkAclEntry", 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

Constructors

CfnNetworkAclEntry(Construct, string, ICfnNetworkAclEntryProps)

Create a new AWS::EC2::NetworkAclEntry.

Properties

AttrId

The ID of the network ACL entry.

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties

Specifies an entry, known as a rule, in a network ACL with a rule number you specify.

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.

NetworkAclEntryRef

A reference to a NetworkAclEntry resource.

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.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

IsCfnNetworkAclEntry(object)

Checks whether the given object is a CfnNetworkAclEntry.

RenderProperties(IDictionary<string, object>)

Specifies an entry, known as a rule, in a network ACL with a rule number you specify.

Constructors

CfnNetworkAclEntry(Construct, string, ICfnNetworkAclEntryProps)

Create a new AWS::EC2::NetworkAclEntry.

public CfnNetworkAclEntry(Construct scope, string id, ICfnNetworkAclEntryProps props)
Parameters
scope Construct

Scope in which this resource is defined.

id string

Construct identifier for this resource (unique in its scope).

props ICfnNetworkAclEntryProps

Resource properties.

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

Properties

AttrId

The ID of the network ACL entry.

public virtual string AttrId { get; }
Property Value

string

Remarks

CloudformationAttribute: Id

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

string

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

CfnProperties

Specifies an entry, known as a rule, in a network ACL with a rule number you specify.

protected override IDictionary<string, object> CfnProperties { get; }
Property Value

IDictionary<string, object>

Overrides
CfnResource.CfnProperties
Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

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.

public virtual string? CidrBlock { get; set; }
Property Value

string

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

Egress

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

public virtual object? Egress { get; set; }
Property Value

object

Remarks

Type union: either bool or IResolvable

Icmp

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

public virtual object? Icmp { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnNetworkAclEntry.IIcmpProperty

Ipv6CidrBlock

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

public virtual string? Ipv6CidrBlock { get; set; }
Property Value

string

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

NetworkAclEntryRef

A reference to a NetworkAclEntry resource.

public virtual INetworkAclEntryReference NetworkAclEntryRef { get; }
Property Value

INetworkAclEntryReference

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

NetworkAclId

The ID of the ACL for the entry.

public virtual string NetworkAclId { get; set; }
Property Value

string

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

PortRange

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

public virtual object? PortRange { get; set; }
Property Value

object

Remarks

Type union: either IResolvable or CfnNetworkAclEntry.IPortRangeProperty

Protocol

The IP protocol that the rule applies to.

public virtual double Protocol { get; set; }
Property Value

double

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

RuleAction

Whether to allow or deny traffic that matches the rule;

public virtual string RuleAction { get; set; }
Property Value

string

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

RuleNumber

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

public virtual double RuleNumber { get; set; }
Property Value

double

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

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.

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

IsCfnNetworkAclEntry(object)

Checks whether the given object is a CfnNetworkAclEntry.

public static bool IsCfnNetworkAclEntry(object x)
Parameters
x object
Returns

bool

Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

RenderProperties(IDictionary<string, object>)

Specifies an entry, known as a rule, in a network ACL with a rule number you specify.

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props IDictionary<string, object>
Returns

IDictionary<string, object>

Overrides
CfnResource.RenderProperties(IDictionary<string, object>)
Remarks

Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules.

To create the network ACL, see AWS::EC2::NetworkAcl .

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

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

CloudformationResource: AWS::EC2::NetworkAclEntry

ExampleMetadata: fixture=_generated

Implements

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