Class AclTraffic
The traffic that is configured using a Network ACL entry.
Inheritance
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() | |
AclTraffic(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AclTraffic(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
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() | |
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()
protected AclTraffic()
AclTraffic(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AclTraffic(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AclTraffic(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AclTraffic(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
AllTraffic()
Icmp(IAclIcmp)
Apply the ACL entry to ICMP traffic of given type and code.
public static AclTraffic Icmp(IAclIcmp props)
Parameters
- props IAclIcmp
Returns
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 System.Double
Returns
TcpPortRange(Double, Double)
Apply the ACL entry to TCP traffic on a given port range.
public static AclTraffic TcpPortRange(double startPort, double endPort)
Parameters
- startPort System.Double
- endPort System.Double
Returns
ToTrafficConfig()
UdpPort(Double)
Apply the ACL entry to UDP traffic on a given port.
public static AclTraffic UdpPort(double port)
Parameters
- port System.Double
Returns
UdpPortRange(Double, Double)
Apply the ACL entry to UDP traffic on a given port range.
public static AclTraffic UdpPortRange(double startPort, double endPort)
Parameters
- startPort System.Double
- endPort System.Double
Returns