Skip to content
v2.274.0

OriginIpAddressType Enum ​

The IP address type for the origin.

Determines whether CloudFront uses IPv4, IPv6, or both when connecting to the origin.

Example ​

ts
const origin = new origins.HttpOrigin('www.example.com', {
  ipAddressType: cloudfront.OriginIpAddressType.IPV6, // IPv4, IPv6, or DUALSTACK
});

new cloudfront.Distribution(this, 'Distribution', {
  defaultBehavior: { origin },
});

Members ​

MemberDescription
IPV4Use only IPv4 addresses.
IPV6Use only IPv6 addresses.
DUALSTACKUse both IPv4 and IPv6 addresses.

Referenced by ​