pub struct UpdateCertificateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateCertificate
.
Updates the status of the specified certificate. This operation is idempotent.
Requires permission to access the UpdateCertificate action.
Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to IoT.
Within a few minutes of updating a certificate from the ACTIVE state to any other state, IoT disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in the ACTIVE state to reconnect.
Implementations§
source§impl UpdateCertificateFluentBuilder
impl UpdateCertificateFluentBuilder
sourcepub fn as_input(&self) -> &UpdateCertificateInputBuilder
pub fn as_input(&self) -> &UpdateCertificateInputBuilder
Access the UpdateCertificate as a reference.
sourcepub async fn send(
self
) -> Result<UpdateCertificateOutput, SdkError<UpdateCertificateError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateCertificateOutput, SdkError<UpdateCertificateError, 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<UpdateCertificateOutput, UpdateCertificateError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateCertificateOutput, UpdateCertificateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn certificate_id(self, input: impl Into<String>) -> Self
pub fn certificate_id(self, input: impl Into<String>) -> Self
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn set_certificate_id(self, input: Option<String>) -> Self
pub fn set_certificate_id(self, input: Option<String>) -> Self
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn get_certificate_id(&self) -> &Option<String>
pub fn get_certificate_id(&self) -> &Option<String>
The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)
sourcepub fn new_status(self, input: CertificateStatus) -> Self
pub fn new_status(self, input: CertificateStatus) -> Self
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
sourcepub fn set_new_status(self, input: Option<CertificateStatus>) -> Self
pub fn set_new_status(self, input: Option<CertificateStatus>) -> Self
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
sourcepub fn get_new_status(&self) -> &Option<CertificateStatus>
pub fn get_new_status(&self) -> &Option<CertificateStatus>
The new status.
Note: Setting the status to PENDING_TRANSFER or PENDING_ACTIVATION will result in an exception being thrown. PENDING_TRANSFER and PENDING_ACTIVATION are statuses used internally by IoT. They are not intended for developer use.
Note: The status value REGISTER_INACTIVE is deprecated and should not be used.
Trait Implementations§
source§impl Clone for UpdateCertificateFluentBuilder
impl Clone for UpdateCertificateFluentBuilder
source§fn clone(&self) -> UpdateCertificateFluentBuilder
fn clone(&self) -> UpdateCertificateFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateCertificateFluentBuilder
impl !RefUnwindSafe for UpdateCertificateFluentBuilder
impl Send for UpdateCertificateFluentBuilder
impl Sync for UpdateCertificateFluentBuilder
impl Unpin for UpdateCertificateFluentBuilder
impl !UnwindSafe for UpdateCertificateFluentBuilder
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