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
21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 | |