#[non_exhaustive]pub struct CreateProvisioningTemplateInput { /* private fields */ }
Implementations§
source§impl CreateProvisioningTemplateInput
impl CreateProvisioningTemplateInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProvisioningTemplate, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProvisioningTemplate, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateProvisioningTemplate
>
Examples found in repository?
7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateProvisioningTemplate,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateProvisioningTemplateError>,
> {
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::CreateProvisioningTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::CreateProvisioningTemplateError>,
> {
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 CreateProvisioningTemplateInput
.
source§impl CreateProvisioningTemplateInput
impl CreateProvisioningTemplateInput
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 template_body(&self) -> Option<&str>
pub fn template_body(&self) -> Option<&str>
The JSON formatted contents of the provisioning template.
sourcepub fn provisioning_role_arn(&self) -> Option<&str>
pub fn provisioning_role_arn(&self) -> Option<&str>
The role ARN for 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>
Creates a pre-provisioning hook template.
Metadata which can be used to manage the provisioning template.
For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
sourcepub fn type(&self) -> Option<&TemplateType>
pub fn type(&self) -> Option<&TemplateType>
The type you define in a provisioning template. You can create a template with only one type. You can't change the template type after its creation. The default value is FLEET_PROVISIONING
. For more information about provisioning template, see: Provisioning template.
Trait Implementations§
source§impl Clone for CreateProvisioningTemplateInput
impl Clone for CreateProvisioningTemplateInput
source§fn clone(&self) -> CreateProvisioningTemplateInput
fn clone(&self) -> CreateProvisioningTemplateInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more