AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFront::Distribution

CfnDistribution

A distribution tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery.

Import

import { CfnDistribution } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.CfnDistribution

Properties

Configuration passed to the constructor as CfnDistributionProps.

distributionConfigRequired
IResolvable | DistributionConfigProperty

The distribution's configuration.

tagsOptional
CfnTag[]

A complex type that contains zero or more `Tag` elements.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic