Interface CfnNetworkAclEntry.IcmpProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnNetworkAclEntry.IcmpProperty.Jsii$Proxy
Enclosing class:
CfnNetworkAclEntry

@Stability(Stable) public static interface CfnNetworkAclEntry.IcmpProperty extends software.amazon.jsii.JsiiSerializable
Describes the ICMP type and code.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 IcmpProperty icmpProperty = IcmpProperty.builder()
         .code(123)
         .type(123)
         .build();
 
  • Method Details

    • getCode

      @Stability(Stable) @Nullable default Number getCode()
      The Internet Control Message Protocol (ICMP) code.

      You can use -1 to specify all ICMP codes for the given ICMP type. Requirement is conditional: Required if you specify 1 (ICMP) for the protocol parameter.

    • getType

      @Stability(Stable) @Nullable default Number getType()
      The Internet Control Message Protocol (ICMP) type.

      You can use -1 to specify all ICMP types. Conditional requirement: Required if you specify 1 (ICMP) for the CreateNetworkAclEntry protocol parameter.

    • builder

      @Stability(Stable) static CfnNetworkAclEntry.IcmpProperty.Builder builder()
      Returns:
      a CfnNetworkAclEntry.IcmpProperty.Builder of CfnNetworkAclEntry.IcmpProperty