Skip to content

PutPolicyAssignmentRequest

Source code in docs_src/capo_quicksight/types/put_policy_assignment_request.py
class PutPolicyAssignmentRequest(TypedDict, closed=True):
    account_id: "capo_quicksight.types.aws_account_id.AwsAccountId"
    """<p>The ID of the Amazon Web Services account that contains the policy and the principal.</p>"""
    policy_arn: "capo_quicksight.types.policy_arn.PolicyArn"
    """<p>The Amazon Resource Name (ARN) of the policy to assign.</p>"""
    principal_arn: "capo_quicksight.types.principal_arn.PrincipalArn"
    """<p>The ARN of the user, group, or account to assign the policy to.</p>"""
    existing_policy_arn: NotRequired["capo_quicksight.types.policy_arn.PolicyArn"]
    """<p>The ARN of the policy that you expect the principal to have before this request. If the principal has a different policy of the same type, or no policy of that type, the request fails with a <code>ConflictException</code> and makes no change. If you don't specify a value, the operation doesn't check the existing assignment.</p>"""
    revision: NotRequired["capo_quicksight.types.revision.Revision"]
    """<p>The revision of the assignment from your most recent read. If the assignment has changed since that revision, the request fails with a <code>ConflictException</code>. If you don't specify a value, the operation doesn't check the revision.</p>"""

account_id instance-attribute

account_id: AwsAccountId

The ID of the Amazon Web Services account that contains the policy and the principal.

existing_policy_arn instance-attribute

existing_policy_arn: NotRequired[PolicyArn]

The ARN of the policy that you expect the principal to have before this request. If the principal has a different policy of the same type, or no policy of that type, the request fails with a ConflictException and makes no change. If you don't specify a value, the operation doesn't check the existing assignment.

policy_arn instance-attribute

policy_arn: PolicyArn

The Amazon Resource Name (ARN) of the policy to assign.

principal_arn instance-attribute

principal_arn: PrincipalArn

The ARN of the user, group, or account to assign the policy to.

revision instance-attribute

revision: NotRequired[Revision]

The revision of the assignment from your most recent read. If the assignment has changed since that revision, the request fails with a ConflictException. If you don't specify a value, the operation doesn't check the revision.