Skip to content
v2.273.0

AWS::Lightsail Construct Library ​

This module is part of the AWS Cloud Development Kit project.

ts
import * as lightsail from 'aws-cdk-lib/aws-lightsail';
python
import aws_cdk.aws_lightsail as lightsail
java
import software.amazon.awscdk.services.lightsail.*;
csharp
using Amazon.CDK.AWS.Lightsail;
go
import lightsail "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::Lightsail.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Types ​

NameKindSummary
CfnAlarmConstruct (L1)The AWS::Lightsail::Alarm resource specifies an alarm that can be used to monitor a single metric for one of your Lightsail resources.
CfnBucketConstruct (L1)The AWS::Lightsail::Bucket resource specifies a bucket.
CfnCertificateConstruct (L1)The AWS::Lightsail::Certificate resource specifies an SSL/TLS certificate that you can use with a content delivery network (CDN) distribution and a container service.
CfnContactMethodConstruct (L1)Resource Type definition for AWS::Lightsail::ContactMethod.
CfnContainerConstruct (L1)The AWS::Lightsail::Container resource specifies a container service.
CfnDatabaseConstruct (L1)The AWS::Lightsail::Database resource specifies an Amazon Lightsail database.
CfnDatabaseSnapshotConstruct (L1)Resource Type definition for AWS::Lightsail::DatabaseSnapshot.
CfnDiskConstruct (L1)The AWS::Lightsail::Disk resource specifies a disk that can be attached to an Amazon Lightsail instance that is in the same AWS Region and Availability Zone.
CfnDiskSnapshotConstruct (L1)Describes a block storage disk snapshot.
CfnDistributionConstruct (L1)The AWS::Lightsail::Distribution resource specifies a content delivery network (CDN) distribution.
CfnDomainConstruct (L1)Describes a domain where you are storing recordsets.
CfnInstanceConstruct (L1)The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.
CfnInstanceSnapshotConstruct (L1)Describes an instance snapshot.
CfnKeyPairConstruct (L1)Resource Type definition for AWS::Lightsail::KeyPair.
CfnLoadBalancerConstruct (L1)The AWS::Lightsail::LoadBalancer resource specifies a load balancer that can be used with Lightsail instances.
CfnLoadBalancerTlsCertificateConstruct (L1)The AWS::Lightsail::LoadBalancerTlsCertificate resource specifies a TLS certificate that can be used with a Lightsail load balancer.
CfnStaticIpConstruct (L1)The AWS::Lightsail::StaticIp resource specifies a static IP that can be attached to an Amazon Lightsail instance that is in the same AWS Region and Availability Zone.
CfnAlarmPropsStructProperties for defining a CfnAlarm.
CfnBucket.AccessRulesPropertyStructAccessRules is a property of the AWS::Lightsail::Bucket resource. It describes access rules for a bucket.
CfnBucketPropsStructProperties for defining a CfnBucket.
CfnCertificatePropsStructProperties for defining a CfnCertificate.
CfnContactMethodPropsStructProperties for defining a CfnContactMethod.
CfnContainer.ContainerPropertyStructContainer is a property of the ContainerServiceDeployment property. It describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.
CfnContainer.ContainerServiceDeploymentPropertyStructContainerServiceDeployment is a property of the AWS::Lightsail::Container resource. It describes a container deployment configuration of a container service.
CfnContainer.EcrImagePullerRolePropertyStructDescribes the IAM role that you can use to grant a Lightsail container service access to Amazon ECR private repositories.
CfnContainer.EnvironmentVariablePropertyStructEnvironmentVariable is a property of the Container property. It describes the environment variables of a container on a container service which are key-value parameters that provide dynamic configuration of the application or script run by the container.
CfnContainer.HealthCheckConfigPropertyStructHealthCheckConfig is a property of the PublicEndpoint property. It describes the healthcheck configuration of a container deployment on a container service.
CfnContainer.PortInfoPropertyStructPortInfo is a property of the Container property. It describes the ports to open and the protocols to use for a container on a Amazon Lightsail container service.
CfnContainer.PrivateRegistryAccessPropertyStructDescribes the configuration for an Amazon Lightsail container service to access private container image repositories, such as ( Amazon ECR ) private repositories.
CfnContainer.PublicDomainNamePropertyStructPublicDomainName is a property of the AWS::Lightsail::Container resource. It describes the public domain names to use with a container service, such as example.com and www.example.com . It also describes the certificates to use with a container service.
CfnContainer.PublicEndpointPropertyStructPublicEndpoint is a property of the ContainerServiceDeployment property. It describes describes the settings of the public endpoint of a container on a container service.
CfnContainerPropsStructProperties for defining a CfnContainer.
CfnDatabase.RelationalDatabaseParameterPropertyStructRelationalDatabaseParameter is a property of the AWS::Lightsail::Database resource. It describes parameters for the database.
CfnDatabasePropsStructProperties for defining a CfnDatabase.
CfnDatabaseSnapshot.LocationPropertyStructThe Region name and Availability Zone where the database snapshot is located.
CfnDatabaseSnapshotPropsStructProperties for defining a CfnDatabaseSnapshot.
CfnDisk.AddOnPropertyStructAddOn is a property of the AWS::Lightsail::Disk resource. It describes the add-ons for a disk.
CfnDisk.AutoSnapshotAddOnPropertyStructAutoSnapshotAddOn is a property of the AddOn property. It describes the automatic snapshot add-on for a disk.
CfnDisk.LocationPropertyStructThe AWS Region and Availability Zone where the disk is located.
CfnDiskPropsStructProperties for defining a CfnDisk.
CfnDiskSnapshot.LocationPropertyStructThe AWS Region and Availability Zone where the disk snapshot was created.
CfnDiskSnapshotPropsStructProperties for defining a CfnDiskSnapshot.
CfnDistribution.CacheBehaviorPerPathPropertyStructCacheBehaviorPerPath is a property of the AWS::Lightsail::Distribution resource. It describes the per-path cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.
CfnDistribution.CacheBehaviorPropertyStructCacheBehavior is a property of the AWS::Lightsail::Distribution resource. It describes the default cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.
CfnDistribution.CacheSettingsPropertyStructCacheSettings is a property of the AWS::Lightsail::Distribution resource. It describes the cache settings of an Amazon Lightsail content delivery network (CDN) distribution.
CfnDistribution.CookieObjectPropertyStructCookieObject is a property of the CacheSettings property. It describes whether an Amazon Lightsail content delivery network (CDN) distribution forwards cookies to the origin and, if so, which ones.
CfnDistribution.HeaderObjectPropertyStructHeaderObject is a property of the CacheSettings property. It describes the request headers used by your distribution, which caches your content based on the request headers.
CfnDistribution.InputOriginPropertyStructInputOrigin is a property of the AWS::Lightsail::Distribution resource. It describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.
CfnDistribution.QueryStringObjectPropertyStructQueryStringObject is a property of the CacheSettings property. It describes the query string parameters that an Amazon Lightsail content delivery network (CDN) distribution to bases caching on.
CfnDistributionPropsStructProperties for defining a CfnDistribution.
CfnDomain.DomainEntryPropertyStructDescribes a domain recordset entry.
CfnDomain.LocationPropertyStructThe AWS Region and Availability Zone where the domain was created (read-only).
CfnDomainPropsStructProperties for defining a CfnDomain.
CfnInstance.AddOnPropertyStructAddOn is a property of the AWS::Lightsail::Instance resource. It describes the add-ons for an instance.
CfnInstance.AutoSnapshotAddOnPropertyStructAutoSnapshotAddOn is a property of the AddOn property. It describes the automatic snapshot add-on for an instance.
CfnInstance.DiskPropertyStructDisk is a property of the Hardware property. It describes a disk attached to an instance.
CfnInstance.HardwarePropertyStructHardware is a property of the AWS::Lightsail::Instance resource. It describes the hardware properties for the instance, such as the vCPU count, attached disks, and amount of RAM.
CfnInstance.LocationPropertyStructLocation is a property of the AWS::Lightsail::Instance resource. It describes the location for an instance.
CfnInstance.MonthlyTransferPropertyStructMonthlyTransfer is a property of the Networking property. It describes the amount of allocated monthly data transfer (in GB) for an instance.
CfnInstance.NetworkingPropertyStructNetworking is a property of the AWS::Lightsail::Instance resource. It describes the public ports and the monthly amount of data transfer allocated for the instance.
CfnInstance.PortPropertyStructPort is a property of the Networking property. It describes information about ports for an instance.
CfnInstance.StatePropertyStructState is a property of the AWS::Lightsail::Instance resource. It describes the status code and the state (for example, running ) of an instance.
CfnInstancePropsStructProperties for defining a CfnInstance.
CfnInstanceSnapshot.LocationPropertyStructThe region name and Availability Zone where you created the snapshot.
CfnInstanceSnapshotPropsStructProperties for defining a CfnInstanceSnapshot.
CfnKeyPair.ResourceLocationPropertyStruct
CfnKeyPairPropsStructProperties for defining a CfnKeyPair.
CfnLoadBalancerPropsStructProperties for defining a CfnLoadBalancer.
CfnLoadBalancerTlsCertificatePropsStructProperties for defining a CfnLoadBalancerTlsCertificate.
CfnStaticIpPropsStructProperties for defining a CfnStaticIp.