// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DeleteResourcePolicy`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`resource_arn(impl Into<String>)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::set_resource_arn):<br>required: **true**<br><p>Amazon Resource Name (ARN) of the resource to which the policies are attached.</p><br>
/// - [`policy_id(impl Into<String>)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::policy_id) / [`set_policy_id(Option<String>)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::set_policy_id):<br>required: **true**<br><p>The policy ID.</p><br>
/// - [`policy_hash(impl Into<String>)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::policy_hash) / [`set_policy_hash(Option<String>)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::set_policy_hash):<br>required: **true**<br><p>ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy.</p><br>
/// - [`deletion_mode(DeletionMode)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::deletion_mode) / [`set_deletion_mode(Option<DeletionMode>)`](crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::set_deletion_mode):<br>required: **false**<br><p>Specifies the intended outcome of the operation. Applies only to the <code>Document</code> resource type. The operation ignores this parameter for other resource types. Optional. Defaults to <code>RemoveSharing</code>.</p> <ul> <li> <p><code>RemoveSharing</code> – Deletes the resource policy and removes sharing of the document.</p></li> <li> <p><code>RollbackMigration</code> – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy.</p></li> </ul><br>
/// - On success, responds with [`DeleteResourcePolicyOutput`](crate::operation::delete_resource_policy::DeleteResourcePolicyOutput)
/// - On failure, responds with [`SdkError<DeleteResourcePolicyError>`](crate::operation::delete_resource_policy::DeleteResourcePolicyError)
pub fn delete_resource_policy(&self) -> crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder {
crate::operation::delete_resource_policy::builders::DeleteResourcePolicyFluentBuilder::new(self.handle.clone())
}
}