aws_security_group_ruleNivis 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_portprotocolsecurity_group_idto_porttype
Optional arguments
cidr_blocks(defaults tonull)description(defaults tonull)id(defaults tonull)ipv6_cidr_blocks(defaults tonull)prefix_list_ids(defaults tonull)region(defaults tonull)self(defaults tonull)source_security_group_id(defaults tonull)timeouts(defaults tonull)
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.