Skip to content
v2.278.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 ​

Constructs (L1) ​

  • CfnAlarm Construct (L1)
    The AWS::Lightsail::Alarm resource specifies an alarm that can be used to monitor a single metric for one of your Lightsail resources.
  • CfnBucket Construct (L1)
    The AWS::Lightsail::Bucket resource specifies a bucket.
  • CfnCertificate Construct (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.
  • CfnContactMethod Construct (L1)
    Resource Type definition for AWS::Lightsail::ContactMethod.
  • CfnContainer Construct (L1)
    The AWS::Lightsail::Container resource specifies a container service.
  • CfnDatabase Construct (L1)
    The AWS::Lightsail::Database resource specifies an Amazon Lightsail database.
  • CfnDatabaseSnapshot Construct (L1)
    Resource Type definition for AWS::Lightsail::DatabaseSnapshot.
  • CfnDisk Construct (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.
  • CfnDiskSnapshot Construct (L1)
    Describes a block storage disk snapshot.
  • CfnDistribution Construct (L1)
    The AWS::Lightsail::Distribution resource specifies a content delivery network (CDN) distribution.
  • CfnDomain Construct (L1)
    Describes a domain where you are storing recordsets.
  • CfnInstance Construct (L1)
    The AWS::Lightsail::Instance resource specifies an Amazon Lightsail instance.
  • CfnInstanceSnapshot Construct (L1)
    Describes an instance snapshot.
  • CfnKeyPair Construct (L1)
    Resource Type definition for AWS::Lightsail::KeyPair.
  • CfnLoadBalancer Construct (L1)
    The AWS::Lightsail::LoadBalancer resource specifies a load balancer that can be used with Lightsail instances.
  • CfnLoadBalancerTlsCertificate Construct (L1)
    The AWS::Lightsail::LoadBalancerTlsCertificate resource specifies a TLS certificate that can be used with a Lightsail load balancer.
  • CfnStaticIp Construct (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.

Structs ​