Lists the row-level security policies in the Data Catalog.
Parameters:
-
max_results
(Optional[PageSize], default:
None
)
–
The maximum number of row-level security policies to return in a single response.
-
next_token
(Optional[Token], default:
None
)
–
A continuation token, if this is a continuation call.
Raises:
Source code in docs_src/capo_lakeformation/_services/lake_formation.py
| def list_rls_policies(
self,
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
max_results: Optional["capo_lakeformation.types.page_size.PageSize"] = None,
next_token: Optional["capo_lakeformation.types.token.Token"] = None,
) -> "capo_lakeformation.types.list_rls_policies_response.ListRLSPoliciesResponse":
"""<p>Lists the row-level security policies in the Data Catalog.</p>
Args:
max_results: <p>The maximum number of row-level security policies to return in a single response.</p>
next_token: <p>A continuation token, if this is a continuation call.</p>
Raises:
capo_lakeformation.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
capo_lakeformation.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist.</p>
capo_lakeformation.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_lakeformation.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_lakeformation.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
capo_lakeformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_lakeformation.types.list_rls_policies_request.ListRLSPoliciesRequest]",
) -> OperationResponse[
"capo_lakeformation.types.list_rls_policies_response.ListRLSPoliciesResponse"
]:
import capo_lakeformation._operations.aws_lake_formation.list_rls_policies
output, http_response = (
capo_lakeformation._operations.aws_lake_formation.list_rls_policies.list_rls_policies(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListRLSPolicies")
)
input_: capo_lakeformation.types.list_rls_policies_request.ListRLSPoliciesRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|