Struct aws_sdk_iot::input::CreateProvisioningClaimInput
source · #[non_exhaustive]pub struct CreateProvisioningClaimInput { /* private fields */ }
Implementations§
source§impl CreateProvisioningClaimInput
impl CreateProvisioningClaimInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProvisioningClaim, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProvisioningClaim, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateProvisioningClaim
>
Examples found in repository?
src/client.rs (line 7349)
7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateProvisioningClaim,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateProvisioningClaimError>,
> {
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::CreateProvisioningClaimOutput,
aws_smithy_http::result::SdkError<crate::error::CreateProvisioningClaimError>,
> {
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 CreateProvisioningClaimInput
.
source§impl CreateProvisioningClaimInput
impl CreateProvisioningClaimInput
sourcepub fn template_name(&self) -> Option<&str>
pub fn template_name(&self) -> Option<&str>
The name of the provisioning template to use.
Trait Implementations§
source§impl Clone for CreateProvisioningClaimInput
impl Clone for CreateProvisioningClaimInput
source§fn clone(&self) -> CreateProvisioningClaimInput
fn clone(&self) -> CreateProvisioningClaimInput
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