get_policy_assignment
async
¶
get_policy_assignment(
account_id: AwsAccountId,
policy_type: PolicyType,
principal_arn: PrincipalArn,
*,
config_overrides: Optional[AsyncQuickSightClientConfig] = None,
) -> GetPolicyAssignmentResponse
Describes the policy of the specified type that an Amazon Quick Sight principal has. If the principal has no policy of that type, the response contains no policy details.
Parameters:
-
account_id(AwsAccountId) –The ID of the Amazon Web Services account that contains the principal.
-
policy_type(PolicyType) –The type of policy to describe. Choose one of the following values:
-
LIMITS_PROFILE– A limits profile that sets resource usage limits. -
CUSTOM_PERMISSIONS– A custom permissions profile that restricts the capabilities available to a principal.
-
-
principal_arn(PrincipalArn) –The ARN of the user, group, or account.
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.
-
ResourceNotFoundException–One or more resources can't be found.
-
ThrottlingException–Access is throttled.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 | |