AWS::Lightsail::DistributionResource Type definition for AWS::Lightsail::Distribution
10 configurable properties. 4 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
BundleId | string | Required |
DefaultCacheBehavior | CacheBehavior | Required |
DistributionName | string | RequiredCreate-only |
Origin | InputOrigin | Required |
CacheBehaviors | Array<CacheBehaviorPerPath> | |
CacheBehaviorSettings | CacheSettings | |
CertificateName | string | |
IpAddressType | string | Create-only |
IsEnabled | boolean | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AbleToUpdateBundle | boolean | Indicates whether the bundle that is currently applied to your distribution, specified using the distributionName parameter, can be changed to another bundle. |
DistributionArn | string | - |
Status | string | The status of the distribution. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::Distribution
Resources:
MyResource:
Type: AWS::Lightsail::Distribution
Properties:
DistributionName: "my-distributionname"
BundleId: "my-bundleid"
DefaultCacheBehavior: "value"
Origin: "value"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
lightsail:AttachCertificateToDistributionlightsail:CreateDistributionlightsail:DetachCertificateFromDistributionlightsail:GetCertificateslightsail:GetCertificateDetailslightsail:GetDistributionslightsail:TagResourcelightsail:UntagResourcelightsail:GetDistributionslightsail:AttachCertificateToDistributionlightsail:DetachCertificateFromDistributionlightsail:GetCertificateslightsail:GetCertificateDetailslightsail:GetDistributionslightsail:TagResourcelightsail:UntagResourcelightsail:UpdateDistributionlightsail:DeleteDistributionlightsail:GetDistributionslightsail:GetDistributionsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterDistributionNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DistributionNameIpAddressType