Struct aws_sdk_proton::client::fluent_builders::UpdateService
source · pub struct UpdateService { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateService
.
Edit a service description or use a spec to add and delete service instances.
Existing service instances and the service pipeline can't be edited using this API. They can only be deleted.
Use the description
parameter to modify the description.
Edit the spec
parameter to add or delete instances.
You can't delete a service instance (remove it from the spec) if it has an attached component.
For more information about components, see Proton components in the Proton User Guide.
Implementations§
source§impl UpdateService
impl UpdateService
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateService, AwsResponseRetryClassifier>, SdkError<UpdateServiceError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<UpdateService, AwsResponseRetryClassifier>, SdkError<UpdateServiceError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<UpdateServiceOutput, SdkError<UpdateServiceError>>
pub async fn send(
self
) -> Result<UpdateServiceOutput, SdkError<UpdateServiceError>>
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, which can be set when configuring the client.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The edited service description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The edited service description.
sourcepub fn spec(self, input: impl Into<String>) -> Self
pub fn spec(self, input: impl Into<String>) -> Self
Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the Proton User Guide.
sourcepub fn set_spec(self, input: Option<String>) -> Self
pub fn set_spec(self, input: Option<String>) -> Self
Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the Proton User Guide.
Trait Implementations§
source§impl Clone for UpdateService
impl Clone for UpdateService
source§fn clone(&self) -> UpdateService
fn clone(&self) -> UpdateService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more