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:
- Search Construct Hub for Lightsail construct libraries
- Use the automatically generated L1 constructs, in the same way you would use the CloudFormation AWS::Lightsail resources directly.
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
Constructs (L1)
CfnAlarmConstruct (L1)
TheAWS::Lightsail::Alarmresource specifies an alarm that can be used to monitor a single metric for one of your Lightsail resources.CfnBucketConstruct (L1)
TheAWS::Lightsail::Bucketresource specifies a bucket.CfnCertificateConstruct (L1)
TheAWS::Lightsail::Certificateresource 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)
TheAWS::Lightsail::Containerresource specifies a container service.CfnDatabaseConstruct (L1)
TheAWS::Lightsail::Databaseresource specifies an Amazon Lightsail database.CfnDatabaseSnapshotConstruct (L1)
Resource Type definition for AWS::Lightsail::DatabaseSnapshot.CfnDiskConstruct (L1)
TheAWS::Lightsail::Diskresource 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)
TheAWS::Lightsail::Distributionresource specifies a content delivery network (CDN) distribution.CfnDomainConstruct (L1)
Describes a domain where you are storing recordsets.CfnInstanceConstruct (L1)
TheAWS::Lightsail::Instanceresource specifies an Amazon Lightsail instance.CfnInstanceSnapshotConstruct (L1)
Describes an instance snapshot.CfnKeyPairConstruct (L1)
Resource Type definition for AWS::Lightsail::KeyPair.CfnLoadBalancerConstruct (L1)
TheAWS::Lightsail::LoadBalancerresource specifies a load balancer that can be used with Lightsail instances.CfnLoadBalancerTlsCertificateConstruct (L1)
TheAWS::Lightsail::LoadBalancerTlsCertificateresource specifies a TLS certificate that can be used with a Lightsail load balancer.CfnStaticIpConstruct (L1)
TheAWS::Lightsail::StaticIpresource specifies a static IP that can be attached to an Amazon Lightsail instance that is in the same AWS Region and Availability Zone.
Structs
CfnAlarmPropsStruct
Properties for defining aCfnAlarm.CfnBucket.AccessRulesPropertyStructAccessRulesis a property of the AWS::Lightsail::Bucket resource. It describes access rules for a bucket.CfnBucketPropsStruct
Properties for defining aCfnBucket.CfnCertificatePropsStruct
Properties for defining aCfnCertificate.CfnContactMethodPropsStruct
Properties for defining aCfnContactMethod.CfnContainer.ContainerPropertyStructContaineris 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.StructContainer Service Deployment Property ContainerServiceDeploymentis a property of the AWS::Lightsail::Container resource. It describes a container deployment configuration of a container service.CfnContainer.StructEcrImagePullerRoleProperty
Describes the IAM role that you can use to grant a Lightsail container service access to Amazon ECR private repositories.CfnContainer.StructEnvironmentVariableProperty EnvironmentVariableis 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.StructHealthCheckConfigProperty HealthCheckConfigis a property of the PublicEndpoint property. It describes the healthcheck configuration of a container deployment on a container service.CfnContainer.PortInfoPropertyStructPortInfois 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.StructPrivateRegistryAccessProperty
Describes the configuration for an Amazon Lightsail container service to access private container image repositories, such as ( Amazon ECR ) private repositories.CfnContainer.StructPublicDomainNameProperty PublicDomainNameis a property of the AWS::Lightsail::Container resource. It describes the public domain names to use with a container service, such asexample.comandwww.example.com. It also describes the certificates to use with a container service.CfnContainer.StructPublicEndpointProperty PublicEndpointis a property of the ContainerServiceDeployment property. It describes describes the settings of the public endpoint of a container on a container service.CfnContainerPropsStruct
Properties for defining aCfnContainer.CfnDatabase.StructRelational Database Parameter Property RelationalDatabaseParameteris a property of the AWS::Lightsail::Database resource. It describes parameters for the database.CfnDatabasePropsStruct
Properties for defining aCfnDatabase.CfnDatabaseSnapshot.StructLocationProperty
The Region name and Availability Zone where the database snapshot is located.CfnDatabaseSnapshotPropsStruct
Properties for defining aCfnDatabaseSnapshot.CfnDisk.AddOnPropertyStructAddOnis a property of the AWS::Lightsail::Disk resource. It describes the add-ons for a disk.CfnDisk.StructAutoSnapshotAddOnProperty AutoSnapshotAddOnis a property of the AddOn property. It describes the automatic snapshot add-on for a disk.CfnDisk.LocationPropertyStruct
The AWS Region and Availability Zone where the disk is located.CfnDiskPropsStruct
Properties for defining aCfnDisk.CfnDiskSnapshot.LocationPropertyStruct
The AWS Region and Availability Zone where the disk snapshot was created.CfnDiskSnapshotPropsStruct
Properties for defining aCfnDiskSnapshot.CfnDistribution.StructCacheBehaviorPerPathProperty CacheBehaviorPerPathis 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.StructCacheBehaviorProperty CacheBehavioris a property of the AWS::Lightsail::Distribution resource. It describes the default cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.CfnDistribution.StructCacheSettingsProperty CacheSettingsis a property of the AWS::Lightsail::Distribution resource. It describes the cache settings of an Amazon Lightsail content delivery network (CDN) distribution.CfnDistribution.StructCookieObjectProperty CookieObjectis 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.StructHeaderObjectProperty HeaderObjectis 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.StructInputOriginProperty InputOriginis a property of the AWS::Lightsail::Distribution resource. It describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.CfnDistribution.StructQueryStringObjectProperty QueryStringObjectis 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.CfnDistributionPropsStruct
Properties for defining aCfnDistribution.CfnDomain.DomainEntryPropertyStruct
Describes a domain recordset entry.CfnDomain.LocationPropertyStruct
The AWS Region and Availability Zone where the domain was created (read-only).CfnDomainPropsStruct
Properties for defining aCfnDomain.CfnInstance.AddOnPropertyStructAddOnis a property of the AWS::Lightsail::Instance resource. It describes the add-ons for an instance.CfnInstance.StructAutoSnapshotAddOnProperty AutoSnapshotAddOnis a property of the AddOn property. It describes the automatic snapshot add-on for an instance.CfnInstance.DiskPropertyStructDiskis a property of the Hardware property. It describes a disk attached to an instance.CfnInstance.HardwarePropertyStructHardwareis 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.LocationPropertyStructLocationis a property of the AWS::Lightsail::Instance resource. It describes the location for an instance.CfnInstance.StructMonthlyTransferProperty MonthlyTransferis a property of the Networking property. It describes the amount of allocated monthly data transfer (in GB) for an instance.CfnInstance.NetworkingPropertyStructNetworkingis 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.PortPropertyStructPortis a property of the Networking property. It describes information about ports for an instance.CfnInstance.StatePropertyStructStateis a property of the AWS::Lightsail::Instance resource. It describes the status code and the state (for example,running) of an instance.CfnInstancePropsStruct
Properties for defining aCfnInstance.CfnInstanceSnapshot.StructLocationProperty
The region name and Availability Zone where you created the snapshot.CfnInstanceSnapshotPropsStruct
Properties for defining aCfnInstanceSnapshot.CfnKeyPair.StructResourceLocationProperty CfnKeyPairPropsStruct
Properties for defining aCfnKeyPair.CfnLoadBalancerPropsStruct
Properties for defining aCfnLoadBalancer.CfnStructLoad Balancer Tls Certificate Props
Properties for defining aCfnLoadBalancerTlsCertificate.CfnStaticIpPropsStruct
Properties for defining aCfnStaticIp.