Amazon Lightsail

2022/11/08 - Amazon Lightsail - 5 updated api methods

Changes  This release adds support for Amazon Lightsail to automate the delegation of domains registered through Amazon Route 53 to Lightsail DNS management and to automate record creation for DNS validation of Lightsail SSL/TLS certificates.

CreateCertificate (updated) Link ¶
Changes (response)
{'certificate': {'certificateDetail': {'domainValidationRecords': {'dnsRecordCreationState': {'code': 'SUCCEEDED '
                                                                                                      '| '
                                                                                                      'STARTED '
                                                                                                      '| '
                                                                                                      'FAILED',
                                                                                              'message': 'string'},
                                                                   'validationStatus': 'PENDING_VALIDATION '
                                                                                       '| '
                                                                                       'FAILED '
                                                                                       '| '
                                                                                       'SUCCESS'},
                                       'renewalSummary': {'domainValidationRecords': {'dnsRecordCreationState': {'code': 'SUCCEEDED '
                                                                                                                         '| '
                                                                                                                         'STARTED '
                                                                                                                         '| '
                                                                                                                         'FAILED',
                                                                                                                 'message': 'string'},
                                                                                      'validationStatus': 'PENDING_VALIDATION '
                                                                                                          '| '
                                                                                                          'FAILED '
                                                                                                          '| '
                                                                                                          'SUCCESS'}}}}}

Creates an SSL/TLS certificate for an Amazon Lightsail content delivery network (CDN) distribution and a container service.

After the certificate is valid, use the AttachCertificateToDistribution action to use the certificate and its domains with your distribution. Or use the UpdateContainerService action to use the certificate and its domains with your container service.

Warning

Only certificates created in the us-east-1 Amazon Web Services Region can be attached to Lightsail distributions. Lightsail distributions are global resources that can reference an origin in any Amazon Web Services Region, and distribute its content globally. However, all distributions are located in the us-east-1 Region.

See also: AWS API Documentation

Request Syntax

