Smaws_Client_OpenSearchServerless.CreateAccessPolicyCreates a data access policy for OpenSearch Serverless. Access policies limit access to collections and the resources within them, and allow a user to access that data irrespective of the access mechanism or network source. For more information, see Data access control for Amazon OpenSearch Serverless.
val error_to_string : 
  [ Smaws_Lib.Protocols.AwsJson.error
  | `ConflictException of Types.conflict_exception
  | `InternalServerException of Types.internal_server_exception
  | `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
  | `ValidationException of Types.validation_exception ] ->
  stringval request : 
  'http_type Smaws_Lib.Context.t ->
  Types.create_access_policy_request ->
  (Types.create_access_policy_response,
    [> Smaws_Lib.Protocols.AwsJson.error
    | `ConflictException of Types.conflict_exception
    | `InternalServerException of Types.internal_server_exception
    | `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
    | `ValidationException of Types.validation_exception ])
    Stdlib.result