Smaws_Client_Glue.GetResourcePoliciesRetrieves the resource policies set on individual resources by Resource Access Manager during cross-account permission grants. Also retrieves the Data Catalog resource policy.
If you enabled metadata encryption in Data Catalog settings, and you do not have permission on the KMS key, the operation can't return the Data Catalog resource policy.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `GlueEncryptionException of Types.glue_encryption_exception
| `InternalServiceException of Types.internal_service_exception
| `InvalidInputException of Types.invalid_input_exception
| `OperationTimeoutException of Types.operation_timeout_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.get_resource_policies_request ->
(Types.get_resource_policies_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `GlueEncryptionException of Types.glue_encryption_exception
| `InternalServiceException of Types.internal_service_exception
| `InvalidInputException of Types.invalid_input_exception
| `OperationTimeoutException of Types.operation_timeout_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.get_resource_policies_request ->
(Types.get_resource_policies_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `GlueEncryptionException of Types.glue_encryption_exception
| `InternalServiceException of Types.internal_service_exception
| `InvalidInputException of Types.invalid_input_exception
| `OperationTimeoutException of Types.operation_timeout_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result