Class AclTraffic
The traffic that is configured using a Network ACL entry.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class AclTraffic : DeputyBase
Syntax (vb)
Public MustInherit Class AclTraffic Inherits DeputyBase
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;
var aclTraffic = AclTraffic.AllTraffic();
Synopsis
Constructors
AclTraffic() | The traffic that is configured using a Network ACL entry. |
Methods
AllTraffic() | Apply the ACL entry to all traffic. |
Icmp(IAclIcmp) | Apply the ACL entry to ICMP traffic of given type and code. |
Icmpv6(IAclIcmp) | Apply the ACL entry to ICMPv6 traffic of given type and code. |
TcpPort(double) | Apply the ACL entry to TCP traffic on a given port. |
TcpPortRange(double, double) | Apply the ACL entry to TCP traffic on a given port range. |
ToTrafficConfig() | The traffic that is configured using a Network ACL entry. |
UdpPort(double) | Apply the ACL entry to UDP traffic on a given port. |
UdpPortRange(double, double) | Apply the ACL entry to UDP traffic on a given port range. |
Constructors
AclTraffic()
The traffic that is configured using a Network ACL entry.
protected AclTraffic()
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;
var aclTraffic = AclTraffic.AllTraffic();
Methods
AllTraffic()
Apply the ACL entry to all traffic.
public static AclTraffic AllTraffic()
Returns
Remarks
ExampleMetadata: fixture=_generated
Icmp(IAclIcmp)
Apply the ACL entry to ICMP traffic of given type and code.
public static AclTraffic Icmp(IAclIcmp props)
Parameters
- props IAclIcmp
Returns
Remarks
ExampleMetadata: fixture=_generated
Icmpv6(IAclIcmp)
Apply the ACL entry to ICMPv6 traffic of given type and code.
public static AclTraffic Icmpv6(IAclIcmp props)
Parameters
- props IAclIcmp
Returns
Remarks
Requires an IPv6 CIDR block.
TcpPort(double)
Apply the ACL entry to TCP traffic on a given port.
public static AclTraffic TcpPort(double port)
Parameters
- port double
Returns
Remarks
ExampleMetadata: fixture=_generated
TcpPortRange(double, double)
Apply the ACL entry to TCP traffic on a given port range.
public static AclTraffic TcpPortRange(double startPort, double endPort)
Parameters
Returns
Remarks
ExampleMetadata: fixture=_generated
ToTrafficConfig()
The traffic that is configured using a Network ACL entry.
public abstract IAclTrafficConfig ToTrafficConfig()
Returns
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;
var aclTraffic = AclTraffic.AllTraffic();
UdpPort(double)
Apply the ACL entry to UDP traffic on a given port.
public static AclTraffic UdpPort(double port)
Parameters
- port double
Returns
Remarks
ExampleMetadata: fixture=_generated
UdpPortRange(double, double)
Apply the ACL entry to UDP traffic on a given port range.
public static AclTraffic UdpPortRange(double startPort, double endPort)
Parameters
Returns
Remarks
ExampleMetadata: fixture=_generated