SecurityGroupRuleArgs constructor

const SecurityGroupRuleArgs({
  1. Input<List<String>?>? cidrBlocks,
  2. Input<String?>? description,
  3. required Input<int> fromPort,
  4. Input<List<String>?>? ipv6CidrBlocks,
  5. Input<List<String>?>? prefixListIds,
  6. required Input protocol,
  7. Input<String?>? region,
  8. required Input<String> securityGroupId,
  9. Input<bool?>? self,
  10. Input<String?>? sourceSecurityGroupId,
  11. required Input<int> toPort,
  12. required Input<String> type,
})

Creates a new SecurityGroupRuleArgs. cidrBlocks List of CIDR blocks. Cannot be specified with sourceSecurityGroupId or self. description Description of the rule. fromPort Start port (or ICMP type number if protocol is "icmp" or "icmpv6"). ipv6CidrBlocks List of IPv6 CIDR blocks. Cannot be specified with sourceSecurityGroupId or self. prefixListIds List of Prefix List IDs. protocol Protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number region Region where this resource will be managed. Defaults to the Region set in the provider configuration. securityGroupId Security group to apply this rule to. self Whether the security group itself will be added as a source to this ingress rule. Cannot be specified with cidrBlocks, ipv6CidrBlocks, or sourceSecurityGroupId. sourceSecurityGroupId Security group id to allow access to/from, depending on the type. Cannot be specified with cidrBlocks, ipv6CidrBlocks, or self. toPort End port (or ICMP code if protocol is "icmp"). type Type of rule being created. Valid options are ingress (inbound)

Implementation

const SecurityGroupRuleArgs({
  this.cidrBlocks,
  this.description,
  required this.fromPort,
  this.ipv6CidrBlocks,
  this.prefixListIds,
  required this.protocol,
  this.region,
  required this.securityGroupId,
  this.self,
  this.sourceSecurityGroupId,
  required this.toPort,
  required this.type,
});