Module Smaws_Client_Lightsail.Types

type nonrec timestamp = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec string_ = string
type nonrec non_empty_string = string
type nonrec resource_name = string
type nonrec setup_domain_name = string
type nonrec setup_domain_name_list = setup_domain_name list
type nonrec certificate_provider =
  1. | LetsEncrypt
type nonrec setup_request = {
  1. certificate_provider : certificate_provider option;
    (*

    The Certificate Authority (CA) that issues the SSL/TLS certificate.

    *)
  2. domain_names : setup_domain_name_list option;
    (*

    The name of the domain and subdomains that the SSL/TLS certificate secures.

    *)
  3. instance_name : resource_name option;
    (*

    The name of the Lightsail instance.

    *)
}

Returns information that was submitted during the SetupInstanceHttps request. Email information is redacted for privacy.

type nonrec iso_date = Smaws_Lib.CoreTypes.Timestamp.t
type nonrec region_name =
  1. | EU_NORTH_1
  2. | AP_NORTHEAST_2
  3. | AP_NORTHEAST_1
  4. | AP_SOUTHEAST_2
  5. | AP_SOUTHEAST_1
  6. | AP_SOUTH_1
  7. | CA_CENTRAL_1
  8. | EU_CENTRAL_1
  9. | EU_WEST_3
  10. | EU_WEST_2
  11. | EU_WEST_1
  12. | US_WEST_2
  13. | US_WEST_1
  14. | US_EAST_2
  15. | US_EAST_1
type nonrec resource_location = {
  1. region_name : region_name option;
    (*

    The Amazon Web Services Region name.

    *)
  2. availability_zone : string_ option;
    (*

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

    *)
}

Describes the resource location.

type nonrec resource_type =
  1. | Bucket
  2. | Certificate
  3. | Distribution
  4. | ContactMethod
  5. | Alarm
  6. | CloudFormationStackRecord
  7. | ExportSnapshotRecord
  8. | RelationalDatabaseSnapshot
  9. | RelationalDatabase
  10. | DiskSnapshot
  11. | Disk
  12. | LoadBalancerTlsCertificate
  13. | LoadBalancer
  14. | PeeredVpc
  15. | Domain
  16. | InstanceSnapshot
  17. | KeyPair
  18. | StaticIp
  19. | Instance
  20. | ContainerService
type nonrec setup_history_resource = {
  1. resource_type : resource_type option;
    (*

    The Lightsail resource type. For example, Instance.

    *)
  2. location : resource_location option;
  3. created_at : iso_date option;
    (*

    The timestamp for when the resource was created.

    *)
  4. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the Lightsail resource.

    *)
  5. name : resource_name option;
    (*

    The name of the Lightsail resource.

    *)
}

The Lightsail resource that SetupHistory was ran on.

type nonrec setup_status =
  1. | InProgress
  2. | Failed
  3. | Succeeded
type nonrec setup_execution_details = {
  1. version : string_ option;
    (*

    The current version of the script..

    *)
  2. standard_output : string_ option;
    (*

    The text written by the command to stdout.

    *)
  3. standard_error : string_ option;
    (*

    The text written by the command to stderr.

    *)
  4. status : setup_status option;
    (*

    The status of the SetupInstanceHttps request.

    *)
  5. name : non_empty_string option;
    (*

    The name of the target resource.

    *)
  6. date_time : iso_date option;
    (*

    The timestamp for when the request was run.

    *)
  7. command : string_ option;
    (*

    The command that was executed.

    *)
}

Returns details about the commands that were run.

type nonrec setup_execution_details_list = setup_execution_details list
type nonrec setup_history = {
  1. status : setup_status option;
    (*

    The status of the request.

    *)
  2. execution_details : setup_execution_details_list option;
    (*

    Describes the full details of the request.

    *)
  3. resource : setup_history_resource option;
    (*

    The target resource name for the request.

    *)
  4. request : setup_request option;
    (*

    Information about the specified request.

    *)
  5. operation_id : non_empty_string option;
    (*

    A GUID that's used to identify the operation.

    *)
}

Returns a list of the commands that were ran on the target resource.

The status of each command is also returned.

type nonrec setup_history_list = setup_history list
type nonrec long = int
type nonrec integer = int
type nonrec float_ = float
type nonrec double = float
type nonrec boolean_ = bool
type nonrec viewer_minimum_tls_protocol_version_enum =
  1. | TLSv12_2021
  2. | TLSv12_2019
  3. | TLSv12_2018
  4. | TLSv11_2016
type nonrec operation_type =
  1. | SetupInstanceHttps
  2. | StopGUISession
  3. | StartGUISession
  4. | UpdateInstanceMetadataOptions
  5. | SetResourceAccessForBucket
  6. | UpdateBucket
  7. | UpdateBucketBundle
  8. | DeleteBucketAccessKey
  9. | CreateBucketAccessKey
  10. | DeleteBucket
  11. | CreateBucket
  12. | DeleteContainerImage
  13. | RegisterContainerImage
  14. | CreateContainerServiceRegistryLogin
  15. | CreateContainerServiceDeployment
  16. | DeleteContainerService
  17. | UpdateContainerService
  18. | CreateContainerService
  19. | DeleteCertificate
  20. | CreateCertificate
  21. | SetIpAddressType
  22. | UpdateDistributionBundle
  23. | DetachCertificateFromDistribution
  24. | AttachCertificateToDistribution
  25. | ResetDistributionCache
  26. | DeleteDistribution
  27. | UpdateDistribution
  28. | CreateDistribution
  29. | DeleteContactMethod
  30. | SendContactMethodVerification
  31. | GetContactMethods
  32. | CreateContactMethod
  33. | TestAlarm
  34. | DeleteAlarm
  35. | GetAlarms
  36. | PutAlarm
  37. | DisableAddOn
  38. | EnableAddOn
  39. | StopRelationalDatabase
  40. | RebootRelationalDatabase
  41. | StartRelationalDatabase
  42. | UpdateRelationalDatabaseParameters
  43. | DeleteRelationalDatabaseSnapshot
  44. | CreateRelationalDatabaseSnapshot
  45. | CreateRelationalDatabaseFromSnapshot
  46. | DeleteRelationalDatabase
  47. | UpdateRelationalDatabase
  48. | CreateRelationalDatabase
  49. | CreateDiskFromSnapshot
  50. | DeleteDiskSnapshot
  51. | CreateDiskSnapshot
  52. | DetachDisk
  53. | AttachDisk
  54. | DeleteDisk
  55. | CreateDisk
  56. | AttachLoadBalancerTlsCertificate
  57. | DeleteLoadBalancerTlsCertificate
  58. | CreateLoadBalancerTlsCertificate
  59. | UpdateLoadBalancerAttribute
  60. | DetachInstancesFromLoadBalancer
  61. | AttachInstancesToLoadBalancer
  62. | DeleteLoadBalancer
  63. | CreateLoadBalancer
  64. | CreateInstancesFromSnapshot
  65. | DeleteInstanceSnapshot
  66. | CreateInstanceSnapshot
  67. | DeleteDomain
  68. | CreateDomain
  69. | DeleteDomainEntry
  70. | UpdateDomainEntry
  71. | DetachStaticIp
  72. | AttachStaticIp
  73. | ReleaseStaticIp
  74. | AllocateStaticIp
  75. | CloseInstancePublicPorts
  76. | PutInstancePublicPorts
  77. | OpenInstancePublicPorts
  78. | RebootInstance
  79. | StartInstance
  80. | StopInstance
  81. | CreateInstance
  82. | DeleteInstance
  83. | DeleteKnownHostKeys
type nonrec operation_status =
  1. | Succeeded
  2. | Completed
  3. | Failed
  4. | Started
  5. | NotStarted
type nonrec operation = {
  1. error_details : string_ option;
    (*

    The error details.

    *)
  2. error_code : string_ option;
    (*

    The error code.

    *)
  3. status_changed_at : iso_date option;
    (*

    The timestamp when the status was changed (1479816991.349).

    *)
  4. status : operation_status option;
    (*

    The status of the operation.

    *)
  5. operation_type : operation_type option;
    (*

    The type of operation.

    *)
  6. operation_details : string_ option;
    (*

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

    *)
  7. is_terminal : boolean_ option;
    (*

    A Boolean value indicating whether the operation is terminal.

    *)
  8. location : resource_location option;
    (*

    The Amazon Web Services Region and Availability Zone.

    *)
  9. created_at : iso_date option;
    (*

    The timestamp when the operation was initialized (1479816991.349).

    *)
  10. resource_type : resource_type option;
    (*

    The resource type.

    *)
  11. resource_name : resource_name option;
    (*

    The resource name.

    *)
  12. id : non_empty_string option;
    (*

    The ID of the operation.

    *)
}

Describes the API operation.

type nonrec operation_list = operation list
type nonrec update_relational_database_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec sensitive_string = string
type nonrec update_relational_database_request = {
  1. relational_database_blueprint_id : string_ option;
    (*

    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.

    *)
  2. ca_certificate_identifier : string_ option;
    (*

    Indicates the certificate that needs to be associated with the database.

    *)
  3. apply_immediately : boolean_ option;
    (*

    When true, applies changes immediately. When false, applies changes during the preferred maintenance window. Some changes may cause an outage.

    Default: false

    *)
  4. publicly_accessible : boolean_ option;
    (*

    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.

    *)
  5. disable_backup_retention : boolean_ option;
    (*

    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.

    *)
  6. enable_backup_retention : boolean_ option;
    (*

    When true, enables automated backup retention for your database.

    Updates are applied during the next maintenance window because this can result in an outage.

    *)
  7. preferred_maintenance_window : string_ option;
    (*

    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
    *)
  8. preferred_backup_window : string_ option;
    (*

    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.
    *)
  9. rotate_master_user_password : boolean_ option;
    (*

    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.

    *)
  10. master_user_password : sensitive_string option;
    (*

    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.

    *)
  11. relational_database_name : resource_name;
    (*

    The name of your Lightsail database resource to update.

    *)
}
type nonrec update_relational_database_parameters_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec relational_database_parameter = {
  1. parameter_value : string_ option;
    (*

    Specifies the value of the parameter.

    *)
  2. parameter_name : string_ option;
    (*

    Specifies the name of the parameter.

    *)
  3. is_modifiable : boolean_ option;
    (*

    A Boolean value indicating whether the parameter can be modified.

    *)
  4. description : string_ option;
    (*

    Provides a description of the parameter.

    *)
  5. data_type : string_ option;
    (*

    Specifies the valid data type for the parameter.

    *)
  6. apply_type : string_ option;
    (*

    Specifies the engine-specific parameter type.

    *)
  7. apply_method : string_ option;
    (*

    Indicates when parameter updates are applied.

    Can be immediate or pending-reboot.

    *)
  8. allowed_values : string_ option;
    (*

    Specifies the valid range of values for the parameter.

    *)
}

Describes the parameters of a database.

type nonrec relational_database_parameter_list = relational_database_parameter list
type nonrec update_relational_database_parameters_request = {
  1. parameters : relational_database_parameter_list;
    (*

    The database parameters to update.

    *)
  2. relational_database_name : resource_name;
    (*

    The name of your database for which to update parameters.

    *)
}
type nonrec unauthenticated_exception = {
  1. tip : string_ option;
  2. message : string_ option;
  3. docs : string_ option;
  4. code : string_ option;
}

Lightsail throws this exception when the user has not been authenticated.

type nonrec service_exception = {
  1. tip : string_ option;
  2. message : string_ option;
  3. docs : string_ option;
  4. code : string_ option;
}

A general service exception.

type nonrec operation_failure_exception = {
  1. tip : string_ option;
  2. message : string_ option;
  3. docs : string_ option;
  4. code : string_ option;
}

Lightsail throws this exception when an operation fails to execute.

type nonrec not_found_exception = {
  1. tip : string_ option;
  2. message : string_ option;
  3. docs : string_ option;
  4. code : string_ option;
}

Lightsail throws this exception when it cannot find a resource.

type nonrec invalid_input_exception = {
  1. tip : string_ option;
  2. message : string_ option;
  3. docs : string_ option;
  4. code : string_ option;
}

Lightsail throws this exception when user input does not conform to the validation rules of an input field.

Domain and distribution APIs are only available in the N. Virginia (us-east-1) Amazon Web Services Region. Please set your Amazon Web Services Region configuration to us-east-1 to create, view, or edit these resources.

type nonrec account_setup_in_progress_exception = {
  1. tip : string_ option;
  2. message : string_ option;
  3. docs : string_ option;
  4. code : string_ option;
}

Lightsail throws this exception when an account is still in the setup in progress state.

type nonrec access_denied_exception = {
  1. tip : string_ option;
  2. message : string_ option;
  3. docs : string_ option;
  4. code : string_ option;
}

Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.

type nonrec update_load_balancer_attribute_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec load_balancer_attribute_name =
  1. | TlsPolicyName
  2. | HttpsRedirectionEnabled
  3. | SessionStickiness_LB_CookieDurationSeconds
  4. | SessionStickinessEnabled
  5. | HealthCheckPath
type nonrec string_max256 = string
type nonrec update_load_balancer_attribute_request = {
  1. attribute_value : string_max256;
    (*

    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.

    *)
  2. attribute_name : load_balancer_attribute_name;
    (*

    The name of the attribute you want to update.

    *)
  3. load_balancer_name : resource_name;
    (*

    The name of the load balancer that you want to modify (my-load-balancer.

    *)
}
type nonrec update_instance_metadata_options_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec http_tokens =
  1. | Required
  2. | Optional
type nonrec http_endpoint =
  1. | Enabled
  2. | Disabled
type nonrec http_protocol_ipv6 =
  1. | Enabled
  2. | Disabled
type nonrec update_instance_metadata_options_request = {
  1. http_protocol_ipv6 : http_protocol_ipv6 option;
    (*

    Enables or disables the IPv6 endpoint for the instance metadata service. This setting applies only when the HTTP metadata endpoint is enabled.

    This parameter is available only for instances in the Europe (Stockholm) Amazon Web Services Region (eu-north-1).

    *)
  2. http_put_response_hop_limit : integer option;
    (*

    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.

    *)
  3. http_endpoint : http_endpoint option;
    (*

    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.

    *)
  4. http_tokens : http_tokens option;
    (*

    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.

    *)
  5. instance_name : resource_name;
    (*

    The name of the instance for which to update metadata parameters.

    *)
}
type nonrec update_domain_entry_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec domain_name = string
type nonrec domain_entry_type = string
type nonrec domain_entry_options_keys = string
type nonrec domain_entry_options = (domain_entry_options_keys * string_) list
type nonrec domain_entry = {
  1. options : domain_entry_options option;
    (*

    (Discontinued) The options for the domain entry.

    In releases prior to November 29, 2017, this parameter was not included in the API response. It is now discontinued.

    *)
  2. type_ : domain_entry_type option;
    (*

    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
    *)
  3. is_alias : boolean_ option;
    (*

    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.

    *)
  4. target : string_ option;
    (*

    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.

    *)
  5. name : domain_name option;
    (*

    The name of the domain.

    *)
  6. id : non_empty_string option;
    (*

    The ID of the domain recordset entry.

    *)
}

Describes a domain recordset entry.

type nonrec update_domain_entry_request = {
  1. domain_entry : domain_entry;
    (*

    An array of key-value pairs containing information about the domain entry.

    *)
  2. domain_name : domain_name;
    (*

    The name of the domain recordset to update.

    *)
}
type nonrec update_distribution_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec origin_protocol_policy_enum =
  1. | HTTPSOnly
  2. | HTTPOnly
type nonrec input_origin = {
  1. response_timeout : integer option;
    (*

    The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.

    *)
  2. protocol_policy : origin_protocol_policy_enum option;
    (*

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

    *)
  3. region_name : region_name option;
    (*

    The AWS Region name of the origin resource.

    *)
  4. name : resource_name option;
    (*

    The name of the origin resource.

    *)
}

Describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.

An origin can be a Lightsail instance, bucket, container service, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers via a worldwide network of edge servers.

type nonrec behavior_enum =
  1. | CacheSetting
  2. | DontCacheSetting
type nonrec cache_behavior = {
  1. behavior : behavior_enum option;
    (*

    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.
    *)
}

Describes the default cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

type nonrec forward_values =
  1. | All
  2. | AllowList
  3. | None
type nonrec string_list = string_ list

Describes whether an Amazon Lightsail content delivery network (CDN) distribution forwards cookies to the origin and, if so, which ones.

For the cookies that you specify, your distribution caches separate versions of the specified content based on the cookie values in viewer requests.

type nonrec header_enum =
  1. | Referer
  2. | Origin
  3. | Host
  4. | CloudFrontViewerCountry
  5. | CloudFrontIsTabletViewer
  6. | CloudFrontIsSmartTVViewer
  7. | CloudFrontIsMobileViewer
  8. | CloudFrontIsDesktopViewer
  9. | CloudFrontForwardedProto
  10. | Authorization
  11. | AcceptLanguage
  12. | AcceptEncoding
  13. | AcceptDatetime
  14. | AcceptCharset
  15. | Accept
type nonrec header_forward_list = header_enum list
type nonrec header_object = {
  1. headers_allow_list : header_forward_list option;
    (*

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

    *)
  2. option_ : forward_values option;
    (*

    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.
    *)
}

Describes the request headers that a Lightsail distribution bases caching on.

For the headers that you specify, your distribution caches separate versions of the specified content based on the header values in viewer requests. For example, suppose viewer requests for logo.jpg contain a custom product header that has a value of either acme or apex, and you configure your distribution to cache your content based on values in the product header. Your distribution forwards the product header to the origin and caches the response from the origin once for each header value.

type nonrec query_string_object = {
  1. query_strings_allow_list : string_list option;
    (*

    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.

    *)
  2. option_ : boolean_ option;
    (*

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

    *)
}

Describes the query string parameters that an Amazon Lightsail content delivery network (CDN) distribution to bases caching on.

For the query strings that you specify, your distribution caches separate versions of the specified content based on the query string values in viewer requests.

type nonrec cache_settings = {
  1. forwarded_query_strings : query_string_object option;
    (*

    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.

    *)
  2. forwarded_headers : header_object option;
    (*

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

    *)
  3. forwarded_cookies : cookie_object option;
    (*

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

    *)
  4. cached_http_methods : non_empty_string option;
    (*

    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.
    *)
  5. allowed_http_methods : non_empty_string option;
    (*

    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.

    *)
  6. maximum_tt_l : long option;
    (*

    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.

    *)
  7. minimum_tt_l : long option;
    (*

    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.

    *)
  8. default_tt_l : long option;
    (*

    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.

    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.

    *)
}

Describes the cache settings of an Amazon Lightsail content delivery network (CDN) distribution.

These settings apply only to your distribution's cacheBehaviors (including the defaultCacheBehavior) that have a behavior of cache.

type nonrec cache_behavior_per_path = {
  1. behavior : behavior_enum option;
    (*

    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.
    *)
  2. path : string_ option;
    (*

    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/

    *)
}

Describes the per-path cache behavior of an Amazon Lightsail content delivery network (CDN) distribution.

A per-path cache behavior is used to override, or add an exception to, the default cache behavior of a distribution. For example, if the cacheBehavior is set to cache, then a per-path cache behavior can be used to specify a directory, file, or file type that your distribution will cache. Alternately, if the distribution's cacheBehavior is dont-cache, then a per-path cache behavior can be used to specify a directory, file, or file type that your distribution will not cache.

type nonrec cache_behavior_list = cache_behavior_per_path list
type nonrec update_distribution_request = {
  1. use_default_certificate : boolean_ option;
    (*

    Indicates whether the default SSL/TLS certificate is attached to the distribution. The default value is true. When true, the distribution uses the default domain name such as d111111abcdef8.cloudfront.net.

    Set this value to false to attach a new certificate to the distribution.

    *)
  2. certificate_name : resource_name option;
    (*

    The name of the SSL/TLS certificate that you want to attach to the 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.

    *)
  3. viewer_minimum_tls_protocol_version : viewer_minimum_tls_protocol_version_enum option;
    (*

    Use this parameter to update the minimum TLS protocol version for the SSL/TLS certificate that's attached to the distribution.

    *)
  4. is_enabled : boolean_ option;
    (*

    Indicates whether to enable the distribution.

    *)
  5. cache_behaviors : cache_behavior_list option;
    (*

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

    *)
  6. cache_behavior_settings : cache_settings option;
    (*

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

    The cacheBehaviorSettings specified in your UpdateDistributionRequest will replace your distribution's existing settings.

    *)
  7. default_cache_behavior : cache_behavior option;
    (*

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

    *)
  8. origin : input_origin option;
    (*

    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.

    *)
  9. distribution_name : resource_name;
    (*

    The name of the distribution to update.

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

    *)
}
type nonrec update_distribution_bundle_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec update_distribution_bundle_request = {
  1. bundle_id : string_ option;
    (*

    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.

    *)
  2. distribution_name : resource_name option;
    (*

    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.

    *)
}
type nonrec container_service_name = string
type nonrec tag_key = string
type nonrec tag_value = string
type nonrec tag = {
  1. value : tag_value option;
    (*

    The value of the tag.

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

    *)
  2. key : tag_key option;
    (*

    The key of the tag.

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

    *)
}

Describes a tag key and optional value assigned to an Amazon Lightsail resource.

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

type nonrec tag_list = tag list
type nonrec container_service_power_name =
  1. | Xlarge
  2. | Large
  3. | Medium
  4. | Small
  5. | Micro
  6. | Nano
type nonrec container_service_state =
  1. | DEPLOYING
  2. | DISABLED
  3. | DELETING
  4. | UPDATING
  5. | RUNNING
  6. | READY
  7. | PENDING
type nonrec container_service_state_detail_code =
  1. | UNKNOWN_ERROR
  2. | CERTIFICATE_LIMIT_EXCEEDED
  3. | ACTIVATING_DEPLOYMENT
  4. | EVALUATING_HEALTH_CHECK
  5. | CREATING_DEPLOYMENT
  6. | PROVISIONING_SERVICE
  7. | PROVISIONING_CERTIFICATE
  8. | CREATING_NETWORK_INFRASTRUCTURE
  9. | CREATING_SYSTEM_RESOURCES
type nonrec container_service_state_detail = {
  1. message : string_ option;
    (*

    A message that provides more information for the state code.

    The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.

    *)
  2. code : container_service_state_detail_code option;
    (*

    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.
    *)
}

Describes the current state of a container service.

type nonrec container_service_scale = int
type nonrec container_service_deployment_state =
  1. | FAILED
  2. | INACTIVE
  3. | ACTIVE
  4. | ACTIVATING
type nonrec environment = (string_ * string_) list
type nonrec container_service_protocol =
  1. | UDP
  2. | TCP
  3. | HTTPS
  4. | HTTP
type nonrec port_map = (string_ * container_service_protocol) list
type nonrec container = {
  1. ports : port_map option;
    (*

    The open firewall ports of the container.

    *)
  2. environment : environment option;
    (*

    The environment variables of the container.

    *)
  3. command : string_list option;
    (*

    The launch command for the container.

    *)
  4. image : string_ option;
    (*

    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.

    *)
}

Describes the settings of a container that will be launched, or that is launched, to an Amazon Lightsail container service.

type nonrec container_name = string
type nonrec container_map = (container_name * container) list
type nonrec container_service_health_check_config = {
  1. success_codes : string_ option;
    (*

    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).

    *)
  2. path : string_ option;
    (*

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

    *)
  3. interval_seconds : integer option;
    (*

    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.

    *)
  4. timeout_seconds : integer option;
    (*

    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.

    *)
  5. unhealthy_threshold : integer option;
    (*

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

    *)
  6. healthy_threshold : integer option;
    (*

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

    *)
}

