update_resource_permissions
¶
update_resource_permissions(
aws_account_id: AwsAccountId,
role_type: ServiceRoleType,
customer_managed_role_arn: RoleArn,
*,
config_overrides: Optional[QuickSightClientConfig] = 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/quick_sight.py
22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 | |