analyze_access
¶
analyze_access(
principal: DataLakePrincipal,
resource: Resource,
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
groups: Optional[AnalyzeAccessGroupList] = None,
context_attributes: Optional[ContextAttributesList] = None,
) -> AnalyzeAccessResponse
Returns the effective access of a principal on a resource, and the Lake Formation permissions and row-level security policies that contributed to it.
Parameters:
-
principal(DataLakePrincipal) –The principal whose access to analyze.
-
groups(Optional[AnalyzeAccessGroupList], default:None) –For an IAM Identity Center principal, the Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that its session uses. Only one role is supported.
-
context_attributes(Optional[ContextAttributesList], default:None) –Attributes that override the principal's attributes for the analysis. You can specify up to 50 attributes. If you don't specify any, the analysis uses the principal's existing attributes.
-
resource(Resource) –The resource on which to analyze access.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
EntityNotFoundException–A specified entity does not exist.
-
FederationSourceException–A generic exception encapsulating exceptions from the federation source that are not actionable by query engines.
-
FederationSourceRetryableException–The federation source failed. This failure might be temporary. Retry the request.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.