update_resource_permissions
async
¶
update_resource_permissions(
aws_account_id: AwsAccountId,
role_type: ServiceRoleType,
customer_managed_role_arn: RoleArn,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
) -> UpdateResourcePermissionsResponse
Updates the service role configuration that Amazon Quick Sight uses to access resources in your Amazon Web Services account. To use this operation, you must have the quicksight:UpdateResourcePermissions and iam:PassRole permissions.
Call this operation in the Amazon Web Services Region where your Amazon Quick Sight account is registered (the home Region). You can switch from a role managed by Amazon Quick Sight to a customer-managed role, or replace one customer-managed role with another. You can't use this operation to switch back to a role managed by Amazon Quick Sight.
Parameters:
-
aws_account_id(AwsAccountId) –The ID of the Amazon Web Services account whose service role configuration you want to update.
-
role_type(ServiceRoleType) –The type of service role that you want Amazon Quick Sight to use. The only supported value for this operation is
CUSTOMER_MANAGED. Requests that specifyQUICKSIGHT_MANAGEDare rejected. -
customer_managed_role_arn(RoleArn) –The ARN of the customer-managed role that you want Amazon Quick Sight to use. To use this operation, you must have the
iam:PassRolepermission for the role.Configure the role as follows:
-
The role must belong to the Amazon Web Services account specified by
AwsAccountId. -
Configure the role trust policy to allow the Amazon Quick Sight service principal to call
sts:AssumeRole. -
Attach a permissions policy that allows access to the resources that you want Amazon Quick Sight to use.
-
To use features that rely on session tags, configure the role trust policy to allow the Amazon Quick Sight service principal to call
sts:TagSession.
If the role doesn't exist or its trust policy doesn't allow
sts:AssumeRole, the request returns anAccessDeniedException.When you call this operation, Amazon Quick Sight attempts to assume the role with session tags and records whether the attempt succeeds. If you later add or remove
sts:TagSessionfrom the trust policy, call this operation again with the same role ARN to refresh the stored capability. -
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.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
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
22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 | |