aws_sdk_organizations/client/enable_policy_type.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 [`EnablePolicyType`](crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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_scp.html">SERVICE_CONTROL_POLICY</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_rcps.html">RESOURCE_CONTROL_POLICY</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_declarative.html">DECLARATIVE_POLICY_EC2</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_tag-policies.html">TAG_POLICY</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_chatbot.html">CHATBOT_POLICY</a></p></li> <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_security_hub.html">SECURITYHUB_POLICY</a></p></li> </ul><br>
8 /// - On success, responds with [`EnablePolicyTypeOutput`](crate::operation::enable_policy_type::EnablePolicyTypeOutput) with field(s):
9 /// - [`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>
10 /// - On failure, responds with [`SdkError<EnablePolicyTypeError>`](crate::operation::enable_policy_type::EnablePolicyTypeError)
11 pub fn enable_policy_type(&self) -> crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder {
12 crate::operation::enable_policy_type::builders::EnablePolicyTypeFluentBuilder::new(self.handle.clone())
13 }
14}