Skip to main content

aws_sdk_iam/client/
untag_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 [`UntagPolicy`](crate::operation::untag_policy::builders::UntagPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`policy_arn(impl Into<String>)`](crate::operation::untag_policy::builders::UntagPolicyFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::untag_policy::builders::UntagPolicyFluentBuilder::set_policy_arn):<br>required: **true**<br><p>The ARN of the IAM customer managed policy from which you want to remove tags.</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    ///   - [`tag_keys(impl Into<String>)`](crate::operation::untag_policy::builders::UntagPolicyFluentBuilder::tag_keys) / [`set_tag_keys(Option<Vec::<String>>)`](crate::operation::untag_policy::builders::UntagPolicyFluentBuilder::set_tag_keys):<br>required: **true**<br><p>A list of key names as a simple array of strings. The tags with matching keys are removed from the specified policy.</p><br>
8    /// - On success, responds with [`UntagPolicyOutput`](crate::operation::untag_policy::UntagPolicyOutput)
9    /// - On failure, responds with [`SdkError<UntagPolicyError>`](crate::operation::untag_policy::UntagPolicyError)
10    pub fn untag_policy(&self) -> crate::operation::untag_policy::builders::UntagPolicyFluentBuilder {
11        crate::operation::untag_policy::builders::UntagPolicyFluentBuilder::new(self.handle.clone())
12    }
13}