1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateIAMPolicyAssignment`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::set_aws_account_id):<br>required: **true**<br><p>The ID of the Amazon Web Services account that contains the IAM policy assignment. </p><br>
    ///   - [`assignment_name(impl Into<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::assignment_name) / [`set_assignment_name(Option<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::set_assignment_name):<br>required: **true**<br><p>The name of the assignment, also called a rule. The name must be unique within the Amazon Web Services account.</p><br>
    ///   - [`namespace(impl Into<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::namespace) / [`set_namespace(Option<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::set_namespace):<br>required: **true**<br><p>The namespace of the assignment.</p><br>
    ///   - [`assignment_status(AssignmentStatus)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::assignment_status) / [`set_assignment_status(Option<AssignmentStatus>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::set_assignment_status):<br>required: **false**<br><p>The status of the assignment. Possible values are as follows:</p>  <ul>   <li> <p> <code>ENABLED</code> - Anything specified in this assignment is used when creating the data source.</p> </li>   <li> <p> <code>DISABLED</code> - This assignment isn't used when creating the data source.</p> </li>   <li> <p> <code>DRAFT</code> - This assignment is an unfinished draft and isn't used when creating the data source.</p> </li>  </ul><br>
    ///   - [`policy_arn(impl Into<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::policy_arn) / [`set_policy_arn(Option<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::set_policy_arn):<br>required: **false**<br><p>The ARN for the IAM policy to apply to the Amazon QuickSight users and groups specified in this assignment.</p><br>
    ///   - [`identities(impl Into<String>, Vec::<String>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::identities) / [`set_identities(Option<HashMap::<String, Vec::<String>>>)`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::set_identities):<br>required: **false**<br><p>The Amazon QuickSight users, groups, or both that you want to assign the policy to.</p><br>
    /// - On success, responds with [`UpdateIamPolicyAssignmentOutput`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput) with field(s):
    ///   - [`assignment_name(Option<String>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::assignment_name): <p>The name of the assignment or rule.</p>
    ///   - [`assignment_id(Option<String>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::assignment_id): <p>The ID of the assignment.</p>
    ///   - [`policy_arn(Option<String>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::policy_arn): <p>The ARN for the IAM policy applied to the Amazon QuickSight users and groups specified in this assignment.</p>
    ///   - [`identities(Option<HashMap::<String, Vec::<String>>>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::identities): <p>The Amazon QuickSight users, groups, or both that the IAM policy is assigned to.</p>
    ///   - [`assignment_status(Option<AssignmentStatus>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::assignment_status): <p>The status of the assignment. Possible values are as follows:</p>  <ul>   <li> <p> <code>ENABLED</code> - Anything specified in this assignment is used when creating the data source.</p> </li>   <li> <p> <code>DISABLED</code> - This assignment isn't used when creating the data source.</p> </li>   <li> <p> <code>DRAFT</code> - This assignment is an unfinished draft and isn't used when creating the data source.</p> </li>  </ul>
    ///   - [`request_id(Option<String>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
    ///   - [`status(i32)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::status): <p>The HTTP status of the request.</p>
    /// - On failure, responds with [`SdkError<UpdateIAMPolicyAssignmentError>`](crate::operation::update_iam_policy_assignment::UpdateIAMPolicyAssignmentError)
    pub fn update_iam_policy_assignment(&self) -> crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder {
        crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::new(self.handle.clone())
    }
}