Describes the health check configuration of an Amazon Lightsail container service.

type nonrec container_service_endpoint = {
  1. health_check : container_service_health_check_config option;
    (*

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

    *)
  2. container_port : integer option;
    (*

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

    *)
  3. container_name : string_ option;
    (*

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

    *)
}

Describes the public endpoint configuration of a deployment of an Amazon Lightsail container service.

type nonrec container_service_deployment = {
  1. created_at : iso_date option;
    (*

    The timestamp when the deployment was created.

    *)
  2. public_endpoint : container_service_endpoint option;
    (*

    An object that describes the endpoint of the deployment.

    *)
  3. containers : container_map option;
    (*

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

    *)
  4. state : container_service_deployment_state option;
    (*

    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.
    *)
  5. version : integer option;
    (*

    The version number of the deployment.

    *)
}

Describes a container deployment configuration of an 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.

type nonrec container_service_public_domains_list = string_ list
type nonrec container_service_public_domains = (string_ * container_service_public_domains_list) list
type nonrec container_service_ecr_image_puller_role = {
  1. principal_arn : string_ option;
    (*

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

    *)
  2. is_active : boolean_ option;
    (*

    A Boolean value that indicates whether the role is activated.

    *)
}

Describes the activation status of the role that you can use to grant an Amazon Lightsail container service access to Amazon Elastic Container Registry (Amazon ECR) private repositories.

When activated, Lightsail creates an Identity and Access Management (IAM) role for the specified Lightsail container service. You can use the ARN of the role to create a trust relationship between your Lightsail container service and an Amazon ECR private repository in your Amazon Web Services account. This allows your container service to pull images from 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.

type nonrec private_registry_access = {
  1. ecr_image_puller_role : container_service_ecr_image_puller_role option;
    (*

    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.

    *)
}

Describes the configuration for an Amazon Lightsail 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.

type nonrec container_service = {
  1. private_registry_access : private_registry_access option;
    (*

    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.

    *)
  2. url : string_ option;
    (*

    The publicly accessible URL of the container service.

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

    *)
  3. public_domain_names : container_service_public_domains option;
    (*

    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.

    *)
  4. private_domain_name : string_ option;
    (*

    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.

    *)
  5. principal_arn : string_ option;
    (*

    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.

    *)
  6. is_disabled : boolean_ option;
    (*

    A Boolean value indicating whether the container service is disabled.

    *)
  7. next_deployment : container_service_deployment option;
    (*

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

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

    *)
  8. current_deployment : container_service_deployment option;
    (*

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

    *)
  9. scale : container_service_scale option;
    (*

    The scale specification of the container service.

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

    *)
  10. state_detail : container_service_state_detail option;
    (*

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

    The state detail is populated only when a container service is in a PENDING, DEPLOYING, or UPDATING state.

    *)
  11. state : container_service_state option;
    (*

    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.
    *)
  12. power_id : string_ option;
    (*

    The ID of the power of the container service.

    *)
  13. power : container_service_power_name option;
    (*

    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.

    *)
  14. tags : tag_list option;
    (*

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

    *)
  15. resource_type : resource_type option;
    (*

    The Lightsail resource type of the container service.

    *)
  16. location : resource_location option;
    (*

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

    *)
  17. created_at : iso_date option;
    (*

    The timestamp when the container service was created.

    *)
  18. arn : non_empty_string option;
    (*

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

    *)
  19. container_service_name : container_service_name option;
    (*

    The name of the container service.

    *)
}

Describes an Amazon Lightsail container service.

type nonrec update_container_service_result = {
  1. container_service : container_service option;
    (*

    An object that describes a container service.

    *)
}
type nonrec container_service_ecr_image_puller_role_request = {
  1. is_active : boolean_ option;
    (*

    A Boolean value that indicates whether to activate the role.

    *)
}

Describes 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.

When activated, Lightsail creates an Identity and Access Management (IAM) role for the specified Lightsail container service. You can use the ARN of the role to create a trust relationship between your Lightsail container service and an Amazon ECR private repository in your Amazon Web Services account. This allows your container service to pull images from 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.

type nonrec private_registry_access_request = {
  1. ecr_image_puller_role : container_service_ecr_image_puller_role_request option;
    (*

    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.

    *)
}

Describes a request to configure an Amazon Lightsail 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.

type nonrec update_container_service_request = {
  1. private_registry_access : private_registry_access_request option;
    (*

    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.

    *)
  2. public_domain_names : container_service_public_domains option;
    (*

    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.

    *)
  3. is_disabled : boolean_ option;
    (*

    A Boolean value to indicate whether the container service is disabled.

    *)
  4. scale : container_service_scale option;
    (*

    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.

    *)
  5. power : container_service_power_name option;
    (*

    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.

    *)
  6. service_name : container_service_name;
    (*

    The name of the container service to update.

    *)
}
type nonrec access_type =
  1. | Private
  2. | Public
type nonrec access_rules = {
  1. allow_public_overrides : boolean_ option;
    (*

    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.

    *)
  2. get_object : access_type option;
    (*

    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.

    *)
}

Describes the anonymous access permissions for an Amazon Lightsail bucket and its objects.

For more information about bucket access permissions, see Understanding bucket permissions in Amazon Lightsail in the

Amazon Lightsail Developer Guide.

type nonrec bucket_name = string
type nonrec partner_id_list = non_empty_string list
type nonrec resource_receiving_access = {
  1. resource_type : non_empty_string option;
    (*

    The Lightsail resource type (for example, Instance).

    *)
  2. name : non_empty_string option;
    (*

    The name of the Lightsail instance.

    *)
}

Describes an Amazon Lightsail instance that has access to a Lightsail bucket.

type nonrec access_receiver_list = resource_receiving_access list
type nonrec bucket_state = {
  1. message : string_ option;
    (*

    A message that describes the state of the bucket.

    *)
  2. code : non_empty_string option;
    (*

    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.
    *)
}

Describes the state of an Amazon Lightsail bucket.

type nonrec bucket_access_log_prefix = string
type nonrec bucket_access_log_config = {
  1. prefix : bucket_access_log_prefix option;
    (*

    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).

    This parameter can be optionally specified when enabling the access log for a bucket, and should be omitted when disabling the access log.

    *)
  2. destination : bucket_name option;
    (*

    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.

    This parameter is required when enabling the access log for a bucket, and should be omitted when disabling the access log.

    *)
  3. enabled : boolean_;
    (*

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

    *)
}

Describes the access log configuration for a bucket in the Amazon Lightsail object storage service.

For more information about bucket access logs, see Logging bucket requests using access logging in Amazon Lightsail in the Amazon Lightsail Developer Guide.

type nonrec bucket = {
  1. access_log_config : bucket_access_log_config option;
    (*

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

    *)
  2. state : bucket_state option;
    (*

    An object that describes the state of the bucket.

    *)
  3. resources_receiving_access : access_receiver_list option;
    (*

    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.

    *)
  4. readonly_access_accounts : partner_id_list option;
    (*

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

    *)
  5. able_to_update_bundle : boolean_ option;
    (*

    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.

    *)
  6. object_versioning : non_empty_string option;
    (*

    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.
    *)
  7. tags : tag_list option;
    (*

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

    *)
  8. support_code : non_empty_string option;
    (*

    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.

    *)
  9. name : bucket_name option;
    (*

    The name of the bucket.

    *)
  10. location : resource_location option;
    (*

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

    *)
  11. url : non_empty_string option;
    (*

    The URL of the bucket.

    *)
  12. created_at : iso_date option;
    (*

    The timestamp when the distribution was created.

    *)
  13. bundle_id : non_empty_string option;
    (*

    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.

    *)
  14. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the bucket.

    *)
  15. access_rules : access_rules option;
    (*

    An object that describes the access rules of the bucket.

    *)
  16. resource_type : non_empty_string option;
    (*

    The Lightsail resource type of the bucket.

    *)
}

Describes an Amazon Lightsail bucket.

type nonrec update_bucket_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
  2. bucket : bucket option;
    (*

    An object that describes the bucket that is updated.

    *)
}
type nonrec update_bucket_request = {
  1. access_log_config : bucket_access_log_config option;
    (*

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

    *)
  2. readonly_access_accounts : partner_id_list option;
    (*

    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.

    *)
  3. versioning : non_empty_string option;
    (*

    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.
    *)
  4. access_rules : access_rules option;
    (*

    An object that sets the public accessibility of objects in the specified bucket.

    *)
  5. bucket_name : bucket_name;
    (*

    The name of the bucket to update.

    *)
}
type nonrec update_bucket_bundle_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec update_bucket_bundle_request = {
  1. bundle_id : non_empty_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.

    *)
  2. bucket_name : bucket_name;
    (*

    The name of the bucket for which to update the bundle.

    *)
}
type nonrec untag_resource_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec resource_arn = string
type nonrec tag_key_list = tag_key list
type nonrec untag_resource_request = {
  1. tag_keys : tag_key_list;
    (*

    The tag keys to delete from the specified resource.

    *)
  2. resource_arn : resource_arn option;
    (*

    The Amazon Resource Name (ARN) of the resource from which you want to remove a tag.

    *)
  3. resource_name : resource_name;
    (*

    The name of the resource from which you are removing a tag.

    *)
}
type nonrec unpeer_vpc_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec unpeer_vpc_request = unit
type nonrec treat_missing_data =
  1. | Missing
  2. | Ignore
  3. | NotBreaching
  4. | Breaching
type nonrec time_period = {
  1. end_ : iso_date option;
    (*

    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.

    *)
  2. start : iso_date option;
    (*

    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.

    *)
}

Sets the start date and end date for retrieving a cost estimate. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

type nonrec time_of_day = string
type nonrec test_alarm_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec alarm_state =
  1. | INSUFFICIENT_DATA
  2. | ALARM
  3. | OK
type nonrec test_alarm_request = {
  1. state : alarm_state;
    (*

    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.
    *)
  2. alarm_name : resource_name;
    (*

    The name of the alarm to test.

    *)
}
type nonrec tag_resource_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec tag_resource_request = {
  1. tags : tag_list;
    (*

    The tag key and optional value.

    *)
  2. resource_arn : resource_arn option;
    (*

    The Amazon Resource Name (ARN) of the resource to which you want to add a tag.

    *)
  3. resource_name : resource_name;
    (*

    The name of the resource to which you are adding tags.

    *)
}
type nonrec subject_alternative_name_list = domain_name list
type nonrec stop_relational_database_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec stop_relational_database_request = {
  1. relational_database_snapshot_name : resource_name option;
    (*

    The name of your new database snapshot to be created before stopping your database.

    *)
  2. relational_database_name : resource_name;
    (*

    The name of your database to stop.

    *)
}
type nonrec stop_instance_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec stop_instance_request = {
  1. force : boolean_ option;
    (*

    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.

    *)
  2. instance_name : resource_name;
    (*

    The name of the instance (a virtual private server) to stop.

    *)
}
type nonrec stop_instance_on_idle_request = {
  1. duration : string_ option;
    (*

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

    *)
  2. threshold : string_ option;
    (*

    The value to compare with the duration.

    *)
}

Describes a request to create or edit the StopInstanceOnIdle add-on.

This add-on only applies to Lightsail for Research resources.

type nonrec stop_gui_session_result = {
  1. operations : operation_list option;
    (*

    The available API operations.

    *)
}
type nonrec stop_gui_session_request = {
  1. resource_name : resource_name;
    (*

    The resource name.

    *)
}
type nonrec status_type =
  1. | Inactive
  2. | Active
type nonrec status =
  1. | FailedStoppingGUISession
  2. | FailedStartingGUISession
  3. | FailedInstanceCreation
  4. | SettingUpInstance
  5. | Stopping
  6. | Stopped
  7. | Starting
  8. | Started
  9. | NotStarted
  10. | StartExpired
type nonrec ip_address = string
type nonrec static_ip = {
  1. is_attached : boolean_ option;
    (*

    A Boolean value indicating whether the static IP is attached.

    *)
  2. attached_to : resource_name option;
    (*

    The instance where the static IP is attached (Amazon_Linux-1GB-Ohio-1).

    *)
  3. ip_address : ip_address option;
    (*

    The static IP address.

    *)
  4. resource_type : resource_type option;
    (*

    The resource type (usually StaticIp).

    *)
  5. location : resource_location option;
    (*

    The region and Availability Zone where the static IP was created.

    *)
  6. created_at : iso_date option;
    (*

    The timestamp when the static IP was created (1479735304.222).

    *)
  7. support_code : string_ option;
    (*

    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.

    *)
  8. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the static IP (arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

    *)
  9. name : resource_name option;
    (*

    The name of the static IP (StaticIP-Ohio-EXAMPLE).

    *)
}

Describes a static IP.

type nonrec static_ip_list = static_ip list
type nonrec start_relational_database_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec start_relational_database_request = {
  1. relational_database_name : resource_name;
    (*

    The name of your database to start.

    *)
}
type nonrec start_instance_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec start_instance_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance (a virtual private server) to start.

    *)
}
type nonrec start_gui_session_result = {
  1. operations : operation_list option;
    (*

    The available API operations.

    *)
}
type nonrec start_gui_session_request = {
  1. resource_name : resource_name;
    (*

    The resource name.

    *)
}
type nonrec setup_instance_https_result = {
  1. operations : operation_list option;
    (*

    The available API operations for SetupInstanceHttps.

    *)
}
type nonrec email_address = string
type nonrec setup_instance_https_request = {
  1. certificate_provider : certificate_provider;
    (*

    The certificate authority that issues the SSL/TLS certificate.

    *)
  2. domain_names : setup_domain_name_list;
    (*

    The name of the domain and subdomains that were specified for the SSL/TLS certificate.

    *)
  3. email_address : email_address;
    (*

    The contact method for SSL/TLS certificate renewal alerts. You can enter one email address.

    *)
  4. instance_name : resource_name;
    (*

    The name of the Lightsail instance.

    *)
}
type nonrec setup_history_page_token = string
type nonrec set_resource_access_for_bucket_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec resource_bucket_access =
  1. | Deny
  2. | Allow
type nonrec set_resource_access_for_bucket_request = {
  1. access : resource_bucket_access;
    (*

    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.
    *)
  2. bucket_name : bucket_name;
    (*

    The name of the bucket for which to set access to another Lightsail resource.

    *)
  3. resource_name : resource_name;
    (*

    The name of the Lightsail instance for which to set bucket access. The instance must be in a running or stopped state.

    *)
}
type nonrec set_ip_address_type_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec ip_address_type =
  1. | IPV6
  2. | IPV4
  3. | DUALSTACK
type nonrec set_ip_address_type_request = {
  1. accept_bundle_update : boolean_ option;
    (*

    Required parameter to accept the instance bundle update when changing to, and from, IPv6-only.

    An instance bundle will change when switching from dual-stack or ipv4, to ipv6. It also changes when switching from ipv6, to dual-stack or ipv4.

    You must include this parameter in the command to update the bundle. For example, if you switch from dual-stack to ipv6, the bundle will be updated, and billing for the IPv6-only instance bundle begins immediately.

    *)
  2. ip_address_type : ip_address_type;
    (*

    The IP address type to set for the specified resource.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    *)
  3. resource_name : resource_name;
    (*

    The name of the resource for which to set the IP address type.

    *)
  4. resource_type : resource_type;
    (*

    The resource type.

    The resource values are Distribution, Instance, and LoadBalancer.

    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.

    *)
}
type nonrec sensitive_non_empty_string = string
type nonrec session = {
  1. is_primary : boolean_ option;
    (*

    When true, this Boolean value indicates the primary session for the specified resource.

    *)
  2. url : sensitive_non_empty_string option;
    (*

    The session URL.

    *)
  3. name : non_empty_string option;
    (*

    The session name.

    *)
}

Describes a web-based, remote graphical user interface (GUI), Amazon DCV session. The session is used to access a virtual computer’s operating system or application.

type nonrec sessions = session list
type nonrec serial_number = string
type nonrec send_contact_method_verification_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec contact_method_verification_protocol =
  1. | Email
type nonrec send_contact_method_verification_request = {
  1. protocol : contact_method_verification_protocol;
    (*

    The protocol to verify, such as Email or SMS (text messaging).

    *)
}
type nonrec revocation_reason = string
type nonrec pricing_unit =
  1. | Queries
  2. | Bundles
  3. | GBMo
  4. | Hrs
  5. | GB
type nonrec currency =
  1. | USD
type nonrec estimate_by_time = {
  1. time_period : time_period option;
    (*

    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.

    *)
  2. currency : currency option;
    (*

    The currency of the estimate in USD.

    *)
  3. unit_ : double option;
    (*

    The number of pricing units used to calculate the total number of hours. For example, 1 unit equals 1 hour.

    *)
  4. pricing_unit : pricing_unit option;
    (*

    The unit of measurement that's used for the cost estimate.

    *)
  5. usage_cost : double option;
    (*

    The amount of cost or usage that's measured for the cost estimate.

    *)
}

An estimate that's associated with a time period.

type nonrec estimates_by_time = estimate_by_time list
type nonrec cost_estimate = {
  1. results_by_time : estimates_by_time option;
    (*

    The cost estimate result that's associated with a time period.

    *)
  2. usage_type : non_empty_string option;
    (*

    The types of usage that are included in the estimate, such as costs, usage, or data transfer.

    *)
}

Describes the estimated cost for resources in your Lightsail for Research account.

type nonrec cost_estimates = cost_estimate list
type nonrec resource_budget_estimate = {
  1. end_time : iso_date option;
    (*

    The estimate end time.

    *)
  2. start_time : iso_date option;
    (*

    The estimate start time.

    *)
  3. cost_estimates : cost_estimates option;
    (*

    The cost estimate for the specified budget.

    *)
  4. resource_type : resource_type option;
    (*

    The type of resource the budget will track.

    *)
  5. resource_name : resource_name option;
    (*

    The resource name.

    *)
}

