Enum OriginIpAddressType
- All Implemented Interfaces:
Serializable,Comparable<OriginIpAddressType>,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:00.603Z")
@Stability(Stable)
public enum OriginIpAddressType
extends Enum<OriginIpAddressType>
The IP address type for the origin.
Determines whether CloudFront uses IPv4, IPv6, or both when connecting to the origin.
Example:
HttpOrigin origin = HttpOrigin.Builder.create("www.example.com")
.ipAddressType(OriginIpAddressType.IPV6)
.build();
Distribution.Builder.create(this, "Distribution")
.defaultBehavior(BehaviorOptions.builder().origin(origin).build())
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OriginIpAddressTypeReturns the enum constant of this type with the specified name.static OriginIpAddressType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IPV4
Use only IPv4 addresses. -
IPV6
Use only IPv6 addresses. -
DUALSTACK
Use both IPv4 and IPv6 addresses.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-