Struct aws_sdk_iot::types::Certificate
source · #[non_exhaustive]pub struct Certificate {
pub certificate_arn: Option<String>,
pub certificate_id: Option<String>,
pub status: Option<CertificateStatus>,
pub certificate_mode: Option<CertificateMode>,
pub creation_date: Option<DateTime>,
}
Expand description
Information about a certificate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.certificate_arn: Option<String>
The ARN of the certificate.
certificate_id: Option<String>
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
status: Option<CertificateStatus>
The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
certificate_mode: Option<CertificateMode>
The mode of the certificate.
DEFAULT
: A certificate in DEFAULT
mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) in DEFAULT
mode. Devices with certificates in DEFAULT
mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.
SNI_ONLY
: A certificate in SNI_ONLY
mode is registered without an issuer CA. Devices with certificates in SNI_ONLY
mode must send the SNI extension when connecting to Amazon Web Services IoT Core.
creation_date: Option<DateTime>
The date and time the certificate was created.
Implementations§
source§impl Certificate
impl Certificate
sourcepub fn certificate_arn(&self) -> Option<&str>
pub fn certificate_arn(&self) -> Option<&str>
The ARN of the certificate.
sourcepub fn certificate_id(&self) -> Option<&str>
pub fn certificate_id(&self) -> Option<&str>
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn status(&self) -> Option<&CertificateStatus>
pub fn status(&self) -> Option<&CertificateStatus>
The status of the certificate.
The status value REGISTER_INACTIVE is deprecated and should not be used.
sourcepub fn certificate_mode(&self) -> Option<&CertificateMode>
pub fn certificate_mode(&self) -> Option<&CertificateMode>
The mode of the certificate.
DEFAULT
: A certificate in DEFAULT
mode is either generated by Amazon Web Services IoT Core or registered with an issuer certificate authority (CA) in DEFAULT
mode. Devices with certificates in DEFAULT
mode aren't required to send the Server Name Indication (SNI) extension when connecting to Amazon Web Services IoT Core. However, to use features such as custom domains and VPC endpoints, we recommend that you use the SNI extension when connecting to Amazon Web Services IoT Core.
SNI_ONLY
: A certificate in SNI_ONLY
mode is registered without an issuer CA. Devices with certificates in SNI_ONLY
mode must send the SNI extension when connecting to Amazon Web Services IoT Core.
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
The date and time the certificate was created.
source§impl Certificate
impl Certificate
sourcepub fn builder() -> CertificateBuilder
pub fn builder() -> CertificateBuilder
Creates a new builder-style object to manufacture Certificate
.
Trait Implementations§
source§impl Clone for Certificate
impl Clone for Certificate
source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Certificate
impl Debug for Certificate
source§impl PartialEq for Certificate
impl PartialEq for Certificate
source§fn eq(&self, other: &Certificate) -> bool
fn eq(&self, other: &Certificate) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Certificate
Auto Trait Implementations§
impl Freeze for Certificate
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more