Struct aws_sdk_iot::input::GetRegistrationCodeInput
source · #[non_exhaustive]pub struct GetRegistrationCodeInput {}
Expand description
The input to the GetRegistrationCode operation.
Implementations§
source§impl GetRegistrationCodeInput
impl GetRegistrationCodeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetRegistrationCode, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetRegistrationCode, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<GetRegistrationCode
>
Examples found in repository?
src/client.rs (line 15520)
15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::GetRegistrationCode,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::GetRegistrationCodeError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::GetRegistrationCodeOutput,
aws_smithy_http::result::SdkError<crate::error::GetRegistrationCodeError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetRegistrationCodeInput
.
Trait Implementations§
source§impl Clone for GetRegistrationCodeInput
impl Clone for GetRegistrationCodeInput
source§fn clone(&self) -> GetRegistrationCodeInput
fn clone(&self) -> GetRegistrationCodeInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more