#[non_exhaustive]pub struct CreateProvisioningTemplateVersionInput { /* private fields */ }
Implementations§
source§impl CreateProvisioningTemplateVersionInput
impl CreateProvisioningTemplateVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProvisioningTemplateVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateProvisioningTemplateVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateProvisioningTemplateVersion
>
Examples found in repository?
src/client.rs (line 7597)
7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateProvisioningTemplateVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateProvisioningTemplateVersionError>,
> {
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::CreateProvisioningTemplateVersionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateProvisioningTemplateVersionError>,
> {
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 CreateProvisioningTemplateVersionInput
.
source§impl CreateProvisioningTemplateVersionInput
impl CreateProvisioningTemplateVersionInput
sourcepub fn template_name(&self) -> Option<&str>
pub fn template_name(&self) -> Option<&str>
The name 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 set_as_default(&self) -> bool
pub fn set_as_default(&self) -> bool
Sets a fleet provision template version as the default version.
Trait Implementations§
source§impl Clone for CreateProvisioningTemplateVersionInput
impl Clone for CreateProvisioningTemplateVersionInput
source§fn clone(&self) -> CreateProvisioningTemplateVersionInput
fn clone(&self) -> CreateProvisioningTemplateVersionInput
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