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
| Member | Description |
|---|---|
IPV4 | Use only IPv4 addresses. |
IPV6 | Use only IPv6 addresses. |
DUALSTACK | Use both IPv4 and IPv6 addresses. |
Referenced by
FunctionUrlOriginProps.ipAddressTypeip_address_typeipAddressTypeIpAddressTypeIpAddressTypeHttpOriginProps.ipAddressTypeip_address_typeipAddressTypeIpAddressTypeIpAddressType