Describes the estimated cost or usage that a budget tracks.

type nonrec resources_budget_estimate = resource_budget_estimate list
type nonrec resource_record = {
  1. value : string_ option;
    (*

    The value for the DNS record.

    *)
  2. type_ : string_ option;
    (*

    The DNS record type.

    *)
  3. name : string_ option;
    (*

    The name of the record.

    *)
}

Describes the domain name system (DNS) records to add to your domain's DNS to validate it for an Amazon Lightsail certificate.

type nonrec resource_name_list = resource_name list
type nonrec reset_distribution_cache_result = {
  1. operation : operation option;
    (*

    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.

    *)
  2. create_time : iso_date option;
    (*

    The timestamp of the reset cache request (1479734909.17) in Unix time format.

    *)
  3. status : string_ option;
    (*

    The status of the reset cache request.

    *)
}
type nonrec reset_distribution_cache_request = {
  1. distribution_name : resource_name option;
    (*

    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.

    *)
}
type nonrec request_failure_reason = string
type nonrec dns_record_creation_state_code =
  1. | Failed
  2. | Started
  3. | Succeeded
type nonrec dns_record_creation_state = {
  1. message : string_ option;
    (*

    The message that describes the reason for the status code.

    *)
  2. code : dns_record_creation_state_code option;
    (*

    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.
    *)
}

Describes the creation state of the canonical name (CNAME) records that are automatically added by Amazon Lightsail to the DNS of a domain to validate domain ownership for an SSL/TLS certificate.

When you create an SSL/TLS certificate for a Lightsail resource, you must add a set of CNAME records to the DNS of the domains for the certificate to validate that you own the domains. Lightsail can automatically add the CNAME records to the DNS of the domain if the DNS zone for the domain exists within your Lightsail account. If automatic record addition fails, or if you manage the DNS of your domain using a third-party service, then you must manually add the CNAME records to the DNS of your domain. For more information, see Verify an SSL/TLS certificate in Amazon Lightsail in the Amazon Lightsail Developer Guide.

type nonrec certificate_domain_validation_status =
  1. | Success
  2. | Failed
  3. | PendingValidation
type nonrec domain_validation_record = {
  1. validation_status : certificate_domain_validation_status option;
    (*

    The validation status of the record.

    *)
  2. dns_record_creation_state : dns_record_creation_state option;
    (*

    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.

    *)
  3. resource_record : resource_record option;
    (*

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

    *)
  4. domain_name : domain_name option;
    (*

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

    *)
}

Describes the domain name system (DNS) records that you must add to the DNS of your registered domain to validate ownership for an Amazon Lightsail SSL/TLS certificate.

type nonrec domain_validation_record_list = domain_validation_record list
type nonrec renewal_status =
  1. | Failed
  2. | Success
  3. | PendingValidation
  4. | PendingAutoRenewal
type nonrec renewal_status_reason = string
type nonrec renewal_summary = {
  1. updated_at : iso_date option;
    (*

    The timestamp when the certificate was last updated.

    *)
  2. renewal_status_reason : renewal_status_reason option;
    (*

    The reason for the renewal status of the certificate.

    *)
  3. renewal_status : renewal_status option;
    (*

    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.
    *)
  4. domain_validation_records : domain_validation_record_list option;
    (*

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

    *)
}

Describes the status of a SSL/TLS certificate renewal managed by Amazon Lightsail.

type nonrec release_static_ip_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec release_static_ip_request = {
  1. static_ip_name : resource_name;
    (*

    The name of the static IP to delete.

    *)
}
type nonrec relational_database_snapshot = {
  1. from_relational_database_blueprint_id : string_ option;
    (*

    The blueprint ID of the database from which the database snapshot was created. A blueprint describes the major engine version of a database.

    *)
  2. from_relational_database_bundle_id : string_ option;
    (*

    The bundle ID of the database from which the database snapshot was created.

    *)
  3. from_relational_database_arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the database from which the database snapshot was created.

    *)
  4. from_relational_database_name : non_empty_string option;
    (*

    The name of the source database from which the database snapshot was created.

    *)
  5. state : non_empty_string option;
    (*

    The state of the database snapshot.

    *)
  6. size_in_gb : integer option;
    (*

    The size of the disk in GB (for example, 32) for the database snapshot.

    *)
  7. engine_version : non_empty_string option;
    (*

    The database engine version for the database snapshot (for example, 5.7.23).

    *)
  8. engine : non_empty_string option;
    (*

    The software of the database snapshot (for example, MySQL)

    *)
  9. tags : tag_list option;
    (*

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

    *)
  10. resource_type : resource_type option;
    (*

    The Lightsail resource type.

    *)
  11. location : resource_location option;
    (*

    The Region name and Availability Zone where the database snapshot is located.

    *)
  12. created_at : iso_date option;
    (*

    The timestamp when the database snapshot was created.

    *)
  13. support_code : string_ option;
    (*

    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.

    *)
  14. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the database snapshot.

    *)
  15. name : resource_name option;
    (*

    The name of the database snapshot.

    *)
}

Describes a database snapshot.

type nonrec relational_database_snapshot_list = relational_database_snapshot list
type nonrec relational_database_password_version =
  1. | PENDING
  2. | PREVIOUS
  3. | CURRENT
type nonrec relational_database_metric_name =
  1. | NetworkTransmitThroughput
  2. | NetworkReceiveThroughput
  3. | FreeStorageSpace
  4. | DiskQueueDepth
  5. | DatabaseConnections
  6. | CPUUtilization
type nonrec relational_database_hardware = {
  1. ram_size_in_gb : float_ option;
    (*

    The amount of RAM in GB for the database.

    *)
  2. disk_size_in_gb : integer option;
    (*

    The size of the disk for the database.

    *)
  3. cpu_count : integer option;
    (*

    The number of vCPUs for the database.

    *)
}

Describes the hardware of a database.

type nonrec pending_modified_relational_database_values = {
  1. backup_retention_enabled : boolean_ option;
    (*

    A Boolean value indicating whether automated backup retention is enabled.

    *)
  2. engine_version : string_ option;
    (*

    The database engine version.

    *)
  3. master_user_password : string_ option;
    (*

    The password for the master user of the database.

    *)
}

Describes a pending database value modification.

type nonrec relational_database_endpoint = {
  1. address : non_empty_string option;
    (*

    Specifies the DNS address of the database.

    *)
  2. port : integer option;
    (*

    Specifies the port that the database is listening on.

    *)
}

Describes an endpoint for a database.

type nonrec pending_maintenance_action = {
  1. current_apply_date : iso_date option;
    (*

    The effective date of the pending database maintenance action.

    *)
  2. description : non_empty_string option;
    (*

    Additional detail about the pending database maintenance action.

    *)
  3. action : non_empty_string option;
    (*

    The type of pending database maintenance action.

    *)
}

Describes a pending database maintenance action.

type nonrec pending_maintenance_action_list = pending_maintenance_action list
type nonrec relational_database = {
  1. ca_certificate_identifier : string_ option;
    (*

    The certificate associated with the database.

    *)
  2. pending_maintenance_actions : pending_maintenance_action_list option;
    (*

    Describes the pending maintenance actions for the database.

    *)
  3. master_endpoint : relational_database_endpoint option;
    (*

    The master endpoint for the database.

    *)
  4. publicly_accessible : boolean_ option;
    (*

    A Boolean value indicating whether the database is publicly accessible.

    *)
  5. preferred_maintenance_window : non_empty_string option;
    (*

    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.

    *)
  6. preferred_backup_window : non_empty_string option;
    (*

    The daily time range during which automated backups are created for the database (for example, 16:00-16:30).

    *)
  7. parameter_apply_status : non_empty_string option;
    (*

    The status of parameter updates for the database.

    *)
  8. master_username : non_empty_string option;
    (*

    The master user name of the database.

    *)
  9. latest_restorable_time : iso_date option;
    (*

    The latest point in time to which the database can be restored. Formatted in Unix time.

    *)
  10. engine_version : non_empty_string option;
    (*

    The database engine version (for example, 5.7.23).

    *)
  11. engine : non_empty_string option;
    (*

    The database software (for example, MySQL).

    *)
  12. pending_modified_values : pending_modified_relational_database_values option;
    (*

    Describes pending database value modifications.

    *)
  13. backup_retention_enabled : boolean_ option;
    (*

    A Boolean value indicating whether automated backup retention is enabled for the database.

    *)
  14. secondary_availability_zone : string_ option;
    (*

    Describes the secondary Availability Zone of a high availability database.

    The secondary database is used for failover support of a high availability database.

    *)
  15. state : non_empty_string option;
    (*

    Describes the current state of the database.

    *)
  16. hardware : relational_database_hardware option;
    (*

    Describes the hardware of the database.

    *)
  17. master_database_name : string_ option;
    (*

    The name of the master database created when the Lightsail database resource is created.

    *)
  18. relational_database_bundle_id : non_empty_string option;
    (*

    The bundle ID for the database. A bundle describes the performance specifications for your database.

    *)
  19. relational_database_blueprint_id : non_empty_string option;
    (*

    The blueprint ID for the database. A blueprint describes the major engine version of a database.

    *)
  20. tags : tag_list option;
    (*

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

    *)
  21. resource_type : resource_type option;
    (*

    The Lightsail resource type for the database (for example, RelationalDatabase).

    *)
  22. location : resource_location option;
    (*

    The Region name and Availability Zone where the database is located.

    *)
  23. created_at : iso_date option;
    (*

    The timestamp when the database was created. Formatted in Unix time.

    *)
  24. support_code : string_ option;
    (*

    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.

    *)
  25. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the database.

    *)
  26. name : resource_name option;
    (*

    The unique name of the database resource in Lightsail.

    *)
}

Describes a database.

type nonrec relational_database_list = relational_database list
type nonrec relational_database_event = {
  1. event_categories : string_list option;
    (*

    The category that the database event belongs to.

    *)
  2. message : string_ option;
    (*

    The message of the database event.

    *)
  3. created_at : iso_date option;
    (*

    The timestamp when the database event was created.

    *)
  4. resource : resource_name option;
    (*

    The database that the database event relates to.

    *)
}

Describes an event for a database.

type nonrec relational_database_event_list = relational_database_event list
type nonrec relational_database_engine =
  1. | MYSQL
type nonrec relational_database_bundle = {
  1. is_active : boolean_ option;
    (*

    A Boolean value indicating whether the database bundle is active.

    *)
  2. is_encrypted : boolean_ option;
    (*

    A Boolean value indicating whether the database bundle is encrypted.

    *)
  3. cpu_count : integer option;
    (*

    The number of virtual CPUs (vCPUs) for the database bundle.

    *)
  4. transfer_per_month_in_gb : integer option;
    (*

    The data transfer rate per month in GB for the database bundle.

    *)
  5. disk_size_in_gb : integer option;
    (*

    The size of the disk for the database bundle.

    *)
  6. ram_size_in_gb : float_ option;
    (*

    The amount of RAM in GB (for example, 2.0) for the database bundle.

    *)
  7. price : float_ option;
    (*

    The cost of the database bundle in US currency.

    *)
  8. name : string_ option;
    (*

    The name for the database bundle.

    *)
  9. bundle_id : string_ option;
    (*

    The ID for the database bundle.

    *)
}

Describes a database bundle. A bundle describes the performance specifications of the database.

type nonrec relational_database_bundle_list = relational_database_bundle list
type nonrec relational_database_blueprint = {
  1. is_engine_default : boolean_ option;
    (*

    A Boolean value indicating whether the engine version is the default for the database blueprint.

    *)
  2. engine_version_description : string_ option;
    (*

    The description of the database engine version for the database blueprint.

    *)
  3. engine_description : string_ option;
    (*

    The description of the database engine for the database blueprint.

    *)
  4. engine_version : string_ option;
    (*

    The database engine version for the database blueprint (for example, 5.7.23).

    *)
  5. engine : relational_database_engine option;
    (*

    The database software of the database blueprint (for example, MySQL).

    *)
  6. blueprint_id : string_ option;
    (*

    The ID for the database blueprint.

    *)
}

Describes a database image, or blueprint. A blueprint describes the major engine version of a database.

type nonrec relational_database_blueprint_list = relational_database_blueprint list
type nonrec name_servers_update_state_code =
  1. | Started
  2. | Failed
  3. | Pending
  4. | Succeeded
type nonrec name_servers_update_state = {
  1. message : string_ option;
    (*

    The message that describes the reason for the status code.

    *)
  2. code : name_servers_update_state_code option;
    (*

    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.
    *)
}

Describes the state of the name server records update made by Amazon Lightsail to an Amazon Route 53 registered domain.

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

type nonrec r53_hosted_zone_deletion_state_code =
  1. | Started
  2. | Failed
  3. | Pending
  4. | Succeeded
type nonrec r53_hosted_zone_deletion_state = {
  1. message : string_ option;
    (*

    The message that describes the reason for the status code.

    *)
  2. code : r53_hosted_zone_deletion_state_code option;
    (*

    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.
    *)
}

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.

type nonrec registered_domain_delegation_info = {
  1. r53_hosted_zone_deletion_state : r53_hosted_zone_deletion_state option;
    (*

    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.

    *)
  2. name_servers_update_state : name_servers_update_state option;
    (*

    An object that describes the state of the name server records that are automatically added to the Route 53 domain by Lightsail.

    *)
}

Describes the delegation state of an Amazon Route 53 registered domain to Amazon Lightsail.

When you delegate an Amazon Route 53 registered domain to Lightsail, you can manage the DNS of the domain using a Lightsail DNS zone. You no longer use the Route 53 hosted zone to manage the DNS of the domain. To delegate the domain, Lightsail automatically updates the domain's name servers in Route 53 to the name servers of the Lightsail DNS zone. Then, Lightsail automatically deletes the Route 53 hosted zone for the domain.

All of the following conditions must be true for automatic domain delegation to be successful:

  • The registered domain must be in the same Amazon Web Services account as the Lightsail account making the request.
  • The user or entity making the request must have permission to manage domains in Route 53.
  • The Route 53 hosted zone for the domain must be empty. It cannot contain DNS records other than start of authority (SOA) and name server records.

If automatic domain delegation fails, or if you manage the DNS of your domain using a service other than Route 53, then you must manually add the Lightsail DNS zone name servers to your domain in order to delegate management of its DNS to Lightsail. For more information, see Creating a DNS zone to manage your domain’s records in Amazon Lightsail in the Amazon Lightsail Developer Guide.

type nonrec container_image = {
  1. created_at : iso_date option;
    (*

    The timestamp when the container image was created.

    *)
  2. digest : string_ option;
    (*

    The digest of the container image.

    *)
  3. image : string_ option;
    (*

    The name of the container image.

    *)
}

Describes a container image that is registered to an Amazon Lightsail container service.

type nonrec register_container_image_result = {
  1. container_image : container_image option;
    (*

    An object that describes a container image that is registered to a Lightsail container service

    *)
}
type nonrec container_label = string
type nonrec register_container_image_request = {
  1. digest : string_;
    (*

    The digest of the container image to be registered.

    *)
  2. label : container_label;
    (*

    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

    portion of the following image name example:

    • :container-service-1..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.

    *)
  3. service_name : container_service_name;
    (*

    The name of the container service for which to register a container image.

    *)
}
type nonrec availability_zone = {
  1. state : non_empty_string option;
    (*

    The state of the Availability Zone.

    *)
  2. zone_name : non_empty_string option;
    (*

    The name of the Availability Zone. The format is us-east-2a (case-sensitive).

    *)
}

Describes an Availability Zone. This is returned only as part of a GetRegions request.

type nonrec availability_zone_list = availability_zone list
type nonrec region = {
  1. relational_database_availability_zones : availability_zone_list option;
    (*

    The Availability Zones for databases. Follows the format us-east-2a (case-sensitive).

    *)
  2. availability_zones : availability_zone_list option;
    (*

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

    *)
  3. name : region_name option;
    (*

    The region name (us-east-2).

    *)
  4. display_name : string_ option;
    (*

    The display name (Ohio).

    *)
  5. description : string_ option;
    (*

    The description of the Amazon Web Services Region (This region is recommended to serve users in the eastern United States and eastern Canada).

    *)
  6. continent_code : string_ option;
    (*

    The continent code (NA, meaning North America).

    *)
}

Describes the Amazon Web Services Region.

type nonrec region_list = region list
type nonrec record_state =
  1. | Failed
  2. | Succeeded
  3. | Started
type nonrec reboot_relational_database_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec reboot_relational_database_request = {
  1. relational_database_name : resource_name;
    (*

    The name of your database to reboot.

    *)
}
type nonrec reboot_instance_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec reboot_instance_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance to reboot.

    *)
}
type nonrec put_instance_public_ports_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec port = int
type nonrec network_protocol =
  1. | ICMPV6
  2. | ICMP
  3. | UDP
  4. | ALL
  5. | TCP
type nonrec port_info = {
  1. cidr_list_aliases : string_list option;
    (*

    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.

    *)
  2. ipv6_cidrs : string_list option;
    (*

    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.

    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.

    *)
  3. cidrs : string_list option;
    (*

    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.

    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.

    *)
  4. protocol : network_protocol option;
    (*

    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.
    • icmp6 - Internet Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.
    *)
  5. to_port : port option;
    (*

    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.
    *)
  6. from_port : port option;
    (*

    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.
    *)
}

Describes ports to open on an instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.

type nonrec port_info_list = port_info list
type nonrec put_instance_public_ports_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance for which to open ports.

    *)
  2. port_infos : port_info_list;
    (*

    An array of objects to describe the ports to open for the specified instance.

    *)
}
type nonrec put_alarm_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec metric_name =
  1. | BurstCapacityPercentage
  2. | BurstCapacityTime
  3. | NetworkTransmitThroughput
  4. | NetworkReceiveThroughput
  5. | FreeStorageSpace
  6. | DiskQueueDepth
  7. | DatabaseConnections
  8. | RequestCount
  9. | RejectedConnectionCount
  10. | InstanceResponseTime
  11. | HTTPCode_Instance_5XX_Count
  12. | HTTPCode_Instance_4XX_Count
  13. | HTTPCode_Instance_3XX_Count
  14. | HTTPCode_Instance_2XX_Count
  15. | HTTPCode_LB_5XX_Count
  16. | HTTPCode_LB_4XX_Count
  17. | UnhealthyHostCount
  18. | HealthyHostCount
  19. | ClientTLSNegotiationErrorCount
  20. | StatusCheckFailed_System
  21. | StatusCheckFailed_Instance
  22. | StatusCheckFailed
  23. | NetworkOut
  24. | NetworkIn
  25. | CPUUtilization
type nonrec comparison_operator =
  1. | LessThanOrEqualToThreshold
  2. | LessThanThreshold
  3. | GreaterThanThreshold
  4. | GreaterThanOrEqualToThreshold
type nonrec contact_protocol =
  1. | SMS
  2. | Email
type nonrec contact_protocols_list = contact_protocol list
type nonrec notification_trigger_list = alarm_state list
type nonrec put_alarm_request = {
  1. notification_enabled : boolean_ option;
    (*

    Indicates whether the alarm is enabled.

    Notifications are enabled by default if you don't specify this parameter.

    *)
  2. notification_triggers : notification_trigger_list option;
    (*

    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.

    *)
  3. contact_protocols : contact_protocols_list option;
    (*

    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.

    *)
  4. treat_missing_data : treat_missing_data option;
    (*

    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.

    *)
  5. datapoints_to_alarm : integer option;
    (*

    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.

    *)
  6. evaluation_periods : 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).

    *)
  7. threshold : double;
    (*

    The value against which the specified statistic is compared.

    *)
  8. comparison_operator : comparison_operator;
    (*

    The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.

    *)
  9. monitored_resource_name : resource_name;
    (*

    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.

    *)
  10. metric_name : metric_name;
    (*

    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.

    *)
  11. alarm_name : resource_name;
    (*

    The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.

    *)
}
type nonrec port_state =
  1. | Closed
  2. | Open
type nonrec port_list = port list
type nonrec port_info_source_type =
  1. | Closed
  2. | None
  3. | Instance
  4. | Default
type nonrec port_access_type =
  1. | Private
  2. | Public
type nonrec peer_vpc_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec peer_vpc_request = unit
type nonrec password_data = {
  1. key_pair_name : resource_name option;
    (*

    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.

    *)
  2. ciphertext : string_ option;
    (*

    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.

    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.

    *)
}

The password data for the Windows Server-based instance, including the ciphertext and the key pair name.

type nonrec origin = {
  1. response_timeout : integer option;
    (*

    The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.

    *)
  2. protocol_policy : origin_protocol_policy_enum option;
    (*

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

    *)
  3. region_name : region_name option;
    (*

    The AWS Region name of the origin resource.

    *)
  4. resource_type : resource_type option;
    (*

    The resource type of the origin resource (Instance).

    *)
  5. name : resource_name option;
    (*

    The name of the origin resource.

    *)
}

Describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.

An origin can be a Lightsail instance, bucket, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers via a worldwide network of edge servers.

type nonrec open_instance_public_ports_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec open_instance_public_ports_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance for which to open ports.

    *)
  2. port_info : port_info;
    (*

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

    *)
}
type nonrec monthly_transfer = {
  1. gb_per_month_allocated : integer option;
    (*

    The amount allocated per month (in GB).

    *)
}

Describes the monthly data transfer in and out of your virtual private server (or instance).

type nonrec monitored_resource_info = {
  1. resource_type : resource_type option;
    (*

    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.

    *)
  2. name : resource_name option;
    (*

    The name of the Lightsail resource being monitored.

    *)
  3. arn : resource_arn option;
    (*

    The Amazon Resource Name (ARN) of the resource being monitored.

    *)
}

Describes resource being monitored by an alarm.

An alarm is a way to monitor your Amazon Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail.

type nonrec metric_unit =
  1. | None
  2. | CountSecond
  3. | TerabitsSecond
  4. | GigabitsSecond
  5. | MegabitsSecond
  6. | KilobitsSecond
  7. | BitsSecond
  8. | TerabytesSecond
  9. | GigabytesSecond
  10. | MegabytesSecond
  11. | KilobytesSecond
  12. | BytesSecond
  13. | Count
  14. | Percent
  15. | Terabits
  16. | Gigabits
  17. | Megabits
  18. | Kilobits
  19. | Bits
  20. | Terabytes
  21. | Gigabytes
  22. | Megabytes
  23. | Kilobytes
  24. | Bytes
  25. | Milliseconds
  26. | Microseconds
  27. | Seconds
type nonrec metric_statistic =
  1. | SampleCount
  2. | Average
  3. | Sum
  4. | Maximum
  5. | Minimum
type nonrec metric_statistic_list = metric_statistic list
type nonrec metric_period = int
type nonrec metric_datapoint = {
  1. unit_ : metric_unit option;
    (*

    The unit.

    *)
  2. timestamp : timestamp option;
    (*

    The timestamp (1479816991.349).

    *)
  3. sum : double option;
    (*

    The sum.

    *)
  4. sample_count : double option;
    (*

    The sample count.

    *)
  5. minimum : double option;
    (*

    The minimum.

    *)
  6. maximum : double option;
    (*

    The maximum.

    *)
  7. average : double option;
    (*

    The average.

    *)
}

Describes the metric data point.

type nonrec metric_datapoint_list = metric_datapoint list
type nonrec log_event = {
  1. message : string_ option;
    (*

    The message of the database log event.

    *)
  2. created_at : iso_date option;
    (*

    The timestamp when the database log event was created.

    *)
}

Describes a database log event.

type nonrec log_event_list = log_event list
type nonrec load_balancer_tls_policy = {
  1. ciphers : string_list option;
    (*

    The ciphers used by the TLS security policy.

    The ciphers are listed in order of preference.

    *)
  2. protocols : string_list option;
    (*

    The protocols used in a given TLS security policy.

    *)
  3. description : string_ option;
    (*

    The description of the TLS security policy.

    *)
  4. is_default : boolean_ option;
    (*

    A Boolean value that indicates whether the TLS security policy is the default.

    *)
  5. name : resource_name option;
    (*

    The name of the TLS security policy.

    *)
}

Describes the TLS security policies that are available for 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.

type nonrec load_balancer_tls_policy_list = load_balancer_tls_policy list
type nonrec load_balancer_tls_certificate_summary = {
  1. is_attached : boolean_ option;
    (*

    When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

    *)
  2. name : resource_name option;
    (*

    The name of the SSL/TLS certificate.

    *)
}

Provides a summary of SSL/TLS certificate metadata.

type nonrec load_balancer_tls_certificate_summary_list = load_balancer_tls_certificate_summary list
type nonrec load_balancer_tls_certificate_status =
  1. | Unknown
  2. | Failed
  3. | Revoked
  4. | ValidationTimedOut
  5. | Expired
  6. | Inactive
  7. | Issued
  8. | PendingValidation
type nonrec load_balancer_tls_certificate_revocation_reason =
  1. | AACompromise
  2. | PrivilegeWithdrawn
  3. | RemoveFromCrl
  4. | CertificateHold
  5. | CessationOfOperation
  6. | Superceded
  7. | AffiliationChanged
  8. | CaCompromise
  9. | KeyCompromise
  10. | Unspecified
type nonrec load_balancer_tls_certificate_renewal_status =
  1. | Failed
  2. | Success
  3. | PendingValidation
  4. | PendingAutoRenewal
type nonrec load_balancer_tls_certificate_domain_status =
  1. | Success
  2. | Failed
  3. | PendingValidation
type nonrec load_balancer_tls_certificate_domain_validation_option = {
  1. validation_status : load_balancer_tls_certificate_domain_status option;
    (*

    The status of the domain validation. Valid values are listed below.

    *)
  2. domain_name : domain_name option;
    (*

    The fully qualified domain name in the certificate request.

    *)
}

Contains information about the domain names on an SSL/TLS certificate that you will use to validate domain ownership.

type nonrec load_balancer_tls_certificate_domain_validation_option_list = load_balancer_tls_certificate_domain_validation_option list
type nonrec load_balancer_tls_certificate_renewal_summary = {
  1. domain_validation_options : load_balancer_tls_certificate_domain_validation_option_list option;
    (*

    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.

    *)
  2. renewal_status : load_balancer_tls_certificate_renewal_status option;
    (*

    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.
    *)
}

Contains information about the status of Lightsail's managed renewal for the certificate.

The renewal status of the certificate.

The following renewal status are possible:

  • PendingAutoRenewal - Lightsail is attempting to automatically validate the domain names in the certificate. No further action is required.
  • PendingValidation - Lightsail couldn't automatically validate one or more domain names in the certificate. You must take action to validate these domain names or the certificate won't be renewed. If you used DNS validation, 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.
type nonrec load_balancer_tls_certificate_dns_record_creation_state_code =
  1. | Failed
  2. | Started
  3. | Succeeded
type nonrec load_balancer_tls_certificate_dns_record_creation_state = {
  1. message : string_ option;
    (*

    The message that describes the reason for the status code.

    *)
  2. code : load_balancer_tls_certificate_dns_record_creation_state_code option;
    (*

    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.
    *)
}

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.

type nonrec load_balancer_tls_certificate_domain_validation_record = {
  1. dns_record_creation_state : load_balancer_tls_certificate_dns_record_creation_state option;
    (*

    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.

    *)
  2. domain_name : domain_name option;
    (*

    The domain name against which your SSL/TLS certificate was validated.

    *)
  3. validation_status : load_balancer_tls_certificate_domain_status option;
    (*

    The validation status. Valid values are listed below.

    *)
  4. value : non_empty_string option;
    (*

    The value for that type.

    *)
  5. type_ : non_empty_string option;
    (*

    The type of validation record. For example, CNAME for domain validation.

    *)
  6. name : non_empty_string option;
    (*

    A fully qualified domain name in the certificate. For example, example.com.

    *)
}

Describes the validation record of each domain name in the SSL/TLS certificate.

type nonrec load_balancer_tls_certificate_domain_validation_record_list = load_balancer_tls_certificate_domain_validation_record list
type nonrec load_balancer_tls_certificate_failure_reason =
  1. | Other
  2. | InvalidPublicDomain
  3. | DomainNotAllowed
  4. | AdditionalVerificationRequired
  5. | NoAvailableContacts
type nonrec load_balancer_tls_certificate = {
  1. subject_alternative_names : string_list option;
    (*

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

    *)
  2. subject : non_empty_string option;
    (*

    The name of the entity that is associated with the public key contained in the certificate.

    *)
  3. signature_algorithm : non_empty_string option;
    (*

    The algorithm that was used to sign the certificate.

    *)
  4. serial : non_empty_string option;
    (*

    The serial number of the certificate.

    *)
  5. revoked_at : iso_date option;
    (*

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

    *)
  6. revocation_reason : load_balancer_tls_certificate_revocation_reason option;
    (*

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

    *)
  7. renewal_summary : load_balancer_tls_certificate_renewal_summary option;
    (*

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

    *)
  8. not_before : iso_date option;
    (*

    The timestamp when the SSL/TLS certificate is first valid.

    *)
  9. not_after : iso_date option;
    (*

    The timestamp when the SSL/TLS certificate expires.

    *)
  10. key_algorithm : non_empty_string option;
    (*

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

    *)
  11. issuer : non_empty_string option;
    (*

    The issuer of the certificate.

    *)
  12. issued_at : iso_date option;
    (*

    The time when the SSL/TLS certificate was issued.

    *)
  13. failure_reason : load_balancer_tls_certificate_failure_reason option;
    (*

    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.

      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.
    *)
  14. domain_validation_records : load_balancer_tls_certificate_domain_validation_record_list option;
    (*

    An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.

    *)
  15. domain_name : domain_name option;
    (*

    The domain name for your SSL/TLS certificate.

    *)
  16. status : load_balancer_tls_certificate_status option;
    (*

    The validation status of the SSL/TLS certificate. Valid values are below.

    *)
  17. is_attached : boolean_ option;
    (*

    When true, the SSL/TLS certificate is attached to the Lightsail load balancer.

    *)
  18. load_balancer_name : resource_name option;
    (*

    The load balancer name where your SSL/TLS certificate is attached.

    *)
  19. tags : tag_list option;
    (*

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

    *)
  20. resource_type : resource_type option;
    (*

    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
    *)
  21. location : resource_location option;
    (*

    The Amazon Web Services Region and Availability Zone where you created your certificate.

    *)
  22. created_at : iso_date option;
    (*

    The time when you created your SSL/TLS certificate.

    *)
  23. support_code : string_ option;
    (*

    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.

    *)
  24. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the SSL/TLS certificate.

    *)
  25. name : resource_name option;
    (*

    The name of the SSL/TLS certificate (my-certificate).

    *)
}

Describes a load balancer SSL/TLS certificate.

TLS is just an updated, more secure version of Secure Socket Layer (SSL).

type nonrec load_balancer_tls_certificate_list = load_balancer_tls_certificate list
type nonrec load_balancer_state =
  1. | Unknown
  2. | Failed
  3. | ActiveImpaired
  4. | Provisioning
  5. | Active
type nonrec load_balancer_protocol =
  1. | HTTP
  2. | HTTP_HTTPS
type nonrec load_balancer_metric_name =
  1. | RequestCount
  2. | RejectedConnectionCount
  3. | InstanceResponseTime
  4. | HTTPCode_Instance_5XX_Count
  5. | HTTPCode_Instance_4XX_Count
  6. | HTTPCode_Instance_3XX_Count
  7. | HTTPCode_Instance_2XX_Count
  8. | HTTPCode_LB_5XX_Count
  9. | HTTPCode_LB_4XX_Count
  10. | UnhealthyHostCount
  11. | HealthyHostCount
  12. | ClientTLSNegotiationErrorCount
type nonrec instance_health_state =
  1. | Unavailable
  2. | Draining
  3. | Unused
  4. | Unhealthy
  5. | Healthy
  6. | Initial
type nonrec instance_health_reason =
  1. | InstanceIpUnusable
  2. | InstanceInvalidState
  3. | InstanceDeregistrationInProgress
  4. | InstanceNotInUse
  5. | InstanceNotRegistered
  6. | InstanceFailedHealthChecks
  7. | InstanceTimeout
  8. | InstanceResponseCodeMismatch
  9. | LbInternalError
  10. | LbInitialHealthChecking
  11. | LbRegistrationInProgress
type nonrec instance_health_summary = {
  1. instance_health_reason : instance_health_reason option;
    (*

    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.
    *)
  2. instance_health : instance_health_state option;
    (*

    Describes the overall instance health. Valid values are below.

    *)
  3. instance_name : resource_name option;
    (*

    The name of the Lightsail instance for which you are requesting health check data.

    *)
}

Describes information about the health of the instance.

type nonrec instance_health_summary_list = instance_health_summary list
type nonrec load_balancer_configuration_options = (load_balancer_attribute_name * string_) list
type nonrec load_balancer = {
  1. tls_policy_name : resource_name option;
    (*

    The name of the TLS security policy for the load balancer.

    *)
  2. https_redirection_enabled : boolean_ option;
    (*

    A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.

    *)
  3. ip_address_type : ip_address_type option;
    (*

    The IP address type of the load balancer.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    *)
  4. configuration_options : load_balancer_configuration_options option;
    (*

    A string to string map of the configuration options for your load balancer. Valid values are listed below.

    *)
  5. tls_certificate_summaries : load_balancer_tls_certificate_summary_list option;
    (*

    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.

    *)
  6. instance_health_summary : instance_health_summary_list option;
    (*

    An array of InstanceHealthSummary objects describing the health of the load balancer.

    *)
  7. instance_port : integer option;
    (*

    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.

    *)
  8. health_check_path : non_empty_string option;
    (*

    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.

    *)
  9. public_ports : port_list option;
    (*

    An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.

    *)
  10. protocol : load_balancer_protocol option;
    (*

    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.

    *)
  11. state : load_balancer_state option;
    (*

    The status of your load balancer. Valid values are below.

    *)
  12. dns_name : non_empty_string option;
    (*

    The DNS name of your Lightsail load balancer.

    *)
  13. tags : tag_list option;
    (*

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

    *)
  14. resource_type : resource_type option;
    (*

    The resource type (LoadBalancer.

    *)
  15. location : resource_location option;
    (*

    The AWS Region where your load balancer was created (us-east-2a). Lightsail automatically creates your load balancer across Availability Zones.

    *)
  16. created_at : iso_date option;
    (*

    The date when your load balancer was created.

    *)
  17. support_code : string_ option;
    (*

    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.

    *)
  18. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the load balancer.

    *)
  19. name : resource_name option;
    (*

    The name of the load balancer (my-load-balancer).

    *)
}

Describes a load balancer.

type nonrec load_balancer_list = load_balancer list
type nonrec is_vpc_peered_result = {
  1. is_peered : boolean_ option;
    (*

    Returns true if the Lightsail VPC is peered; otherwise, false.

    *)
}
type nonrec is_vpc_peered_request = unit
type nonrec import_key_pair_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec base64 = string
type nonrec import_key_pair_request = {
  1. public_key_base64 : base64;
    (*

    A base64-encoded public key of the ssh-rsa type.

    *)
  2. key_pair_name : resource_name;
    (*

    The name of the key pair for which you want to import the public key.

    *)
}
type nonrec get_static_ips_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. static_ips : static_ip_list option;
    (*

    An array of key-value pairs containing information about your get static IPs request.

    *)
}
type nonrec get_static_ips_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_static_ip_result = {
  1. static_ip : static_ip option;
    (*

    An array of key-value pairs containing information about the requested static IP.

    *)
}
type nonrec get_static_ip_request = {
  1. static_ip_name : resource_name;
    (*

    The name of the static IP in Lightsail.

    *)
}
type nonrec get_setup_history_result = {
  1. next_page_token : setup_history_page_token option;
    (*

    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.

    *)
  2. setup_history : setup_history_list option;
    (*

    The historical information that's returned.

    *)
}
type nonrec get_setup_history_request = {
  1. page_token : setup_history_page_token option;
    (*

    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.

    *)
  2. resource_name : resource_name;
    (*

    The name of the resource for which you are requesting information.

    *)
}
type nonrec get_relational_database_snapshots_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. relational_database_snapshots : relational_database_snapshot_list option;
    (*

    An object describing the result of your get relational database snapshots request.

    *)
}
type nonrec get_relational_database_snapshots_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_relational_database_snapshot_result = {
  1. relational_database_snapshot : relational_database_snapshot option;
    (*

    An object describing the specified database snapshot.

    *)
}
type nonrec get_relational_database_snapshot_request = {
  1. relational_database_snapshot_name : resource_name;
    (*

    The name of the database snapshot for which to get information.

    *)
}
type nonrec get_relational_databases_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. relational_databases : relational_database_list option;
    (*

    An object describing the result of your get relational databases request.

    *)
}
type nonrec get_relational_databases_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_relational_database_parameters_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. parameters : relational_database_parameter_list option;
    (*

    An object describing the result of your get relational database parameters request.

    *)
}
type nonrec get_relational_database_parameters_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
  2. relational_database_name : resource_name;
    (*

    The name of your database for which to get parameters.

    *)
}
type nonrec get_relational_database_metric_data_result = {
  1. metric_data : metric_datapoint_list option;
    (*

    An array of objects that describe the metric data returned.

    *)
  2. metric_name : relational_database_metric_name option;
    (*

    The name of the metric returned.

    *)
}
type nonrec get_relational_database_metric_data_request = {
  1. statistics : metric_statistic_list;
    (*

    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.
    *)
  2. unit_ : metric_unit;
    (*

    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.

    *)
  3. end_time : iso_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.

    *)
  4. start_time : iso_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.

    *)
  5. period : metric_period;
    (*

    The granularity, in seconds, of the returned data points.

    All relational database metric data is available in 1-minute (60 seconds) granularity.

    *)
  6. metric_name : relational_database_metric_name;
    (*

    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.

    *)
  7. relational_database_name : resource_name;
    (*

    The name of your database from which to get metric data.

    *)
}
type nonrec get_relational_database_master_user_password_result = {
  1. created_at : iso_date option;
    (*

    The timestamp when the specified version of the master user password was created.

    *)
  2. master_user_password : sensitive_string option;
    (*

    The master user password for the password version specified.

    *)
}
type nonrec get_relational_database_master_user_password_request = {
  1. password_version : relational_database_password_version option;
    (*

    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

    *)
  2. relational_database_name : resource_name;
    (*

    The name of your database for which to get the master user password.

    *)
}
type nonrec get_relational_database_log_streams_result = {
  1. log_streams : string_list option;
    (*

    An object describing the result of your get relational database log streams request.

    *)
}
type nonrec get_relational_database_log_streams_request = {
  1. relational_database_name : resource_name;
    (*

    The name of your database for which to get log streams.

    *)
}
type nonrec get_relational_database_log_events_result = {
  1. next_forward_token : string_ option;
    (*

    A token used for advancing to the next page of results from your get relational database log events request.

    *)
  2. next_backward_token : string_ option;
    (*

    A token used for advancing to the previous page of results from your get relational database log events request.

    *)
  3. resource_log_events : log_event_list option;
    (*

    An object describing the result of your get relational database log events request.

    *)
}
type nonrec get_relational_database_log_events_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
  2. start_from_head : boolean_ option;
    (*

    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.

    For PostgreSQL, the default value of false is the only option available.

    *)
  3. end_time : iso_date option;
    (*

    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.

    *)
  4. start_time : iso_date option;
    (*

    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.

    *)
  5. log_stream_name : string_;
    (*

    The name of the log stream.

    Use the get relational database log streams operation to get a list of available log streams.

    *)
  6. relational_database_name : resource_name;
    (*

    The name of your database for which to get log events.

    *)
}
type nonrec get_relational_database_events_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. relational_database_events : relational_database_event_list option;
    (*

    An object describing the result of your get relational database events request.

    *)
}
type nonrec get_relational_database_events_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
  2. duration_in_minutes : integer option;
    (*

    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).

    *)
  3. relational_database_name : resource_name;
    (*

    The name of the database from which to get events.

    *)
}
type nonrec get_relational_database_bundles_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. bundles : relational_database_bundle_list option;
    (*

    An object describing the result of your get relational database bundles request.

    *)
}
type nonrec get_relational_database_bundles_request = {
  1. include_inactive : boolean_ option;
    (*

    A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.

    *)
  2. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_relational_database_blueprints_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. blueprints : relational_database_blueprint_list option;
    (*

    An object describing the result of your get relational database blueprints request.

    *)
}
type nonrec get_relational_database_blueprints_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_relational_database_result = {
  1. relational_database : relational_database option;
    (*

    An object describing the specified database.

    *)
}
type nonrec get_relational_database_request = {
  1. relational_database_name : resource_name;
    (*

    The name of the database that you are looking up.

    *)
}
type nonrec get_regions_result = {
  1. regions : region_list option;
    (*

    An array of key-value pairs containing information about your get regions request.

    *)
}
type nonrec get_regions_request = {
  1. include_relational_database_availability_zones : boolean_ option;
    (*

    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).

    *)
  2. include_availability_zones : boolean_ option;
    (*

    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.

    *)
}
type nonrec get_operations_for_resource_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. next_page_count : string_ option;
    (*

    (Discontinued) Returns the number of pages of results that remain.

    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.

    *)
  3. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec get_operations_for_resource_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
  2. resource_name : resource_name;
    (*

    The name of the resource for which you are requesting information.

    *)
}
type nonrec get_operations_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec get_operations_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_operation_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec get_operation_request = {
  1. operation_id : non_empty_string;
    (*

    A GUID used to identify the operation.

    *)
}
type nonrec get_load_balancer_tls_policies_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. tls_policies : load_balancer_tls_policy_list option;
    (*

    An array of objects that describe the TLS security policies that are available.

    *)
}
type nonrec get_load_balancer_tls_policies_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_load_balancer_tls_certificates_result = {
  1. tls_certificates : load_balancer_tls_certificate_list option;
    (*

    An array of LoadBalancerTlsCertificate objects describing your SSL/TLS certificates.

    *)
}
type nonrec get_load_balancer_tls_certificates_request = {
  1. load_balancer_name : resource_name;
    (*

    The name of the load balancer you associated with your SSL/TLS certificate.

    *)
}
type nonrec get_load_balancers_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. load_balancers : load_balancer_list option;
    (*

    An array of LoadBalancer objects describing your load balancers.

    *)
}
type nonrec get_load_balancers_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_load_balancer_metric_data_result = {
  1. metric_data : metric_datapoint_list option;
    (*

    An array of objects that describe the metric data returned.

    *)
  2. metric_name : load_balancer_metric_name option;
    (*

    The name of the metric returned.

    *)
}
type nonrec get_load_balancer_metric_data_request = {
  1. statistics : metric_statistic_list;
    (*

    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.
    *)
  2. unit_ : metric_unit;
    (*

    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.

    *)
  3. end_time : timestamp;
    (*

    The end time of the period.

    *)
  4. start_time : timestamp;
    (*

    The start time of the period.

    *)
  5. period : metric_period;
    (*

    The granularity, in seconds, of the returned data points.

    *)
  6. metric_name : load_balancer_metric_name;
    (*

    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.

    *)
  7. load_balancer_name : resource_name;
    (*

    The name of the load balancer.

    *)
}
type nonrec get_load_balancer_result = {
  1. load_balancer : load_balancer option;
    (*

    An object containing information about your load balancer.

    *)
}
type nonrec get_load_balancer_request = {
  1. load_balancer_name : resource_name;
    (*

    The name of the load balancer.

    *)
}
type nonrec key_pair = {
  1. fingerprint : base64 option;
    (*

    The RSA fingerprint of the key pair.

    *)
  2. tags : tag_list option;
    (*

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

    *)
  3. resource_type : resource_type option;
    (*

    The resource type (usually KeyPair).

    *)
  4. location : resource_location option;
    (*

    The region name and Availability Zone where the key pair was created.

    *)
  5. created_at : iso_date option;
    (*

    The timestamp when the key pair was created (1479816991.349).

    *)
  6. support_code : string_ option;
    (*

    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.

    *)
  7. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

    *)
  8. name : resource_name option;
    (*

    The friendly name of the SSH key pair.

    *)
}

