Struct rusoto_lightsail::Certificate
source · [−]pub struct Certificate {Show 21 fields
pub arn: Option<String>,
pub created_at: Option<f64>,
pub domain_name: Option<String>,
pub domain_validation_records: Option<Vec<DomainValidationRecord>>,
pub eligible_to_renew: Option<String>,
pub in_use_resource_count: Option<i64>,
pub issued_at: Option<f64>,
pub issuer_ca: Option<String>,
pub key_algorithm: Option<String>,
pub name: Option<String>,
pub not_after: Option<f64>,
pub not_before: Option<f64>,
pub renewal_summary: Option<RenewalSummary>,
pub request_failure_reason: Option<String>,
pub revocation_reason: Option<String>,
pub revoked_at: Option<f64>,
pub serial_number: Option<String>,
pub status: Option<String>,
pub subject_alternative_names: Option<Vec<String>>,
pub support_code: Option<String>,
pub tags: Option<Vec<Tag>>,
}
Expand description
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.
Fields
arn: Option<String>
The Amazon Resource Name (ARN) of the certificate.
created_at: Option<f64>
The timestamp when the certificate was created.
domain_name: Option<String>
The domain name of the certificate.
domain_validation_records: Option<Vec<DomainValidationRecord>>
An array of objects that describe the domain validation records of the certificate.
eligible_to_renew: Option<String>
The renewal eligibility of the certificate.
in_use_resource_count: Option<i64>
The number of Lightsail resources that the certificate is attached to.
issued_at: Option<f64>
The timestamp when the certificate was issued.
issuer_ca: Option<String>
The certificate authority that issued the certificate.
key_algorithm: Option<String>
The algorithm used to generate the key pair (the public and private key) of the certificate.
name: Option<String>
The name of the certificate (e.g., my-certificate
).
not_after: Option<f64>
The timestamp when the certificate expires.
not_before: Option<f64>
The timestamp when the certificate is first valid.
renewal_summary: Option<RenewalSummary>
An object that describes the status of the certificate renewal managed by Lightsail.
request_failure_reason: Option<String>
The validation failure reason, if any, of the certificate.
The following failure reasons are possible:
-
NOAVAILABLECONTACTS
- This failure applies to email validation, which is not available for Lightsail certificates. -
ADDITIONALVERIFICATIONREQUIRED
- 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.
-
DOMAINNOTALLOWED
- 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.
-
INVALIDPUBLICDOMAIN
- 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 forexample.invalidpublicdomain
becauseinvalidpublicdomain
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.
revocation_reason: Option<String>
The reason the certificate was revoked. This value is present only when the certificate status is REVOKED
.
revoked_at: Option<f64>
The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED
.
serial_number: Option<String>
The serial number of the certificate.
status: Option<String>
The validation status of the certificate.
subject_alternative_names: Option<Vec<String>>
An array of strings that specify the alternate domains (e.g., example2.com
) and subdomains (e.g., blog.example.com
) of the certificate.
support_code: Option<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.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
Trait Implementations
sourceimpl Clone for Certificate
impl Clone for Certificate
sourcefn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Certificate
impl Debug for Certificate
sourceimpl Default for Certificate
impl Default for Certificate
sourcefn default() -> Certificate
fn default() -> Certificate
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Certificate
impl<'de> Deserialize<'de> for Certificate
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Certificate> for Certificate
impl PartialEq<Certificate> for Certificate
sourcefn eq(&self, other: &Certificate) -> bool
fn eq(&self, other: &Certificate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Certificate) -> bool
fn ne(&self, other: &Certificate) -> bool
This method tests for !=
.
impl StructuralPartialEq for Certificate
Auto Trait Implementations
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more