aws_security_group_rule

Nivis Nix constructor for the aws_security_group_rule 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,
  from_port,
  protocol,
  security_group_id,
  to_port,
  type,
  cidr_blocks ? null,
  description ? null,
  id ? null,
  ipv6_cidr_blocks ? null,
  prefix_list_ids ? null,
  region ? null,
  self ? null,
  source_security_group_id ? null,
  timeouts ? null,
  overrides ? {}
}
Required arguments
  • from_port
  • protocol
  • security_group_id
  • to_port
  • type
Optional arguments
  • cidr_blocks (defaults to null)
  • description (defaults to null)
  • id (defaults to null)
  • ipv6_cidr_blocks (defaults to null)
  • prefix_list_ids (defaults to null)
  • region (defaults to null)
  • self (defaults to null)
  • source_security_group_id (defaults to null)
  • timeouts (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • security_group_rule_id
Example
aws_security_group_rule {
  name = "security_group_rule";
  from_port = …;  # required
  protocol = …;  # required
  security_group_id = …;  # required
  to_port = …;  # required
  type = …;  # required
}

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