Module Values.PutResourcePolicyResponseSource

Use this operation to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see Using resource-based policies with CloudWatch RUM.

Sourcetype nonrec t = {
  1. policyDocument : String_.t option;
    (*

    The JSON policy document that you specified.

    *)
  2. policyRevisionId : PolicyRevisionId.t option;
    (*

    The policy revision ID information that you specified.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `ConflictException of ConflictException.t
  3. | `InternalServerException of InternalServerException.t
  4. | `InvalidPolicyRevisionIdException of InvalidPolicyRevisionIdException.t
  5. | `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t
  6. | `PolicySizeLimitExceededException of PolicySizeLimitExceededException.t
  7. | `ResourceNotFoundException of ResourceNotFoundException.t
  8. | `ThrottlingException of ThrottlingException.t
  9. | `ValidationException of ValidationException.t
  10. | `Unknown_operation_error of string * string option
]
Sourceval make : ?policyDocument:??? -> ?policyRevisionId:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `InvalidPolicyRevisionIdException of InvalidPolicyRevisionIdException.t | `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t | `PolicySizeLimitExceededException of PolicySizeLimitExceededException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `ConflictException of ConflictException.t | `InternalServerException of InternalServerException.t | `InvalidPolicyRevisionIdException of InvalidPolicyRevisionIdException.t | `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t | `PolicySizeLimitExceededException of PolicySizeLimitExceededException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.t ]) 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