Interface AclPortRange

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AclPortRange.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:28.359Z") @Stability(Stable) public interface AclPortRange extends software.amazon.jsii.JsiiSerializable
Properties to create PortRange.

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.*;
 AclPortRange aclPortRange = AclPortRange.builder()
         .from(123)
         .to(123)
         .build();
 
  • Method Details

    • getFrom

      @Stability(Stable) @Nullable default Number getFrom()
      The first port in the range.

      Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.

    • getTo

      @Stability(Stable) @Nullable default Number getTo()
      The last port in the range.

      Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.

    • builder

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