Module Smaws_Client_CloudTrail.GetResourcePolicy

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail event data store, dashboard, or channel.

val request : Smaws_Lib.Context.t -> Types.get_resource_policy_request -> (Types.get_resource_policy_response, [> Smaws_Lib.Protocols.AwsJson.error | `OperationNotPermittedException of Types.operation_not_permitted_exception | `ResourceARNNotValidException of Types.resource_arn_not_valid_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourcePolicyNotFoundException of Types.resource_policy_not_found_exception | `ResourceTypeNotSupportedException of Types.resource_type_not_supported_exception | `UnsupportedOperationException of Types.unsupported_operation_exception ]) Stdlib.result