Class: AWS.Lightsail
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Lightsail
- Identifier:
- lightsail
- API Version:
- 2016-11-28
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
Amazon Lightsail is the easiest way to get started with Amazon Web Services (Amazon Web Services) for developers who need to build websites or web applications. It includes everything you need to launch your project quickly - instances (virtual private servers), container services, storage buckets, managed databases, SSD-based block storage, static IP addresses, load balancers, content delivery network (CDN) distributions, DNS management of registered domains, and resource snapshots (backups) - for a low, predictable monthly price.
You can manage your Lightsail resources using the Lightsail console, Lightsail API, Command Line Interface (CLI), or SDKs. For more information about Lightsail concepts and tasks, see the Amazon Lightsail Developer Guide.
This API Reference provides detailed information about the actions, data types, parameters, and errors of the Lightsail service. For more information about the supported Amazon Web Services Regions, endpoints, and service quotas of the Lightsail service, see Amazon Lightsail Endpoints and Quotas in the Amazon Web Services General Reference.
Sending a Request Using Lightsail
var lightsail = new AWS.Lightsail();
lightsail.allocateStaticIp(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Lightsail object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var lightsail = new AWS.Lightsail({apiVersion: '2016-11-28'});
You can also set the API version globally in AWS.config.apiVersions
using
the lightsail service identifier:
AWS.config.apiVersions = {
lightsail: '2016-11-28',
// other service API versions
};
var lightsail = new AWS.Lightsail();
Constructor Summary collapse
-
new AWS.Lightsail(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
allocateStaticIp(params = {}, callback) ⇒ AWS.Request
Allocates a static IP address.
.
-
attachCertificateToDistribution(params = {}, callback) ⇒ AWS.Request
Attaches an SSL/TLS certificate to your Amazon Lightsail content delivery network (CDN) distribution.
After the certificate is attached, your distribution accepts HTTPS traffic for all of the domains that are associated with the certificate.
Use the
CreateCertificate
action to create a certificate that you can attach to your distribution.Only certificates created in the
us-east-1
Amazon Web Services Region can be attached to Lightsail distributions. -
attachDisk(params = {}, callback) ⇒ AWS.Request
Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.
The
attach disk
operation supports tag-based access control via resource tags applied to the resource identified bydisk name
. -
attachInstancesToLoadBalancer(params = {}, callback) ⇒ AWS.Request
Attaches one or more Lightsail instances to a load balancer.
After some time, the instances are attached to the load balancer and the health check status is available.
The
attach instances to load balancer
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
. -
attachLoadBalancerTlsCertificate(params = {}, callback) ⇒ AWS.Request
Attaches a Transport Layer Security (TLS) certificate to your load balancer.
-
attachStaticIp(params = {}, callback) ⇒ AWS.Request
Attaches a static IP address to a specific Amazon Lightsail instance.
.
-
closeInstancePublicPorts(params = {}, callback) ⇒ AWS.Request
Closes ports for a specific Amazon Lightsail instance.
The
CloseInstancePublicPorts
action supports tag-based access control via resource tags applied to the resource identified byinstanceName
. -
copySnapshot(params = {}, callback) ⇒ AWS.Request
Copies a manual snapshot of an instance or disk as another manual snapshot, or copies an automatic snapshot of an instance or disk as a manual snapshot.
-
createBucket(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lightsail bucket.
A bucket is a cloud storage resource available in the Lightsail object storage service.
-
createBucketAccessKey(params = {}, callback) ⇒ AWS.Request
Creates a new access key for the specified Amazon Lightsail bucket.
-
createCertificate(params = {}, callback) ⇒ AWS.Request
Creates an SSL/TLS certificate for an Amazon Lightsail content delivery network (CDN) distribution and a container service.
After the certificate is valid, use the
AttachCertificateToDistribution
action to use the certificate and its domains with your distribution. -
createCloudFormationStack(params = {}, callback) ⇒ AWS.Request
Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from an exported Amazon Lightsail snapshot.
-
createContactMethod(params = {}, callback) ⇒ AWS.Request
Creates an email or SMS text message contact method.
A contact method is used to send you notifications about your Amazon Lightsail resources.
-
createContainerService(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lightsail container service.
A Lightsail container service is a compute resource to which you can deploy containers.
-
createContainerServiceDeployment(params = {}, callback) ⇒ AWS.Request
Creates a deployment for your Amazon Lightsail container service.
A deployment specifies the containers that will be launched on the container service and their settings, such as the ports to open, the environment variables to apply, and the launch command to run.
-
createContainerServiceRegistryLogin(params = {}, callback) ⇒ AWS.Request
Creates a temporary set of log in credentials that you can use to log in to the Docker process on your local machine.
-
createDisk(params = {}, callback) ⇒ AWS.Request
Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (e.g.,
us-east-2a
).The
create disk
operation supports tag-based access control via request tags. -
createDiskFromSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a block storage disk from a manual or automatic snapshot of a disk.
-
createDiskSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of a block storage disk.
-
createDistribution(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lightsail content delivery network (CDN) distribution.
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.
-
createDomain(params = {}, callback) ⇒ AWS.Request
Creates a domain resource for the specified domain (e.g., example.com).
The
create domain
operation supports tag-based access control via request tags. -
createDomainEntry(params = {}, callback) ⇒ AWS.Request
Creates one of the following domain name system (DNS) records in a domain DNS zone: Address (A), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).
The
create domain entry
operation supports tag-based access control via resource tags applied to the resource identified bydomain name
. -
createGUISessionAccessDetails(params = {}, callback) ⇒ AWS.Request
Creates two URLs that are used to access a virtual computer’s graphical user interface (GUI) session.
-
createInstances(params = {}, callback) ⇒ AWS.Request
Creates one or more Amazon Lightsail instances.
The
create instances
operation supports tag-based access control via request tags. -
createInstancesFromSnapshot(params = {}, callback) ⇒ AWS.Request
Creates one or more new instances from a manual or automatic snapshot of an instance.
The
create instances from snapshot
operation supports tag-based access control via request tags and resource tags applied to the resource identified byinstance snapshot name
. -
createInstanceSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of a specific virtual private server, or instance.
-
createKeyPair(params = {}, callback) ⇒ AWS.Request
Creates a custom SSH key pair that you can use with an Amazon Lightsail instance.
Note: Use the DownloadDefaultKeyPair action to create a Lightsail default key pair in an Amazon Web Services Region where a default key pair does not currently exist.- createLoadBalancer(params = {}, callback) ⇒ AWS.Request
Creates a Lightsail load balancer.
- createLoadBalancerTlsCertificate(params = {}, callback) ⇒ AWS.Request
Creates an SSL/TLS certificate for an Amazon Lightsail load balancer.
TLS is just an updated, more secure version of Secure Socket Layer (SSL).
The
CreateLoadBalancerTlsCertificate
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
.- createRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Creates a new database in Amazon Lightsail.
The
create relational database
operation supports tag-based access control via request tags.- createRelationalDatabaseFromSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a new database from an existing database snapshot in Amazon Lightsail.
You can create a new database from a snapshot in if something goes wrong with your original database, or to change it to a different plan, such as a high availability or standard plan.
The
create relational database from snapshot
operation supports tag-based access control via request tags and resource tags applied to the resource identified by relationalDatabaseSnapshotName.- createRelationalDatabaseSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of your database in Amazon Lightsail.
- deleteAlarm(params = {}, callback) ⇒ AWS.Request
Deletes an alarm.
An alarm is used to monitor a single metric for one of your resources.
- deleteAutoSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes an automatic snapshot of an instance or disk.
- deleteBucket(params = {}, callback) ⇒ AWS.Request
Deletes a Amazon Lightsail bucket.
Note: When you delete your bucket, the bucket name is released and can be reused for a new bucket in your account or another Amazon Web Services account.- deleteBucketAccessKey(params = {}, callback) ⇒ AWS.Request
Deletes an access key for the specified Amazon Lightsail bucket.
We recommend that you delete an access key if the secret access key is compromised.
For more information about access keys, see Creating access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
.- deleteCertificate(params = {}, callback) ⇒ AWS.Request
Deletes an SSL/TLS certificate for your Amazon Lightsail content delivery network (CDN) distribution.
Certificates that are currently attached to a distribution cannot be deleted.
- deleteContactMethod(params = {}, callback) ⇒ AWS.Request
Deletes a contact method.
A contact method is used to send you notifications about your Amazon Lightsail resources.
- deleteContainerImage(params = {}, callback) ⇒ AWS.Request
Deletes a container image that is registered to your Amazon Lightsail container service.
.
- deleteContainerService(params = {}, callback) ⇒ AWS.Request
Deletes your Amazon Lightsail container service.
.
- deleteDisk(params = {}, callback) ⇒ AWS.Request
Deletes the specified block storage disk.
- deleteDiskSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes the specified disk snapshot.
When you make periodic snapshots of a disk, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot.
- deleteDistribution(params = {}, callback) ⇒ AWS.Request
Deletes your Amazon Lightsail content delivery network (CDN) distribution.
.
- deleteDomain(params = {}, callback) ⇒ AWS.Request
Deletes the specified domain recordset and all of its domain records.
The
delete domain
operation supports tag-based access control via resource tags applied to the resource identified bydomain name
.- deleteDomainEntry(params = {}, callback) ⇒ AWS.Request
Deletes a specific domain entry.
The
delete domain entry
operation supports tag-based access control via resource tags applied to the resource identified bydomain name
.- deleteInstance(params = {}, callback) ⇒ AWS.Request
Deletes an Amazon Lightsail instance.
The
delete instance
operation supports tag-based access control via resource tags applied to the resource identified byinstance name
.- deleteInstanceSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes a specific snapshot of a virtual private server (or instance).
The
delete instance snapshot
operation supports tag-based access control via resource tags applied to the resource identified byinstance snapshot name
.- deleteKeyPair(params = {}, callback) ⇒ AWS.Request
Deletes the specified key pair by removing the public key from Amazon Lightsail.
You can delete key pairs that were created using the ImportKeyPair and CreateKeyPair actions, as well as the Lightsail default key pair.
- deleteKnownHostKeys(params = {}, callback) ⇒ AWS.Request
Deletes the known host key or certificate used by the Amazon Lightsail browser-based SSH or RDP clients to authenticate an instance.
- deleteLoadBalancer(params = {}, callback) ⇒ AWS.Request
Deletes a Lightsail load balancer and all its associated SSL/TLS certificates.
- deleteLoadBalancerTlsCertificate(params = {}, callback) ⇒ AWS.Request
Deletes an SSL/TLS certificate associated with a Lightsail load balancer.
The
DeleteLoadBalancerTlsCertificate
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
.- deleteRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Deletes a database in Amazon Lightsail.
The
delete relational database
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.- deleteRelationalDatabaseSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes a database snapshot in Amazon Lightsail.
The
delete relational database snapshot
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.- detachCertificateFromDistribution(params = {}, callback) ⇒ AWS.Request
Detaches an SSL/TLS certificate from your Amazon Lightsail content delivery network (CDN) distribution.
After the certificate is detached, your distribution stops accepting traffic for all of the domains that are associated with the certificate.
.- detachDisk(params = {}, callback) ⇒ AWS.Request
Detaches a stopped block storage disk from a Lightsail instance.
- detachInstancesFromLoadBalancer(params = {}, callback) ⇒ AWS.Request
Detaches the specified instances from a Lightsail load balancer.
This operation waits until the instances are no longer needed before they are detached from the load balancer.
The
detach instances from load balancer
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
.- detachStaticIp(params = {}, callback) ⇒ AWS.Request
Detaches a static IP from the Amazon Lightsail instance to which it is attached.
.
- disableAddOn(params = {}, callback) ⇒ AWS.Request
Disables an add-on for an Amazon Lightsail resource.
- downloadDefaultKeyPair(params = {}, callback) ⇒ AWS.Request
Downloads the regional Amazon Lightsail default key pair.
This action also creates a Lightsail default key pair if a default key pair does not currently exist in the Amazon Web Services Region.
.- enableAddOn(params = {}, callback) ⇒ AWS.Request
Enables or modifies an add-on for an Amazon Lightsail resource.
- exportSnapshot(params = {}, callback) ⇒ AWS.Request
Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2).
- getActiveNames(params = {}, callback) ⇒ AWS.Request
Returns the names of all active (not deleted) resources.
.
- getAlarms(params = {}, callback) ⇒ AWS.Request
Returns information about the configured alarms.
- getAutoSnapshots(params = {}, callback) ⇒ AWS.Request
Returns the available automatic snapshots for an instance or disk.
- getBlueprints(params = {}, callback) ⇒ AWS.Request
Returns the list of available instance images, or blueprints.
- getBucketAccessKeys(params = {}, callback) ⇒ AWS.Request
Returns the existing access key IDs for the specified Amazon Lightsail bucket.
This action does not return the secret access key value of an access key.
- getBucketBundles(params = {}, callback) ⇒ AWS.Request
Returns the bundles that you can apply to a Amazon Lightsail bucket.
The bucket bundle specifies the monthly cost, storage quota, and data transfer quota for a bucket.
Use the UpdateBucketBundle action to update the bundle for a bucket.
.- getBucketMetricData(params = {}, callback) ⇒ AWS.Request
Returns the data points of a specific metric for an Amazon Lightsail bucket.
Metrics report the utilization of a bucket.
- getBuckets(params = {}, callback) ⇒ AWS.Request
Returns information about one or more Amazon Lightsail buckets.
- getBundles(params = {}, callback) ⇒ AWS.Request
Returns the bundles that you can apply to an Amazon Lightsail instance when you create it.
A bundle describes the specifications of an instance, such as the monthly cost, amount of memory, the number of vCPUs, amount of storage space, and monthly network data transfer quota.
Note: Bundles are referred to as instance plans in the Lightsail console.- getCertificates(params = {}, callback) ⇒ AWS.Request
Returns information about one or more Amazon Lightsail SSL/TLS certificates.
Note: To get a summary of a certificate, ommitincludeCertificateDetails
from your request.- getCloudFormationStackRecords(params = {}, callback) ⇒ AWS.Request
Returns the CloudFormation stack record created as a result of the
create cloud formation stack
operation.An AWS CloudFormation stack is used to create a new Amazon EC2 instance from an exported Lightsail snapshot.
.- getContactMethods(params = {}, callback) ⇒ AWS.Request
Returns information about the configured contact methods.
- getContainerAPIMetadata(params = {}, callback) ⇒ AWS.Request
Returns information about Amazon Lightsail containers, such as the current version of the Lightsail Control (lightsailctl) plugin.
.
- getContainerImages(params = {}, callback) ⇒ AWS.Request
Returns the container images that are registered to your Amazon Lightsail container service.
Note: If you created a deployment on your Lightsail container service that uses container images from a public registry like Docker Hub, those images are not returned as part of this action.- getContainerLog(params = {}, callback) ⇒ AWS.Request
Returns the log events of a container of your Amazon Lightsail container service.
If your container service has more than one node (i.e., a scale greater than 1), then the log events that are returned for the specified container are merged from all nodes on your container service.
Note: Container logs are retained for a certain amount of time.- getContainerServiceDeployments(params = {}, callback) ⇒ AWS.Request
Returns the deployments for your Amazon Lightsail container service
A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your container service.
The deployments are ordered by version in ascending order.
- getContainerServiceMetricData(params = {}, callback) ⇒ AWS.Request
Returns the data points of a specific metric of your Amazon Lightsail container service.
Metrics report the utilization of your resources.
- getContainerServicePowers(params = {}, callback) ⇒ AWS.Request
Returns the list of powers that can be specified for your Amazon Lightsail container services.
The power specifies the amount of memory, the number of vCPUs, and the base price of the container service.
.- getContainerServices(params = {}, callback) ⇒ AWS.Request
Returns information about one or more of your Amazon Lightsail container services.
.
- getCostEstimate(params = {}, callback) ⇒ AWS.Request
Retrieves information about the cost estimate for a specified resource.
- getDisk(params = {}, callback) ⇒ AWS.Request
Returns information about a specific block storage disk.
.
- getDisks(params = {}, callback) ⇒ AWS.Request
Returns information about all block storage disks in your AWS account and region.
.
- getDiskSnapshot(params = {}, callback) ⇒ AWS.Request
Returns information about a specific block storage disk snapshot.
.
- getDiskSnapshots(params = {}, callback) ⇒ AWS.Request
Returns information about all block storage disk snapshots in your AWS account and region.
.
- getDistributionBundles(params = {}, callback) ⇒ AWS.Request
Returns the bundles that can be applied to your Amazon Lightsail content delivery network (CDN) distributions.
A distribution bundle specifies the monthly network transfer quota and monthly cost of your distribution.
.- getDistributionLatestCacheReset(params = {}, callback) ⇒ AWS.Request
Returns the timestamp and status of the last cache reset of a specific Amazon Lightsail content delivery network (CDN) distribution.
.
- getDistributionMetricData(params = {}, callback) ⇒ AWS.Request
Returns the data points of a specific metric for an Amazon Lightsail content delivery network (CDN) distribution.
Metrics report the utilization of your resources, and the error counts generated by them.
- getDistributions(params = {}, callback) ⇒ AWS.Request
Returns information about one or more of your Amazon Lightsail content delivery network (CDN) distributions.
.
- getDomain(params = {}, callback) ⇒ AWS.Request
Returns information about a specific domain recordset.
.
- getDomains(params = {}, callback) ⇒ AWS.Request
Returns a list of all domains in the user's account.
.
- getExportSnapshotRecords(params = {}, callback) ⇒ AWS.Request
Returns all export snapshot records created as a result of the
export snapshot
operation.An export snapshot record can be used to create a new Amazon EC2 instance and its related resources with the CreateCloudFormationStack action.
.- getInstance(params = {}, callback) ⇒ AWS.Request
Returns information about a specific Amazon Lightsail instance, which is a virtual private server.
.
- getInstanceAccessDetails(params = {}, callback) ⇒ AWS.Request
Returns temporary SSH keys you can use to connect to a specific virtual private server, or instance.
The
get instance access details
operation supports tag-based access control via resource tags applied to the resource identified byinstance name
.- getInstanceMetricData(params = {}, callback) ⇒ AWS.Request
Returns the data points for the specified Amazon Lightsail instance metric, given an instance name.
Metrics report the utilization of your resources, and the error counts generated by them.
- getInstancePortStates(params = {}, callback) ⇒ AWS.Request
Returns the firewall port states for a specific Amazon Lightsail instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.
.
- getInstances(params = {}, callback) ⇒ AWS.Request
Returns information about all Amazon Lightsail virtual private servers, or instances.
.
- getInstanceSnapshot(params = {}, callback) ⇒ AWS.Request
Returns information about a specific instance snapshot.
.
- getInstanceSnapshots(params = {}, callback) ⇒ AWS.Request
Returns all instance snapshots for the user's account.
.
- getInstanceState(params = {}, callback) ⇒ AWS.Request
Returns the state of a specific instance.
- getKeyPair(params = {}, callback) ⇒ AWS.Request
Returns information about a specific key pair.
.
- getKeyPairs(params = {}, callback) ⇒ AWS.Request
Returns information about all key pairs in the user's account.
.
- getLoadBalancer(params = {}, callback) ⇒ AWS.Request
Returns information about the specified Lightsail load balancer.
.
- getLoadBalancerMetricData(params = {}, callback) ⇒ AWS.Request
Returns information about health metrics for your Lightsail load balancer.
Metrics report the utilization of your resources, and the error counts generated by them.
- getLoadBalancers(params = {}, callback) ⇒ AWS.Request
Returns information about all load balancers in an account.
.
- getLoadBalancerTlsCertificates(params = {}, callback) ⇒ AWS.Request
Returns information about the TLS certificates that are associated with the specified Lightsail load balancer.
TLS is just an updated, more secure version of Secure Socket Layer (SSL).
You can have a maximum of 2 certificates associated with a Lightsail load balancer.
- getLoadBalancerTlsPolicies(params = {}, callback) ⇒ AWS.Request
Returns a list of TLS security policies that you can apply to Lightsail load balancers.
For more information about load balancer TLS security policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide.
.- getOperation(params = {}, callback) ⇒ AWS.Request
Returns information about a specific operation.
- getOperations(params = {}, callback) ⇒ AWS.Request
Returns information about all operations.
Results are returned from oldest to newest, up to a maximum of 200.
- getOperationsForResource(params = {}, callback) ⇒ AWS.Request
Gets operations for a specific resource (e.g., an instance or a static IP).
.
- getRegions(params = {}, callback) ⇒ AWS.Request
Returns a list of all valid regions for Amazon Lightsail.
- getRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Returns information about a specific database in Amazon Lightsail.
.
- getRelationalDatabaseBlueprints(params = {}, callback) ⇒ AWS.Request
Returns a list of available database blueprints in Amazon Lightsail.
- getRelationalDatabaseBundles(params = {}, callback) ⇒ AWS.Request
Returns the list of bundles that are available in Amazon Lightsail.
- getRelationalDatabaseEvents(params = {}, callback) ⇒ AWS.Request
Returns a list of events for a specific database in Amazon Lightsail.
.
- getRelationalDatabaseLogEvents(params = {}, callback) ⇒ AWS.Request
Returns a list of log events for a database in Amazon Lightsail.
.
- getRelationalDatabaseLogStreams(params = {}, callback) ⇒ AWS.Request
Returns a list of available log streams for a specific database in Amazon Lightsail.
.
- getRelationalDatabaseMasterUserPassword(params = {}, callback) ⇒ AWS.Request
Returns the current, previous, or pending versions of the master user password for a Lightsail database.
The
.GetRelationalDatabaseMasterUserPassword
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.- getRelationalDatabaseMetricData(params = {}, callback) ⇒ AWS.Request
Returns the data points of the specified metric for a database in Amazon Lightsail.
Metrics report the utilization of your resources, and the error counts generated by them.
- getRelationalDatabaseParameters(params = {}, callback) ⇒ AWS.Request
Returns all of the runtime parameters offered by the underlying database software, or engine, for a specific database in Amazon Lightsail.
In addition to the parameter names and values, this operation returns other information about each parameter.
- getRelationalDatabases(params = {}, callback) ⇒ AWS.Request
Returns information about all of your databases in Amazon Lightsail.
.
- getRelationalDatabaseSnapshot(params = {}, callback) ⇒ AWS.Request
Returns information about a specific database snapshot in Amazon Lightsail.
.
- getRelationalDatabaseSnapshots(params = {}, callback) ⇒ AWS.Request
Returns information about all of your database snapshots in Amazon Lightsail.
.
- getStaticIp(params = {}, callback) ⇒ AWS.Request
Returns information about an Amazon Lightsail static IP.
.
- getStaticIps(params = {}, callback) ⇒ AWS.Request
Returns information about all static IPs in the user's account.
.
- importKeyPair(params = {}, callback) ⇒ AWS.Request
Imports a public SSH key from a specific key pair.
.
- isVpcPeered(params = {}, callback) ⇒ AWS.Request
Returns a Boolean value indicating whether your Lightsail VPC is peered.
.
- openInstancePublicPorts(params = {}, callback) ⇒ AWS.Request
Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol.
The
OpenInstancePublicPorts
action supports tag-based access control via resource tags applied to the resource identified byinstanceName
.- peerVpc(params = {}, callback) ⇒ AWS.Request
Peers the Lightsail VPC with the user's default VPC.
.
- putAlarm(params = {}, callback) ⇒ AWS.Request
Creates or updates an alarm, and associates it with the specified metric.
An alarm is used to monitor a single metric for one of your resources.
- putInstancePublicPorts(params = {}, callback) ⇒ AWS.Request
Opens ports for a specific Amazon Lightsail instance, and specifies the IP addresses allowed to connect to the instance through the ports, and the protocol.
- rebootInstance(params = {}, callback) ⇒ AWS.Request
Restarts a specific instance.
The
reboot instance
operation supports tag-based access control via resource tags applied to the resource identified byinstance name
.- rebootRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Restarts a specific database in Amazon Lightsail.
The
reboot relational database
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.- registerContainerImage(params = {}, callback) ⇒ AWS.Request
Registers a container image to your Amazon Lightsail container service.
Note: This action is not required if you install and use the Lightsail Control (lightsailctl) plugin to push container images to your Lightsail container service.- releaseStaticIp(params = {}, callback) ⇒ AWS.Request
Deletes a specific static IP from your account.
.
- resetDistributionCache(params = {}, callback) ⇒ AWS.Request
Deletes currently cached content from your Amazon Lightsail content delivery network (CDN) distribution.
After resetting the cache, the next time a content request is made, your distribution pulls, serves, and caches it from the origin.
.- sendContactMethodVerification(params = {}, callback) ⇒ AWS.Request
Sends a verification request to an email contact method to ensure it's owned by the requester.
- setIpAddressType(params = {}, callback) ⇒ AWS.Request
Sets the IP address type for an Amazon Lightsail resource.
Use this action to enable dual-stack for a resource, which enables IPv4 and IPv6 for the specified resource.
- setResourceAccessForBucket(params = {}, callback) ⇒ AWS.Request
Sets the Amazon Lightsail resources that can access the specified Lightsail bucket.
Lightsail buckets currently support setting access for Lightsail instances in the same Amazon Web Services Region.
.- startGUISession(params = {}, callback) ⇒ AWS.Request
Initiates a graphical user interface (GUI) session that’s used to access a virtual computer’s operating system and application.
- startInstance(params = {}, callback) ⇒ AWS.Request
Starts a specific Amazon Lightsail instance from a stopped state.
- startRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Starts a specific database from a stopped state in Amazon Lightsail.
- stopGUISession(params = {}, callback) ⇒ AWS.Request
Terminates a web-based NICE DCV session that’s used to access a virtual computer’s operating system or application.
- stopInstance(params = {}, callback) ⇒ AWS.Request
Stops a specific Amazon Lightsail instance that is currently running.
Note: When you start a stopped instance, Lightsail assigns a new public IP address to the instance.- stopRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Stops a specific database that is currently running in Amazon Lightsail.
The
stop relational database
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.- tagResource(params = {}, callback) ⇒ AWS.Request
Adds one or more tags to the specified Amazon Lightsail resource.
- testAlarm(params = {}, callback) ⇒ AWS.Request
Tests an alarm by displaying a banner on the Amazon Lightsail console.
- unpeerVpc(params = {}, callback) ⇒ AWS.Request
Unpeers the Lightsail VPC from the user's default VPC.
.
- untagResource(params = {}, callback) ⇒ AWS.Request
Deletes the specified set of tag keys and their values from the specified Amazon Lightsail resource.
The
untag resource
operation supports tag-based access control via request tags and resource tags applied to the resource identified byresource name
.- updateBucket(params = {}, callback) ⇒ AWS.Request
Updates an existing Amazon Lightsail bucket.
Use this action to update the configuration of an existing bucket, such as versioning, public accessibility, and the Amazon Web Services accounts that can access the bucket.
.- updateBucketBundle(params = {}, callback) ⇒ AWS.Request
Updates the bundle, or storage plan, of an existing Amazon Lightsail bucket.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
- updateContainerService(params = {}, callback) ⇒ AWS.Request
Updates the configuration of your Amazon Lightsail container service, such as its power, scale, and public domain names.
.
- updateDistribution(params = {}, callback) ⇒ AWS.Request
Updates an existing Amazon Lightsail content delivery network (CDN) distribution.
Use this action to update the configuration of your existing distribution.
.- updateDistributionBundle(params = {}, callback) ⇒ AWS.Request
Updates the bundle of your Amazon Lightsail content delivery network (CDN) distribution.
A distribution bundle specifies the monthly network transfer quota and monthly cost of your distribution.
Update your distribution's bundle if your distribution is going over its monthly network transfer quota and is incurring an overage fee.
You can update your distribution's bundle only one time within your monthly Amazon Web Services billing cycle.
- updateDomainEntry(params = {}, callback) ⇒ AWS.Request
Updates a domain recordset after it is created.
The
update domain entry
operation supports tag-based access control via resource tags applied to the resource identified bydomain name
.- updateInstanceMetadataOptions(params = {}, callback) ⇒ AWS.Request
Modifies the Amazon Lightsail instance metadata parameters on a running or stopped instance.
- updateLoadBalancerAttribute(params = {}, callback) ⇒ AWS.Request
Updates the specified attribute for a load balancer.
- updateRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Allows the update of one or more attributes of a database in Amazon Lightsail.
Updates are applied immediately, or in cases where the updates could result in an outage, are applied during the database's predefined maintenance window.
The
update relational database
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName.- updateRelationalDatabaseParameters(params = {}, callback) ⇒ AWS.Request
Allows the update of one or more parameters of a database in Amazon Lightsail.
Parameter updates don't cause outages; therefore, their application is not subject to the preferred maintenance window.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.Lightsail(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
attachCertificateToDistribution(params = {}, callback) ⇒ AWS.Request
Attaches an SSL/TLS certificate to your Amazon Lightsail content delivery network (CDN) distribution.
After the certificate is attached, your distribution accepts HTTPS traffic for all of the domains that are associated with the certificate.
Use the
CreateCertificate
action to create a certificate that you can attach to your distribution.Only certificates created in the
us-east-1
Amazon Web Services Region can be attached to Lightsail distributions. Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in theus-east-1
Region.attachDisk(params = {}, callback) ⇒ AWS.Request
Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.
The
attach disk
operation supports tag-based access control via resource tags applied to the resource identified bydisk name
. For more information, see the Amazon Lightsail Developer Guide.attachInstancesToLoadBalancer(params = {}, callback) ⇒ AWS.Request
Attaches one or more Lightsail instances to a load balancer.
After some time, the instances are attached to the load balancer and the health check status is available.
The
attach instances to load balancer
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
. For more information, see the Lightsail Developer Guide.attachLoadBalancerTlsCertificate(params = {}, callback) ⇒ AWS.Request
Attaches a Transport Layer Security (TLS) certificate to your load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL).
Once you create and validate your certificate, you can attach it to your load balancer. You can also use this API to rotate the certificates on your account. Use the
AttachLoadBalancerTlsCertificate
action with the non-attached certificate, and it will replace the existing one and become the attached certificate.The
AttachLoadBalancerTlsCertificate
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
. For more information, see the Amazon Lightsail Developer Guide.attachStaticIp(params = {}, callback) ⇒ AWS.Request
Attaches a static IP address to a specific Amazon Lightsail instance.
closeInstancePublicPorts(params = {}, callback) ⇒ AWS.Request
Closes ports for a specific Amazon Lightsail instance.
The
CloseInstancePublicPorts
action supports tag-based access control via resource tags applied to the resource identified byinstanceName
. For more information, see the Amazon Lightsail Developer Guide.copySnapshot(params = {}, callback) ⇒ AWS.Request
Copies a manual snapshot of an instance or disk as another manual snapshot, or copies an automatic snapshot of an instance or disk as a manual snapshot. This operation can also be used to copy a manual or automatic snapshot of an instance or a disk from one Amazon Web Services Region to another in Amazon Lightsail.
When copying a manual snapshot, be sure to define the
source region
,source snapshot name
, andtarget snapshot name
parameters.When copying an automatic snapshot, be sure to define the
source region
,source resource name
,target snapshot name
, and either therestore date
or theuse latest restorable auto snapshot
parameters.createBucket(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lightsail bucket.
A bucket is a cloud storage resource available in the Lightsail object storage service. Use buckets to store objects such as data and its descriptive metadata. For more information about buckets, see Buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide.
createBucketAccessKey(params = {}, callback) ⇒ AWS.Request
Creates a new access key for the specified Amazon Lightsail bucket. Access keys consist of an access key ID and corresponding secret access key.
Access keys grant full programmatic access to the specified bucket and its objects. You can have a maximum of two access keys per bucket. Use the GetBucketAccessKeys action to get a list of current access keys for a specific bucket. For more information about access keys, see Creating access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
The
secretAccessKey
value is returned only in response to theCreateBucketAccessKey
action. You can get a secret access key only when you first create an access key; you cannot get the secret access key later. If you lose the secret access key, you must create a new access key.createCertificate(params = {}, callback) ⇒ AWS.Request
Creates an SSL/TLS certificate for an Amazon Lightsail content delivery network (CDN) distribution and a container service.
After the certificate is valid, use the
AttachCertificateToDistribution
action to use the certificate and its domains with your distribution. Or use theUpdateContainerService
action to use the certificate and its domains with your container service.Only certificates created in the
us-east-1
Amazon Web Services Region can be attached to Lightsail distributions. Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in theus-east-1
Region.createCloudFormationStack(params = {}, callback) ⇒ AWS.Request
Creates an AWS CloudFormation stack, which creates a new Amazon EC2 instance from an exported Amazon Lightsail snapshot. This operation results in a CloudFormation stack record that can be used to track the AWS CloudFormation stack created. Use the
get cloud formation stack records
operation to get a list of the CloudFormation stacks created.Wait until after your new Amazon EC2 instance is created before running the
create cloud formation stack
operation again with the same export snapshot record.createContactMethod(params = {}, callback) ⇒ AWS.Request
Creates an email or SMS text message contact method.
A contact method is used to send you notifications about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in each Amazon Web Services Region. However, SMS text messaging is not supported in some Amazon Web Services Regions, and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.
createContainerService(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lightsail container service.
A Lightsail container service is a compute resource to which you can deploy containers. For more information, see Container services in Amazon Lightsail in the Lightsail Dev Guide.
createContainerServiceDeployment(params = {}, callback) ⇒ AWS.Request
Creates a deployment for your Amazon Lightsail container service.
A deployment specifies the containers that will be launched on the container service and their settings, such as the ports to open, the environment variables to apply, and the launch command to run. It also specifies the container that will serve as the public endpoint of the deployment and its settings, such as the HTTP or HTTPS port to use, and the health check configuration.
You can deploy containers to your container service using container images from a public registry such as Amazon ECR Public, or from your local machine. For more information, see Creating container images for your Amazon Lightsail container services in the Amazon Lightsail Developer Guide.
createContainerServiceRegistryLogin(params = {}, callback) ⇒ AWS.Request
Creates a temporary set of log in credentials that you can use to log in to the Docker process on your local machine. After you're logged in, you can use the native Docker commands to push your local container images to the container image registry of your Amazon Lightsail account so that you can use them with your Lightsail container service. The log in credentials expire 12 hours after they are created, at which point you will need to create a new set of log in credentials.
Note: You can only push container images to the container service registry of your Lightsail account. You cannot pull container images or perform any other container image management actions on the container service registry.After you push your container images to the container image registry of your Lightsail account, use the
RegisterContainerImage
action to register the pushed images to a specific Lightsail container service.Note: This action is not required if you install and use the Lightsail Control (lightsailctl) plugin to push container images to your Lightsail container service. For more information, see Pushing and managing container images on your Amazon Lightsail container services in the Amazon Lightsail Developer Guide.createDisk(params = {}, callback) ⇒ AWS.Request
Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (e.g.,
us-east-2a
).The
create disk
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.createDiskFromSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a block storage disk from a manual or automatic snapshot of a disk. The resulting disk can be attached to an Amazon Lightsail instance in the same Availability Zone (e.g.,
us-east-2a
).The
create disk from snapshot
operation supports tag-based access control via request tags and resource tags applied to the resource identified bydisk snapshot name
. For more information, see the Amazon Lightsail Developer Guide.createDiskSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of a block storage disk. You can use snapshots for backups, to make copies of disks, and to save data before shutting down a Lightsail instance.
You can take a snapshot of an attached disk that is in use; however, snapshots only capture data that has been written to your disk at the time the snapshot command is issued. This may exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the disk long enough to take a snapshot, your snapshot should be complete. Nevertheless, if you cannot pause all file writes to the disk, you should unmount the disk from within the Lightsail instance, issue the create disk snapshot command, and then remount the disk to ensure a consistent and complete snapshot. You may remount and use your disk while the snapshot status is pending.
You can also use this operation to create a snapshot of an instance's system volume. You might want to do this, for example, to recover data from the system volume of a botched instance or to create a backup of the system volume like you would for a block storage disk. To create a snapshot of a system volume, just define the
instance name
parameter when issuing the snapshot command, and a snapshot of the defined instance's system volume will be created. After the snapshot is available, you can create a block storage disk from the snapshot and attach it to a running instance to access the data on the disk.The
create disk snapshot
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.createDistribution(params = {}, callback) ⇒ AWS.Request
Creates an Amazon Lightsail content delivery network (CDN) distribution.
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. For more information, see Content delivery networks in Amazon Lightsail.
createDomain(params = {}, callback) ⇒ AWS.Request
Creates a domain resource for the specified domain (e.g., example.com).
The
create domain
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.createDomainEntry(params = {}, callback) ⇒ AWS.Request
Creates one of the following domain name system (DNS) records in a domain DNS zone: Address (A), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).
The
create domain entry
operation supports tag-based access control via resource tags applied to the resource identified bydomain name
. For more information, see the Amazon Lightsail Developer Guide.createGUISessionAccessDetails(params = {}, callback) ⇒ AWS.Request
Creates two URLs that are used to access a virtual computer’s graphical user interface (GUI) session. The primary URL initiates a web-based NICE DCV session to the virtual computer's application. The secondary URL initiates a web-based NICE DCV session to the virtual computer's operating session.
Use
StartGUISession
to open the session.createInstances(params = {}, callback) ⇒ AWS.Request
Creates one or more Amazon Lightsail instances.
The
create instances
operation supports tag-based access control via request tags. For more information, see the Lightsail Developer Guide.createInstancesFromSnapshot(params = {}, callback) ⇒ AWS.Request
Creates one or more new instances from a manual or automatic snapshot of an instance.
The
create instances from snapshot
operation supports tag-based access control via request tags and resource tags applied to the resource identified byinstance snapshot name
. For more information, see the Amazon Lightsail Developer Guide.createInstanceSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of a specific virtual private server, or instance. You can use a snapshot to create a new instance that is based on that snapshot.
The
create instance snapshot
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.createKeyPair(params = {}, callback) ⇒ AWS.Request
Creates a custom SSH key pair that you can use with an Amazon Lightsail instance.
Note: Use the DownloadDefaultKeyPair action to create a Lightsail default key pair in an Amazon Web Services Region where a default key pair does not currently exist.The
create key pair
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.createLoadBalancer(params = {}, callback) ⇒ AWS.Request
Creates a Lightsail load balancer. To learn more about deciding whether to load balance your application, see Configure your Lightsail instances for load balancing. You can create up to 5 load balancers per AWS Region in your account.
When you create a load balancer, you can specify a unique name and port settings. To change additional load balancer settings, use the
UpdateLoadBalancerAttribute
operation.The
create load balancer
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.createLoadBalancerTlsCertificate(params = {}, callback) ⇒ AWS.Request
Creates an SSL/TLS certificate for an Amazon Lightsail load balancer.
TLS is just an updated, more secure version of Secure Socket Layer (SSL).
The
CreateLoadBalancerTlsCertificate
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
. For more information, see the Amazon Lightsail Developer Guide.createRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Creates a new database in Amazon Lightsail.
The
create relational database
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.createRelationalDatabaseFromSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a new database from an existing database snapshot in Amazon Lightsail.
You can create a new database from a snapshot in if something goes wrong with your original database, or to change it to a different plan, such as a high availability or standard plan.
The
create relational database from snapshot
operation supports tag-based access control via request tags and resource tags applied to the resource identified by relationalDatabaseSnapshotName. For more information, see the Amazon Lightsail Developer Guide.createRelationalDatabaseSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a snapshot of your database in Amazon Lightsail. You can use snapshots for backups, to make copies of a database, and to save data before deleting a database.
The
create relational database snapshot
operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.deleteAlarm(params = {}, callback) ⇒ AWS.Request
Deletes an alarm.
An alarm is used to monitor a single metric for one of your resources. When a metric condition is met, the alarm can notify you by email, SMS text message, and a banner displayed on the Amazon Lightsail console. For more information, see Alarms in Amazon Lightsail.
deleteAutoSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes an automatic snapshot of an instance or disk. For more information, see the Amazon Lightsail Developer Guide.
deleteBucket(params = {}, callback) ⇒ AWS.Request
Deletes a Amazon Lightsail bucket.
Note: When you delete your bucket, the bucket name is released and can be reused for a new bucket in your account or another Amazon Web Services account.deleteBucketAccessKey(params = {}, callback) ⇒ AWS.Request
Deletes an access key for the specified Amazon Lightsail bucket.
We recommend that you delete an access key if the secret access key is compromised.
For more information about access keys, see Creating access keys for a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.
deleteCertificate(params = {}, callback) ⇒ AWS.Request
Deletes an SSL/TLS certificate for your Amazon Lightsail content delivery network (CDN) distribution.
Certificates that are currently attached to a distribution cannot be deleted. Use the
DetachCertificateFromDistribution
action to detach a certificate from a distribution.deleteContactMethod(params = {}, callback) ⇒ AWS.Request
Deletes a contact method.
A contact method is used to send you notifications about your Amazon Lightsail resources. You can add one email address and one mobile phone number contact method in each Amazon Web Services Region. However, SMS text messaging is not supported in some Amazon Web Services Regions, and SMS text messages cannot be sent to some countries/regions. For more information, see Notifications in Amazon Lightsail.
deleteContainerImage(params = {}, callback) ⇒ AWS.Request
Deletes a container image that is registered to your Amazon Lightsail container service.
deleteContainerService(params = {}, callback) ⇒ AWS.Request
Deletes your Amazon Lightsail container service.
deleteDisk(params = {}, callback) ⇒ AWS.Request
Deletes the specified block storage disk. The disk must be in the
available
state (not attached to a Lightsail instance).Note: The disk may remain in thedeleting
state for several minutes.The
delete disk
operation supports tag-based access control via resource tags applied to the resource identified bydisk name
. For more information, see the Amazon Lightsail Developer Guide.deleteDiskSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes the specified disk snapshot.
When you make periodic snapshots of a disk, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the disk.
The
delete disk snapshot
operation supports tag-based access control via resource tags applied to the resource identified bydisk snapshot name
. For more information, see the Amazon Lightsail Developer Guide.deleteDistribution(params = {}, callback) ⇒ AWS.Request
Deletes your Amazon Lightsail content delivery network (CDN) distribution.
deleteDomain(params = {}, callback) ⇒ AWS.Request
Deletes the specified domain recordset and all of its domain records.
The
delete domain
operation supports tag-based access control via resource tags applied to the resource identified bydomain name
. For more information, see the Amazon Lightsail Developer Guide.deleteDomainEntry(params = {}, callback) ⇒ AWS.Request
Deletes a specific domain entry.
The
delete domain entry
operation supports tag-based access control via resource tags applied to the resource identified bydomain name
. For more information, see the Amazon Lightsail Developer Guide.deleteInstance(params = {}, callback) ⇒ AWS.Request
Deletes an Amazon Lightsail instance.
The
delete instance
operation supports tag-based access control via resource tags applied to the resource identified byinstance name
. For more information, see the Amazon Lightsail Developer Guide.deleteInstanceSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes a specific snapshot of a virtual private server (or instance).
The
delete instance snapshot
operation supports tag-based access control via resource tags applied to the resource identified byinstance snapshot name
. For more information, see the Amazon Lightsail Developer Guide.deleteKeyPair(params = {}, callback) ⇒ AWS.Request
Deletes the specified key pair by removing the public key from Amazon Lightsail.
You can delete key pairs that were created using the ImportKeyPair and CreateKeyPair actions, as well as the Lightsail default key pair. A new default key pair will not be created unless you launch an instance without specifying a custom key pair, or you call the DownloadDefaultKeyPair API.
The
delete key pair
operation supports tag-based access control via resource tags applied to the resource identified bykey pair name
. For more information, see the Amazon Lightsail Developer Guide.deleteKnownHostKeys(params = {}, callback) ⇒ AWS.Request
Deletes the known host key or certificate used by the Amazon Lightsail browser-based SSH or RDP clients to authenticate an instance. This operation enables the Lightsail browser-based SSH or RDP clients to connect to the instance after a host key mismatch.
Perform this operation only if you were expecting the host key or certificate mismatch or if you are familiar with the new host key or certificate on the instance. For more information, see Troubleshooting connection issues when using the Amazon Lightsail browser-based SSH or RDP client.
deleteLoadBalancer(params = {}, callback) ⇒ AWS.Request
Deletes a Lightsail load balancer and all its associated SSL/TLS certificates. Once the load balancer is deleted, you will need to create a new load balancer, create a new certificate, and verify domain ownership again.
The
delete load balancer
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
. For more information, see the Amazon Lightsail Developer Guide.deleteLoadBalancerTlsCertificate(params = {}, callback) ⇒ AWS.Request
Deletes an SSL/TLS certificate associated with a Lightsail load balancer.
The
DeleteLoadBalancerTlsCertificate
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
. For more information, see the Amazon Lightsail Developer Guide.deleteRelationalDatabase(params = {}, callback) ⇒ AWS.Request
Deletes a database in Amazon Lightsail.
The
delete relational database
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Amazon Lightsail Developer Guide.deleteRelationalDatabaseSnapshot(params = {}, callback) ⇒ AWS.Request
Deletes a database snapshot in Amazon Lightsail.
The
delete relational database snapshot
operation supports tag-based access control via resource tags applied to the resource identified by relationalDatabaseName. For more information, see the Amazon Lightsail Developer Guide.detachCertificateFromDistribution(params = {}, callback) ⇒ AWS.Request
Detaches an SSL/TLS certificate from your Amazon Lightsail content delivery network (CDN) distribution.
After the certificate is detached, your distribution stops accepting traffic for all of the domains that are associated with the certificate.
detachDisk(params = {}, callback) ⇒ AWS.Request
Detaches a stopped block storage disk from a Lightsail instance. Make sure to unmount any file systems on the device within your operating system before stopping the instance and detaching the disk.
The
detach disk
operation supports tag-based access control via resource tags applied to the resource identified bydisk name
. For more information, see the Amazon Lightsail Developer Guide.detachInstancesFromLoadBalancer(params = {}, callback) ⇒ AWS.Request
Detaches the specified instances from a Lightsail load balancer.
This operation waits until the instances are no longer needed before they are detached from the load balancer.
The
detach instances from load balancer
operation supports tag-based access control via resource tags applied to the resource identified byload balancer name
. For more information, see the Amazon Lightsail Developer Guide.detachStaticIp(params = {}, callback) ⇒ AWS.Request
Detaches a static IP from the Amazon Lightsail instance to which it is attached.
disableAddOn(params = {}, callback) ⇒ AWS.Request
Disables an add-on for an Amazon Lightsail resource. For more information, see the Amazon Lightsail Developer Guide.
downloadDefaultKeyPair(params = {}, callback) ⇒ AWS.Request
Downloads the regional Amazon Lightsail default key pair.
This action also creates a Lightsail default key pair if a default key pair does not currently exist in the Amazon Web Services Region.
enableAddOn(params = {}, callback) ⇒ AWS.Request
Enables or modifies an add-on for an Amazon Lightsail resource. For more information, see the Amazon Lightsail Developer Guide.
exportSnapshot(params = {}, callback) ⇒ AWS.Request
Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2). This operation results in an export snapshot record that can be used with the
create cloud formation stack
operation to create new Amazon EC2 instances.Exported instance snapshots appear in Amazon EC2 as Amazon Machine Images (AMIs), and the instance system disk appears as an Amazon Elastic Block Store (Amazon EBS) volume. Exported disk snapshots appear in Amazon EC2 as Amazon EBS volumes. Snapshots are exported to the same Amazon Web Services Region in Amazon EC2 as the source Lightsail snapshot.
The
export snapshot
operation supports tag-based access control via resource tags applied to the resource identified bysource snapshot name
. For more information, see the Amazon Lightsail Developer Guide.Note: Use theget instance snapshots
orget disk snapshots
operations to get a list of snapshots that you can export to Amazon EC2.getActiveNames(params = {}, callback) ⇒ AWS.Request
Returns the names of all active (not deleted) resources.
getAlarms(params = {}, callback) ⇒ AWS.Request
Returns information about the configured alarms. Specify an alarm name in your request to return information about a specific alarm, or specify a monitored resource name to return information about all alarms for a specific resource.
An alarm is used to monitor a single metric for one of your resources. When a metric condition is met, the alarm can notify you by email, SMS text message, and a banner displayed on the Amazon Lightsail console. For more information, see Alarms in Amazon Lightsail.
getAutoSnapshots(params = {}, callback) ⇒ AWS.Request
Returns the available automatic snapshots for an instance or disk. For more information, see the Amazon Lightsail Developer Guide.
getBlueprints(params = {}, callback) ⇒ AWS.Request
Returns the list of available instance images, or blueprints. You can use a blueprint to create a new instance already running a specific operating system, as well as a preinstalled app or development stack. The software each instance is running depends on the blueprint image you choose.
Note: Use active blueprints when creating new instances. Inactive blueprints are listed to support customers with existing instances and are not necessarily available to create new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.getBucketAccessKeys(params = {}, callback) ⇒ AWS.Request
Returns the existing access key IDs for the specified Amazon Lightsail bucket.
This action does not return the secret access key value of an access key. You can get a secret access key only when you create it from the response of the CreateBucketAccessKey action. If you lose the secret access key, you must create a new access key.
getBucketBundles(params = {}, callback) ⇒ AWS.Request
Returns the bundles that you can apply to a Amazon Lightsail bucket.
The bucket bundle specifies the monthly cost, storage quota, and data transfer quota for a bucket.
Use the UpdateBucketBundle action to update the bundle for a bucket.
getBucketMetricData(params = {}, callback) ⇒ AWS.Request
Returns the data points of a specific metric for an Amazon Lightsail bucket.
Metrics report the utilization of a bucket. View and collect metric data regularly to monitor the number of objects stored in a bucket (including object versions) and the storage space used by those objects.
- createLoadBalancer(params = {}, callback) ⇒ AWS.Request