aws_sdk_quicksight/client/
update_iam_policy_assignment.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 [`UpdateIAMPolicyAssignment`](crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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>
9    ///   - [`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>
10    ///   - [`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>
11    ///   - [`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>
12    /// - On success, responds with [`UpdateIamPolicyAssignmentOutput`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput) with field(s):
13    ///   - [`assignment_name(Option<String>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::assignment_name): <p>The name of the assignment or rule.</p>
14    ///   - [`assignment_id(Option<String>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::assignment_id): <p>The ID of the assignment.</p>
15    ///   - [`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>
16    ///   - [`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>
17    ///   - [`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>
18    ///   - [`request_id(Option<String>)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::request_id): <p>The Amazon Web Services request ID for this operation.</p>
19    ///   - [`status(i32)`](crate::operation::update_iam_policy_assignment::UpdateIamPolicyAssignmentOutput::status): <p>The HTTP status of the request.</p>
20    /// - On failure, responds with [`SdkError<UpdateIAMPolicyAssignmentError>`](crate::operation::update_iam_policy_assignment::UpdateIAMPolicyAssignmentError)
21    pub fn update_iam_policy_assignment(&self) -> crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder {
22        crate::operation::update_iam_policy_assignment::builders::UpdateIAMPolicyAssignmentFluentBuilder::new(self.handle.clone())
23    }
24}