Struct aws_sdk_iot::operation::create_keys_and_certificate::builders::CreateKeysAndCertificateFluentBuilder
source · pub struct CreateKeysAndCertificateFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateKeysAndCertificate
.
Creates a 2048-bit RSA key pair and issues an X.509 certificate using the issued public key. You can also call CreateKeysAndCertificate
over MQTT from a device, for more information, see Provisioning MQTT API.
Note This is the only time IoT issues the private key for this certificate, so it is important to keep it in a secure location.
Requires permission to access the CreateKeysAndCertificate action.
Implementations§
source§impl CreateKeysAndCertificateFluentBuilder
impl CreateKeysAndCertificateFluentBuilder
sourcepub fn as_input(&self) -> &CreateKeysAndCertificateInputBuilder
pub fn as_input(&self) -> &CreateKeysAndCertificateInputBuilder
Access the CreateKeysAndCertificate as a reference.
sourcepub async fn send(
self
) -> Result<CreateKeysAndCertificateOutput, SdkError<CreateKeysAndCertificateError, HttpResponse>>
pub async fn send( self ) -> Result<CreateKeysAndCertificateOutput, SdkError<CreateKeysAndCertificateError, 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<CreateKeysAndCertificateOutput, CreateKeysAndCertificateError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateKeysAndCertificateOutput, CreateKeysAndCertificateError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn set_as_active(self, input: bool) -> Self
pub fn set_as_active(self, input: bool) -> Self
Specifies whether the certificate is active.
sourcepub fn set_set_as_active(self, input: Option<bool>) -> Self
pub fn set_set_as_active(self, input: Option<bool>) -> Self
Specifies whether the certificate is active.
sourcepub fn get_set_as_active(&self) -> &Option<bool>
pub fn get_set_as_active(&self) -> &Option<bool>
Specifies whether the certificate is active.
Trait Implementations§
source§impl Clone for CreateKeysAndCertificateFluentBuilder
impl Clone for CreateKeysAndCertificateFluentBuilder
source§fn clone(&self) -> CreateKeysAndCertificateFluentBuilder
fn clone(&self) -> CreateKeysAndCertificateFluentBuilder
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 CreateKeysAndCertificateFluentBuilder
impl !RefUnwindSafe for CreateKeysAndCertificateFluentBuilder
impl Send for CreateKeysAndCertificateFluentBuilder
impl Sync for CreateKeysAndCertificateFluentBuilder
impl Unpin for CreateKeysAndCertificateFluentBuilder
impl !UnwindSafe for CreateKeysAndCertificateFluentBuilder
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