Struct aws_sdk_iot::operation::register_ca_certificate::builders::RegisterCACertificateFluentBuilder
source · pub struct RegisterCACertificateFluentBuilder { /* 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 RegisterCACertificateFluentBuilder
impl RegisterCACertificateFluentBuilder
sourcepub fn as_input(&self) -> &RegisterCaCertificateInputBuilder
pub fn as_input(&self) -> &RegisterCaCertificateInputBuilder
Access the RegisterCACertificate as a reference.
sourcepub async fn send(
self
) -> Result<RegisterCaCertificateOutput, SdkError<RegisterCACertificateError, HttpResponse>>
pub async fn send( self ) -> Result<RegisterCaCertificateOutput, SdkError<RegisterCACertificateError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<RegisterCaCertificateOutput, RegisterCACertificateError, Self>
pub fn customize( self ) -> CustomizableOperation<RegisterCaCertificateOutput, RegisterCACertificateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_ca_certificate(&self) -> &Option<String>
pub fn get_ca_certificate(&self) -> &Option<String>
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 get_verification_certificate(&self) -> &Option<String>
pub fn get_verification_certificate(&self) -> &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.
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 get_set_as_active(&self) -> &Option<bool>
pub fn get_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, 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 get_allow_auto_registration(&self) -> &Option<bool>
pub fn get_allow_auto_registration(&self) -> &Option<bool>
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.
sourcepub fn get_registration_config(&self) -> &Option<RegistrationConfig>
pub fn get_registration_config(&self) -> &Option<RegistrationConfig>
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..."
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.
sourcepub fn get_certificate_mode(&self) -> &Option<CertificateMode>
pub fn get_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.
Trait Implementations§
source§impl Clone for RegisterCACertificateFluentBuilder
impl Clone for RegisterCACertificateFluentBuilder
source§fn clone(&self) -> RegisterCACertificateFluentBuilder
fn clone(&self) -> RegisterCACertificateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more