Struct aws_sdk_proton::input::UpdateServiceTemplateInput
source · #[non_exhaustive]pub struct UpdateServiceTemplateInput { /* private fields */ }
Implementations§
source§impl UpdateServiceTemplateInput
impl UpdateServiceTemplateInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateServiceTemplate, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateServiceTemplate, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateServiceTemplate
>
Examples found in repository?
src/client.rs (line 8991)
8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateServiceTemplate,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateServiceTemplateError>,
> {
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::UpdateServiceTemplateOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateServiceTemplateError>,
> {
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 UpdateServiceTemplateInput
.
source§impl UpdateServiceTemplateInput
impl UpdateServiceTemplateInput
sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The name of the service template to update that's displayed in the developer interface.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the service template update.
Trait Implementations§
source§impl Clone for UpdateServiceTemplateInput
impl Clone for UpdateServiceTemplateInput
source§fn clone(&self) -> UpdateServiceTemplateInput
fn clone(&self) -> UpdateServiceTemplateInput
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