aws_sdk_iam/client/
delete_user_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 [`DeleteUserPolicy`](crate::operation::delete_user_policy::builders::DeleteUserPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`user_name(impl Into<String>)`](crate::operation::delete_user_policy::builders::DeleteUserPolicyFluentBuilder::user_name) / [`set_user_name(Option<String>)`](crate::operation::delete_user_policy::builders::DeleteUserPolicyFluentBuilder::set_user_name):<br>required: **true**<br><p>The name (friendly name, not ARN) identifying the user that the policy is embedded in.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
7    ///   - [`policy_name(impl Into<String>)`](crate::operation::delete_user_policy::builders::DeleteUserPolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::delete_user_policy::builders::DeleteUserPolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The name identifying the policy document to delete.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
8    /// - On success, responds with [`DeleteUserPolicyOutput`](crate::operation::delete_user_policy::DeleteUserPolicyOutput)
9    /// - On failure, responds with [`SdkError<DeleteUserPolicyError>`](crate::operation::delete_user_policy::DeleteUserPolicyError)
10    pub fn delete_user_policy(&self) -> crate::operation::delete_user_policy::builders::DeleteUserPolicyFluentBuilder {
11        crate::operation::delete_user_policy::builders::DeleteUserPolicyFluentBuilder::new(self.handle.clone())
12    }
13}