I see in aws-cdk there are two constructs:
Each have different props that do not look compatible with each other.
I'm wondering which one to use?
I see in aws-cdk there are two constructs:
Each have different props that do not look compatible with each other.
I'm wondering which one to use?
The AWS CloudFrontWebDistribution
is the original method for working with CloudFront distributions. But now, they had implemented a new method that is provided by Distribution
. You can use both CloudFrontWebDistribution as well as Distribution for working with CloudFront distributions, but Distribution
has a simpler interface and they receive new features faster. So, it is recommended to use Distribution
instead of CloudFrontWebDistribution
.
You can use CloudFrontWebDistribution unless you're looking to have RTMP (streaming) distribution then you can configure the Distribution