SecurityGroupRuleState class

Input properties used for looking up and filtering SecurityGroupRule resources.

Constructors

SecurityGroupRuleState({Input<List<String>?>? cidrBlocks, Input<String?>? description, Input<int?>? fromPort, Input<List<String>?>? ipv6CidrBlocks, Input<List<String>?>? prefixListIds, Input? protocol, Input<String?>? region, Input<String?>? securityGroupId, Input<String?>? securityGroupRuleId, Input<bool?>? self, Input<String?>? sourceSecurityGroupId, Input<int?>? toPort, Input<String?>? type})
Creates a new SecurityGroupRuleState. 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. securityGroupRuleId If the aws.ec2.SecurityGroupRule resource has a single source or destination then this is the AWS Security Group Rule resource ID. Otherwise it is empty. 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
SecurityGroupRuleState.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
securityGroupRuleId → Input<String?>?
If the aws.ec2.SecurityGroupRule resource has a single source or destination then this is the AWS Security Group Rule resource ID. Otherwise it is empty.
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