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 Amazon Web Services IoT Core. There is no limit to the number of CA certificates you can register in your Amazon Web Services account. You can register up to 10 CA certificates with the same CA subject field
per Amazon Web Services account.
Requires permission to access the RegisterCACertificate action.
Implementations§
source§impl RegisterCACertificate
impl RegisterCACertificate
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<RegisterCACertificate, AwsResponseRetryClassifier>, SdkError<RegisterCACertificateError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<RegisterCACertificate, AwsResponseRetryClassifier>, SdkError<RegisterCACertificateError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
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. 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_verification_certificate(self, input: Option<String>) -> Self
pub fn set_verification_certificate(self, input: Option<String>) -> Self
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, 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..."
sourcepub fn certificate_mode(self, input: CertificateMode) -> Self
pub fn certificate_mode(self, input: CertificateMode) -> Self
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.
sourcepub fn set_certificate_mode(self, input: Option<CertificateMode>) -> Self
pub fn set_certificate_mode(self, input: Option<CertificateMode>) -> Self
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.
Trait Implementations§
source§impl Clone for RegisterCACertificate
impl Clone for RegisterCACertificate
source§fn clone(&self) -> RegisterCACertificate
fn clone(&self) -> RegisterCACertificate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more