libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lightsail.Types.Certificate

Description

 
Synopsis

Documentation

data Certificate Source #

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

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

See: newCertificate smart constructor.

Constructors

Certificate' 

Fields

  • status :: Maybe CertificateStatus

    The validation status of the certificate.

  • subjectAlternativeNames :: Maybe [Text]

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

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the certificate.

  • createdAt :: Maybe POSIX

    The timestamp when the certificate was created.

  • eligibleToRenew :: Maybe Text

    The renewal eligibility of the certificate.

  • requestFailureReason :: Maybe Text

    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.
  • revokedAt :: Maybe POSIX

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

  • notBefore :: Maybe POSIX

    The timestamp when the certificate is first valid.

  • revocationReason :: Maybe Text

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

  • domainName :: Maybe Text

    The domain name of the certificate.

  • name :: Maybe Text

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

  • renewalSummary :: Maybe RenewalSummary

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

  • supportCode :: Maybe Text

    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.

  • domainValidationRecords :: Maybe [DomainValidationRecord]

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

  • inUseResourceCount :: Maybe Int

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

  • issuedAt :: Maybe POSIX

    The timestamp when the certificate was issued.

  • keyAlgorithm :: Maybe Text

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

  • serialNumber :: Maybe Text

    The serial number of the certificate.

  • issuerCA :: Maybe Text

    The certificate authority that issued the certificate.

  • tags :: Maybe [Tag]

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

  • notAfter :: Maybe POSIX

    The timestamp when the certificate expires.

Instances

Instances details
Eq Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

Read Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

Show Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

Generic Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

Associated Types

type Rep Certificate :: Type -> Type #

NFData Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

Methods

rnf :: Certificate -> () #

Hashable Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

FromJSON Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

type Rep Certificate Source # 
Instance details

Defined in Amazonka.Lightsail.Types.Certificate

type Rep Certificate = D1 ('MetaData "Certificate" "Amazonka.Lightsail.Types.Certificate" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "Certificate'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CertificateStatus)) :*: S1 ('MetaSel ('Just "subjectAlternativeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "createdAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "eligibleToRenew") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "requestFailureReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "revokedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))) :*: (S1 ('MetaSel ('Just "notBefore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "revocationReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "renewalSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RenewalSummary))) :*: (S1 ('MetaSel ('Just "supportCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "domainValidationRecords") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DomainValidationRecord])) :*: S1 ('MetaSel ('Just "inUseResourceCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "issuedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "keyAlgorithm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "serialNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "issuerCA") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "notAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX))))))))

newCertificate :: Certificate Source #

Create a value of Certificate with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:status:Certificate', certificate_status - The validation status of the certificate.

$sel:subjectAlternativeNames:Certificate', certificate_subjectAlternativeNames - An array of strings that specify the alternate domains (e.g., example2.com) and subdomains (e.g., blog.example.com) of the certificate.

$sel:arn:Certificate', certificate_arn - The Amazon Resource Name (ARN) of the certificate.

$sel:createdAt:Certificate', certificate_createdAt - The timestamp when the certificate was created.

$sel:eligibleToRenew:Certificate', certificate_eligibleToRenew - The renewal eligibility of the certificate.

$sel:requestFailureReason:Certificate', certificate_requestFailureReason - 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.

$sel:revokedAt:Certificate', certificate_revokedAt - The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED.

$sel:notBefore:Certificate', certificate_notBefore - The timestamp when the certificate is first valid.

$sel:revocationReason:Certificate', certificate_revocationReason - The reason the certificate was revoked. This value is present only when the certificate status is REVOKED.

$sel:domainName:Certificate', certificate_domainName - The domain name of the certificate.

$sel:name:Certificate', certificate_name - The name of the certificate (e.g., my-certificate).

$sel:renewalSummary:Certificate', certificate_renewalSummary - An object that describes the status of the certificate renewal managed by Lightsail.

$sel:supportCode:Certificate', certificate_supportCode - 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.

$sel:domainValidationRecords:Certificate', certificate_domainValidationRecords - An array of objects that describe the domain validation records of the certificate.

$sel:inUseResourceCount:Certificate', certificate_inUseResourceCount - The number of Lightsail resources that the certificate is attached to.

$sel:issuedAt:Certificate', certificate_issuedAt - The timestamp when the certificate was issued.

$sel:keyAlgorithm:Certificate', certificate_keyAlgorithm - The algorithm used to generate the key pair (the public and private key) of the certificate.

$sel:serialNumber:Certificate', certificate_serialNumber - The serial number of the certificate.

$sel:issuerCA:Certificate', certificate_issuerCA - The certificate authority that issued the certificate.

$sel:tags:Certificate', certificate_tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

$sel:notAfter:Certificate', certificate_notAfter - The timestamp when the certificate expires.

certificate_status :: Lens' Certificate (Maybe CertificateStatus) Source #

The validation status of the certificate.

certificate_subjectAlternativeNames :: Lens' Certificate (Maybe [Text]) Source #

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

certificate_arn :: Lens' Certificate (Maybe Text) Source #

The Amazon Resource Name (ARN) of the certificate.

certificate_createdAt :: Lens' Certificate (Maybe UTCTime) Source #

The timestamp when the certificate was created.

certificate_eligibleToRenew :: Lens' Certificate (Maybe Text) Source #

The renewal eligibility of the certificate.

certificate_requestFailureReason :: Lens' Certificate (Maybe Text) Source #

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.

certificate_revokedAt :: Lens' Certificate (Maybe UTCTime) Source #

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

certificate_notBefore :: Lens' Certificate (Maybe UTCTime) Source #

The timestamp when the certificate is first valid.

certificate_revocationReason :: Lens' Certificate (Maybe Text) Source #

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

certificate_domainName :: Lens' Certificate (Maybe Text) Source #

The domain name of the certificate.

certificate_name :: Lens' Certificate (Maybe Text) Source #

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

certificate_renewalSummary :: Lens' Certificate (Maybe RenewalSummary) Source #

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

certificate_supportCode :: Lens' Certificate (Maybe Text) Source #

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.

certificate_domainValidationRecords :: Lens' Certificate (Maybe [DomainValidationRecord]) Source #

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

certificate_inUseResourceCount :: Lens' Certificate (Maybe Int) Source #

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

certificate_issuedAt :: Lens' Certificate (Maybe UTCTime) Source #

The timestamp when the certificate was issued.

certificate_keyAlgorithm :: Lens' Certificate (Maybe Text) Source #

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

certificate_serialNumber :: Lens' Certificate (Maybe Text) Source #

The serial number of the certificate.

certificate_issuerCA :: Lens' Certificate (Maybe Text) Source #

The certificate authority that issued the certificate.

certificate_tags :: Lens' Certificate (Maybe [Tag]) Source #

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

certificate_notAfter :: Lens' Certificate (Maybe UTCTime) Source #

The timestamp when the certificate expires.