CloudTrail.Trail
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-insightselector.html
and advanced_field_selector = {
field : string;
equals : string list option;
not_starts_with : string list option;
not_ends_with : string list option;
starts_with : string list option;
ends_with : string list option;
not_equals : string list option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-advancedfieldselector.html
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-dataresource.html
and advanced_event_selector = {
field_selectors : advanced_field_selector list;
name : string option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-advancedeventselector.html
and event_selector = {
include_management_events : bool option;
read_write_type : string option;
exclude_management_event_sources : string list option;
data_resources : data_resource list option;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudtrail-trail-eventselector.html
type properties = {
include_global_service_events : bool option;
event_selectors : event_selector list option;
kms_key_id : string option;
cloud_watch_logs_role_arn : string option;
s3_key_prefix : string option;
advanced_event_selectors : advanced_event_selector list option;
trail_name : string option;
is_organization_trail : bool option;
insight_selectors : insight_selector list option;
cloud_watch_logs_log_group_arn : string option;
sns_topic_name : string option;
is_multi_region_trail : bool option;
s3_bucket_name : string;
enable_log_file_validation : bool option;
is_logging : bool;
}
see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudtrail-trail.html;
val make_properties :
?include_global_service_events:bool ->
?event_selectors:event_selector list ->
?kms_key_id:string ->
?cloud_watch_logs_role_arn:string ->
?s3_key_prefix:string ->
?advanced_event_selectors:advanced_event_selector list ->
?trail_name:string ->
?is_organization_trail:bool ->
?insight_selectors:insight_selector list ->
?cloud_watch_logs_log_group_arn:string ->
?sns_topic_name:string ->
?is_multi_region_trail:bool ->
s3_bucket_name:string ->
?enable_log_file_validation:bool ->
?tags:tag list ->
is_logging:bool ->
unit ->
properties
val make_tag : value:string -> key:string -> unit -> tag
val make_insight_selector : ?insight_type:string -> unit -> insight_selector
val make_advanced_field_selector :
field:string ->
?equals:string list ->
?not_starts_with:string list ->
?not_ends_with:string list ->
?starts_with:string list ->
?ends_with:string list ->
?not_equals:string list ->
unit ->
advanced_field_selector
val make_data_resource :
type_:string ->
?values:string list ->
unit ->
data_resource
val make_advanced_event_selector :
field_selectors:advanced_field_selector list ->
?name:string ->
unit ->
advanced_event_selector
val make_event_selector :
?include_management_events:bool ->
?read_write_type:string ->
?exclude_management_event_sources:string list ->
?data_resources:data_resource list ->
unit ->
event_selector
val yojson_of_tag : tag -> [> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_insight_selector :
insight_selector ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_advanced_field_selector :
advanced_field_selector ->
Yojson.Safe.t
val yojson_of_data_resource : data_resource -> Yojson.Safe.t
val yojson_of_advanced_event_selector :
advanced_event_selector ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_event_selector :
event_selector ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val yojson_of_properties :
properties ->
[> `Assoc of (string * Yojson.Safe.t) list ]
val create_attributes : string -> attributes