Module Values.GetResourcePolicyResponseSource

Retrieves the resource policy document attached to a given resource. Cross-account use: No. You cannot perform this operation on an CloudHSM resource in a different Amazon Web Services account.

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

    The policy attached to a resource.

    *)
}
Sourcetype nonrec error = [
  1. | `CloudHsmAccessDeniedException of CloudHsmAccessDeniedException.t
  2. | `CloudHsmInternalFailureException of CloudHsmInternalFailureException.t
  3. | `CloudHsmInvalidRequestException of CloudHsmInvalidRequestException.t
  4. | `CloudHsmResourceNotFoundException of CloudHsmResourceNotFoundException.t
  5. | `CloudHsmServiceException of CloudHsmServiceException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?policy:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `CloudHsmAccessDeniedException of CloudHsmAccessDeniedException.t | `CloudHsmInternalFailureException of CloudHsmInternalFailureException.t | `CloudHsmInvalidRequestException of CloudHsmInvalidRequestException.t | `CloudHsmResourceNotFoundException of CloudHsmResourceNotFoundException.t | `CloudHsmServiceException of CloudHsmServiceException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `CloudHsmAccessDeniedException of CloudHsmAccessDeniedException.t | `CloudHsmInternalFailureException of CloudHsmInternalFailureException.t | `CloudHsmInvalidRequestException of CloudHsmInvalidRequestException.t | `CloudHsmResourceNotFoundException of CloudHsmResourceNotFoundException.t | `CloudHsmServiceException of CloudHsmServiceException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ResourcePolicy.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