#[non_exhaustive]pub struct RegisterCaCertificateInput {
pub ca_certificate: Option<String>,
pub verification_certificate: Option<String>,
pub set_as_active: Option<bool>,
pub allow_auto_registration: Option<bool>,
pub registration_config: Option<RegistrationConfig>,
pub tags: Option<Vec<Tag>>,
pub certificate_mode: Option<CertificateMode>,
}
Expand description
The input to the RegisterCACertificate operation.
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.ca_certificate: Option<String>
The CA certificate.
verification_certificate: Option<String>
The private key verification certificate. If certificateMode
is SNI_ONLY
, the verificationCertificate
field must be empty. If certificateMode
is DEFAULT
or not provided, the verificationCertificate
field must not be empty.
set_as_active: Option<bool>
A boolean value that specifies if the CA certificate is set to active.
Valid values: ACTIVE | INACTIVE
allow_auto_registration: Option<bool>
Allows this CA certificate to be used for auto registration of device certificates.
registration_config: Option<RegistrationConfig>
Information about the registration configuration.
Metadata which can be used to manage the CA certificate.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
certificate_mode: Option<CertificateMode>
Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate
field is not provided, set certificateMode
to be SNI_ONLY
. If the verificationCertificate
field is provided, set certificateMode
to be DEFAULT
. When certificateMode
is not provided, it defaults to DEFAULT
. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.
Implementations§
source§impl RegisterCaCertificateInput
impl RegisterCaCertificateInput
sourcepub fn ca_certificate(&self) -> Option<&str>
pub fn ca_certificate(&self) -> Option<&str>
The CA certificate.
sourcepub fn verification_certificate(&self) -> Option<&str>
pub fn verification_certificate(&self) -> Option<&str>
The private key verification certificate. If certificateMode
is SNI_ONLY
, the verificationCertificate
field must be empty. If certificateMode
is DEFAULT
or not provided, the verificationCertificate
field must not be empty.
sourcepub fn set_as_active(&self) -> Option<bool>
pub fn set_as_active(&self) -> Option<bool>
A boolean value that specifies if the CA certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn allow_auto_registration(&self) -> Option<bool>
pub fn allow_auto_registration(&self) -> Option<bool>
Allows this CA certificate to be used for auto registration of device certificates.
sourcepub fn registration_config(&self) -> Option<&RegistrationConfig>
pub fn registration_config(&self) -> Option<&RegistrationConfig>
Information about the registration configuration.
Metadata which can be used to manage the CA certificate.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn certificate_mode(&self) -> Option<&CertificateMode>
pub fn certificate_mode(&self) -> Option<&CertificateMode>
Describes the certificate mode in which the Certificate Authority (CA) will be registered. If the verificationCertificate
field is not provided, set certificateMode
to be SNI_ONLY
. If the verificationCertificate
field is provided, set certificateMode
to be DEFAULT
. When certificateMode
is not provided, it defaults to DEFAULT
. All the device certificates that are registered using this CA will be registered in the same certificate mode as the CA. For more information about certificate mode for device certificates, see certificate mode.
source§impl RegisterCaCertificateInput
impl RegisterCaCertificateInput
sourcepub fn builder() -> RegisterCaCertificateInputBuilder
pub fn builder() -> RegisterCaCertificateInputBuilder
Creates a new builder-style object to manufacture RegisterCaCertificateInput
.
Trait Implementations§
source§impl Clone for RegisterCaCertificateInput
impl Clone for RegisterCaCertificateInput
source§fn clone(&self) -> RegisterCaCertificateInput
fn clone(&self) -> RegisterCaCertificateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RegisterCaCertificateInput
impl Debug for RegisterCaCertificateInput
source§impl PartialEq for RegisterCaCertificateInput
impl PartialEq for RegisterCaCertificateInput
source§fn eq(&self, other: &RegisterCaCertificateInput) -> bool
fn eq(&self, other: &RegisterCaCertificateInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RegisterCaCertificateInput
Auto Trait Implementations§
impl Freeze for RegisterCaCertificateInput
impl RefUnwindSafe for RegisterCaCertificateInput
impl Send for RegisterCaCertificateInput
impl Sync for RegisterCaCertificateInput
impl Unpin for RegisterCaCertificateInput
impl UnwindSafe for RegisterCaCertificateInput
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