Struct aws_sdk_iot::client::fluent_builders::RegisterCertificate
source · pub struct RegisterCertificate { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterCertificate
.
Registers a device certificate with IoT in the same certificate mode as the signing CA. If you have more than one CA certificate that has the same subject field, you must specify the CA certificate that was used to sign the device certificate being registered.
Requires permission to access the RegisterCertificate action.
Implementations§
source§impl RegisterCertificate
impl RegisterCertificate
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<RegisterCertificate, AwsResponseRetryClassifier>, SdkError<RegisterCertificateError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<RegisterCertificate, AwsResponseRetryClassifier>, SdkError<RegisterCertificateError>>
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<RegisterCertificateOutput, SdkError<RegisterCertificateError>>
pub async fn send(
self
) -> Result<RegisterCertificateOutput, SdkError<RegisterCertificateError>>
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 certificate_pem(self, input: impl Into<String>) -> Self
pub fn certificate_pem(self, input: impl Into<String>) -> Self
The certificate data, in PEM format.
sourcepub fn set_certificate_pem(self, input: Option<String>) -> Self
pub fn set_certificate_pem(self, input: Option<String>) -> Self
The certificate data, in PEM format.
sourcepub fn ca_certificate_pem(self, input: impl Into<String>) -> Self
pub fn ca_certificate_pem(self, input: impl Into<String>) -> Self
The CA certificate used to sign the device certificate being registered.
sourcepub fn set_ca_certificate_pem(self, input: Option<String>) -> Self
pub fn set_ca_certificate_pem(self, input: Option<String>) -> Self
The CA certificate used to sign the device certificate being registered.
sourcepub fn set_as_active(self, input: bool) -> Self
👎Deprecated
pub fn set_as_active(self, input: bool) -> Self
A boolean value that specifies if the certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn set_set_as_active(self, input: Option<bool>) -> Self
👎Deprecated
pub fn set_set_as_active(self, input: Option<bool>) -> Self
A boolean value that specifies if the certificate is set to active.
Valid values: ACTIVE | INACTIVE
sourcepub fn status(self, input: CertificateStatus) -> Self
pub fn status(self, input: CertificateStatus) -> Self
The status of the register certificate request. Valid values that you can use include ACTIVE
, INACTIVE
, and REVOKED
.
sourcepub fn set_status(self, input: Option<CertificateStatus>) -> Self
pub fn set_status(self, input: Option<CertificateStatus>) -> Self
The status of the register certificate request. Valid values that you can use include ACTIVE
, INACTIVE
, and REVOKED
.
Trait Implementations§
source§impl Clone for RegisterCertificate
impl Clone for RegisterCertificate
source§fn clone(&self) -> RegisterCertificate
fn clone(&self) -> RegisterCertificate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more