SecurityGroupRuleArgs class

The set of arguments for SecurityGroupRule. The set of arguments for SecurityGroupRule.

Constructors

SecurityGroupRuleArgs({Input<List<String>?>? cidrBlocks, Input<String?>? description, required Input<int> fromPort, Input<List<String>?>? ipv6CidrBlocks, Input<List<String>?>? prefixListIds, required Input protocol, Input<String?>? region, required Input<String> securityGroupId, Input<bool?>? self, Input<String?>? sourceSecurityGroupId, required Input<int> toPort, 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)
const
SecurityGroupRuleArgs.fromMap(Map<String, dynamic> map)
factory

Properties

cidrBlocks → Input<List<String>?>?
List of CIDR blocks. Cannot be specified with sourceSecurityGroupId or self.
final
description → Input<String?>?
Description of the rule.
final
fromPort → Input<int>
Start port (or ICMP type number if protocol is "icmp" or "icmpv6").
final
hashCode → int
The hash code for this object.
no setterinherited
ipv6CidrBlocks → Input<List<String>?>?
List of IPv6 CIDR blocks. Cannot be specified with sourceSecurityGroupId or self.
final
prefixListIds → Input<List<String>?>?
List of Prefix List IDs.
final
protocol → Input
Protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration. > Note Although cidrBlocks, ipv6CidrBlocks, prefixListIds, and sourceSecurityGroupId are all marked as optional, you must provide one of them in order to configure the source of the traffic.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
securityGroupId → Input<String>
Security group to apply this rule to.
final
self → Input<bool?>?
Whether the security group itself will be added as a source to this ingress rule. Cannot be specified with cidrBlocks, ipv6CidrBlocks, or sourceSecurityGroupId.
final
sourceSecurityGroupId → Input<String?>?
Security group id to allow access to/from, depending on the type. Cannot be specified with cidrBlocks, ipv6CidrBlocks, or self.
final
toPort → Input<int>
End port (or ICMP code if protocol is "icmp").
final
type → Input<String>
Type of rule being created. Valid options are ingress (inbound) or egress (outbound).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited