Class AclTrafficConfig
Acl Configuration for traffic.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class AclTrafficConfig : Object, IAclTrafficConfig
Syntax (vb)
Public Class AclTrafficConfig
Inherits Object
Implements IAclTrafficConfig
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 aclTrafficConfig = new AclTrafficConfig {
Protocol = 123,
// the properties below are optional
Icmp = new AclIcmp {
Code = 123,
Type = 123
},
PortRange = new AclPortRange {
From = 123,
To = 123
}
};
Synopsis
Constructors
AclTrafficConfig() |
Properties
Icmp | The Internet Control Message Protocol (ICMP) code and type. |
PortRange | The range of port numbers for the UDP/TCP protocol. |
Protocol | The protocol number. |
Constructors
AclTrafficConfig()
public AclTrafficConfig()
Properties
Icmp
The Internet Control Message Protocol (ICMP) code and type.
public IAclIcmp Icmp { get; set; }
Property Value
Remarks
Default: - Required if specifying 1 (ICMP) for the protocol parameter.
PortRange
The range of port numbers for the UDP/TCP protocol.
public IAclPortRange PortRange { get; set; }
Property Value
Remarks
Default: - Required if specifying 6 (TCP) or 17 (UDP) for the protocol parameter
Protocol
The protocol number.
public double Protocol { get; set; }
Property Value
System.Double
Remarks
A value of "-1" means all protocols.
If you specify "-1" or a protocol number other than "6" (TCP), "17" (UDP), or "1" (ICMP), traffic on all ports is allowed, regardless of any ports or ICMP types or codes that you specify.
If you specify protocol "58" (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types and codes allowed, regardless of any that you specify. If you specify protocol "58" (ICMPv6) and specify an IPv6 CIDR block, you must specify an ICMP type and code.
Default: 17