1
2
3
4
5
6
7
8
9
10
11
12
13
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeletePolicyVersion`](crate::operation::delete_policy_version::builders::DeletePolicyVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`policy_arn(impl Into<String>)`](crate::operation::delete_policy_version::builders::DeletePolicyVersionFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::delete_policy_version::builders::DeletePolicyVersionFluentBuilder::set_policy_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the IAM policy from which you want to delete a version.</p>  <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p><br>
    ///   - [`version_id(impl Into<String>)`](crate::operation::delete_policy_version::builders::DeletePolicyVersionFluentBuilder::version_id) / [`set_version_id(Option<String>)`](crate::operation::delete_policy_version::builders::DeletePolicyVersionFluentBuilder::set_version_id):<br>required: **true**<br><p>The policy version to delete.</p>  <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.</p>  <p>For more information about managed policy versions, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-versions.html">Versioning for managed policies</a> in the <i>IAM User Guide</i>.</p><br>
    /// - On success, responds with [`DeletePolicyVersionOutput`](crate::operation::delete_policy_version::DeletePolicyVersionOutput)
    /// - On failure, responds with [`SdkError<DeletePolicyVersionError>`](crate::operation::delete_policy_version::DeletePolicyVersionError)
    pub fn delete_policy_version(&self) -> crate::operation::delete_policy_version::builders::DeletePolicyVersionFluentBuilder {
        crate::operation::delete_policy_version::builders::DeletePolicyVersionFluentBuilder::new(self.handle.clone())
    }
}