OriginIpAddressType

class aws_cdk.aws_cloudfront.OriginIpAddressType(*values)

Bases: Enum

The IP address type for the origin.

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

ExampleMetadata:

infused

Example:

origin = origins.HttpOrigin("www.example.com",
    ip_address_type=cloudfront.OriginIpAddressType.IPV6
)

cloudfront.Distribution(self, "Distribution",
    default_behavior=cloudfront.BehaviorOptions(origin=origin)
)

Attributes

DUALSTACK

Use both IPv4 and IPv6 addresses.

IPV4

Use only IPv4 addresses.

IPV6

Use only IPv6 addresses.