// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListPoliciesForTarget`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`target_id(impl Into<String>)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::target_id) / [`set_target_id(Option<String>)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::set_target_id):<br>required: **true**<br><p>ID for the root, organizational unit, or account whose policies you want to list.</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>
/// - [`filter(PolicyType)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::filter) / [`set_filter(Option<PolicyType>)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::set_filter):<br>required: **true**<br><p>The type of policy that you want to include in the returned list. You must 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> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_upgrade_rollout.html">UPGRADE_ROLLOUT_POLICY</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_inspector.html">INSPECTOR_POLICY</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_bedrock.html">BEDROCK_POLICY</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_s3.html">S3_POLICY</a></p></li> <li> <p><a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_network_security_director.html">NETWORK_SECURITY_DIRECTOR_POLICY</a></p></li> </ul><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::set_next_token):<br>required: **false**<br><p>The parameter for receiving additional results if you receive a <code>NextToken</code> response in a previous request. A <code>NextToken</code> response indicates that more output is available. Set this parameter to the value of the previous call's <code>NextToken</code> response to indicate where the output should continue from.</p><br>
/// - [`max_results(i32)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return in the response. If more results exist than the specified <code>MaxResults</code> value, a token is included in the response so that you can retrieve the remaining results.</p><br>
/// - On success, responds with [`ListPoliciesForTargetOutput`](crate::operation::list_policies_for_target::ListPoliciesForTargetOutput) with field(s):
/// - [`policies(Option<Vec::<PolicySummary>>)`](crate::operation::list_policies_for_target::ListPoliciesForTargetOutput::policies): <p>The list of policies that match the criteria in the request.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_policies_for_target::ListPoliciesForTargetOutput::next_token): <p>If present, indicates that more output is available than is included in the current response. Use this value in the <code>NextToken</code> request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the <code>NextToken</code> response element comes back as <code>null</code>.</p>
/// - On failure, responds with [`SdkError<ListPoliciesForTargetError>`](crate::operation::list_policies_for_target::ListPoliciesForTargetError)
pub fn list_policies_for_target(&self) -> crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder {
crate::operation::list_policies_for_target::builders::ListPoliciesForTargetFluentBuilder::new(self.handle.clone())
}
}