Class AclCidr
Either an IPv4 or an IPv6 CIDR.
Inheritance
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public abstract class AclCidr : DeputyBase
Syntax (vb)
Public MustInherit Class AclCidr
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 aclCidr = AclCidr.AnyIpv4();
Synopsis
Constructors
AclCidr() | |
AclCidr(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AclCidr(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
AnyIpv4() | The CIDR containing all IPv4 addresses (i.e., 0.0.0.0/0). |
AnyIpv6() | The CIDR containing all IPv6 addresses (i.e., ::/0). |
Ipv4(String) | An IP network range in CIDR notation (for example, 172.16.0.0/24). |
Ipv6(String) | An IPv6 network range in CIDR notation (for example, 2001:db8::/48). |
ToCidrConfig() |
Constructors
AclCidr()
protected AclCidr()
AclCidr(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AclCidr(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AclCidr(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AclCidr(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
AnyIpv4()
The CIDR containing all IPv4 addresses (i.e., 0.0.0.0/0).
public static AclCidr AnyIpv4()
Returns
AnyIpv6()
The CIDR containing all IPv6 addresses (i.e., ::/0).
public static AclCidr AnyIpv6()
Returns
Ipv4(String)
An IP network range in CIDR notation (for example, 172.16.0.0/24).
public static AclCidr Ipv4(string ipv4Cidr)
Parameters
- ipv4Cidr System.String
Returns
Ipv6(String)
An IPv6 network range in CIDR notation (for example, 2001:db8::/48).
public static AclCidr Ipv6(string ipv6Cidr)
Parameters
- ipv6Cidr System.String
Returns