alicloud_security_group_rule

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

Constructor
{
  name,
  ip_protocol,
  security_group_id,
  type,
  cidr_ip ? null,
  description ? null,
  id ? null,
  ipv6_cidr_ip ? null,
  nic_type ? null,
  policy ? null,
  port_range ? null,
  prefix_list_id ? null,
  priority ? null,
  source_group_owner_account ? null,
  source_group_owner_id ? null,
  source_security_group_id ? null,
  overrides ? {}
}
Required arguments
  • ip_protocol
  • security_group_id
  • type
Optional arguments
  • cidr_ip (defaults to null)
  • description (defaults to null)
  • id (defaults to null)
  • ipv6_cidr_ip (defaults to null)
  • nic_type (defaults to null)
  • policy (defaults to null)
  • port_range (defaults to null)
  • prefix_list_id (defaults to null)
  • priority (defaults to null)
  • source_group_owner_account (defaults to null)
  • source_group_owner_id (defaults to null)
  • source_security_group_id (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • security_group_rule_id
Example
alicloud_security_group_rule {
  name = "security_group_rule";
  ip_protocol = …;  # required
  security_group_id = …;  # required
  type = …;  # required
}

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