Struct aws_sdk_iot::input::DescribeJobTemplateInput
source · #[non_exhaustive]pub struct DescribeJobTemplateInput { /* private fields */ }
Implementations§
source§impl DescribeJobTemplateInput
impl DescribeJobTemplateInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeJobTemplate, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DescribeJobTemplate, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DescribeJobTemplate
>
Examples found in repository?
src/client.rs (line 13001)
12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeJobTemplate,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeJobTemplateError>,
> {
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::DescribeJobTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeJobTemplateError>,
> {
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 DescribeJobTemplateInput
.
source§impl DescribeJobTemplateInput
impl DescribeJobTemplateInput
sourcepub fn job_template_id(&self) -> Option<&str>
pub fn job_template_id(&self) -> Option<&str>
The unique identifier of the job template.
Trait Implementations§
source§impl Clone for DescribeJobTemplateInput
impl Clone for DescribeJobTemplateInput
source§fn clone(&self) -> DescribeJobTemplateInput
fn clone(&self) -> DescribeJobTemplateInput
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