Describes an SSH key pair.

type nonrec key_pair_list = key_pair list
type nonrec get_key_pairs_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. key_pairs : key_pair_list option;
    (*

    An array of key-value pairs containing information about the key pairs.

    *)
}
type nonrec get_key_pairs_request = {
  1. include_default_key_pair : boolean_ option;
    (*

    A Boolean value that indicates whether to include the default key pair in the response of your request.

    *)
  2. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_key_pair_result = {
  1. key_pair : key_pair option;
    (*

    An array of key-value pairs containing information about the key pair.

    *)
}
type nonrec get_key_pair_request = {
  1. key_pair_name : resource_name;
    (*

    The name of the key pair for which you are requesting information.

    *)
}
type nonrec instance_state = {
  1. name : string_ option;
    (*

    The state of the instance (running or pending).

    *)
  2. code : integer option;
    (*

    The status code for the instance.

    *)
}

Describes the virtual private server (or instance) status.

type nonrec get_instance_state_result = {
  1. state : instance_state option;
    (*

    The state of the instance.

    *)
}
type nonrec get_instance_state_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance to get state information about.

    *)
}
type nonrec instance_snapshot_state =
  1. | Available
  2. | Error
  3. | Pending
type nonrec add_on = {
  1. duration : string_ option;
    (*

    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.

    *)
  2. threshold : string_ option;
    (*

    The trigger threshold of the action.

    This add-on only applies to Lightsail for Research resources.

    *)
  3. next_snapshot_time_of_day : time_of_day option;
    (*

    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.

    *)
  4. snapshot_time_of_day : time_of_day option;
    (*

    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.

    *)
  5. status : string_ option;
    (*

    The status of the add-on.

    *)
  6. name : string_ option;
    (*

    The name of the add-on.

    *)
}

Describes an add-on that is enabled for an Amazon Lightsail resource.

type nonrec add_on_list = add_on list
type nonrec disk_state =
  1. | Unknown
  2. | InUse
  3. | Available
  4. | Error
  5. | Pending
type nonrec auto_mount_status =
  1. | NotMounted
  2. | Mounted
  3. | Pending
  4. | Failed
type nonrec disk = {
  1. auto_mount_status : auto_mount_status option;
    (*

    The status of automatically mounting a storage disk to a virtual computer.

    This parameter only applies to Lightsail for Research resources.

    *)
  2. gb_in_use : integer option;
    (*

    (Discontinued) The number of GB in use by the disk.

    In releases prior to November 14, 2017, this parameter was not included in the API response. It is now discontinued.

    *)
  3. attachment_state : string_ option;
    (*

    (Discontinued) The attachment state of the disk.

    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.

    *)
  4. is_attached : boolean_ option;
    (*

    A Boolean value indicating whether the disk is attached.

    *)
  5. attached_to : resource_name option;
    (*

    The resources to which the disk is attached.

    *)
  6. state : disk_state option;
    (*

    Describes the status of the disk.

    *)
  7. path : string_ option;
    (*

    The disk path.

    *)
  8. iops : integer option;
    (*

    The input/output operations per second (IOPS) of the disk.

    *)
  9. is_system_disk : boolean_ option;
    (*

    A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

    *)
  10. size_in_gb : integer option;
    (*

    The size of the disk in GB.

    *)
  11. add_ons : add_on_list option;
    (*

    An array of objects representing the add-ons enabled on the disk.

    *)
  12. tags : tag_list option;
    (*

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

    *)
  13. resource_type : resource_type option;
    (*

    The Lightsail resource type (Disk).

    *)
  14. location : resource_location option;
    (*

    The AWS Region and Availability Zone where the disk is located.

    *)
  15. created_at : iso_date option;
    (*

    The date when the disk was created.

    *)
  16. support_code : string_ option;
    (*

    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.

    *)
  17. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the disk.

    *)
  18. name : resource_name option;
    (*

    The unique name of the disk.

    *)
}

Describes a block storage disk.

type nonrec disk_list = disk list
type nonrec instance_snapshot = {
  1. size_in_gb : integer option;
    (*

    The size in GB of the SSD.

    *)
  2. is_from_auto_snapshot : boolean_ option;
    (*

    A Boolean value indicating whether the snapshot was created from an automatic snapshot.

    *)
  3. from_bundle_id : string_ option;
    (*

    The bundle ID from which you created the snapshot (micro_x_x).

    *)
  4. from_blueprint_id : string_ option;
    (*

    The blueprint ID from which you created the snapshot (amazon_linux_2023). A blueprint is a virtual private server (or instance) image used to create instances quickly.

    *)
  5. from_instance_arn : non_empty_string option;
    (*

    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).

    *)
  6. from_instance_name : resource_name option;
    (*

    The instance from which the snapshot was created.

    *)
  7. from_attached_disks : disk_list option;
    (*

    An array of disk objects containing information about all block storage disks.

    *)
  8. progress : string_ option;
    (*

    The progress of the snapshot.

    This is populated only for disk snapshots, and is null for instance snapshots.

    *)
  9. state : instance_snapshot_state option;
    (*

    The state the snapshot is in.

    *)
  10. tags : tag_list option;
    (*

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

    *)
  11. resource_type : resource_type option;
    (*

    The type of resource (usually InstanceSnapshot).

    *)
  12. location : resource_location option;
    (*

    The region name and Availability Zone where you created the snapshot.

    *)
  13. created_at : iso_date option;
    (*

    The timestamp when the snapshot was created (1479907467.024).

    *)
  14. support_code : string_ option;
    (*

    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.

    *)
  15. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the snapshot (arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

    *)
  16. name : resource_name option;
    (*

    The name of the snapshot.

    *)
}

Describes an instance snapshot.

type nonrec instance_snapshot_list = instance_snapshot list
type nonrec get_instance_snapshots_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. instance_snapshots : instance_snapshot_list option;
    (*

    An array of key-value pairs containing information about the results of your get instance snapshots request.

    *)
}
type nonrec get_instance_snapshots_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_instance_snapshot_result = {
  1. instance_snapshot : instance_snapshot option;
    (*

    An array of key-value pairs containing information about the results of your get instance snapshot request.

    *)
}
type nonrec get_instance_snapshot_request = {
  1. instance_snapshot_name : resource_name;
    (*

    The name of the snapshot for which you are requesting information.

    *)
}
type nonrec ipv6_address = string
type nonrec ipv6_address_list = ipv6_address list
type nonrec instance_hardware = {
  1. ram_size_in_gb : float_ option;
    (*

    The amount of RAM in GB on the instance (1.0).

    *)
  2. disks : disk_list option;
    (*

    The disks attached to the instance.

    *)
  3. cpu_count : integer option;
    (*

    The number of vCPUs the instance has.

    *)
}

Describes the hardware for the instance.

type nonrec access_direction =
  1. | Outbound
  2. | Inbound
type nonrec instance_port_info = {
  1. cidr_list_aliases : string_list option;
    (*

    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.

    *)
  2. ipv6_cidrs : string_list option;
    (*

    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.

    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.

    *)
  3. cidrs : string_list option;
    (*

    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.

    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.

    *)
  4. access_direction : access_direction option;
    (*

    The access direction (inbound or outbound).

    Lightsail currently supports only inbound access direction.

    *)
  5. common_name : string_ option;
    (*

    The common name of the port information.

    *)
  6. access_type : port_access_type option;
    (*

    The type of access (Public or Private).

    *)
  7. access_from : string_ option;
    (*

    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.

    *)
  8. protocol : network_protocol option;
    (*

    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.
    • icmp6 - Internet Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.
    *)
  9. to_port : port option;
    (*

    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.
    *)
  10. from_port : port option;
    (*

    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.
    *)
}

Describes information about ports for an Amazon Lightsail instance.

type nonrec instance_port_info_list = instance_port_info list
type nonrec instance_networking = {
  1. ports : instance_port_info_list option;
    (*

    An array of key-value pairs containing information about the ports on the instance.

    *)
  2. monthly_transfer : monthly_transfer option;
    (*

    The amount of data in GB allocated for monthly data transfers.

    *)
}

Describes monthly data transfer rates and port information for an instance.

type nonrec instance_metadata_state =
  1. | Applied
  2. | Pending
type nonrec instance_metadata_options = {
  1. http_protocol_ipv6 : http_protocol_ipv6 option;
    (*

    Indicates whether the IPv6 endpoint for the instance metadata service is enabled or disabled.

    *)
  2. http_put_response_hop_limit : integer option;
    (*

    The desired HTTP PUT response hop limit for instance metadata requests. A larger number means that the instance metadata requests can travel farther.

    *)
  3. http_endpoint : http_endpoint option;
    (*

    Indicates whether the HTTP metadata endpoint on your instances is enabled or disabled.

    If the value is disabled, you cannot access your instance metadata.

    *)
  4. http_tokens : http_tokens option;
    (*

    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.

    *)
  5. state : instance_metadata_state option;
    (*

    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.
    *)
}

The metadata options for the instance.

type nonrec instance = {
  1. metadata_options : instance_metadata_options option;
    (*

    The metadata options for the Amazon Lightsail instance.

    *)
  2. ssh_key_name : resource_name option;
    (*

    The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).

    *)
  3. username : non_empty_string option;
    (*

    The user name for connecting to the instance (ec2-user).

    *)
  4. state : instance_state option;
    (*

    The status code and the state (running) for the instance.

    *)
  5. networking : instance_networking option;
    (*

    Information about the public ports and monthly data transfer rates for the instance.

    *)
  6. hardware : instance_hardware option;
    (*

    The size of the vCPU and the amount of RAM for the instance.

    *)
  7. ip_address_type : ip_address_type option;
    (*

    The IP address type of the instance.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    *)
  8. ipv6_addresses : ipv6_address_list option;
    (*

    The IPv6 addresses of the instance.

    *)
  9. public_ip_address : ip_address option;
    (*

    The public IP address of the instance.

    *)
  10. private_ip_address : ip_address option;
    (*

    The private IP address of the instance.

    *)
  11. is_static_ip : boolean_ option;
    (*

    A Boolean value indicating whether this instance has a static IP assigned to it.

    *)
  12. add_ons : add_on_list option;
    (*

    An array of objects representing the add-ons enabled on the instance.

    *)
  13. bundle_id : non_empty_string option;
    (*

    The bundle for the instance (micro_x_x).

    *)
  14. blueprint_name : non_empty_string option;
    (*

    The friendly name of the blueprint (Amazon Linux 2023).

    *)
  15. blueprint_id : non_empty_string option;
    (*

    The blueprint ID (amazon_linux_2023).

    *)
  16. tags : tag_list option;
    (*

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

    *)
  17. resource_type : resource_type option;
    (*

    The type of resource (usually Instance).

    *)
  18. location : resource_location option;
    (*

    The region name and Availability Zone where the instance is located.

    *)
  19. created_at : iso_date option;
    (*

    The timestamp when the instance was created (1479734909.17) in Unix time format.

    *)
  20. support_code : string_ option;
    (*

    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.

    *)
  21. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

    *)
  22. name : resource_name option;
    (*

    The name the user gave the instance (Amazon_Linux_2023-1).

    *)
}

Describes an instance (a virtual private server).

type nonrec instance_list = instance list
type nonrec get_instances_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. instances : instance_list option;
    (*

    An array of key-value pairs containing information about your instances.

    *)
}
type nonrec get_instances_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec instance_port_state = {
  1. cidr_list_aliases : string_list option;
    (*

    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.

    *)
  2. ipv6_cidrs : string_list option;
    (*

    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.

    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.

    *)
  3. cidrs : string_list option;
    (*

    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.

    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.

    *)
  4. state : port_state option;
    (*

    Specifies whether the instance port is open or closed.

    The port state for Lightsail instances is always open.

    *)
  5. protocol : network_protocol option;
    (*

    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.
    • icmp6 - Internet Control Message Protocol (ICMP) for IPv6. When you specify icmp6 as the protocol, you must specify the ICMP type using the fromPort parameter, and ICMP code using the toPort parameter.
    *)
  6. to_port : port option;
    (*

    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.
    *)
  7. from_port : port option;
    (*

    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.
    *)
}

Describes open ports on an instance, the IP addresses allowed to connect to the instance through the ports, and the protocol.

type nonrec instance_port_state_list = instance_port_state list
type nonrec get_instance_port_states_result = {
  1. port_states : instance_port_state_list option;
    (*

    An array of objects that describe the firewall port states for the specified instance.

    *)
}
type nonrec get_instance_port_states_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance for which to return firewall port states.

    *)
}
type nonrec instance_metric_name =
  1. | MetadataNoToken
  2. | BurstCapacityPercentage
  3. | BurstCapacityTime
  4. | StatusCheckFailed_System
  5. | StatusCheckFailed_Instance
  6. | StatusCheckFailed
  7. | NetworkOut
  8. | NetworkIn
  9. | CPUUtilization
type nonrec get_instance_metric_data_result = {
  1. metric_data : metric_datapoint_list option;
    (*

    An array of objects that describe the metric data returned.

    *)
  2. metric_name : instance_metric_name option;
    (*

    The name of the metric returned.

    *)
}
type nonrec get_instance_metric_data_request = {
  1. statistics : metric_statistic_list;
    (*

    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.
    *)
  2. unit_ : metric_unit;
    (*

    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.

    *)
  3. end_time : timestamp;
    (*

    The end time of the time period.

    *)
  4. start_time : timestamp;
    (*

    The start time of the time period.

    *)
  5. period : metric_period;
    (*

    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.

    *)
  6. metric_name : instance_metric_name;
    (*

    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.

    *)
  7. instance_name : resource_name;
    (*

    The name of the instance for which you want to get metrics data.

    *)
}
type nonrec instance_access_protocol =
  1. | Rdp
  2. | Ssh
type nonrec host_key_attributes = {
  1. not_valid_after : iso_date option;
    (*

    The returned RDP certificate is not valid after this point in time.

    This value is listed only for RDP certificates.

    *)
  2. not_valid_before : iso_date option;
    (*

    The returned RDP certificate is valid after this point in time.

    This value is listed only for RDP certificates.

    *)
  3. fingerprint_sh_a256 : string_ option;
    (*

    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

    *)
  4. fingerprint_sh_a1 : string_ option;
    (*

    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

    *)
  5. witnessed_at : iso_date option;
    (*

    The time that the SSH host key or RDP certificate was recorded by Lightsail.

    *)
  6. public_key : string_ option;
    (*

    The public SSH host key or the RDP certificate.

    *)
  7. algorithm : string_ option;
    (*

    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.

    *)
}

Describes the public SSH host keys or the RDP certificate.

type nonrec host_keys_list = host_key_attributes list
type nonrec instance_access_details = {
  1. host_keys : host_keys_list option;
    (*

    Describes the public SSH host keys or the RDP certificate.

    *)
  2. username : string_ option;
    (*

    The user name to use when logging in to the Amazon Lightsail instance.

    *)
  3. instance_name : resource_name option;
    (*

    The name of this Amazon Lightsail instance.

    *)
  4. protocol : instance_access_protocol option;
    (*

    The protocol for these Amazon Lightsail instance access details.

    *)
  5. private_key : string_ option;
    (*

    For SSH access, the temporary private key. For OpenSSH clients (command line SSH), you should save this value to tempkey).

    *)
  6. password_data : password_data option;
    (*

    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.

    *)
  7. password : string_ option;
    (*

    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.

    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.

    *)
  8. ipv6_addresses : ipv6_address_list option;
    (*

    The IPv6 address of the Amazon Lightsail instance.

    *)
  9. ip_address : ip_address option;
    (*

    The public IP address of the Amazon Lightsail instance.

    *)
  10. expires_at : iso_date option;
    (*

    For SSH access, the date on which the temporary keys expire.

    *)
  11. cert_key : string_ option;
    (*

    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.

    *)
}

The parameters for gaining temporary access to one of your Amazon Lightsail instances.

type nonrec get_instance_access_details_result = {
  1. access_details : instance_access_details option;
    (*

    An array of key-value pairs containing information about a get instance access request.

    *)
}
type nonrec get_instance_access_details_request = {
  1. protocol : instance_access_protocol option;
    (*

    The protocol to use to connect to your instance. Defaults to ssh.

    *)
  2. instance_name : resource_name;
    (*

    The name of the instance to access.

    *)
}
type nonrec get_instance_result = {
  1. instance : instance option;
    (*

    An array of key-value pairs containing information about the specified instance.

    *)
}
type nonrec get_instance_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance.

    *)
}
type nonrec export_snapshot_record_source_type =
  1. | DiskSnapshot
  2. | InstanceSnapshot
type nonrec disk_info = {
  1. is_system_disk : boolean_ option;
    (*

    A Boolean value indicating whether this disk is a system disk (has an operating system loaded on it).

    *)
  2. size_in_gb : integer option;
    (*

    The size of the disk in GB (32).

    *)
  3. path : non_empty_string option;
    (*

    The disk path.

    *)
  4. name : string_ option;
    (*

    The disk name.

    *)
}

Describes a disk.

type nonrec disk_info_list = disk_info list
type nonrec instance_snapshot_info = {
  1. from_disk_info : disk_info_list option;
    (*

    A list of objects describing the disks that were attached to the source instance.

    *)
  2. from_blueprint_id : non_empty_string option;
    (*

    The blueprint ID from which the source instance (amazon_linux_2023).

    *)
  3. from_bundle_id : non_empty_string option;
    (*

    The bundle ID from which the source instance was created (micro_x_x).

    *)
}

Describes an instance snapshot.

type nonrec disk_snapshot_info = {
  1. size_in_gb : integer option;
    (*

    The size of the disk in GB (32).

    *)
}

Describes a disk snapshot.

