@Generated(value="software.amazon.awssdk:codegen") public final class Certificate extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Certificate.Builder,Certificate>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Certificate.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the certificate.
|
static Certificate.Builder |
builder() |
Instant |
createdAt()
The timestamp when the certificate was created.
|
String |
domainName()
The domain name of the certificate.
|
List<DomainValidationRecord> |
domainValidationRecords()
An array of objects that describe the domain validation records of the certificate.
|
String |
eligibleToRenew()
The renewal eligibility of the certificate.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDomainValidationRecords()
Returns true if the DomainValidationRecords property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasSubjectAlternativeNames()
Returns true if the SubjectAlternativeNames property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Integer |
inUseResourceCount()
The number of Lightsail resources that the certificate is attached to.
|
Instant |
issuedAt()
The timestamp when the certificate was issued.
|
String |
issuerCA()
The certificate authority that issued the certificate.
|
String |
keyAlgorithm()
The algorithm used to generate the key pair (the public and private key) of the certificate.
|
String |
name()
The name of the certificate (e.g.,
my-certificate). |
Instant |
notAfter()
The timestamp when the certificate expires.
|
Instant |
notBefore()
The timestamp when the certificate is first valid.
|
RenewalSummary |
renewalSummary()
An object that describes the status of the certificate renewal managed by Lightsail.
|
String |
requestFailureReason()
The validation failure reason, if any, of the certificate.
|
String |
revocationReason()
The reason the certificate was revoked.
|
Instant |
revokedAt()
The timestamp when the certificate was revoked.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Certificate.Builder> |
serializableBuilderClass() |
String |
serialNumber()
The serial number of the certificate.
|
CertificateStatus |
status()
The validation status of the certificate.
|
String |
statusAsString()
The validation status of the certificate.
|
List<String> |
subjectAlternativeNames()
An array of strings that specify the alternate domains (e.g.,
example2.com) and subdomains (e.g.,
blog.example.com) of the certificate. |
String |
supportCode()
The support code.
|
List<Tag> |
tags()
The tag keys and optional values for the resource.
|
Certificate.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the certificate.
public final String name()
The name of the certificate (e.g., my-certificate).
my-certificate).public final String domainName()
The domain name of the certificate.
public final CertificateStatus status()
The validation status of the certificate.
If the service returns an enum value that is not available in the current SDK version, status will
return CertificateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CertificateStatuspublic final String statusAsString()
The validation status of the certificate.
If the service returns an enum value that is not available in the current SDK version, status will
return CertificateStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CertificateStatuspublic final String serialNumber()
The serial number of the certificate.
public final boolean hasSubjectAlternativeNames()
public final List<String> subjectAlternativeNames()
An array of strings that specify the alternate domains (e.g., example2.com) and subdomains (e.g.,
blog.example.com) of the certificate.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSubjectAlternativeNames() to see if a value was sent in this field.
example2.com) and subdomains
(e.g., blog.example.com) of the certificate.public final boolean hasDomainValidationRecords()
public final List<DomainValidationRecord> domainValidationRecords()
An array of objects that describe the domain validation records of the certificate.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasDomainValidationRecords() to see if a value was sent in this field.
public final String 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.
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.
public final Integer inUseResourceCount()
The number of Lightsail resources that the certificate is attached to.
public final String keyAlgorithm()
The algorithm used to generate the key pair (the public and private key) of the certificate.
public final Instant createdAt()
The timestamp when the certificate was created.
public final Instant issuedAt()
The timestamp when the certificate was issued.
public final String issuerCA()
The certificate authority that issued the certificate.
public final Instant notBefore()
The timestamp when the certificate is first valid.
public final Instant notAfter()
The timestamp when the certificate expires.
public final String eligibleToRenew()
The renewal eligibility of the certificate.
public final RenewalSummary renewalSummary()
An object that describes the status of the certificate renewal managed by Lightsail.
public final Instant revokedAt()
The timestamp when the certificate was revoked. This value is present only when the certificate status is
REVOKED.
REVOKED.public final String revocationReason()
The reason the certificate was revoked. This value is present only when the certificate status is
REVOKED.
REVOKED.public final boolean hasTags()
public final List<Tag> tags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final String 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.
public Certificate.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Certificate.Builder,Certificate>public static Certificate.Builder builder()
public static Class<? extends Certificate.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.