Struct aws_sdk_proton::input::UpdateServiceInstanceInput
source · #[non_exhaustive]pub struct UpdateServiceInstanceInput { /* private fields */ }
Implementations§
source§impl UpdateServiceInstanceInput
impl UpdateServiceInstanceInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateServiceInstance, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateServiceInstance, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateServiceInstance
>
Examples found in repository?
8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateServiceInstance,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateServiceInstanceError>,
> {
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::UpdateServiceInstanceOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateServiceInstanceError>,
> {
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 UpdateServiceInstanceInput
.
source§impl UpdateServiceInstanceInput
impl UpdateServiceInstanceInput
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service that the service instance belongs to.
sourcepub fn deployment_type(&self) -> Option<&DeploymentUpdateType>
pub fn deployment_type(&self) -> Option<&DeploymentUpdateType>
The deployment type. It defines the mode for updating a service instance, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this deployment type.
-
MINOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
sourcepub fn spec(&self) -> Option<&str>
pub fn spec(&self) -> Option<&str>
The formatted specification that defines the service instance update.
sourcepub fn template_major_version(&self) -> Option<&str>
pub fn template_major_version(&self) -> Option<&str>
The major version of the service template to update.
sourcepub fn template_minor_version(&self) -> Option<&str>
pub fn template_minor_version(&self) -> Option<&str>
The minor version of the service template to update.
Trait Implementations§
source§impl Clone for UpdateServiceInstanceInput
impl Clone for UpdateServiceInstanceInput
source§fn clone(&self) -> UpdateServiceInstanceInput
fn clone(&self) -> UpdateServiceInstanceInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more