Skip to main content

aws_sdk_networksecuritymanager/client/
delete_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 [`DeletePolicy`](crate::operation::delete_policy::builders::DeletePolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_identifier(impl Into<String>)`](crate::operation::delete_policy::builders::DeletePolicyFluentBuilder::policy_identifier) / [`set_policy_identifier(Option<String>)`](crate::operation::delete_policy::builders::DeletePolicyFluentBuilder::set_policy_identifier):<br>required: **true**<br><p>The identifier of the policy. This is the policy's Amazon Resource Name (ARN).</p><br>
7    /// - On success, responds with [`DeletePolicyOutput`](crate::operation::delete_policy::DeletePolicyOutput)
8    /// - On failure, responds with [`SdkError<DeletePolicyError>`](crate::operation::delete_policy::DeletePolicyError)
9    pub fn delete_policy(&self) -> crate::operation::delete_policy::builders::DeletePolicyFluentBuilder {
10        crate::operation::delete_policy::builders::DeletePolicyFluentBuilder::new(self.handle.clone())
11    }
12}