enum OriginIpAddressType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.OriginIpAddressType |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#OriginIpAddressType |
![]() | software.amazon.awscdk.services.cloudfront.OriginIpAddressType |
![]() | aws_cdk.aws_cloudfront.OriginIpAddressType |
![]() | aws-cdk-lib » aws_cloudfront » OriginIpAddressType |
The IP address type for the origin.
Determines whether CloudFront uses IPv4, IPv6, or both when connecting to the origin.
Example
const origin = new origins.HttpOrigin('www.example.com', {
ipAddressType: cloudfront.OriginIpAddressType.IPV6, // IPv4, IPv6, or DUALSTACK
});
new cloudfront.Distribution(this, 'Distribution', {
defaultBehavior: { origin },
});
Members
Name | Description |
---|---|
IPV4 | Use only IPv4 addresses. |
IPV6 | Use only IPv6 addresses. |
DUALSTACK | Use both IPv4 and IPv6 addresses. |
IPV4
Use only IPv4 addresses.
IPV6
Use only IPv6 addresses.
DUALSTACK
Use both IPv4 and IPv6 addresses.