aws_sdk_iam/client/
delete_role_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 [`DeleteRolePolicy`](crate::operation::delete_role_policy::builders::DeleteRolePolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`role_name(impl Into<String>)`](crate::operation::delete_role_policy::builders::DeleteRolePolicyFluentBuilder::role_name) / [`set_role_name(Option<String>)`](crate::operation::delete_role_policy::builders::DeleteRolePolicyFluentBuilder::set_role_name):<br>required: **true**<br><p>The name (friendly name, not ARN) identifying the role 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_role_policy::builders::DeleteRolePolicyFluentBuilder::policy_name) / [`set_policy_name(Option<String>)`](crate::operation::delete_role_policy::builders::DeleteRolePolicyFluentBuilder::set_policy_name):<br>required: **true**<br><p>The name of the inline policy to delete from the specified IAM role.</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 [`DeleteRolePolicyOutput`](crate::operation::delete_role_policy::DeleteRolePolicyOutput)
9    /// - On failure, responds with [`SdkError<DeleteRolePolicyError>`](crate::operation::delete_role_policy::DeleteRolePolicyError)
10    pub fn delete_role_policy(&self) -> crate::operation::delete_role_policy::builders::DeleteRolePolicyFluentBuilder {
11        crate::operation::delete_role_policy::builders::DeleteRolePolicyFluentBuilder::new(self.handle.clone())
12    }
13}