aws_sdk_bedrock/client/delete_automated_reasoning_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 [`DeleteAutomatedReasoningPolicy`](crate::operation::delete_automated_reasoning_policy::builders::DeleteAutomatedReasoningPolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`policy_arn(impl Into<String>)`](crate::operation::delete_automated_reasoning_policy::builders::DeleteAutomatedReasoningPolicyFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::delete_automated_reasoning_policy::builders::DeleteAutomatedReasoningPolicyFluentBuilder::set_policy_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Automated Reasoning policy to delete.</p><br>
7 /// - [`force(bool)`](crate::operation::delete_automated_reasoning_policy::builders::DeleteAutomatedReasoningPolicyFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::delete_automated_reasoning_policy::builders::DeleteAutomatedReasoningPolicyFluentBuilder::set_force):<br>required: **false**<br><p>Specifies whether to force delete the automated reasoning policy even if it has active resources. When <code>false</code>, Amazon Bedrock validates if all artifacts have been deleted (e.g. policy version, test case, test result) for a policy before deletion. When <code>true</code>, Amazon Bedrock will delete the policy and all its artifacts without validation. Default is <code>false</code>.</p><br>
8 /// - On success, responds with [`DeleteAutomatedReasoningPolicyOutput`](crate::operation::delete_automated_reasoning_policy::DeleteAutomatedReasoningPolicyOutput)
9 /// - On failure, responds with [`SdkError<DeleteAutomatedReasoningPolicyError>`](crate::operation::delete_automated_reasoning_policy::DeleteAutomatedReasoningPolicyError)
10 pub fn delete_automated_reasoning_policy(
11 &self,
12 ) -> crate::operation::delete_automated_reasoning_policy::builders::DeleteAutomatedReasoningPolicyFluentBuilder {
13 crate::operation::delete_automated_reasoning_policy::builders::DeleteAutomatedReasoningPolicyFluentBuilder::new(self.handle.clone())
14 }
15}