34 CDK constructs available in aws-cdk-lib/aws-cloudfront
import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';Higher-level abstractions with sensible defaults and convenience methods.
A Cache Policy configuration.
Amazon CloudFront is a global content delivery network (CDN) service that securely delivers data, videos, applications, and APIs to your viewers with low latency and high transfer speeds. CloudFront fronts user provided content and caches it at edge locations across the world. Here's how you can use this construct: ```ts const sourceBucket = new s3.Bucket(this, 'Bucket'); const distribution = new cloudfront.CloudFrontWebDistribution(this, 'MyDistribution', { originConfigs: [ { s3OriginSource: { s3BucketSource: sourceBucket, }, behaviors : [ {isDefaultBehavior: true}], }, ], }); ``` This will create a CloudFront distribution that uses your S3Bucket as its origin. You can customize the distribution using additional properties from the CloudFrontWebDistributionProps interface.
A CloudFront distribution with associated origin(s) and caching behavior(s).
A CloudFront Function.
An Origin Access Control for Lambda Function URLs.
A Key Group configuration.
A CloudFront Key Value Store.
An origin access identity is a special CloudFront user that you can associate with Amazon S3 origins, so that you can secure all or just some of your Amazon S3 content.
A Origin Request Policy configuration.
A Public Key Configuration.
A Realtime Log Config configuration.
A Response Headers Policy configuration.
An Origin Access Control for Amazon S3 origins.
A CloudFront VPC Origin configuration.
Direct CloudFormation resource mappings. One-to-one with CloudFormation resource types.
AWS::CloudFront::AnycastIpListAWS::CloudFront::CachePolicyAWS::CloudFront::CloudFrontOriginAccessIdentityAWS::CloudFront::ConnectionFunctionAWS::CloudFront::ConnectionGroupAWS::CloudFront::ContinuousDeploymentPolicyAWS::CloudFront::DistributionAWS::CloudFront::DistributionTenantAWS::CloudFront::FunctionAWS::CloudFront::KeyGroupAWS::CloudFront::KeyValueStoreAWS::CloudFront::MonitoringSubscriptionAWS::CloudFront::OriginAccessControlAWS::CloudFront::OriginRequestPolicyAWS::CloudFront::PublicKeyAWS::CloudFront::RealtimeLogConfigAWS::CloudFront::ResponseHeadersPolicyAWS::CloudFront::StreamingDistributionAWS::CloudFront::TrustStoreAWS::CloudFront::VpcOriginEverything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.
Download Free Infographicaws-cdk-lib/aws-cloudfront