#[non_exhaustive]pub struct StartThingRegistrationTaskInput { /* private fields */ }
Implementations§
source§impl StartThingRegistrationTaskInput
impl StartThingRegistrationTaskInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartThingRegistrationTask, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<StartThingRegistrationTask, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<StartThingRegistrationTask
>
Examples found in repository?
src/client.rs (line 24096)
24082 24083 24084 24085 24086 24087 24088 24089 24090 24091 24092 24093 24094 24095 24096 24097 24098 24099 24100 24101 24102 24103 24104 24105 24106 24107 24108 24109 24110 24111 24112 24113 24114 24115 24116 24117 24118 24119 24120 24121 24122 24123 24124
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::StartThingRegistrationTask,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::StartThingRegistrationTaskError>,
> {
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::StartThingRegistrationTaskOutput,
aws_smithy_http::result::SdkError<crate::error::StartThingRegistrationTaskError>,
> {
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 StartThingRegistrationTaskInput
.
source§impl StartThingRegistrationTaskInput
impl StartThingRegistrationTaskInput
sourcepub fn template_body(&self) -> Option<&str>
pub fn template_body(&self) -> Option<&str>
The provisioning template.
sourcepub fn input_file_bucket(&self) -> Option<&str>
pub fn input_file_bucket(&self) -> Option<&str>
The S3 bucket that contains the input file.
sourcepub fn input_file_key(&self) -> Option<&str>
pub fn input_file_key(&self) -> Option<&str>
The name of input file within the S3 bucket. This file contains a newline delimited JSON file. Each line contains the parameter values to provision one device (thing).
Trait Implementations§
source§impl Clone for StartThingRegistrationTaskInput
impl Clone for StartThingRegistrationTaskInput
source§fn clone(&self) -> StartThingRegistrationTaskInput
fn clone(&self) -> StartThingRegistrationTaskInput
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