Module Values.PutResourcePolicyResultSource

Sets the resource policy to grant one or more Amazon Web Services services and accounts permissions to access X-Ray. Each resource policy will be associated with a specific Amazon Web Services account. Each Amazon Web Services account can have a maximum of 5 resource policies, and each policy name must be unique within that account. The maximum size of each resource policy is 5KB.

Sourcetype nonrec t = {
  1. resourcePolicy : ResourcePolicy.t option;
    (*

    The resource policy document, as provided in the PutResourcePolicyRequest.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidPolicyRevisionIdException of InvalidPolicyRevisionIdException.t
  2. | `LockoutPreventionException of LockoutPreventionException.t
  3. | `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t
  4. | `PolicyCountLimitExceededException of PolicyCountLimitExceededException.t
  5. | `PolicySizeLimitExceededException of PolicySizeLimitExceededException.t
  6. | `ThrottledException of ThrottledException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?resourcePolicy:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidPolicyRevisionIdException of InvalidPolicyRevisionIdException.t | `LockoutPreventionException of LockoutPreventionException.t | `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t | `PolicyCountLimitExceededException of PolicyCountLimitExceededException.t | `PolicySizeLimitExceededException of PolicySizeLimitExceededException.t | `ThrottledException of ThrottledException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidPolicyRevisionIdException of InvalidPolicyRevisionIdException.t | `LockoutPreventionException of LockoutPreventionException.t | `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t | `PolicyCountLimitExceededException of PolicyCountLimitExceededException.t | `PolicySizeLimitExceededException of PolicySizeLimitExceededException.t | `ThrottledException of ThrottledException.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 * [> `String of PolicyName.t | `Timestamp of Timestamp.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