aws_sdk_resiliencehub/client/update_resiliency_policy.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 [`UpdateResiliencyPolicy`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`policy_arn(impl Into<String>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::set_policy_arn):<br>required: **true**<br><p>Amazon Resource Name (ARN) of the resiliency policy. The format for this ARN is: arn:<code>partition</code>:resiliencehub:<code>region</code>:<code>account</code>:resiliency-policy/<code>policy-id</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p><br>
7 /// - [`policy_name(impl Into<String>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::set_policy_name):<br>required: **false**<br><p>Name of the resiliency policy.</p><br>
8 /// - [`policy_description(impl Into<String>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::policy_description) / [`set_policy_description(Option<String>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::set_policy_description):<br>required: **false**<br><p>Description of the resiliency policy.</p><br>
9 /// - [`data_location_constraint(DataLocationConstraint)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::data_location_constraint) / [`set_data_location_constraint(Option<DataLocationConstraint>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::set_data_location_constraint):<br>required: **false**<br><p>Specifies a high-level geographical location constraint for where your resilience policy data can be stored.</p><br>
10 /// - [`tier(ResiliencyPolicyTier)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::tier) / [`set_tier(Option<ResiliencyPolicyTier>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::set_tier):<br>required: **false**<br><p>The tier for this resiliency policy, ranging from the highest severity (<code>MissionCritical</code>) to lowest (<code>NonCritical</code>).</p><br>
11 /// - [`policy(DisruptionType, FailurePolicy)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::policy) / [`set_policy(Option<HashMap::<DisruptionType, FailurePolicy>>)`](crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::set_policy):<br>required: **false**<br><p>Resiliency policy to be created, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.</p><br>
12 /// - On success, responds with [`UpdateResiliencyPolicyOutput`](crate::operation::update_resiliency_policy::UpdateResiliencyPolicyOutput) with field(s):
13 /// - [`policy(Option<ResiliencyPolicy>)`](crate::operation::update_resiliency_policy::UpdateResiliencyPolicyOutput::policy): <p>The resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.</p>
14 /// - On failure, responds with [`SdkError<UpdateResiliencyPolicyError>`](crate::operation::update_resiliency_policy::UpdateResiliencyPolicyError)
15 pub fn update_resiliency_policy(&self) -> crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder {
16 crate::operation::update_resiliency_policy::builders::UpdateResiliencyPolicyFluentBuilder::new(self.handle.clone())
17 }
18}