aws_sdk_applicationsignals/client/update_service_level_objective.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateServiceLevelObjective`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`id(impl Into<String>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::id) / [`set_id(Option<String>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::set_id):<br>required: **true**<br><p>The Amazon Resource Name (ARN) or name of the service level objective that you want to update.</p><br>
7 /// - [`description(impl Into<String>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::set_description):<br>required: **false**<br><p>An optional description for the SLO.</p><br>
8 /// - [`sli_config(ServiceLevelIndicatorConfig)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::sli_config) / [`set_sli_config(Option<ServiceLevelIndicatorConfig>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::set_sli_config):<br>required: **false**<br><p>If this SLO is a period-based SLO, this structure defines the information about what performance metric this SLO will monitor.</p><br>
9 /// - [`request_based_sli_config(RequestBasedServiceLevelIndicatorConfig)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::request_based_sli_config) / [`set_request_based_sli_config(Option<RequestBasedServiceLevelIndicatorConfig>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::set_request_based_sli_config):<br>required: **false**<br><p>If this SLO is a request-based SLO, this structure defines the information about what performance metric this SLO will monitor.</p> <p>You can't specify both <code>SliConfig</code> and <code>RequestBasedSliConfig</code> in the same operation.</p><br>
10 /// - [`goal(Goal)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::goal) / [`set_goal(Option<Goal>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::set_goal):<br>required: **false**<br><p>A structure that contains the attributes that determine the goal of the SLO. This includes the time period for evaluation and the attainment threshold.</p><br>
11 /// - [`burn_rate_configurations(BurnRateConfiguration)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::burn_rate_configurations) / [`set_burn_rate_configurations(Option<Vec::<BurnRateConfiguration>>)`](crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::set_burn_rate_configurations):<br>required: **false**<br><p>Use this array to create <i>burn rates</i> for this SLO. Each burn rate is a metric that indicates how fast the service is consuming the error budget, relative to the attainment goal of the SLO.</p><br>
12 /// - On success, responds with [`UpdateServiceLevelObjectiveOutput`](crate::operation::update_service_level_objective::UpdateServiceLevelObjectiveOutput) with field(s):
13 /// - [`slo(Option<ServiceLevelObjective>)`](crate::operation::update_service_level_objective::UpdateServiceLevelObjectiveOutput::slo): <p>A structure that contains information about the SLO that you just updated.</p>
14 /// - On failure, responds with [`SdkError<UpdateServiceLevelObjectiveError>`](crate::operation::update_service_level_objective::UpdateServiceLevelObjectiveError)
15 pub fn update_service_level_objective(
16 &self,
17 ) -> crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder {
18 crate::operation::update_service_level_objective::builders::UpdateServiceLevelObjectiveFluentBuilder::new(self.handle.clone())
19 }
20}