Module Values.GetResourcePolicyResponseSource

Retrieves the JSON text of the resource-based policy document attached to the CloudTrail event data store, dashboard, or channel.

Sourcetype nonrec t = {
  1. resourceArn : ResourceArn.t option;
    (*

    The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to resource-based policy. Example event data store ARN format: arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE Example dashboard ARN format: arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash Example channel ARN format: arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890

    *)
  2. resourcePolicy : ResourcePolicy.t option;
    (*

    A JSON-formatted string that contains the resource-based policy attached to the CloudTrail event data store, dashboard, or channel.

    *)
  3. delegatedAdminResourcePolicy : ResourcePolicy.t option;
    (*

    The default resource-based policy that is automatically generated for the delegated administrator of an Organizations organization. This policy will be evaluated in tandem with any policy you submit for the resource. For more information about this policy, see Default resource policy for delegated administrators.

    *)
}
Sourcetype nonrec error = [
  1. | `OperationNotPermittedException of OperationNotPermittedException.t
  2. | `ResourceARNNotValidException of ResourceARNNotValidException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ResourcePolicyNotFoundException of ResourcePolicyNotFoundException.t
  5. | `ResourceTypeNotSupportedException of ResourceTypeNotSupportedException.t
  6. | `UnsupportedOperationException of UnsupportedOperationException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?resourceArn:??? -> ?resourcePolicy:??? -> ?delegatedAdminResourcePolicy:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `OperationNotPermittedException of unit | `ResourceARNNotValidException of unit | `ResourceNotFoundException of unit | `ResourcePolicyNotFoundException of unit | `ResourceTypeNotSupportedException of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationException of unit ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `OperationNotPermittedException of unit | `ResourceARNNotValidException of unit | `ResourceNotFoundException of unit | `ResourcePolicyNotFoundException of unit | `ResourceTypeNotSupportedException of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationException of unit ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ResourceArn.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