type nonrec export_snapshot_record_source_info = {
  1. disk_snapshot_info : disk_snapshot_info option;
    (*

    A list of objects describing a disk snapshot.

    *)
  2. instance_snapshot_info : instance_snapshot_info option;
    (*

    A list of objects describing an instance snapshot.

    *)
  3. from_resource_arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the snapshot's source instance or disk.

    *)
  4. from_resource_name : non_empty_string option;
    (*

    The name of the snapshot's source instance or disk.

    *)
  5. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the source instance or disk snapshot.

    *)
  6. name : non_empty_string option;
    (*

    The name of the source instance or disk snapshot.

    *)
  7. created_at : iso_date option;
    (*

    The date when the source instance or disk snapshot was created.

    *)
  8. resource_type : export_snapshot_record_source_type option;
    (*

    The Lightsail resource type (InstanceSnapshot or DiskSnapshot).

    *)
}

Describes the source of an export snapshot record.

type nonrec destination_info = {
  1. service : non_empty_string option;
    (*

    The destination service of the record.

    *)
  2. id : non_empty_string option;
    (*

    The ID of the resource created at the destination.

    *)
}

Describes the destination of a record.

type nonrec export_snapshot_record = {
  1. destination_info : destination_info option;
    (*

    A list of objects describing the destination of the export snapshot record.

    *)
  2. source_info : export_snapshot_record_source_info option;
    (*

    A list of objects describing the source of the export snapshot record.

    *)
  3. state : record_state option;
    (*

    The state of the export snapshot record.

    *)
  4. resource_type : resource_type option;
    (*

    The Lightsail resource type (ExportSnapshotRecord).

    *)
  5. location : resource_location option;
    (*

    The AWS Region and Availability Zone where the export snapshot record is located.

    *)
  6. created_at : iso_date option;
    (*

    The date when the export snapshot record was created.

    *)
  7. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the export snapshot record.

    *)
  8. name : resource_name option;
    (*

    The export snapshot record name.

    *)
}

Describes an export snapshot record.

type nonrec export_snapshot_record_list = export_snapshot_record list
type nonrec get_export_snapshot_records_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. export_snapshot_records : export_snapshot_record_list option;
    (*

    A list of objects describing the export snapshot records.

    *)
}
type nonrec get_export_snapshot_records_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec domain_entry_list = domain_entry list
type nonrec domain = {
  1. registered_domain_delegation_info : registered_domain_delegation_info option;
    (*

    An object that describes the state of the Route 53 domain delegation to a Lightsail DNS zone.

    *)
  2. domain_entries : domain_entry_list option;
    (*

    An array of key-value pairs containing information about the domain entries.

    *)
  3. tags : tag_list option;
    (*

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

    *)
  4. resource_type : resource_type option;
    (*

    The resource type.

    *)
  5. location : resource_location option;
    (*

    The AWS Region and Availability Zones where the domain recordset was created.

    *)
  6. created_at : iso_date option;
    (*

    The date when the domain recordset was created.

    *)
  7. support_code : string_ option;
    (*

    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.

    *)
  8. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the domain recordset (arn:aws:lightsail:global:123456789101:Domain/824cede0-abc7-4f84-8dbc-12345EXAMPLE).

    *)
  9. name : resource_name option;
    (*

    The name of the domain.

    *)
}

Describes a domain where you are storing recordsets.

type nonrec domain_list = domain list
type nonrec get_domains_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. domains : domain_list option;
    (*

    An array of key-value pairs containing information about each of the domain entries in the user's account.

    *)
}
type nonrec get_domains_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_domain_result = {
  1. domain : domain option;
    (*

    An array of key-value pairs containing information about your get domain request.

    *)
}
type nonrec get_domain_request = {
  1. domain_name : domain_name;
    (*

    The domain name for which your want to return information about.

    *)
}
type nonrec lightsail_distribution = {
  1. viewer_minimum_tls_protocol_version : string_ option;
    (*

    The minimum TLS protocol version that the distribution can use to communicate with viewers.

    *)
  2. tags : tag_list option;
    (*

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

    *)
  3. ip_address_type : ip_address_type option;
    (*

    The IP address type of the distribution.

    The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

    *)
  4. able_to_update_bundle : boolean_ option;
    (*

    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.

    *)
  5. cache_behaviors : cache_behavior_list option;
    (*

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

    *)
  6. cache_behavior_settings : cache_settings option;
    (*

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

    *)
  7. default_cache_behavior : cache_behavior option;
    (*

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

    *)
  8. origin_public_dn_s : string_ option;
    (*

    The public DNS of the origin.

    *)
  9. origin : origin option;
    (*

    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.

    *)
  10. certificate_name : resource_name option;
    (*

    The name of the SSL/TLS certificate attached to the distribution, if any.

    *)
  11. bundle_id : string_ option;
    (*

    The ID of the bundle currently applied to the distribution.

    *)
  12. domain_name : string_ option;
    (*

    The domain name of the distribution.

    *)
  13. is_enabled : boolean_ option;
    (*

    Indicates whether the distribution is enabled.

    *)
  14. status : string_ option;
    (*

    The status of the distribution.

    *)
  15. alternative_domain_names : string_list option;
    (*

    The alternate domain names of the distribution.

    *)
  16. resource_type : resource_type option;
    (*

    The Lightsail resource type (Distribution).

    *)
  17. location : resource_location option;
    (*

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

    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.

    *)
  18. created_at : iso_date option;
    (*

    The timestamp when the distribution was created.

    *)
  19. support_code : string_ option;
    (*

    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.

    *)
  20. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the distribution.

    *)
  21. name : resource_name option;
    (*

    The name of the distribution.

    *)
}

Describes an Amazon Lightsail content delivery network (CDN) distribution.

type nonrec distribution_list = lightsail_distribution list
type nonrec get_distributions_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. distributions : distribution_list option;
    (*

    An array of objects that describe your distributions.

    *)
}
type nonrec get_distributions_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
  2. distribution_name : resource_name option;
    (*

    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.

    *)
}
type nonrec distribution_metric_name =
  1. | Http5xxErrorRate
  2. | Http4xxErrorRate
  3. | TotalErrorRate
  4. | BytesUploaded
  5. | BytesDownloaded
  6. | Requests
type nonrec get_distribution_metric_data_result = {
  1. metric_data : metric_datapoint_list option;
    (*

    An array of objects that describe the metric data returned.

    *)
  2. metric_name : distribution_metric_name option;
    (*

    The name of the metric returned.

    *)
}
type nonrec get_distribution_metric_data_request = {
  1. statistics : metric_statistic_list;
    (*

    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.
    *)
  2. unit_ : metric_unit;
    (*

    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.

    *)
  3. period : metric_period;
    (*

    The granularity, in seconds, for the metric data points that will be returned.

    *)
  4. end_time : timestamp;
    (*

    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.

    *)
  5. start_time : timestamp;
    (*

    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.

    *)
  6. metric_name : distribution_metric_name;
    (*

    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.

    *)
  7. distribution_name : resource_name;
    (*

    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.

    *)
}
type nonrec get_distribution_latest_cache_reset_result = {
  1. create_time : iso_date option;
    (*

    The timestamp of the last cache reset (1479734909.17) in Unix time format.

    *)
  2. status : string_ option;
    (*

    The status of the last cache reset.

    *)
}
type nonrec get_distribution_latest_cache_reset_request = {
  1. distribution_name : resource_name option;
    (*

    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.

    *)
}
type nonrec distribution_bundle = {
  1. is_active : boolean_ option;
    (*

    Indicates whether the bundle is active, and can be specified for a new or existing distribution.

    *)
  2. transfer_per_month_in_gb : integer option;
    (*

    The monthly network transfer quota of the bundle.

    *)
  3. price : float_ option;
    (*

    The monthly price, in US dollars, of the bundle.

    *)
  4. name : string_ option;
    (*

    The name of the distribution bundle.

    *)
  5. bundle_id : string_ option;
    (*

    The ID of the bundle.

    *)
}

Describes the specifications of a distribution bundle.

type nonrec distribution_bundle_list = distribution_bundle list
type nonrec get_distribution_bundles_result = {
  1. bundles : distribution_bundle_list option;
    (*

    An object that describes a distribution bundle.

    *)
}
type nonrec get_distribution_bundles_request = unit
type nonrec disk_snapshot_state =
  1. | Unknown
  2. | Error
  3. | Completed
  4. | Pending
type nonrec disk_snapshot = {
  1. is_from_auto_snapshot : boolean_ option;
    (*

    A Boolean value indicating whether the snapshot was created from an automatic snapshot.

    *)
  2. from_instance_arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.

    *)
  3. from_instance_name : resource_name option;
    (*

    The unique name of the source instance from which the disk (system volume) snapshot was created.

    *)
  4. from_disk_arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.

    *)
  5. from_disk_name : resource_name option;
    (*

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

    *)
  6. progress : string_ option;
    (*

    The progress of the snapshot.

    *)
  7. state : disk_snapshot_state option;
    (*

    The status of the disk snapshot operation.

    *)
  8. size_in_gb : integer option;
    (*

    The size of the disk in GB.

    *)
  9. tags : tag_list option;
    (*

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

    *)
  10. resource_type : resource_type option;
    (*

    The Lightsail resource type (DiskSnapshot).

    *)
  11. location : resource_location option;
    (*

    The AWS Region and Availability Zone where the disk snapshot was created.

    *)
  12. created_at : iso_date option;
    (*

    The date when the disk snapshot was created.

    *)
  13. support_code : string_ option;
    (*

    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.

    *)
  14. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the disk snapshot.

    *)
  15. name : resource_name option;
    (*

    The name of the disk snapshot (my-disk-snapshot).

    *)
}

Describes a block storage disk snapshot.

type nonrec disk_snapshot_list = disk_snapshot list
type nonrec get_disk_snapshots_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. disk_snapshots : disk_snapshot_list option;
    (*

    An array of objects containing information about all block storage disk snapshots.

    *)
}
type nonrec get_disk_snapshots_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_disk_snapshot_result = {
  1. disk_snapshot : disk_snapshot option;
    (*

    An object containing information about the disk snapshot.

    *)
}
type nonrec get_disk_snapshot_request = {
  1. disk_snapshot_name : resource_name;
    (*

    The name of the disk snapshot (my-disk-snapshot).

    *)
}
type nonrec get_disks_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. disks : disk_list option;
    (*

    An array of objects containing information about all block storage disks.

    *)
}
type nonrec get_disks_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec get_disk_result = {
  1. disk : disk option;
    (*

    An object containing information about the disk.

    *)
}
type nonrec get_disk_request = {
  1. disk_name : resource_name;
    (*

    The name of the disk (my-disk).

    *)
}
type nonrec get_cost_estimate_result = {
  1. resources_budget_estimate : resources_budget_estimate option;
    (*

    Returns the estimate's forecasted cost or usage.

    *)
}
type nonrec get_cost_estimate_request = {
  1. end_time : iso_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.

    *)
  2. start_time : iso_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.

    *)
  3. resource_name : resource_name;
    (*

    The resource name.

    *)
}
type nonrec container_service_list = container_service list
type nonrec container_services_list_result = {
  1. container_services : container_service_list option;
    (*

    An array of objects that describe one or more container services.

    *)
}
type nonrec get_container_services_request = {
  1. service_name : container_service_name option;
    (*

    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.

    *)
}
type nonrec container_service_power = {
  1. is_active : boolean_ option;
    (*

    A Boolean value indicating whether the power is active and can be specified for container services.

    *)
  2. name : string_ option;
    (*

    The friendly name of the power (nano).

    *)
  3. ram_size_in_gb : float_ option;
    (*

    The amount of RAM (in GB) of the power.

    *)
  4. cpu_count : float_ option;
    (*

    The number of vCPUs included in the power.

    *)
  5. price : float_ option;
    (*

    The monthly price of the power in USD.

    *)
  6. power_id : string_ option;
    (*

    The ID of the power (nano-1).

    *)
}

Describes the powers that can be specified for an Amazon Lightsail container service.

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

type nonrec container_service_power_list = container_service_power list
type nonrec get_container_service_powers_result = {
  1. powers : container_service_power_list option;
    (*

    An array of objects that describe the powers that can be specified for a container service.

    *)
}
type nonrec get_container_service_powers_request = unit
type nonrec container_service_metric_name =
  1. | MemoryUtilization
  2. | CPUUtilization
type nonrec get_container_service_metric_data_result = {
  1. metric_data : metric_datapoint_list option;
    (*

    An array of objects that describe the metric data returned.

    *)
  2. metric_name : container_service_metric_name option;
    (*

    The name of the metric returned.

    *)
}
type nonrec get_container_service_metric_data_request = {
  1. statistics : metric_statistic_list;
    (*

    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.
    *)
  2. period : metric_period;
    (*

    The granularity, in seconds, of the returned data points.

    All container service metric data is available in 5-minute (300 seconds) granularity.

    *)
  3. end_time : iso_date;
    (*

    The end time of the time period.

    *)
  4. start_time : iso_date;
    (*

    The start time of the time period.

    *)
  5. metric_name : container_service_metric_name;
    (*

    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.

    *)
  6. service_name : container_service_name;
    (*

    The name of the container service for which to get metric data.

    *)
}
type nonrec container_service_deployment_list = container_service_deployment list
type nonrec get_container_service_deployments_result = {
  1. deployments : container_service_deployment_list option;
    (*

    An array of objects that describe deployments for a container service.

    *)
}
type nonrec get_container_service_deployments_request = {
  1. service_name : container_service_name;
    (*

    The name of the container service for which to return deployments.

    *)
}
type nonrec container_service_log_event = {
  1. message : string_ option;
    (*

    The message of the container service log event.

    *)
  2. created_at : iso_date option;
    (*

    The timestamp when the container service log event was created.

    *)
}

Describes the log events of a container of an Amazon Lightsail container service.

type nonrec container_service_log_event_list = container_service_log_event list
type nonrec get_container_log_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. log_events : container_service_log_event_list option;
    (*

    An array of objects that describe the log events of a container.

    *)
}
type nonrec get_container_log_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
  2. filter_pattern : string_ option;
    (*

    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".
    *)
  3. end_time : iso_date option;
    (*

    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.

    *)
  4. start_time : iso_date option;
    (*

    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.

    *)
  5. container_name : string_;
    (*

    The name of the container that is either running or previously ran on the container service for which to return a log.

    *)
  6. service_name : container_service_name;
    (*

    The name of the container service for which to get a container log.

    *)
}
type nonrec container_image_list = container_image list
type nonrec get_container_images_result = {
  1. container_images : container_image_list option;
    (*

    An array of objects that describe container images that are registered to the container service.

    *)
}
type nonrec get_container_images_request = {
  1. service_name : container_service_name;
    (*

    The name of the container service for which to return registered container images.

    *)
}
type nonrec container_service_metadata_entry = (string_ * string_) list
type nonrec container_service_metadata_entry_list = container_service_metadata_entry list
type nonrec get_container_api_metadata_result = {
  1. metadata : container_service_metadata_entry_list option;
    (*

    Metadata about Lightsail containers, such as the current version of the Lightsail Control (lightsailctl) plugin.

    *)
}
type nonrec get_container_api_metadata_request = unit
type nonrec contact_method_status =
  1. | Invalid
  2. | Valid
  3. | PendingVerification
type nonrec contact_method = {
  1. support_code : string_ option;
    (*

    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.

    *)
  2. resource_type : resource_type option;
    (*

    The Lightsail resource type of the contact method.

    *)
  3. location : resource_location option;
    (*

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

    *)
  4. created_at : iso_date option;
    (*

    The timestamp when the contact method was created.

    *)
  5. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the contact method.

    *)
  6. name : resource_name option;
    (*

    The name of the contact method.

    *)
  7. protocol : contact_protocol option;
    (*

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

    *)
  8. status : contact_method_status option;
    (*

    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.
    *)
  9. contact_endpoint : non_empty_string option;
    (*

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

    *)
}

Describes a contact method.

A contact method is a way to send you notifications. For more information, see Notifications in Amazon Lightsail.

type nonrec contact_methods_list = contact_method list
type nonrec get_contact_methods_result = {
  1. contact_methods : contact_methods_list option;
    (*

    An array of objects that describe the contact methods.

    *)
}
type nonrec get_contact_methods_request = {
  1. protocols : contact_protocols_list option;
    (*

    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.

    *)
}
type nonrec cloud_formation_stack_record_source_type =
  1. | ExportSnapshotRecord
type nonrec cloud_formation_stack_record_source_info = {
  1. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the export snapshot record.

    *)
  2. name : non_empty_string option;
    (*

    The name of the record.

    *)
  3. resource_type : cloud_formation_stack_record_source_type option;
    (*

    The Lightsail resource type (ExportSnapshotRecord).

    *)
}

Describes the source of a CloudFormation stack record (i.e., the export snapshot record).

type nonrec cloud_formation_stack_record_source_info_list = cloud_formation_stack_record_source_info list
type nonrec cloud_formation_stack_record = {
  1. destination_info : destination_info option;
    (*

    A list of objects describing the destination service, which is AWS CloudFormation, and the Amazon Resource Name (ARN) of the AWS CloudFormation stack.

    *)
  2. source_info : cloud_formation_stack_record_source_info_list option;
    (*

    A list of objects describing the source of the CloudFormation stack record.

    *)
  3. state : record_state option;
    (*

    The current state of the CloudFormation stack record.

    *)
  4. resource_type : resource_type option;
    (*

    The Lightsail resource type (CloudFormationStackRecord).

    *)
  5. location : resource_location option;
    (*

    A list of objects describing the Availability Zone and Amazon Web Services Region of the CloudFormation stack record.

    *)
  6. created_at : iso_date option;
    (*

    The date when the CloudFormation stack record was created.

    *)
  7. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the CloudFormation stack record.

    *)
  8. name : resource_name option;
    (*

    The name of the CloudFormation stack record. It starts with CloudFormationStackRecord followed by a GUID.

    *)
}

Describes a CloudFormation stack record created as a result of the create cloud formation stack action.

A CloudFormation stack record provides information about the AWS CloudFormation stack used to create a new Amazon Elastic Compute Cloud instance from an exported Lightsail instance snapshot.

type nonrec cloud_formation_stack_record_list = cloud_formation_stack_record list
type nonrec get_cloud_formation_stack_records_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. cloud_formation_stack_records : cloud_formation_stack_record_list option;
    (*

    A list of objects describing the CloudFormation stack records.

    *)
}
type nonrec get_cloud_formation_stack_records_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec certificate_name = string
type nonrec certificate_status =
  1. | Failed
  2. | Revoked
  3. | ValidationTimedOut
  4. | Expired
  5. | Inactive
  6. | Issued
  7. | PendingValidation
type nonrec in_use_resource_count = int
type nonrec key_algorithm = string
type nonrec issuer_c_a = string
type nonrec eligible_to_renew = string
type nonrec certificate = {
  1. support_code : string_ option;
    (*

    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.

    *)
  2. tags : tag_list option;
    (*

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

    *)
  3. revocation_reason : revocation_reason option;
    (*

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

    *)
  4. revoked_at : iso_date option;
    (*

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

    *)
  5. renewal_summary : renewal_summary option;
    (*

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

    *)
  6. eligible_to_renew : eligible_to_renew option;
    (*

    The renewal eligibility of the certificate.

    *)
  7. not_after : iso_date option;
    (*

    The timestamp when the certificate expires.

    *)
  8. not_before : iso_date option;
    (*

    The timestamp when the certificate is first valid.

    *)
  9. issuer_c_a : issuer_c_a option;
    (*

    The certificate authority that issued the certificate.

    *)
  10. issued_at : iso_date option;
    (*

    The timestamp when the certificate was issued.

    *)
  11. created_at : iso_date option;
    (*

    The timestamp when the certificate was created.

    *)
  12. key_algorithm : key_algorithm option;
    (*

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

    *)
  13. in_use_resource_count : in_use_resource_count option;
    (*

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

    *)
  14. request_failure_reason : request_failure_reason option;
    (*

    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.

      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.
    *)
  15. domain_validation_records : domain_validation_record_list option;
    (*

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

    *)
  16. subject_alternative_names : subject_alternative_name_list option;
    (*

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

    *)
  17. serial_number : serial_number option;
    (*

    The serial number of the certificate.

    *)
  18. status : certificate_status option;
    (*

    The validation status of the certificate.

    *)
  19. domain_name : domain_name option;
    (*

    The domain name of the certificate.

    *)
  20. name : certificate_name option;
    (*

    The name of the certificate (my-certificate).

    *)
  21. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the certificate.

    *)
}

Describes the full details of an Amazon Lightsail SSL/TLS certificate.

To get a summary of a certificate, use the GetCertificates action and omit includeCertificateDetails from your request. The response will include only the certificate Amazon Resource Name (ARN), certificate name, domain name, and tags.

type nonrec certificate_summary = {
  1. tags : tag_list option;
    (*

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

    *)
  2. certificate_detail : certificate option;
    (*

    An object that describes a certificate in detail.

    *)
  3. domain_name : domain_name option;
    (*

    The domain name of the certificate.

    *)
  4. certificate_name : certificate_name option;
    (*

    The name of the certificate.

    *)
  5. certificate_arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the certificate.

    *)
}

