Module Values.SimulatePolicyResponseSource

Contains the response to a successful SimulatePrincipalPolicy or SimulateCustomPolicy request.

Sourcetype simulateCustomPolicyResult = {
  1. evaluationResults : EvaluationResultsListType.t option;
    (*

    The results of the simulation.

    *)
  2. isTruncated : BooleanType.t option;
    (*

    A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.

    *)
  3. marker : ResponseMarkerType.t option;
    (*

    When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

    *)
}
Sourceand responseMetaData = unit
Sourceand t = {
  1. simulateCustomPolicyResult : simulateCustomPolicyResult;
  2. responseMetaData : responseMetaData;
}
Sourcetype error = [
  1. | `InvalidInputException of InvalidInputException.t
  2. | `PolicyEvaluationException of PolicyEvaluationException.t
  3. | `Unknown_operation_error of string * string option
]
Sourceval context_ : string
Sourceval make : ?evaluationResults:??? -> ?isTruncated:??? -> ?marker:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidInputException of InvalidInputException.t | `PolicyEvaluationException of PolicyEvaluationException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidInputException of InvalidInputException.t | `PolicyEvaluationException of PolicyEvaluationException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `Boolean of BooleanType.t | `List of [> `Structure of (string * [> `Enum of string | `List of [> `String of ContextKeyNameType.t | `Structure of (string * [> `Enum of string | `List of [> `String of ContextKeyNameType.t | `Structure of (string * [> `Enum of string | `String of PolicyIdentifierType.t | `Structure of (string * [> `Integer of LineNumber.t ]) list ]) list ] list | `Map of ([> `String of EvalDecisionSourceType.t ] * [> `Enum of string ]) list | `String of PolicyIdentifierType.t | `Structure of (string * [> `Boolean of BooleanType.t | `Integer of LineNumber.t ]) list ]) list ] list | `Map of ([> `String of EvalDecisionSourceType.t ] * [> `Enum of string ]) list | `String of ActionNameType.t | `Structure of (string * [> `Boolean of BooleanType.t ]) list ]) list ] list | `String of ResponseMarkerType.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t