#[non_exhaustive]pub struct UpdateProvisioningTemplateInput { /* private fields */ }
Implementations§
source§impl UpdateProvisioningTemplateInput
impl UpdateProvisioningTemplateInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateProvisioningTemplate, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateProvisioningTemplate, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateProvisioningTemplate
>
Examples found in repository?
src/client.rs (line 26652)
26638 26639 26640 26641 26642 26643 26644 26645 26646 26647 26648 26649 26650 26651 26652 26653 26654 26655 26656 26657 26658 26659 26660 26661 26662 26663 26664 26665 26666 26667 26668 26669 26670 26671 26672 26673 26674 26675 26676 26677 26678 26679 26680
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateProvisioningTemplate,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateProvisioningTemplateError>,
> {
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::UpdateProvisioningTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateProvisioningTemplateError>,
> {
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 UpdateProvisioningTemplateInput
.
source§impl UpdateProvisioningTemplateInput
impl UpdateProvisioningTemplateInput
sourcepub fn template_name(&self) -> Option<&str>
pub fn template_name(&self) -> Option<&str>
The name of the provisioning template.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the provisioning template.
sourcepub fn default_version_id(&self) -> Option<i32>
pub fn default_version_id(&self) -> Option<i32>
The ID of the default provisioning template version.
sourcepub fn provisioning_role_arn(&self) -> Option<&str>
pub fn provisioning_role_arn(&self) -> Option<&str>
The ARN of the role associated with the provisioning template. This IoT role grants permission to provision a device.
sourcepub fn pre_provisioning_hook(&self) -> Option<&ProvisioningHook>
pub fn pre_provisioning_hook(&self) -> Option<&ProvisioningHook>
Updates the pre-provisioning hook template.
sourcepub fn remove_pre_provisioning_hook(&self) -> Option<bool>
pub fn remove_pre_provisioning_hook(&self) -> Option<bool>
Removes pre-provisioning hook template.
Trait Implementations§
source§impl Clone for UpdateProvisioningTemplateInput
impl Clone for UpdateProvisioningTemplateInput
source§fn clone(&self) -> UpdateProvisioningTemplateInput
fn clone(&self) -> UpdateProvisioningTemplateInput
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