get_policy_assignment
¶
get_policy_assignment(
account_id: AwsAccountId,
policy_type: PolicyType,
principal_arn: PrincipalArn,
*,
config_overrides: Optional[QuickSightClientConfig] = 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/quick_sight.py
12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 | |