Module Values.PutResourcePolicyResponseSource

Attaches a resource-based permission policy to a CloudTrail event data store, dashboard, or channel. For more information about resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide.

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

    The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the 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;
    (*

    The JSON-formatted string of the Amazon Web Services 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. | `ConflictException of ConflictException.t
  2. | `OperationNotPermittedException of OperationNotPermittedException.t
  3. | `ResourceARNNotValidException of ResourceARNNotValidException.t
  4. | `ResourceNotFoundException of ResourceNotFoundException.t
  5. | `ResourcePolicyNotValidException of ResourcePolicyNotValidException.t
  6. | `ResourceTypeNotSupportedException of ResourceTypeNotSupportedException.t
  7. | `UnsupportedOperationException of UnsupportedOperationException.t
  8. | `Unknown_operation_error of string * string option
]
Sourceval make : ?resourceArn:??? -> ?resourcePolicy:??? -> ?delegatedAdminResourcePolicy:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `ConflictException of unit | `OperationNotPermittedException of unit | `ResourceARNNotValidException of unit | `ResourceNotFoundException of unit | `ResourcePolicyNotValidException of unit | `ResourceTypeNotSupportedException of unit | `Unknown_operation_error of string * string option | `UnsupportedOperationException of unit ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `ConflictException of unit | `OperationNotPermittedException of unit | `ResourceARNNotValidException of unit | `ResourceNotFoundException of unit | `ResourcePolicyNotValidException 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