client.create_certificate(
    certificateName='string',
    domainName='string',
    subjectAlternativeNames=[
        'string',
    ],
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type certificateName

string

param certificateName

[REQUIRED]

The name for the certificate.

type domainName

string

param domainName

[REQUIRED]

The domain name (e.g., example.com ) for the certificate.

type subjectAlternativeNames

list

param subjectAlternativeNames

An array of strings that specify the alternate domains (e.g., example2.com ) and subdomains (e.g., 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 (e.g., *.example.com ) are not supported.

  • (string) --

type tags

list

param tags

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.

  • (dict) --

    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.

    • key (string) --

      The key of the tag.

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

    • value (string) --

      The value of the tag.

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

rtype

dict

returns

Response Syntax

{
    'certificate': {
        'certificateArn': 'string',
        'certificateName': 'string',
        'domainName': 'string',
        'certificateDetail': {
            'arn': 'string',
            'name': 'string',
            'domainName': 'string',
            'status': 'PENDING_VALIDATION'|'ISSUED'|'INACTIVE'|'EXPIRED'|'VALIDATION_TIMED_OUT'|'REVOKED'|'FAILED',
            'serialNumber': 'string',
            'subjectAlternativeNames': [
                'string',
            ],
            'domainValidationRecords': [
                {
                    'domainName': 'string',
                    'resourceRecord': {
                        'name': 'string',
                        'type': 'string',
                        'value': 'string'
                    },
                    'dnsRecordCreationState': {
                        'code': 'SUCCEEDED'|'STARTED'|'FAILED',
                        'message': 'string'
                    },
                    'validationStatus': 'PENDING_VALIDATION'|'FAILED'|'SUCCESS'
                },
            ],
            'requestFailureReason': 'string',
            'inUseResourceCount': 123,
            'keyAlgorithm': 'string',
            'createdAt': datetime(2015, 1, 1),
            'issuedAt': datetime(2015, 1, 1),
            'issuerCA': 'string',
            'notBefore': datetime(2015, 1, 1),
            'notAfter': datetime(2015, 1, 1),
            'eligibleToRenew': 'string',
            'renewalSummary': {
                'domainValidationRecords': [
                    {
                        'domainName': 'string',
                        'resourceRecord': {
                            'name': 'string',
                            'type': 'string',
                            'value': 'string'
                        },
                        'dnsRecordCreationState': {
                            'code': 'SUCCEEDED'|'STARTED'|'FAILED',
                            'message': 'string'
                        },
                        'validationStatus': 'PENDING_VALIDATION'|'FAILED'|'SUCCESS'
                    },
                ],
                'renewalStatus': 'PendingAutoRenewal'|'PendingValidation'|'Success'|'Failed',
                'renewalStatusReason': 'string',
                'updatedAt': datetime(2015, 1, 1)
            },
            'revokedAt': datetime(2015, 1, 1),
            'revocationReason': 'string',
            'tags': [
                {
                    'key': 'string',
                    'value': 'string'
                },
            ],
            'supportCode': 'string'
        },
        'tags': [
            {
                'key': 'string',
                'value': 'string'
            },
        ]
    },
    'operations': [
        {
            'id': 'string',
            'resourceName': 'string',
            'resourceType': 'ContainerService'|'Instance'|'StaticIp'|'KeyPair'|'InstanceSnapshot'|'Domain'|'PeeredVpc'|'LoadBalancer'|'LoadBalancerTlsCertificate'|'Disk'|'DiskSnapshot'|'RelationalDatabase'|'RelationalDatabaseSnapshot'|'ExportSnapshotRecord'|'CloudFormationStackRecord'|'Alarm'|'ContactMethod'|'Distribution'|'Certificate'|'Bucket',
            'createdAt': datetime(2015, 1, 1),
            'location': {
                'availabilityZone': 'string',
                'regionName': 'us-east-1'|'us-east-2'|'us-west-1'|'us-west-2'|'eu-west-1'|'eu-west-2'|'eu-west-3'|'eu-central-1'|'ca-central-1'|'ap-south-1'|'ap-southeast-1'|'ap-southeast-2'|'ap-northeast-1'|'ap-northeast-2'|'eu-north-1'
            },
            'isTerminal': True|False,
            'operationDetails': 'string',
            'operationType': 'DeleteKnownHostKeys'|'DeleteInstance'|'CreateInstance'|'StopInstance'|'StartInstance'|'RebootInstance'|'OpenInstancePublicPorts'|'PutInstancePublicPorts'|'CloseInstancePublicPorts'|'AllocateStaticIp'|'ReleaseStaticIp'|'AttachStaticIp'|'DetachStaticIp'|'UpdateDomainEntry'|'DeleteDomainEntry'|'CreateDomain'|'DeleteDomain'|'CreateInstanceSnapshot'|'DeleteInstanceSnapshot'|'CreateInstancesFromSnapshot'|'CreateLoadBalancer'|'DeleteLoadBalancer'|'AttachInstancesToLoadBalancer'|'DetachInstancesFromLoadBalancer'|'UpdateLoadBalancerAttribute'|'CreateLoadBalancerTlsCertificate'|'DeleteLoadBalancerTlsCertificate'|'AttachLoadBalancerTlsCertificate'|'CreateDisk'|'DeleteDisk'|'AttachDisk'|'DetachDisk'|'CreateDiskSnapshot'|'DeleteDiskSnapshot'|'CreateDiskFromSnapshot'|'CreateRelationalDatabase'|'UpdateRelationalDatabase'|'DeleteRelationalDatabase'|'CreateRelationalDatabaseFromSnapshot'|'CreateRelationalDatabaseSnapshot'|'DeleteRelationalDatabaseSnapshot'|'UpdateRelationalDatabaseParameters'|'StartRelationalDatabase'|'RebootRelationalDatabase'|'StopRelationalDatabase'|'EnableAddOn'|'DisableAddOn'|'PutAlarm'|'GetAlarms'|'DeleteAlarm'|'TestAlarm'|'CreateContactMethod'|'GetContactMethods'|'SendContactMethodVerification'|'DeleteContactMethod'|'CreateDistribution'|'UpdateDistribution'|'DeleteDistribution'|'ResetDistributionCache'|'AttachCertificateToDistribution'|'DetachCertificateFromDistribution'|'UpdateDistributionBundle'|'SetIpAddressType'|'CreateCertificate'|'DeleteCertificate'|'CreateContainerService'|'UpdateContainerService'|'DeleteContainerService'|'CreateContainerServiceDeployment'|'CreateContainerServiceRegistryLogin'|'RegisterContainerImage'|'DeleteContainerImage'|'CreateBucket'|'DeleteBucket'|'CreateBucketAccessKey'|'DeleteBucketAccessKey'|'UpdateBucketBundle'|'UpdateBucket'|'SetResourceAccessForBucket'|'UpdateInstanceMetadataOptions',
            'status': 'NotStarted'|'Started'|'Failed'|'Completed'|'Succeeded',
            'statusChangedAt': datetime(2015, 1, 1),
            'errorCode': 'string',
            'errorDetails': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • certificate (dict) --

      An object that describes the certificate created.

      • certificateArn (string) --

        The Amazon Resource Name (ARN) of the certificate.

      • certificateName (string) --

        The name of the certificate.

      • domainName (string) --

        The domain name of the certificate.

      • certificateDetail (dict) --

        An object that describes a certificate in detail.

        • arn (string) --

          The Amazon Resource Name (ARN) of the certificate.

        • name (string) --

          The name of the certificate (e.g., my-certificate ).

        • domainName (string) --

          The domain name of the certificate.

        • status (string) --

          The validation status of the certificate.

        • serialNumber (string) --

          The serial number of the certificate.

        • subjectAlternativeNames (list) --

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

          • (string) --

        • domainValidationRecords (list) --

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

          • (dict) --

            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.

            • domainName (string) --

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

            • resourceRecord (dict) --

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

              • name (string) --

                The name of the record.

              • type (string) --

                The DNS record type.

              • value (string) --

                The value for the DNS record.

            • dnsRecordCreationState (dict) --

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

              • code (string) --

                The status code for the automated DNS record creation.

                Following are the possible values:

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

                • STARTED - The automatic DNS record creation has started.

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

              • message (string) --

                The message that describes the reason for the status code.

            • validationStatus (string) --

              The validation status of the record.

        • requestFailureReason (string) --

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

          The following failure reasons are possible:

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

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

          Note

          You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.

          • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do. If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate. If you see this error and your domain is not included in the VirusTotal list, visit the Amazon Web Services Support Center and create a case.

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

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

        • inUseResourceCount (integer) --

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

        • keyAlgorithm (string) --

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

        • createdAt (datetime) --

          The timestamp when the certificate was created.

        • issuedAt (datetime) --

          The timestamp when the certificate was issued.

        • issuerCA (string) --

          The certificate authority that issued the certificate.

        • notBefore (datetime) --

          The timestamp when the certificate is first valid.

        • notAfter (datetime) --

          The timestamp when the certificate expires.

        • eligibleToRenew (string) --

          The renewal eligibility of the certificate.

        • renewalSummary (dict) --

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

          • domainValidationRecords (list) --

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

            • (dict) --

              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.

              • domainName (string) --

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

              • resourceRecord (dict) --

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

                • name (string) --

                  The name of the record.

                • type (string) --

                  The DNS record type.

                • value (string) --

                  The value for the DNS record.

              • dnsRecordCreationState (dict) --

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

                • code (string) --

                  The status code for the automated DNS record creation.

                  Following are the possible values:

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

                  • STARTED - The automatic DNS record creation has started.

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

                • message (string) --

                  The message that describes the reason for the status code.

              • validationStatus (string) --

                The validation status of the record.

          • renewalStatus (string) --

            The renewal status of the certificate.

            The following renewal status are possible:

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

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

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

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

          • renewalStatusReason (string) --

            The reason for the renewal status of the certificate.

          • updatedAt (datetime) --

            The timestamp when the certificate was last updated.

        • revokedAt (datetime) --

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

        • revocationReason (string) --

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

        • tags (list) --

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

          • (dict) --

            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.

            • key (string) --

              The key of the tag.

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

            • value (string) --

              The value of the tag.

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

        • supportCode (string) --

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

      • tags (list) --

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

        • (dict) --

          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.

          • key (string) --

            The key of the tag.

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

          • value (string) --

            The value of the tag.

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

    • operations (list) --

      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.

      • (dict) --

        Describes the API operation.

        • id (string) --

          The ID of the operation.

        • resourceName (string) --

          The resource name.

        • resourceType (string) --

          The resource type.

        • createdAt (datetime) --

          The timestamp when the operation was initialized (e.g., 1479816991.349 ).

        • location (dict) --

          The Amazon Web Services Region and Availability Zone.

          • availabilityZone (string) --

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

          • regionName (string) --

            The Amazon Web Services Region name.

        • isTerminal (boolean) --

          A Boolean value indicating whether the operation is terminal.

        • operationDetails (string) --

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

        • operationType (string) --

          The type of operation.

        • status (string) --

          The status of the operation.

        • statusChangedAt (datetime) --

          The timestamp when the status was changed (e.g., 1479816991.349 ).

        • errorCode (string) --

          The error code.

        • errorDetails (string) --

          The error details.

GetCertificates (updated) Link ¶
Changes (response)
{'certificates': {'certificateDetail': {'domainValidationRecords': {'dnsRecordCreationState': {'code': 'SUCCEEDED '
                                                                                                       '| '
                                                                                                       'STARTED '
                                                                                                       '| '
                                                                                                       'FAILED',
                                                                                               'message': 'string'},
                                                                    'validationStatus': 'PENDING_VALIDATION '
                                                                                        '| '
                                                                                        'FAILED '
                                                                                        '| '
                                                                                        'SUCCESS'},
                                        'renewalSummary': {'domainValidationRecords': {'dnsRecordCreationState': {'code': 'SUCCEEDED '
                                                                                                                          '| '
                                                                                                                          'STARTED '
                                                                                                                          '| '
                                                                                                                          'FAILED',
                                                                                                                  'message': 'string'},
                                                                                       'validationStatus': 'PENDING_VALIDATION '
                                                                                                           '| '
                                                                                                           'FAILED '
                                                                                                           '| '
                                                                                                           'SUCCESS'}}}}}

Returns information about one or more Amazon Lightsail SSL/TLS certificates.

Note

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

See also: AWS API Documentation

Request Syntax

client.get_certificates(
    certificateStatuses=[
        'PENDING_VALIDATION'|'ISSUED'|'INACTIVE'|'EXPIRED'|'VALIDATION_TIMED_OUT'|'REVOKED'|'FAILED',
    ],
    includeCertificateDetails=True|False,
    certificateName='string'
)
type certificateStatuses

list

param certificateStatuses

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.

  • (string) --

type includeCertificateDetails

boolean

param includeCertificateDetails

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.

type certificateName

string

param certificateName

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.

rtype

dict

returns

Response Syntax

{
    'certificates': [
        {
            'certificateArn': 'string',
            'certificateName': 'string',
            'domainName': 'string',
            'certificateDetail': {
                'arn': 'string',
                'name': 'string',
                'domainName': 'string',
                'status': 'PENDING_VALIDATION'|'ISSUED'|'INACTIVE'|'EXPIRED'|'VALIDATION_TIMED_OUT'|'REVOKED'|'FAILED',
                'serialNumber': 'string',
                'subjectAlternativeNames': [
                    'string',
                ],
                'domainValidationRecords': [
                    {
                        'domainName': 'string',
                        'resourceRecord': {
                            'name': 'string',
                            'type': 'string',
                            'value': 'string'
                        },
                        'dnsRecordCreationState': {
                            'code': 'SUCCEEDED'|'STARTED'|'FAILED',
                            'message': 'string'
                        },
                        'validationStatus': 'PENDING_VALIDATION'|'FAILED'|'SUCCESS'
                    },
                ],
                'requestFailureReason': 'string',
                'inUseResourceCount': 123,
                'keyAlgorithm': 'string',
                'createdAt': datetime(2015, 1, 1),
                'issuedAt': datetime(2015, 1, 1),
                'issuerCA': 'string',
                'notBefore': datetime(2015, 1, 1),
                'notAfter': datetime(2015, 1, 1),
                'eligibleToRenew': 'string',
                'renewalSummary': {
                    'domainValidationRecords': [
                        {
                            'domainName': 'string',
                            'resourceRecord': {
                                'name': 'string',
                                'type': 'string',
                                'value': 'string'
                            },
                            'dnsRecordCreationState': {
                                'code': 'SUCCEEDED'|'STARTED'|'FAILED',
                                'message': 'string'
                            },
                            'validationStatus': 'PENDING_VALIDATION'|'FAILED'|'SUCCESS'
                        },
                    ],
                    'renewalStatus': 'PendingAutoRenewal'|'PendingValidation'|'Success'|'Failed',
                    'renewalStatusReason': 'string',
                    'updatedAt': datetime(2015, 1, 1)
                },
                'revokedAt': datetime(2015, 1, 1),
                'revocationReason': 'string',
                'tags': [
                    {
                        'key': 'string',
                        'value': 'string'
                    },
                ],
                'supportCode': 'string'
            },
            'tags': [
                {
                    'key': 'string',
                    'value': 'string'
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • certificates (list) --

      An object that describes certificates.

      • (dict) --

        Describes an Amazon Lightsail SSL/TLS certificate.

        • certificateArn (string) --

          The Amazon Resource Name (ARN) of the certificate.

        • certificateName (string) --

          The name of the certificate.

        • domainName (string) --

          The domain name of the certificate.

        • certificateDetail (dict) --

          An object that describes a certificate in detail.

          • arn (string) --

            The Amazon Resource Name (ARN) of the certificate.

          • name (string) --

            The name of the certificate (e.g., my-certificate ).

          • domainName (string) --

            The domain name of the certificate.

          • status (string) --

            The validation status of the certificate.

          • serialNumber (string) --

            The serial number of the certificate.

          • subjectAlternativeNames (list) --

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

            • (string) --

          • domainValidationRecords (list) --

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

            • (dict) --

              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.

              • domainName (string) --

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

              • resourceRecord (dict) --

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

                • name (string) --

                  The name of the record.

                • type (string) --

                  The DNS record type.

                • value (string) --

                  The value for the DNS record.

              • dnsRecordCreationState (dict) --

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

                • code (string) --

                  The status code for the automated DNS record creation.

                  Following are the possible values:

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

                  • STARTED - The automatic DNS record creation has started.

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

                • message (string) --

                  The message that describes the reason for the status code.

              • validationStatus (string) --

                The validation status of the record.

          • requestFailureReason (string) --

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

            The following failure reasons are possible:

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

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

            Note

            You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.

            • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do. If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate. If you see this error and your domain is not included in the VirusTotal list, visit the Amazon Web Services Support Center and create a case.

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

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

          • inUseResourceCount (integer) --

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

          • keyAlgorithm (string) --

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

          • createdAt (datetime) --

            The timestamp when the certificate was created.

          • issuedAt (datetime) --

            The timestamp when the certificate was issued.

          • issuerCA (string) --

            The certificate authority that issued the certificate.

          • notBefore (datetime) --

            The timestamp when the certificate is first valid.

          • notAfter (datetime) --

            The timestamp when the certificate expires.

          • eligibleToRenew (string) --

            The renewal eligibility of the certificate.

          • renewalSummary (dict) --

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

            • domainValidationRecords (list) --

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

              • (dict) --

                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.

                • domainName (string) --

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

                • resourceRecord (dict) --

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

                  • name (string) --

                    The name of the record.

                  • type (string) --

                    The DNS record type.

                  • value (string) --

                    The value for the DNS record.

                • dnsRecordCreationState (dict) --

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

                  • code (string) --

                    The status code for the automated DNS record creation.

                    Following are the possible values:

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

                    • STARTED - The automatic DNS record creation has started.

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

                  • message (string) --

                    The message that describes the reason for the status code.

                • validationStatus (string) --

                  The validation status of the record.

            • renewalStatus (string) --

              The renewal status of the certificate.

              The following renewal status are possible:

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

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

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

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

            • renewalStatusReason (string) --

              The reason for the renewal status of the certificate.

            • updatedAt (datetime) --

              The timestamp when the certificate was last updated.

          • revokedAt (datetime) --

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

          • revocationReason (string) --

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

          • tags (list) --

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

            • (dict) --

              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.

              • key (string) --

                The key of the tag.

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

              • value (string) --

                The value of the tag.

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

          • supportCode (string) --

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

        • tags (list) --

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

          • (dict) --

            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.

            • key (string) --

              The key of the tag.

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

            • value (string) --

              The value of the tag.

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

GetDomain (updated) Link ¶
Changes (response)
{'domain': {'registeredDomainDelegationInfo': {'nameServersUpdateState': {'code': 'SUCCEEDED '
                                                                                  '| '
                                                                                  'PENDING '
                                                                                  '| '
                                                                                  'FAILED '
                                                                                  '| '
                                                                                  'STARTED',
                                                                          'message': 'string'},
                                               'r53HostedZoneDeletionState': {'code': 'SUCCEEDED '
                                                                                      '| '
                                                                                      'PENDING '
                                                                                      '| '
                                                                                      'FAILED '
                                                                                      '| '
                                                                                      'STARTED',
                                                                              'message': 'string'}}}}

Returns information about a specific domain recordset.

See also: AWS API Documentation

Request Syntax

client.get_domain(
    domainName='string'
)
type domainName

string

param domainName

[REQUIRED]

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

rtype

dict

returns

Response Syntax

{
    'domain': {
        'name': 'string',
        'arn': 'string',
        'supportCode': 'string',
        'createdAt': datetime(2015, 1, 1),
        'location': {
            'availabilityZone': 'string',
            'regionName': 'us-east-1'|'us-east-2'|'us-west-1'|'us-west-2'|'eu-west-1'|'eu-west-2'|'eu-west-3'|'eu-central-1'|'ca-central-1'|'ap-south-1'|'ap-southeast-1'|'ap-southeast-2'|'ap-northeast-1'|'ap-northeast-2'|'eu-north-1'
        },
        'resourceType': 'ContainerService'|'Instance'|'StaticIp'|'KeyPair'|'InstanceSnapshot'|'Domain'|'PeeredVpc'|'LoadBalancer'|'LoadBalancerTlsCertificate'|'Disk'|'DiskSnapshot'|'RelationalDatabase'|'RelationalDatabaseSnapshot'|'ExportSnapshotRecord'|'CloudFormationStackRecord'|'Alarm'|'ContactMethod'|'Distribution'|'Certificate'|'Bucket',
        'tags': [
            {
                'key': 'string',
                'value': 'string'
            },
        ],
        'domainEntries': [
            {
                'id': 'string',
                'name': 'string',
                'target': 'string',
                'isAlias': True|False,
                'type': 'string',
                'options': {
                    'string': 'string'
                }
            },
        ],
        'registeredDomainDelegationInfo': {
            'nameServersUpdateState': {
                'code': 'SUCCEEDED'|'PENDING'|'FAILED'|'STARTED',
                'message': 'string'
            },
            'r53HostedZoneDeletionState': {
                'code': 'SUCCEEDED'|'PENDING'|'FAILED'|'STARTED',
                'message': 'string'
            }
        }
    }
}

Response Structure

  • (dict) --

    • domain (dict) --

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

      • name (string) --

        The name of the domain.

      • arn (string) --

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

      • supportCode (string) --

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

      • createdAt (datetime) --

        The date when the domain recordset was created.

      • location (dict) --

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

        • availabilityZone (string) --

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

        • regionName (string) --

          The Amazon Web Services Region name.

      • resourceType (string) --

        The resource type.

      • tags (list) --

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

        • (dict) --

          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.

          • key (string) --

            The key of the tag.

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

          • value (string) --

            The value of the tag.

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

      • domainEntries (list) --

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

        • (dict) --

          Describes a domain recordset entry.

          • id (string) --

            The ID of the domain recordset entry.

          • name (string) --

            The name of the domain.

          • target (string) --

            The target IP address (e.g., 192.0.2.0 ), or AWS name server (e.g., ns-111.awsdns-22.com. ).

            For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com . For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net . For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com . Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.

          • isAlias (boolean) --

            When true , specifies whether the domain entry is an alias used by the Lightsail load balancer. You can include an alias (A type) record in your request, which points to a load balancer DNS name and routes traffic to your load balancer.

          • type (string) --

            The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).

            The following domain entry types can be used:

            • A

            • AAAA

            • CNAME

            • MX

            • NS

            • SOA

            • SRV

            • TXT

          • options (dict) --

            (Deprecated) The options for the domain entry.

            Note

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

            • (string) --

              • (string) --

      • registeredDomainDelegationInfo (dict) --

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

        • nameServersUpdateState (dict) --

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

          • code (string) --

            The status code for the name servers update.

            Following are the possible values:

            • SUCCEEDED - The name server records were successfully updated.

            • PENDING - The name server record update is in progress.

            • FAILED - The name server record update failed.

            • STARTED - The automatic name server record update started.

          • message (string) --

            The message that describes the reason for the status code.

        • r53HostedZoneDeletionState (dict) --

          Describes the deletion state of an Amazon Route 53 hosted zone for a domain that is being automatically delegated to an Amazon Lightsail DNS zone.

          • code (string) --

            The status code for the deletion state.

            Following are the possible values:

            • SUCCEEDED - The hosted zone was successfully deleted.

            • PENDING - The hosted zone deletion is in progress.

            • FAILED - The hosted zone deletion failed.

            • STARTED - The hosted zone deletion started.

          • message (string) --

            The message that describes the reason for the status code.

GetDomains (updated) Link ¶
Changes (response)
{'domains': {'registeredDomainDelegationInfo': {'nameServersUpdateState': {'code': 'SUCCEEDED '
                                                                                   '| '
                                                                                   'PENDING '
                                                                                   '| '
                                                                                   'FAILED '
                                                                                   '| '
                                                                                   'STARTED',
                                                                           'message': 'string'},
                                                'r53HostedZoneDeletionState': {'code': 'SUCCEEDED '
                                                                                       '| '
                                                                                       'PENDING '
                                                                                       '| '
                                                                                       'FAILED '
                                                                                       '| '
                                                                                       'STARTED',
                                                                               'message': 'string'}}}}

Returns a list of all domains in the user's account.

See also: AWS API Documentation

Request Syntax

client.get_domains(
    pageToken='string'
)
type pageToken

string

param pageToken

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.

rtype

dict

returns

Response Syntax

{
    'domains': [
        {
            'name': 'string',
            'arn': 'string',
            'supportCode': 'string',
            'createdAt': datetime(2015, 1, 1),
            'location': {
                'availabilityZone': 'string',
                'regionName': 'us-east-1'|'us-east-2'|'us-west-1'|'us-west-2'|'eu-west-1'|'eu-west-2'|'eu-west-3'|'eu-central-1'|'ca-central-1'|'ap-south-1'|'ap-southeast-1'|'ap-southeast-2'|'ap-northeast-1'|'ap-northeast-2'|'eu-north-1'
            },
            'resourceType': 'ContainerService'|'Instance'|'StaticIp'|'KeyPair'|'InstanceSnapshot'|'Domain'|'PeeredVpc'|'LoadBalancer'|'LoadBalancerTlsCertificate'|'Disk'|'DiskSnapshot'|'RelationalDatabase'|'RelationalDatabaseSnapshot'|'ExportSnapshotRecord'|'CloudFormationStackRecord'|'Alarm'|'ContactMethod'|'Distribution'|'Certificate'|'Bucket',
            'tags': [
                {
                    'key': 'string',
                    'value': 'string'
                },
            ],
            'domainEntries': [
                {
                    'id': 'string',
                    'name': 'string',
                    'target': 'string',
                    'isAlias': True|False,
                    'type': 'string',
                    'options': {
                        'string': 'string'
                    }
                },
            ],
            'registeredDomainDelegationInfo': {
                'nameServersUpdateState': {
                    'code': 'SUCCEEDED'|'PENDING'|'FAILED'|'STARTED',
                    'message': 'string'
                },
                'r53HostedZoneDeletionState': {
                    'code': 'SUCCEEDED'|'PENDING'|'FAILED'|'STARTED',
                    'message': 'string'
                }
            }
        },
    ],
    'nextPageToken': 'string'
}

Response Structure

  • (dict) --

    • domains (list) --

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

      • (dict) --

        Describes a domain where you are storing recordsets.

        • name (string) --

          The name of the domain.

        • arn (string) --

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

        • supportCode (string) --

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

        • createdAt (datetime) --

          The date when the domain recordset was created.

        • location (dict) --

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

          • availabilityZone (string) --

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

          • regionName (string) --

            The Amazon Web Services Region name.

        • resourceType (string) --

          The resource type.

        • tags (list) --

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

          • (dict) --

            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.

            • key (string) --

              The key of the tag.

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

            • value (string) --

              The value of the tag.

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

        • domainEntries (list) --

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

          • (dict) --

            Describes a domain recordset entry.

            • id (string) --

              The ID of the domain recordset entry.

            • name (string) --

              The name of the domain.

            • target (string) --

              The target IP address (e.g., 192.0.2.0 ), or AWS name server (e.g., ns-111.awsdns-22.com. ).

              For Lightsail load balancers, the value looks like ab1234c56789c6b86aba6fb203d443bc-123456789.us-east-2.elb.amazonaws.com . For Lightsail distributions, the value looks like exampled1182ne.cloudfront.net . For Lightsail container services, the value looks like container-service-1.example23scljs.us-west-2.cs.amazonlightsail.com . Be sure to also set isAlias to true when setting up an A record for a Lightsail load balancer, distribution, or container service.

            • isAlias (boolean) --

              When true , specifies whether the domain entry is an alias used by the Lightsail load balancer. You can include an alias (A type) record in your request, which points to a load balancer DNS name and routes traffic to your load balancer.

            • type (string) --

              The type of domain entry, such as address for IPv4 (A), address for IPv6 (AAAA), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).

              The following domain entry types can be used:

              • A

              • AAAA

              • CNAME

              • MX

              • NS

              • SOA

              • SRV

              • TXT

            • options (dict) --

              (Deprecated) The options for the domain entry.

              Note

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

              • (string) --

                • (string) --

        • registeredDomainDelegationInfo (dict) --

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

          • nameServersUpdateState (dict) --

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

            • code (string) --

              The status code for the name servers update.

              Following are the possible values:

              • SUCCEEDED - The name server records were successfully updated.

              • PENDING - The name server record update is in progress.

              • FAILED - The name server record update failed.

              • STARTED - The automatic name server record update started.

            • message (string) --

              The message that describes the reason for the status code.

          • r53HostedZoneDeletionState (dict) --

            Describes the deletion state of an Amazon Route 53 hosted zone for a domain that is being automatically delegated to an Amazon Lightsail DNS zone.

            • code (string) --

              The status code for the deletion state.

              Following are the possible values:

              • SUCCEEDED - The hosted zone was successfully deleted.

              • PENDING - The hosted zone deletion is in progress.

              • FAILED - The hosted zone deletion failed.

              • STARTED - The hosted zone deletion started.

            • message (string) --

              The message that describes the reason for the status code.

    • nextPageToken (string) --

      The token to advance to the next page of results from your request.

      A next page token is not returned if there are no more results to display.

      To get the next page of results, perform another GetDomains request and specify the next page token using the pageToken parameter.

GetLoadBalancerTlsCertificates (updated) Link ¶
Changes (response)
{'tlsCertificates': {'domainValidationRecords': {'dnsRecordCreationState': {'code': 'SUCCEEDED '
                                                                                    '| '
                                                                                    'STARTED '
                                                                                    '| '
                                                                                    'FAILED',
                                                                            'message': 'string'}}}}

Returns information about the TLS certificates that are associated with the specified Lightsail load balancer.

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

You can have a maximum of 2 certificates associated with a Lightsail load balancer. One is active and the other is inactive.

See also: AWS API Documentation

Request Syntax

client.get_load_balancer_tls_certificates(
    loadBalancerName='string'
)
type loadBalancerName

string

param loadBalancerName

[REQUIRED]

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

rtype

dict

returns

Response Syntax

{
    'tlsCertificates': [
        {
            'name': 'string',
            'arn': 'string',
            'supportCode': 'string',
            'createdAt': datetime(2015, 1, 1),
            'location': {
                'availabilityZone': 'string',
                'regionName': 'us-east-1'|'us-east-2'|'us-west-1'|'us-west-2'|'eu-west-1'|'eu-west-2'|'eu-west-3'|'eu-central-1'|'ca-central-1'|'ap-south-1'|'ap-southeast-1'|'ap-southeast-2'|'ap-northeast-1'|'ap-northeast-2'|'eu-north-1'
            },
            'resourceType': 'ContainerService'|'Instance'|'StaticIp'|'KeyPair'|'InstanceSnapshot'|'Domain'|'PeeredVpc'|'LoadBalancer'|'LoadBalancerTlsCertificate'|'Disk'|'DiskSnapshot'|'RelationalDatabase'|'RelationalDatabaseSnapshot'|'ExportSnapshotRecord'|'CloudFormationStackRecord'|'Alarm'|'ContactMethod'|'Distribution'|'Certificate'|'Bucket',
            'tags': [
                {
                    'key': 'string',
                    'value': 'string'
                },
            ],
            'loadBalancerName': 'string',
            'isAttached': True|False,
            'status': 'PENDING_VALIDATION'|'ISSUED'|'INACTIVE'|'EXPIRED'|'VALIDATION_TIMED_OUT'|'REVOKED'|'FAILED'|'UNKNOWN',
            'domainName': 'string',
            'domainValidationRecords': [
                {
                    'name': 'string',
                    'type': 'string',
                    'value': 'string',
                    'validationStatus': 'PENDING_VALIDATION'|'FAILED'|'SUCCESS',
                    'domainName': 'string',
                    'dnsRecordCreationState': {
                        'code': 'SUCCEEDED'|'STARTED'|'FAILED',
                        'message': 'string'
                    }
                },
            ],
            'failureReason': 'NO_AVAILABLE_CONTACTS'|'ADDITIONAL_VERIFICATION_REQUIRED'|'DOMAIN_NOT_ALLOWED'|'INVALID_PUBLIC_DOMAIN'|'OTHER',
            'issuedAt': datetime(2015, 1, 1),
            'issuer': 'string',
            'keyAlgorithm': 'string',
            'notAfter': datetime(2015, 1, 1),
            'notBefore': datetime(2015, 1, 1),
            'renewalSummary': {
                'renewalStatus': 'PENDING_AUTO_RENEWAL'|'PENDING_VALIDATION'|'SUCCESS'|'FAILED',
                'domainValidationOptions': [
                    {
                        'domainName': 'string',
                        'validationStatus': 'PENDING_VALIDATION'|'FAILED'|'SUCCESS'
                    },
                ]
            },
            'revocationReason': 'UNSPECIFIED'|'KEY_COMPROMISE'|'CA_COMPROMISE'|'AFFILIATION_CHANGED'|'SUPERCEDED'|'CESSATION_OF_OPERATION'|'CERTIFICATE_HOLD'|'REMOVE_FROM_CRL'|'PRIVILEGE_WITHDRAWN'|'A_A_COMPROMISE',
            'revokedAt': datetime(2015, 1, 1),
            'serial': 'string',
            'signatureAlgorithm': 'string',
            'subject': 'string',
            'subjectAlternativeNames': [
                'string',
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • tlsCertificates (list) --

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

      • (dict) --

        Describes a load balancer SSL/TLS certificate.

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

        • name (string) --

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

        • arn (string) --

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

        • supportCode (string) --

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

        • createdAt (datetime) --

          The time when you created your SSL/TLS certificate.

        • location (dict) --

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

          • availabilityZone (string) --

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

          • regionName (string) --

            The Amazon Web Services Region name.

        • resourceType (string) --

          The resource type (e.g., 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

        • tags (list) --

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

          • (dict) --

            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.

            • key (string) --

              The key of the tag.

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

            • value (string) --

              The value of the tag.

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

        • loadBalancerName (string) --

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

        • isAttached (boolean) --

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

        • status (string) --

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

        • domainName (string) --

          The domain name for your SSL/TLS certificate.

        • domainValidationRecords (list) --

          An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.

          • (dict) --

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

            • name (string) --

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

            • type (string) --

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

            • value (string) --

              The value for that type.

            • validationStatus (string) --

              The validation status. Valid values are listed below.

            • domainName (string) --

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

            • dnsRecordCreationState (dict) --

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

              • code (string) --

                The status code for the automated DNS record creation.

                Following are the possible values:

                • SUCCEEDED - The validation records were successfully added.

                • STARTED - The automatic DNS record creation has started.

                • FAILED - The validation record addition failed.

              • message (string) --

                The message that describes the reason for the status code.

        • failureReason (string) --

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

          The following failure reasons are possible:

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

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

          Note

          You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.

          • DOMAIN_NOT_ALLOWED - One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do. If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate. If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.

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

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

        • issuedAt (datetime) --

          The time when the SSL/TLS certificate was issued.

        • issuer (string) --

          The issuer of the certificate.

        • keyAlgorithm (string) --

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

        • notAfter (datetime) --

          The timestamp when the SSL/TLS certificate expires.

        • notBefore (datetime) --

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

        • renewalSummary (dict) --

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

          • renewalStatus (string) --

            The renewal status of the certificate.

            The following renewal status are possible:

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

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

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

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

          • domainValidationOptions (list) --

            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.

            • (dict) --

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

              • domainName (string) --

                The fully qualified domain name in the certificate request.

              • validationStatus (string) --

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

        • revocationReason (string) --

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

        • revokedAt (datetime) --

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

        • serial (string) --

          The serial number of the certificate.

        • signatureAlgorithm (string) --

          The algorithm that was used to sign the certificate.

        • subject (string) --

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

        • subjectAlternativeNames (list) --

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

          • (string) --