aws-sdk-organizations 1.120.0

AWS SDK for AWS Organizations
Documentation
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 [`DetachPolicy`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`policy_id(impl Into<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::policy_id) / [`set_policy_id(Option<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::set_policy_id):<br>required: **true**<br><p>ID for the policy you want to detach. You can get the ID from the <code>ListPolicies</code> or <code>ListPoliciesForTarget</code> operations.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a policy ID string requires "p-" followed by from 8 to 128 lowercase or uppercase letters, digits, or the underscore character (_).</p><br>
    ///   - [`target_id(impl Into<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::target_id) / [`set_target_id(Option<String>)`](crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::set_target_id):<br>required: **true**<br><p>ID for the root, OU, or account that you want to detach the policy from. You can get the ID from the <code>ListRoots</code>, <code>ListOrganizationalUnitsForParent</code>, or <code>ListAccounts</code> operations.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a target ID string requires one of the following:</p> <ul>  <li>   <p><b>Root</b> - A string that begins with "r-" followed by from 4 to 32 lowercase letters or digits.</p></li>  <li>   <p><b>Account</b> - A string that consists of exactly 12 digits.</p></li>  <li>   <p><b>Organizational unit (OU)</b> - A string that begins with "ou-" followed by from 4 to 32 lowercase letters or digits (the ID of the root that the OU is in). This string is followed by a second "-" dash and from 8 to 32 additional lowercase letters or digits.</p></li> </ul><br>
    /// - On success, responds with [`DetachPolicyOutput`](crate::operation::detach_policy::DetachPolicyOutput)
    /// - On failure, responds with [`SdkError<DetachPolicyError>`](crate::operation::detach_policy::DetachPolicyError)
    pub fn detach_policy(&self) -> crate::operation::detach_policy::builders::DetachPolicyFluentBuilder {
        crate::operation::detach_policy::builders::DetachPolicyFluentBuilder::new(self.handle.clone())
    }
}