1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdatePolicy`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`policy_id(impl Into<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::policy_id) / [`set_policy_id(Option<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::set_policy_id):<br>required: **true**<br><p>The unique identifier (ID) of the policy that you want to update.</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>
    ///   - [`name(impl Into<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::set_name):<br>required: **false**<br><p>If provided, the new name for the policy.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> that is used to validate this parameter is a string of any of the characters in the ASCII character range.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::set_description):<br>required: **false**<br><p>If provided, the new description for the policy.</p><br>
    ///   - [`content(impl Into<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::content) / [`set_content(Option<String>)`](crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::set_content):<br>required: **false**<br><p>If provided, the new content for the policy. The text must be correctly formatted JSON that complies with the syntax for the policy's type. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_syntax.html">SCP syntax</a> in the <i>Organizations User Guide</i>.</p> <p>The maximum size of a policy document depends on the policy's type. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html#min-max-values">Maximum and minimum values</a> in the <i>Organizations User Guide</i>.</p><br>
    /// - On success, responds with [`UpdatePolicyOutput`](crate::operation::update_policy::UpdatePolicyOutput) with field(s):
    ///   - [`policy(Option<Policy>)`](crate::operation::update_policy::UpdatePolicyOutput::policy): <p>A structure that contains details about the updated policy, showing the requested changes.</p>
    /// - On failure, responds with [`SdkError<UpdatePolicyError>`](crate::operation::update_policy::UpdatePolicyError)
    pub fn update_policy(&self) -> crate::operation::update_policy::builders::UpdatePolicyFluentBuilder {
        crate::operation::update_policy::builders::UpdatePolicyFluentBuilder::new(self.handle.clone())
    }
}