aws_cloudtrail

Nivis Nix constructor for the aws_cloudtrail resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.

Constructor
{
  name,
  s3_bucket_name,
  cloud_watch_logs_group_arn ? null,
  cloud_watch_logs_role_arn ? null,
  enable_log_file_validation ? null,
  enable_logging ? null,
  id ? null,
  include_global_service_events ? null,
  is_multi_region_trail ? null,
  is_organization_trail ? null,
  kms_key_id ? null,
  cfg_name ? null,
  recursive_logging ? null,
  region ? null,
  s3_key_prefix ? null,
  sns_topic_name ? null,
  tags ? null,
  tags_all ? null,
  advanced_event_selector ? null,
  event_selector ? null,
  insight_selector ? null,
  overrides ? {}
}
Required arguments
  • s3_bucket_name
Optional arguments
  • cloud_watch_logs_group_arn (defaults to null)
  • cloud_watch_logs_role_arn (defaults to null)
  • enable_log_file_validation (defaults to null)
  • enable_logging (defaults to null)
  • id (defaults to null)
  • include_global_service_events (defaults to null)
  • is_multi_region_trail (defaults to null)
  • is_organization_trail (defaults to null)
  • kms_key_id (defaults to null)
  • cfg_name (defaults to null)
  • recursive_logging (defaults to null)
  • region (defaults to null)
  • s3_key_prefix (defaults to null)
  • sns_topic_name (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • advanced_event_selector (defaults to null)
  • event_selector (defaults to null)
  • insight_selector (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • home_region
  • sns_topic_arn
Example
aws_cloudtrail {
  name = "cloudtrail";
  s3_bucket_name = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.