Describes an Amazon Lightsail SSL/TLS certificate.

type nonrec certificate_summary_list = certificate_summary list
type nonrec get_certificates_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. certificates : certificate_summary_list option;
    (*

    An object that describes certificates.

    *)
}
type nonrec certificate_status_list = certificate_status list
type nonrec include_certificate_details = bool
type nonrec get_certificates_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
  2. certificate_name : certificate_name option;
    (*

    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.

    *)
  3. include_certificate_details : include_certificate_details option;
    (*

    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.

    *)
  4. certificate_statuses : certificate_status_list option;
    (*

    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.

    *)
}
type nonrec instance_platform =
  1. | Windows
  2. | LinuxUnix
type nonrec instance_platform_list = instance_platform list
type nonrec app_category =
  1. | LfR
type nonrec app_category_list = app_category list
type nonrec bundle = {
  1. public_ipv4_address_count : integer option;
    (*

    An integer that indicates the public ipv4 address count included in the bundle, the value is either 0 or 1.

    *)
  2. supported_app_categories : app_category_list option;
    (*

    Virtual computer blueprints that are supported by a Lightsail for Research bundle.

    This parameter only applies to Lightsail for Research resources.

    *)
  3. supported_platforms : instance_platform_list option;
    (*

    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.

    *)
  4. transfer_per_month_in_gb : integer option;
    (*

    The data transfer rate per month in GB (2000).

    *)
  5. ram_size_in_gb : float_ option;
    (*

    The amount of RAM in GB (2.0).

    *)
  6. power : integer option;
    (*

    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.

    *)
  7. name : string_ option;
    (*

    A friendly name for the bundle (Micro).

    *)
  8. is_active : boolean_ option;
    (*

    A Boolean value indicating whether the bundle is active.

    *)
  9. instance_type : string_ option;
    (*

    The instance type (micro).

    *)
  10. bundle_id : non_empty_string option;
    (*

    The bundle ID (micro_x_x).

    *)
  11. disk_size_in_gb : integer option;
    (*

    The size of the SSD (30).

    *)
  12. cpu_count : integer option;
    (*

    The number of vCPUs included in the bundle (2).

    *)
  13. price : float_ option;
    (*

    The price in US dollars (5.0) of the bundle.

    *)
}

Describes a bundle, which is a set of specs describing your virtual private server (or instance).

type nonrec bundle_list = bundle list
type nonrec get_bundles_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. bundles : bundle_list option;
    (*

    An array of key-value pairs that contains information about the available bundles.

    *)
}
type nonrec get_bundles_request = {
  1. app_category : app_category option;
    (*

    Returns a list of bundles that are specific to Lightsail for Research.

    You must use this parameter to view Lightsail for Research bundles.

    *)
  2. page_token : string_ option;
    (*

    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.

    *)
  3. include_inactive : boolean_ option;
    (*

    A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.

    *)
}
type nonrec bucket_list = bucket list
type nonrec account_level_bpa_sync_status =
  1. | Defaulted
  2. | NeverSynced
  3. | Failed
  4. | InSync
type nonrec bpa_status_message =
  1. | Unknown
  2. | DEFAULTED_FOR_SLR_MISSING_ON_HOLD
  3. | SYNC_ON_HOLD
  4. | DEFAULTED_FOR_SLR_MISSING
type nonrec account_level_bpa_sync = {
  1. bpa_impacts_lightsail : boolean_ option;
    (*

    A Boolean value that indicates whether account-level block public access is affecting your Lightsail buckets.

    *)
  2. message : bpa_status_message option;
    (*

    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 ServicesSupport for more information.
    *)
  3. last_synced_at : iso_date option;
    (*

    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.

    *)
  4. status : account_level_bpa_sync_status option;
    (*

    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.

    You might need to complete further actions if the status is Failed or Defaulted. The message parameter provides more information for those statuses.

    *)
}

Describes the synchronization status of the Amazon Simple Storage Service (Amazon S3) account-level block public access (BPA) feature for your Lightsail buckets.

The account-level BPA feature of Amazon S3 provides centralized controls to limit public access to all Amazon S3 buckets in an account. BPA can make all Amazon S3 buckets in an Amazon Web Services account private regardless of the individual bucket and object permissions that are configured. Lightsail buckets take into account the Amazon S3 account-level BPA configuration when allowing or denying public access. To do this, Lightsail periodically fetches the account-level BPA configuration from Amazon S3. When the account-level BPA status is InSync, the Amazon S3 account-level BPA configuration is synchronized and it applies to your Lightsail buckets. For more information about Amazon Simple Storage Service account-level BPA and how it affects Lightsail buckets, see Block public access for buckets in Amazon Lightsail in the Amazon Lightsail Developer Guide.

type nonrec get_buckets_result = {
  1. account_level_bpa_sync : account_level_bpa_sync option;
    (*

    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.

    *)
  2. next_page_token : string_ option;
    (*

    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.

    *)
  3. buckets : bucket_list option;
    (*

    An array of objects that describe buckets.

    *)
}
type nonrec get_buckets_request = {
  1. include_connected_resources : boolean_ option;
    (*

    A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action.

    *)
  2. page_token : string_ option;
    (*

    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.

    *)
  3. bucket_name : bucket_name option;
    (*

    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.

    *)
}
type nonrec bucket_metric_name =
  1. | NumberOfObjects
  2. | BucketSizeBytes
type nonrec get_bucket_metric_data_result = {
  1. metric_data : metric_datapoint_list option;
    (*

    An array of objects that describe the metric data returned.

    *)
  2. metric_name : bucket_metric_name option;
    (*

    The name of the metric returned.

    *)
}
type nonrec get_bucket_metric_data_request = {
  1. unit_ : metric_unit;
    (*

    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.

    *)
  2. statistics : metric_statistic_list;
    (*

    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.
    *)
  3. period : metric_period;
    (*

    The granularity, in seconds, of the returned data points.

    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.

    *)
  4. end_time : iso_date;
    (*

    The timestamp indicating the latest data to be returned.

    *)
  5. start_time : iso_date;
    (*

    The timestamp indicating the earliest data to be returned.

    *)
  6. metric_name : bucket_metric_name;
    (*

    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.

    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.

    *)
  7. bucket_name : bucket_name;
    (*

    The name of the bucket for which to get metric data.

    *)
}
type nonrec bucket_bundle = {
  1. is_active : boolean_ option;
    (*

    Indicates whether the bundle is active. Use for a new or existing bucket.

    *)
  2. transfer_per_month_in_gb : integer option;
    (*

    The monthly network transfer quota of the bundle.

    *)
  3. storage_per_month_in_gb : integer option;
    (*

    The storage size of the bundle, in GB.

    *)
  4. price : float_ option;
    (*

    The monthly price of the bundle, in US dollars.

    *)
  5. name : non_empty_string option;
    (*

    The name of the bundle.

    *)
  6. bundle_id : non_empty_string option;
    (*

    The ID of the bundle.

    *)
}

Describes the specifications of a bundle that can be applied to an Amazon Lightsail bucket.

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

type nonrec bucket_bundle_list = bucket_bundle list
type nonrec get_bucket_bundles_result = {
  1. bundles : bucket_bundle_list option;
    (*

    An object that describes bucket bundles.

    *)
}
type nonrec get_bucket_bundles_request = {
  1. include_inactive : boolean_ option;
    (*

    A Boolean value that indicates whether to include inactive (unavailable) bundles in the response of your request.

    *)
}
type nonrec iam_access_key_id = string
type nonrec access_key_last_used = {
  1. service_name : string_ option;
    (*

    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.

    *)
  2. region : string_ option;
    (*

    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.

    *)
  3. last_used_date : iso_date option;
    (*

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

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

    *)
}

Describes the last time an access key was used.

This object does not include data in the response of a CreateBucketAccessKey action.

type nonrec access_key = {
  1. last_used : access_key_last_used option;
    (*

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

    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.

    *)
  2. created_at : iso_date option;
    (*

    The timestamp when the access key was created.

    *)
  3. status : status_type option;
    (*

    The status of the access key.

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

    *)
  4. secret_access_key : non_empty_string option;
    (*

    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.

    *)
  5. access_key_id : iam_access_key_id option;
    (*

    The ID of the access key.

    *)
}

Describes an access key for an Amazon Lightsail bucket.

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 CreateBucketAccessKey action to create an access key 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.

type nonrec access_key_list = access_key list
type nonrec get_bucket_access_keys_result = {
  1. access_keys : access_key_list option;
    (*

    An object that describes the access keys for the specified bucket.

    *)
}
type nonrec get_bucket_access_keys_request = {
  1. bucket_name : bucket_name;
    (*

    The name of the bucket for which to return access keys.

    *)
}
type nonrec blueprint_type =
  1. | App
  2. | Os
type nonrec blueprint = {
  1. app_category : app_category option;
    (*

    Virtual computer blueprints that are supported by Lightsail for Research.

    This parameter only applies to Lightsail for Research resources.

    *)
  2. platform : instance_platform option;
    (*

    The operating system platform (either Linux/Unix-based or Windows Server-based) of the blueprint.

    *)
  3. license_url : string_ option;
    (*

    The end-user license agreement URL for the image or blueprint.

    *)
  4. product_url : string_ option;
    (*

    The product URL to learn more about the image or blueprint.

    *)
  5. version_code : string_ option;
    (*

    The version code.

    *)
  6. version : string_ option;
    (*

    The version number of the operating system, application, or stack ( 2016.03.0).

    *)
  7. min_power : integer option;
    (*

    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.

    *)
  8. is_active : boolean_ option;
    (*

    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.

    *)
  9. description : string_ option;
    (*

    The description of the blueprint.

    *)
  10. type_ : blueprint_type option;
    (*

    The type of the blueprint (os or app).

    *)
  11. group : non_empty_string option;
    (*

    The group name of the blueprint (amazon-linux).

    *)
  12. name : resource_name option;
    (*

    The friendly name of the blueprint (Amazon Linux).

    *)
  13. blueprint_id : non_empty_string option;
    (*

    The ID for the virtual private server image (app_wordpress_x_x or app_lamp_x_x).

    *)
}

Describes a blueprint (a virtual private server image).

type nonrec blueprint_list = blueprint list
type nonrec get_blueprints_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. blueprints : blueprint_list option;
    (*

    An array of key-value pairs that contains information about the available blueprints.

    *)
}
type nonrec get_blueprints_request = {
  1. app_category : app_category option;
    (*

    Returns a list of blueprints that are specific to Lightsail for Research.

    You must use this parameter to view Lightsail for Research blueprints.

    *)
  2. page_token : string_ option;
    (*

    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.

    *)
  3. include_inactive : boolean_ option;
    (*

    A Boolean value that indicates whether to include inactive (unavailable) blueprints in the response of your request.

    *)
}
type nonrec auto_snapshot_status =
  1. | NOT_FOUND
  2. | IN_PROGRESS
  3. | FAILED
  4. | SUCCESS
type nonrec attached_disk = {
  1. size_in_gb : integer option;
    (*

    The size of the disk in GB.

    *)
  2. path : string_ option;
    (*

    The path of the disk (/dev/xvdf).

    *)
}

Describes a block storage disk that is attached to an instance, and is included in an automatic snapshot.

type nonrec attached_disk_list = attached_disk list
type nonrec auto_snapshot_details = {
  1. from_attached_disks : attached_disk_list option;
    (*

    An array of objects that describe the block storage disks attached to the instance when the automatic snapshot was created.

    *)
  2. status : auto_snapshot_status option;
    (*

    The status of the automatic snapshot.

    *)
  3. created_at : iso_date option;
    (*

    The timestamp when the automatic snapshot was created.

    *)
  4. date : string_ option;
    (*

    The date of the automatic snapshot in YYYY-MM-DD format.

    *)
}

Describes an automatic snapshot.

type nonrec auto_snapshot_details_list = auto_snapshot_details list
type nonrec get_auto_snapshots_result = {
  1. auto_snapshots : auto_snapshot_details_list option;
    (*

    An array of objects that describe the automatic snapshots that are available for the specified source instance or disk.

    *)
  2. resource_type : resource_type option;
    (*

    The resource type of the automatic snapshot. The possible values are Instance, and Disk.

    *)
  3. resource_name : resource_name option;
    (*

    The name of the source instance or disk for the automatic snapshots.

    *)
}
type nonrec get_auto_snapshots_request = {
  1. resource_name : resource_name;
    (*

    The name of the source instance or disk from which to get automatic snapshot information.

    *)
}
type nonrec alarm = {
  1. notification_enabled : boolean_ option;
    (*

    Indicates whether the alarm is enabled.

    *)
  2. notification_triggers : notification_trigger_list option;
    (*

    The alarm states that trigger a notification.

    *)
  3. contact_protocols : contact_protocols_list option;
    (*

    The contact protocols for the alarm, such as Email, SMS (text messaging), or both.

    *)
  4. unit_ : metric_unit option;
    (*

    The unit of the metric associated with the alarm.

    *)
  5. state : alarm_state option;
    (*

    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.
    *)
  6. metric_name : metric_name option;
    (*

    The name of the metric associated with the alarm.

    *)
  7. statistic : metric_statistic option;
    (*

    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.
    *)
  8. treat_missing_data : treat_missing_data option;
    (*

    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.
    *)
  9. datapoints_to_alarm : integer option;
    (*

    The number of data points that must not within the specified threshold to trigger the alarm.

    *)
  10. threshold : double option;
    (*

    The value against which the specified statistic is compared.

    *)
  11. period : metric_period option;
    (*

    The period, in seconds, over which the statistic is applied.

    *)
  12. evaluation_periods : integer option;
    (*

    The number of periods over which data is compared to the specified threshold.

    *)
  13. comparison_operator : comparison_operator option;
    (*

    The arithmetic operation used when comparing the specified statistic and threshold.

    *)
  14. monitored_resource_info : monitored_resource_info option;
    (*

    An object that lists information about the resource monitored by the alarm.

    *)
  15. support_code : string_ option;
    (*

    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.

    *)
  16. resource_type : resource_type option;
    (*

    The Lightsail resource type of the alarm.

    *)
  17. location : resource_location option;
    (*

    An object that lists information about the location of the alarm.

    *)
  18. created_at : iso_date option;
    (*

    The timestamp when the alarm was created.

    *)
  19. arn : non_empty_string option;
    (*

    The Amazon Resource Name (ARN) of the alarm.

    *)
  20. name : resource_name option;
    (*

    The name of the alarm.

    *)
}

Describes an alarm.

An alarm is a way to monitor your Lightsail resource metrics. For more information, see Alarms in Amazon Lightsail.

type nonrec alarms_list = alarm list
type nonrec get_alarms_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. alarms : alarms_list option;
    (*

    An array of objects that describe the alarms.

    *)
}
type nonrec get_alarms_request = {
  1. monitored_resource_name : resource_name option;
    (*

    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.

    *)
  2. page_token : string_ option;
    (*

    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.

    *)
  3. alarm_name : resource_name option;
    (*

    The name of the alarm.

    Specify an alarm name to return information about a specific alarm.

    *)
}
type nonrec get_active_names_result = {
  1. next_page_token : string_ option;
    (*

    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.

    *)
  2. active_names : string_list option;
    (*

    The list of active names returned by the get active names request.

    *)
}
type nonrec get_active_names_request = {
  1. page_token : string_ option;
    (*

    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.

    *)
}
type nonrec export_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec export_snapshot_request = {
  1. source_snapshot_name : resource_name;
    (*

    The name of the instance or disk snapshot to be exported to Amazon EC2.

    *)
}
type nonrec enable_add_on_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec add_on_type =
  1. | StopInstanceOnIdle
  2. | AutoSnapshot
type nonrec auto_snapshot_add_on_request = {
  1. snapshot_time_of_day : time_of_day option;
    (*

    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.
    *)
}

Describes a request to enable or modify the automatic snapshot add-on for an Amazon Lightsail instance or disk.

When you modify the automatic snapshot time for a resource, it is typically effective immediately except under the following conditions:

  • If an automatic snapshot has been created for the current day, and you change the snapshot time to a later time of day, then the new snapshot time will be effective the following day. This ensures that two snapshots are not created for the current day.
  • If an automatic snapshot has not yet been created for the current day, and you change the snapshot time to an earlier time of day, then the new snapshot time will be effective the following day and a snapshot is automatically created at the previously set time for the current day. This ensures that a snapshot is created for the current day.
  • If an automatic snapshot has not yet been created for the current day, and you change the snapshot time to a time that is within 30 minutes from your current time, then the new snapshot time will be effective the following day and a snapshot is automatically created at the previously set time for the current day. This ensures that a snapshot is created for the current day, because 30 minutes is required between your current time and the new snapshot time that you specify.
  • If an automatic snapshot is scheduled to be created within 30 minutes from your current time and you change the snapshot time, then the new snapshot time will be effective the following day and a snapshot is automatically created at the previously set time for the current day. This ensures that a snapshot is created for the current day, because 30 minutes is required between your current time and the new snapshot time that you specify.
type nonrec add_on_request = {
  1. stop_instance_on_idle_request : stop_instance_on_idle_request option;
    (*

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

    This object only applies to Lightsail for Research resources.

    *)
  2. auto_snapshot_add_on_request : auto_snapshot_add_on_request option;
    (*

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

    *)
  3. add_on_type : add_on_type;
    (*

    The add-on type.

    *)
}

Describes a request to enable, modify, or disable an add-on for an Amazon Lightsail resource.

An additional cost may be associated with enabling add-ons. For more information, see the Lightsail pricing page.

type nonrec enable_add_on_request = {
  1. add_on_request : add_on_request;
    (*

    An array of strings representing the add-on to enable or modify.

    *)
  2. resource_name : resource_name;
    (*

    The name of the source resource for which to enable or modify the add-on.

    *)
}
type nonrec download_default_key_pair_result = {
  1. created_at : iso_date option;
    (*

    The timestamp when the default key pair was created.

    *)
  2. private_key_base64 : base64 option;
    (*

    A base64-encoded RSA private key.

    *)
  3. public_key_base64 : base64 option;
    (*

    A base64-encoded public key of the ssh-rsa type.

    *)
}
type nonrec download_default_key_pair_request = unit
type nonrec disable_add_on_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec disable_add_on_request = {
  1. resource_name : resource_name;
    (*

    The name of the source resource for which to disable the add-on.

    *)
  2. add_on_type : add_on_type;
    (*

    The add-on type to disable.

    *)
}
type nonrec detach_static_ip_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec detach_static_ip_request = {
  1. static_ip_name : resource_name;
    (*

    The name of the static IP to detach from the instance.

    *)
}
type nonrec detach_instances_from_load_balancer_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec detach_instances_from_load_balancer_request = {
  1. instance_names : resource_name_list;
    (*

    An array of strings containing the names of the instances you want to detach from the load balancer.

    *)
  2. load_balancer_name : resource_name;
    (*

    The name of the Lightsail load balancer.

    *)
}
type nonrec detach_disk_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec detach_disk_request = {
  1. disk_name : resource_name;
    (*

    The unique name of the disk you want to detach from your instance (my-disk).

    *)
}
type nonrec detach_certificate_from_distribution_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec detach_certificate_from_distribution_request = {
  1. distribution_name : resource_name;
    (*

    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.

    *)
}
type nonrec delete_relational_database_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_relational_database_snapshot_request = {
  1. relational_database_snapshot_name : resource_name;
    (*

    The name of the database snapshot that you are deleting.

    *)
}
type nonrec delete_relational_database_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_relational_database_request = {
  1. final_relational_database_snapshot_name : resource_name option;
    (*

    The name of the database snapshot created if skip final snapshot is false, which is the default value for that parameter.

    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.
    *)
  2. skip_final_snapshot : boolean_ option;
    (*

    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

    *)
  3. relational_database_name : resource_name;
    (*

    The name of the database that you are deleting.

    *)
}
type nonrec delete_load_balancer_tls_certificate_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_load_balancer_tls_certificate_request = {
  1. force : boolean_ option;
    (*

    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.

    *)
  2. certificate_name : resource_name;
    (*

    The SSL/TLS certificate name.

    *)
  3. load_balancer_name : resource_name;
    (*

    The load balancer name.

    *)
}
type nonrec delete_load_balancer_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_load_balancer_request = {
  1. load_balancer_name : resource_name;
    (*

    The name of the load balancer you want to delete.

    *)
}
type nonrec delete_known_host_keys_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_known_host_keys_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance for which you want to reset the host key or certificate.

    *)
}
type nonrec delete_key_pair_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec delete_key_pair_request = {
  1. expected_fingerprint : string_ option;
    (*

    The RSA fingerprint of the Lightsail default key pair to delete.

    The expectedFingerprint parameter is required only when specifying to delete a Lightsail default key pair.

    *)
  2. key_pair_name : resource_name;
    (*

    The name of the key pair to delete.

    *)
}
type nonrec delete_instance_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_instance_snapshot_request = {
  1. instance_snapshot_name : resource_name;
    (*

    The name of the snapshot to delete.

    *)
}
type nonrec delete_instance_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_instance_request = {
  1. force_delete_add_ons : boolean_ option;
    (*

    A Boolean value to indicate whether to delete all add-ons for the instance.

    *)
  2. instance_name : resource_name;
    (*

    The name of the instance to delete.

    *)
}
type nonrec delete_domain_entry_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec delete_domain_entry_request = {
  1. domain_entry : domain_entry;
    (*

    An array of key-value pairs containing information about your domain entries.

    *)
  2. domain_name : domain_name;
    (*

    The name of the domain entry to delete.

    *)
}
type nonrec delete_domain_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec delete_domain_request = {
  1. domain_name : domain_name;
    (*

    The specific domain name to delete.

    *)
}
type nonrec delete_distribution_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec delete_distribution_request = {
  1. distribution_name : resource_name option;
    (*

    The name of the distribution to delete.

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

    *)
}
type nonrec delete_disk_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_disk_snapshot_request = {
  1. disk_snapshot_name : resource_name;
    (*

    The name of the disk snapshot you want to delete (my-disk-snapshot).

    *)
}
type nonrec delete_disk_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_disk_request = {
  1. force_delete_add_ons : boolean_ option;
    (*

    A Boolean value to indicate whether to delete all add-ons for the disk.

    *)
  2. disk_name : resource_name;
    (*

    The unique name of the disk you want to delete (my-disk).

    *)
}
type nonrec delete_container_service_result = unit
type nonrec delete_container_service_request = {
  1. service_name : container_service_name;
    (*

    The name of the container service to delete.

    *)
}
type nonrec delete_container_image_result = unit
type nonrec delete_container_image_request = {
  1. 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.

    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.

    *)
  2. service_name : container_service_name;
    (*

    The name of the container service for which to delete a registered container image.

    *)
}
type nonrec delete_contact_method_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_contact_method_request = {
  1. protocol : contact_protocol;
    (*

    The protocol that will be deleted, such as Email or SMS (text messaging).

    To delete an Email and an SMS contact method if you added both, you must run separate DeleteContactMethod actions to delete each protocol.

    *)
}
type nonrec delete_certificate_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_certificate_request = {
  1. certificate_name : certificate_name;
    (*

    The name of the certificate to delete.

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

    *)
}
type nonrec delete_bucket_access_key_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_bucket_access_key_request = {
  1. access_key_id : non_empty_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.

    *)
  2. bucket_name : bucket_name;
    (*

    The name of the bucket that the access key belongs to.

    *)
}
type nonrec delete_bucket_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_bucket_request = {
  1. force_delete : boolean_ option;
    (*

    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.

    *)
  2. bucket_name : bucket_name;
    (*

    The name of the bucket to delete.

    Use the GetBuckets action to get a list of bucket names that you can specify.

    *)
}
type nonrec delete_auto_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec auto_snapshot_date = string
type nonrec delete_auto_snapshot_request = {
  1. date : auto_snapshot_date;
    (*

    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.

    *)
  2. resource_name : resource_name;
    (*

    The name of the source instance or disk from which to delete the automatic snapshot.

    *)
}
type nonrec delete_alarm_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec delete_alarm_request = {
  1. alarm_name : resource_name;
    (*

    The name of the alarm to delete.

    *)
}
type nonrec create_relational_database_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_relational_database_snapshot_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. relational_database_snapshot_name : resource_name;
    (*

    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.
    *)
  3. relational_database_name : resource_name;
    (*

    The name of the database on which to base your new snapshot.

    *)
}
type nonrec create_relational_database_from_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_relational_database_from_snapshot_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. use_latest_restorable_time : boolean_ option;
    (*

    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.

    *)
  3. restore_time : iso_date option;
    (*

    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.

    *)
  4. source_relational_database_name : resource_name option;
    (*

    The name of the source database.

    *)
  5. relational_database_bundle_id : string_ option;
    (*

    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.

    *)
  6. relational_database_snapshot_name : resource_name option;
    (*

    The name of the database snapshot from which to create your new database.

    *)
  7. publicly_accessible : boolean_ option;
    (*

    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.

    *)
  8. availability_zone : string_ option;
    (*

    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.

    *)
  9. relational_database_name : resource_name;
    (*

    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.
    *)
}
type nonrec create_relational_database_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_relational_database_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. publicly_accessible : boolean_ option;
    (*

    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.

    *)
  3. preferred_maintenance_window : string_ option;
    (*

    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
    *)
  4. preferred_backup_window : string_ option;
    (*

    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.
    *)
  5. master_user_password : sensitive_string option;
    (*

    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.

    *)
  6. master_username : 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.

    *)
  7. master_database_name : 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.

    *)
  8. relational_database_bundle_id : 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.

    *)
  9. relational_database_blueprint_id : 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.

    *)
  10. availability_zone : string_ option;
    (*

    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.

    *)
  11. relational_database_name : resource_name;
    (*

    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.
    *)
}
type nonrec create_load_balancer_tls_certificate_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec domain_name_list = domain_name list
type nonrec create_load_balancer_tls_certificate_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. certificate_alternative_names : domain_name_list option;
    (*

    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).

    *)
  3. certificate_domain_name : domain_name;
    (*

    The domain name (example.com) for your SSL/TLS certificate.

    *)
  4. certificate_name : resource_name;
    (*

    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.

    *)
  5. load_balancer_name : resource_name;
    (*

    The load balancer name where you want to create the SSL/TLS certificate.

    *)
}
type nonrec create_load_balancer_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_load_balancer_request = {
  1. tls_policy_name : string_ option;
    (*

    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.

    *)
  2. ip_address_type : ip_address_type option;
    (*

    The IP address type for the load balancer.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    *)
  3. tags : tag_list option;
    (*

    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.

    *)
  4. certificate_alternative_names : domain_name_list option;
    (*

    The optional alternative domains and subdomains to use with your SSL/TLS certificate (www.example.com, example.com, m.example.com, blog.example.com).

    *)
  5. certificate_domain_name : domain_name option;
    (*

    The domain name with which your certificate is associated (example.com).

    If you specify certificateDomainName, then certificateName is required (and vice-versa).

    *)
  6. certificate_name : resource_name option;
    (*

    The name of the SSL/TLS certificate.

    If you specify certificateName, then certificateDomainName is required (and vice-versa).

    *)
  7. health_check_path : string_ option;
    (*

    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.

    *)
  8. instance_port : port;
    (*

    The instance port where you're creating your load balancer.

    *)
  9. load_balancer_name : resource_name;
    (*

    The name of your load balancer.

    *)
}
type nonrec create_key_pair_result = {
  1. operation : operation option;
    (*

    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.

    *)
  2. private_key_base64 : base64 option;
    (*

    A base64-encoded RSA private key.

    *)
  3. public_key_base64 : base64 option;
    (*

    A base64-encoded public key of the ssh-rsa type.

    *)
  4. key_pair : key_pair option;
    (*

    An array of key-value pairs containing information about the new key pair you just created.

    *)
}
type nonrec create_key_pair_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. key_pair_name : resource_name;
    (*

    The name for your new key pair.

    *)
}
type nonrec create_instance_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_instance_snapshot_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. instance_name : resource_name;
    (*

    The Lightsail instance on which to base your snapshot.

    *)
  3. instance_snapshot_name : resource_name;
    (*

    The name for your new snapshot.

    *)
}
type nonrec create_instances_from_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec disk_map = {
  1. new_disk_name : resource_name option;
    (*

    The new disk name (my-new-disk).

    *)
  2. original_disk_path : non_empty_string option;
    (*

    The original disk path exposed to the instance (for example, /dev/sdh).

    *)
}

Describes a block storage disk mapping.

type nonrec disk_map_list = disk_map list
type nonrec attached_disk_map = (resource_name * disk_map_list) list
type nonrec add_on_request_list = add_on_request list
type nonrec create_instances_from_snapshot_request = {
  1. use_latest_restorable_auto_snapshot : boolean_ option;
    (*

    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.
    *)
  2. restore_date : string_ option;
    (*

    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.
    *)
  3. source_instance_name : string_ option;
    (*

    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.
    *)
  4. ip_address_type : ip_address_type option;
    (*

    The IP address type for the instance.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    *)
  5. add_ons : add_on_request_list option;
    (*

    An array of objects representing the add-ons to enable for the new instance.

    *)
  6. tags : tag_list option;
    (*

    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.

    *)
  7. key_pair_name : resource_name option;
    (*

    The name for your key pair.

    *)
  8. user_data : string_ option;
    (*

    You can create a launch script that configures a server with additional user data. For example, apt-get -y update.

    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.

    *)
  9. bundle_id : non_empty_string;
    (*

    The bundle of specification information for your virtual private server (or instance), including the pricing plan (micro_x_x).

    *)
  10. instance_snapshot_name : resource_name option;
    (*

    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.
    *)
  11. availability_zone : 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.

    *)
  12. attached_disk_mapping : attached_disk_map option;
    (*

    An object containing information about one or more disk mappings.

    *)
  13. instance_names : string_list;
    (*

    The names for your new instances.

    *)
}
type nonrec create_instances_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_instances_request = {
  1. ip_address_type : ip_address_type option;
    (*

    The IP address type for the instance.

    The possible values are ipv4 for IPv4 only, ipv6 for IPv6 only, and dualstack for IPv4 and IPv6.

    The default value is dualstack.

    *)
  2. add_ons : add_on_request_list option;
    (*

    An array of objects representing the add-ons to enable for the new instance.

    *)
  3. tags : tag_list option;
    (*

    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.

    *)
  4. key_pair_name : resource_name option;
    (*

    The name of your key pair.

    *)
  5. user_data : string_ option;
    (*

    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.

    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.

    *)
  6. bundle_id : non_empty_string;
    (*

    The bundle of specification information for your virtual private server (or instance), including the pricing plan (medium_x_x).

    *)
  7. blueprint_id : non_empty_string;
    (*

    The ID for a virtual private server image (app_wordpress_x_x or app_lamp_x_x). Use the get blueprints operation to return a list of available images (or blueprints).

    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.

    *)
  8. custom_image_name : resource_name option;
    (*

    (Discontinued) The name for your custom image.

    In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued.

    *)
  9. availability_zone : 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.

    *)
  10. instance_names : string_list;
    (*

    The names to use for your new Lightsail instances. Separate multiple values using quotation marks and commas, for example: ["MyFirstInstance","MySecondInstance"]

    *)
}
type nonrec create_gui_session_access_details_result = {
  1. sessions : sessions option;
    (*

    Returns information about the specified Amazon DCV GUI session.

    *)
  2. failure_reason : string_ option;
    (*

    The reason the operation failed.

    *)
  3. percentage_complete : integer option;
    (*

    The percentage of completion for the operation.

    *)
  4. status : status option;
    (*

    The status of the operation.

    *)
  5. resource_name : resource_name option;
    (*

    The resource name.

    *)
}
type nonrec create_gui_session_access_details_request = {
  1. resource_name : resource_name;
    (*

    The resource name.

    *)
}
type nonrec create_domain_entry_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec create_domain_entry_request = {
  1. domain_entry : domain_entry;
    (*

    An array of key-value pairs containing information about the domain entry request.

    *)
  2. domain_name : domain_name;
    (*

    The domain name (example.com) for which you want to create the domain entry.

    *)
}
type nonrec create_domain_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec create_domain_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. domain_name : domain_name;
    (*

    The domain name to manage (example.com).

    *)
}
type nonrec create_distribution_result = {
  1. operation : operation option;
    (*

    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.

    *)
  2. distribution : lightsail_distribution option;
    (*

    An object that describes the distribution created.

    *)
}
type nonrec create_distribution_request = {
  1. viewer_minimum_tls_protocol_version : viewer_minimum_tls_protocol_version_enum option;
    (*

    The minimum TLS protocol version for the SSL/TLS certificate.

    *)
  2. certificate_name : resource_name option;
    (*

    The name of the SSL/TLS certificate that you want to attach to the distribution.

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

    *)
  3. tags : tag_list option;
    (*

    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.

    *)
  4. ip_address_type : ip_address_type option;
    (*

    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.

    *)
  5. bundle_id : 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.

    *)
  6. cache_behaviors : cache_behavior_list option;
    (*

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

    *)
  7. cache_behavior_settings : cache_settings option;
    (*

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

    *)
  8. default_cache_behavior : cache_behavior;
    (*

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

    *)
  9. origin : input_origin;
    (*

    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.

    *)
  10. distribution_name : resource_name;
    (*

    The name for the distribution.

    *)
}
type nonrec create_disk_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_disk_snapshot_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. instance_name : resource_name option;
    (*

    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.

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

    *)
  3. disk_snapshot_name : resource_name;
    (*

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

    *)
  4. disk_name : resource_name option;
    (*

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

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

    *)
}
type nonrec create_disk_from_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_disk_from_snapshot_request = {
  1. use_latest_restorable_auto_snapshot : boolean_ option;
    (*

    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.
    *)
  2. restore_date : string_ option;
    (*

    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.
    *)
  3. source_disk_name : string_ option;
    (*

    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.
    *)
  4. add_ons : add_on_request_list option;
    (*

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

    *)
  5. tags : tag_list option;
    (*

    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.

    *)
  6. size_in_gb : integer;
    (*

    The size of the disk in GB (32).

    *)
  7. availability_zone : non_empty_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.

    *)
  8. disk_snapshot_name : resource_name option;
    (*

    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.
    *)
  9. disk_name : resource_name;
    (*

    The unique Lightsail disk name (my-disk).

    *)
}
type nonrec create_disk_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_disk_request = {
  1. add_ons : add_on_request_list option;
    (*

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

    *)
  2. tags : tag_list option;
    (*

    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.

    *)
  3. size_in_gb : integer;
    (*

    The size of the disk in GB (32).

    *)
  4. availability_zone : non_empty_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.

    *)
  5. disk_name : resource_name;
    (*

    The unique Lightsail disk name (my-disk).

    *)
}
type nonrec container_service_registry_login = {
  1. registry : string_ option;
    (*

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

    *)
  2. expires_at : iso_date option;
    (*

    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.

    *)
  3. password : string_ option;
    (*

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

    *)
  4. username : string_ option;
    (*

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

    *)
}

Describes the sign-in credentials for the container image registry of an Amazon Lightsail account.

type nonrec create_container_service_registry_login_result = {
  1. registry_login : container_service_registry_login option;
    (*

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

    *)
}
type nonrec create_container_service_registry_login_request = unit
type nonrec create_container_service_deployment_result = {
  1. container_service : container_service option;
    (*

    An object that describes a container service.

    *)
}
type nonrec endpoint_request = {
  1. health_check : container_service_health_check_config option;
    (*

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

    *)
  2. container_port : integer;
    (*

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

    *)
  3. container_name : string_;
    (*

    The name of the container for the endpoint.

    *)
}

Describes the settings of a public endpoint for an Amazon Lightsail container service.

type nonrec create_container_service_deployment_request = {
  1. public_endpoint : endpoint_request option;
    (*

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

    *)
  2. containers : container_map option;
    (*

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

    *)
  3. service_name : container_service_name;
    (*

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

    *)
}
type nonrec create_container_service_result = {
  1. container_service : container_service option;
    (*

    An object that describes a container service.

    *)
}
type nonrec container_service_deployment_request = {
  1. public_endpoint : endpoint_request option;
    (*

    An object that describes the endpoint of the deployment.

    *)
  2. containers : container_map option;
    (*

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

    *)
}

Describes a container deployment configuration of an 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.

type nonrec create_container_service_request = {
  1. private_registry_access : private_registry_access_request option;
    (*

    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.

    *)
  2. deployment : container_service_deployment_request option;
    (*

    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.

    *)
  3. public_domain_names : container_service_public_domains option;
    (*

    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.

    *)
  4. tags : tag_list option;
    (*

    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.

    *)
  5. scale : container_service_scale;
    (*

    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.

    *)
  6. power : container_service_power_name;
    (*

    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.

    *)
  7. service_name : container_service_name;
    (*

    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://...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.
    *)
}
type nonrec create_contact_method_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec create_contact_method_request = {
  1. contact_endpoint : string_max256;
    (*

    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.

    *)
  2. protocol : contact_protocol;
    (*

    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.

    *)
}
type nonrec create_cloud_formation_stack_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec instance_entry = {
  1. availability_zone : string_;
    (*

    The Availability Zone for the new Amazon EC2 instance.

    *)
  2. user_data : string_ option;
    (*

    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.

    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.

    *)
  3. port_info_source : port_info_source_type;
    (*

    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.

    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.

    *)
  4. instance_type : non_empty_string;
    (*

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

    *)
  5. source_name : resource_name;
    (*

    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.

    *)
}

Describes the Amazon Elastic Compute Cloud instance and related resources to be created using the create cloud formation stack operation.

type nonrec instance_entry_list = instance_entry list
type nonrec create_cloud_formation_stack_request = {
  1. instances : instance_entry_list;
    (*

    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.

    *)
}
type nonrec create_certificate_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
  2. certificate : certificate_summary option;
    (*

    An object that describes the certificate created.

    *)
}
type nonrec create_certificate_request = {
  1. tags : tag_list option;
    (*

    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.

    *)
  2. subject_alternative_names : subject_alternative_name_list option;
    (*

    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.

    *)
  3. domain_name : domain_name;
    (*

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

    *)
  4. certificate_name : certificate_name;
    (*

    The name for the certificate.

    *)
}
type nonrec create_bucket_access_key_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
  2. access_key : access_key option;
    (*

    An object that describes the access key that is created.

    *)
}
type nonrec create_bucket_access_key_request = {
  1. bucket_name : bucket_name;
    (*

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

    *)
}
type nonrec create_bucket_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
  2. bucket : bucket option;
    (*

    An object that describes the bucket that is created.

    *)
}
type nonrec create_bucket_request = {
  1. enable_object_versioning : boolean_ option;
    (*

    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.

    *)
  2. tags : tag_list option;
    (*

    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.

    *)
  3. bundle_id : non_empty_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.

    *)
  4. bucket_name : bucket_name;
    (*

    The name for the bucket.

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

    *)
}
type nonrec copy_snapshot_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec copy_snapshot_request = {
  1. source_region : region_name;
    (*

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

    *)
  2. target_snapshot_name : resource_name;
    (*

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

    *)
  3. use_latest_restorable_auto_snapshot : boolean_ option;
    (*

    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.
    *)
  4. restore_date : string_ option;
    (*

    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.
    *)
  5. source_resource_name : string_ option;
    (*

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

    Constraint:

    *)
  6. source_snapshot_name : resource_name option;
    (*

    The name of the source manual snapshot to copy.

    Constraint:

    • Define this parameter only when copying a manual snapshot as another manual snapshot.
    *)
}
type nonrec close_instance_public_ports_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec close_instance_public_ports_request = {
  1. instance_name : resource_name;
    (*

    The name of the instance for which to close ports.

    *)
  2. port_info : port_info;
    (*

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

    *)
}
type nonrec attach_static_ip_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec attach_static_ip_request = {
  1. instance_name : resource_name;
    (*

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

    *)
  2. static_ip_name : resource_name;
    (*

    The name of the static IP.

    *)
}
type nonrec attach_load_balancer_tls_certificate_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec attach_load_balancer_tls_certificate_request = {
  1. certificate_name : resource_name;
    (*

    The name of your SSL/TLS certificate.

    *)
  2. load_balancer_name : resource_name;
    (*

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

    *)
}
type nonrec attach_instances_to_load_balancer_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec attach_instances_to_load_balancer_request = {
  1. instance_names : resource_name_list;
    (*

    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).

    *)
  2. load_balancer_name : resource_name;
    (*

    The name of the load balancer.

    *)
}
type nonrec attach_disk_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec attach_disk_request = {
  1. auto_mounting : boolean_ option;
    (*

    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.

    *)
  2. disk_path : non_empty_string;
    (*

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

    *)
  3. instance_name : resource_name;
    (*

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

    *)
  4. disk_name : resource_name;
    (*

    The unique Lightsail disk name (my-disk).

    *)
}
type nonrec attach_certificate_to_distribution_result = {
  1. operation : operation option;
    (*

    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.

    *)
}
type nonrec attach_certificate_to_distribution_request = {
  1. certificate_name : resource_name;
    (*

    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.

    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.

    *)
  2. distribution_name : resource_name;
    (*

    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.

    *)
}
type nonrec allocate_static_ip_result = {
  1. operations : operation_list option;
    (*

    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.

    *)
}
type nonrec allocate_static_ip_request = {
  1. static_ip_name : resource_name;
    (*

    The name of the static IP address.

    *)
}