1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`EnablePolicyType`](crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`root_id(impl Into<String>)`](crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder::root_id) / [`set_root_id(Option<String>)`](crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder::set_root_id):<br>required: **true**<br><p>The unique identifier (ID) of the root in which you want to enable a policy type. You can get the ID from the <code>ListRoots</code> operation.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> for a root ID string requires "r-" followed by from 4 to 32 lowercase letters or digits.</p><br>
    ///   - [`policy_type(PolicyType)`](crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder::policy_type) / [`set_policy_type(Option<PolicyType>)`](crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder::set_policy_type):<br>required: **true**<br><p>The policy type that you want to enable. You can specify one of the following values:</p> <ul>  <li>   <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html">AISERVICES_OPT_OUT_POLICY</a></p></li>  <li>   <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html">BACKUP_POLICY</a></p></li>  <li>   <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html">SERVICE_CONTROL_POLICY</a></p></li>  <li>   <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html">TAG_POLICY</a></p></li> </ul><br>
    /// - On success, responds with [`EnablePolicyTypeOutput`](crate::operation::enable_policy_type::EnablePolicyTypeOutput) with field(s):
    ///   - [`root(Option<Root>)`](crate::operation::enable_policy_type::EnablePolicyTypeOutput::root): <p>A structure that shows the root with the updated list of enabled policy types.</p>
    /// - On failure, responds with [`SdkError<EnablePolicyTypeError>`](crate::operation::enable_policy_type::EnablePolicyTypeError)
    pub fn enable_policy_type(&self) -> crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder {
        crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder::new(self.handle.clone())
    }
}