Module Smaws_Client_CloudTrail.PutResourcePolicy

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel. For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide.

val request : Smaws_Lib.Context.t -> Types.put_resource_policy_request -> (Types.put_resource_policy_response, [> Smaws_Lib.Protocols.AwsJson.error | `ConflictException of Types.conflict_exception | `OperationNotPermittedException of Types.operation_not_permitted_exception | `ResourceARNNotValidException of Types.resource_arn_not_valid_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourcePolicyNotValidException of Types.resource_policy_not_valid_exception | `ResourceTypeNotSupportedException of Types.resource_type_not_supported_exception | `UnsupportedOperationException of Types.unsupported_operation_exception ]) Stdlib.result