Module Smaws_Client_MediaStore.GetCorsPolicy

Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.

To use this operation, you must have permission to perform the MediaStore:GetCorsPolicy action. By default, the container owner has this permission and can grant it to others.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `ContainerInUseException of Types.container_in_use_exception | `ContainerNotFoundException of Types.container_not_found_exception | `CorsPolicyNotFoundException of Types.cors_policy_not_found_exception | `InternalServerError of Types.internal_server_error ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.get_cors_policy_input -> (Types.get_cors_policy_output, [> Smaws_Lib.Protocols.AwsJson.error | `ContainerInUseException of Types.container_in_use_exception | `ContainerNotFoundException of Types.container_not_found_exception | `CorsPolicyNotFoundException of Types.cors_policy_not_found_exception | `InternalServerError of Types.internal_server_error ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.get_cors_policy_input -> (Types.get_cors_policy_output Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `ContainerInUseException of Types.container_in_use_exception | `ContainerNotFoundException of Types.container_not_found_exception | `CorsPolicyNotFoundException of Types.cors_policy_not_found_exception | `InternalServerError of Types.internal_server_error ] * Smaws_Lib.Response.metadata) Stdlib.result