Struct aws_sdk_iot::client::fluent_builders::RegisterCACertificate
source · [−]pub struct RegisterCACertificate { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterCACertificate
.
Registers a CA certificate with IoT. This CA certificate can then be used to sign device certificates, which can be then registered with IoT. You can register up to 10 CA certificates per Amazon Web Services account that have the same subject field. This enables you to have up to 10 certificate authorities sign your device certificates. If you have more than one CA certificate registered, make sure you pass the CA certificate when you register your device certificates with the RegisterCertificate
action.
Requires permission to access the RegisterCACertificate action.
Implementations
sourceimpl RegisterCACertificate
impl RegisterCACertificate
sourcepub async fn send(
self
) -> Result<RegisterCaCertificateOutput, SdkError<RegisterCACertificateError>>
pub async fn send(
self
) -> Result<RegisterCaCertificateOutput, SdkError<RegisterCACertificateError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn ca_certificate(self, input: impl Into<String>) -> Self
pub fn ca_certificate(self, input: impl Into<String>) -> Self
The CA certificate.
sourcepub fn set_ca_certificate(self, input: Option<String>) -> Self
pub fn set_ca_certificate(self, input: Option<String>) -> Self
The CA certificate.
sourcepub fn verification_certificate(self, input: impl Into<String>) -> Self
pub fn verification_certificate(self, input: impl Into<String>) -> Self
The private key verification certificate.
sourcepub fn set_verification_certificate(self, input: Option<String>) -> Self
pub fn set_verification_certificate(self, input: Option<String>) -> Self
The private key verification certificate.
sourcepub fn set_as_active(self, input: bool) -> Self
pub fn set_as_active(self, input: bool) -> Self
A boolean value that specifies if the CA certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn set_set_as_active(self, input: Option<bool>) -> Self
pub fn set_set_as_active(self, input: Option<bool>) -> Self
A boolean value that specifies if the CA certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn allow_auto_registration(self, input: bool) -> Self
pub fn allow_auto_registration(self, input: bool) -> Self
Allows this CA certificate to be used for auto registration of device certificates.
sourcepub fn set_allow_auto_registration(self, input: Option<bool>) -> Self
pub fn set_allow_auto_registration(self, input: Option<bool>) -> Self
Allows this CA certificate to be used for auto registration of device certificates.
sourcepub fn registration_config(self, input: RegistrationConfig) -> Self
pub fn registration_config(self, input: RegistrationConfig) -> Self
Information about the registration configuration.
sourcepub fn set_registration_config(self, input: Option<RegistrationConfig>) -> Self
pub fn set_registration_config(self, input: Option<RegistrationConfig>) -> Self
Information about the registration configuration.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
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..."
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..."
Trait Implementations
sourceimpl Clone for RegisterCACertificate
impl Clone for RegisterCACertificate
sourcefn clone(&self) -> RegisterCACertificate
fn clone(&self) -> RegisterCACertificate
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
Auto Trait Implementations
impl !RefUnwindSafe for RegisterCACertificate
impl Send for RegisterCACertificate
impl Sync for RegisterCACertificate
impl Unpin for RegisterCACertificate
impl !UnwindSafe for RegisterCACertificate
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