We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.Lightsail

Inherits:
AWS.Service show all
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();

Version:

  • 2016-11-28

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

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.

Examples:

Constructing a Lightsail object

var lightsail = new AWS.Lightsail({apiVersion: '2016-11-28'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.Lightsail.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.Lightsail.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.Lightsail.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

allocateStaticIp(params = {}, callback) ⇒ AWS.Request

Allocates a static IP address.

Service Reference:

Examples:

Calling the allocateStaticIp operation

var params = {
  staticIpName: 'STRING_VALUE' /* required */
};
lightsail.allocateStaticIp(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • staticIpName — (String)

      The name of the static IP address.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 the us-east-1 Region.

Service Reference:

Examples:

Calling the attachCertificateToDistribution operation

var params = {
  certificateName: 'STRING_VALUE', /* required */
  distributionName: 'STRING_VALUE' /* required */
};
lightsail.attachCertificateToDistribution(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution that the certificate will be attached to.

      Use the GetDistributions action to get a list of distribution names that you can specify.

    • certificateName — (String)

      The name of the certificate to attach to a distribution.

      Only certificates with a status of ISSUED can be attached to a distribution.

      Use the GetCertificates action to get a list of certificate names that you can specify.

      Note: This is the name of the certificate resource type and is used only to reference the certificate in other API actions. It can be different than the domain name of the certificate. For example, your certificate name might be WordPress-Blog-Certificate and the domain name of the certificate might be example.com.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by disk name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the attachDisk operation

var params = {
  diskName: 'STRING_VALUE', /* required */
  diskPath: 'STRING_VALUE', /* required */
  instanceName: 'STRING_VALUE', /* required */
  autoMounting: true || false
};
lightsail.attachDisk(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskName — (String)

      The unique Lightsail disk name (my-disk).

    • instanceName — (String)

      The name of the Lightsail instance where you want to utilize the storage disk.

    • diskPath — (String)

      The disk path to expose to the instance (/dev/xvdf).

    • autoMounting — (Boolean)

      A Boolean value used to determine the automatic mounting of a storage volume to a virtual computer. The default value is False.

      This value only applies to Lightsail for Research resources.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by load balancer name. For more information, see the Lightsail Developer Guide.

Service Reference:

Examples:

Calling the attachInstancesToLoadBalancer operation

var params = {
  instanceNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  loadBalancerName: 'STRING_VALUE' /* required */
};
lightsail.attachInstancesToLoadBalancer(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the load balancer.

    • instanceNames — (Array<String>)

      An array of strings representing the instance name(s) you want to attach to your load balancer.

      An instance must be running before you can attach it to your load balancer.

      There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by load balancer name. For more information, see the Amazon Lightsail Developer Guide.

Examples:

Calling the attachLoadBalancerTlsCertificate operation

var params = {
  certificateName: 'STRING_VALUE', /* required */
  loadBalancerName: 'STRING_VALUE' /* required */
};
lightsail.attachLoadBalancerTlsCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the load balancer to which you want to associate the SSL/TLS certificate.

    • certificateName — (String)

      The name of your SSL/TLS certificate.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        These SSL/TLS certificates are only usable by Lightsail load balancers. You can't get the certificate and use it for another purpose.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

attachStaticIp(params = {}, callback) ⇒ AWS.Request

Attaches a static IP address to a specific Amazon Lightsail instance.

Service Reference:

Examples:

Calling the attachStaticIp operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  staticIpName: 'STRING_VALUE' /* required */
};
lightsail.attachStaticIp(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • staticIpName — (String)

      The name of the static IP.

    • instanceName — (String)

      The instance name to which you want to attach the static IP address.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by instanceName. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the closeInstancePublicPorts operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  portInfo: { /* required */
    cidrListAliases: [
      'STRING_VALUE',
      /* more items */
    ],
    cidrs: [
      'STRING_VALUE',
      /* more items */
    ],
    fromPort: 'NUMBER_VALUE',
    ipv6Cidrs: [
      'STRING_VALUE',
      /* more items */
    ],
    protocol: tcp | all | udp | icmp,
    toPort: 'NUMBER_VALUE'
  }
};
lightsail.closeInstancePublicPorts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • portInfo — (map)

      An object to describe the ports to close for the specified instance.

      • fromPort — (Integer)

        The first port in a range of open ports on an instance.

        Allowed ports:

        • TCP and UDP - 0 to 65535

        • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

        • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

      • toPort — (Integer)

        The last port in a range of open ports on an instance.

        Allowed ports:

        • TCP and UDP - 0 to 65535

        • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

        • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

      • protocol — (String)

        The IP protocol name.

        The name can be one of the following:

        • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

        • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

        • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

        • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

        Possible values include:
        • "tcp"
        • "all"
        • "udp"
        • "icmp"
      • cidrs — (Array<String>)

        The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

        Note: The ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

        Examples:

        • To allow the IP address 192.0.2.44, specify 192.0.2.44 or 192.0.2.44/32.

        • To allow the IP addresses 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

      • ipv6Cidrs — (Array<String>)

        The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.

        Note: The cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

        For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

      • cidrListAliases — (Array<String>)

        An alias that defines access for a preconfigured range of IP addresses.

        The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

    • instanceName — (String)

      The name of the instance for which to close ports.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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, and target snapshot name parameters.

When copying an automatic snapshot, be sure to define the source region, source resource name, target snapshot name, and either the restore date or the use latest restorable auto snapshot parameters.

Service Reference:

Examples:

Calling the copySnapshot operation

var params = {
  sourceRegion: us-east-1 | us-east-2 | us-west-1 | us-west-2 | eu-west-1 | eu-west-2 | eu-west-3 | eu-central-1 | ca-central-1 | ap-south-1 | ap-southeast-1 | ap-southeast-2 | ap-northeast-1 | ap-northeast-2 | eu-north-1, /* required */
  targetSnapshotName: 'STRING_VALUE', /* required */
  restoreDate: 'STRING_VALUE',
  sourceResourceName: 'STRING_VALUE',
  sourceSnapshotName: 'STRING_VALUE',
  useLatestRestorableAutoSnapshot: true || false
};
lightsail.copySnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • sourceSnapshotName — (String)

      The name of the source manual snapshot to copy.

      Constraint:

      • Define this parameter only when copying a manual snapshot as another manual snapshot.

    • sourceResourceName — (String)

      The name of the source instance or disk from which the source automatic snapshot was created.

      Constraint:

    • restoreDate — (String)

      The date of the source automatic snapshot to copy. Use the get auto snapshots operation to identify the dates of the available automatic snapshots.

      Constraints:

      • Must be specified in YYYY-MM-DD format.

      • This parameter cannot be defined together with the use latest restorable auto snapshot parameter. The restore date and use latest restorable auto snapshot parameters are mutually exclusive.

      • Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Amazon Lightsail Developer Guide.

    • useLatestRestorableAutoSnapshot — (Boolean)

      A Boolean value to indicate whether to use the latest available automatic snapshot of the specified source instance or disk.

      Constraints:

      • This parameter cannot be defined together with the restore date parameter. The use latest restorable auto snapshot and restore date parameters are mutually exclusive.

      • Define this parameter only when copying an automatic snapshot as a manual snapshot. For more information, see the Amazon Lightsail Developer Guide.

    • targetSnapshotName — (String)

      The name of the new manual snapshot to be created as a copy.

    • sourceRegion — (String)

      The Amazon Web Services Region where the source manual or automatic snapshot is located.

      Possible values include:
      • "us-east-1"
      • "us-east-2"
      • "us-west-1"
      • "us-west-2"
      • "eu-west-1"
      • "eu-west-2"
      • "eu-west-3"
      • "eu-central-1"
      • "ca-central-1"
      • "ap-south-1"
      • "ap-southeast-1"
      • "ap-southeast-2"
      • "ap-northeast-1"
      • "ap-northeast-2"
      • "eu-north-1"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createBucket operation

var params = {
  bucketName: 'STRING_VALUE', /* required */
  bundleId: 'STRING_VALUE', /* required */
  enableObjectVersioning: true || false,
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createBucket(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name for the bucket.

      For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide.

    • bundleId — (String)

      The ID of the bundle to use for the bucket.

      A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.

      Use the GetBucketBundles action to get a list of bundle IDs that you can specify.

      Use the UpdateBucketBundle action to change the bundle after the bucket is created.

    • tags — (Array<map>)

      The tag keys and optional values to add to the bucket during creation.

      Use the TagResource action to tag the bucket after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

    • enableObjectVersioning — (Boolean)

      A Boolean value that indicates whether to enable versioning of objects in the bucket.

      For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • bucket — (map)

        An object that describes the bucket that is created.

        • resourceType — (String)

          The Lightsail resource type of the bucket.

        • accessRules — (map)

          An object that describes the access rules of the bucket.

          • getObject — (String)

            Specifies the anonymous access to all objects in a bucket.

            The following options can be specified:

            • public - Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.

              If the getObject value is set to public, then all objects in the bucket default to public regardless of the allowPublicOverrides value.

            • private - Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.

              If the getObject value is set to private, and the allowPublicOverrides value is set to true, then all objects in the bucket default to private unless they are configured with a public-read ACL. Individual objects with a public-read ACL are readable by anyone in the world.

            Possible values include:
            • "public"
            • "private"
          • allowPublicOverrides — (Boolean)

            A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.

            When this is true, you can use the PutObjectAcl Amazon S3 API action to set individual objects to public (read-only) using the public-read ACL, or to private using the private ACL.

        • arn — (String)

          The Amazon Resource Name (ARN) of the bucket.

        • bundleId — (String)

          The ID of the bundle currently applied to the bucket.

          A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.

          Use the UpdateBucketBundle action to change the bundle of a bucket.

        • createdAt — (Date)

          The timestamp when the distribution was created.

        • url — (String)

          The URL of the bucket.

        • location — (map)

          An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • name — (String)

          The name of the bucket.

        • supportCode — (String)

          The support code for a bucket. Include this code in your email to support when you have questions about a Lightsail bucket. This code enables our support team to look up your Lightsail information more easily.

        • tags — (Array<map>)

          The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • objectVersioning — (String)

          Indicates whether object versioning is enabled for the bucket.

          The following options can be configured:

          • Enabled - Object versioning is enabled.

          • Suspended - Object versioning was previously enabled but is currently suspended. Existing object versions are retained.

          • NeverEnabled - Object versioning has never been enabled.

        • ableToUpdateBundle — (Boolean)

          Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.

          You can update a bucket's bundle only one time within a monthly Amazon Web Services billing cycle.

          Use the UpdateBucketBundle action to change a bucket's bundle.

        • readonlyAccessAccounts — (Array<String>)

          An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.

        • resourcesReceivingAccess — (Array<map>)

          An array of objects that describe Lightsail instances that have access to the bucket.

          Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.

          • name — (String)

            The name of the Lightsail instance.

          • resourceType — (String)

            The Lightsail resource type (for example, Instance).

        • state — (map)

          An object that describes the state of the bucket.

          • code — (String)

            The state code of the bucket.

            The following codes are possible:

            • OK - The bucket is in a running state.

            • Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket and create a new one.

          • message — (String)

            A message that describes the state of the bucket.

        • accessLogConfig — (map)

          An object that describes the access log configuration for the bucket.

          • enabledrequired — (Boolean)

            A Boolean value that indicates whether bucket access logging is enabled for the bucket.

          • destination — (String)

            The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.

            Note: This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
          • prefix — (String)

            The optional object prefix for the bucket access log.

            The prefix is an optional addition to the object key that organizes your access log files in the destination bucket. For example, if you specify a logs/ prefix, then each log object will begin with the logs/ prefix in its key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0).

            Note: This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.
      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 the CreateBucketAccessKey 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.

Service Reference:

Examples:

Calling the createBucketAccessKey operation

var params = {
  bucketName: 'STRING_VALUE' /* required */
};
lightsail.createBucketAccessKey(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket that the new access key will belong to, and grant access to.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • accessKey — (map)

        An object that describes the access key that is created.

        • accessKeyId — (String)

          The ID of the access key.

        • secretAccessKey — (String)

          The secret access key used to sign requests.

          You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.

        • status — (String)

          The status of the access key.

          A status of Active means that the key is valid, while Inactive means it is not.

          Possible values include:
          • "Active"
          • "Inactive"
        • createdAt — (Date)

          The timestamp when the access key was created.

        • lastUsed — (map)

          An object that describes the last time the access key was used.

          Note: This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region and serviceName values are N/A, and the lastUsedDate value is null.
          • lastUsedDate — (Date)

            The date and time when the access key was most recently used.

            This value is null if the access key has not been used.

          • region — (String)

            The Amazon Web Services Region where this access key was most recently used.

            This value is N/A if the access key has not been used.

          • serviceName — (String)

            The name of the Amazon Web Services service with which this access key was most recently used.

            This value is N/A if the access key has not been used.

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 the UpdateContainerService 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 the us-east-1 Region.

Service Reference:

Examples:

Calling the createCertificate operation

var params = {
  certificateName: 'STRING_VALUE', /* required */
  domainName: 'STRING_VALUE', /* required */
  subjectAlternativeNames: [
    'STRING_VALUE',
    /* more items */
  ],
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • certificateName — (String)

      The name for the certificate.

    • domainName — (String)

      The domain name (example.com) for the certificate.

    • subjectAlternativeNames — (Array<String>)

      An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) for the certificate.

      You can specify a maximum of nine alternate domains (in addition to the primary domain name).

      Wildcard domain entries (*.example.com) are not supported.

    • tags — (Array<map>)

      The tag keys and optional values to add to the certificate during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • certificate — (map)

        An object that describes the certificate created.

        • certificateArn — (String)

          The Amazon Resource Name (ARN) of the certificate.

        • certificateName — (String)

          The name of the certificate.

        • domainName — (String)

          The domain name of the certificate.

        • certificateDetail — (map)

          An object that describes a certificate in detail.

          • arn — (String)

            The Amazon Resource Name (ARN) of the certificate.

          • name — (String)

            The name of the certificate (my-certificate).

          • domainName — (String)

            The domain name of the certificate.

          • status — (String)

            The validation status of the certificate.

            Possible values include:
            • "PENDING_VALIDATION"
            • "ISSUED"
            • "INACTIVE"
            • "EXPIRED"
            • "VALIDATION_TIMED_OUT"
            • "REVOKED"
            • "FAILED"
          • serialNumber — (String)

            The serial number of the certificate.

          • subjectAlternativeNames — (Array<String>)

            An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) of the certificate.

          • domainValidationRecords — (Array<map>)

            An array of objects that describe the domain validation records of the certificate.

            • domainName — (String)

              The domain name of the certificate validation record. For example, example.com or www.example.com.

            • resourceRecord — (map)

              An object that describes the DNS records to add to your domain's DNS to validate it for the certificate.

              • name — (String)

                The name of the record.

              • type — (String)

                The DNS record type.

              • value — (String)

                The value for the DNS record.

            • dnsRecordCreationState — (map)

              An object that describes the state of the canonical name (CNAME) records that are automatically added by Lightsail to the DNS of the domain to validate domain ownership.

              • code — (String)

                The status code for the automated DNS record creation.

                Following are the possible values:

                • SUCCEEDED - The validation records were successfully added to the domain.

                • STARTED - The automatic DNS record creation has started.

                • FAILED - The validation records failed to be added to the domain.

                Possible values include:
                • "SUCCEEDED"
                • "STARTED"
                • "FAILED"
              • message — (String)

                The message that describes the reason for the status code.

            • validationStatus — (String)

              The validation status of the record.

              Possible values include:
              • "PENDING_VALIDATION"
              • "FAILED"
              • "SUCCESS"
          • requestFailureReason — (String)

            The validation failure reason, if any, of the certificate.

            The following failure reasons are possible:

            • NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not available for Lightsail certificates.

            • ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the Amazon Web Services Support Center to contact Amazon Web Services Support.

              Note: You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
            • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.

              If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.

              If you see this error and your domain is not included in the VirusTotal list, visit the Amazon Web Services Support Center and create a case.

            • INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate for example.invalidpublicdomain because invalidpublicdomain is not a valid top-level domain.

            • OTHER - Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.

          • inUseResourceCount — (Integer)

            The number of Lightsail resources that the certificate is attached to.

          • keyAlgorithm — (String)

            The algorithm used to generate the key pair (the public and private key) of the certificate.

          • createdAt — (Date)

            The timestamp when the certificate was created.

          • issuedAt — (Date)

            The timestamp when the certificate was issued.

          • issuerCA — (String)

            The certificate authority that issued the certificate.

          • notBefore — (Date)

            The timestamp when the certificate is first valid.

          • notAfter — (Date)

            The timestamp when the certificate expires.

          • eligibleToRenew — (String)

            The renewal eligibility of the certificate.

          • renewalSummary — (map)

            An object that describes the status of the certificate renewal managed by Lightsail.

            • domainValidationRecords — (Array<map>)

              An array of objects that describe the domain validation records of the certificate.

              • domainName — (String)

                The domain name of the certificate validation record. For example, example.com or www.example.com.

              • resourceRecord — (map)

                An object that describes the DNS records to add to your domain's DNS to validate it for the certificate.

                • name — (String)

                  The name of the record.

                • type — (String)

                  The DNS record type.

                • value — (String)

                  The value for the DNS record.

              • dnsRecordCreationState — (map)

                An object that describes the state of the canonical name (CNAME) records that are automatically added by Lightsail to the DNS of the domain to validate domain ownership.

                • code — (String)

                  The status code for the automated DNS record creation.

                  Following are the possible values:

                  • SUCCEEDED - The validation records were successfully added to the domain.

                  • STARTED - The automatic DNS record creation has started.

                  • FAILED - The validation records failed to be added to the domain.

                  Possible values include:
                  • "SUCCEEDED"
                  • "STARTED"
                  • "FAILED"
                • message — (String)

                  The message that describes the reason for the status code.

              • validationStatus — (String)

                The validation status of the record.

                Possible values include:
                • "PENDING_VALIDATION"
                • "FAILED"
                • "SUCCESS"
            • renewalStatus — (String)

              The renewal status of the certificate.

              The following renewal status are possible:

              • PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of the certificate. No further action is required.

              • PendingValidation - Lightsail couldn't automatically validate one or more domain names of the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate remains in use.

              • Success - All domain names in the certificate are validated, and Lightsail renewed the certificate. No further action is required.

              • Failed - One or more domain names were not validated before the certificate expired, and Lightsail did not renew the certificate. You can request a new certificate using the CreateCertificate action.

              Possible values include:
              • "PendingAutoRenewal"
              • "PendingValidation"
              • "Success"
              • "Failed"
            • renewalStatusReason — (String)

              The reason for the renewal status of the certificate.

            • updatedAt — (Date)

              The timestamp when the certificate was last updated.

          • revokedAt — (Date)

            The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED.

          • revocationReason — (String)

            The reason the certificate was revoked. This value is present only when the certificate status is REVOKED.

          • tags — (Array<map>)

            The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

            • key — (String)

              The key of the tag.

              Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

            • value — (String)

              The value of the tag.

              Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • supportCode — (String)

            The support code. Include this code in your email to support when you have questions about your Lightsail certificate. This code enables our support team to look up your Lightsail information more easily.

        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createCloudFormationStack operation

var params = {
  instances: [ /* required */
    {
      availabilityZone: 'STRING_VALUE', /* required */
      instanceType: 'STRING_VALUE', /* required */
      portInfoSource: DEFAULT | INSTANCE | NONE | CLOSED, /* required */
      sourceName: 'STRING_VALUE', /* required */
      userData: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createCloudFormationStack(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instances — (Array<map>)

      An array of parameters that will be used to create the new Amazon EC2 instance. You can only pass one instance entry at a time in this array. You will get an invalid parameter error if you pass more than one instance entry in this array.

      • sourceNamerequired — (String)

        The name of the export snapshot record, which contains the exported Lightsail instance snapshot that will be used as the source of the new Amazon EC2 instance.

        Use the get export snapshot records operation to get a list of export snapshot records that you can use to create a CloudFormation stack.

      • instanceTyperequired — (String)

        The instance type (t2.micro) to use for the new Amazon EC2 instance.

      • portInfoSourcerequired — (String)

        The port configuration to use for the new Amazon EC2 instance.

        The following configuration options are available:

        • DEFAULT - Use the default firewall settings from the Lightsail instance blueprint. If this is specified, then IPv4 and IPv6 will be configured for the new instance that is created in Amazon EC2.

        • INSTANCE - Use the configured firewall settings from the source Lightsail instance. If this is specified, the new instance that is created in Amazon EC2 will be configured to match the configuration of the source Lightsail instance. For example, if the source instance is configured for dual-stack (IPv4 and IPv6), then IPv4 and IPv6 will be configured for the new instance that is created in Amazon EC2. If the source instance is configured for IPv4 only, then only IPv4 will be configured for the new instance that is created in Amazon EC2.

        • NONE - Use the default Amazon EC2 security group. If this is specified, then only IPv4 will be configured for the new instance that is created in Amazon EC2.

        • CLOSED - All ports closed. If this is specified, then only IPv4 will be configured for the new instance that is created in Amazon EC2.

        Note: If you configured lightsail-connect as a cidrListAliases on your instance, or if you chose to allow the Lightsail browser-based SSH or RDP clients to connect to your instance, that configuration is not carried over to your new Amazon EC2 instance.
        Possible values include:
        • "DEFAULT"
        • "INSTANCE"
        • "NONE"
        • "CLOSED"
      • userData — (String)

        A launch script you can create that configures a server with additional user data. For example, you might want to run apt-get -y update.

        Note: Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use apt-get, and FreeBSD uses pkg.
      • availabilityZonerequired — (String)

        The Availability Zone for the new Amazon EC2 instance.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createContactMethod operation

var params = {
  contactEndpoint: 'STRING_VALUE', /* required */
  protocol: Email | SMS /* required */
};
lightsail.createContactMethod(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • protocol — (String)

      The protocol of the contact method, such as Email or SMS (text messaging).

      The SMS protocol is supported only in the following Amazon Web Services Regions.

      • US East (N. Virginia) (us-east-1)

      • US West (Oregon) (us-west-2)

      • Europe (Ireland) (eu-west-1)

      • Asia Pacific (Tokyo) (ap-northeast-1)

      • Asia Pacific (Singapore) (ap-southeast-1)

      • Asia Pacific (Sydney) (ap-southeast-2)

      For a list of countries/regions where SMS text messages can be sent, and the latest Amazon Web Services Regions where SMS text messaging is supported, see Supported Regions and Countries in the Amazon SNS Developer Guide.

      For more information about notifications in Amazon Lightsail, see Notifications in Amazon Lightsail.

      Possible values include:
      • "Email"
      • "SMS"
    • contactEndpoint — (String)

      The destination of the contact method, such as an email address or a mobile phone number.

      Use the E.164 format when specifying a mobile phone number. E.164 is a standard for the phone number structure used for international telecommunication. Phone numbers that follow this format can have a maximum of 15 digits, and they are prefixed with the plus character (+) and the country code. For example, a U.S. phone number in E.164 format would be specified as +1XXX5550100. For more information, see E.164 on Wikipedia.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createContainerService operation

var params = {
  power: nano | micro | small | medium | large | xlarge, /* required */
  scale: 'NUMBER_VALUE', /* required */
  serviceName: 'STRING_VALUE', /* required */
  deployment: {
    containers: {
      '<ContainerName>': {
        command: [
          'STRING_VALUE',
          /* more items */
        ],
        environment: {
          '<string>': 'STRING_VALUE',
          /* '<string>': ... */
        },
        image: 'STRING_VALUE',
        ports: {
          '<string>': HTTP | HTTPS | TCP | UDP,
          /* '<string>': ... */
        }
      },
      /* '<ContainerName>': ... */
    },
    publicEndpoint: {
      containerName: 'STRING_VALUE', /* required */
      containerPort: 'NUMBER_VALUE', /* required */
      healthCheck: {
        healthyThreshold: 'NUMBER_VALUE',
        intervalSeconds: 'NUMBER_VALUE',
        path: 'STRING_VALUE',
        successCodes: 'STRING_VALUE',
        timeoutSeconds: 'NUMBER_VALUE',
        unhealthyThreshold: 'NUMBER_VALUE'
      }
    }
  },
  privateRegistryAccess: {
    ecrImagePullerRole: {
      isActive: true || false
    }
  },
  publicDomainNames: {
    '<string>': [
      'STRING_VALUE',
      /* more items */
    ],
    /* '<string>': ... */
  },
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createContainerService(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name for the container service.

      The name that you specify for your container service will make up part of its default domain. The default domain of a container service is typically https://&lt;ServiceName&gt;.&lt;RandomGUID&gt;.&lt;AWSRegion&gt;.cs.amazonlightsail.com. If the name of your container service is container-service-1, and it's located in the US East (Ohio) Amazon Web Services Region (us-east-2), then the domain for your container service will be like the following example: https://container-service-1.ur4EXAMPLE2uq.us-east-2.cs.amazonlightsail.com

      The following are the requirements for container service names:

      • Must be unique within each Amazon Web Services Region in your Lightsail account.

      • Must contain 1 to 63 characters.

      • Must contain only alphanumeric characters and hyphens.

      • A hyphen (-) can separate words but cannot be at the start or end of the name.

    • power — (String)

      The power specification for the container service.

      The power specifies the amount of memory, vCPUs, and base monthly cost of each node of the container service. The power and scale of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power with the scale (the number of nodes) of the service.

      Use the GetContainerServicePowers action to get a list of power options that you can specify using this parameter, and their base monthly cost.

      Possible values include:
      • "nano"
      • "micro"
      • "small"
      • "medium"
      • "large"
      • "xlarge"
    • scale — (Integer)

      The scale specification for the container service.

      The scale specifies the allocated compute nodes of the container service. The power and scale of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power with the scale (the number of nodes) of the service.

    • tags — (Array<map>)

      The tag keys and optional values to add to the container service during create.

      Use the TagResource action to tag a resource after it's created.

      For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

    • publicDomainNames — (map<Array<String>>)

      The public domain names to use with the container service, such as example.com and www.example.com.

      You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.

      If you don't specify public domain names, then you can use the default domain of the container service.

      You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate action to create a certificate for the public domain names you want to use with your container service.

      You can specify public domain names using a string to array map as shown in the example later on this page.

    • deployment — (map)

      An object that describes a deployment for the 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.

      • containers — (map<map>)

        An object that describes the configuration for the containers of the deployment.

        • image — (String)

          The name of the image used for the container.

          Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

          Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

        • command — (Array<String>)

          The launch command for the container.

        • environment — (map<String>)

          The environment variables of the container.

        • ports — (map<String>)

          The open firewall ports of the container.

      • publicEndpoint — (map)

        An object that describes the endpoint of the deployment.

        • containerNamerequired — (String)

          The name of the container for the endpoint.

        • containerPortrequired — (Integer)

          The port of the container to which traffic is forwarded to.

        • healthCheck — (map)

          An object that describes the health check configuration of the container.

          • healthyThreshold — (Integer)

            The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

          • unhealthyThreshold — (Integer)

            The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

          • timeoutSeconds — (Integer)

            The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

          • intervalSeconds — (Integer)

            The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

          • path — (String)

            The path on the container on which to perform the health check. The default value is /.

          • successCodes — (String)

            The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

    • privateRegistryAccess — (map)

      An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.

      For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.

      • ecrImagePullerRole — (map)

        An object to describe a request to activate or deactivate the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.

        • isActive — (Boolean)

          A Boolean value that indicates whether to activate the role.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • containerService — (map)

        An object that describes a container service.

        • containerServiceName — (String)

          The name of the container service.

        • arn — (String)

          The Amazon Resource Name (ARN) of the container service.

        • createdAt — (Date)

          The timestamp when the container service was created.

        • location — (map)

          An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type of the container service.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • power — (String)

          The power specification of the container service.

          The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.

          Possible values include:
          • "nano"
          • "micro"
          • "small"
          • "medium"
          • "large"
          • "xlarge"
        • powerId — (String)

          The ID of the power of the container service.

        • state — (String)

          The current state of the container service.

          The following container service states are possible:

          • PENDING - The container service is being created.

          • READY - The container service is running but it does not have an active container deployment.

          • DEPLOYING - The container service is launching a container deployment.

          • RUNNING - The container service is running and it has an active container deployment.

          • UPDATING - The container service capacity or its custom domains are being updated.

          • DELETING - The container service is being deleted.

          • DISABLED - The container service is disabled, and its active deployment and containers, if any, are shut down.

          Possible values include:
          • "PENDING"
          • "READY"
          • "RUNNING"
          • "UPDATING"
          • "DELETING"
          • "DISABLED"
          • "DEPLOYING"
        • stateDetail — (map)

          An object that describes the current state of the container service.

          Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
          • code — (String)

            The state code of the container service.

            The following state codes are possible:

            • The following state codes are possible if your container service is in a DEPLOYING or UPDATING state:

              • CREATING_SYSTEM_RESOURCES - The system resources for your container service are being created.

              • CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for your container service are being created.

              • PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your container service is being created.

              • PROVISIONING_SERVICE - Your container service is being provisioned.

              • CREATING_DEPLOYMENT - Your deployment is being created on your container service.

              • EVALUATING_HEALTH_CHECK - The health of your deployment is being evaluated.

              • ACTIVATING_DEPLOYMENT - Your deployment is being activated.

            • The following state codes are possible if your container service is in a PENDING state:

              • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS certificate required for your container service exceeds the maximum number of certificates allowed for your account.

              • UNKNOWN_ERROR - An error was experienced when your container service was being created.

            Possible values include:
            • "CREATING_SYSTEM_RESOURCES"
            • "CREATING_NETWORK_INFRASTRUCTURE"
            • "PROVISIONING_CERTIFICATE"
            • "PROVISIONING_SERVICE"
            • "CREATING_DEPLOYMENT"
            • "EVALUATING_HEALTH_CHECK"
            • "ACTIVATING_DEPLOYMENT"
            • "CERTIFICATE_LIMIT_EXCEEDED"
            • "UNKNOWN_ERROR"
          • message — (String)

            A message that provides more information for the state code.

            Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
        • scale — (Integer)

          The scale specification of the container service.

          The scale specifies the allocated compute nodes of the container service.

        • currentDeployment — (map)

          An object that describes the current container deployment of the container service.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • nextDeployment — (map)

          An object that describes the next deployment of the container service.

          This value is null when there is no deployment in a pending state.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • isDisabled — (Boolean)

          A Boolean value indicating whether the container service is disabled.

        • principalArn — (String)

          The principal ARN of the container service.

          The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.

        • privateDomainName — (String)

          The private domain name of the container service.

          The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.

        • publicDomainNames — (map<Array<String>>)

          The public domain name of the container service, such as example.com and www.example.com.

          You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.

          If you don't specify public domain names, then you can use the default domain of the container service.

          You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate action to create a certificate for the public domain names you want to use with your container service.

          See CreateContainerService or UpdateContainerService for information about how to specify public domain names for your Lightsail container service.

        • url — (String)

          The publicly accessible URL of the container service.

          If no public endpoint is specified in the currentDeployment, this URL returns a 404 response.

        • privateRegistryAccess — (map)

          An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.

          For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.

          • ecrImagePullerRole — (map)

            An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories. If the role is activated, the Amazon Resource Name (ARN) of the role is also listed.

            • isActive — (Boolean)

              A Boolean value that indicates whether the role is activated.

            • principalArn — (String)

              The Amazon Resource Name (ARN) of the role, if it is activated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Examples:

Calling the createContainerServiceDeployment operation

var params = {
  serviceName: 'STRING_VALUE', /* required */
  containers: {
    '<ContainerName>': {
      command: [
        'STRING_VALUE',
        /* more items */
      ],
      environment: {
        '<string>': 'STRING_VALUE',
        /* '<string>': ... */
      },
      image: 'STRING_VALUE',
      ports: {
        '<string>': HTTP | HTTPS | TCP | UDP,
        /* '<string>': ... */
      }
    },
    /* '<ContainerName>': ... */
  },
  publicEndpoint: {
    containerName: 'STRING_VALUE', /* required */
    containerPort: 'NUMBER_VALUE', /* required */
    healthCheck: {
      healthyThreshold: 'NUMBER_VALUE',
      intervalSeconds: 'NUMBER_VALUE',
      path: 'STRING_VALUE',
      successCodes: 'STRING_VALUE',
      timeoutSeconds: 'NUMBER_VALUE',
      unhealthyThreshold: 'NUMBER_VALUE'
    }
  }
};
lightsail.createContainerServiceDeployment(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to create the deployment.

    • containers — (map<map>)

      An object that describes the settings of the containers that will be launched on the container service.

      • image — (String)

        The name of the image used for the container.

        Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

        Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

      • command — (Array<String>)

        The launch command for the container.

      • environment — (map<String>)

        The environment variables of the container.

      • ports — (map<String>)

        The open firewall ports of the container.

    • publicEndpoint — (map)

      An object that describes the settings of the public endpoint for the container service.

      • containerNamerequired — (String)

        The name of the container for the endpoint.

      • containerPortrequired — (Integer)

        The port of the container to which traffic is forwarded to.

      • healthCheck — (map)

        An object that describes the health check configuration of the container.

        • healthyThreshold — (Integer)

          The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

        • unhealthyThreshold — (Integer)

          The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

        • timeoutSeconds — (Integer)

          The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

        • intervalSeconds — (Integer)

          The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

        • path — (String)

          The path on the container on which to perform the health check. The default value is /.

        • successCodes — (String)

          The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • containerService — (map)

        An object that describes a container service.

        • containerServiceName — (String)

          The name of the container service.

        • arn — (String)

          The Amazon Resource Name (ARN) of the container service.

        • createdAt — (Date)

          The timestamp when the container service was created.

        • location — (map)

          An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type of the container service.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • power — (String)

          The power specification of the container service.

          The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.

          Possible values include:
          • "nano"
          • "micro"
          • "small"
          • "medium"
          • "large"
          • "xlarge"
        • powerId — (String)

          The ID of the power of the container service.

        • state — (String)

          The current state of the container service.

          The following container service states are possible:

          • PENDING - The container service is being created.

          • READY - The container service is running but it does not have an active container deployment.

          • DEPLOYING - The container service is launching a container deployment.

          • RUNNING - The container service is running and it has an active container deployment.

          • UPDATING - The container service capacity or its custom domains are being updated.

          • DELETING - The container service is being deleted.

          • DISABLED - The container service is disabled, and its active deployment and containers, if any, are shut down.

          Possible values include:
          • "PENDING"
          • "READY"
          • "RUNNING"
          • "UPDATING"
          • "DELETING"
          • "DISABLED"
          • "DEPLOYING"
        • stateDetail — (map)

          An object that describes the current state of the container service.

          Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
          • code — (String)

            The state code of the container service.

            The following state codes are possible:

            • The following state codes are possible if your container service is in a DEPLOYING or UPDATING state:

              • CREATING_SYSTEM_RESOURCES - The system resources for your container service are being created.

              • CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for your container service are being created.

              • PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your container service is being created.

              • PROVISIONING_SERVICE - Your container service is being provisioned.

              • CREATING_DEPLOYMENT - Your deployment is being created on your container service.

              • EVALUATING_HEALTH_CHECK - The health of your deployment is being evaluated.

              • ACTIVATING_DEPLOYMENT - Your deployment is being activated.

            • The following state codes are possible if your container service is in a PENDING state:

              • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS certificate required for your container service exceeds the maximum number of certificates allowed for your account.

              • UNKNOWN_ERROR - An error was experienced when your container service was being created.

            Possible values include:
            • "CREATING_SYSTEM_RESOURCES"
            • "CREATING_NETWORK_INFRASTRUCTURE"
            • "PROVISIONING_CERTIFICATE"
            • "PROVISIONING_SERVICE"
            • "CREATING_DEPLOYMENT"
            • "EVALUATING_HEALTH_CHECK"
            • "ACTIVATING_DEPLOYMENT"
            • "CERTIFICATE_LIMIT_EXCEEDED"
            • "UNKNOWN_ERROR"
          • message — (String)

            A message that provides more information for the state code.

            Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
        • scale — (Integer)

          The scale specification of the container service.

          The scale specifies the allocated compute nodes of the container service.

        • currentDeployment — (map)

          An object that describes the current container deployment of the container service.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • nextDeployment — (map)

          An object that describes the next deployment of the container service.

          This value is null when there is no deployment in a pending state.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • isDisabled — (Boolean)

          A Boolean value indicating whether the container service is disabled.

        • principalArn — (String)

          The principal ARN of the container service.

          The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.

        • privateDomainName — (String)

          The private domain name of the container service.

          The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.

        • publicDomainNames — (map<Array<String>>)

          The public domain name of the container service, such as example.com and www.example.com.

          You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.

          If you don't specify public domain names, then you can use the default domain of the container service.

          You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate action to create a certificate for the public domain names you want to use with your container service.

          See CreateContainerService or UpdateContainerService for information about how to specify public domain names for your Lightsail container service.

        • url — (String)

          The publicly accessible URL of the container service.

          If no public endpoint is specified in the currentDeployment, this URL returns a 404 response.

        • privateRegistryAccess — (map)

          An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.

          For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.

          • ecrImagePullerRole — (map)

            An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories. If the role is activated, the Amazon Resource Name (ARN) of the role is also listed.

            • isActive — (Boolean)

              A Boolean value that indicates whether the role is activated.

            • principalArn — (String)

              The Amazon Resource Name (ARN) of the role, if it is activated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Examples:

Calling the createContainerServiceRegistryLogin operation

var params = {
};
lightsail.createContainerServiceRegistryLogin(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • registryLogin — (map)

        An object that describes the log in information for the container service registry of your Lightsail account.

        • username — (String)

          The container service registry username to use to push container images to the container image registry of a Lightsail account.

        • password — (String)

          The container service registry password to use to push container images to the container image registry of a Lightsail account

        • expiresAt — (Date)

          The timestamp of when the container image registry sign-in credentials expire.

          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 using the CreateContainerServiceRegistryLogin action.

        • registry — (String)

          The address to use to push container images to the container image registry of a Lightsail account.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDisk(params = {}, callback) ⇒ AWS.Request

Creates a block storage disk that can be attached to an Amazon Lightsail instance in the same Availability Zone (us-east-2a).

The create disk operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the createDisk operation

var params = {
  availabilityZone: 'STRING_VALUE', /* required */
  diskName: 'STRING_VALUE', /* required */
  sizeInGb: 'NUMBER_VALUE', /* required */
  addOns: [
    {
      addOnType: AutoSnapshot | StopInstanceOnIdle, /* required */
      autoSnapshotAddOnRequest: {
        snapshotTimeOfDay: 'STRING_VALUE'
      },
      stopInstanceOnIdleRequest: {
        duration: 'STRING_VALUE',
        threshold: 'STRING_VALUE'
      }
    },
    /* more items */
  ],
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createDisk(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskName — (String)

      The unique Lightsail disk name (my-disk).

    • availabilityZone — (String)

      The Availability Zone where you want to create the disk (us-east-2a). Use the same Availability Zone as the Lightsail instance to which you want to attach the disk.

      Use the get regions operation to list the Availability Zones where Lightsail is currently available.

    • sizeInGb — (Integer)

      The size of the disk in GB (32).

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

    • addOns — (Array<map>)

      An array of objects that represent the add-ons to enable for the new disk.

      • addOnTyperequired — (String)

        The add-on type.

        Possible values include:
        • "AutoSnapshot"
        • "StopInstanceOnIdle"
      • autoSnapshotAddOnRequest — (map)

        An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.

        • snapshotTimeOfDay — (String)

          The daily time when an automatic snapshot will be created.

          Constraints:

          • Must be in HH:00 format, and in an hourly increment.

          • Specified in Coordinated Universal Time (UTC).

          • The snapshot will be automatically created between the time specified and up to 45 minutes after.

      • stopInstanceOnIdleRequest — (map)

        An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle add-on.

        This object only applies to Lightsail for Research resources.

        • threshold — (String)

          The value to compare with the duration.

        • duration — (String)

          The amount of idle time in minutes after which your virtual computer will automatically stop.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 (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 by disk snapshot name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the createDiskFromSnapshot operation

var params = {
  availabilityZone: 'STRING_VALUE', /* required */
  diskName: 'STRING_VALUE', /* required */
  sizeInGb: 'NUMBER_VALUE', /* required */
  addOns: [
    {
      addOnType: AutoSnapshot | StopInstanceOnIdle, /* required */
      autoSnapshotAddOnRequest: {
        snapshotTimeOfDay: 'STRING_VALUE'
      },
      stopInstanceOnIdleRequest: {
        duration: 'STRING_VALUE',
        threshold: 'STRING_VALUE'
      }
    },
    /* more items */
  ],
  diskSnapshotName: 'STRING_VALUE',
  restoreDate: 'STRING_VALUE',
  sourceDiskName: 'STRING_VALUE',
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ],
  useLatestRestorableAutoSnapshot: true || false
};
lightsail.createDiskFromSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskName — (String)

      The unique Lightsail disk name (my-disk).

    • diskSnapshotName — (String)

      The name of the disk snapshot (my-snapshot) from which to create the new storage disk.

      Constraint:

      • This parameter cannot be defined together with the source disk name parameter. The disk snapshot name and source disk name parameters are mutually exclusive.

    • availabilityZone — (String)

      The Availability Zone where you want to create the disk (us-east-2a). Choose the same Availability Zone as the Lightsail instance where you want to create the disk.

      Use the GetRegions operation to list the Availability Zones where Lightsail is currently available.

    • sizeInGb — (Integer)

      The size of the disk in GB (32).

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

    • addOns — (Array<map>)

      An array of objects that represent the add-ons to enable for the new disk.

      • addOnTyperequired — (String)

        The add-on type.

        Possible values include:
        • "AutoSnapshot"
        • "StopInstanceOnIdle"
      • autoSnapshotAddOnRequest — (map)

        An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.

        • snapshotTimeOfDay — (String)

          The daily time when an automatic snapshot will be created.

          Constraints:

          • Must be in HH:00 format, and in an hourly increment.

          • Specified in Coordinated Universal Time (UTC).

          • The snapshot will be automatically created between the time specified and up to 45 minutes after.

      • stopInstanceOnIdleRequest — (map)

        An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle add-on.

        This object only applies to Lightsail for Research resources.

        • threshold — (String)

          The value to compare with the duration.

        • duration — (String)

          The amount of idle time in minutes after which your virtual computer will automatically stop.

    • sourceDiskName — (String)

      The name of the source disk from which the source automatic snapshot was created.

      Constraints:

      • This parameter cannot be defined together with the disk snapshot name parameter. The source disk name and disk snapshot name parameters are mutually exclusive.

      • Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

    • restoreDate — (String)

      The date of the automatic snapshot to use for the new disk. Use the get auto snapshots operation to identify the dates of the available automatic snapshots.

      Constraints:

      • Must be specified in YYYY-MM-DD format.

      • This parameter cannot be defined together with the use latest restorable auto snapshot parameter. The restore date and use latest restorable auto snapshot parameters are mutually exclusive.

      • Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

    • useLatestRestorableAutoSnapshot — (Boolean)

      A Boolean value to indicate whether to use the latest available automatic snapshot.

      Constraints:

      • This parameter cannot be defined together with the restore date parameter. The use latest restorable auto snapshot and restore date parameters are mutually exclusive.

      • Define this parameter only when creating a new disk from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createDiskSnapshot operation

var params = {
  diskSnapshotName: 'STRING_VALUE', /* required */
  diskName: 'STRING_VALUE',
  instanceName: 'STRING_VALUE',
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createDiskSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskName — (String)

      The unique name of the source disk (Disk-Virginia-1).

      Note: This parameter cannot be defined together with the instance name parameter. The disk name and instance name parameters are mutually exclusive.
    • diskSnapshotName — (String)

      The name of the destination disk snapshot (my-disk-snapshot) based on the source disk.

    • instanceName — (String)

      The unique name of the source instance (Amazon_Linux-512MB-Virginia-1). When this is defined, a snapshot of the instance's system volume is created.

      Note: This parameter cannot be defined together with the disk name parameter. The instance name and disk name parameters are mutually exclusive.
    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createDistribution operation

var params = {
  bundleId: 'STRING_VALUE', /* required */
  defaultCacheBehavior: { /* required */
    behavior: dont-cache | cache
  },
  distributionName: 'STRING_VALUE', /* required */
  origin: { /* required */
    name: 'STRING_VALUE',
    protocolPolicy: http-only | https-only,
    regionName: us-east-1 | us-east-2 | us-west-1 | us-west-2 | eu-west-1 | eu-west-2 | eu-west-3 | eu-central-1 | ca-central-1 | ap-south-1 | ap-southeast-1 | ap-southeast-2 | ap-northeast-1 | ap-northeast-2 | eu-north-1
  },
  cacheBehaviorSettings: {
    allowedHTTPMethods: 'STRING_VALUE',
    cachedHTTPMethods: 'STRING_VALUE',
    defaultTTL: 'NUMBER_VALUE',
    forwardedCookies: {
      cookiesAllowList: [
        'STRING_VALUE',
        /* more items */
      ],
      option: none | allow-list | all
    },
    forwardedHeaders: {
      headersAllowList: [
        Accept | Accept-Charset | Accept-Datetime | Accept-Encoding | Accept-Language | Authorization | CloudFront-Forwarded-Proto | CloudFront-Is-Desktop-Viewer | CloudFront-Is-Mobile-Viewer | CloudFront-Is-SmartTV-Viewer | CloudFront-Is-Tablet-Viewer | CloudFront-Viewer-Country | Host | Origin | Referer,
        /* more items */
      ],
      option: none | allow-list | all
    },
    forwardedQueryStrings: {
      option: true || false,
      queryStringsAllowList: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    maximumTTL: 'NUMBER_VALUE',
    minimumTTL: 'NUMBER_VALUE'
  },
  cacheBehaviors: [
    {
      behavior: dont-cache | cache,
      path: 'STRING_VALUE'
    },
    /* more items */
  ],
  ipAddressType: dualstack | ipv4,
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createDistribution(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name for the distribution.

    • origin — (map)

      An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.

      The distribution pulls, caches, and serves content from the origin.

      • name — (String)

        The name of the origin resource.

      • regionName — (String)

        The AWS Region name of the origin resource.

        Possible values include:
        • "us-east-1"
        • "us-east-2"
        • "us-west-1"
        • "us-west-2"
        • "eu-west-1"
        • "eu-west-2"
        • "eu-west-3"
        • "eu-central-1"
        • "ca-central-1"
        • "ap-south-1"
        • "ap-southeast-1"
        • "ap-southeast-2"
        • "ap-northeast-1"
        • "ap-northeast-2"
        • "eu-north-1"
      • protocolPolicy — (String)

        The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

        Possible values include:
        • "http-only"
        • "https-only"
    • defaultCacheBehavior — (map)

      An object that describes the default cache behavior for the distribution.

      • behavior — (String)

        The cache behavior of the distribution.

        The following cache behaviors can be specified:

        • cache - This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.

        • dont-cache - This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.

        Possible values include:
        • "dont-cache"
        • "cache"
    • cacheBehaviorSettings — (map)

      An object that describes the cache behavior settings for the distribution.

      • defaultTTL — (Integer)

        The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.

        Note: The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.
      • minimumTTL — (Integer)

        The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

        A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.

      • maximumTTL — (Integer)

        The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

        The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

      • allowedHTTPMethods — (String)

        The HTTP methods that are processed and forwarded to the distribution's origin.

        You can specify the following options:

        • GET,HEAD - The distribution forwards the GET and HEAD methods.

        • GET,HEAD,OPTIONS - The distribution forwards the GET, HEAD, and OPTIONS methods.

        • GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE - The distribution forwards the GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE methods.

        If you specify the third option, you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin.

      • cachedHTTPMethods — (String)

        The HTTP method responses that are cached by your distribution.

        You can specify the following options:

        • GET,HEAD - The distribution caches responses to the GET and HEAD methods.

        • GET,HEAD,OPTIONS - The distribution caches responses to the GET, HEAD, and OPTIONS methods.

      • forwardedCookies — (map)

        An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.

        • option — (String)

          Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.

          Possible values include:
          • "none"
          • "allow-list"
          • "all"
        • cookiesAllowList — (Array<String>)

          The specific cookies to forward to your distribution's origin.

      • forwardedHeaders — (map)

        An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.

        • option — (String)

          The headers that you want your distribution to forward to your origin and base caching on.

          You can configure your distribution to do one of the following:

          • all - Forward all headers to your origin.

          • none - Forward only the default headers.

          • allow-list - Forward only the headers you specify using the headersAllowList parameter.

          Possible values include:
          • "none"
          • "allow-list"
          • "all"
        • headersAllowList — (Array<String>)

          The specific headers to forward to your distribution's origin.

      • forwardedQueryStrings — (map)

        An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.

        • option — (Boolean)

          Indicates whether the distribution forwards and caches based on query strings.

        • queryStringsAllowList — (Array<String>)

          The specific query strings that the distribution forwards to the origin.

          Your distribution will cache content based on the specified query strings.

          If the option parameter is true, then your distribution forwards all query strings, regardless of what you specify using the queryStringsAllowList parameter.

    • cacheBehaviors — (Array<map>)

      An array of objects that describe the per-path cache behavior for the distribution.

      • path — (String)

        The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/*), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

        Examples:

        • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

          var/www/html/

        • Specify the following file to cache only the index page in the document root of an Apache web server.

          var/www/html/index.html

        • Specify the following to cache only the .html files in the document root of an Apache web server.

          var/www/html/*.html

        • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

          var/www/html/images/*.jpg

          var/www/html/images/*.png

          var/www/html/images/*.gif

          Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

          var/www/html/images/

      • behavior — (String)

        The cache behavior for the specified path.

        You can specify one of the following per-path cache behaviors:

        • cache - This behavior caches the specified path.

        • dont-cache - This behavior doesn't cache the specified path.

        Possible values include:
        • "dont-cache"
        • "cache"
    • bundleId — (String)

      The bundle ID to use for the distribution.

      A distribution bundle describes the specifications of your distribution, such as the monthly cost and monthly network transfer quota.

      Use the GetDistributionBundles action to get a list of distribution bundle IDs that you can specify.

    • ipAddressType — (String)

      The IP address type for the distribution.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

      Possible values include:
      • "dualstack"
      • "ipv4"
    • tags — (Array<map>)

      The tag keys and optional values to add to the distribution during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • distribution — (map)

        An object that describes the distribution created.

        • name — (String)

          The name of the distribution.

        • arn — (String)

          The Amazon Resource Name (ARN) of the distribution.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the distribution was created.

        • location — (map)

          An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.

          Note: 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 the us-east-1 Region.
          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (Distribution).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • alternativeDomainNames — (Array<String>)

          The alternate domain names of the distribution.

        • status — (String)

          The status of the distribution.

        • isEnabled — (Boolean)

          Indicates whether the distribution is enabled.

        • domainName — (String)

          The domain name of the distribution.

        • bundleId — (String)

          The ID of the bundle currently applied to the distribution.

        • certificateName — (String)

          The name of the SSL/TLS certificate attached to the distribution, if any.

        • origin — (map)

          An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.

          The distribution pulls, caches, and serves content from the origin.

          • name — (String)

            The name of the origin resource.

          • resourceType — (String)

            The resource type of the origin resource (Instance).

            Possible values include:
            • "ContainerService"
            • "Instance"
            • "StaticIp"
            • "KeyPair"
            • "InstanceSnapshot"
            • "Domain"
            • "PeeredVpc"
            • "LoadBalancer"
            • "LoadBalancerTlsCertificate"
            • "Disk"
            • "DiskSnapshot"
            • "RelationalDatabase"
            • "RelationalDatabaseSnapshot"
            • "ExportSnapshotRecord"
            • "CloudFormationStackRecord"
            • "Alarm"
            • "ContactMethod"
            • "Distribution"
            • "Certificate"
            • "Bucket"
          • regionName — (String)

            The AWS Region name of the origin resource.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
          • protocolPolicy — (String)

            The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

            Possible values include:
            • "http-only"
            • "https-only"
        • originPublicDNS — (String)

          The public DNS of the origin.

        • defaultCacheBehavior — (map)

          An object that describes the default cache behavior of the distribution.

          • behavior — (String)

            The cache behavior of the distribution.

            The following cache behaviors can be specified:

            • cache - This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.

            • dont-cache - This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.

            Possible values include:
            • "dont-cache"
            • "cache"
        • cacheBehaviorSettings — (map)

          An object that describes the cache behavior settings of the distribution.

          • defaultTTL — (Integer)

            The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.

            Note: The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.
          • minimumTTL — (Integer)

            The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

            A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.

          • maximumTTL — (Integer)

            The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

            The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

          • allowedHTTPMethods — (String)

            The HTTP methods that are processed and forwarded to the distribution's origin.

            You can specify the following options:

            • GET,HEAD - The distribution forwards the GET and HEAD methods.

            • GET,HEAD,OPTIONS - The distribution forwards the GET, HEAD, and OPTIONS methods.

            • GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE - The distribution forwards the GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE methods.

            If you specify the third option, you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin.

          • cachedHTTPMethods — (String)

            The HTTP method responses that are cached by your distribution.

            You can specify the following options:

            • GET,HEAD - The distribution caches responses to the GET and HEAD methods.

            • GET,HEAD,OPTIONS - The distribution caches responses to the GET, HEAD, and OPTIONS methods.

          • forwardedCookies — (map)

            An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.

            • option — (String)

              Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.

              Possible values include:
              • "none"
              • "allow-list"
              • "all"
            • cookiesAllowList — (Array<String>)

              The specific cookies to forward to your distribution's origin.

          • forwardedHeaders — (map)

            An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.

            • option — (String)

              The headers that you want your distribution to forward to your origin and base caching on.

              You can configure your distribution to do one of the following:

              • all - Forward all headers to your origin.

              • none - Forward only the default headers.

              • allow-list - Forward only the headers you specify using the headersAllowList parameter.

              Possible values include:
              • "none"
              • "allow-list"
              • "all"
            • headersAllowList — (Array<String>)

              The specific headers to forward to your distribution's origin.

          • forwardedQueryStrings — (map)

            An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.

            • option — (Boolean)

              Indicates whether the distribution forwards and caches based on query strings.

            • queryStringsAllowList — (Array<String>)

              The specific query strings that the distribution forwards to the origin.

              Your distribution will cache content based on the specified query strings.

              If the option parameter is true, then your distribution forwards all query strings, regardless of what you specify using the queryStringsAllowList parameter.

        • cacheBehaviors — (Array<map>)

          An array of objects that describe the per-path cache behavior of the distribution.

          • path — (String)

            The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/*), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

            Examples:

            • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

              var/www/html/

            • Specify the following file to cache only the index page in the document root of an Apache web server.

              var/www/html/index.html

            • Specify the following to cache only the .html files in the document root of an Apache web server.

              var/www/html/*.html

            • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

              var/www/html/images/*.jpg

              var/www/html/images/*.png

              var/www/html/images/*.gif

              Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

              var/www/html/images/

          • behavior — (String)

            The cache behavior for the specified path.

            You can specify one of the following per-path cache behaviors:

            • cache - This behavior caches the specified path.

            • dont-cache - This behavior doesn't cache the specified path.

            Possible values include:
            • "dont-cache"
            • "cache"
        • ableToUpdateBundle — (Boolean)

          Indicates whether the bundle that is currently applied to your distribution, specified using the distributionName parameter, can be changed to another bundle.

          Use the UpdateDistributionBundle action to change your distribution's bundle.

        • ipAddressType — (String)

          The IP address type of the distribution.

          The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

          Possible values include:
          • "dualstack"
          • "ipv4"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDomain(params = {}, callback) ⇒ AWS.Request

Creates a domain resource for the specified domain (example.com).

The create domain operation supports tag-based access control via request tags. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the createDomain operation

var params = {
  domainName: 'STRING_VALUE', /* required */
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createDomain(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • domainName — (String)

      The domain name to manage (example.com).

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by domain name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the createDomainEntry operation

var params = {
  domainEntry: { /* required */
    id: 'STRING_VALUE',
    isAlias: true || false,
    name: 'STRING_VALUE',
    options: {
      '<DomainEntryOptionsKeys>': 'STRING_VALUE',
      /* '<DomainEntryOptionsKeys>': ... */
    },
    target: 'STRING_VALUE',
    type: 'STRING_VALUE'
  },
  domainName: 'STRING_VALUE' /* required */
};
lightsail.createDomainEntry(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • domainName — (String)

      The domain name (example.com) for which you want to create the domain entry.

    • domainEntry — (map)

      An array of key-value pairs containing information about the domain entry request.

      • id — (String)

        The ID of the domain recordset entry.

      • name — (String)

        The name of the domain.

      • target — (String)

        The target IP address (192.0.2.0), or AWS name server (ns-111.awsdns-22.com.).

        For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net. For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.

      • isAlias — (Boolean)

        When true, specifies whether the domain entry is an alias used by the Lightsail load balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to that resource.

      • type — (String)

        The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).

        The following domain entry types can be used:

        • A

        • AAAA

        • CNAME

        • MX

        • NS

        • SOA

        • SRV

        • TXT

      • options — (map<String>)

        (Discontinued) The options for the domain entry.

        Note: In releases prior to November 29, 2017, this parameter was not included in the API response. It is now discontinued.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createGUISessionAccessDetails operation

var params = {
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.createGUISessionAccessDetails(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The resource name.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • resourceName — (String)

        The resource name.

      • status — (String)

        The status of the operation.

        Possible values include:
        • "startExpired"
        • "notStarted"
        • "started"
        • "starting"
        • "stopped"
        • "stopping"
        • "settingUpInstance"
        • "failedInstanceCreation"
        • "failedStartingGUISession"
        • "failedStoppingGUISession"
      • percentageComplete — (Integer)

        The percentage of completion for the operation.

      • failureReason — (String)

        The reason the operation failed.

      • sessions — (Array<map>)

        Returns information about the specified NICE DCV GUI session.

        • name — (String)

          The session name.

        • url — (String)

          The session URL.

        • isPrimary — (Boolean)

          When true, this Boolean value indicates the primary session for the specified resource.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createInstances operation

var params = {
  availabilityZone: 'STRING_VALUE', /* required */
  blueprintId: 'STRING_VALUE', /* required */
  bundleId: 'STRING_VALUE', /* required */
  instanceNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  addOns: [
    {
      addOnType: AutoSnapshot | StopInstanceOnIdle, /* required */
      autoSnapshotAddOnRequest: {
        snapshotTimeOfDay: 'STRING_VALUE'
      },
      stopInstanceOnIdleRequest: {
        duration: 'STRING_VALUE',
        threshold: 'STRING_VALUE'
      }
    },
    /* more items */
  ],
  customImageName: 'STRING_VALUE',
  ipAddressType: dualstack | ipv4,
  keyPairName: 'STRING_VALUE',
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ],
  userData: 'STRING_VALUE'
};
lightsail.createInstances(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceNames — (Array<String>)

      The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: ["MyFirstInstance","MySecondInstance"]

    • availabilityZone — (String)

      The Availability Zone in which to create your instance. Use the following format: us-east-2a (case sensitive). You can get a list of Availability Zones by using the get regions operation. Be sure to add the include Availability Zones parameter to your request.

    • customImageName — (String)

      (Discontinued) The name for your custom image.

      Note: In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued.
    • blueprintId — (String)

      The ID for a virtual private server image (app_wordpress_4_4 or app_lamp_7_0). Use the get blueprints operation to return a list of available images (or blueprints).

      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.
    • bundleId — (String)

      The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_1_0).

    • userData — (String)

      A launch script you can create that configures a server with additional user data. For example, you might want to run apt-get -y update.

      Note: Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see the Amazon Lightsail Developer Guide.
    • keyPairName — (String)

      The name of your key pair.

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

    • addOns — (Array<map>)

      An array of objects representing the add-ons to enable for the new instance.

      • addOnTyperequired — (String)

        The add-on type.

        Possible values include:
        • "AutoSnapshot"
        • "StopInstanceOnIdle"
      • autoSnapshotAddOnRequest — (map)

        An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.

        • snapshotTimeOfDay — (String)

          The daily time when an automatic snapshot will be created.

          Constraints:

          • Must be in HH:00 format, and in an hourly increment.

          • Specified in Coordinated Universal Time (UTC).

          • The snapshot will be automatically created between the time specified and up to 45 minutes after.

      • stopInstanceOnIdleRequest — (map)

        An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle add-on.

        This object only applies to Lightsail for Research resources.

        • threshold — (String)

          The value to compare with the duration.

        • duration — (String)

          The amount of idle time in minutes after which your virtual computer will automatically stop.

    • ipAddressType — (String)

      The IP address type for the instance.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

      Possible values include:
      • "dualstack"
      • "ipv4"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by instance snapshot name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the createInstancesFromSnapshot operation

var params = {
  availabilityZone: 'STRING_VALUE', /* required */
  bundleId: 'STRING_VALUE', /* required */
  instanceNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  addOns: [
    {
      addOnType: AutoSnapshot | StopInstanceOnIdle, /* required */
      autoSnapshotAddOnRequest: {
        snapshotTimeOfDay: 'STRING_VALUE'
      },
      stopInstanceOnIdleRequest: {
        duration: 'STRING_VALUE',
        threshold: 'STRING_VALUE'
      }
    },
    /* more items */
  ],
  attachedDiskMapping: {
    '<ResourceName>': [
      {
        newDiskName: 'STRING_VALUE',
        originalDiskPath: 'STRING_VALUE'
      },
      /* more items */
    ],
    /* '<ResourceName>': ... */
  },
  instanceSnapshotName: 'STRING_VALUE',
  ipAddressType: dualstack | ipv4,
  keyPairName: 'STRING_VALUE',
  restoreDate: 'STRING_VALUE',
  sourceInstanceName: 'STRING_VALUE',
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ],
  useLatestRestorableAutoSnapshot: true || false,
  userData: 'STRING_VALUE'
};
lightsail.createInstancesFromSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceNames — (Array<String>)

      The names for your new instances.

    • attachedDiskMapping — (map<Array<map>>)

      An object containing information about one or more disk mappings.

      • originalDiskPath — (String)

        The original disk path exposed to the instance (for example, /dev/sdh).

      • newDiskName — (String)

        The new disk name (my-new-disk).

    • availabilityZone — (String)

      The Availability Zone where you want to create your instances. Use the following formatting: us-east-2a (case sensitive). You can get a list of Availability Zones by using the get regions operation. Be sure to add the include Availability Zones parameter to your request.

    • instanceSnapshotName — (String)

      The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.

      Constraint:

      • This parameter cannot be defined together with the source instance name parameter. The instance snapshot name and source instance name parameters are mutually exclusive.

    • bundleId — (String)

      The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_1_0).

    • userData — (String)

      You can create a launch script that configures a server with additional user data. For example, apt-get -y update.

      Note: Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see the Amazon Lightsail Developer Guide.
    • keyPairName — (String)

      The name for your key pair.

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

    • addOns — (Array<map>)

      An array of objects representing the add-ons to enable for the new instance.

      • addOnTyperequired — (String)

        The add-on type.

        Possible values include:
        • "AutoSnapshot"
        • "StopInstanceOnIdle"
      • autoSnapshotAddOnRequest — (map)

        An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.

        • snapshotTimeOfDay — (String)

          The daily time when an automatic snapshot will be created.

          Constraints:

          • Must be in HH:00 format, and in an hourly increment.

          • Specified in Coordinated Universal Time (UTC).

          • The snapshot will be automatically created between the time specified and up to 45 minutes after.

      • stopInstanceOnIdleRequest — (map)

        An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle add-on.

        This object only applies to Lightsail for Research resources.

        • threshold — (String)

          The value to compare with the duration.

        • duration — (String)

          The amount of idle time in minutes after which your virtual computer will automatically stop.

    • ipAddressType — (String)

      The IP address type for the instance.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

      Possible values include:
      • "dualstack"
      • "ipv4"
    • sourceInstanceName — (String)

      The name of the source instance from which the source automatic snapshot was created.

      Constraints:

      • This parameter cannot be defined together with the instance snapshot name parameter. The source instance name and instance snapshot name parameters are mutually exclusive.

      • Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

    • restoreDate — (String)

      The date of the automatic snapshot to use for the new instance. Use the get auto snapshots operation to identify the dates of the available automatic snapshots.

      Constraints:

      • Must be specified in YYYY-MM-DD format.

      • This parameter cannot be defined together with the use latest restorable auto snapshot parameter. The restore date and use latest restorable auto snapshot parameters are mutually exclusive.

      • Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

    • useLatestRestorableAutoSnapshot — (Boolean)

      A Boolean value to indicate whether to use the latest available automatic snapshot.

      Constraints:

      • This parameter cannot be defined together with the restore date parameter. The use latest restorable auto snapshot and restore date parameters are mutually exclusive.

      • Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createInstanceSnapshot operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  instanceSnapshotName: 'STRING_VALUE', /* required */
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createInstanceSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceSnapshotName — (String)

      The name for your new snapshot.

    • instanceName — (String)

      The Lightsail instance on which to base your snapshot.

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createKeyPair operation

var params = {
  keyPairName: 'STRING_VALUE', /* required */
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createKeyPair(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • keyPairName — (String)

      The name for your new key pair.

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • keyPair — (map)

        An array of key-value pairs containing information about the new key pair you just created.

        • name — (String)

          The friendly name of the SSH key pair.

        • arn — (String)

          The Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the key pair was created (1479816991.349).

        • location — (map)

          The region name and Availability Zone where the key pair was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (usually KeyPair).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • fingerprint — (String)

          The RSA fingerprint of the key pair.

      • publicKeyBase64 — (String)

        A base64-encoded public key of the ssh-rsa type.

      • privateKeyBase64 — (String)

        A base64-encoded RSA private key.

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createLoadBalancer operation

var params = {
  instancePort: 'NUMBER_VALUE', /* required */
  loadBalancerName: 'STRING_VALUE', /* required */
  certificateAlternativeNames: [
    'STRING_VALUE',
    /* more items */
  ],
  certificateDomainName: 'STRING_VALUE',
  certificateName: 'STRING_VALUE',
  healthCheckPath: 'STRING_VALUE',
  ipAddressType: dualstack | ipv4,
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ],
  tlsPolicyName: 'STRING_VALUE'
};
lightsail.createLoadBalancer(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of your load balancer.

    • instancePort — (Integer)

      The instance port where you're creating your load balancer.

    • healthCheckPath — (String)

      The path you provided to perform the load balancer health check. If you didn't specify a health check path, Lightsail uses the root path of your website ("/").

      You may want to specify a custom health check path other than the root of your application if your home page loads slowly or has a lot of media or scripting on it.

    • certificateName — (String)

      The name of the SSL/TLS certificate.

      If you specify certificateName, then certificateDomainName is required (and vice-versa).

    • certificateDomainName — (String)

      The domain name with which your certificate is associated (example.com).

      If you specify certificateDomainName, then certificateName is required (and vice-versa).

    • certificateAlternativeNames — (Array<String>)

      The optional alternative domains and subdomains to use with your SSL/TLS certificate (www.example.com, example.com, m.example.com, blog.example.com).

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

    • ipAddressType — (String)

      The IP address type for the load balancer.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      The default value is dualstack.

      Possible values include:
      • "dualstack"
      • "ipv4"
    • tlsPolicyName — (String)

      The name of the TLS policy to apply to the load balancer.

      Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.

      For more information about load balancer TLS policies, see Configuring TLS security policies on your Amazon Lightsail load balancers in the Amazon Lightsail Developer Guide.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by load balancer name. For more information, see the Amazon Lightsail Developer Guide.

Examples:

Calling the createLoadBalancerTlsCertificate operation

var params = {
  certificateDomainName: 'STRING_VALUE', /* required */
  certificateName: 'STRING_VALUE', /* required */
  loadBalancerName: 'STRING_VALUE', /* required */
  certificateAlternativeNames: [
    'STRING_VALUE',
    /* more items */
  ],
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createLoadBalancerTlsCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The load balancer name where you want to create the SSL/TLS certificate.

    • certificateName — (String)

      The SSL/TLS certificate name.

      You can have up to 10 certificates in your account at one time. Each Lightsail load balancer can have up to 2 certificates associated with it at one time. There is also an overall limit to the number of certificates that can be issue in a 365-day period. For more information, see Limits.

    • certificateDomainName — (String)

      The domain name (example.com) for your SSL/TLS certificate.

    • certificateAlternativeNames — (Array<String>)

      An array of strings listing alternative domains and subdomains for your SSL/TLS certificate. Lightsail will de-dupe the names for you. You can have a maximum of 9 alternative names (in addition to the 1 primary domain). We do not support wildcards (*.example.com).

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the createRelationalDatabase operation

var params = {
  masterDatabaseName: 'STRING_VALUE', /* required */
  masterUsername: 'STRING_VALUE', /* required */
  relationalDatabaseBlueprintId: 'STRING_VALUE', /* required */
  relationalDatabaseBundleId: 'STRING_VALUE', /* required */
  relationalDatabaseName: 'STRING_VALUE', /* required */
  availabilityZone: 'STRING_VALUE',
  masterUserPassword: 'STRING_VALUE',
  preferredBackupWindow: 'STRING_VALUE',
  preferredMaintenanceWindow: 'STRING_VALUE',
  publiclyAccessible: true || false,
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createRelationalDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name to use for your new Lightsail database resource.

      Constraints:

      • Must contain from 2 to 255 alphanumeric characters, or hyphens.

      • The first and last character must be a letter or number.

    • availabilityZone — (String)

      The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.

      You can get a list of Availability Zones by using the get regions operation. Be sure to add the include relational database Availability Zones parameter to your request.

    • relationalDatabaseBlueprintId — (String)

      The blueprint ID for your new database. A blueprint describes the major engine version of a database.

      You can get a list of database blueprints IDs by using the get relational database blueprints operation.

    • relationalDatabaseBundleId — (String)

      The bundle ID for your new database. A bundle describes the performance specifications for your database.

      You can get a list of database bundle IDs by using the get relational database bundles operation.

    • masterDatabaseName — (String)

      The meaning of this parameter differs according to the database engine you use.

      MySQL

      The name of the database to create when the Lightsail database resource is created. If this parameter isn't specified, no database is created in the database resource.

      Constraints:

      • Must contain 1 to 64 letters or numbers.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0- 9).

      • Can't be a word reserved by the specified database engine.

        For more information about reserved words in MySQL, see the Keywords and Reserved Words articles for MySQL 5.6, MySQL 5.7, and MySQL 8.0.

      PostgreSQL

      The name of the database to create when the Lightsail database resource is created. If this parameter isn't specified, a database named postgres is created in the database resource.

      Constraints:

      • Must contain 1 to 63 letters or numbers.

      • Must begin with a letter. Subsequent characters can be letters, underscores, or digits (0- 9).

      • Can't be a word reserved by the specified database engine.

        For more information about reserved words in PostgreSQL, see the SQL Key Words articles for PostgreSQL 9.6, PostgreSQL 10, PostgreSQL 11, and PostgreSQL 12.

    • masterUsername — (String)

      The name for the master user.

      MySQL

      Constraints:

      • Required for MySQL.

      • Must be 1 to 16 letters or numbers. Can contain underscores.

      • First character must be a letter.

      • Can't be a reserved word for the chosen database engine.

        For more information about reserved words in MySQL 5.6 or 5.7, see the Keywords and Reserved Words articles for MySQL 5.6, MySQL 5.7, or MySQL 8.0.

      PostgreSQL

      Constraints:

      • Required for PostgreSQL.

      • Must be 1 to 63 letters or numbers. Can contain underscores.

      • First character must be a letter.

      • Can't be a reserved word for the chosen database engine.

        For more information about reserved words in MySQL 5.6 or 5.7, see the Keywords and Reserved Words articles for PostgreSQL 9.6, PostgreSQL 10, PostgreSQL 11, and PostgreSQL 12.

    • masterUserPassword — (String)

      The password for the master user. The password can include any printable ASCII character except "/", """, or "@". It cannot contain spaces.

      MySQL

      Constraints: Must contain from 8 to 41 characters.

      PostgreSQL

      Constraints: Must contain from 8 to 128 characters.

    • preferredBackupWindow — (String)

      The daily time range during which automated backups are created for your new database if automated backups are enabled.

      The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region. For more information about the preferred backup window time blocks for each region, see the Working With Backups guide in the Amazon Relational Database Service documentation.

      Constraints:

      • Must be in the hh24:mi-hh24:mi format.

        Example: 16:00-16:30

      • Specified in Coordinated Universal Time (UTC).

      • Must not conflict with the preferred maintenance window.

      • Must be at least 30 minutes.

    • preferredMaintenanceWindow — (String)

      The weekly time range during which system maintenance can occur on your new database.

      The default is a 30-minute window selected at random from an 8-hour block of time for each AWS Region, occurring on a random day of the week.

      Constraints:

      • Must be in the ddd:hh24:mi-ddd:hh24:mi format.

      • Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

      • Must be at least 30 minutes.

      • Specified in Coordinated Universal Time (UTC).

      • Example: Tue:17:00-Tue:17:30

    • publiclyAccessible — (Boolean)

      Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Examples:

Calling the createRelationalDatabaseFromSnapshot operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  availabilityZone: 'STRING_VALUE',
  publiclyAccessible: true || false,
  relationalDatabaseBundleId: 'STRING_VALUE',
  relationalDatabaseSnapshotName: 'STRING_VALUE',
  restoreTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  sourceRelationalDatabaseName: 'STRING_VALUE',
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ],
  useLatestRestorableTime: true || false
};
lightsail.createRelationalDatabaseFromSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name to use for your new Lightsail database resource.

      Constraints:

      • Must contain from 2 to 255 alphanumeric characters, or hyphens.

      • The first and last character must be a letter or number.

    • availabilityZone — (String)

      The Availability Zone in which to create your new database. Use the us-east-2a case-sensitive format.

      You can get a list of Availability Zones by using the get regions operation. Be sure to add the include relational database Availability Zones parameter to your request.

    • publiclyAccessible — (Boolean)

      Specifies the accessibility options for your new database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

    • relationalDatabaseSnapshotName — (String)

      The name of the database snapshot from which to create your new database.

    • relationalDatabaseBundleId — (String)

      The bundle ID for your new database. A bundle describes the performance specifications for your database.

      You can get a list of database bundle IDs by using the get relational database bundles operation.

      When creating a new database from a snapshot, you cannot choose a bundle that is smaller than the bundle of the source database.

    • sourceRelationalDatabaseName — (String)

      The name of the source database.

    • restoreTime — (Date)

      The date and time to restore your database from.

      Constraints:

      • Must be before the latest restorable time for the database.

      • Cannot be specified if the use latest restorable time parameter is true.

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use a restore time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the restore time.

    • useLatestRestorableTime — (Boolean)

      Specifies whether your database is restored from the latest backup time. A value of true restores from the latest backup time.

      Default: false

      Constraints: Cannot be specified if the restore time parameter is provided.

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Examples:

Calling the createRelationalDatabaseSnapshot operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  relationalDatabaseSnapshotName: 'STRING_VALUE', /* required */
  tags: [
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ]
};
lightsail.createRelationalDatabaseSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of the database on which to base your new snapshot.

    • relationalDatabaseSnapshotName — (String)

      The name for your new database snapshot.

      Constraints:

      • Must contain from 2 to 255 alphanumeric characters, or hyphens.

      • The first and last character must be a letter or number.

    • tags — (Array<map>)

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the deleteAlarm operation

var params = {
  alarmName: 'STRING_VALUE' /* required */
};
lightsail.deleteAlarm(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • alarmName — (String)

      The name of the alarm to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteAutoSnapshot(params = {}, callback) ⇒ AWS.Request

Deletes an automatic snapshot of an instance or disk. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteAutoSnapshot operation

var params = {
  date: 'STRING_VALUE', /* required */
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.deleteAutoSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the source instance or disk from which to delete the automatic snapshot.

    • date — (String)

      The date of the automatic snapshot to delete in YYYY-MM-DD format. Use the get auto snapshots operation to get the available automatic snapshots for a resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the deleteBucket operation

var params = {
  bucketName: 'STRING_VALUE', /* required */
  forceDelete: true || false
};
lightsail.deleteBucket(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket to delete.

      Use the GetBuckets action to get a list of bucket names that you can specify.

    • forceDelete — (Boolean)

      A Boolean value that indicates whether to force delete the bucket.

      You must force delete the bucket if it has one of the following conditions:

      • The bucket is the origin of a distribution.

      • The bucket has instances that were granted access to it using the SetResourceAccessForBucket action.

      • The bucket has objects.

      • The bucket has access keys.

      Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the deleteBucketAccessKey operation

var params = {
  accessKeyId: 'STRING_VALUE', /* required */
  bucketName: 'STRING_VALUE' /* required */
};
lightsail.deleteBucketAccessKey(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket that the access key belongs to.

    • accessKeyId — (String)

      The ID of the access key to delete.

      Use the GetBucketAccessKeys action to get a list of access key IDs that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the deleteCertificate operation

var params = {
  certificateName: 'STRING_VALUE' /* required */
};
lightsail.deleteCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • certificateName — (String)

      The name of the certificate to delete.

      Use the GetCertificates action to get a list of certificate names that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the deleteContactMethod operation

var params = {
  protocol: Email | SMS /* required */
};
lightsail.deleteContactMethod(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • protocol — (String)

      The protocol that will be deleted, such as Email or SMS (text messaging).

      Note: To delete an Email and an SMS contact method if you added both, you must run separate DeleteContactMethod actions to delete each protocol.
      Possible values include:
      • "Email"
      • "SMS"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteContainerImage(params = {}, callback) ⇒ AWS.Request

Deletes a container image that is registered to your Amazon Lightsail container service.

Service Reference:

Examples:

Calling the deleteContainerImage operation

var params = {
  image: 'STRING_VALUE', /* required */
  serviceName: 'STRING_VALUE' /* required */
};
lightsail.deleteContainerImage(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to delete a registered container image.

    • image — (String)

      The name of the container image to delete from the container service.

      Use the GetContainerImages action to get the name of the container images that are registered to a container service.

      Note: Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, :container-service-1.mystaticwebsite.1. Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteContainerService(params = {}, callback) ⇒ AWS.Request

Deletes your Amazon Lightsail container service.

Service Reference:

Examples:

Calling the deleteContainerService operation

var params = {
  serviceName: 'STRING_VALUE' /* required */
};
lightsail.deleteContainerService(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 the deleting state for several minutes.

The delete disk operation supports tag-based access control via resource tags applied to the resource identified by disk name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteDisk operation

var params = {
  diskName: 'STRING_VALUE', /* required */
  forceDeleteAddOns: true || false
};
lightsail.deleteDisk(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskName — (String)

      The unique name of the disk you want to delete (my-disk).

    • forceDeleteAddOns — (Boolean)

      A Boolean value to indicate whether to delete all add-ons for the disk.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by disk snapshot name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteDiskSnapshot operation

var params = {
  diskSnapshotName: 'STRING_VALUE' /* required */
};
lightsail.deleteDiskSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskSnapshotName — (String)

      The name of the disk snapshot you want to delete (my-disk-snapshot).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDistribution(params = {}, callback) ⇒ AWS.Request

Deletes your Amazon Lightsail content delivery network (CDN) distribution.

Service Reference:

Examples:

Calling the deleteDistribution operation

var params = {
  distributionName: 'STRING_VALUE'
};
lightsail.deleteDistribution(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution to delete.

      Use the GetDistributions action to get a list of distribution names that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by domain name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteDomain operation

var params = {
  domainName: 'STRING_VALUE' /* required */
};
lightsail.deleteDomain(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • domainName — (String)

      The specific domain name to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by domain name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteDomainEntry operation

var params = {
  domainEntry: { /* required */
    id: 'STRING_VALUE',
    isAlias: true || false,
    name: 'STRING_VALUE',
    options: {
      '<DomainEntryOptionsKeys>': 'STRING_VALUE',
      /* '<DomainEntryOptionsKeys>': ... */
    },
    target: 'STRING_VALUE',
    type: 'STRING_VALUE'
  },
  domainName: 'STRING_VALUE' /* required */
};
lightsail.deleteDomainEntry(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • domainName — (String)

      The name of the domain entry to delete.

    • domainEntry — (map)

      An array of key-value pairs containing information about your domain entries.

      • id — (String)

        The ID of the domain recordset entry.

      • name — (String)

        The name of the domain.

      • target — (String)

        The target IP address (192.0.2.0), or AWS name server (ns-111.awsdns-22.com.).

        For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net. For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.

      • isAlias — (Boolean)

        When true, specifies whether the domain entry is an alias used by the Lightsail load balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to that resource.

      • type — (String)

        The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).

        The following domain entry types can be used:

        • A

        • AAAA

        • CNAME

        • MX

        • NS

        • SOA

        • SRV

        • TXT

      • options — (map<String>)

        (Discontinued) The options for the domain entry.

        Note: In releases prior to November 29, 2017, this parameter was not included in the API response. It is now discontinued.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by instance name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteInstance operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  forceDeleteAddOns: true || false
};
lightsail.deleteInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance to delete.

    • forceDeleteAddOns — (Boolean)

      A Boolean value to indicate whether to delete all add-ons for the instance.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by instance snapshot name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteInstanceSnapshot operation

var params = {
  instanceSnapshotName: 'STRING_VALUE' /* required */
};
lightsail.deleteInstanceSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceSnapshotName — (String)

      The name of the snapshot to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by key pair name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteKeyPair operation

var params = {
  keyPairName: 'STRING_VALUE', /* required */
  expectedFingerprint: 'STRING_VALUE'
};
lightsail.deleteKeyPair(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • keyPairName — (String)

      The name of the key pair to delete.

    • expectedFingerprint — (String)

      The RSA fingerprint of the Lightsail default key pair to delete.

      Note: The expectedFingerprint parameter is required only when specifying to delete a Lightsail default key pair.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the deleteKnownHostKeys operation

var params = {
  instanceName: 'STRING_VALUE' /* required */
};
lightsail.deleteKnownHostKeys(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance for which you want to reset the host key or certificate.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by load balancer name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the deleteLoadBalancer operation

var params = {
  loadBalancerName: 'STRING_VALUE' /* required */
};
lightsail.deleteLoadBalancer(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the load balancer you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by load balancer name. For more information, see the Amazon Lightsail Developer Guide.

Examples:

Calling the deleteLoadBalancerTlsCertificate operation

var params = {
  certificateName: 'STRING_VALUE', /* required */
  loadBalancerName: 'STRING_VALUE', /* required */
  force: true || false
};
lightsail.deleteLoadBalancerTlsCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The load balancer name.

    • certificateName — (String)

      The SSL/TLS certificate name.

    • force — (Boolean)

      When true, forces the deletion of an SSL/TLS certificate.

      There can be two certificates associated with a Lightsail load balancer: the primary and the backup. The force parameter is required when the primary SSL/TLS certificate is in use by an instance attached to the load balancer.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the deleteRelationalDatabase operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  finalRelationalDatabaseSnapshotName: 'STRING_VALUE',
  skipFinalSnapshot: true || false
};
lightsail.deleteRelationalDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of the database that you are deleting.

    • skipFinalSnapshot — (Boolean)

      Determines whether a final database snapshot is created before your database is deleted. If true is specified, no database snapshot is created. If false is specified, a database snapshot is created before your database is deleted.

      You must specify the final relational database snapshot name parameter if the skip final snapshot parameter is false.

      Default: false

    • finalRelationalDatabaseSnapshotName — (String)

      The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.

      Note: Specifying this parameter and also specifying the skip final snapshot parameter to true results in an error.

      Constraints:

      • Must contain from 2 to 255 alphanumeric characters, or hyphens.

      • The first and last character must be a letter or number.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Examples:

Calling the deleteRelationalDatabaseSnapshot operation

var params = {
  relationalDatabaseSnapshotName: 'STRING_VALUE' /* required */
};
lightsail.deleteRelationalDatabaseSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseSnapshotName — (String)

      The name of the database snapshot that you are deleting.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Examples:

Calling the detachCertificateFromDistribution operation

var params = {
  distributionName: 'STRING_VALUE' /* required */
};
lightsail.detachCertificateFromDistribution(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution from which to detach the certificate.

      Use the GetDistributions action to get a list of distribution names that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by disk name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the detachDisk operation

var params = {
  diskName: 'STRING_VALUE' /* required */
};
lightsail.detachDisk(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskName — (String)

      The unique name of the disk you want to detach from your instance (my-disk).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by load balancer name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the detachInstancesFromLoadBalancer operation

var params = {
  instanceNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  loadBalancerName: 'STRING_VALUE' /* required */
};
lightsail.detachInstancesFromLoadBalancer(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the Lightsail load balancer.

    • instanceNames — (Array<String>)

      An array of strings containing the names of the instances you want to detach from the load balancer.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

detachStaticIp(params = {}, callback) ⇒ AWS.Request

Detaches a static IP from the Amazon Lightsail instance to which it is attached.

Service Reference:

Examples:

Calling the detachStaticIp operation

var params = {
  staticIpName: 'STRING_VALUE' /* required */
};
lightsail.detachStaticIp(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • staticIpName — (String)

      The name of the static IP to detach from the instance.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disableAddOn(params = {}, callback) ⇒ AWS.Request

Disables an add-on for an Amazon Lightsail resource. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the disableAddOn operation

var params = {
  addOnType: AutoSnapshot | StopInstanceOnIdle, /* required */
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.disableAddOn(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • addOnType — (String)

      The add-on type to disable.

      Possible values include:
      • "AutoSnapshot"
      • "StopInstanceOnIdle"
    • resourceName — (String)

      The name of the source resource for which to disable the add-on.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the downloadDefaultKeyPair operation

var params = {
};
lightsail.downloadDefaultKeyPair(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • publicKeyBase64 — (String)

        A base64-encoded public key of the ssh-rsa type.

      • privateKeyBase64 — (String)

        A base64-encoded RSA private key.

      • createdAt — (Date)

        The timestamp when the default key pair was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the enableAddOn operation

var params = {
  addOnRequest: { /* required */
    addOnType: AutoSnapshot | StopInstanceOnIdle, /* required */
    autoSnapshotAddOnRequest: {
      snapshotTimeOfDay: 'STRING_VALUE'
    },
    stopInstanceOnIdleRequest: {
      duration: 'STRING_VALUE',
      threshold: 'STRING_VALUE'
    }
  },
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.enableAddOn(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the source resource for which to enable or modify the add-on.

    • addOnRequest — (map)

      An array of strings representing the add-on to enable or modify.

      • addOnTyperequired — (String)

        The add-on type.

        Possible values include:
        • "AutoSnapshot"
        • "StopInstanceOnIdle"
      • autoSnapshotAddOnRequest — (map)

        An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.

        • snapshotTimeOfDay — (String)

          The daily time when an automatic snapshot will be created.

          Constraints:

          • Must be in HH:00 format, and in an hourly increment.

          • Specified in Coordinated Universal Time (UTC).

          • The snapshot will be automatically created between the time specified and up to 45 minutes after.

      • stopInstanceOnIdleRequest — (map)

        An object that represents additional parameters when enabling or modifying the StopInstanceOnIdle add-on.

        This object only applies to Lightsail for Research resources.

        • threshold — (String)

          The value to compare with the duration.

        • duration — (String)

          The amount of idle time in minutes after which your virtual computer will automatically stop.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by source snapshot name. For more information, see the Amazon Lightsail Developer Guide.

Note: Use the get instance snapshots or get disk snapshots operations to get a list of snapshots that you can export to Amazon EC2.

Service Reference:

Examples:

Calling the exportSnapshot operation

var params = {
  sourceSnapshotName: 'STRING_VALUE' /* required */
};
lightsail.exportSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • sourceSnapshotName — (String)

      The name of the instance or disk snapshot to be exported to Amazon EC2.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getActiveNames(params = {}, callback) ⇒ AWS.Request

Returns the names of all active (not deleted) resources.

Service Reference:

Examples:

Calling the getActiveNames operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getActiveNames(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetActiveNames request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • activeNames — (Array<String>)

        The list of active names returned by the get active names request.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetActiveNames request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getAlarms operation

var params = {
  alarmName: 'STRING_VALUE',
  monitoredResourceName: 'STRING_VALUE',
  pageToken: 'STRING_VALUE'
};
lightsail.getAlarms(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • alarmName — (String)

      The name of the alarm.

      Specify an alarm name to return information about a specific alarm.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetAlarms request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

    • monitoredResourceName — (String)

      The name of the Lightsail resource being monitored by the alarm.

      Specify a monitored resource name to return information about all alarms for a specific resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • alarms — (Array<map>)

        An array of objects that describe the alarms.

        • name — (String)

          The name of the alarm.

        • arn — (String)

          The Amazon Resource Name (ARN) of the alarm.

        • createdAt — (Date)

          The timestamp when the alarm was created.

        • location — (map)

          An object that lists information about the location of the alarm.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type of the alarm.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about your Lightsail alarm. This code enables our support team to look up your Lightsail information more easily.

        • monitoredResourceInfo — (map)

          An object that lists information about the resource monitored by the alarm.

          • arn — (String)

            The Amazon Resource Name (ARN) of the resource being monitored.

          • name — (String)

            The name of the Lightsail resource being monitored.

          • resourceType — (String)

            The Lightsail resource type of the resource being monitored.

            Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.

            Possible values include:
            • "ContainerService"
            • "Instance"
            • "StaticIp"
            • "KeyPair"
            • "InstanceSnapshot"
            • "Domain"
            • "PeeredVpc"
            • "LoadBalancer"
            • "LoadBalancerTlsCertificate"
            • "Disk"
            • "DiskSnapshot"
            • "RelationalDatabase"
            • "RelationalDatabaseSnapshot"
            • "ExportSnapshotRecord"
            • "CloudFormationStackRecord"
            • "Alarm"
            • "ContactMethod"
            • "Distribution"
            • "Certificate"
            • "Bucket"
        • comparisonOperator — (String)

          The arithmetic operation used when comparing the specified statistic and threshold.

          Possible values include:
          • "GreaterThanOrEqualToThreshold"
          • "GreaterThanThreshold"
          • "LessThanThreshold"
          • "LessThanOrEqualToThreshold"
        • evaluationPeriods — (Integer)

          The number of periods over which data is compared to the specified threshold.

        • period — (Integer)

          The period, in seconds, over which the statistic is applied.

        • threshold — (Float)

          The value against which the specified statistic is compared.

        • datapointsToAlarm — (Integer)

          The number of data points that must not within the specified threshold to trigger the alarm.

        • treatMissingData — (String)

          Specifies how the alarm handles missing data points.

          An alarm can treat missing data in the following ways:

          • breaching - Assume the missing data is not within the threshold. Missing data counts towards the number of times the metric is not within the threshold.

          • notBreaching - Assume the missing data is within the threshold. Missing data does not count towards the number of times the metric is not within the threshold.

          • ignore - Ignore the missing data. Maintains the current alarm state.

          • missing - Missing data is treated as missing.

          Possible values include:
          • "breaching"
          • "notBreaching"
          • "ignore"
          • "missing"
        • statistic — (String)

          The statistic for the metric associated with the alarm.

          The following statistics are available:

          • Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application.

          • Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.

          • Sum - All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric.

          • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources.

          • SampleCount - The count, or number, of data points used for the statistical calculation.

          Possible values include:
          • "Minimum"
          • "Maximum"
          • "Sum"
          • "Average"
          • "SampleCount"
        • metricName — (String)

          The name of the metric associated with the alarm.

          Possible values include:
          • "CPUUtilization"
          • "NetworkIn"
          • "NetworkOut"
          • "StatusCheckFailed"
          • "StatusCheckFailed_Instance"
          • "StatusCheckFailed_System"
          • "ClientTLSNegotiationErrorCount"
          • "HealthyHostCount"
          • "UnhealthyHostCount"
          • "HTTPCode_LB_4XX_Count"
          • "HTTPCode_LB_5XX_Count"
          • "HTTPCode_Instance_2XX_Count"
          • "HTTPCode_Instance_3XX_Count"
          • "HTTPCode_Instance_4XX_Count"
          • "HTTPCode_Instance_5XX_Count"
          • "InstanceResponseTime"
          • "RejectedConnectionCount"
          • "RequestCount"
          • "DatabaseConnections"
          • "DiskQueueDepth"
          • "FreeStorageSpace"
          • "NetworkReceiveThroughput"
          • "NetworkTransmitThroughput"
          • "BurstCapacityTime"
          • "BurstCapacityPercentage"
        • state — (String)

          The current state of the alarm.

          An alarm has the following possible states:

          • ALARM - The metric is outside of the defined threshold.

          • INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.

          • OK - The metric is within the defined threshold.

          Possible values include:
          • "OK"
          • "ALARM"
          • "INSUFFICIENT_DATA"
        • unit — (String)

          The unit of the metric associated with the alarm.

          Possible values include:
          • "Seconds"
          • "Microseconds"
          • "Milliseconds"
          • "Bytes"
          • "Kilobytes"
          • "Megabytes"
          • "Gigabytes"
          • "Terabytes"
          • "Bits"
          • "Kilobits"
          • "Megabits"
          • "Gigabits"
          • "Terabits"
          • "Percent"
          • "Count"
          • "Bytes/Second"
          • "Kilobytes/Second"
          • "Megabytes/Second"
          • "Gigabytes/Second"
          • "Terabytes/Second"
          • "Bits/Second"
          • "Kilobits/Second"
          • "Megabits/Second"
          • "Gigabits/Second"
          • "Terabits/Second"
          • "Count/Second"
          • "None"
        • contactProtocols — (Array<String>)

          The contact protocols for the alarm, such as Email, SMS (text messaging), or both.

        • notificationTriggers — (Array<String>)

          The alarm states that trigger a notification.

        • notificationEnabled — (Boolean)

          Indicates whether the alarm is enabled.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetAlarms request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getAutoSnapshots(params = {}, callback) ⇒ AWS.Request

Returns the available automatic snapshots for an instance or disk. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the getAutoSnapshots operation

var params = {
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.getAutoSnapshots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the source instance or disk from which to get automatic snapshot information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • resourceName — (String)

        The name of the source instance or disk for the automatic snapshots.

      • resourceType — (String)

        The resource type of the automatic snapshot. The possible values are Instance, and Disk.

        Possible values include:
        • "ContainerService"
        • "Instance"
        • "StaticIp"
        • "KeyPair"
        • "InstanceSnapshot"
        • "Domain"
        • "PeeredVpc"
        • "LoadBalancer"
        • "LoadBalancerTlsCertificate"
        • "Disk"
        • "DiskSnapshot"
        • "RelationalDatabase"
        • "RelationalDatabaseSnapshot"
        • "ExportSnapshotRecord"
        • "CloudFormationStackRecord"
        • "Alarm"
        • "ContactMethod"
        • "Distribution"
        • "Certificate"
        • "Bucket"
      • autoSnapshots — (Array<map>)

        An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.

        • date — (String)

          The date of the automatic snapshot in YYYY-MM-DD format.

        • createdAt — (Date)

          The timestamp when the automatic snapshot was created.

        • status — (String)

          The status of the automatic snapshot.

          Possible values include:
          • "Success"
          • "Failed"
          • "InProgress"
          • "NotFound"
        • fromAttachedDisks — (Array<map>)

          An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.

          • path — (String)

            The path of the disk (/dev/xvdf).

          • sizeInGb — (Integer)

            The size of the disk in GB.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getBlueprints operation

var params = {
  appCategory: LfR,
  includeInactive: true || false,
  pageToken: 'STRING_VALUE'
};
lightsail.getBlueprints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • includeInactive — (Boolean)

      A Boolean value that indicates whether to include inactive (unavailable) blueprints in the response of your request.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetBlueprints request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

    • appCategory — (String)

      Returns a list of blueprints that are specific to Lightsail for Research.

      You must use this parameter to view Lightsail for Research blueprints.

      Possible values include:
      • "LfR"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • blueprints — (Array<map>)

        An array of key-value pairs that contains information about the available blueprints.

        • blueprintId — (String)

          The ID for the virtual private server image (app_wordpress_4_4 or app_lamp_7_0).

        • name — (String)

          The friendly name of the blueprint (Amazon Linux).

        • group — (String)

          The group name of the blueprint (amazon-linux).

        • type — (String)

          The type of the blueprint (os or app).

          Possible values include:
          • "os"
          • "app"
        • description — (String)

          The description of the blueprint.

        • isActive — (Boolean)

          A Boolean value indicating whether the blueprint is active. Inactive blueprints are listed to support customers with existing instances but are not necessarily available for launch of new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases.

        • minPower — (Integer)

          The minimum bundle power required to run this blueprint. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500. 0 indicates that the blueprint runs on all instance sizes.

        • version — (String)

          The version number of the operating system, application, or stack ( 2016.03.0).

        • versionCode — (String)

          The version code.

        • productUrl — (String)

          The product URL to learn more about the image or blueprint.

        • licenseUrl — (String)

          The end-user license agreement URL for the image or blueprint.

        • platform — (String)

          The operating system platform (either Linux/Unix-based or Windows Server-based) of the blueprint.

          Possible values include:
          • "LINUX_UNIX"
          • "WINDOWS"
        • appCategory — (String)

          Virtual computer blueprints that are supported by Lightsail for Research.

          This parameter only applies to Lightsail for Research resources.

          Possible values include:
          • "LfR"
      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetBlueprints request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getBucketAccessKeys operation

var params = {
  bucketName: 'STRING_VALUE' /* required */
};
lightsail.getBucketAccessKeys(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket for which to return access keys.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • accessKeys — (Array<map>)

        An object that describes the access keys for the specified bucket.

        • accessKeyId — (String)

          The ID of the access key.

        • secretAccessKey — (String)

          The secret access key used to sign requests.

          You should store the secret access key in a safe location. We recommend that you delete the access key if the secret access key is compromised.

        • status — (String)

          The status of the access key.

          A status of Active means that the key is valid, while Inactive means it is not.

          Possible values include:
          • "Active"
          • "Inactive"
        • createdAt — (Date)

          The timestamp when the access key was created.

        • lastUsed — (map)

          An object that describes the last time the access key was used.

          Note: This object does not include data in the response of a CreateBucketAccessKey action. If the access key has not been used, the region and serviceName values are N/A, and the lastUsedDate value is null.
          • lastUsedDate — (Date)

            The date and time when the access key was most recently used.

            This value is null if the access key has not been used.

          • region — (String)

            The Amazon Web Services Region where this access key was most recently used.

            This value is N/A if the access key has not been used.

          • serviceName — (String)

            The name of the Amazon Web Services service with which this access key was most recently used.

            This value is N/A if the access key has not been used.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getBucketBundles operation

var params = {
  includeInactive: true || false
};
lightsail.getBucketBundles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • includeInactive — (Boolean)

      A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • bundles — (Array<map>)

        An object that describes bucket bundles.

        • bundleId — (String)

          The ID of the bundle.

        • name — (String)

          The name of the bundle.

        • price — (Float)

          The monthly price of the bundle, in US dollars.

        • storagePerMonthInGb — (Integer)

          The storage size of the bundle, in GB.

        • transferPerMonthInGb — (Integer)

          The monthly network transfer quota of the bundle.

        • isActive — (Boolean)

          Indicates whether the bundle is active. Use for a new or existing bucket.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getBucketMetricData operation

var params = {
  bucketName: 'STRING_VALUE', /* required */
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  metricName: BucketSizeBytes | NumberOfObjects, /* required */
  period: 'NUMBER_VALUE', /* required */
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  statistics: [ /* required */
    Minimum | Maximum | Sum | Average | SampleCount,
    /* more items */
  ],
  unit: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None /* required */
};
lightsail.getBucketMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket for which to get metric data.

    • metricName — (String)

      The metric for which you want to return information.

      Valid bucket metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.

      Note: These bucket metrics are reported once per day.
      • BucketSizeBytes - The amount of data in bytes stored in a bucket. This value is calculated by summing the size of all objects in the bucket (including object versions), including the size of all parts for all incomplete multipart uploads to the bucket.

        Statistics: The most useful statistic is Maximum.

        Unit: The published unit is Bytes.

      • NumberOfObjects - The total number of objects stored in a bucket. This value is calculated by counting all objects in the bucket (including object versions) and the total number of parts for all incomplete multipart uploads to the bucket.

        Statistics: The most useful statistic is Average.

        Unit: The published unit is Count.

      Possible values include:
      • "BucketSizeBytes"
      • "NumberOfObjects"
    • startTime — (Date)

      The timestamp indicating the earliest data to be returned.

    • endTime — (Date)

      The timestamp indicating the latest data to be returned.

    • period — (Integer)

      The granularity, in seconds, of the returned data points.

      Note: Bucket storage metrics are reported once per day. Therefore, you should specify a period of 86400 seconds, which is the number of seconds in a day.
    • statistics — (Array<String>)

      The statistic for the metric.

      The following statistics are available:

      • Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application.

      • Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.

      • Sum - The sum of all values submitted for the matching metric. You can use this statistic to determine the total volume of a metric.

      • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources.

      • SampleCount - The count, or number, of data points used for the statistical calculation.

    • unit — (String)

      The unit for the metric data request.

      Valid units depend on the metric data being requested. For the valid units with each available metric, see the metricName parameter.

      Possible values include:
      • "Seconds"
      • "Microseconds"
      • "Milliseconds"
      • "Bytes"
      • "Kilobytes"
      • "Megabytes"
      • "Gigabytes"
      • "Terabytes"
      • "Bits"
      • "Kilobits"
      • "Megabits"
      • "Gigabits"
      • "Terabits"
      • "Percent"
      • "Count"
      • "Bytes/Second"
      • "Kilobytes/Second"
      • "Megabytes/Second"
      • "Gigabytes/Second"
      • "Terabytes/Second"
      • "Bits/Second"
      • "Kilobits/Second"
      • "Megabits/Second"
      • "Gigabits/Second"
      • "Terabits/Second"
      • "Count/Second"
      • "None"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • metricName — (String)

        The name of the metric returned.

        Possible values include:
        • "BucketSizeBytes"
        • "NumberOfObjects"
      • metricData — (Array<map>)

        An array of objects that describe the metric data returned.

        • average — (Float)

          The average.

        • maximum — (Float)

          The maximum.

        • minimum — (Float)

          The minimum.

        • sampleCount — (Float)

          The sample count.

        • sum — (Float)

          The sum.

        • timestamp — (Date)

          The timestamp (1479816991.349).

        • unit — (String)

          The unit.

          Possible values include:
          • "Seconds"
          • "Microseconds"
          • "Milliseconds"
          • "Bytes"
          • "Kilobytes"
          • "Megabytes"
          • "Gigabytes"
          • "Terabytes"
          • "Bits"
          • "Kilobits"
          • "Megabits"
          • "Gigabits"
          • "Terabits"
          • "Percent"
          • "Count"
          • "Bytes/Second"
          • "Kilobytes/Second"
          • "Megabytes/Second"
          • "Gigabytes/Second"
          • "Terabytes/Second"
          • "Bits/Second"
          • "Kilobits/Second"
          • "Megabits/Second"
          • "Gigabits/Second"
          • "Terabits/Second"
          • "Count/Second"
          • "None"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getBuckets(params = {}, callback) ⇒ AWS.Request

Returns information about one or more Amazon Lightsail buckets. The information returned includes the synchronization status of the Amazon Simple Storage Service (Amazon S3) account-level block public access feature for your Lightsail buckets.

For more information about buckets, see Buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the getBuckets operation

var params = {
  bucketName: 'STRING_VALUE',
  includeConnectedResources: true || false,
  pageToken: 'STRING_VALUE'
};
lightsail.getBuckets(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket for which to return information.

      When omitted, the response includes all of your buckets in the Amazon Web Services Region where the request is made.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetBuckets request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

    • includeConnectedResources — (Boolean)

      A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • buckets — (Array<map>)

        An array of objects that describe buckets.

        • resourceType — (String)

          The Lightsail resource type of the bucket.

        • accessRules — (map)

          An object that describes the access rules of the bucket.

          • getObject — (String)

            Specifies the anonymous access to all objects in a bucket.

            The following options can be specified:

            • public - Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.

              If the getObject value is set to public, then all objects in the bucket default to public regardless of the allowPublicOverrides value.

            • private - Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.

              If the getObject value is set to private, and the allowPublicOverrides value is set to true, then all objects in the bucket default to private unless they are configured with a public-read ACL. Individual objects with a public-read ACL are readable by anyone in the world.

            Possible values include:
            • "public"
            • "private"
          • allowPublicOverrides — (Boolean)

            A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.

            When this is true, you can use the PutObjectAcl Amazon S3 API action to set individual objects to public (read-only) using the public-read ACL, or to private using the private ACL.

        • arn — (String)

          The Amazon Resource Name (ARN) of the bucket.

        • bundleId — (String)

          The ID of the bundle currently applied to the bucket.

          A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.

          Use the UpdateBucketBundle action to change the bundle of a bucket.

        • createdAt — (Date)

          The timestamp when the distribution was created.

        • url — (String)

          The URL of the bucket.

        • location — (map)

          An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • name — (String)

          The name of the bucket.

        • supportCode — (String)

          The support code for a bucket. Include this code in your email to support when you have questions about a Lightsail bucket. This code enables our support team to look up your Lightsail information more easily.

        • tags — (Array<map>)

          The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • objectVersioning — (String)

          Indicates whether object versioning is enabled for the bucket.

          The following options can be configured:

          • Enabled - Object versioning is enabled.

          • Suspended - Object versioning was previously enabled but is currently suspended. Existing object versions are retained.

          • NeverEnabled - Object versioning has never been enabled.

        • ableToUpdateBundle — (Boolean)

          Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.

          You can update a bucket's bundle only one time within a monthly Amazon Web Services billing cycle.

          Use the UpdateBucketBundle action to change a bucket's bundle.

        • readonlyAccessAccounts — (Array<String>)

          An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.

        • resourcesReceivingAccess — (Array<map>)

          An array of objects that describe Lightsail instances that have access to the bucket.

          Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.

          • name — (String)

            The name of the Lightsail instance.

          • resourceType — (String)

            The Lightsail resource type (for example, Instance).

        • state — (map)

          An object that describes the state of the bucket.

          • code — (String)

            The state code of the bucket.

            The following codes are possible:

            • OK - The bucket is in a running state.

            • Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket and create a new one.

          • message — (String)

            A message that describes the state of the bucket.

        • accessLogConfig — (map)

          An object that describes the access log configuration for the bucket.

          • enabledrequired — (Boolean)

            A Boolean value that indicates whether bucket access logging is enabled for the bucket.

          • destination — (String)

            The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.

            Note: This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
          • prefix — (String)

            The optional object prefix for the bucket access log.

            The prefix is an optional addition to the object key that organizes your access log files in the destination bucket. For example, if you specify a logs/ prefix, then each log object will begin with the logs/ prefix in its key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0).

            Note: This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.
      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetBuckets request and specify the next page token using the pageToken parameter.

      • accountLevelBpaSync — (map)

        An object that describes the synchronization status of the Amazon S3 account-level block public access feature for your Lightsail buckets.

        For more information about this feature and how it affects Lightsail buckets, see Block public access for buckets in Amazon Lightsail.

        • status — (String)

          The status of the account-level BPA synchronization.

          The following statuses are possible:

          • InSync - Account-level BPA is synchronized. The Amazon S3 account-level BPA configuration applies to your Lightsail buckets.

          • NeverSynced - Synchronization has not yet happened. The Amazon S3 account-level BPA configuration does not apply to your Lightsail buckets.

          • Failed - Synchronization failed. The Amazon S3 account-level BPA configuration does not apply to your Lightsail buckets.

          • Defaulted - Synchronization failed and account-level BPA for your Lightsail buckets is defaulted to active.

          Note: You might need to complete further actions if the status is Failed or Defaulted. The message parameter provides more information for those statuses.
          Possible values include:
          • "InSync"
          • "Failed"
          • "NeverSynced"
          • "Defaulted"
        • lastSyncedAt — (Date)

          The timestamp of when the account-level BPA configuration was last synchronized. This value is null when the account-level BPA configuration has not been synchronized.

        • message — (String)

          A message that provides a reason for a Failed or Defaulted synchronization status.

          The following messages are possible:

          • SYNC_ON_HOLD - The synchronization has not yet happened. This status message occurs immediately after you create your first Lightsail bucket. This status message should change after the first synchronization happens, approximately 1 hour after the first bucket is created.

          • DEFAULTED_FOR_SLR_MISSING - The synchronization failed because the required service-linked role is missing from your Amazon Web Services account. The account-level BPA configuration for your Lightsail buckets is defaulted to active until the synchronization can occur. This means that all your buckets are private and not publicly accessible. For more information about how to create the required service-linked role to allow synchronization, see Using Service-Linked Roles for Amazon Lightsail in the Amazon Lightsail Developer Guide.

          • DEFAULTED_FOR_SLR_MISSING_ON_HOLD - The synchronization failed because the required service-linked role is missing from your Amazon Web Services account. Account-level BPA is not yet configured for your Lightsail buckets. Therefore, only the bucket access permissions and individual object access permissions apply to your Lightsail buckets. For more information about how to create the required service-linked role to allow synchronization, see Using Service-Linked Roles for Amazon Lightsail in the Amazon Lightsail Developer Guide.

          • Unknown - The reason that synchronization failed is unknown. Contact Amazon Web Services Support for more information.

          Possible values include:
          • "DEFAULTED_FOR_SLR_MISSING"
          • "SYNC_ON_HOLD"
          • "DEFAULTED_FOR_SLR_MISSING_ON_HOLD"
          • "Unknown"
        • bpaImpactsLightsail — (Boolean)

          A Boolean value that indicates whether account-level block public access is affecting your Lightsail buckets.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getBundles operation

var params = {
  appCategory: LfR,
  includeInactive: true || false,
  pageToken: 'STRING_VALUE'
};
lightsail.getBundles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • includeInactive — (Boolean)

      A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetBundles request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

    • appCategory — (String)

      Returns a list of bundles that are specific to Lightsail for Research.

      You must use this parameter to view Lightsail for Research bundles.

      Possible values include:
      • "LfR"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • bundles — (Array<map>)

        An array of key-value pairs that contains information about the available bundles.

        • price — (Float)

          The price in US dollars (5.0) of the bundle.

        • cpuCount — (Integer)

          The number of vCPUs included in the bundle (2).

        • diskSizeInGb — (Integer)

          The size of the SSD (30).

        • bundleId — (String)

          The bundle ID (micro_1_0).

        • instanceType — (String)

          The Amazon EC2 instance type (t2.micro).

        • isActive — (Boolean)

          A Boolean value indicating whether the bundle is active.

        • name — (String)

          A friendly name for the bundle (Micro).

        • power — (Integer)

          A numeric value that represents the power of the bundle (500). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.

        • ramSizeInGb — (Float)

          The amount of RAM in GB (2.0).

        • transferPerMonthInGb — (Integer)

          The data transfer rate per month in GB (2000).

        • supportedPlatforms — (Array<String>)

          The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.

        • supportedAppCategories — (Array<String>)

          Virtual computer blueprints that are supported by a Lightsail for Research bundle.

          This parameter only applies to Lightsail for Research resources.

        • publicIpv4AddressCount — (Integer)

          An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetBundles request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCertificates(params = {}, callback) ⇒ AWS.Request

Returns information about one or more Amazon Lightsail SSL/TLS certificates.

Note: To get a summary of a certificate, omit includeCertificateDetails from your request. The response will include only the certificate Amazon Resource Name (ARN), certificate name, domain name, and tags.

Service Reference:

Examples:

Calling the getCertificates operation

var params = {
  certificateName: 'STRING_VALUE',
  certificateStatuses: [
    PENDING_VALIDATION | ISSUED | INACTIVE | EXPIRED | VALIDATION_TIMED_OUT | REVOKED | FAILED,
    /* more items */
  ],
  includeCertificateDetails: true || false,
  pageToken: 'STRING_VALUE'
};
lightsail.getCertificates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • certificateStatuses — (Array<String>)

      The status of the certificates for which to return information.

      For example, specify ISSUED to return only certificates with an ISSUED status.

      When omitted, the response includes all of your certificates in the Amazon Web Services Region where the request is made, regardless of their current status.

    • includeCertificateDetails — (Boolean)

      Indicates whether to include detailed information about the certificates in the response.

      When omitted, the response includes only the certificate names, Amazon Resource Names (ARNs), domain names, and tags.

    • certificateName — (String)

      The name for the certificate for which to return information.

      When omitted, the response includes all of your certificates in the Amazon Web Services Region where the request is made.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetCertificates request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • certificates — (Array<map>)

        An object that describes certificates.

        • certificateArn — (String)

          The Amazon Resource Name (ARN) of the certificate.

        • certificateName — (String)

          The name of the certificate.

        • domainName — (String)

          The domain name of the certificate.

        • certificateDetail — (map)

          An object that describes a certificate in detail.

          • arn — (String)

            The Amazon Resource Name (ARN) of the certificate.

          • name — (String)

            The name of the certificate (my-certificate).

          • domainName — (String)

            The domain name of the certificate.

          • status — (String)

            The validation status of the certificate.

            Possible values include:
            • "PENDING_VALIDATION"
            • "ISSUED"
            • "INACTIVE"
            • "EXPIRED"
            • "VALIDATION_TIMED_OUT"
            • "REVOKED"
            • "FAILED"
          • serialNumber — (String)

            The serial number of the certificate.

          • subjectAlternativeNames — (Array<String>)

            An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) of the certificate.

          • domainValidationRecords — (Array<map>)

            An array of objects that describe the domain validation records of the certificate.

            • domainName — (String)

              The domain name of the certificate validation record. For example, example.com or www.example.com.

            • resourceRecord — (map)

              An object that describes the DNS records to add to your domain's DNS to validate it for the certificate.

              • name — (String)

                The name of the record.

              • type — (String)

                The DNS record type.

              • value — (String)

                The value for the DNS record.

            • dnsRecordCreationState — (map)

              An object that describes the state of the canonical name (CNAME) records that are automatically added by Lightsail to the DNS of the domain to validate domain ownership.

              • code — (String)

                The status code for the automated DNS record creation.

                Following are the possible values:

                • SUCCEEDED - The validation records were successfully added to the domain.

                • STARTED - The automatic DNS record creation has started.

                • FAILED - The validation records failed to be added to the domain.

                Possible values include:
                • "SUCCEEDED"
                • "STARTED"
                • "FAILED"
              • message — (String)

                The message that describes the reason for the status code.

            • validationStatus — (String)

              The validation status of the record.

              Possible values include:
              • "PENDING_VALIDATION"
              • "FAILED"
              • "SUCCESS"
          • requestFailureReason — (String)

            The validation failure reason, if any, of the certificate.

            The following failure reasons are possible:

            • NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not available for Lightsail certificates.

            • ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the Amazon Web Services Support Center to contact Amazon Web Services Support.

              Note: You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
            • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.

              If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.

              If you see this error and your domain is not included in the VirusTotal list, visit the Amazon Web Services Support Center and create a case.

            • INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate for example.invalidpublicdomain because invalidpublicdomain is not a valid top-level domain.

            • OTHER - Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.

          • inUseResourceCount — (Integer)

            The number of Lightsail resources that the certificate is attached to.

          • keyAlgorithm — (String)

            The algorithm used to generate the key pair (the public and private key) of the certificate.

          • createdAt — (Date)

            The timestamp when the certificate was created.

          • issuedAt — (Date)

            The timestamp when the certificate was issued.

          • issuerCA — (String)

            The certificate authority that issued the certificate.

          • notBefore — (Date)

            The timestamp when the certificate is first valid.

          • notAfter — (Date)

            The timestamp when the certificate expires.

          • eligibleToRenew — (String)

            The renewal eligibility of the certificate.

          • renewalSummary — (map)

            An object that describes the status of the certificate renewal managed by Lightsail.

            • domainValidationRecords — (Array<map>)

              An array of objects that describe the domain validation records of the certificate.

              • domainName — (String)

                The domain name of the certificate validation record. For example, example.com or www.example.com.

              • resourceRecord — (map)

                An object that describes the DNS records to add to your domain's DNS to validate it for the certificate.

                • name — (String)

                  The name of the record.

                • type — (String)

                  The DNS record type.

                • value — (String)

                  The value for the DNS record.

              • dnsRecordCreationState — (map)

                An object that describes the state of the canonical name (CNAME) records that are automatically added by Lightsail to the DNS of the domain to validate domain ownership.

                • code — (String)

                  The status code for the automated DNS record creation.

                  Following are the possible values:

                  • SUCCEEDED - The validation records were successfully added to the domain.

                  • STARTED - The automatic DNS record creation has started.

                  • FAILED - The validation records failed to be added to the domain.

                  Possible values include:
                  • "SUCCEEDED"
                  • "STARTED"
                  • "FAILED"
                • message — (String)

                  The message that describes the reason for the status code.

              • validationStatus — (String)

                The validation status of the record.

                Possible values include:
                • "PENDING_VALIDATION"
                • "FAILED"
                • "SUCCESS"
            • renewalStatus — (String)

              The renewal status of the certificate.

              The following renewal status are possible:

              • PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of the certificate. No further action is required.

              • PendingValidation - Lightsail couldn't automatically validate one or more domain names of the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate remains in use.

              • Success - All domain names in the certificate are validated, and Lightsail renewed the certificate. No further action is required.

              • Failed - One or more domain names were not validated before the certificate expired, and Lightsail did not renew the certificate. You can request a new certificate using the CreateCertificate action.

              Possible values include:
              • "PendingAutoRenewal"
              • "PendingValidation"
              • "Success"
              • "Failed"
            • renewalStatusReason — (String)

              The reason for the renewal status of the certificate.

            • updatedAt — (Date)

              The timestamp when the certificate was last updated.

          • revokedAt — (Date)

            The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED.

          • revocationReason — (String)

            The reason the certificate was revoked. This value is present only when the certificate status is REVOKED.

          • tags — (Array<map>)

            The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

            • key — (String)

              The key of the tag.

              Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

            • value — (String)

              The value of the tag.

              Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • supportCode — (String)

            The support code. Include this code in your email to support when you have questions about your Lightsail certificate. This code enables our support team to look up your Lightsail information more easily.

        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • nextPageToken — (String)

        If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getCloudFormationStackRecords operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getCloudFormationStackRecords(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetClouFormationStackRecords request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • cloudFormationStackRecords — (Array<map>)

        A list of objects describing the CloudFormation stack records.

        • name — (String)

          The name of the CloudFormation stack record. It starts with CloudFormationStackRecord followed by a GUID.

        • arn — (String)

          The Amazon Resource Name (ARN) of the CloudFormation stack record.

        • createdAt — (Date)

          The date when the CloudFormation stack record was created.

        • location — (map)

          A list of objects describing the Availability Zone and Amazon Web Services Region of the CloudFormation stack record.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (CloudFormationStackRecord).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • state — (String)

          The current state of the CloudFormation stack record.

          Possible values include:
          • "Started"
          • "Succeeded"
          • "Failed"
        • sourceInfo — (Array<map>)

          A list of objects describing the source of the CloudFormation stack record.

          • resourceType — (String)

            The Lightsail resource type (ExportSnapshotRecord).

            Possible values include:
            • "ExportSnapshotRecord"
          • name — (String)

            The name of the record.

          • arn — (String)

            The Amazon Resource Name (ARN) of the export snapshot record.

        • destinationInfo — (map)

          A list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack.

          • id — (String)

            The ID of the resource created at the destination.

          • service — (String)

            The destination service of the record.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetCloudFormationStackRecords request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getContactMethods(params = {}, callback) ⇒ AWS.Request

Returns information about the configured contact methods. Specify a protocol in your request to return information about a specific 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.

Service Reference:

Examples:

Calling the getContactMethods operation

var params = {
  protocols: [
    Email | SMS,
    /* more items */
  ]
};
lightsail.getContactMethods(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • protocols — (Array<String>)

      The protocols used to send notifications, such as Email, or SMS (text messaging).

      Specify a protocol in your request to return information about a specific contact method protocol.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • contactMethods — (Array<map>)

        An array of objects that describe the contact methods.

        • contactEndpoint — (String)

          The destination of the contact method, such as an email address or a mobile phone number.

        • status — (String)

          The current status of the contact method.

          A contact method has the following possible status:

          • PendingVerification - The contact method has not yet been verified, and the verification has not yet expired.

          • Valid - The contact method has been verified.

          • InValid - An attempt was made to verify the contact method, but the verification has expired.

          Possible values include:
          • "PendingVerification"
          • "Valid"
          • "Invalid"
        • protocol — (String)

          The protocol of the contact method, such as email or SMS (text messaging).

          Possible values include:
          • "Email"
          • "SMS"
        • name — (String)

          The name of the contact method.

        • arn — (String)

          The Amazon Resource Name (ARN) of the contact method.

        • createdAt — (Date)

          The timestamp when the contact method was created.

        • location — (map)

          An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type of the contact method.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getContainerAPIMetadata(params = {}, callback) ⇒ AWS.Request

Returns information about Amazon Lightsail containers, such as the current version of the Lightsail Control (lightsailctl) plugin.

Service Reference:

Examples:

Calling the getContainerAPIMetadata operation

var params = {
};
lightsail.getContainerAPIMetadata(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • metadata — (Array<map<String>>)

        Metadata about Lightsail containers, such as the current version of the Lightsail Control (lightsailctl) plugin.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. Those images are not registered to your Lightsail container service.

Service Reference:

Examples:

Calling the getContainerImages operation

var params = {
  serviceName: 'STRING_VALUE' /* required */
};
lightsail.getContainerImages(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to return registered container images.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • containerImages — (Array<map>)

        An array of objects that describe container images that are registered to the container service.

        • image — (String)

          The name of the container image.

        • digest — (String)

          The digest of the container image.

        • createdAt — (Date)

          The timestamp when the container image was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. For more information, see Amazon Lightsail endpoints and quotas in the Amazon Web Services General Reference.

Service Reference:

Examples:

Calling the getContainerLog operation

var params = {
  containerName: 'STRING_VALUE', /* required */
  serviceName: 'STRING_VALUE', /* required */
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  filterPattern: 'STRING_VALUE',
  pageToken: 'STRING_VALUE',
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
lightsail.getContainerLog(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to get a container log.

    • containerName — (String)

      The name of the container that is either running or previously ran on the container service for which to return a log.

    • startTime — (Date)

      The start of the time interval for which to get log data.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify 1538424000 as the start time.

      You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

    • endTime — (Date)

      The end of the time interval for which to get log data.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify 1538427600 as the end time.

      You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

    • filterPattern — (String)

      The pattern to use to filter the returned log events to a specific term.

      The following are a few examples of filter patterns that you can specify:

      • To return all log events, specify a filter pattern of "".

      • To exclude log events that contain the ERROR term, and return all other log events, specify a filter pattern of "-ERROR".

      • To return log events that contain the ERROR term, specify a filter pattern of "ERROR".

      • To return log events that contain both the ERROR and Exception terms, specify a filter pattern of "ERROR Exception".

      • To return log events that contain the ERROR or the Exception term, specify a filter pattern of "?ERROR ?Exception".

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetContainerLog request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • logEvents — (Array<map>)

        An array of objects that describe the log events of a container.

        • createdAt — (Date)

          The timestamp when the container service log event was created.

        • message — (String)

          The message of the container service log event.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetContainerLog request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The newest version is listed at the top of the response.

Note: A set number of deployments are kept before the oldest one is replaced with the newest one. For more information, see Amazon Lightsail endpoints and quotas in the Amazon Web Services General Reference.

Service Reference:

Examples:

Calling the getContainerServiceDeployments operation

var params = {
  serviceName: 'STRING_VALUE' /* required */
};
lightsail.getContainerServiceDeployments(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to return deployments.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • deployments — (Array<map>)

        An array of objects that describe deployments for a container service.

        • version — (Integer)

          The version number of the deployment.

        • state — (String)

          The state of the deployment.

          A deployment can be in one of the following states:

          • ACTIVATING - The deployment is being created.

          • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

          • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

          • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

          Possible values include:
          • "ACTIVATING"
          • "ACTIVE"
          • "INACTIVE"
          • "FAILED"
        • containers — (map<map>)

          An object that describes the configuration for the containers of the deployment.

          • image — (String)

            The name of the image used for the container.

            Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

            Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

          • command — (Array<String>)

            The launch command for the container.

          • environment — (map<String>)

            The environment variables of the container.

          • ports — (map<String>)

            The open firewall ports of the container.

        • publicEndpoint — (map)

          An object that describes the endpoint of the deployment.

          • containerName — (String)

            The name of the container entry of the deployment that the endpoint configuration applies to.

          • containerPort — (Integer)

            The port of the specified container to which traffic is forwarded to.

          • healthCheck — (map)

            An object that describes the health check configuration of the container.

            • healthyThreshold — (Integer)

              The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

            • unhealthyThreshold — (Integer)

              The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

            • timeoutSeconds — (Integer)

              The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

            • intervalSeconds — (Integer)

              The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

            • path — (String)

              The path on the container on which to perform the health check. The default value is /.

            • successCodes — (String)

              The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

        • createdAt — (Date)

          The timestamp when the deployment was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources.

Service Reference:

Examples:

Calling the getContainerServiceMetricData operation

var params = {
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  metricName: CPUUtilization | MemoryUtilization, /* required */
  period: 'NUMBER_VALUE', /* required */
  serviceName: 'STRING_VALUE', /* required */
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  statistics: [ /* required */
    Minimum | Maximum | Sum | Average | SampleCount,
    /* more items */
  ]
};
lightsail.getContainerServiceMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to get metric data.

    • metricName — (String)

      The metric for which you want to return information.

      Valid container service metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.

      • CPUUtilization - The average percentage of compute units that are currently in use across all nodes of the container service. This metric identifies the processing power required to run containers on each node of the container service.

        Statistics: The most useful statistics are Maximum and Average.

        Unit: The published unit is Percent.

      • MemoryUtilization - The average percentage of available memory that is currently in use across all nodes of the container service. This metric identifies the memory required to run containers on each node of the container service.

        Statistics: The most useful statistics are Maximum and Average.

        Unit: The published unit is Percent.

      Possible values include:
      • "CPUUtilization"
      • "MemoryUtilization"
    • startTime — (Date)

      The start time of the time period.

    • endTime — (Date)

      The end time of the time period.

    • period — (Integer)

      The granularity, in seconds, of the returned data points.

      All container service metric data is available in 5-minute (300 seconds) granularity.

    • statistics — (Array<String>)

      The statistic for the metric.

      The following statistics are available:

      • Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application.

      • Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.

      • Sum - All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric.

      • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources.

      • SampleCount - The count, or number, of data points used for the statistical calculation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • metricName — (String)

        The name of the metric returned.

        Possible values include:
        • "CPUUtilization"
        • "MemoryUtilization"
      • metricData — (Array<map>)

        An array of objects that describe the metric data returned.

        • average — (Float)

          The average.

        • maximum — (Float)

          The maximum.

        • minimum — (Float)

          The minimum.

        • sampleCount — (Float)

          The sample count.

        • sum — (Float)

          The sum.

        • timestamp — (Date)

          The timestamp (1479816991.349).

        • unit — (String)

          The unit.

          Possible values include:
          • "Seconds"
          • "Microseconds"
          • "Milliseconds"
          • "Bytes"
          • "Kilobytes"
          • "Megabytes"
          • "Gigabytes"
          • "Terabytes"
          • "Bits"
          • "Kilobits"
          • "Megabits"
          • "Gigabits"
          • "Terabits"
          • "Percent"
          • "Count"
          • "Bytes/Second"
          • "Kilobytes/Second"
          • "Megabytes/Second"
          • "Gigabytes/Second"
          • "Terabytes/Second"
          • "Bits/Second"
          • "Kilobits/Second"
          • "Megabits/Second"
          • "Gigabits/Second"
          • "Terabits/Second"
          • "Count/Second"
          • "None"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getContainerServicePowers operation

var params = {
};
lightsail.getContainerServicePowers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • powers — (Array<map>)

        An array of objects that describe the powers that can be specified for a container service.

        • powerId — (String)

          The ID of the power (nano-1).

        • price — (Float)

          The monthly price of the power in USD.

        • cpuCount — (Float)

          The number of vCPUs included in the power.

        • ramSizeInGb — (Float)

          The amount of RAM (in GB) of the power.

        • name — (String)

          The friendly name of the power (nano).

        • isActive — (Boolean)

          A Boolean value indicating whether the power is active and can be specified for container services.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getContainerServices(params = {}, callback) ⇒ AWS.Request

Returns information about one or more of your Amazon Lightsail container services.

Service Reference:

Examples:

Calling the getContainerServices operation

var params = {
  serviceName: 'STRING_VALUE'
};
lightsail.getContainerServices(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to return information.

      When omitted, the response includes all of your container services in the Amazon Web Services Region where the request is made.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • containerServices — (Array<map>)

        An array of objects that describe one or more container services.

        • containerServiceName — (String)

          The name of the container service.

        • arn — (String)

          The Amazon Resource Name (ARN) of the container service.

        • createdAt — (Date)

          The timestamp when the container service was created.

        • location — (map)

          An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type of the container service.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • power — (String)

          The power specification of the container service.

          The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.

          Possible values include:
          • "nano"
          • "micro"
          • "small"
          • "medium"
          • "large"
          • "xlarge"
        • powerId — (String)

          The ID of the power of the container service.

        • state — (String)

          The current state of the container service.

          The following container service states are possible:

          • PENDING - The container service is being created.

          • READY - The container service is running but it does not have an active container deployment.

          • DEPLOYING - The container service is launching a container deployment.

          • RUNNING - The container service is running and it has an active container deployment.

          • UPDATING - The container service capacity or its custom domains are being updated.

          • DELETING - The container service is being deleted.

          • DISABLED - The container service is disabled, and its active deployment and containers, if any, are shut down.

          Possible values include:
          • "PENDING"
          • "READY"
          • "RUNNING"
          • "UPDATING"
          • "DELETING"
          • "DISABLED"
          • "DEPLOYING"
        • stateDetail — (map)

          An object that describes the current state of the container service.

          Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
          • code — (String)

            The state code of the container service.

            The following state codes are possible:

            • The following state codes are possible if your container service is in a DEPLOYING or UPDATING state:

              • CREATING_SYSTEM_RESOURCES - The system resources for your container service are being created.

              • CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for your container service are being created.

              • PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your container service is being created.

              • PROVISIONING_SERVICE - Your container service is being provisioned.

              • CREATING_DEPLOYMENT - Your deployment is being created on your container service.

              • EVALUATING_HEALTH_CHECK - The health of your deployment is being evaluated.

              • ACTIVATING_DEPLOYMENT - Your deployment is being activated.

            • The following state codes are possible if your container service is in a PENDING state:

              • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS certificate required for your container service exceeds the maximum number of certificates allowed for your account.

              • UNKNOWN_ERROR - An error was experienced when your container service was being created.

            Possible values include:
            • "CREATING_SYSTEM_RESOURCES"
            • "CREATING_NETWORK_INFRASTRUCTURE"
            • "PROVISIONING_CERTIFICATE"
            • "PROVISIONING_SERVICE"
            • "CREATING_DEPLOYMENT"
            • "EVALUATING_HEALTH_CHECK"
            • "ACTIVATING_DEPLOYMENT"
            • "CERTIFICATE_LIMIT_EXCEEDED"
            • "UNKNOWN_ERROR"
          • message — (String)

            A message that provides more information for the state code.

            Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
        • scale — (Integer)

          The scale specification of the container service.

          The scale specifies the allocated compute nodes of the container service.

        • currentDeployment — (map)

          An object that describes the current container deployment of the container service.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • nextDeployment — (map)

          An object that describes the next deployment of the container service.

          This value is null when there is no deployment in a pending state.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • isDisabled — (Boolean)

          A Boolean value indicating whether the container service is disabled.

        • principalArn — (String)

          The principal ARN of the container service.

          The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.

        • privateDomainName — (String)

          The private domain name of the container service.

          The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.

        • publicDomainNames — (map<Array<String>>)

          The public domain name of the container service, such as example.com and www.example.com.

          You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.

          If you don't specify public domain names, then you can use the default domain of the container service.

          You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate action to create a certificate for the public domain names you want to use with your container service.

          See CreateContainerService or UpdateContainerService for information about how to specify public domain names for your Lightsail container service.

        • url — (String)

          The publicly accessible URL of the container service.

          If no public endpoint is specified in the currentDeployment, this URL returns a 404 response.

        • privateRegistryAccess — (map)

          An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.

          For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.

          • ecrImagePullerRole — (map)

            An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories. If the role is activated, the Amazon Resource Name (ARN) of the role is also listed.

            • isActive — (Boolean)

              A Boolean value that indicates whether the role is activated.

            • principalArn — (String)

              The Amazon Resource Name (ARN) of the role, if it is activated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getCostEstimate(params = {}, callback) ⇒ AWS.Request

Retrieves information about the cost estimate for a specified resource. A cost estimate will not generate for a resource that has been deleted.

Service Reference:

Examples:

Calling the getCostEstimate operation

var params = {
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  resourceName: 'STRING_VALUE', /* required */
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789 /* required */
};
lightsail.getCostEstimate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The resource name.

    • startTime — (Date)

      The cost estimate start time.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you want to use a start time of October 1, 2018, at 8 PM UTC, specify 1538424000 as the start time.

      You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

    • endTime — (Date)

      The cost estimate end time.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you want to use an end time of October 1, 2018, at 9 PM UTC, specify 1538427600 as the end time.

      You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • resourcesBudgetEstimate — (Array<map>)

        Returns the estimate's forecasted cost or usage.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The type of resource the budget will track.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • costEstimates — (Array<map>)

          The cost estimate for the specified budget.

          • usageType — (String)

            The types of usage that are included in the estimate, such as costs, usage, or data transfer.

          • resultsByTime — (Array<map>)

            The cost estimate result that's associated with a time period.

            • usageCost — (Float)

              The amount of cost or usage that's measured for the cost estimate.

            • pricingUnit — (String)

              The unit of measurement that's used for the cost estimate.

              Possible values include:
              • "GB"
              • "Hrs"
              • "GB-Mo"
              • "Bundles"
              • "Queries"
            • unit — (Float)

              The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.

            • currency — (String)

              The currency of the estimate in USD.

              Possible values include:
              • "USD"
            • timePeriod — (map)

              The period of time, in days, that an estimate covers. The period has a start date and an end date. The start date must come before the end date.

              • start — (Date)

                The beginning of the time period. The start date is inclusive. For example, if start is 2017-01-01, Lightsail for Research retrieves cost and usage data starting at 2017-01-01 up to the end date. The start date must be equal to or no later than the current date to avoid a validation error.

              • end — (Date)

                The end of the time period. The end date is exclusive. For example, if end is 2017-05-01, Lightsail for Research retrieves cost and usage data from the start date up to, but not including, 2017-05-01.

        • startTime — (Date)

          The estimate start time.

        • endTime — (Date)

          The estimate end time.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDisk(params = {}, callback) ⇒ AWS.Request

Returns information about a specific block storage disk.

Service Reference:

Examples:

Calling the getDisk operation

var params = {
  diskName: 'STRING_VALUE' /* required */
};
lightsail.getDisk(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskName — (String)

      The name of the disk (my-disk).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • disk — (map)

        An object containing information about the disk.

        • name — (String)

          The unique name of the disk.

        • arn — (String)

          The Amazon Resource Name (ARN) of the disk.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when the disk was created.

        • location — (map)

          The AWS Region and Availability Zone where the disk is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (Disk).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • addOns — (Array<map>)

          An array of objects representing the add-ons enabled on the disk.

          • name — (String)

            The name of the add-on.

          • status — (String)

            The status of the add-on.

          • snapshotTimeOfDay — (String)

            The daily time when an automatic snapshot is created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • nextSnapshotTimeOfDay — (String)

            The next daily time an automatic snapshot will be created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • threshold — (String)

            The trigger threshold of the action.

            This add-on only applies to Lightsail for Research resources.

          • duration — (String)

            The amount of idle time in minutes after which your virtual computer will automatically stop.

            This add-on only applies to Lightsail for Research resources.

        • sizeInGb — (Integer)

          The size of the disk in GB.

        • isSystemDisk — (Boolean)

          A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

        • iops — (Integer)

          The input/output operations per second (IOPS) of the disk.

        • path — (String)

          The disk path.

        • state — (String)

          Describes the status of the disk.

          Possible values include:
          • "pending"
          • "error"
          • "available"
          • "in-use"
          • "unknown"
        • attachedTo — (String)

          The resources to which the disk is attached.

        • isAttached — (Boolean)

          A Boolean value indicating whether the disk is attached.

        • attachmentState — (String)

          (Discontinued) The attachment state of the disk.

          Note: In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now discontinued, but still included in the response. Use isAttached instead.
        • gbInUse — (Integer)

          (Discontinued) The number of GB in use by the disk.

          Note: In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
        • autoMountStatus — (String)

          The status of automatically mounting a storage disk to a virtual computer.

          This parameter only applies to Lightsail for Research resources.

          Possible values include:
          • "Failed"
          • "Pending"
          • "Mounted"
          • "NotMounted"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDisks(params = {}, callback) ⇒ AWS.Request

Returns information about all block storage disks in your AWS account and region.

Service Reference:

Examples:

Calling the getDisks operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getDisks(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetDisks request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • disks — (Array<map>)

        An array of objects containing information about all block storage disks.

        • name — (String)

          The unique name of the disk.

        • arn — (String)

          The Amazon Resource Name (ARN) of the disk.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when the disk was created.

        • location — (map)

          The AWS Region and Availability Zone where the disk is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (Disk).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • addOns — (Array<map>)

          An array of objects representing the add-ons enabled on the disk.

          • name — (String)

            The name of the add-on.

          • status — (String)

            The status of the add-on.

          • snapshotTimeOfDay — (String)

            The daily time when an automatic snapshot is created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • nextSnapshotTimeOfDay — (String)

            The next daily time an automatic snapshot will be created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • threshold — (String)

            The trigger threshold of the action.

            This add-on only applies to Lightsail for Research resources.

          • duration — (String)

            The amount of idle time in minutes after which your virtual computer will automatically stop.

            This add-on only applies to Lightsail for Research resources.

        • sizeInGb — (Integer)

          The size of the disk in GB.

        • isSystemDisk — (Boolean)

          A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

        • iops — (Integer)

          The input/output operations per second (IOPS) of the disk.

        • path — (String)

          The disk path.

        • state — (String)

          Describes the status of the disk.

          Possible values include:
          • "pending"
          • "error"
          • "available"
          • "in-use"
          • "unknown"
        • attachedTo — (String)

          The resources to which the disk is attached.

        • isAttached — (Boolean)

          A Boolean value indicating whether the disk is attached.

        • attachmentState — (String)

          (Discontinued) The attachment state of the disk.

          Note: In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now discontinued, but still included in the response. Use isAttached instead.
        • gbInUse — (Integer)

          (Discontinued) The number of GB in use by the disk.

          Note: In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
        • autoMountStatus — (String)

          The status of automatically mounting a storage disk to a virtual computer.

          This parameter only applies to Lightsail for Research resources.

          Possible values include:
          • "Failed"
          • "Pending"
          • "Mounted"
          • "NotMounted"
      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetDisks request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDiskSnapshot(params = {}, callback) ⇒ AWS.Request

Returns information about a specific block storage disk snapshot.

Service Reference:

Examples:

Calling the getDiskSnapshot operation

var params = {
  diskSnapshotName: 'STRING_VALUE' /* required */
};
lightsail.getDiskSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • diskSnapshotName — (String)

      The name of the disk snapshot (my-disk-snapshot).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • diskSnapshot — (map)

        An object containing information about the disk snapshot.

        • name — (String)

          The name of the disk snapshot (my-disk-snapshot).

        • arn — (String)

          The Amazon Resource Name (ARN) of the disk snapshot.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when the disk snapshot was created.

        • location — (map)

          The AWS Region and Availability Zone where the disk snapshot was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (DiskSnapshot).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • sizeInGb — (Integer)

          The size of the disk in GB.

        • state — (String)

          The status of the disk snapshot operation.

          Possible values include:
          • "pending"
          • "completed"
          • "error"
          • "unknown"
        • progress — (String)

          The progress of the snapshot.

        • fromDiskName — (String)

          The unique name of the source disk from which the disk snapshot was created.

        • fromDiskArn — (String)

          The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.

        • fromInstanceName — (String)

          The unique name of the source instance from which the disk (system volume) snapshot was created.

        • fromInstanceArn — (String)

          The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.

        • isFromAutoSnapshot — (Boolean)

          A Boolean value indicating whether the snapshot was created from an automatic snapshot.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDiskSnapshots(params = {}, callback) ⇒ AWS.Request

Returns information about all block storage disk snapshots in your AWS account and region.

Service Reference:

Examples:

Calling the getDiskSnapshots operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getDiskSnapshots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetDiskSnapshots request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • diskSnapshots — (Array<map>)

        An array of objects containing information about all block storage disk snapshots.

        • name — (String)

          The name of the disk snapshot (my-disk-snapshot).

        • arn — (String)

          The Amazon Resource Name (ARN) of the disk snapshot.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when the disk snapshot was created.

        • location — (map)

          The AWS Region and Availability Zone where the disk snapshot was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (DiskSnapshot).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • sizeInGb — (Integer)

          The size of the disk in GB.

        • state — (String)

          The status of the disk snapshot operation.

          Possible values include:
          • "pending"
          • "completed"
          • "error"
          • "unknown"
        • progress — (String)

          The progress of the snapshot.

        • fromDiskName — (String)

          The unique name of the source disk from which the disk snapshot was created.

        • fromDiskArn — (String)

          The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.

        • fromInstanceName — (String)

          The unique name of the source instance from which the disk (system volume) snapshot was created.

        • fromInstanceArn — (String)

          The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.

        • isFromAutoSnapshot — (Boolean)

          A Boolean value indicating whether the snapshot was created from an automatic snapshot.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetDiskSnapshots request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getDistributionBundles operation

var params = {
};
lightsail.getDistributionBundles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • bundles — (Array<map>)

        An object that describes a distribution bundle.

        • bundleId — (String)

          The ID of the bundle.

        • name — (String)

          The name of the distribution bundle.

        • price — (Float)

          The monthly price, in US dollars, of the bundle.

        • transferPerMonthInGb — (Integer)

          The monthly network transfer quota of the bundle.

        • isActive — (Boolean)

          Indicates whether the bundle is active, and can be specified for a new or existing distribution.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getDistributionLatestCacheReset operation

var params = {
  distributionName: 'STRING_VALUE'
};
lightsail.getDistributionLatestCacheReset(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution for which to return the timestamp of the last cache reset.

      Use the GetDistributions action to get a list of distribution names that you can specify.

      When omitted, the response includes the latest cache reset timestamp of all your distributions.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • status — (String)

        The status of the last cache reset.

      • createTime — (Date)

        The timestamp of the last cache reset (1479734909.17) in Unix time format.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources.

Service Reference:

Examples:

Calling the getDistributionMetricData operation

var params = {
  distributionName: 'STRING_VALUE', /* required */
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  metricName: Requests | BytesDownloaded | BytesUploaded | TotalErrorRate | Http4xxErrorRate | Http5xxErrorRate, /* required */
  period: 'NUMBER_VALUE', /* required */
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  statistics: [ /* required */
    Minimum | Maximum | Sum | Average | SampleCount,
    /* more items */
  ],
  unit: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None /* required */
};
lightsail.getDistributionMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution for which to get metric data.

      Use the GetDistributions action to get a list of distribution names that you can specify.

    • metricName — (String)

      The metric for which you want to return information.

      Valid distribution metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.

      • Requests - The total number of viewer requests received by your Lightsail distribution, for all HTTP methods, and for both HTTP and HTTPS requests.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is None.

      • BytesDownloaded - The number of bytes downloaded by viewers for GET, HEAD, and OPTIONS requests.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is None.

      • BytesUploaded - The number of bytes uploaded to your origin by your Lightsail distribution, using POST and PUT requests.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is None.

      • TotalErrorRate - The percentage of all viewer requests for which the response's HTTP status code was 4xx or 5xx.

        Statistics: The most useful statistic is Average.

        Unit: The published unit is Percent.

      • 4xxErrorRate - The percentage of all viewer requests for which the response's HTTP status cod was 4xx. In these cases, the client or client viewer may have made an error. For example, a status code of 404 (Not Found) means that the client requested an object that could not be found.

        Statistics: The most useful statistic is Average.

        Unit: The published unit is Percent.

      • 5xxErrorRate - The percentage of all viewer requests for which the response's HTTP status code was 5xx. In these cases, the origin server did not satisfy the requests. For example, a status code of 503 (Service Unavailable) means that the origin server is currently unavailable.

        Statistics: The most useful statistic is Average.

        Unit: The published unit is Percent.

      Possible values include:
      • "Requests"
      • "BytesDownloaded"
      • "BytesUploaded"
      • "TotalErrorRate"
      • "Http4xxErrorRate"
      • "Http5xxErrorRate"
    • startTime — (Date)

      The start of the time interval for which to get metric data.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, specify 1538424000 as the start time.

      You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

    • endTime — (Date)

      The end of the time interval for which to get metric data.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use an end time of October 1, 2018, at 9 PM UTC, specify 1538427600 as the end time.

      You can convert a human-friendly time to Unix time format using a converter like Epoch converter.

    • period — (Integer)

      The granularity, in seconds, for the metric data points that will be returned.

    • unit — (String)

      The unit for the metric data request.

      Valid units depend on the metric data being requested. For the valid units with each available metric, see the metricName parameter.

      Possible values include:
      • "Seconds"
      • "Microseconds"
      • "Milliseconds"
      • "Bytes"
      • "Kilobytes"
      • "Megabytes"
      • "Gigabytes"
      • "Terabytes"
      • "Bits"
      • "Kilobits"
      • "Megabits"
      • "Gigabits"
      • "Terabits"
      • "Percent"
      • "Count"
      • "Bytes/Second"
      • "Kilobytes/Second"
      • "Megabytes/Second"
      • "Gigabytes/Second"
      • "Terabytes/Second"
      • "Bits/Second"
      • "Kilobits/Second"
      • "Megabits/Second"
      • "Gigabits/Second"
      • "Terabits/Second"
      • "Count/Second"
      • "None"
    • statistics — (Array<String>)

      The statistic for the metric.

      The following statistics are available:

      • Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application.

      • Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.

      • Sum - All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric.

      • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources.

      • SampleCount - The count, or number, of data points used for the statistical calculation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • metricName — (String)

        The name of the metric returned.

        Possible values include:
        • "Requests"
        • "BytesDownloaded"
        • "BytesUploaded"
        • "TotalErrorRate"
        • "Http4xxErrorRate"
        • "Http5xxErrorRate"
      • metricData — (Array<map>)

        An array of objects that describe the metric data returned.

        • average — (Float)

          The average.

        • maximum — (Float)

          The maximum.

        • minimum — (Float)

          The minimum.

        • sampleCount — (Float)

          The sample count.

        • sum — (Float)

          The sum.

        • timestamp — (Date)

          The timestamp (1479816991.349).

        • unit — (String)

          The unit.

          Possible values include:
          • "Seconds"
          • "Microseconds"
          • "Milliseconds"
          • "Bytes"
          • "Kilobytes"
          • "Megabytes"
          • "Gigabytes"
          • "Terabytes"
          • "Bits"
          • "Kilobits"
          • "Megabits"
          • "Gigabits"
          • "Terabits"
          • "Percent"
          • "Count"
          • "Bytes/Second"
          • "Kilobytes/Second"
          • "Megabytes/Second"
          • "Gigabytes/Second"
          • "Terabytes/Second"
          • "Bits/Second"
          • "Kilobits/Second"
          • "Megabits/Second"
          • "Gigabits/Second"
          • "Terabits/Second"
          • "Count/Second"
          • "None"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDistributions(params = {}, callback) ⇒ AWS.Request

Returns information about one or more of your Amazon Lightsail content delivery network (CDN) distributions.

Service Reference:

Examples:

Calling the getDistributions operation

var params = {
  distributionName: 'STRING_VALUE',
  pageToken: 'STRING_VALUE'
};
lightsail.getDistributions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution for which to return information.

      When omitted, the response includes all of your distributions in the Amazon Web Services Region where the request is made.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetDistributions request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • distributions — (Array<map>)

        An array of objects that describe your distributions.

        • name — (String)

          The name of the distribution.

        • arn — (String)

          The Amazon Resource Name (ARN) of the distribution.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about your Lightsail distribution. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the distribution was created.

        • location — (map)

          An object that describes the location of the distribution, such as the Amazon Web Services Region and Availability Zone.

          Note: 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 the us-east-1 Region.
          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (Distribution).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • alternativeDomainNames — (Array<String>)

          The alternate domain names of the distribution.

        • status — (String)

          The status of the distribution.

        • isEnabled — (Boolean)

          Indicates whether the distribution is enabled.

        • domainName — (String)

          The domain name of the distribution.

        • bundleId — (String)

          The ID of the bundle currently applied to the distribution.

        • certificateName — (String)

          The name of the SSL/TLS certificate attached to the distribution, if any.

        • origin — (map)

          An object that describes the origin resource of the distribution, such as a Lightsail instance, bucket, or load balancer.

          The distribution pulls, caches, and serves content from the origin.

          • name — (String)

            The name of the origin resource.

          • resourceType — (String)

            The resource type of the origin resource (Instance).

            Possible values include:
            • "ContainerService"
            • "Instance"
            • "StaticIp"
            • "KeyPair"
            • "InstanceSnapshot"
            • "Domain"
            • "PeeredVpc"
            • "LoadBalancer"
            • "LoadBalancerTlsCertificate"
            • "Disk"
            • "DiskSnapshot"
            • "RelationalDatabase"
            • "RelationalDatabaseSnapshot"
            • "ExportSnapshotRecord"
            • "CloudFormationStackRecord"
            • "Alarm"
            • "ContactMethod"
            • "Distribution"
            • "Certificate"
            • "Bucket"
          • regionName — (String)

            The AWS Region name of the origin resource.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
          • protocolPolicy — (String)

            The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

            Possible values include:
            • "http-only"
            • "https-only"
        • originPublicDNS — (String)

          The public DNS of the origin.

        • defaultCacheBehavior — (map)

          An object that describes the default cache behavior of the distribution.

          • behavior — (String)

            The cache behavior of the distribution.

            The following cache behaviors can be specified:

            • cache - This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.

            • dont-cache - This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.

            Possible values include:
            • "dont-cache"
            • "cache"
        • cacheBehaviorSettings — (map)

          An object that describes the cache behavior settings of the distribution.

          • defaultTTL — (Integer)

            The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.

            Note: The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.
          • minimumTTL — (Integer)

            The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

            A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.

          • maximumTTL — (Integer)

            The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

            The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

          • allowedHTTPMethods — (String)

            The HTTP methods that are processed and forwarded to the distribution's origin.

            You can specify the following options:

            • GET,HEAD - The distribution forwards the GET and HEAD methods.

            • GET,HEAD,OPTIONS - The distribution forwards the GET, HEAD, and OPTIONS methods.

            • GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE - The distribution forwards the GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE methods.

            If you specify the third option, you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin.

          • cachedHTTPMethods — (String)

            The HTTP method responses that are cached by your distribution.

            You can specify the following options:

            • GET,HEAD - The distribution caches responses to the GET and HEAD methods.

            • GET,HEAD,OPTIONS - The distribution caches responses to the GET, HEAD, and OPTIONS methods.

          • forwardedCookies — (map)

            An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.

            • option — (String)

              Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.

              Possible values include:
              • "none"
              • "allow-list"
              • "all"
            • cookiesAllowList — (Array<String>)

              The specific cookies to forward to your distribution's origin.

          • forwardedHeaders — (map)

            An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.

            • option — (String)

              The headers that you want your distribution to forward to your origin and base caching on.

              You can configure your distribution to do one of the following:

              • all - Forward all headers to your origin.

              • none - Forward only the default headers.

              • allow-list - Forward only the headers you specify using the headersAllowList parameter.

              Possible values include:
              • "none"
              • "allow-list"
              • "all"
            • headersAllowList — (Array<String>)

              The specific headers to forward to your distribution's origin.

          • forwardedQueryStrings — (map)

            An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.

            • option — (Boolean)

              Indicates whether the distribution forwards and caches based on query strings.

            • queryStringsAllowList — (Array<String>)

              The specific query strings that the distribution forwards to the origin.

              Your distribution will cache content based on the specified query strings.

              If the option parameter is true, then your distribution forwards all query strings, regardless of what you specify using the queryStringsAllowList parameter.

        • cacheBehaviors — (Array<map>)

          An array of objects that describe the per-path cache behavior of the distribution.

          • path — (String)

            The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/*), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

            Examples:

            • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

              var/www/html/

            • Specify the following file to cache only the index page in the document root of an Apache web server.

              var/www/html/index.html

            • Specify the following to cache only the .html files in the document root of an Apache web server.

              var/www/html/*.html

            • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

              var/www/html/images/*.jpg

              var/www/html/images/*.png

              var/www/html/images/*.gif

              Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

              var/www/html/images/

          • behavior — (String)

            The cache behavior for the specified path.

            You can specify one of the following per-path cache behaviors:

            • cache - This behavior caches the specified path.

            • dont-cache - This behavior doesn't cache the specified path.

            Possible values include:
            • "dont-cache"
            • "cache"
        • ableToUpdateBundle — (Boolean)

          Indicates whether the bundle that is currently applied to your distribution, specified using the distributionName parameter, can be changed to another bundle.

          Use the UpdateDistributionBundle action to change your distribution's bundle.

        • ipAddressType — (String)

          The IP address type of the distribution.

          The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

          Possible values include:
          • "dualstack"
          • "ipv4"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetDistributions request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDomain(params = {}, callback) ⇒ AWS.Request

Returns information about a specific domain recordset.

Service Reference:

Examples:

Calling the getDomain operation

var params = {
  domainName: 'STRING_VALUE' /* required */
};
lightsail.getDomain(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • domainName — (String)

      The domain name for which your want to return information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • domain — (map)

        An array of key-value pairs containing information about your get domain request.

        • name — (String)

          The name of the domain.

        • arn — (String)

          The Amazon Resource Name (ARN) of the domain recordset (arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when the domain recordset was created.

        • location — (map)

          The AWS Region and Availability Zones where the domain recordset was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • domainEntries — (Array<map>)

          An array of key-value pairs containing information about the domain entries.

          • id — (String)

            The ID of the domain recordset entry.

          • name — (String)

            The name of the domain.

          • target — (String)

            The target IP address (192.0.2.0), or AWS name server (ns-111.awsdns-22.com.).

            For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net. For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.

          • isAlias — (Boolean)

            When true, specifies whether the domain entry is an alias used by the Lightsail load balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to that resource.

          • type — (String)

            The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).

            The following domain entry types can be used:

            • A

            • AAAA

            • CNAME

            • MX

            • NS

            • SOA

            • SRV

            • TXT

          • options — (map<String>)

            (Discontinued) The options for the domain entry.

            Note: In releases prior to November 29, 2017, this parameter was not included in the API response. It is now discontinued.
        • registeredDomainDelegationInfo — (map)

          An object that describes the state of the Route 53 domain delegation to a Lightsail DNS zone.

          • nameServersUpdateState — (map)

            An object that describes the state of the name server records that are automatically added to the Route 53 domain by Lightsail.

            • code — (String)

              The status code for the name servers update.

              Following are the possible values:

              • SUCCEEDED - The name server records were successfully updated.

              • PENDING - The name server record update is in progress.

              • FAILED - The name server record update failed.

              • STARTED - The automatic name server record update started.

              Possible values include:
              • "SUCCEEDED"
              • "PENDING"
              • "FAILED"
              • "STARTED"
            • message — (String)

              The message that describes the reason for the status code.

          • r53HostedZoneDeletionState — (map)

            Describes the deletion state of an Amazon Route 53 hosted zone for a domain that is being automatically delegated to an Amazon Lightsail DNS zone.

            • code — (String)

              The status code for the deletion state.

              Following are the possible values:

              • SUCCEEDED - The hosted zone was successfully deleted.

              • PENDING - The hosted zone deletion is in progress.

              • FAILED - The hosted zone deletion failed.

              • STARTED - The hosted zone deletion started.

              Possible values include:
              • "SUCCEEDED"
              • "PENDING"
              • "FAILED"
              • "STARTED"
            • message — (String)

              The message that describes the reason for the status code.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDomains(params = {}, callback) ⇒ AWS.Request

Returns a list of all domains in the user's account.

Service Reference:

Examples:

Calling the getDomains operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getDomains(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetDomains request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • domains — (Array<map>)

        An array of key-value pairs containing information about each of the domain entries in the user's account.

        • name — (String)

          The name of the domain.

        • arn — (String)

          The Amazon Resource Name (ARN) of the domain recordset (arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when the domain recordset was created.

        • location — (map)

          The AWS Region and Availability Zones where the domain recordset was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • domainEntries — (Array<map>)

          An array of key-value pairs containing information about the domain entries.

          • id — (String)

            The ID of the domain recordset entry.

          • name — (String)

            The name of the domain.

          • target — (String)

            The target IP address (192.0.2.0), or AWS name server (ns-111.awsdns-22.com.).

            For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net. For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.

          • isAlias — (Boolean)

            When true, specifies whether the domain entry is an alias used by the Lightsail load balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to that resource.

          • type — (String)

            The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).

            The following domain entry types can be used:

            • A

            • AAAA

            • CNAME

            • MX

            • NS

            • SOA

            • SRV

            • TXT

          • options — (map<String>)

            (Discontinued) The options for the domain entry.

            Note: In releases prior to November 29, 2017, this parameter was not included in the API response. It is now discontinued.
        • registeredDomainDelegationInfo — (map)

          An object that describes the state of the Route 53 domain delegation to a Lightsail DNS zone.

          • nameServersUpdateState — (map)

            An object that describes the state of the name server records that are automatically added to the Route 53 domain by Lightsail.

            • code — (String)

              The status code for the name servers update.

              Following are the possible values:

              • SUCCEEDED - The name server records were successfully updated.

              • PENDING - The name server record update is in progress.

              • FAILED - The name server record update failed.

              • STARTED - The automatic name server record update started.

              Possible values include:
              • "SUCCEEDED"
              • "PENDING"
              • "FAILED"
              • "STARTED"
            • message — (String)

              The message that describes the reason for the status code.

          • r53HostedZoneDeletionState — (map)

            Describes the deletion state of an Amazon Route 53 hosted zone for a domain that is being automatically delegated to an Amazon Lightsail DNS zone.

            • code — (String)

              The status code for the deletion state.

              Following are the possible values:

              • SUCCEEDED - The hosted zone was successfully deleted.

              • PENDING - The hosted zone deletion is in progress.

              • FAILED - The hosted zone deletion failed.

              • STARTED - The hosted zone deletion started.

              Possible values include:
              • "SUCCEEDED"
              • "PENDING"
              • "FAILED"
              • "STARTED"
            • message — (String)

              The message that describes the reason for the status code.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetDomains request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getExportSnapshotRecords operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getExportSnapshotRecords(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetExportSnapshotRecords request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • exportSnapshotRecords — (Array<map>)

        A list of objects describing the export snapshot records.

        • name — (String)

          The export snapshot record name.

        • arn — (String)

          The Amazon Resource Name (ARN) of the export snapshot record.

        • createdAt — (Date)

          The date when the export snapshot record was created.

        • location — (map)

          The AWS Region and Availability Zone where the export snapshot record is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type (ExportSnapshotRecord).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • state — (String)

          The state of the export snapshot record.

          Possible values include:
          • "Started"
          • "Succeeded"
          • "Failed"
        • sourceInfo — (map)

          A list of objects describing the source of the export snapshot record.

          • resourceType — (String)

            The Lightsail resource type (InstanceSnapshot or DiskSnapshot).

            Possible values include:
            • "InstanceSnapshot"
            • "DiskSnapshot"
          • createdAt — (Date)

            The date when the source instance or disk snapshot was created.

          • name — (String)

            The name of the source instance or disk snapshot.

          • arn — (String)

            The Amazon Resource Name (ARN) of the source instance or disk snapshot.

          • fromResourceName — (String)

            The name of the snapshot's source instance or disk.

          • fromResourceArn — (String)

            The Amazon Resource Name (ARN) of the snapshot's source instance or disk.

          • instanceSnapshotInfo — (map)

            A list of objects describing an instance snapshot.

            • fromBundleId — (String)

              The bundle ID from which the source instance was created (micro_1_0).

            • fromBlueprintId — (String)

              The blueprint ID from which the source instance (os_debian_8_3).

            • fromDiskInfo — (Array<map>)

              A list of objects describing the disks that were attached to the source instance.

              • name — (String)

                The disk name.

              • path — (String)

                The disk path.

              • sizeInGb — (Integer)

                The size of the disk in GB (32).

              • isSystemDisk — (Boolean)

                A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

          • diskSnapshotInfo — (map)

            A list of objects describing a disk snapshot.

            • sizeInGb — (Integer)

              The size of the disk in GB (32).

        • destinationInfo — (map)

          A list of objects describing the destination of the export snapshot record.

          • id — (String)

            The ID of the resource created at the destination.

          • service — (String)

            The destination service of the record.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetExportSnapshotRecords request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getInstance(params = {}, callback) ⇒ AWS.Request

Returns information about a specific Amazon Lightsail instance, which is a virtual private server.

Service Reference:

Examples:

Calling the getInstance operation

var params = {
  instanceName: 'STRING_VALUE' /* required */
};
lightsail.getInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • instance — (map)

        An array of key-value pairs containing information about the specified instance.

        • name — (String)

          The name the user gave the instance (Amazon_Linux-1GB-Ohio-1).

        • arn — (String)

          The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the instance was created (1479734909.17) in Unix time format.

        • location — (map)

          The region name and Availability Zone where the instance is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The type of resource (usually Instance).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • blueprintId — (String)

          The blueprint ID (os_amlinux_2016_03).

        • blueprintName — (String)

          The friendly name of the blueprint (Amazon Linux).

        • bundleId — (String)

          The bundle for the instance (micro_1_0).

        • addOns — (Array<map>)

          An array of objects representing the add-ons enabled on the instance.

          • name — (String)

            The name of the add-on.

          • status — (String)

            The status of the add-on.

          • snapshotTimeOfDay — (String)

            The daily time when an automatic snapshot is created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • nextSnapshotTimeOfDay — (String)

            The next daily time an automatic snapshot will be created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • threshold — (String)

            The trigger threshold of the action.

            This add-on only applies to Lightsail for Research resources.

          • duration — (String)

            The amount of idle time in minutes after which your virtual computer will automatically stop.

            This add-on only applies to Lightsail for Research resources.

        • isStaticIp — (Boolean)

          A Boolean value indicating whether this instance has a static IP assigned to it.

        • privateIpAddress — (String)

          The private IP address of the instance.

        • publicIpAddress — (String)

          The public IP address of the instance.

        • ipv6Addresses — (Array<String>)

          The IPv6 addresses of the instance.

        • ipAddressType — (String)

          The IP address type of the instance.

          The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

          Possible values include:
          • "dualstack"
          • "ipv4"
        • hardware — (map)

          The size of the vCPU and the amount of RAM for the instance.

          • cpuCount — (Integer)

            The number of vCPUs the instance has.

          • disks — (Array<map>)

            The disks attached to the instance.

            • name — (String)

              The unique name of the disk.

            • arn — (String)

              The Amazon Resource Name (ARN) of the disk.

            • supportCode — (String)

              The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

            • createdAt — (Date)

              The date when the disk was created.

            • location — (map)

              The AWS Region and Availability Zone where the disk is located.

              • availabilityZone — (String)

                The Availability Zone. Follows the format us-east-2a (case-sensitive).

              • regionName — (String)

                The Amazon Web Services Region name.

                Possible values include:
                • "us-east-1"
                • "us-east-2"
                • "us-west-1"
                • "us-west-2"
                • "eu-west-1"
                • "eu-west-2"
                • "eu-west-3"
                • "eu-central-1"
                • "ca-central-1"
                • "ap-south-1"
                • "ap-southeast-1"
                • "ap-southeast-2"
                • "ap-northeast-1"
                • "ap-northeast-2"
                • "eu-north-1"
            • resourceType — (String)

              The Lightsail resource type (Disk).

              Possible values include:
              • "ContainerService"
              • "Instance"
              • "StaticIp"
              • "KeyPair"
              • "InstanceSnapshot"
              • "Domain"
              • "PeeredVpc"
              • "LoadBalancer"
              • "LoadBalancerTlsCertificate"
              • "Disk"
              • "DiskSnapshot"
              • "RelationalDatabase"
              • "RelationalDatabaseSnapshot"
              • "ExportSnapshotRecord"
              • "CloudFormationStackRecord"
              • "Alarm"
              • "ContactMethod"
              • "Distribution"
              • "Certificate"
              • "Bucket"
            • tags — (Array<map>)

              The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

              • key — (String)

                The key of the tag.

                Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

              • value — (String)

                The value of the tag.

                Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

            • addOns — (Array<map>)

              An array of objects representing the add-ons enabled on the disk.

              • name — (String)

                The name of the add-on.

              • status — (String)

                The status of the add-on.

              • snapshotTimeOfDay — (String)

                The daily time when an automatic snapshot is created.

                The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

                The snapshot is automatically created between the time shown and up to 45 minutes after.

              • nextSnapshotTimeOfDay — (String)

                The next daily time an automatic snapshot will be created.

                The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

                The snapshot is automatically created between the time shown and up to 45 minutes after.

              • threshold — (String)

                The trigger threshold of the action.

                This add-on only applies to Lightsail for Research resources.

              • duration — (String)

                The amount of idle time in minutes after which your virtual computer will automatically stop.

                This add-on only applies to Lightsail for Research resources.

            • sizeInGb — (Integer)

              The size of the disk in GB.

            • isSystemDisk — (Boolean)

              A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

            • iops — (Integer)

              The input/output operations per second (IOPS) of the disk.

            • path — (String)

              The disk path.

            • state — (String)

              Describes the status of the disk.

              Possible values include:
              • "pending"
              • "error"
              • "available"
              • "in-use"
              • "unknown"
            • attachedTo — (String)

              The resources to which the disk is attached.

            • isAttached — (Boolean)

              A Boolean value indicating whether the disk is attached.

            • attachmentState — (String)

              (Discontinued) The attachment state of the disk.

              Note: In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now discontinued, but still included in the response. Use isAttached instead.
            • gbInUse — (Integer)

              (Discontinued) The number of GB in use by the disk.

              Note: In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
            • autoMountStatus — (String)

              The status of automatically mounting a storage disk to a virtual computer.

              This parameter only applies to Lightsail for Research resources.

              Possible values include:
              • "Failed"
              • "Pending"
              • "Mounted"
              • "NotMounted"
          • ramSizeInGb — (Float)

            The amount of RAM in GB on the instance (1.0).

        • networking — (map)

          Information about the public ports and monthly data transfer rates for the instance.

          • monthlyTransfer — (map)

            The amount of data in GB allocated for monthly data transfers.

            • gbPerMonthAllocated — (Integer)

              The amount allocated per month (in GB).

          • ports — (Array<map>)

            An array of key-value pairs containing information about the ports on the instance.

            • fromPort — (Integer)

              The first port in a range of open ports on an instance.

              Allowed ports:

              • TCP and UDP - 0 to 65535

              • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

              • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

            • toPort — (Integer)

              The last port in a range of open ports on an instance.

              Allowed ports:

              • TCP and UDP - 0 to 65535

              • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

              • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

            • protocol — (String)

              The IP protocol name.

              The name can be one of the following:

              • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

              • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

              • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

              • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

              Possible values include:
              • "tcp"
              • "all"
              • "udp"
              • "icmp"
            • accessFrom — (String)

              The location from which access is allowed. For example, Anywhere (0.0.0.0/0), or Custom if a specific IP address or range of IP addresses is allowed.

            • accessType — (String)

              The type of access (Public or Private).

              Possible values include:
              • "Public"
              • "Private"
            • commonName — (String)

              The common name of the port information.

            • accessDirection — (String)

              The access direction (inbound or outbound).

              Note: Lightsail currently supports only inbound access direction.
              Possible values include:
              • "inbound"
              • "outbound"
            • cidrs — (Array<String>)

              The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

              Note: The ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

              For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

            • ipv6Cidrs — (Array<String>)

              The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.

              Note: The cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

              For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

            • cidrListAliases — (Array<String>)

              An alias that defines access for a preconfigured range of IP addresses.

              The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

        • state — (map)

          The status code and the state (running) for the instance.

          • code — (Integer)

            The status code for the instance.

          • name — (String)

            The state of the instance (running or pending).

        • username — (String)

          The user name for connecting to the instance (ec2-user).

        • sshKeyName — (String)

          The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).

        • metadataOptions — (map)

          The metadata options for the Amazon Lightsail instance.

          • state — (String)

            The state of the metadata option changes.

            The following states are possible:

            • pending - The metadata options are being updated. The instance is not yet ready to process metadata traffic with the new selection.

            • applied - The metadata options have been successfully applied to the instance.

            Possible values include:
            • "pending"
            • "applied"
          • httpTokens — (String)

            The state of token usage for your instance metadata requests.

            If the state is optional, you can choose whether to retrieve instance metadata with a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0 role credentials are returned.

            If the state is required, you must send a signed token header with all instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The version 1.0 credentials are not available.

            Not all instance blueprints in Lightsail support version 2.0 credentials. Use the MetadataNoToken instance metric to track the number of calls to the instance metadata service that are using version 1.0 credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.

            Possible values include:
            • "optional"
            • "required"
          • httpEndpoint — (String)

            Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.

            If the value is disabled, you cannot access your instance metadata.

            Possible values include:
            • "disabled"
            • "enabled"
          • httpPutResponseHopLimit — (Integer)

            The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the instance metadata requests can travel farther.

          • httpProtocolIpv6 — (String)

            Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.

            Possible values include:
            • "disabled"
            • "enabled"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by instance name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the getInstanceAccessDetails operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  protocol: ssh | rdp
};
lightsail.getInstanceAccessDetails(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance to access.

    • protocol — (String)

      The protocol to use to connect to your instance. Defaults to ssh.

      Possible values include:
      • "ssh"
      • "rdp"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • accessDetails — (map)

        An array of key-value pairs containing information about a get instance access request.

        • certKey — (String)

          For SSH access, the public key to use when accessing your instance For OpenSSH clients (command line SSH), you should save this value to tempkey-cert.pub.

        • expiresAt — (Date)

          For SSH access, the date on which the temporary keys expire.

        • ipAddress — (String)

          The public IP address of the Amazon Lightsail instance.

        • ipv6Addresses — (Array<String>)

          The IPv6 address of the Amazon Lightsail instance.

        • password — (String)

          For RDP access, the password for your Amazon Lightsail instance. Password will be an empty string if the password for your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.

          Note: If you create an instance using any key pair other than the default (LightsailDefaultKeyPair), password will always be an empty string. If you change the Administrator password on the instance, Lightsail will continue to return the original password value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.
        • passwordData — (map)

          For a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only needed if password is empty and the instance is not new (and therefore the password is not ready yet). When you create an instance, it can take up to 15 minutes for the instance to be ready.

          • ciphertext — (String)

            The encrypted password. Ciphertext will be an empty string if access to your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.

            Note: If you use the default key pair (LightsailDefaultKeyPair), the decrypted password will be available in the password field. If you are using a custom key pair, you need to use your own means of decryption. If you change the Administrator password on the instance, Lightsail will continue to return the original ciphertext value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.
          • keyPairName — (String)

            The name of the key pair that you used when creating your instance. If no key pair name was specified when creating the instance, Lightsail uses the default key pair (LightsailDefaultKeyPair).

            If you are using a custom key pair, you need to use your own means of decrypting your password using the ciphertext. Lightsail creates the ciphertext by encrypting your password with the public key part of this key pair.

        • privateKey — (String)

          For SSH access, the temporary private key. For OpenSSH clients (command line SSH), you should save this value to tempkey).

        • protocol — (String)

          The protocol for these Amazon Lightsail instance access details.

          Possible values include:
          • "ssh"
          • "rdp"
        • instanceName — (String)

          The name of this Amazon Lightsail instance.

        • username — (String)

          The user name to use when logging in to the Amazon Lightsail instance.

        • hostKeys — (Array<map>)

          Describes the public SSH host keys or the RDP certificate.

          • algorithm — (String)

            The SSH host key algorithm or the RDP certificate format.

            For SSH host keys, the algorithm may be ssh-rsa, ecdsa-sha2-nistp256, ssh-ed25519, etc. For RDP certificates, the algorithm is always x509-cert.

          • publicKey — (String)

            The public SSH host key or the RDP certificate.

          • witnessedAt — (Date)

            The time that the SSH host key or RDP certificate was recorded by Lightsail.

          • fingerprintSHA1 — (String)

            The SHA-1 fingerprint of the returned SSH host key or RDP certificate.

            • Example of an SHA-1 SSH fingerprint:

              SHA1:1CHH6FaAaXjtFOsR/t83vf91SR0

            • Example of an SHA-1 RDP fingerprint:

              af:34:51:fe:09:f0:e0:da:b8:4e:56:ca:60:c2:10:ff:38:06:db:45

          • fingerprintSHA256 — (String)

            The SHA-256 fingerprint of the returned SSH host key or RDP certificate.

            • Example of an SHA-256 SSH fingerprint:

              SHA256:KTsMnRBh1IhD17HpdfsbzeGA4jOijm5tyXsMjKVbB8o

            • Example of an SHA-256 RDP fingerprint:

              03:9b:36:9f:4b:de:4e:61:70:fc:7c:c9:78:e7:d2:1a:1c:25:a8:0c:91:f6:7c:e4:d6:a0:85:c8:b4:53:99:68

          • notValidBefore — (Date)

            The returned RDP certificate is valid after this point in time.

            This value is listed only for RDP certificates.

          • notValidAfter — (Date)

            The returned RDP certificate is not valid after this point in time.

            This value is listed only for RDP certificates.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources.

Service Reference:

Examples:

Calling the getInstanceMetricData operation

var params = {
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  instanceName: 'STRING_VALUE', /* required */
  metricName: CPUUtilization | NetworkIn | NetworkOut | StatusCheckFailed | StatusCheckFailed_Instance | StatusCheckFailed_System | BurstCapacityTime | BurstCapacityPercentage | MetadataNoToken, /* required */
  period: 'NUMBER_VALUE', /* required */
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  statistics: [ /* required */
    Minimum | Maximum | Sum | Average | SampleCount,
    /* more items */
  ],
  unit: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None /* required */
};
lightsail.getInstanceMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance for which you want to get metrics data.

    • metricName — (String)

      The metric for which you want to return information.

      Valid instance metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.

      • BurstCapacityPercentage - The percentage of CPU performance available for your instance to burst above its baseline. Your instance continuously accrues and consumes burst capacity. Burst capacity stops accruing when your instance's BurstCapacityPercentage reaches 100%. For more information, see Viewing instance burst capacity in Amazon Lightsail.

        Statistics: The most useful statistics are Maximum and Average.

        Unit: The published unit is Percent.

      • BurstCapacityTime - The available amount of time for your instance to burst at 100% CPU utilization. Your instance continuously accrues and consumes burst capacity. Burst capacity time stops accruing when your instance's BurstCapacityPercentage metric reaches 100%.

        Burst capacity time is consumed at the full rate only when your instance operates at 100% CPU utilization. For example, if your instance operates at 50% CPU utilization in the burstable zone for a 5-minute period, then it consumes CPU burst capacity minutes at a 50% rate in that period. Your instance consumed 2 minutes and 30 seconds of CPU burst capacity minutes in the 5-minute period. For more information, see Viewing instance burst capacity in Amazon Lightsail.

        Statistics: The most useful statistics are Maximum and Average.

        Unit: The published unit is Seconds.

      • CPUUtilization - The percentage of allocated compute units that are currently in use on the instance. This metric identifies the processing power to run the applications on the instance. Tools in your operating system can show a lower percentage than Lightsail when the instance is not allocated a full processor core.

        Statistics: The most useful statistics are Maximum and Average.

        Unit: The published unit is Percent.

      • NetworkIn - The number of bytes received on all network interfaces by the instance. This metric identifies the volume of incoming network traffic to the instance. The number reported is the number of bytes received during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Bytes.

      • NetworkOut - The number of bytes sent out on all network interfaces by the instance. This metric identifies the volume of outgoing network traffic from the instance. The number reported is the number of bytes sent during the period. Because this metric is reported in 5-minute intervals, divide the reported number by 300 to find Bytes/second.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Bytes.

      • StatusCheckFailed - Reports whether the instance passed or failed both the instance status check and the system status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Count.

      • StatusCheckFailed_Instance - Reports whether the instance passed or failed the instance status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Count.

      • StatusCheckFailed_System - Reports whether the instance passed or failed the system status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds) granularity.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Count.

      • MetadataNoToken - Reports the number of times that the instance metadata service was successfully accessed without a token. This metric determines if there are any processes accessing instance metadata by using Instance Metadata Service Version 1, which doesn't use a token. If all requests use token-backed sessions, such as Instance Metadata Service Version 2, then the value is 0.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Count.

      Possible values include:
      • "CPUUtilization"
      • "NetworkIn"
      • "NetworkOut"
      • "StatusCheckFailed"
      • "StatusCheckFailed_Instance"
      • "StatusCheckFailed_System"
      • "BurstCapacityTime"
      • "BurstCapacityPercentage"
      • "MetadataNoToken"
    • period — (Integer)

      The granularity, in seconds, of the returned data points.

      The StatusCheckFailed, StatusCheckFailed_Instance, and StatusCheckFailed_System instance metric data is available in 1-minute (60 seconds) granularity. All other instance metric data is available in 5-minute (300 seconds) granularity.

    • startTime — (Date)

      The start time of the time period.

    • endTime — (Date)

      The end time of the time period.

    • unit — (String)

      The unit for the metric data request. Valid units depend on the metric data being requested. For the valid units to specify with each available metric, see the metricName parameter.

      Possible values include:
      • "Seconds"
      • "Microseconds"
      • "Milliseconds"
      • "Bytes"
      • "Kilobytes"
      • "Megabytes"
      • "Gigabytes"
      • "Terabytes"
      • "Bits"
      • "Kilobits"
      • "Megabits"
      • "Gigabits"
      • "Terabits"
      • "Percent"
      • "Count"
      • "Bytes/Second"
      • "Kilobytes/Second"
      • "Megabytes/Second"
      • "Gigabytes/Second"
      • "Terabytes/Second"
      • "Bits/Second"
      • "Kilobits/Second"
      • "Megabits/Second"
      • "Gigabits/Second"
      • "Terabits/Second"
      • "Count/Second"
      • "None"
    • statistics — (Array<String>)

      The statistic for the metric.

      The following statistics are available:

      • Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application.

      • Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.

      • Sum - All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric.

      • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources.

      • SampleCount - The count, or number, of data points used for the statistical calculation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • metricName — (String)

        The name of the metric returned.

        Possible values include:
        • "CPUUtilization"
        • "NetworkIn"
        • "NetworkOut"
        • "StatusCheckFailed"
        • "StatusCheckFailed_Instance"
        • "StatusCheckFailed_System"
        • "BurstCapacityTime"
        • "BurstCapacityPercentage"
        • "MetadataNoToken"
      • metricData — (Array<map>)

        An array of objects that describe the metric data returned.

        • average — (Float)

          The average.

        • maximum — (Float)

          The maximum.

        • minimum — (Float)

          The minimum.

        • sampleCount — (Float)

          The sample count.

        • sum — (Float)

          The sum.

        • timestamp — (Date)

          The timestamp (1479816991.349).

        • unit — (String)

          The unit.

          Possible values include:
          • "Seconds"
          • "Microseconds"
          • "Milliseconds"
          • "Bytes"
          • "Kilobytes"
          • "Megabytes"
          • "Gigabytes"
          • "Terabytes"
          • "Bits"
          • "Kilobits"
          • "Megabits"
          • "Gigabits"
          • "Terabits"
          • "Percent"
          • "Count"
          • "Bytes/Second"
          • "Kilobytes/Second"
          • "Megabytes/Second"
          • "Gigabytes/Second"
          • "Terabytes/Second"
          • "Bits/Second"
          • "Kilobits/Second"
          • "Megabits/Second"
          • "Gigabits/Second"
          • "Terabits/Second"
          • "Count/Second"
          • "None"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getInstancePortStates operation

var params = {
  instanceName: 'STRING_VALUE' /* required */
};
lightsail.getInstancePortStates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance for which to return firewall port states.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • portStates — (Array<map>)

        An array of objects that describe the firewall port states for the specified instance.

        • fromPort — (Integer)

          The first port in a range of open ports on an instance.

          Allowed ports:

          • TCP and UDP - 0 to 65535

          • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

          • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

        • toPort — (Integer)

          The last port in a range of open ports on an instance.

          Allowed ports:

          • TCP and UDP - 0 to 65535

          • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

          • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

        • protocol — (String)

          The IP protocol name.

          The name can be one of the following:

          • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

          • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

          • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

          • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

          Possible values include:
          • "tcp"
          • "all"
          • "udp"
          • "icmp"
        • state — (String)

          Specifies whether the instance port is open or closed.

          Note: The port state for Lightsail instances is always open.
          Possible values include:
          • "open"
          • "closed"
        • cidrs — (Array<String>)

          The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

          Note: The ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

          For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

        • ipv6Cidrs — (Array<String>)

          The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.

          Note: The cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

          For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

        • cidrListAliases — (Array<String>)

          An alias that defines access for a preconfigured range of IP addresses.

          The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getInstances(params = {}, callback) ⇒ AWS.Request

Returns information about all Amazon Lightsail virtual private servers, or instances.

Service Reference:

Examples:

Calling the getInstances operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getInstances(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetInstances request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • instances — (Array<map>)

        An array of key-value pairs containing information about your instances.

        • name — (String)

          The name the user gave the instance (Amazon_Linux-1GB-Ohio-1).

        • arn — (String)

          The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the instance was created (1479734909.17) in Unix time format.

        • location — (map)

          The region name and Availability Zone where the instance is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The type of resource (usually Instance).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • blueprintId — (String)

          The blueprint ID (os_amlinux_2016_03).

        • blueprintName — (String)

          The friendly name of the blueprint (Amazon Linux).

        • bundleId — (String)

          The bundle for the instance (micro_1_0).

        • addOns — (Array<map>)

          An array of objects representing the add-ons enabled on the instance.

          • name — (String)

            The name of the add-on.

          • status — (String)

            The status of the add-on.

          • snapshotTimeOfDay — (String)

            The daily time when an automatic snapshot is created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • nextSnapshotTimeOfDay — (String)

            The next daily time an automatic snapshot will be created.

            The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

            The snapshot is automatically created between the time shown and up to 45 minutes after.

          • threshold — (String)

            The trigger threshold of the action.

            This add-on only applies to Lightsail for Research resources.

          • duration — (String)

            The amount of idle time in minutes after which your virtual computer will automatically stop.

            This add-on only applies to Lightsail for Research resources.

        • isStaticIp — (Boolean)

          A Boolean value indicating whether this instance has a static IP assigned to it.

        • privateIpAddress — (String)

          The private IP address of the instance.

        • publicIpAddress — (String)

          The public IP address of the instance.

        • ipv6Addresses — (Array<String>)

          The IPv6 addresses of the instance.

        • ipAddressType — (String)

          The IP address type of the instance.

          The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

          Possible values include:
          • "dualstack"
          • "ipv4"
        • hardware — (map)

          The size of the vCPU and the amount of RAM for the instance.

          • cpuCount — (Integer)

            The number of vCPUs the instance has.

          • disks — (Array<map>)

            The disks attached to the instance.

            • name — (String)

              The unique name of the disk.

            • arn — (String)

              The Amazon Resource Name (ARN) of the disk.

            • supportCode — (String)

              The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

            • createdAt — (Date)

              The date when the disk was created.

            • location — (map)

              The AWS Region and Availability Zone where the disk is located.

              • availabilityZone — (String)

                The Availability Zone. Follows the format us-east-2a (case-sensitive).

              • regionName — (String)

                The Amazon Web Services Region name.

                Possible values include:
                • "us-east-1"
                • "us-east-2"
                • "us-west-1"
                • "us-west-2"
                • "eu-west-1"
                • "eu-west-2"
                • "eu-west-3"
                • "eu-central-1"
                • "ca-central-1"
                • "ap-south-1"
                • "ap-southeast-1"
                • "ap-southeast-2"
                • "ap-northeast-1"
                • "ap-northeast-2"
                • "eu-north-1"
            • resourceType — (String)

              The Lightsail resource type (Disk).

              Possible values include:
              • "ContainerService"
              • "Instance"
              • "StaticIp"
              • "KeyPair"
              • "InstanceSnapshot"
              • "Domain"
              • "PeeredVpc"
              • "LoadBalancer"
              • "LoadBalancerTlsCertificate"
              • "Disk"
              • "DiskSnapshot"
              • "RelationalDatabase"
              • "RelationalDatabaseSnapshot"
              • "ExportSnapshotRecord"
              • "CloudFormationStackRecord"
              • "Alarm"
              • "ContactMethod"
              • "Distribution"
              • "Certificate"
              • "Bucket"
            • tags — (Array<map>)

              The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

              • key — (String)

                The key of the tag.

                Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

              • value — (String)

                The value of the tag.

                Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

            • addOns — (Array<map>)

              An array of objects representing the add-ons enabled on the disk.

              • name — (String)

                The name of the add-on.

              • status — (String)

                The status of the add-on.

              • snapshotTimeOfDay — (String)

                The daily time when an automatic snapshot is created.

                The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

                The snapshot is automatically created between the time shown and up to 45 minutes after.

              • nextSnapshotTimeOfDay — (String)

                The next daily time an automatic snapshot will be created.

                The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

                The snapshot is automatically created between the time shown and up to 45 minutes after.

              • threshold — (String)

                The trigger threshold of the action.

                This add-on only applies to Lightsail for Research resources.

              • duration — (String)

                The amount of idle time in minutes after which your virtual computer will automatically stop.

                This add-on only applies to Lightsail for Research resources.

            • sizeInGb — (Integer)

              The size of the disk in GB.

            • isSystemDisk — (Boolean)

              A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

            • iops — (Integer)

              The input/output operations per second (IOPS) of the disk.

            • path — (String)

              The disk path.

            • state — (String)

              Describes the status of the disk.

              Possible values include:
              • "pending"
              • "error"
              • "available"
              • "in-use"
              • "unknown"
            • attachedTo — (String)

              The resources to which the disk is attached.

            • isAttached — (Boolean)

              A Boolean value indicating whether the disk is attached.

            • attachmentState — (String)

              (Discontinued) The attachment state of the disk.

              Note: In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now discontinued, but still included in the response. Use isAttached instead.
            • gbInUse — (Integer)

              (Discontinued) The number of GB in use by the disk.

              Note: In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
            • autoMountStatus — (String)

              The status of automatically mounting a storage disk to a virtual computer.

              This parameter only applies to Lightsail for Research resources.

              Possible values include:
              • "Failed"
              • "Pending"
              • "Mounted"
              • "NotMounted"
          • ramSizeInGb — (Float)

            The amount of RAM in GB on the instance (1.0).

        • networking — (map)

          Information about the public ports and monthly data transfer rates for the instance.

          • monthlyTransfer — (map)

            The amount of data in GB allocated for monthly data transfers.

            • gbPerMonthAllocated — (Integer)

              The amount allocated per month (in GB).

          • ports — (Array<map>)

            An array of key-value pairs containing information about the ports on the instance.

            • fromPort — (Integer)

              The first port in a range of open ports on an instance.

              Allowed ports:

              • TCP and UDP - 0 to 65535

              • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

              • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

            • toPort — (Integer)

              The last port in a range of open ports on an instance.

              Allowed ports:

              • TCP and UDP - 0 to 65535

              • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

              • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

            • protocol — (String)

              The IP protocol name.

              The name can be one of the following:

              • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

              • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

              • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

              • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

              Possible values include:
              • "tcp"
              • "all"
              • "udp"
              • "icmp"
            • accessFrom — (String)

              The location from which access is allowed. For example, Anywhere (0.0.0.0/0), or Custom if a specific IP address or range of IP addresses is allowed.

            • accessType — (String)

              The type of access (Public or Private).

              Possible values include:
              • "Public"
              • "Private"
            • commonName — (String)

              The common name of the port information.

            • accessDirection — (String)

              The access direction (inbound or outbound).

              Note: Lightsail currently supports only inbound access direction.
              Possible values include:
              • "inbound"
              • "outbound"
            • cidrs — (Array<String>)

              The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

              Note: The ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

              For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

            • ipv6Cidrs — (Array<String>)

              The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.

              Note: The cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

              For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

            • cidrListAliases — (Array<String>)

              An alias that defines access for a preconfigured range of IP addresses.

              The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

        • state — (map)

          The status code and the state (running) for the instance.

          • code — (Integer)

            The status code for the instance.

          • name — (String)

            The state of the instance (running or pending).

        • username — (String)

          The user name for connecting to the instance (ec2-user).

        • sshKeyName — (String)

          The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).

        • metadataOptions — (map)

          The metadata options for the Amazon Lightsail instance.

          • state — (String)

            The state of the metadata option changes.

            The following states are possible:

            • pending - The metadata options are being updated. The instance is not yet ready to process metadata traffic with the new selection.

            • applied - The metadata options have been successfully applied to the instance.

            Possible values include:
            • "pending"
            • "applied"
          • httpTokens — (String)

            The state of token usage for your instance metadata requests.

            If the state is optional, you can choose whether to retrieve instance metadata with a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0 role credentials are returned.

            If the state is required, you must send a signed token header with all instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The version 1.0 credentials are not available.

            Not all instance blueprints in Lightsail support version 2.0 credentials. Use the MetadataNoToken instance metric to track the number of calls to the instance metadata service that are using version 1.0 credentials. For more information, see Viewing instance metrics in Amazon Lightsail in the Amazon Lightsail Developer Guide.

            Possible values include:
            • "optional"
            • "required"
          • httpEndpoint — (String)

            Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.

            If the value is disabled, you cannot access your instance metadata.

            Possible values include:
            • "disabled"
            • "enabled"
          • httpPutResponseHopLimit — (Integer)

            The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the instance metadata requests can travel farther.

          • httpProtocolIpv6 — (String)

            Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.

            Possible values include:
            • "disabled"
            • "enabled"
      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetInstances request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getInstanceSnapshot(params = {}, callback) ⇒ AWS.Request

Returns information about a specific instance snapshot.

Service Reference:

Examples:

Calling the getInstanceSnapshot operation

var params = {
  instanceSnapshotName: 'STRING_VALUE' /* required */
};
lightsail.getInstanceSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceSnapshotName — (String)

      The name of the snapshot for which you are requesting information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • instanceSnapshot — (map)

        An array of key-value pairs containing information about the results of your get instance snapshot request.

        • name — (String)

          The name of the snapshot.

        • arn — (String)

          The Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the snapshot was created (1479907467.024).

        • location — (map)

          The region name and Availability Zone where you created the snapshot.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The type of resource (usually InstanceSnapshot).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • state — (String)

          The state the snapshot is in.

          Possible values include:
          • "pending"
          • "error"
          • "available"
        • progress — (String)

          The progress of the snapshot.

          Note: This is populated only for disk snapshots, and is null for instance snapshots.
        • fromAttachedDisks — (Array<map>)

          An array of disk objects containing information about all block storage disks.

          • name — (String)

            The unique name of the disk.

          • arn — (String)

            The Amazon Resource Name (ARN) of the disk.

          • supportCode — (String)

            The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

          • createdAt — (Date)

            The date when the disk was created.

          • location — (map)

            The AWS Region and Availability Zone where the disk is located.

            • availabilityZone — (String)

              The Availability Zone. Follows the format us-east-2a (case-sensitive).

            • regionName — (String)

              The Amazon Web Services Region name.

              Possible values include:
              • "us-east-1"
              • "us-east-2"
              • "us-west-1"
              • "us-west-2"
              • "eu-west-1"
              • "eu-west-2"
              • "eu-west-3"
              • "eu-central-1"
              • "ca-central-1"
              • "ap-south-1"
              • "ap-southeast-1"
              • "ap-southeast-2"
              • "ap-northeast-1"
              • "ap-northeast-2"
              • "eu-north-1"
          • resourceType — (String)

            The Lightsail resource type (Disk).

            Possible values include:
            • "ContainerService"
            • "Instance"
            • "StaticIp"
            • "KeyPair"
            • "InstanceSnapshot"
            • "Domain"
            • "PeeredVpc"
            • "LoadBalancer"
            • "LoadBalancerTlsCertificate"
            • "Disk"
            • "DiskSnapshot"
            • "RelationalDatabase"
            • "RelationalDatabaseSnapshot"
            • "ExportSnapshotRecord"
            • "CloudFormationStackRecord"
            • "Alarm"
            • "ContactMethod"
            • "Distribution"
            • "Certificate"
            • "Bucket"
          • tags — (Array<map>)

            The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

            • key — (String)

              The key of the tag.

              Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

            • value — (String)

              The value of the tag.

              Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • addOns — (Array<map>)

            An array of objects representing the add-ons enabled on the disk.

            • name — (String)

              The name of the add-on.

            • status — (String)

              The status of the add-on.

            • snapshotTimeOfDay — (String)

              The daily time when an automatic snapshot is created.

              The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

              The snapshot is automatically created between the time shown and up to 45 minutes after.

            • nextSnapshotTimeOfDay — (String)

              The next daily time an automatic snapshot will be created.

              The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

              The snapshot is automatically created between the time shown and up to 45 minutes after.

            • threshold — (String)

              The trigger threshold of the action.

              This add-on only applies to Lightsail for Research resources.

            • duration — (String)

              The amount of idle time in minutes after which your virtual computer will automatically stop.

              This add-on only applies to Lightsail for Research resources.

          • sizeInGb — (Integer)

            The size of the disk in GB.

          • isSystemDisk — (Boolean)

            A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

          • iops — (Integer)

            The input/output operations per second (IOPS) of the disk.

          • path — (String)

            The disk path.

          • state — (String)

            Describes the status of the disk.

            Possible values include:
            • "pending"
            • "error"
            • "available"
            • "in-use"
            • "unknown"
          • attachedTo — (String)

            The resources to which the disk is attached.

          • isAttached — (Boolean)

            A Boolean value indicating whether the disk is attached.

          • attachmentState — (String)

            (Discontinued) The attachment state of the disk.

            Note: In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now discontinued, but still included in the response. Use isAttached instead.
          • gbInUse — (Integer)

            (Discontinued) The number of GB in use by the disk.

            Note: In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
          • autoMountStatus — (String)

            The status of automatically mounting a storage disk to a virtual computer.

            This parameter only applies to Lightsail for Research resources.

            Possible values include:
            • "Failed"
            • "Pending"
            • "Mounted"
            • "NotMounted"
        • fromInstanceName — (String)

          The instance from which the snapshot was created.

        • fromInstanceArn — (String)

          The Amazon Resource Name (ARN) of the instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

        • fromBlueprintId — (String)

          The blueprint ID from which you created the snapshot (os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.

        • fromBundleId — (String)

          The bundle ID from which you created the snapshot (micro_1_0).

        • isFromAutoSnapshot — (Boolean)

          A Boolean value indicating whether the snapshot was created from an automatic snapshot.

        • sizeInGb — (Integer)

          The size in GB of the SSD.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getInstanceSnapshots(params = {}, callback) ⇒ AWS.Request

Returns all instance snapshots for the user's account.

Service Reference:

Examples:

Calling the getInstanceSnapshots operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getInstanceSnapshots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetInstanceSnapshots request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • instanceSnapshots — (Array<map>)

        An array of key-value pairs containing information about the results of your get instance snapshots request.

        • name — (String)

          The name of the snapshot.

        • arn — (String)

          The Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the snapshot was created (1479907467.024).

        • location — (map)

          The region name and Availability Zone where you created the snapshot.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The type of resource (usually InstanceSnapshot).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • state — (String)

          The state the snapshot is in.

          Possible values include:
          • "pending"
          • "error"
          • "available"
        • progress — (String)

          The progress of the snapshot.

          Note: This is populated only for disk snapshots, and is null for instance snapshots.
        • fromAttachedDisks — (Array<map>)

          An array of disk objects containing information about all block storage disks.

          • name — (String)

            The unique name of the disk.

          • arn — (String)

            The Amazon Resource Name (ARN) of the disk.

          • supportCode — (String)

            The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

          • createdAt — (Date)

            The date when the disk was created.

          • location — (map)

            The AWS Region and Availability Zone where the disk is located.

            • availabilityZone — (String)

              The Availability Zone. Follows the format us-east-2a (case-sensitive).

            • regionName — (String)

              The Amazon Web Services Region name.

              Possible values include:
              • "us-east-1"
              • "us-east-2"
              • "us-west-1"
              • "us-west-2"
              • "eu-west-1"
              • "eu-west-2"
              • "eu-west-3"
              • "eu-central-1"
              • "ca-central-1"
              • "ap-south-1"
              • "ap-southeast-1"
              • "ap-southeast-2"
              • "ap-northeast-1"
              • "ap-northeast-2"
              • "eu-north-1"
          • resourceType — (String)

            The Lightsail resource type (Disk).

            Possible values include:
            • "ContainerService"
            • "Instance"
            • "StaticIp"
            • "KeyPair"
            • "InstanceSnapshot"
            • "Domain"
            • "PeeredVpc"
            • "LoadBalancer"
            • "LoadBalancerTlsCertificate"
            • "Disk"
            • "DiskSnapshot"
            • "RelationalDatabase"
            • "RelationalDatabaseSnapshot"
            • "ExportSnapshotRecord"
            • "CloudFormationStackRecord"
            • "Alarm"
            • "ContactMethod"
            • "Distribution"
            • "Certificate"
            • "Bucket"
          • tags — (Array<map>)

            The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

            • key — (String)

              The key of the tag.

              Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

            • value — (String)

              The value of the tag.

              Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • addOns — (Array<map>)

            An array of objects representing the add-ons enabled on the disk.

            • name — (String)

              The name of the add-on.

            • status — (String)

              The status of the add-on.

            • snapshotTimeOfDay — (String)

              The daily time when an automatic snapshot is created.

              The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

              The snapshot is automatically created between the time shown and up to 45 minutes after.

            • nextSnapshotTimeOfDay — (String)

              The next daily time an automatic snapshot will be created.

              The time shown is in HH:00 format, and in Coordinated Universal Time (UTC).

              The snapshot is automatically created between the time shown and up to 45 minutes after.

            • threshold — (String)

              The trigger threshold of the action.

              This add-on only applies to Lightsail for Research resources.

            • duration — (String)

              The amount of idle time in minutes after which your virtual computer will automatically stop.

              This add-on only applies to Lightsail for Research resources.

          • sizeInGb — (Integer)

            The size of the disk in GB.

          • isSystemDisk — (Boolean)

            A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

          • iops — (Integer)

            The input/output operations per second (IOPS) of the disk.

          • path — (String)

            The disk path.

          • state — (String)

            Describes the status of the disk.

            Possible values include:
            • "pending"
            • "error"
            • "available"
            • "in-use"
            • "unknown"
          • attachedTo — (String)

            The resources to which the disk is attached.

          • isAttached — (Boolean)

            A Boolean value indicating whether the disk is attached.

          • attachmentState — (String)

            (Discontinued) The attachment state of the disk.

            Note: In releases prior to November 14, 2017, this parameter returned attached for system disks in the API response. It is now discontinued, but still included in the response. Use isAttached instead.
          • gbInUse — (Integer)

            (Discontinued) The number of GB in use by the disk.

            Note: In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.
          • autoMountStatus — (String)

            The status of automatically mounting a storage disk to a virtual computer.

            This parameter only applies to Lightsail for Research resources.

            Possible values include:
            • "Failed"
            • "Pending"
            • "Mounted"
            • "NotMounted"
        • fromInstanceName — (String)

          The instance from which the snapshot was created.

        • fromInstanceArn — (String)

          The Amazon Resource Name (ARN) of the instance from which the snapshot was created (arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

        • fromBlueprintId — (String)

          The blueprint ID from which you created the snapshot (os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.

        • fromBundleId — (String)

          The bundle ID from which you created the snapshot (micro_1_0).

        • isFromAutoSnapshot — (Boolean)

          A Boolean value indicating whether the snapshot was created from an automatic snapshot.

        • sizeInGb — (Integer)

          The size in GB of the SSD.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetInstanceSnapshots request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getInstanceState(params = {}, callback) ⇒ AWS.Request

Returns the state of a specific instance. Works on one instance at a time.

Service Reference:

Examples:

Calling the getInstanceState operation

var params = {
  instanceName: 'STRING_VALUE' /* required */
};
lightsail.getInstanceState(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance to get state information about.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • state — (map)

        The state of the instance.

        • code — (Integer)

          The status code for the instance.

        • name — (String)

          The state of the instance (running or pending).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getKeyPair(params = {}, callback) ⇒ AWS.Request

Returns information about a specific key pair.

Service Reference:

Examples:

Calling the getKeyPair operation

var params = {
  keyPairName: 'STRING_VALUE' /* required */
};
lightsail.getKeyPair(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • keyPairName — (String)

      The name of the key pair for which you are requesting information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • keyPair — (map)

        An array of key-value pairs containing information about the key pair.

        • name — (String)

          The friendly name of the SSH key pair.

        • arn — (String)

          The Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the key pair was created (1479816991.349).

        • location — (map)

          The region name and Availability Zone where the key pair was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (usually KeyPair).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • fingerprint — (String)

          The RSA fingerprint of the key pair.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getKeyPairs(params = {}, callback) ⇒ AWS.Request

Returns information about all key pairs in the user's account.

Service Reference:

Examples:

Calling the getKeyPairs operation

var params = {
  includeDefaultKeyPair: true || false,
  pageToken: 'STRING_VALUE'
};
lightsail.getKeyPairs(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetKeyPairs request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

    • includeDefaultKeyPair — (Boolean)

      A Boolean value that indicates whether to include the default key pair in the response of your request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • keyPairs — (Array<map>)

        An array of key-value pairs containing information about the key pairs.

        • name — (String)

          The friendly name of the SSH key pair.

        • arn — (String)

          The Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the key pair was created (1479816991.349).

        • location — (map)

          The region name and Availability Zone where the key pair was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (usually KeyPair).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • fingerprint — (String)

          The RSA fingerprint of the key pair.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetKeyPairs request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getLoadBalancer(params = {}, callback) ⇒ AWS.Request

Returns information about the specified Lightsail load balancer.

Service Reference:

Examples:

Calling the getLoadBalancer operation

var params = {
  loadBalancerName: 'STRING_VALUE' /* required */
};
lightsail.getLoadBalancer(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the load balancer.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • loadBalancer — (map)

        An object containing information about your load balancer.

        • name — (String)

          The name of the load balancer (my-load-balancer).

        • arn — (String)

          The Amazon Resource Name (ARN) of the load balancer.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when your load balancer was created.

        • location — (map)

          The AWS Region where your load balancer was created (us-east-2a). Lightsail automatically creates your load balancer across Availability Zones.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (LoadBalancer.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • dnsName — (String)

          The DNS name of your Lightsail load balancer.

        • state — (String)

          The status of your load balancer. Valid values are below.

          Possible values include:
          • "active"
          • "provisioning"
          • "active_impaired"
          • "failed"
          • "unknown"
        • protocol — (String)

          The protocol you have enabled for your load balancer. Valid values are below.

          You can't just have HTTP_HTTPS, but you can have just HTTP.

          Possible values include:
          • "HTTP_HTTPS"
          • "HTTP"
        • publicPorts — (Array<Integer>)

          An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.

        • healthCheckPath — (String)

          The path you specified to perform your health checks. If no path is specified, the load balancer tries to make a request to the default (root) page.

        • instancePort — (Integer)

          The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

        • instanceHealthSummary — (Array<map>)

          An array of InstanceHealthSummary objects describing the health of the load balancer.

          • instanceName — (String)

            The name of the Lightsail instance for which you are requesting health check data.

          • instanceHealth — (String)

            Describes the overall instance health. Valid values are below.

            Possible values include:
            • "initial"
            • "healthy"
            • "unhealthy"
            • "unused"
            • "draining"
            • "unavailable"
          • instanceHealthReason — (String)

            More information about the instance health. If the instanceHealth is healthy, then an instanceHealthReason value is not provided.

            If instanceHealth is initial, the instanceHealthReason value can be one of the following:

            • Lb.RegistrationInProgress - The target instance is in the process of being registered with the load balancer.

            • Lb.InitialHealthChecking - The Lightsail load balancer is still sending the target instance the minimum number of health checks required to determine its health status.

            If instanceHealth is unhealthy, the instanceHealthReason value can be one of the following:

            • Instance.ResponseCodeMismatch - The health checks did not return an expected HTTP code.

            • Instance.Timeout - The health check requests timed out.

            • Instance.FailedHealthChecks - The health checks failed because the connection to the target instance timed out, the target instance response was malformed, or the target instance failed the health check for an unknown reason.

            • Lb.InternalError - The health checks failed due to an internal error.

            If instanceHealth is unused, the instanceHealthReason value can be one of the following:

            • Instance.NotRegistered - The target instance is not registered with the target group.

            • Instance.NotInUse - The target group is not used by any load balancer, or the target instance is in an Availability Zone that is not enabled for its load balancer.

            • Instance.IpUnusable - The target IP address is reserved for use by a Lightsail load balancer.

            • Instance.InvalidState - The target is in the stopped or terminated state.

            If instanceHealth is draining, the instanceHealthReason value can be one of the following:

            • Instance.DeregistrationInProgress - The target instance is in the process of being deregistered and the deregistration delay period has not expired.

            Possible values include:
            • "Lb.RegistrationInProgress"
            • "Lb.InitialHealthChecking"
            • "Lb.InternalError"
            • "Instance.ResponseCodeMismatch"
            • "Instance.Timeout"
            • "Instance.FailedHealthChecks"
            • "Instance.NotRegistered"
            • "Instance.NotInUse"
            • "Instance.DeregistrationInProgress"
            • "Instance.InvalidState"
            • "Instance.IpUnusable"
        • tlsCertificateSummaries — (Array<map>)

          An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS certificates. For example, if true, the certificate is attached to the load balancer.

          • name — (String)

            The name of the SSL/TLS certificate.

          • isAttached — (Boolean)

            When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

        • configurationOptions — (map<String>)

          A string to string map of the configuration options for your load balancer. Valid values are listed below.

        • ipAddressType — (String)

          The IP address type of the load balancer.

          The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

          Possible values include:
          • "dualstack"
          • "ipv4"
        • httpsRedirectionEnabled — (Boolean)

          A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.

        • tlsPolicyName — (String)

          The name of the TLS security policy for the load balancer.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources.

Service Reference:

Examples:

Calling the getLoadBalancerMetricData operation

var params = {
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  loadBalancerName: 'STRING_VALUE', /* required */
  metricName: ClientTLSNegotiationErrorCount | HealthyHostCount | UnhealthyHostCount | HTTPCode_LB_4XX_Count | HTTPCode_LB_5XX_Count | HTTPCode_Instance_2XX_Count | HTTPCode_Instance_3XX_Count | HTTPCode_Instance_4XX_Count | HTTPCode_Instance_5XX_Count | InstanceResponseTime | RejectedConnectionCount | RequestCount, /* required */
  period: 'NUMBER_VALUE', /* required */
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  statistics: [ /* required */
    Minimum | Maximum | Sum | Average | SampleCount,
    /* more items */
  ],
  unit: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None /* required */
};
lightsail.getLoadBalancerMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the load balancer.

    • metricName — (String)

      The metric for which you want to return information.

      Valid load balancer metric names are listed below, along with the most useful statistics to include in your request, and the published unit value.

      • ClientTLSNegotiationErrorCount - The number of TLS connections initiated by the client that did not establish a session with the load balancer due to a TLS error generated by the load balancer. Possible causes include a mismatch of ciphers or protocols.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Count.

      • HealthyHostCount - The number of target instances that are considered healthy.

        Statistics: The most useful statistic are Average, Minimum, and Maximum.

        Unit: The published unit is Count.

      • HTTPCode_Instance_2XX_Count - The number of HTTP 2XX response codes generated by the target instances. This does not include any response codes generated by the load balancer.

        Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, and Average all return 1.

        Unit: The published unit is Count.

      • HTTPCode_Instance_3XX_Count - The number of HTTP 3XX response codes generated by the target instances. This does not include any response codes generated by the load balancer.

        Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, and Average all return 1.

        Unit: The published unit is Count.

      • HTTPCode_Instance_4XX_Count - The number of HTTP 4XX response codes generated by the target instances. This does not include any response codes generated by the load balancer.

        Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, and Average all return 1.

        Unit: The published unit is Count.

      • HTTPCode_Instance_5XX_Count - The number of HTTP 5XX response codes generated by the target instances. This does not include any response codes generated by the load balancer.

        Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, and Average all return 1.

        Unit: The published unit is Count.

      • HTTPCode_LB_4XX_Count - The number of HTTP 4XX client error codes that originated from the load balancer. Client errors are generated when requests are malformed or incomplete. These requests were not received by the target instance. This count does not include response codes generated by the target instances.

        Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, and Average all return 1.

        Unit: The published unit is Count.

      • HTTPCode_LB_5XX_Count - The number of HTTP 5XX server error codes that originated from the load balancer. This does not include any response codes generated by the target instance. This metric is reported if there are no healthy instances attached to the load balancer, or if the request rate exceeds the capacity of the instances (spillover) or the load balancer.

        Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, and Average all return 1.

        Unit: The published unit is Count.

      • InstanceResponseTime - The time elapsed, in seconds, after the request leaves the load balancer until a response from the target instance is received.

        Statistics: The most useful statistic is Average.

        Unit: The published unit is Seconds.

      • RejectedConnectionCount - The number of connections that were rejected because the load balancer had reached its maximum number of connections.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Count.

      • RequestCount - The number of requests processed over IPv4. This count includes only the requests with a response generated by a target instance of the load balancer.

        Statistics: The most useful statistic is Sum. Note that Minimum, Maximum, and Average all return 1.

        Unit: The published unit is Count.

      • UnhealthyHostCount - The number of target instances that are considered unhealthy.

        Statistics: The most useful statistic are Average, Minimum, and Maximum.

        Unit: The published unit is Count.

      Possible values include:
      • "ClientTLSNegotiationErrorCount"
      • "HealthyHostCount"
      • "UnhealthyHostCount"
      • "HTTPCode_LB_4XX_Count"
      • "HTTPCode_LB_5XX_Count"
      • "HTTPCode_Instance_2XX_Count"
      • "HTTPCode_Instance_3XX_Count"
      • "HTTPCode_Instance_4XX_Count"
      • "HTTPCode_Instance_5XX_Count"
      • "InstanceResponseTime"
      • "RejectedConnectionCount"
      • "RequestCount"
    • period — (Integer)

      The granularity, in seconds, of the returned data points.

    • startTime — (Date)

      The start time of the period.

    • endTime — (Date)

      The end time of the period.

    • unit — (String)

      The unit for the metric data request. Valid units depend on the metric data being requested. For the valid units with each available metric, see the metricName parameter.

      Possible values include:
      • "Seconds"
      • "Microseconds"
      • "Milliseconds"
      • "Bytes"
      • "Kilobytes"
      • "Megabytes"
      • "Gigabytes"
      • "Terabytes"
      • "Bits"
      • "Kilobits"
      • "Megabits"
      • "Gigabits"
      • "Terabits"
      • "Percent"
      • "Count"
      • "Bytes/Second"
      • "Kilobytes/Second"
      • "Megabytes/Second"
      • "Gigabytes/Second"
      • "Terabytes/Second"
      • "Bits/Second"
      • "Kilobits/Second"
      • "Megabits/Second"
      • "Gigabits/Second"
      • "Terabits/Second"
      • "Count/Second"
      • "None"
    • statistics — (Array<String>)

      The statistic for the metric.

      The following statistics are available:

      • Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application.

      • Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.

      • Sum - All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric.

      • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources.

      • SampleCount - The count, or number, of data points used for the statistical calculation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • metricName — (String)

        The name of the metric returned.

        Possible values include:
        • "ClientTLSNegotiationErrorCount"
        • "HealthyHostCount"
        • "UnhealthyHostCount"
        • "HTTPCode_LB_4XX_Count"
        • "HTTPCode_LB_5XX_Count"
        • "HTTPCode_Instance_2XX_Count"
        • "HTTPCode_Instance_3XX_Count"
        • "HTTPCode_Instance_4XX_Count"
        • "HTTPCode_Instance_5XX_Count"
        • "InstanceResponseTime"
        • "RejectedConnectionCount"
        • "RequestCount"
      • metricData — (Array<map>)

        An array of objects that describe the metric data returned.

        • average — (Float)

          The average.

        • maximum — (Float)

          The maximum.

        • minimum — (Float)

          The minimum.

        • sampleCount — (Float)

          The sample count.

        • sum — (Float)

          The sum.

        • timestamp — (Date)

          The timestamp (1479816991.349).

        • unit — (String)

          The unit.

          Possible values include:
          • "Seconds"
          • "Microseconds"
          • "Milliseconds"
          • "Bytes"
          • "Kilobytes"
          • "Megabytes"
          • "Gigabytes"
          • "Terabytes"
          • "Bits"
          • "Kilobits"
          • "Megabits"
          • "Gigabits"
          • "Terabits"
          • "Percent"
          • "Count"
          • "Bytes/Second"
          • "Kilobytes/Second"
          • "Megabytes/Second"
          • "Gigabytes/Second"
          • "Terabytes/Second"
          • "Bits/Second"
          • "Kilobits/Second"
          • "Megabits/Second"
          • "Gigabits/Second"
          • "Terabits/Second"
          • "Count/Second"
          • "None"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getLoadBalancers(params = {}, callback) ⇒ AWS.Request

Returns information about all load balancers in an account.

Service Reference:

Examples:

Calling the getLoadBalancers operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getLoadBalancers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetLoadBalancers request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • loadBalancers — (Array<map>)

        An array of LoadBalancer objects describing your load balancers.

        • name — (String)

          The name of the load balancer (my-load-balancer).

        • arn — (String)

          The Amazon Resource Name (ARN) of the load balancer.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The date when your load balancer was created.

        • location — (map)

          The AWS Region where your load balancer was created (us-east-2a). Lightsail automatically creates your load balancer across Availability Zones.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (LoadBalancer.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • dnsName — (String)

          The DNS name of your Lightsail load balancer.

        • state — (String)

          The status of your load balancer. Valid values are below.

          Possible values include:
          • "active"
          • "provisioning"
          • "active_impaired"
          • "failed"
          • "unknown"
        • protocol — (String)

          The protocol you have enabled for your load balancer. Valid values are below.

          You can't just have HTTP_HTTPS, but you can have just HTTP.

          Possible values include:
          • "HTTP_HTTPS"
          • "HTTP"
        • publicPorts — (Array<Integer>)

          An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.

        • healthCheckPath — (String)

          The path you specified to perform your health checks. If no path is specified, the load balancer tries to make a request to the default (root) page.

        • instancePort — (Integer)

          The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.

        • instanceHealthSummary — (Array<map>)

          An array of InstanceHealthSummary objects describing the health of the load balancer.

          • instanceName — (String)

            The name of the Lightsail instance for which you are requesting health check data.

          • instanceHealth — (String)

            Describes the overall instance health. Valid values are below.

            Possible values include:
            • "initial"
            • "healthy"
            • "unhealthy"
            • "unused"
            • "draining"
            • "unavailable"
          • instanceHealthReason — (String)

            More information about the instance health. If the instanceHealth is healthy, then an instanceHealthReason value is not provided.

            If instanceHealth is initial, the instanceHealthReason value can be one of the following:

            • Lb.RegistrationInProgress - The target instance is in the process of being registered with the load balancer.

            • Lb.InitialHealthChecking - The Lightsail load balancer is still sending the target instance the minimum number of health checks required to determine its health status.

            If instanceHealth is unhealthy, the instanceHealthReason value can be one of the following:

            • Instance.ResponseCodeMismatch - The health checks did not return an expected HTTP code.

            • Instance.Timeout - The health check requests timed out.

            • Instance.FailedHealthChecks - The health checks failed because the connection to the target instance timed out, the target instance response was malformed, or the target instance failed the health check for an unknown reason.

            • Lb.InternalError - The health checks failed due to an internal error.

            If instanceHealth is unused, the instanceHealthReason value can be one of the following:

            • Instance.NotRegistered - The target instance is not registered with the target group.

            • Instance.NotInUse - The target group is not used by any load balancer, or the target instance is in an Availability Zone that is not enabled for its load balancer.

            • Instance.IpUnusable - The target IP address is reserved for use by a Lightsail load balancer.

            • Instance.InvalidState - The target is in the stopped or terminated state.

            If instanceHealth is draining, the instanceHealthReason value can be one of the following:

            • Instance.DeregistrationInProgress - The target instance is in the process of being deregistered and the deregistration delay period has not expired.

            Possible values include:
            • "Lb.RegistrationInProgress"
            • "Lb.InitialHealthChecking"
            • "Lb.InternalError"
            • "Instance.ResponseCodeMismatch"
            • "Instance.Timeout"
            • "Instance.FailedHealthChecks"
            • "Instance.NotRegistered"
            • "Instance.NotInUse"
            • "Instance.DeregistrationInProgress"
            • "Instance.InvalidState"
            • "Instance.IpUnusable"
        • tlsCertificateSummaries — (Array<map>)

          An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS certificates. For example, if true, the certificate is attached to the load balancer.

          • name — (String)

            The name of the SSL/TLS certificate.

          • isAttached — (Boolean)

            When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

        • configurationOptions — (map<String>)

          A string to string map of the configuration options for your load balancer. Valid values are listed below.

        • ipAddressType — (String)

          The IP address type of the load balancer.

          The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

          Possible values include:
          • "dualstack"
          • "ipv4"
        • httpsRedirectionEnabled — (Boolean)

          A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.

        • tlsPolicyName — (String)

          The name of the TLS security policy for the load balancer.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetLoadBalancers request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. One is active and the other is inactive.

Service Reference:

Examples:

Calling the getLoadBalancerTlsCertificates operation

var params = {
  loadBalancerName: 'STRING_VALUE' /* required */
};
lightsail.getLoadBalancerTlsCertificates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the load balancer you associated with your SSL/TLS certificate.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • tlsCertificates — (Array<map>)

        An array of LoadBalancerTlsCertificate objects describing your SSL/TLS certificates.

        • name — (String)

          The name of the SSL/TLS certificate (my-certificate).

        • arn — (String)

          The Amazon Resource Name (ARN) of the SSL/TLS certificate.

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The time when you created your SSL/TLS certificate.

        • location — (map)

          The Amazon Web Services Region and Availability Zone where you created your certificate.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (LoadBalancerTlsCertificate).

          • Instance - A Lightsail instance (a virtual private server)

          • StaticIp - A static IP address

          • KeyPair - The key pair used to connect to a Lightsail instance

          • InstanceSnapshot - A Lightsail instance snapshot

          • Domain - A DNS zone

          • PeeredVpc - A peered VPC

          • LoadBalancer - A Lightsail load balancer

          • LoadBalancerTlsCertificate - An SSL/TLS certificate associated with a Lightsail load balancer

          • Disk - A Lightsail block storage disk

          • DiskSnapshot - A block storage disk snapshot

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • loadBalancerName — (String)

          The load balancer name where your SSL/TLS certificate is attached.

        • isAttached — (Boolean)

          When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

        • status — (String)

          The validation status of the SSL/TLS certificate. Valid values are below.

          Possible values include:
          • "PENDING_VALIDATION"
          • "ISSUED"
          • "INACTIVE"
          • "EXPIRED"
          • "VALIDATION_TIMED_OUT"
          • "REVOKED"
          • "FAILED"
          • "UNKNOWN"
        • domainName — (String)

          The domain name for your SSL/TLS certificate.

        • domainValidationRecords — (Array<map>)

          An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.

          • name — (String)

            A fully qualified domain name in the certificate. For example, example.com.

          • type — (String)

            The type of validation record. For example, CNAME for domain validation.

          • value — (String)

            The value for that type.

          • validationStatus — (String)

            The validation status. Valid values are listed below.

            Possible values include:
            • "PENDING_VALIDATION"
            • "FAILED"
            • "SUCCESS"
          • domainName — (String)

            The domain name against which your SSL/TLS certificate was validated.

          • dnsRecordCreationState — (map)

            An object that describes the state of the canonical name (CNAME) records that are automatically added by Lightsail to the DNS of a domain to validate domain ownership.

            • code — (String)

              The status code for the automated DNS record creation.

              Following are the possible values:

              • SUCCEEDED - The validation records were successfully added.

              • STARTED - The automatic DNS record creation has started.

              • FAILED - The validation record addition failed.

              Possible values include:
              • "SUCCEEDED"
              • "STARTED"
              • "FAILED"
            • message — (String)

              The message that describes the reason for the status code.

        • failureReason — (String)

          The validation failure reason, if any, of the certificate.

          The following failure reasons are possible:

          • NO_AVAILABLE_CONTACTS - This failure applies to email validation, which is not available for Lightsail certificates.

          • ADDITIONAL_VERIFICATION_REQUIRED - Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.

            Note: You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
          • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.

            If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.

            If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.

          • INVALID_PUBLIC_DOMAIN - One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate for example.invalidpublicdomain because invalidpublicdomain is not a valid top-level domain.

          • OTHER - Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.

          Possible values include:
          • "NO_AVAILABLE_CONTACTS"
          • "ADDITIONAL_VERIFICATION_REQUIRED"
          • "DOMAIN_NOT_ALLOWED"
          • "INVALID_PUBLIC_DOMAIN"
          • "OTHER"
        • issuedAt — (Date)

          The time when the SSL/TLS certificate was issued.

        • issuer — (String)

          The issuer of the certificate.

        • keyAlgorithm — (String)

          The algorithm used to generate the key pair (the public and private key).

        • notAfter — (Date)

          The timestamp when the SSL/TLS certificate expires.

        • notBefore — (Date)

          The timestamp when the SSL/TLS certificate is first valid.

        • renewalSummary — (map)

          An object that describes the status of the certificate renewal managed by Lightsail.

          • renewalStatus — (String)

            The renewal status of the certificate.

            The following renewal status are possible:

            • PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names of the certificate. No further action is required.

            • PendingValidation - Lightsail couldn't automatically validate one or more domain names of the certificate. You must take action to validate these domain names or the certificate won't be renewed. Check to make sure your certificate's domain validation records exist in your domain's DNS, and that your certificate remains in use.

            • Success - All domain names in the certificate are validated, and Lightsail renewed the certificate. No further action is required.

            • Failed - One or more domain names were not validated before the certificate expired, and Lightsail did not renew the certificate. You can request a new certificate using the CreateCertificate action.

            Possible values include:
            • "PENDING_AUTO_RENEWAL"
            • "PENDING_VALIDATION"
            • "SUCCESS"
            • "FAILED"
          • domainValidationOptions — (Array<map>)

            Contains information about the validation of each domain name in the certificate, as it pertains to Lightsail's managed renewal. This is different from the initial validation that occurs as a result of the RequestCertificate request.

            • domainName — (String)

              The fully qualified domain name in the certificate request.

            • validationStatus — (String)

              The status of the domain validation. Valid values are listed below.

              Possible values include:
              • "PENDING_VALIDATION"
              • "FAILED"
              • "SUCCESS"
        • revocationReason — (String)

          The reason the certificate was revoked. This value is present only when the certificate status is REVOKED.

          Possible values include:
          • "UNSPECIFIED"
          • "KEY_COMPROMISE"
          • "CA_COMPROMISE"
          • "AFFILIATION_CHANGED"
          • "SUPERCEDED"
          • "CESSATION_OF_OPERATION"
          • "CERTIFICATE_HOLD"
          • "REMOVE_FROM_CRL"
          • "PRIVILEGE_WITHDRAWN"
          • "A_A_COMPROMISE"
        • revokedAt — (Date)

          The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED.

        • serial — (String)

          The serial number of the certificate.

        • signatureAlgorithm — (String)

          The algorithm that was used to sign the certificate.

        • subject — (String)

          The name of the entity that is associated with the public key contained in the certificate.

        • subjectAlternativeNames — (Array<String>)

          An array of strings that specify the alternate domains (example2.com) and subdomains (blog.example.com) for the certificate.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the getLoadBalancerTlsPolicies operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getLoadBalancerTlsPolicies(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetLoadBalancerTlsPolicies request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • tlsPolicies — (Array<map>)

        An array of objects that describe the TLS security policies that are available.

        • name — (String)

          The name of the TLS security policy.

        • isDefault — (Boolean)

          A Boolean value that indicates whether the TLS security policy is the default.

        • description — (String)

          The description of the TLS security policy.

        • protocols — (Array<String>)

          The protocols used in a given TLS security policy.

        • ciphers — (Array<String>)

          The ciphers used by the TLS security policy.

          The ciphers are listed in order of preference.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetLoadBalancerTlsPolicies request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getOperation(params = {}, callback) ⇒ AWS.Request

Returns information about a specific operation. Operations include events such as when you create an instance, allocate a static IP, attach a static IP, and so on.

Service Reference:

Examples:

Calling the getOperation operation

var params = {
  operationId: 'STRING_VALUE' /* required */
};
lightsail.getOperation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • operationId — (String)

      A GUID used to identify the operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getOperations(params = {}, callback) ⇒ AWS.Request

Returns information about all operations.

Results are returned from oldest to newest, up to a maximum of 200. Results can be paged by making each subsequent call to GetOperations use the maximum (last) statusChangedAt value from the previous request.

Service Reference:

Examples:

Calling the getOperations operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getOperations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetOperations request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetOperations request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getOperationsForResource(params = {}, callback) ⇒ AWS.Request

Gets operations for a specific resource (an instance or a static IP).

Service Reference:

Examples:

Calling the getOperationsForResource operation

var params = {
  resourceName: 'STRING_VALUE', /* required */
  pageToken: 'STRING_VALUE'
};
lightsail.getOperationsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the resource for which you are requesting information.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetOperationsForResource request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

      • nextPageCount — (String)

        (Discontinued) Returns the number of pages of results that remain.

        Note: In releases prior to June 12, 2017, this parameter returned null by the API. It is now discontinued, and the API returns the next page token parameter instead.
      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetOperationsForResource request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRegions(params = {}, callback) ⇒ AWS.Request

Returns a list of all valid regions for Amazon Lightsail. Use the include availability zones parameter to also return the Availability Zones in a region.

Service Reference:

Examples:

Calling the getRegions operation

var params = {
  includeAvailabilityZones: true || false,
  includeRelationalDatabaseAvailabilityZones: true || false
};
lightsail.getRegions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • includeAvailabilityZones — (Boolean)

      A Boolean value indicating whether to also include Availability Zones in your get regions request. Availability Zones are indicated with a letter: us-east-2a.

    • includeRelationalDatabaseAvailabilityZones — (Boolean)

      A Boolean value indicating whether to also include Availability Zones for databases in your get regions request. Availability Zones are indicated with a letter (us-east-2a).

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • regions — (Array<map>)

        An array of key-value pairs containing information about your get regions request.

        • continentCode — (String)

          The continent code (NA, meaning North America).

        • description — (String)

          The description of the Amazon Web Services Region (This region is recommended to serve users in the eastern United States and eastern Canada).

        • displayName — (String)

          The display name (Ohio).

        • name — (String)

          The region name (us-east-2).

          Possible values include:
          • "us-east-1"
          • "us-east-2"
          • "us-west-1"
          • "us-west-2"
          • "eu-west-1"
          • "eu-west-2"
          • "eu-west-3"
          • "eu-central-1"
          • "ca-central-1"
          • "ap-south-1"
          • "ap-southeast-1"
          • "ap-southeast-2"
          • "ap-northeast-1"
          • "ap-northeast-2"
          • "eu-north-1"
        • availabilityZones — (Array<map>)

          The Availability Zones. Follows the format us-east-2a (case-sensitive).

          • zoneName — (String)

            The name of the Availability Zone. The format is us-east-2a (case-sensitive).

          • state — (String)

            The state of the Availability Zone.

        • relationalDatabaseAvailabilityZones — (Array<map>)

          The Availability Zones for databases. Follows the format us-east-2a (case-sensitive).

          • zoneName — (String)

            The name of the Availability Zone. The format is us-east-2a (case-sensitive).

          • state — (String)

            The state of the Availability Zone.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabase(params = {}, callback) ⇒ AWS.Request

Returns information about a specific database in Amazon Lightsail.

Service Reference:

Examples:

Calling the getRelationalDatabase operation

var params = {
  relationalDatabaseName: 'STRING_VALUE' /* required */
};
lightsail.getRelationalDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of the database that you are looking up.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • relationalDatabase — (map)

        An object describing the specified database.

        • name — (String)

          The unique name of the database resource in Lightsail.

        • arn — (String)

          The Amazon Resource Name (ARN) of the database.

        • supportCode — (String)

          The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the database was created. Formatted in Unix time.

        • location — (map)

          The Region name and Availability Zone where the database is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type for the database (for example, RelationalDatabase).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • relationalDatabaseBlueprintId — (String)

          The blueprint ID for the database. A blueprint describes the major engine version of a database.

        • relationalDatabaseBundleId — (String)

          The bundle ID for the database. A bundle describes the performance specifications for your database.

        • masterDatabaseName — (String)

          The name of the master database created when the Lightsail database resource is created.

        • hardware — (map)

          Describes the hardware of the database.

          • cpuCount — (Integer)

            The number of vCPUs for the database.

          • diskSizeInGb — (Integer)

            The size of the disk for the database.

          • ramSizeInGb — (Float)

            The amount of RAM in GB for the database.

        • state — (String)

          Describes the current state of the database.

        • secondaryAvailabilityZone — (String)

          Describes the secondary Availability Zone of a high availability database.

          The secondary database is used for failover support of a high availability database.

        • backupRetentionEnabled — (Boolean)

          A Boolean value indicating whether automated backup retention is enabled for the database.

        • pendingModifiedValues — (map)

          Describes pending database value modifications.

          • masterUserPassword — (String)

            The password for the master user of the database.

          • engineVersion — (String)

            The database engine version.

          • backupRetentionEnabled — (Boolean)

            A Boolean value indicating whether automated backup retention is enabled.

        • engine — (String)

          The database software (for example, MySQL).

        • engineVersion — (String)

          The database engine version (for example, 5.7.23).

        • latestRestorableTime — (Date)

          The latest point in time to which the database can be restored. Formatted in Unix time.

        • masterUsername — (String)

          The master user name of the database.

        • parameterApplyStatus — (String)

          The status of parameter updates for the database.

        • preferredBackupWindow — (String)

          The daily time range during which automated backups are created for the database (for example, 16:00-16:30).

        • preferredMaintenanceWindow — (String)

          The weekly time range during which system maintenance can occur on the database.

          In the format ddd:hh24:mi-ddd:hh24:mi. For example, Tue:17:00-Tue:17:30.

        • publiclyAccessible — (Boolean)

          A Boolean value indicating whether the database is publicly accessible.

        • masterEndpoint — (map)

          The master endpoint for the database.

          • port — (Integer)

            Specifies the port that the database is listening on.

          • address — (String)

            Specifies the DNS address of the database.

        • pendingMaintenanceActions — (Array<map>)

          Describes the pending maintenance actions for the database.

          • action — (String)

            The type of pending database maintenance action.

          • description — (String)

            Additional detail about the pending database maintenance action.

          • currentApplyDate — (Date)

            The effective date of the pending database maintenance action.

        • caCertificateIdentifier — (String)

          The certificate associated with the database.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabaseBlueprints(params = {}, callback) ⇒ AWS.Request

Returns a list of available database blueprints in Amazon Lightsail. A blueprint describes the major engine version of a database.

You can use a blueprint ID to create a new database that runs a specific database engine.

Service Reference:

Examples:

Calling the getRelationalDatabaseBlueprints operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getRelationalDatabaseBlueprints(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetRelationalDatabaseBlueprints request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • blueprints — (Array<map>)

        An object describing the result of your get relational database blueprints request.

        • blueprintId — (String)

          The ID for the database blueprint.

        • engine — (String)

          The database software of the database blueprint (for example, MySQL).

          Possible values include:
          • "mysql"
        • engineVersion — (String)

          The database engine version for the database blueprint (for example, 5.7.23).

        • engineDescription — (String)

          The description of the database engine for the database blueprint.

        • engineVersionDescription — (String)

          The description of the database engine version for the database blueprint.

        • isEngineDefault — (Boolean)

          A Boolean value indicating whether the engine version is the default for the database blueprint.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetRelationalDatabaseBlueprints request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabaseBundles(params = {}, callback) ⇒ AWS.Request

Returns the list of bundles that are available in Amazon Lightsail. A bundle describes the performance specifications for a database.

You can use a bundle ID to create a new database with explicit performance specifications.

Service Reference:

Examples:

Calling the getRelationalDatabaseBundles operation

var params = {
  includeInactive: true || false,
  pageToken: 'STRING_VALUE'
};
lightsail.getRelationalDatabaseBundles(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetRelationalDatabaseBundles request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

    • includeInactive — (Boolean)

      A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • bundles — (Array<map>)

        An object describing the result of your get relational database bundles request.

        • bundleId — (String)

          The ID for the database bundle.

        • name — (String)

          The name for the database bundle.

        • price — (Float)

          The cost of the database bundle in US currency.

        • ramSizeInGb — (Float)

          The amount of RAM in GB (for example, 2.0) for the database bundle.

        • diskSizeInGb — (Integer)

          The size of the disk for the database bundle.

        • transferPerMonthInGb — (Integer)

          The data transfer rate per month in GB for the database bundle.

        • cpuCount — (Integer)

          The number of virtual CPUs (vCPUs) for the database bundle.

        • isEncrypted — (Boolean)

          A Boolean value indicating whether the database bundle is encrypted.

        • isActive — (Boolean)

          A Boolean value indicating whether the database bundle is active.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetRelationalDatabaseBundles request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabaseEvents(params = {}, callback) ⇒ AWS.Request

Returns a list of events for a specific database in Amazon Lightsail.

Service Reference:

Examples:

Calling the getRelationalDatabaseEvents operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  durationInMinutes: 'NUMBER_VALUE',
  pageToken: 'STRING_VALUE'
};
lightsail.getRelationalDatabaseEvents(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of the database from which to get events.

    • durationInMinutes — (Integer)

      The number of minutes in the past from which to retrieve events. For example, to get all events from the past 2 hours, enter 120.

      Default: 60

      The minimum is 1 and the maximum is 14 days (20160 minutes).

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetRelationalDatabaseEvents request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • relationalDatabaseEvents — (Array<map>)

        An object describing the result of your get relational database events request.

        • resource — (String)

          The database that the database event relates to.

        • createdAt — (Date)

          The timestamp when the database event was created.

        • message — (String)

          The message of the database event.

        • eventCategories — (Array<String>)

          The category that the database event belongs to.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetRelationalDatabaseEvents request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabaseLogEvents(params = {}, callback) ⇒ AWS.Request

Returns a list of log events for a database in Amazon Lightsail.

Service Reference:

Examples:

Calling the getRelationalDatabaseLogEvents operation

var params = {
  logStreamName: 'STRING_VALUE', /* required */
  relationalDatabaseName: 'STRING_VALUE', /* required */
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789,
  pageToken: 'STRING_VALUE',
  startFromHead: true || false,
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
};
lightsail.getRelationalDatabaseLogEvents(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database for which to get log events.

    • logStreamName — (String)

      The name of the log stream.

      Use the get relational database log streams operation to get a list of available log streams.

    • startTime — (Date)

      The start of the time interval from which to get log events.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the start time.

    • endTime — (Date)

      The end of the time interval from which to get log events.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the end time.

    • startFromHead — (Boolean)

      Parameter to specify if the log should start from head or tail. If true is specified, the log event starts from the head of the log. If false is specified, the log event starts from the tail of the log.

      Note: For PostgreSQL, the default value of false is the only option available.
    • pageToken — (String)

      The token to advance to the next or previous page of results from your request.

      To get a page token, perform an initial GetRelationalDatabaseLogEvents request. If your results are paginated, the response will return a next forward token and/or next backward token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • resourceLogEvents — (Array<map>)

        An object describing the result of your get relational database log events request.

        • createdAt — (Date)

          The timestamp when the database log event was created.

        • message — (String)

          The message of the database log event.

      • nextBackwardToken — (String)

        A token used for advancing to the previous page of results from your get relational database log events request.

      • nextForwardToken — (String)

        A token used for advancing to the next page of results from your get relational database log events request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabaseLogStreams(params = {}, callback) ⇒ AWS.Request

Returns a list of available log streams for a specific database in Amazon Lightsail.

Service Reference:

Examples:

Calling the getRelationalDatabaseLogStreams operation

var params = {
  relationalDatabaseName: 'STRING_VALUE' /* required */
};
lightsail.getRelationalDatabaseLogStreams(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database for which to get log streams.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • logStreams — (Array<String>)

        An object describing the result of your get relational database log streams request.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Examples:

Calling the getRelationalDatabaseMasterUserPassword operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  passwordVersion: CURRENT | PREVIOUS | PENDING
};
lightsail.getRelationalDatabaseMasterUserPassword(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database for which to get the master user password.

    • passwordVersion — (String)

      The password version to return.

      Specifying CURRENT or PREVIOUS returns the current or previous passwords respectively. Specifying PENDING returns the newest version of the password that will rotate to CURRENT. After the PENDING password rotates to CURRENT, the PENDING password is no longer available.

      Default: CURRENT

      Possible values include:
      • "CURRENT"
      • "PREVIOUS"
      • "PENDING"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • masterUserPassword — (String)

        The master user password for the password version specified.

      • createdAt — (Date)

        The timestamp when the specified version of the master user password was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. Monitor and collect metric data regularly to maintain the reliability, availability, and performance of your resources.

Service Reference:

Examples:

Calling the getRelationalDatabaseMetricData operation

var params = {
  endTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  metricName: CPUUtilization | DatabaseConnections | DiskQueueDepth | FreeStorageSpace | NetworkReceiveThroughput | NetworkTransmitThroughput, /* required */
  period: 'NUMBER_VALUE', /* required */
  relationalDatabaseName: 'STRING_VALUE', /* required */
  startTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
  statistics: [ /* required */
    Minimum | Maximum | Sum | Average | SampleCount,
    /* more items */
  ],
  unit: Seconds | Microseconds | Milliseconds | Bytes | Kilobytes | Megabytes | Gigabytes | Terabytes | Bits | Kilobits | Megabits | Gigabits | Terabits | Percent | Count | Bytes/Second | Kilobytes/Second | Megabytes/Second | Gigabytes/Second | Terabytes/Second | Bits/Second | Kilobits/Second | Megabits/Second | Gigabits/Second | Terabits/Second | Count/Second | None /* required */
};
lightsail.getRelationalDatabaseMetricData(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database from which to get metric data.

    • metricName — (String)

      The metric for which you want to return information.

      Valid relational database metric names are listed below, along with the most useful statistics to include in your request, and the published unit value. All relational database metric data is available in 1-minute (60 seconds) granularity.

      • CPUUtilization - The percentage of CPU utilization currently in use on the database.

        Statistics: The most useful statistics are Maximum and Average.

        Unit: The published unit is Percent.

      • DatabaseConnections - The number of database connections in use.

        Statistics: The most useful statistics are Maximum and Sum.

        Unit: The published unit is Count.

      • DiskQueueDepth - The number of outstanding IOs (read/write requests) that are waiting to access the disk.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Count.

      • FreeStorageSpace - The amount of available storage space.

        Statistics: The most useful statistic is Sum.

        Unit: The published unit is Bytes.

      • NetworkReceiveThroughput - The incoming (Receive) network traffic on the database, including both customer database traffic and AWS traffic used for monitoring and replication.

        Statistics: The most useful statistic is Average.

        Unit: The published unit is Bytes/Second.

      • NetworkTransmitThroughput - The outgoing (Transmit) network traffic on the database, including both customer database traffic and AWS traffic used for monitoring and replication.

        Statistics: The most useful statistic is Average.

        Unit: The published unit is Bytes/Second.

      Possible values include:
      • "CPUUtilization"
      • "DatabaseConnections"
      • "DiskQueueDepth"
      • "FreeStorageSpace"
      • "NetworkReceiveThroughput"
      • "NetworkTransmitThroughput"
    • period — (Integer)

      The granularity, in seconds, of the returned data points.

      All relational database metric data is available in 1-minute (60 seconds) granularity.

    • startTime — (Date)

      The start of the time interval from which to get metric data.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use a start time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the start time.

    • endTime — (Date)

      The end of the time interval from which to get metric data.

      Constraints:

      • Specified in Coordinated Universal Time (UTC).

      • Specified in the Unix time format.

        For example, if you wish to use an end time of October 1, 2018, at 8 PM UTC, then you input 1538424000 as the end time.

    • unit — (String)

      The unit for the metric data request. Valid units depend on the metric data being requested. For the valid units with each available metric, see the metricName parameter.

      Possible values include:
      • "Seconds"
      • "Microseconds"
      • "Milliseconds"
      • "Bytes"
      • "Kilobytes"
      • "Megabytes"
      • "Gigabytes"
      • "Terabytes"
      • "Bits"
      • "Kilobits"
      • "Megabits"
      • "Gigabits"
      • "Terabits"
      • "Percent"
      • "Count"
      • "Bytes/Second"
      • "Kilobytes/Second"
      • "Megabytes/Second"
      • "Gigabytes/Second"
      • "Terabytes/Second"
      • "Bits/Second"
      • "Kilobits/Second"
      • "Megabits/Second"
      • "Gigabits/Second"
      • "Terabits/Second"
      • "Count/Second"
      • "None"
    • statistics — (Array<String>)

      The statistic for the metric.

      The following statistics are available:

      • Minimum - The lowest value observed during the specified period. Use this value to determine low volumes of activity for your application.

      • Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.

      • Sum - All values submitted for the matching metric added together. You can use this statistic to determine the total volume of a metric.

      • Average - The value of Sum / SampleCount during the specified period. By comparing this statistic with the Minimum and Maximum values, you can determine the full scope of a metric and how close the average use is to the Minimum and Maximum values. This comparison helps you to know when to increase or decrease your resources.

      • SampleCount - The count, or number, of data points used for the statistical calculation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • metricName — (String)

        The name of the metric returned.

        Possible values include:
        • "CPUUtilization"
        • "DatabaseConnections"
        • "DiskQueueDepth"
        • "FreeStorageSpace"
        • "NetworkReceiveThroughput"
        • "NetworkTransmitThroughput"
      • metricData — (Array<map>)

        An array of objects that describe the metric data returned.

        • average — (Float)

          The average.

        • maximum — (Float)

          The maximum.

        • minimum — (Float)

          The minimum.

        • sampleCount — (Float)

          The sample count.

        • sum — (Float)

          The sum.

        • timestamp — (Date)

          The timestamp (1479816991.349).

        • unit — (String)

          The unit.

          Possible values include:
          • "Seconds"
          • "Microseconds"
          • "Milliseconds"
          • "Bytes"
          • "Kilobytes"
          • "Megabytes"
          • "Gigabytes"
          • "Terabytes"
          • "Bits"
          • "Kilobits"
          • "Megabits"
          • "Gigabits"
          • "Terabits"
          • "Percent"
          • "Count"
          • "Bytes/Second"
          • "Kilobytes/Second"
          • "Megabytes/Second"
          • "Gigabytes/Second"
          • "Terabytes/Second"
          • "Bits/Second"
          • "Kilobits/Second"
          • "Megabits/Second"
          • "Gigabits/Second"
          • "Terabits/Second"
          • "Count/Second"
          • "None"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. This information includes whether changes require a reboot, whether the parameter is modifiable, the allowed values, and the data types.

Service Reference:

Examples:

Calling the getRelationalDatabaseParameters operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  pageToken: 'STRING_VALUE'
};
lightsail.getRelationalDatabaseParameters(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database for which to get parameters.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetRelationalDatabaseParameters request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • parameters — (Array<map>)

        An object describing the result of your get relational database parameters request.

        • allowedValues — (String)

          Specifies the valid range of values for the parameter.

        • applyMethod — (String)

          Indicates when parameter updates are applied.

          Can be immediate or pending-reboot.

        • applyType — (String)

          Specifies the engine-specific parameter type.

        • dataType — (String)

          Specifies the valid data type for the parameter.

        • description — (String)

          Provides a description of the parameter.

        • isModifiable — (Boolean)

          A Boolean value indicating whether the parameter can be modified.

        • parameterName — (String)

          Specifies the name of the parameter.

        • parameterValue — (String)

          Specifies the value of the parameter.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetRelationalDatabaseParameters request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabases(params = {}, callback) ⇒ AWS.Request

Returns information about all of your databases in Amazon Lightsail.

Service Reference:

Examples:

Calling the getRelationalDatabases operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getRelationalDatabases(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetRelationalDatabases request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • relationalDatabases — (Array<map>)

        An object describing the result of your get relational databases request.

        • name — (String)

          The unique name of the database resource in Lightsail.

        • arn — (String)

          The Amazon Resource Name (ARN) of the database.

        • supportCode — (String)

          The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the database was created. Formatted in Unix time.

        • location — (map)

          The Region name and Availability Zone where the database is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type for the database (for example, RelationalDatabase).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • relationalDatabaseBlueprintId — (String)

          The blueprint ID for the database. A blueprint describes the major engine version of a database.

        • relationalDatabaseBundleId — (String)

          The bundle ID for the database. A bundle describes the performance specifications for your database.

        • masterDatabaseName — (String)

          The name of the master database created when the Lightsail database resource is created.

        • hardware — (map)

          Describes the hardware of the database.

          • cpuCount — (Integer)

            The number of vCPUs for the database.

          • diskSizeInGb — (Integer)

            The size of the disk for the database.

          • ramSizeInGb — (Float)

            The amount of RAM in GB for the database.

        • state — (String)

          Describes the current state of the database.

        • secondaryAvailabilityZone — (String)

          Describes the secondary Availability Zone of a high availability database.

          The secondary database is used for failover support of a high availability database.

        • backupRetentionEnabled — (Boolean)

          A Boolean value indicating whether automated backup retention is enabled for the database.

        • pendingModifiedValues — (map)

          Describes pending database value modifications.

          • masterUserPassword — (String)

            The password for the master user of the database.

          • engineVersion — (String)

            The database engine version.

          • backupRetentionEnabled — (Boolean)

            A Boolean value indicating whether automated backup retention is enabled.

        • engine — (String)

          The database software (for example, MySQL).

        • engineVersion — (String)

          The database engine version (for example, 5.7.23).

        • latestRestorableTime — (Date)

          The latest point in time to which the database can be restored. Formatted in Unix time.

        • masterUsername — (String)

          The master user name of the database.

        • parameterApplyStatus — (String)

          The status of parameter updates for the database.

        • preferredBackupWindow — (String)

          The daily time range during which automated backups are created for the database (for example, 16:00-16:30).

        • preferredMaintenanceWindow — (String)

          The weekly time range during which system maintenance can occur on the database.

          In the format ddd:hh24:mi-ddd:hh24:mi. For example, Tue:17:00-Tue:17:30.

        • publiclyAccessible — (Boolean)

          A Boolean value indicating whether the database is publicly accessible.

        • masterEndpoint — (map)

          The master endpoint for the database.

          • port — (Integer)

            Specifies the port that the database is listening on.

          • address — (String)

            Specifies the DNS address of the database.

        • pendingMaintenanceActions — (Array<map>)

          Describes the pending maintenance actions for the database.

          • action — (String)

            The type of pending database maintenance action.

          • description — (String)

            Additional detail about the pending database maintenance action.

          • currentApplyDate — (Date)

            The effective date of the pending database maintenance action.

        • caCertificateIdentifier — (String)

          The certificate associated with the database.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetRelationalDatabases request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabaseSnapshot(params = {}, callback) ⇒ AWS.Request

Returns information about a specific database snapshot in Amazon Lightsail.

Service Reference:

Examples:

Calling the getRelationalDatabaseSnapshot operation

var params = {
  relationalDatabaseSnapshotName: 'STRING_VALUE' /* required */
};
lightsail.getRelationalDatabaseSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseSnapshotName — (String)

      The name of the database snapshot for which to get information.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • relationalDatabaseSnapshot — (map)

        An object describing the specified database snapshot.

        • name — (String)

          The name of the database snapshot.

        • arn — (String)

          The Amazon Resource Name (ARN) of the database snapshot.

        • supportCode — (String)

          The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the database snapshot was created.

        • location — (map)

          The Region name and Availability Zone where the database snapshot is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • engine — (String)

          The software of the database snapshot (for example, MySQL)

        • engineVersion — (String)

          The database engine version for the database snapshot (for example, 5.7.23).

        • sizeInGb — (Integer)

          The size of the disk in GB (for example, 32) for the database snapshot.

        • state — (String)

          The state of the database snapshot.

        • fromRelationalDatabaseName — (String)

          The name of the source database from which the database snapshot was created.

        • fromRelationalDatabaseArn — (String)

          The Amazon Resource Name (ARN) of the database from which the database snapshot was created.

        • fromRelationalDatabaseBundleId — (String)

          The bundle ID of the database from which the database snapshot was created.

        • fromRelationalDatabaseBlueprintId — (String)

          The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getRelationalDatabaseSnapshots(params = {}, callback) ⇒ AWS.Request

Returns information about all of your database snapshots in Amazon Lightsail.

Service Reference:

Examples:

Calling the getRelationalDatabaseSnapshots operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getRelationalDatabaseSnapshots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetRelationalDatabaseSnapshots request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • relationalDatabaseSnapshots — (Array<map>)

        An object describing the result of your get relational database snapshots request.

        • name — (String)

          The name of the database snapshot.

        • arn — (String)

          The Amazon Resource Name (ARN) of the database snapshot.

        • supportCode — (String)

          The support code for the database snapshot. Include this code in your email to support when you have questions about a database snapshot in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the database snapshot was created.

        • location — (map)

          The Region name and Availability Zone where the database snapshot is located.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • engine — (String)

          The software of the database snapshot (for example, MySQL)

        • engineVersion — (String)

          The database engine version for the database snapshot (for example, 5.7.23).

        • sizeInGb — (Integer)

          The size of the disk in GB (for example, 32) for the database snapshot.

        • state — (String)

          The state of the database snapshot.

        • fromRelationalDatabaseName — (String)

          The name of the source database from which the database snapshot was created.

        • fromRelationalDatabaseArn — (String)

          The Amazon Resource Name (ARN) of the database from which the database snapshot was created.

        • fromRelationalDatabaseBundleId — (String)

          The bundle ID of the database from which the database snapshot was created.

        • fromRelationalDatabaseBlueprintId — (String)

          The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetRelationalDatabaseSnapshots request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getSetupHistory(params = {}, callback) ⇒ AWS.Request

Returns detailed information for five of the most recent SetupInstanceHttps requests that were ran on the target instance.

Service Reference:

Examples:

Calling the getSetupHistory operation

var params = {
  resourceName: 'STRING_VALUE', /* required */
  pageToken: 'STRING_VALUE'
};
lightsail.getSetupHistory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the resource for which you are requesting information.

    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetSetupHistory request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • setupHistory — (Array<map>)

        The historical information that's returned.

        • operationId — (String)

          A GUID that's used to identify the operation.

        • request — (map)

          Information about the specified request.

          • instanceName — (String)

            The name of the Lightsail instance.

          • domainNames — (Array<String>)

            The name of the domain and subdomains that the SSL/TLS certificate secures.

          • certificateProvider — (String)

            The Certificate Authority (CA) that issues the SSL/TLS certificate.

            Possible values include:
            • "LetsEncrypt"
        • resource — (map)

          The target resource name for the request.

          • name — (String)

            The name of the Lightsail resource.

          • arn — (String)

            The Amazon Resource Name (ARN) of the Lightsail resource.

          • createdAt — (Date)

            The timestamp for when the resource was created.

          • location — (map)

            Describes the resource location.

            • availabilityZone — (String)

              The Availability Zone. Follows the format us-east-2a (case-sensitive).

            • regionName — (String)

              The Amazon Web Services Region name.

              Possible values include:
              • "us-east-1"
              • "us-east-2"
              • "us-west-1"
              • "us-west-2"
              • "eu-west-1"
              • "eu-west-2"
              • "eu-west-3"
              • "eu-central-1"
              • "ca-central-1"
              • "ap-south-1"
              • "ap-southeast-1"
              • "ap-southeast-2"
              • "ap-northeast-1"
              • "ap-northeast-2"
              • "eu-north-1"
          • resourceType — (String)

            The Lightsail resource type. For example, Instance.

            Possible values include:
            • "ContainerService"
            • "Instance"
            • "StaticIp"
            • "KeyPair"
            • "InstanceSnapshot"
            • "Domain"
            • "PeeredVpc"
            • "LoadBalancer"
            • "LoadBalancerTlsCertificate"
            • "Disk"
            • "DiskSnapshot"
            • "RelationalDatabase"
            • "RelationalDatabaseSnapshot"
            • "ExportSnapshotRecord"
            • "CloudFormationStackRecord"
            • "Alarm"
            • "ContactMethod"
            • "Distribution"
            • "Certificate"
            • "Bucket"
        • executionDetails — (Array<map>)

          Describes the full details of the request.

          • command — (String)

            The command that was executed.

          • dateTime — (Date)

            The timestamp for when the request was run.

          • name — (String)

            The name of the target resource.

          • status — (String)

            The status of the SetupInstanceHttps request.

            Possible values include:
            • "succeeded"
            • "failed"
            • "inProgress"
          • standardError — (String)

            The text written by the command to stderr.

          • standardOutput — (String)

            The text written by the command to stdout.

          • version — (String)

            The current version of the script..

        • status — (String)

          The status of the request.

          Possible values include:
          • "succeeded"
          • "failed"
          • "inProgress"
      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetSetupHistory request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getStaticIp(params = {}, callback) ⇒ AWS.Request

Returns information about an Amazon Lightsail static IP.

Service Reference:

Examples:

Calling the getStaticIp operation

var params = {
  staticIpName: 'STRING_VALUE' /* required */
};
lightsail.getStaticIp(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • staticIpName — (String)

      The name of the static IP in Lightsail.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • staticIp — (map)

        An array of key-value pairs containing information about the requested static IP.

        • name — (String)

          The name of the static IP (StaticIP-Ohio-EXAMPLE).

        • arn — (String)

          The Amazon Resource Name (ARN) of the static IP (arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the static IP was created (1479735304.222).

        • location — (map)

          The region and Availability Zone where the static IP was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (usually StaticIp).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • ipAddress — (String)

          The static IP address.

        • attachedTo — (String)

          The instance where the static IP is attached (Amazon_Linux-1GB-Ohio-1).

        • isAttached — (Boolean)

          A Boolean value indicating whether the static IP is attached.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getStaticIps(params = {}, callback) ⇒ AWS.Request

Returns information about all static IPs in the user's account.

Service Reference:

Examples:

Calling the getStaticIps operation

var params = {
  pageToken: 'STRING_VALUE'
};
lightsail.getStaticIps(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • pageToken — (String)

      The token to advance to the next page of results from your request.

      To get a page token, perform an initial GetStaticIps request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • staticIps — (Array<map>)

        An array of key-value pairs containing information about your get static IPs request.

        • name — (String)

          The name of the static IP (StaticIP-Ohio-EXAMPLE).

        • arn — (String)

          The Amazon Resource Name (ARN) of the static IP (arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

        • supportCode — (String)

          The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

        • createdAt — (Date)

          The timestamp when the static IP was created (1479735304.222).

        • location — (map)

          The region and Availability Zone where the static IP was created.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The resource type (usually StaticIp).

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • ipAddress — (String)

          The static IP address.

        • attachedTo — (String)

          The instance where the static IP is attached (Amazon_Linux-1GB-Ohio-1).

        • isAttached — (Boolean)

          A Boolean value indicating whether the static IP is attached.

      • nextPageToken — (String)

        The token to advance to the next page of results from your request.

        A next page token is not returned if there are no more results to display.

        To get the next page of results, perform another GetStaticIps request and specify the next page token using the pageToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

importKeyPair(params = {}, callback) ⇒ AWS.Request

Imports a public SSH key from a specific key pair.

Service Reference:

Examples:

Calling the importKeyPair operation

var params = {
  keyPairName: 'STRING_VALUE', /* required */
  publicKeyBase64: 'STRING_VALUE' /* required */
};
lightsail.importKeyPair(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • keyPairName — (String)

      The name of the key pair for which you want to import the public key.

    • publicKeyBase64 — (String)

      A base64-encoded public key of the ssh-rsa type.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

isVpcPeered(params = {}, callback) ⇒ AWS.Request

Returns a Boolean value indicating whether your Lightsail VPC is peered.

Service Reference:

Examples:

Calling the isVpcPeered operation

var params = {
};
lightsail.isVpcPeered(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • isPeered — (Boolean)

        Returns true if the Lightsail VPC is peered; otherwise, false.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by instanceName. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the openInstancePublicPorts operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  portInfo: { /* required */
    cidrListAliases: [
      'STRING_VALUE',
      /* more items */
    ],
    cidrs: [
      'STRING_VALUE',
      /* more items */
    ],
    fromPort: 'NUMBER_VALUE',
    ipv6Cidrs: [
      'STRING_VALUE',
      /* more items */
    ],
    protocol: tcp | all | udp | icmp,
    toPort: 'NUMBER_VALUE'
  }
};
lightsail.openInstancePublicPorts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • portInfo — (map)

      An object to describe the ports to open for the specified instance.

      • fromPort — (Integer)

        The first port in a range of open ports on an instance.

        Allowed ports:

        • TCP and UDP - 0 to 65535

        • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

        • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

      • toPort — (Integer)

        The last port in a range of open ports on an instance.

        Allowed ports:

        • TCP and UDP - 0 to 65535

        • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

        • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

      • protocol — (String)

        The IP protocol name.

        The name can be one of the following:

        • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

        • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

        • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

        • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

        Possible values include:
        • "tcp"
        • "all"
        • "udp"
        • "icmp"
      • cidrs — (Array<String>)

        The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

        Note: The ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

        Examples:

        • To allow the IP address 192.0.2.44, specify 192.0.2.44 or 192.0.2.44/32.

        • To allow the IP addresses 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

      • ipv6Cidrs — (Array<String>)

        The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.

        Note: The cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

        For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

      • cidrListAliases — (Array<String>)

        An alias that defines access for a preconfigured range of IP addresses.

        The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

    • instanceName — (String)

      The name of the instance for which to open ports.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

peerVpc(params = {}, callback) ⇒ AWS.Request

Peers the Lightsail VPC with the user's default VPC.

Service Reference:

Examples:

Calling the peerVpc operation

var params = {
};
lightsail.peerVpc(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. 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.

When this action creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed.

When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm. The alarm is then evaluated with the updated configuration.

Service Reference:

Examples:

Calling the putAlarm operation

var params = {
  alarmName: 'STRING_VALUE', /* required */
  comparisonOperator: GreaterThanOrEqualToThreshold | GreaterThanThreshold | LessThanThreshold | LessThanOrEqualToThreshold, /* required */
  evaluationPeriods: 'NUMBER_VALUE', /* required */
  metricName: CPUUtilization | NetworkIn | NetworkOut | StatusCheckFailed | StatusCheckFailed_Instance | StatusCheckFailed_System | ClientTLSNegotiationErrorCount | HealthyHostCount | UnhealthyHostCount | HTTPCode_LB_4XX_Count | HTTPCode_LB_5XX_Count | HTTPCode_Instance_2XX_Count | HTTPCode_Instance_3XX_Count | HTTPCode_Instance_4XX_Count | HTTPCode_Instance_5XX_Count | InstanceResponseTime | RejectedConnectionCount | RequestCount | DatabaseConnections | DiskQueueDepth | FreeStorageSpace | NetworkReceiveThroughput | NetworkTransmitThroughput | BurstCapacityTime | BurstCapacityPercentage, /* required */
  monitoredResourceName: 'STRING_VALUE', /* required */
  threshold: 'NUMBER_VALUE', /* required */
  contactProtocols: [
    Email | SMS,
    /* more items */
  ],
  datapointsToAlarm: 'NUMBER_VALUE',
  notificationEnabled: true || false,
  notificationTriggers: [
    OK | ALARM | INSUFFICIENT_DATA,
    /* more items */
  ],
  treatMissingData: breaching | notBreaching | ignore | missing
};
lightsail.putAlarm(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • alarmName — (String)

      The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.

    • metricName — (String)

      The name of the metric to associate with the alarm.

      You can configure up to two alarms per metric.

      The following metrics are available for each resource type:

      • Instances: BurstCapacityPercentage, BurstCapacityTime, CPUUtilization, NetworkIn, NetworkOut, StatusCheckFailed, StatusCheckFailed_Instance, and StatusCheckFailed_System.

      • Load balancers: ClientTLSNegotiationErrorCount, HealthyHostCount, UnhealthyHostCount, HTTPCode_LB_4XX_Count, HTTPCode_LB_5XX_Count, HTTPCode_Instance_2XX_Count, HTTPCode_Instance_3XX_Count, HTTPCode_Instance_4XX_Count, HTTPCode_Instance_5XX_Count, InstanceResponseTime, RejectedConnectionCount, and RequestCount.

      • Relational databases: CPUUtilization, DatabaseConnections, DiskQueueDepth, FreeStorageSpace, NetworkReceiveThroughput, and NetworkTransmitThroughput.

      For more information about these metrics, see Metrics available in Lightsail.

      Possible values include:
      • "CPUUtilization"
      • "NetworkIn"
      • "NetworkOut"
      • "StatusCheckFailed"
      • "StatusCheckFailed_Instance"
      • "StatusCheckFailed_System"
      • "ClientTLSNegotiationErrorCount"
      • "HealthyHostCount"
      • "UnhealthyHostCount"
      • "HTTPCode_LB_4XX_Count"
      • "HTTPCode_LB_5XX_Count"
      • "HTTPCode_Instance_2XX_Count"
      • "HTTPCode_Instance_3XX_Count"
      • "HTTPCode_Instance_4XX_Count"
      • "HTTPCode_Instance_5XX_Count"
      • "InstanceResponseTime"
      • "RejectedConnectionCount"
      • "RequestCount"
      • "DatabaseConnections"
      • "DiskQueueDepth"
      • "FreeStorageSpace"
      • "NetworkReceiveThroughput"
      • "NetworkTransmitThroughput"
      • "BurstCapacityTime"
      • "BurstCapacityPercentage"
    • monitoredResourceName — (String)

      The name of the Lightsail resource that will be monitored.

      Instances, load balancers, and relational databases are the only Lightsail resources that can currently be monitored by alarms.

    • comparisonOperator — (String)

      The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.

      Possible values include:
      • "GreaterThanOrEqualToThreshold"
      • "GreaterThanThreshold"
      • "LessThanThreshold"
      • "LessThanOrEqualToThreshold"
    • threshold — (Float)

      The value against which the specified statistic is compared.

    • evaluationPeriods — (Integer)

      The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.

      If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies the rolling period of time in which data points are evaluated.

      Each evaluation period is five minutes long. For example, specify an evaluation period of 24 to evaluate a metric over a rolling period of two hours.

      You can specify a minimum valuation period of 1 (5 minutes), and a maximum evaluation period of 288 (24 hours).

    • datapointsToAlarm — (Integer)

      The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.

    • treatMissingData — (String)

      Sets how this alarm will handle missing data points.

      An alarm can treat missing data in the following ways:

      • breaching - Assume the missing data is not within the threshold. Missing data counts towards the number of times the metric is not within the threshold.

      • notBreaching - Assume the missing data is within the threshold. Missing data does not count towards the number of times the metric is not within the threshold.

      • ignore - Ignore the missing data. Maintains the current alarm state.

      • missing - Missing data is treated as missing.

      If treatMissingData is not specified, the default behavior of missing is used.

      Possible values include:
      • "breaching"
      • "notBreaching"
      • "ignore"
      • "missing"
    • contactProtocols — (Array<String>)

      The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.

      A notification is sent via the specified contact protocol if notifications are enabled for the alarm, and when the alarm is triggered.

      A notification is not sent if a contact protocol is not specified, if the specified contact protocol is not configured in the Amazon Web Services Region, or if notifications are not enabled for the alarm using the notificationEnabled paramater.

      Use the CreateContactMethod action to configure a contact protocol in an Amazon Web Services Region.

    • notificationTriggers — (Array<String>)

      The alarm states that trigger a notification.

      An alarm has the following possible states:

      • ALARM - The metric is outside of the defined threshold.

      • INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.

      • OK - The metric is within the defined threshold.

      When you specify a notification trigger, the ALARM state must be specified. The INSUFFICIENT_DATA and OK states can be specified in addition to the ALARM state.

      • If you specify OK as an alarm trigger, a notification is sent when the alarm switches from an ALARM or INSUFFICIENT_DATA alarm state to an OK state. This can be thought of as an all clear alarm notification.

      • If you specify INSUFFICIENT_DATA as the alarm trigger, a notification is sent when the alarm switches from an OK or ALARM alarm state to an INSUFFICIENT_DATA state.

      The notification trigger defaults to ALARM if you don't specify this parameter.

    • notificationEnabled — (Boolean)

      Indicates whether the alarm is enabled.

      Notifications are enabled by default if you don't specify this parameter.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. This action also closes all currently open ports that are not included in the request. Include all of the ports and the protocols you want to open in your PutInstancePublicPortsrequest. Or use the OpenInstancePublicPorts action to open ports without closing currently open ports.

The PutInstancePublicPorts action supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the putInstancePublicPorts operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  portInfos: [ /* required */
    {
      cidrListAliases: [
        'STRING_VALUE',
        /* more items */
      ],
      cidrs: [
        'STRING_VALUE',
        /* more items */
      ],
      fromPort: 'NUMBER_VALUE',
      ipv6Cidrs: [
        'STRING_VALUE',
        /* more items */
      ],
      protocol: tcp | all | udp | icmp,
      toPort: 'NUMBER_VALUE'
    },
    /* more items */
  ]
};
lightsail.putInstancePublicPorts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • portInfos — (Array<map>)

      An array of objects to describe the ports to open for the specified instance.

      • fromPort — (Integer)

        The first port in a range of open ports on an instance.

        Allowed ports:

        • TCP and UDP - 0 to 65535

        • ICMP - The ICMP type for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

        • ICMPv6 - The ICMP type for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

      • toPort — (Integer)

        The last port in a range of open ports on an instance.

        Allowed ports:

        • TCP and UDP - 0 to 65535

        • ICMP - The ICMP code for IPv4 addresses. For example, specify 8 as the fromPort (ICMP type), and -1 as the toPort (ICMP code), to enable ICMP Ping. For more information, see Control Messages on Wikipedia.

        • ICMPv6 - The ICMP code for IPv6 addresses. For example, specify 128 as the fromPort (ICMPv6 type), and 0 as toPort (ICMPv6 code). For more information, see Internet Control Message Protocol for IPv6.

      • protocol — (String)

        The IP protocol name.

        The name can be one of the following:

        • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

        • all - All transport layer protocol types. For more general information, see Transport layer on Wikipedia.

        • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

        • icmp - Internet Control Message Protocol (ICMP) is used to send error messages and operational information indicating success or failure when communicating with an instance. For example, an error is indicated when an instance could not be reached. When you specify icmp as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.

        Possible values include:
        • "tcp"
        • "all"
        • "udp"
        • "icmp"
      • cidrs — (Array<String>)

        The IPv4 address, or range of IPv4 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol.

        Note: The ipv6Cidrs parameter lists the IPv6 addresses that are allowed to connect to an instance.

        Examples:

        • To allow the IP address 192.0.2.44, specify 192.0.2.44 or 192.0.2.44/32.

        • To allow the IP addresses 192.0.2.0 to 192.0.2.255, specify 192.0.2.0/24.

        For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

      • ipv6Cidrs — (Array<String>)

        The IPv6 address, or range of IPv6 addresses (in CIDR notation) that are allowed to connect to an instance through the ports, and the protocol. Only devices with an IPv6 address can connect to an instance through IPv6; otherwise, IPv4 should be used.

        Note: The cidrs parameter lists the IPv4 addresses that are allowed to connect to an instance.

        For more information about CIDR block notation, see Classless Inter-Domain Routing on Wikipedia.

      • cidrListAliases — (Array<String>)

        An alias that defines access for a preconfigured range of IP addresses.

        The only alias currently supported is lightsail-connect, which allows IP addresses of the browser-based RDP/SSH client in the Lightsail console to connect to your instance.

    • instanceName — (String)

      The name of the instance for which to open ports.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by instance name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the rebootInstance operation

var params = {
  instanceName: 'STRING_VALUE' /* required */
};
lightsail.rebootInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance to reboot.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the rebootRelationalDatabase operation

var params = {
  relationalDatabaseName: 'STRING_VALUE' /* required */
};
lightsail.rebootRelationalDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database to reboot.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. For more information, see Pushing and managing container images on your Amazon Lightsail container services in the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the registerContainerImage operation

var params = {
  digest: 'STRING_VALUE', /* required */
  label: 'STRING_VALUE', /* required */
  serviceName: 'STRING_VALUE' /* required */
};
lightsail.registerContainerImage(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service for which to register a container image.

    • label — (String)

      The label for the container image when it's registered to the container service.

      Use a descriptive label that you can use to track the different versions of your registered container images.

      Use the GetContainerImages action to return the container images registered to a Lightsail container service. The label is the <imagelabel> portion of the following image name example:

      • :container-service-1.<imagelabel>.1

      If the name of your container service is mycontainerservice, and the label that you specify is mystaticwebsite, then the name of the registered container image will be :mycontainerservice.mystaticwebsite.1.

      The number at the end of these image name examples represents the version of the registered container image. If you push and register another container image to the same Lightsail container service, with the same label, then the version number for the new registered container image will be 2. If you push and register another container image, the version number will be 3, and so on.

    • digest — (String)

      The digest of the container image to be registered.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • containerImage — (map)

        An object that describes a container image that is registered to a Lightsail container service

        • image — (String)

          The name of the container image.

        • digest — (String)

          The digest of the container image.

        • createdAt — (Date)

          The timestamp when the container image was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

releaseStaticIp(params = {}, callback) ⇒ AWS.Request

Deletes a specific static IP from your account.

Service Reference:

Examples:

Calling the releaseStaticIp operation

var params = {
  staticIpName: 'STRING_VALUE' /* required */
};
lightsail.releaseStaticIp(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • staticIpName — (String)

      The name of the static IP to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the resetDistributionCache operation

var params = {
  distributionName: 'STRING_VALUE'
};
lightsail.resetDistributionCache(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution for which to reset cache.

      Use the GetDistributions action to get a list of distribution names that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • status — (String)

        The status of the reset cache request.

      • createTime — (Date)

        The timestamp of the reset cache request (1479734909.17) in Unix time format.

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

sendContactMethodVerification(params = {}, callback) ⇒ AWS.Request

Sends a verification request to an email contact method to ensure it's owned by the requester. SMS contact methods don't need to be verified.

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.

A verification request is sent to the contact method when you initially create it. Use this action to send another verification request if a previous verification request was deleted, or has expired.

Notifications are not sent to an email contact method until after it is verified, and confirmed as valid.

Service Reference:

Examples:

Calling the sendContactMethodVerification operation

var params = {
  protocol: Email /* required */
};
lightsail.sendContactMethodVerification(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • protocol — (String)

      The protocol to verify, such as Email or SMS (text messaging).

      Possible values include:
      • "Email"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. Alternately, you can use this action to disable dual-stack, and enable IPv4 only.

Service Reference:

Examples:

Calling the setIpAddressType operation

var params = {
  ipAddressType: dualstack | ipv4, /* required */
  resourceName: 'STRING_VALUE', /* required */
  resourceType: ContainerService | Instance | StaticIp | KeyPair | InstanceSnapshot | Domain | PeeredVpc | LoadBalancer | LoadBalancerTlsCertificate | Disk | DiskSnapshot | RelationalDatabase | RelationalDatabaseSnapshot | ExportSnapshotRecord | CloudFormationStackRecord | Alarm | ContactMethod | Distribution | Certificate | Bucket /* required */
};
lightsail.setIpAddressType(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceType — (String)

      The resource type.

      The resource values are Distribution, Instance, and LoadBalancer.

      Note: Distribution-related APIs are available only in the N. Virginia (us-east-1) Amazon Web Services Region. Set your Amazon Web Services Region configuration to us-east-1 to create, view, or edit distributions.
      Possible values include:
      • "ContainerService"
      • "Instance"
      • "StaticIp"
      • "KeyPair"
      • "InstanceSnapshot"
      • "Domain"
      • "PeeredVpc"
      • "LoadBalancer"
      • "LoadBalancerTlsCertificate"
      • "Disk"
      • "DiskSnapshot"
      • "RelationalDatabase"
      • "RelationalDatabaseSnapshot"
      • "ExportSnapshotRecord"
      • "CloudFormationStackRecord"
      • "Alarm"
      • "ContactMethod"
      • "Distribution"
      • "Certificate"
      • "Bucket"
    • resourceName — (String)

      The name of the resource for which to set the IP address type.

    • ipAddressType — (String)

      The IP address type to set for the specified resource.

      The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

      Possible values include:
      • "dualstack"
      • "ipv4"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the setResourceAccessForBucket operation

var params = {
  access: allow | deny, /* required */
  bucketName: 'STRING_VALUE', /* required */
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.setResourceAccessForBucket(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.

    • bucketName — (String)

      The name of the bucket for which to set access to another Lightsail resource.

    • access — (String)

      The access setting.

      The following access settings are available:

      • allow - Allows access to the bucket and its objects.

      • deny - Denies access to the bucket and its objects. Use this setting to remove access for a resource previously set to allow.

      Possible values include:
      • "allow"
      • "deny"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

setupInstanceHttps(params = {}, callback) ⇒ AWS.Request

Creates an SSL/TLS certificate that secures traffic for your website. After the certificate is created, it is installed on the specified Lightsail instance.

If you provide more than one domain name in the request, at least one name must be less than or equal to 63 characters in length.

Service Reference:

Examples:

Calling the setupInstanceHttps operation

var params = {
  certificateProvider: LetsEncrypt, /* required */
  domainNames: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  emailAddress: 'STRING_VALUE', /* required */
  instanceName: 'STRING_VALUE' /* required */
};
lightsail.setupInstanceHttps(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the Lightsail instance.

    • emailAddress — (String)

      The contact method for SSL/TLS certificate renewal alerts. You can enter one email address.

    • domainNames — (Array<String>)

      The name of the domain and subdomains that were specified for the SSL/TLS certificate.

    • certificateProvider — (String)

      The certificate authority that issues the SSL/TLS certificate.

      Possible values include:
      • "LetsEncrypt"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        The available API operations for SetupInstanceHttps.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The session will be active for 1 hour. Use this action to resume the session after it expires.

Service Reference:

Examples:

Calling the startGUISession operation

var params = {
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.startGUISession(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The resource name.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        The available API operations.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startInstance(params = {}, callback) ⇒ AWS.Request

Starts a specific Amazon Lightsail instance from a stopped state. To restart an instance, use the reboot instance operation.

Note: When you start a stopped instance, Lightsail assigns a new public IP address to the instance. To use the same IP address after stopping and starting an instance, create a static IP address and attach it to the instance. For more information, see the Amazon Lightsail Developer Guide.

The start instance operation supports tag-based access control via resource tags applied to the resource identified by instance name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the startInstance operation

var params = {
  instanceName: 'STRING_VALUE' /* required */
};
lightsail.startInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance (a virtual private server) to start.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startRelationalDatabase(params = {}, callback) ⇒ AWS.Request

Starts a specific database from a stopped state in Amazon Lightsail. To restart a database, use the reboot relational database operation.

The start 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.

Service Reference:

Examples:

Calling the startRelationalDatabase operation

var params = {
  relationalDatabaseName: 'STRING_VALUE' /* required */
};
lightsail.startRelationalDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database to start.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. The session will close and any unsaved data will be lost.

Service Reference:

Examples:

Calling the stopGUISession operation

var params = {
  resourceName: 'STRING_VALUE' /* required */
};
lightsail.stopGUISession(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The resource name.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        The available API operations.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. To use the same IP address after stopping and starting an instance, create a static IP address and attach it to the instance. For more information, see the Amazon Lightsail Developer Guide.

The stop instance operation supports tag-based access control via resource tags applied to the resource identified by instance name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the stopInstance operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  force: true || false
};
lightsail.stopInstance(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance (a virtual private server) to stop.

    • force — (Boolean)

      When set to True, forces a Lightsail instance that is stuck in a stopping state to stop.

      Only use the force parameter if your instance is stuck in the stopping state. In any other state, your instance should stop normally without adding this parameter to your API request.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the stopRelationalDatabase operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  relationalDatabaseSnapshotName: 'STRING_VALUE'
};
lightsail.stopRelationalDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database to stop.

    • relationalDatabaseSnapshotName — (String)

      The name of your new database snapshot to be created before stopping your database.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

Adds one or more tags to the specified Amazon Lightsail resource. Each resource can have a maximum of 50 tags. Each tag consists of a key and an optional value. Tag keys must be unique per resource. For more information about tags, see the Amazon Lightsail Developer Guide.

The tag resource operation supports tag-based access control via request tags and resource tags applied to the resource identified by resource name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  resourceName: 'STRING_VALUE', /* required */
  tags: [ /* required */
    {
      key: 'STRING_VALUE',
      value: 'STRING_VALUE'
    },
    /* more items */
  ],
  resourceArn: 'STRING_VALUE'
};
lightsail.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the resource to which you are adding tags.

    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource to which you want to add a tag.

    • tags — (Array<map>)

      The tag key and optional value.

      • key — (String)

        The key of the tag.

        Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

      • value — (String)

        The value of the tag.

        Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

testAlarm(params = {}, callback) ⇒ AWS.Request

Tests an alarm by displaying a banner on the Amazon Lightsail console. If a notification trigger is configured for the specified alarm, the test also sends a notification to the notification protocol (Email and/or SMS) configured for the 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.

Service Reference:

Examples:

Calling the testAlarm operation

var params = {
  alarmName: 'STRING_VALUE', /* required */
  state: OK | ALARM | INSUFFICIENT_DATA /* required */
};
lightsail.testAlarm(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • alarmName — (String)

      The name of the alarm to test.

    • state — (String)

      The alarm state to test.

      An alarm has the following possible states that can be tested:

      • ALARM - The metric is outside of the defined threshold.

      • INSUFFICIENT_DATA - The alarm has just started, the metric is not available, or not enough data is available for the metric to determine the alarm state.

      • OK - The metric is within the defined threshold.

      Possible values include:
      • "OK"
      • "ALARM"
      • "INSUFFICIENT_DATA"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

unpeerVpc(params = {}, callback) ⇒ AWS.Request

Unpeers the Lightsail VPC from the user's default VPC.

Service Reference:

Examples:

Calling the unpeerVpc operation

var params = {
};
lightsail.unpeerVpc(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by resource name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  resourceName: 'STRING_VALUE', /* required */
  tagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  resourceArn: 'STRING_VALUE'
};
lightsail.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • resourceName — (String)

      The name of the resource from which you are removing a tag.

    • resourceArn — (String)

      The Amazon Resource Name (ARN) of the resource from which you want to remove a tag.

    • tagKeys — (Array<String>)

      The tag keys to delete from the specified resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the updateBucket operation

var params = {
  bucketName: 'STRING_VALUE', /* required */
  accessLogConfig: {
    enabled: true || false, /* required */
    destination: 'STRING_VALUE',
    prefix: 'STRING_VALUE'
  },
  accessRules: {
    allowPublicOverrides: true || false,
    getObject: public | private
  },
  readonlyAccessAccounts: [
    'STRING_VALUE',
    /* more items */
  ],
  versioning: 'STRING_VALUE'
};
lightsail.updateBucket(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket to update.

    • accessRules — (map)

      An object that sets the public accessibility of objects in the specified bucket.

      • getObject — (String)

        Specifies the anonymous access to all objects in a bucket.

        The following options can be specified:

        • public - Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.

          If the getObject value is set to public, then all objects in the bucket default to public regardless of the allowPublicOverrides value.

        • private - Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.

          If the getObject value is set to private, and the allowPublicOverrides value is set to true, then all objects in the bucket default to private unless they are configured with a public-read ACL. Individual objects with a public-read ACL are readable by anyone in the world.

        Possible values include:
        • "public"
        • "private"
      • allowPublicOverrides — (Boolean)

        A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.

        When this is true, you can use the PutObjectAcl Amazon S3 API action to set individual objects to public (read-only) using the public-read ACL, or to private using the private ACL.

    • versioning — (String)

      Specifies whether to enable or suspend versioning of objects in the bucket.

      The following options can be specified:

      • Enabled - Enables versioning of objects in the specified bucket.

      • Suspended - Suspends versioning of objects in the specified bucket. Existing object versions are retained.

    • readonlyAccessAccounts — (Array<String>)

      An array of strings to specify the Amazon Web Services account IDs that can access the bucket.

      You can give a maximum of 10 Amazon Web Services accounts access to a bucket.

    • accessLogConfig — (map)

      An object that describes the access log configuration for the bucket.

      • enabledrequired — (Boolean)

        A Boolean value that indicates whether bucket access logging is enabled for the bucket.

      • destination — (String)

        The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.

        Note: This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
      • prefix — (String)

        The optional object prefix for the bucket access log.

        The prefix is an optional addition to the object key that organizes your access log files in the destination bucket. For example, if you specify a logs/ prefix, then each log object will begin with the logs/ prefix in its key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0).

        Note: This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • bucket — (map)

        An object that describes the bucket that is updated.

        • resourceType — (String)

          The Lightsail resource type of the bucket.

        • accessRules — (map)

          An object that describes the access rules of the bucket.

          • getObject — (String)

            Specifies the anonymous access to all objects in a bucket.

            The following options can be specified:

            • public - Sets all objects in the bucket to public (read-only), making them readable by anyone in the world.

              If the getObject value is set to public, then all objects in the bucket default to public regardless of the allowPublicOverrides value.

            • private - Sets all objects in the bucket to private, making them readable only by you or anyone you give access to.

              If the getObject value is set to private, and the allowPublicOverrides value is set to true, then all objects in the bucket default to private unless they are configured with a public-read ACL. Individual objects with a public-read ACL are readable by anyone in the world.

            Possible values include:
            • "public"
            • "private"
          • allowPublicOverrides — (Boolean)

            A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified.

            When this is true, you can use the PutObjectAcl Amazon S3 API action to set individual objects to public (read-only) using the public-read ACL, or to private using the private ACL.

        • arn — (String)

          The Amazon Resource Name (ARN) of the bucket.

        • bundleId — (String)

          The ID of the bundle currently applied to the bucket.

          A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.

          Use the UpdateBucketBundle action to change the bundle of a bucket.

        • createdAt — (Date)

          The timestamp when the distribution was created.

        • url — (String)

          The URL of the bucket.

        • location — (map)

          An object that describes the location of the bucket, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • name — (String)

          The name of the bucket.

        • supportCode — (String)

          The support code for a bucket. Include this code in your email to support when you have questions about a Lightsail bucket. This code enables our support team to look up your Lightsail information more easily.

        • tags — (Array<map>)

          The tag keys and optional values for the bucket. For more information, see Tags in Amazon Lightsail in the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • objectVersioning — (String)

          Indicates whether object versioning is enabled for the bucket.

          The following options can be configured:

          • Enabled - Object versioning is enabled.

          • Suspended - Object versioning was previously enabled but is currently suspended. Existing object versions are retained.

          • NeverEnabled - Object versioning has never been enabled.

        • ableToUpdateBundle — (Boolean)

          Indicates whether the bundle that is currently applied to a bucket can be changed to another bundle.

          You can update a bucket's bundle only one time within a monthly Amazon Web Services billing cycle.

          Use the UpdateBucketBundle action to change a bucket's bundle.

        • readonlyAccessAccounts — (Array<String>)

          An array of strings that specify the Amazon Web Services account IDs that have read-only access to the bucket.

        • resourcesReceivingAccess — (Array<map>)

          An array of objects that describe Lightsail instances that have access to the bucket.

          Use the SetResourceAccessForBucket action to update the instances that have access to a bucket.

          • name — (String)

            The name of the Lightsail instance.

          • resourceType — (String)

            The Lightsail resource type (for example, Instance).

        • state — (map)

          An object that describes the state of the bucket.

          • code — (String)

            The state code of the bucket.

            The following codes are possible:

            • OK - The bucket is in a running state.

            • Unknown - Creation of the bucket might have timed-out. You might want to delete the bucket and create a new one.

          • message — (String)

            A message that describes the state of the bucket.

        • accessLogConfig — (map)

          An object that describes the access log configuration for the bucket.

          • enabledrequired — (Boolean)

            A Boolean value that indicates whether bucket access logging is enabled for the bucket.

          • destination — (String)

            The name of the bucket where the access logs are saved. The destination can be a Lightsail bucket in the same account, and in the same Amazon Web Services Region as the source bucket.

            Note: This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.
          • prefix — (String)

            The optional object prefix for the bucket access log.

            The prefix is an optional addition to the object key that organizes your access log files in the destination bucket. For example, if you specify a logs/ prefix, then each log object will begin with the logs/ prefix in its key (for example, logs/2021-11-01-21-32-16-E568B2907131C0C0).

            Note: This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.
      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. You can update a bucket's bundle only one time within a monthly Amazon Web Services billing cycle. To determine if you can update a bucket's bundle, use the GetBuckets action. The ableToUpdateBundle parameter in the response will indicate whether you can currently update a bucket's bundle.

Update a bucket's bundle if it's consistently going over its storage space or data transfer quota, or if a bucket's usage is consistently in the lower range of its storage space or data transfer quota. Due to the unpredictable usage fluctuations that a bucket might experience, we strongly recommend that you update a bucket's bundle only as a long-term strategy, instead of as a short-term, monthly cost-cutting measure. Choose a bucket bundle that will provide the bucket with ample storage space and data transfer for a long time to come.

Service Reference:

Examples:

Calling the updateBucketBundle operation

var params = {
  bucketName: 'STRING_VALUE', /* required */
  bundleId: 'STRING_VALUE' /* required */
};
lightsail.updateBucketBundle(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • bucketName — (String)

      The name of the bucket for which to update the bundle.

    • bundleId — (String)

      The ID of the new bundle to apply to the bucket.

      Use the GetBucketBundles action to get a list of bundle IDs that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateContainerService(params = {}, callback) ⇒ AWS.Request

Updates the configuration of your Amazon Lightsail container service, such as its power, scale, and public domain names.

Service Reference:

Examples:

Calling the updateContainerService operation

var params = {
  serviceName: 'STRING_VALUE', /* required */
  isDisabled: true || false,
  power: nano | micro | small | medium | large | xlarge,
  privateRegistryAccess: {
    ecrImagePullerRole: {
      isActive: true || false
    }
  },
  publicDomainNames: {
    '<string>': [
      'STRING_VALUE',
      /* more items */
    ],
    /* '<string>': ... */
  },
  scale: 'NUMBER_VALUE'
};
lightsail.updateContainerService(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • serviceName — (String)

      The name of the container service to update.

    • power — (String)

      The power for the container service.

      The power specifies the amount of memory, vCPUs, and base monthly cost of each node of the container service. The power and scale of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power with the scale (the number of nodes) of the service.

      Use the GetContainerServicePowers action to view the specifications of each power option.

      Possible values include:
      • "nano"
      • "micro"
      • "small"
      • "medium"
      • "large"
      • "xlarge"
    • scale — (Integer)

      The scale for the container service.

      The scale specifies the allocated compute nodes of the container service. The power and scale of a container service makes up its configured capacity. To determine the monthly price of your container service, multiply the base price of the power with the scale (the number of nodes) of the service.

    • isDisabled — (Boolean)

      A Boolean value to indicate whether the container service is disabled.

    • publicDomainNames — (map<Array<String>>)

      The public domain names to use with the container service, such as example.com and www.example.com.

      You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.

      If you don't specify public domain names, then you can use the default domain of the container service.

      You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate action to create a certificate for the public domain names you want to use with your container service.

      You can specify public domain names using a string to array map as shown in the example later on this page.

    • privateRegistryAccess — (map)

      An object to describe the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.

      For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.

      • ecrImagePullerRole — (map)

        An object to describe a request to activate or deactivate the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.

        • isActive — (Boolean)

          A Boolean value that indicates whether to activate the role.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • containerService — (map)

        An object that describes a container service.

        • containerServiceName — (String)

          The name of the container service.

        • arn — (String)

          The Amazon Resource Name (ARN) of the container service.

        • createdAt — (Date)

          The timestamp when the container service was created.

        • location — (map)

          An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • resourceType — (String)

          The Lightsail resource type of the container service.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • tags — (Array<map>)

          The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

          • key — (String)

            The key of the tag.

            Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

          • value — (String)

            The value of the tag.

            Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @

        • power — (String)

          The power specification of the container service.

          The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.

          Possible values include:
          • "nano"
          • "micro"
          • "small"
          • "medium"
          • "large"
          • "xlarge"
        • powerId — (String)

          The ID of the power of the container service.

        • state — (String)

          The current state of the container service.

          The following container service states are possible:

          • PENDING - The container service is being created.

          • READY - The container service is running but it does not have an active container deployment.

          • DEPLOYING - The container service is launching a container deployment.

          • RUNNING - The container service is running and it has an active container deployment.

          • UPDATING - The container service capacity or its custom domains are being updated.

          • DELETING - The container service is being deleted.

          • DISABLED - The container service is disabled, and its active deployment and containers, if any, are shut down.

          Possible values include:
          • "PENDING"
          • "READY"
          • "RUNNING"
          • "UPDATING"
          • "DELETING"
          • "DISABLED"
          • "DEPLOYING"
        • stateDetail — (map)

          An object that describes the current state of the container service.

          Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
          • code — (String)

            The state code of the container service.

            The following state codes are possible:

            • The following state codes are possible if your container service is in a DEPLOYING or UPDATING state:

              • CREATING_SYSTEM_RESOURCES - The system resources for your container service are being created.

              • CREATING_NETWORK_INFRASTRUCTURE - The network infrastructure for your container service are being created.

              • PROVISIONING_CERTIFICATE - The SSL/TLS certificate for your container service is being created.

              • PROVISIONING_SERVICE - Your container service is being provisioned.

              • CREATING_DEPLOYMENT - Your deployment is being created on your container service.

              • EVALUATING_HEALTH_CHECK - The health of your deployment is being evaluated.

              • ACTIVATING_DEPLOYMENT - Your deployment is being activated.

            • The following state codes are possible if your container service is in a PENDING state:

              • CERTIFICATE_LIMIT_EXCEEDED - The SSL/TLS certificate required for your container service exceeds the maximum number of certificates allowed for your account.

              • UNKNOWN_ERROR - An error was experienced when your container service was being created.

            Possible values include:
            • "CREATING_SYSTEM_RESOURCES"
            • "CREATING_NETWORK_INFRASTRUCTURE"
            • "PROVISIONING_CERTIFICATE"
            • "PROVISIONING_SERVICE"
            • "CREATING_DEPLOYMENT"
            • "EVALUATING_HEALTH_CHECK"
            • "ACTIVATING_DEPLOYMENT"
            • "CERTIFICATE_LIMIT_EXCEEDED"
            • "UNKNOWN_ERROR"
          • message — (String)

            A message that provides more information for the state code.

            Note: The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.
        • scale — (Integer)

          The scale specification of the container service.

          The scale specifies the allocated compute nodes of the container service.

        • currentDeployment — (map)

          An object that describes the current container deployment of the container service.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • nextDeployment — (map)

          An object that describes the next deployment of the container service.

          This value is null when there is no deployment in a pending state.

          • version — (Integer)

            The version number of the deployment.

          • state — (String)

            The state of the deployment.

            A deployment can be in one of the following states:

            • ACTIVATING - The deployment is being created.

            • ACTIVE - The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time.

            • INACTIVE - The deployment was previously successfully created, but it is not currently running on the container service.

            • FAILED - The deployment failed. Use the GetContainerLog action to view the log events for the containers in the deployment to try to determine the reason for the failure.

            Possible values include:
            • "ACTIVATING"
            • "ACTIVE"
            • "INACTIVE"
            • "FAILED"
          • containers — (map<map>)

            An object that describes the configuration for the containers of the deployment.

            • image — (String)

              The name of the image used for the container.

              Container images sourced from your Lightsail container service, that are registered and stored on your service, start with a colon (:). For example, if your container service name is container-service-1, the container image label is mystaticsite, and you want to use the third (3) version of the registered container image, then you should specify :container-service-1.mystaticsite.3. To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest). Lightsail will automatically use the highest numbered version of the registered container image.

              Container images sourced from a public registry like Docker Hub don't start with a colon. For example, nginx:latest or nginx.

            • command — (Array<String>)

              The launch command for the container.

            • environment — (map<String>)

              The environment variables of the container.

            • ports — (map<String>)

              The open firewall ports of the container.

          • publicEndpoint — (map)

            An object that describes the endpoint of the deployment.

            • containerName — (String)

              The name of the container entry of the deployment that the endpoint configuration applies to.

            • containerPort — (Integer)

              The port of the specified container to which traffic is forwarded to.

            • healthCheck — (map)

              An object that describes the health check configuration of the container.

              • healthyThreshold — (Integer)

                The number of consecutive health checks successes required before moving the container to the Healthy state. The default value is 2.

              • unhealthyThreshold — (Integer)

                The number of consecutive health check failures required before moving the container to the Unhealthy state. The default value is 2.

              • timeoutSeconds — (Integer)

                The amount of time, in seconds, during which no response means a failed health check. You can specify between 2 and 60 seconds. The default value is 2.

              • intervalSeconds — (Integer)

                The approximate interval, in seconds, between health checks of an individual container. You can specify between 5 and 300 seconds. The default value is 5.

              • path — (String)

                The path on the container on which to perform the health check. The default value is /.

              • successCodes — (String)

                The HTTP codes to use when checking for a successful response from a container. You can specify values between 200 and 499. You can specify multiple values (for example, 200,202) or a range of values (for example, 200-299).

          • createdAt — (Date)

            The timestamp when the deployment was created.

        • isDisabled — (Boolean)

          A Boolean value indicating whether the container service is disabled.

        • principalArn — (String)

          The principal ARN of the container service.

          The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.

        • privateDomainName — (String)

          The private domain name of the container service.

          The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.

        • publicDomainNames — (map<Array<String>>)

          The public domain name of the container service, such as example.com and www.example.com.

          You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container configured as the public endpoint of your container service.

          If you don't specify public domain names, then you can use the default domain of the container service.

          You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the CreateCertificate action to create a certificate for the public domain names you want to use with your container service.

          See CreateContainerService or UpdateContainerService for information about how to specify public domain names for your Lightsail container service.

        • url — (String)

          The publicly accessible URL of the container service.

          If no public endpoint is specified in the currentDeployment, this URL returns a 404 response.

        • privateRegistryAccess — (map)

          An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry (Amazon ECR) private repositories.

          For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide.

          • ecrImagePullerRole — (map)

            An object that describes the activation status of the role that you can use to grant a Lightsail container service access to Amazon ECR private repositories. If the role is activated, the Amazon Resource Name (ARN) of the role is also listed.

            • isActive — (Boolean)

              A Boolean value that indicates whether the role is activated.

            • principalArn — (String)

              The Amazon Resource Name (ARN) of the role, if it is activated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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.

Service Reference:

Examples:

Calling the updateDistribution operation

var params = {
  distributionName: 'STRING_VALUE', /* required */
  cacheBehaviorSettings: {
    allowedHTTPMethods: 'STRING_VALUE',
    cachedHTTPMethods: 'STRING_VALUE',
    defaultTTL: 'NUMBER_VALUE',
    forwardedCookies: {
      cookiesAllowList: [
        'STRING_VALUE',
        /* more items */
      ],
      option: none | allow-list | all
    },
    forwardedHeaders: {
      headersAllowList: [
        Accept | Accept-Charset | Accept-Datetime | Accept-Encoding | Accept-Language | Authorization | CloudFront-Forwarded-Proto | CloudFront-Is-Desktop-Viewer | CloudFront-Is-Mobile-Viewer | CloudFront-Is-SmartTV-Viewer | CloudFront-Is-Tablet-Viewer | CloudFront-Viewer-Country | Host | Origin | Referer,
        /* more items */
      ],
      option: none | allow-list | all
    },
    forwardedQueryStrings: {
      option: true || false,
      queryStringsAllowList: [
        'STRING_VALUE',
        /* more items */
      ]
    },
    maximumTTL: 'NUMBER_VALUE',
    minimumTTL: 'NUMBER_VALUE'
  },
  cacheBehaviors: [
    {
      behavior: dont-cache | cache,
      path: 'STRING_VALUE'
    },
    /* more items */
  ],
  defaultCacheBehavior: {
    behavior: dont-cache | cache
  },
  isEnabled: true || false,
  origin: {
    name: 'STRING_VALUE',
    protocolPolicy: http-only | https-only,
    regionName: us-east-1 | us-east-2 | us-west-1 | us-west-2 | eu-west-1 | eu-west-2 | eu-west-3 | eu-central-1 | ca-central-1 | ap-south-1 | ap-southeast-1 | ap-southeast-2 | ap-northeast-1 | ap-northeast-2 | eu-north-1
  }
};
lightsail.updateDistribution(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution to update.

      Use the GetDistributions action to get a list of distribution names that you can specify.

    • origin — (map)

      An object that describes the origin resource for the distribution, such as a Lightsail instance, bucket, or load balancer.

      The distribution pulls, caches, and serves content from the origin.

      • name — (String)

        The name of the origin resource.

      • regionName — (String)

        The AWS Region name of the origin resource.

        Possible values include:
        • "us-east-1"
        • "us-east-2"
        • "us-west-1"
        • "us-west-2"
        • "eu-west-1"
        • "eu-west-2"
        • "eu-west-3"
        • "eu-central-1"
        • "ca-central-1"
        • "ap-south-1"
        • "ap-southeast-1"
        • "ap-southeast-2"
        • "ap-northeast-1"
        • "ap-northeast-2"
        • "eu-north-1"
      • protocolPolicy — (String)

        The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.

        Possible values include:
        • "http-only"
        • "https-only"
    • defaultCacheBehavior — (map)

      An object that describes the default cache behavior for the distribution.

      • behavior — (String)

        The cache behavior of the distribution.

        The following cache behaviors can be specified:

        • cache - This option is best for static sites. When specified, your distribution caches and serves your entire website as static content. This behavior is ideal for websites with static content that doesn't change depending on who views it, or for websites that don't use cookies, headers, or query strings to personalize content.

        • dont-cache - This option is best for sites that serve a mix of static and dynamic content. When specified, your distribution caches and serve only the content that is specified in the distribution's CacheBehaviorPerPath parameter. This behavior is ideal for websites or web applications that use cookies, headers, and query strings to personalize content for individual users.

        Possible values include:
        • "dont-cache"
        • "cache"
    • cacheBehaviorSettings — (map)

      An object that describes the cache behavior settings for the distribution.

      Note: The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.
      • defaultTTL — (Integer)

        The default amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the content has been updated.

        Note: The value specified applies only when the origin does not add HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.
      • minimumTTL — (Integer)

        The minimum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

        A value of 0 must be specified for minimumTTL if the distribution is configured to forward all headers to the origin.

      • maximumTTL — (Integer)

        The maximum amount of time that objects stay in the distribution's cache before the distribution forwards another request to the origin to determine whether the object has been updated.

        The value specified applies only when the origin adds HTTP headers such as Cache-Control max-age, Cache-Control s-maxage, and Expires to objects.

      • allowedHTTPMethods — (String)

        The HTTP methods that are processed and forwarded to the distribution's origin.

        You can specify the following options:

        • GET,HEAD - The distribution forwards the GET and HEAD methods.

        • GET,HEAD,OPTIONS - The distribution forwards the GET, HEAD, and OPTIONS methods.

        • GET,HEAD,OPTIONS,PUT,PATCH,POST,DELETE - The distribution forwards the GET, HEAD, OPTIONS, PUT, PATCH, POST, and DELETE methods.

        If you specify the third option, you might need to restrict access to your distribution's origin so users can't perform operations that you don't want them to. For example, you might not want users to have permission to delete objects from your origin.

      • cachedHTTPMethods — (String)

        The HTTP method responses that are cached by your distribution.

        You can specify the following options:

        • GET,HEAD - The distribution caches responses to the GET and HEAD methods.

        • GET,HEAD,OPTIONS - The distribution caches responses to the GET, HEAD, and OPTIONS methods.

      • forwardedCookies — (map)

        An object that describes the cookies that are forwarded to the origin. Your content is cached based on the cookies that are forwarded.

        • option — (String)

          Specifies which cookies to forward to the distribution's origin for a cache behavior: all, none, or allow-list to forward only the cookies specified in the cookiesAllowList parameter.

          Possible values include:
          • "none"
          • "allow-list"
          • "all"
        • cookiesAllowList — (Array<String>)

          The specific cookies to forward to your distribution's origin.

      • forwardedHeaders — (map)

        An object that describes the headers that are forwarded to the origin. Your content is cached based on the headers that are forwarded.

        • option — (String)

          The headers that you want your distribution to forward to your origin and base caching on.

          You can configure your distribution to do one of the following:

          • all - Forward all headers to your origin.

          • none - Forward only the default headers.

          • allow-list - Forward only the headers you specify using the headersAllowList parameter.

          Possible values include:
          • "none"
          • "allow-list"
          • "all"
        • headersAllowList — (Array<String>)

          The specific headers to forward to your distribution's origin.

      • forwardedQueryStrings — (map)

        An object that describes the query strings that are forwarded to the origin. Your content is cached based on the query strings that are forwarded.

        • option — (Boolean)

          Indicates whether the distribution forwards and caches based on query strings.

        • queryStringsAllowList — (Array<String>)

          The specific query strings that the distribution forwards to the origin.

          Your distribution will cache content based on the specified query strings.

          If the option parameter is true, then your distribution forwards all query strings, regardless of what you specify using the queryStringsAllowList parameter.

    • cacheBehaviors — (Array<map>)

      An array of objects that describe the per-path cache behavior for the distribution.

      • path — (String)

        The path to a directory or file to cached, or not cache. Use an asterisk symbol to specify wildcard directories (path/to/assets/*), and file types (*.html, *jpg, *js). Directories and file paths are case-sensitive.

        Examples:

        • Specify the following to cache all files in the document root of an Apache web server running on a Lightsail instance.

          var/www/html/

        • Specify the following file to cache only the index page in the document root of an Apache web server.

          var/www/html/index.html

        • Specify the following to cache only the .html files in the document root of an Apache web server.

          var/www/html/*.html

        • Specify the following to cache only the .jpg, .png, and .gif files in the images sub-directory of the document root of an Apache web server.

          var/www/html/images/*.jpg

          var/www/html/images/*.png

          var/www/html/images/*.gif

          Specify the following to cache all files in the images sub-directory of the document root of an Apache web server.

          var/www/html/images/

      • behavior — (String)

        The cache behavior for the specified path.

        You can specify one of the following per-path cache behaviors:

        • cache - This behavior caches the specified path.

        • dont-cache - This behavior doesn't cache the specified path.

        Possible values include:
        • "dont-cache"
        • "cache"
    • isEnabled — (Boolean)

      Indicates whether to enable the distribution.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. To determine if you can update your distribution's bundle, use the GetDistributions action. The ableToUpdateBundle parameter in the result will indicate whether you can currently update your distribution's bundle.

Service Reference:

Examples:

Calling the updateDistributionBundle operation

var params = {
  bundleId: 'STRING_VALUE',
  distributionName: 'STRING_VALUE'
};
lightsail.updateDistributionBundle(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • distributionName — (String)

      The name of the distribution for which to update the bundle.

      Use the GetDistributions action to get a list of distribution names that you can specify.

    • bundleId — (String)

      The bundle ID of the new bundle to apply to your distribution.

      Use the GetDistributionBundles action to get a list of distribution bundle IDs that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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 by domain name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the updateDomainEntry operation

var params = {
  domainEntry: { /* required */
    id: 'STRING_VALUE',
    isAlias: true || false,
    name: 'STRING_VALUE',
    options: {
      '<DomainEntryOptionsKeys>': 'STRING_VALUE',
      /* '<DomainEntryOptionsKeys>': ... */
    },
    target: 'STRING_VALUE',
    type: 'STRING_VALUE'
  },
  domainName: 'STRING_VALUE' /* required */
};
lightsail.updateDomainEntry(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • domainName — (String)

      The name of the domain recordset to update.

    • domainEntry — (map)

      An array of key-value pairs containing information about the domain entry.

      • id — (String)

        The ID of the domain recordset entry.

      • name — (String)

        The name of the domain.

      • target — (String)

        The target IP address (192.0.2.0), or AWS name server (ns-111.awsdns-22.com.).

        For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com. For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net. For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com. Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.

      • isAlias — (Boolean)

        When true, specifies whether the domain entry is an alias used by the Lightsail load balancer, Lightsail container service, Lightsail content delivery network (CDN) distribution, or another Amazon Web Services resource. You can include an alias (A type) record in your request, which points to the DNS name of a load balancer, container service, CDN distribution, or other Amazon Web Services resource and routes traffic to that resource.

      • type — (String)

        The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).

        The following domain entry types can be used:

        • A

        • AAAA

        • CNAME

        • MX

        • NS

        • SOA

        • SRV

        • TXT

      • options — (map<String>)

        (Discontinued) The options for the domain entry.

        Note: In releases prior to November 29, 2017, this parameter was not included in the API response. It is now discontinued.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateInstanceMetadataOptions(params = {}, callback) ⇒ AWS.Request

Modifies the Amazon Lightsail instance metadata parameters on a running or stopped instance. When you modify the parameters on a running instance, the GetInstance or GetInstances API operation initially responds with a state of pending. After the parameter modifications are successfully applied, the state changes to applied in subsequent GetInstance or GetInstances API calls. For more information, see Use IMDSv2 with an Amazon Lightsail instance in the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the updateInstanceMetadataOptions operation

var params = {
  instanceName: 'STRING_VALUE', /* required */
  httpEndpoint: disabled | enabled,
  httpProtocolIpv6: disabled | enabled,
  httpPutResponseHopLimit: 'NUMBER_VALUE',
  httpTokens: optional | required
};
lightsail.updateInstanceMetadataOptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • instanceName — (String)

      The name of the instance for which to update metadata parameters.

    • httpTokens — (String)

      The state of token usage for your instance metadata requests. If the parameter is not specified in the request, the default state is optional.

      If the state is optional, you can choose whether to retrieve instance metadata with a signed token header on your request. If you retrieve the IAM role credentials without a token, the version 1.0 role credentials are returned. If you retrieve the IAM role credentials by using a valid signed token, the version 2.0 role credentials are returned.

      If the state is required, you must send a signed token header with all instance metadata retrieval requests. In this state, retrieving the IAM role credential always returns the version 2.0 credentials. The version 1.0 credentials are not available.

      Possible values include:
      • "optional"
      • "required"
    • httpEndpoint — (String)

      Enables or disables the HTTP metadata endpoint on your instances. If this parameter is not specified, the existing state is maintained.

      If you specify a value of disabled, you cannot access your instance metadata.

      Possible values include:
      • "disabled"
      • "enabled"
    • httpPutResponseHopLimit — (Integer)

      The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the instance metadata requests can travel farther. If no parameter is specified, the existing state is maintained.

    • httpProtocolIpv6 — (String)

      Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only when the HTTP metadata endpoint is enabled.

      Note: This parameter is available only for instances in the Europe (Stockholm) Amazon Web Services Region (eu-north-1).
      Possible values include:
      • "disabled"
      • "enabled"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operation — (map)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateLoadBalancerAttribute(params = {}, callback) ⇒ AWS.Request

Updates the specified attribute for a load balancer. You can only update one attribute at a time.

The update load balancer attribute operation supports tag-based access control via resource tags applied to the resource identified by load balancer name. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the updateLoadBalancerAttribute operation

var params = {
  attributeName: HealthCheckPath | SessionStickinessEnabled | SessionStickiness_LB_CookieDurationSeconds | HttpsRedirectionEnabled | TlsPolicyName, /* required */
  attributeValue: 'STRING_VALUE', /* required */
  loadBalancerName: 'STRING_VALUE' /* required */
};
lightsail.updateLoadBalancerAttribute(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • loadBalancerName — (String)

      The name of the load balancer that you want to modify (my-load-balancer.

    • attributeName — (String)

      The name of the attribute you want to update.

      Possible values include:
      • "HealthCheckPath"
      • "SessionStickinessEnabled"
      • "SessionStickiness_LB_CookieDurationSeconds"
      • "HttpsRedirectionEnabled"
      • "TlsPolicyName"
    • attributeValue — (String)

      The value that you want to specify for the attribute name.

      The following values are supported depending on what you specify for the attributeName request parameter:

      • If you specify HealthCheckPath for the attributeName request parameter, then the attributeValue request parameter must be the path to ping on the target (for example, /weather/us/wa/seattle).

      • If you specify SessionStickinessEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate session stickiness or false to deactivate session stickiness.

      • If you specify SessionStickiness_LB_CookieDurationSeconds for the attributeName request parameter, then the attributeValue request parameter must be an interger that represents the cookie duration in seconds.

      • If you specify HttpsRedirectionEnabled for the attributeName request parameter, then the attributeValue request parameter must be true to activate HTTP to HTTPS redirection or false to deactivate HTTP to HTTPS redirection.

      • If you specify TlsPolicyName for the attributeName request parameter, then the attributeValue request parameter must be the name of the TLS policy.

        Use the GetLoadBalancerTlsPolicies action to get a list of TLS policy names that you can specify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. For more information, see the Amazon Lightsail Developer Guide.

Service Reference:

Examples:

Calling the updateRelationalDatabase operation

var params = {
  relationalDatabaseName: 'STRING_VALUE', /* required */
  applyImmediately: true || false,
  caCertificateIdentifier: 'STRING_VALUE',
  disableBackupRetention: true || false,
  enableBackupRetention: true || false,
  masterUserPassword: 'STRING_VALUE',
  preferredBackupWindow: 'STRING_VALUE',
  preferredMaintenanceWindow: 'STRING_VALUE',
  publiclyAccessible: true || false,
  relationalDatabaseBlueprintId: 'STRING_VALUE',
  rotateMasterUserPassword: true || false
};
lightsail.updateRelationalDatabase(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your Lightsail database resource to update.

    • masterUserPassword — (String)

      The password for the master user. The password can include any printable ASCII character except "/", """, or "@".

      MySQL

      Constraints: Must contain from 8 to 41 characters.

      PostgreSQL

      Constraints: Must contain from 8 to 128 characters.

    • rotateMasterUserPassword — (Boolean)

      When true, the master user password is changed to a new strong password generated by Lightsail.

      Use the get relational database master user password operation to get the new password.

    • preferredBackupWindow — (String)

      The daily time range during which automated backups are created for your database if automated backups are enabled.

      Constraints:

      • Must be in the hh24:mi-hh24:mi format.

        Example: 16:00-16:30

      • Specified in Coordinated Universal Time (UTC).

      • Must not conflict with the preferred maintenance window.

      • Must be at least 30 minutes.

    • preferredMaintenanceWindow — (String)

      The weekly time range during which system maintenance can occur on your database.

      The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.

      Constraints:

      • Must be in the ddd:hh24:mi-ddd:hh24:mi format.

      • Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.

      • Must be at least 30 minutes.

      • Specified in Coordinated Universal Time (UTC).

      • Example: Tue:17:00-Tue:17:30

    • enableBackupRetention — (Boolean)

      When true, enables automated backup retention for your database.

      Updates are applied during the next maintenance window because this can result in an outage.

    • disableBackupRetention — (Boolean)

      When true, disables automated backup retention for your database.

      Disabling backup retention deletes all automated database backups. Before disabling this, you may want to create a snapshot of your database using the create relational database snapshot operation.

      Updates are applied during the next maintenance window because this can result in an outage.

    • publiclyAccessible — (Boolean)

      Specifies the accessibility options for your database. A value of true specifies a database that is available to resources outside of your Lightsail account. A value of false specifies a database that is available only to your Lightsail resources in the same region as your database.

    • applyImmediately — (Boolean)

      When true, applies changes immediately. When false, applies changes during the preferred maintenance window. Some changes may cause an outage.

      Default: false

    • caCertificateIdentifier — (String)

      Indicates the certificate that needs to be associated with the database.

    • relationalDatabaseBlueprintId — (String)

      This parameter is used to update the major version of the database. Enter the blueprintId for the major version that you want to update to.

      Use the GetRelationalDatabaseBlueprints action to get a list of available blueprint IDs.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

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. However, there are two ways in which parameter updates are applied: dynamic or pending-reboot. Parameters marked with a dynamic apply type are applied immediately. Parameters marked with a pending-reboot apply type are applied only after the database is rebooted using the reboot relational database operation.

The update relational database parameters 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.

Examples:

Calling the updateRelationalDatabaseParameters operation

var params = {
  parameters: [ /* required */
    {
      allowedValues: 'STRING_VALUE',
      applyMethod: 'STRING_VALUE',
      applyType: 'STRING_VALUE',
      dataType: 'STRING_VALUE',
      description: 'STRING_VALUE',
      isModifiable: true || false,
      parameterName: 'STRING_VALUE',
      parameterValue: 'STRING_VALUE'
    },
    /* more items */
  ],
  relationalDatabaseName: 'STRING_VALUE' /* required */
};
lightsail.updateRelationalDatabaseParameters(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • relationalDatabaseName — (String)

      The name of your database for which to update parameters.

    • parameters — (Array<map>)

      The database parameters to update.

      • allowedValues — (String)

        Specifies the valid range of values for the parameter.

      • applyMethod — (String)

        Indicates when parameter updates are applied.

        Can be immediate or pending-reboot.

      • applyType — (String)

        Specifies the engine-specific parameter type.

      • dataType — (String)

        Specifies the valid data type for the parameter.

      • description — (String)

        Provides a description of the parameter.

      • isModifiable — (Boolean)

        A Boolean value indicating whether the parameter can be modified.

      • parameterName — (String)

        Specifies the name of the parameter.

      • parameterValue — (String)

        Specifies the value of the parameter.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • operations — (Array<map>)

        An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.

        • id — (String)

          The ID of the operation.

        • resourceName — (String)

          The resource name.

        • resourceType — (String)

          The resource type.

          Possible values include:
          • "ContainerService"
          • "Instance"
          • "StaticIp"
          • "KeyPair"
          • "InstanceSnapshot"
          • "Domain"
          • "PeeredVpc"
          • "LoadBalancer"
          • "LoadBalancerTlsCertificate"
          • "Disk"
          • "DiskSnapshot"
          • "RelationalDatabase"
          • "RelationalDatabaseSnapshot"
          • "ExportSnapshotRecord"
          • "CloudFormationStackRecord"
          • "Alarm"
          • "ContactMethod"
          • "Distribution"
          • "Certificate"
          • "Bucket"
        • createdAt — (Date)

          The timestamp when the operation was initialized (1479816991.349).

        • location — (map)

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone — (String)

            The Availability Zone. Follows the format us-east-2a (case-sensitive).

          • regionName — (String)

            The Amazon Web Services Region name.

            Possible values include:
            • "us-east-1"
            • "us-east-2"
            • "us-west-1"
            • "us-west-2"
            • "eu-west-1"
            • "eu-west-2"
            • "eu-west-3"
            • "eu-central-1"
            • "ca-central-1"
            • "ap-south-1"
            • "ap-southeast-1"
            • "ap-southeast-2"
            • "ap-northeast-1"
            • "ap-northeast-2"
            • "eu-north-1"
        • isTerminal — (Boolean)

          A Boolean value indicating whether the operation is terminal.

        • operationDetails — (String)

          Details about the operation (Debian-1GB-Ohio-1).

        • operationType — (String)

          The type of operation.

          Possible values include:
          • "DeleteKnownHostKeys"
          • "DeleteInstance"
          • "CreateInstance"
          • "StopInstance"
          • "StartInstance"
          • "RebootInstance"
          • "OpenInstancePublicPorts"
          • "PutInstancePublicPorts"
          • "CloseInstancePublicPorts"
          • "AllocateStaticIp"
          • "ReleaseStaticIp"
          • "AttachStaticIp"
          • "DetachStaticIp"
          • "UpdateDomainEntry"
          • "DeleteDomainEntry"
          • "CreateDomain"
          • "DeleteDomain"
          • "CreateInstanceSnapshot"
          • "DeleteInstanceSnapshot"
          • "CreateInstancesFromSnapshot"
          • "CreateLoadBalancer"
          • "DeleteLoadBalancer"
          • "AttachInstancesToLoadBalancer"
          • "DetachInstancesFromLoadBalancer"
          • "UpdateLoadBalancerAttribute"
          • "CreateLoadBalancerTlsCertificate"
          • "DeleteLoadBalancerTlsCertificate"
          • "AttachLoadBalancerTlsCertificate"
          • "CreateDisk"
          • "DeleteDisk"
          • "AttachDisk"
          • "DetachDisk"
          • "CreateDiskSnapshot"
          • "DeleteDiskSnapshot"
          • "CreateDiskFromSnapshot"
          • "CreateRelationalDatabase"
          • "UpdateRelationalDatabase"
          • "DeleteRelationalDatabase"
          • "CreateRelationalDatabaseFromSnapshot"
          • "CreateRelationalDatabaseSnapshot"
          • "DeleteRelationalDatabaseSnapshot"
          • "UpdateRelationalDatabaseParameters"
          • "StartRelationalDatabase"
          • "RebootRelationalDatabase"
          • "StopRelationalDatabase"
          • "EnableAddOn"
          • "DisableAddOn"
          • "PutAlarm"
          • "GetAlarms"
          • "DeleteAlarm"
          • "TestAlarm"
          • "CreateContactMethod"
          • "GetContactMethods"
          • "SendContactMethodVerification"
          • "DeleteContactMethod"
          • "CreateDistribution"
          • "UpdateDistribution"
          • "DeleteDistribution"
          • "ResetDistributionCache"
          • "AttachCertificateToDistribution"
          • "DetachCertificateFromDistribution"
          • "UpdateDistributionBundle"
          • "SetIpAddressType"
          • "CreateCertificate"
          • "DeleteCertificate"
          • "CreateContainerService"
          • "UpdateContainerService"
          • "DeleteContainerService"
          • "CreateContainerServiceDeployment"
          • "CreateContainerServiceRegistryLogin"
          • "RegisterContainerImage"
          • "DeleteContainerImage"
          • "CreateBucket"
          • "DeleteBucket"
          • "CreateBucketAccessKey"
          • "DeleteBucketAccessKey"
          • "UpdateBucketBundle"
          • "UpdateBucket"
          • "SetResourceAccessForBucket"
          • "UpdateInstanceMetadataOptions"
          • "StartGUISession"
          • "StopGUISession"
          • "SetupInstanceHttps"
        • status — (String)

          The status of the operation.

          Possible values include:
          • "NotStarted"
          • "Started"
          • "Failed"
          • "Completed"
          • "Succeeded"
        • statusChangedAt — (Date)

          The timestamp when the status was changed (1479816991.349).

        • errorCode — (String)

          The error code.

        • errorDetails — (String)

          The error details.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.