AWS::Lightsail::DistributionThe `AWS::Lightsail::Distribution` resource specifies a content delivery network (CDN) distribution. You can create distributions only in the `us-east-1` AWS Region. A distribution is a globally distributed network of caching servers that improve the performance of your website or web application hosted on a Lightsail instance, static content hosted on a Lightsail bucket, or through a Lightsail load balancer.
import { CfnDistribution } from 'aws-cdk-lib/aws-lightsail';Or use the module namespace:
import * as lightsail from 'aws-cdk-lib/aws-lightsail';
// lightsail.CfnDistributionConfiguration passed to the constructor as CfnDistributionProps.
bundleIdRequiredstringThe ID of the bundle applied to the distribution.
defaultCacheBehaviorRequiredIResolvable | CacheBehaviorPropertyAn object that describes the default cache behavior of the distribution.
distributionNameRequiredstringThe name of the distribution.
originRequiredIResolvable | InputOriginPropertyAn object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer. The distribution pulls, caches, and serves content from the origin.
cacheBehaviorsOptionalIResolvable | IResolvable | CacheBehaviorPerPathProperty[]An array of objects that describe the per-path cache behavior of the distribution.
cacheBehaviorSettingsOptionalIResolvable | CacheSettingsPropertyAn object that describes the cache behavior settings of the distribution.
certificateNameOptionalstringThe name of the SSL/TLS certificate attached to the distribution.
ipAddressTypeOptionalstringThe IP address type of the distribution. The possible values are `ipv4` for IPv4 only, and `dualstack` for IPv4 and IPv6.
isEnabledOptionalboolean | IResolvableA Boolean value indicating whether the distribution is enabled.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) in the *AWS CloudFormation User Guide* . > The `Value` of `Tags` is optional for Lightsail resources.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-lightsailAWS::Lightsail::Distribution