aws_ec2_traffic_mirror_session

Nivis Nix constructor for the aws_ec2_traffic_mirror_session 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,
  network_interface_id,
  session_number,
  traffic_mirror_filter_id,
  traffic_mirror_target_id,
  description ? null,
  id ? null,
  packet_length ? null,
  region ? null,
  tags ? null,
  tags_all ? null,
  virtual_network_id ? null,
  overrides ? {}
}
Required arguments
  • network_interface_id
  • session_number
  • traffic_mirror_filter_id
  • traffic_mirror_target_id
Optional arguments
  • description (defaults to null)
  • id (defaults to null)
  • packet_length (defaults to null)
  • region (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • virtual_network_id (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • owner_id
Example
aws_ec2_traffic_mirror_session {
  name = "ec2_traffic_mirror_session";
  network_interface_id = …;  # required
  session_number = …;  # required
  traffic_mirror_filter_id = …;  # required
  traffic_mirror_target_id = …;  # required
}

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