update_iam_policy_assignment
async
¶
update_iam_policy_assignment(
aws_account_id: AwsAccountId,
assignment_name: IAMPolicyAssignmentName,
namespace: Namespace,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
assignment_status: Optional[AssignmentStatus] = None,
policy_arn: Optional[Arn] = None,
identities: Optional[IdentityMap] = None,
) -> UpdateIAMPolicyAssignmentResponse
Updates an existing IAM policy assignment. This operation updates only the optional parameter or parameters that are specified in the request. This overwrites all of the users included in Identities.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account that contains the IAM policy assignment.
-
assignment_name(IAMPolicyAssignmentName) –The name of the assignment, also called a rule. The name must be unique within the Amazon Web Services account.
-
namespace(Namespace) –The namespace of the assignment.
-
assignment_status(Optional[AssignmentStatus], default:None) –The status of the assignment. Possible values are as follows:
-
ENABLED- Anything specified in this assignment is used when creating the data source. -
DISABLED- This assignment isn't used when creating the data source. -
DRAFT- This assignment is an unfinished draft and isn't used when creating the data source.
-
-
policy_arn(Optional[Arn], default:None) –The ARN for the IAM policy to apply to the Amazon Quick Sight users and groups specified in this assignment.
-
identities(Optional[IdentityMap], default:None) –The Amazon Quick Sight users, groups, or both that you want to assign the policy to.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConcurrentUpdatingException–A resource is already in a state that indicates an operation is happening that must complete before a new update can be applied.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 | |