SecurityGroupRuleState class
Input properties used for looking up and filtering SecurityGroupRule resources.
Constructors
-
SecurityGroupRuleState({Input<
List< ? cidrBlocks, Input<String> ?>String?> ? description, Input<int?> ? fromPort, Input<List< ? ipv6CidrBlocks, Input<String> ?>List< ? prefixListIds, Input? protocol, Input<String> ?>String?> ? region, Input<String?> ? securityGroupId, Input<String?> ? securityGroupRuleId, Input<bool?> ? self, Input<String?> ? sourceSecurityGroupId, Input<int?> ? toPort, Input<String?> ? type}) -
Creates a new SecurityGroupRuleState.
cidrBlocksList of CIDR blocks. Cannot be specified withsourceSecurityGroupIdorself.descriptionDescription of the rule.fromPortStart port (or ICMP type number if protocol is "icmp" or "icmpv6").ipv6CidrBlocksList of IPv6 CIDR blocks. Cannot be specified withsourceSecurityGroupIdorself.prefixListIdsList of Prefix List IDs.protocolProtocol. If not icmp, icmpv6, tcp, udp, or all use the protocol numberregionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.securityGroupIdSecurity group to apply this rule to.securityGroupRuleIdIf theaws.ec2.SecurityGroupRuleresource has a single source or destination then this is the AWS Security Group Rule resource ID. Otherwise it is empty.selfWhether the security group itself will be added as a source to this ingress rule. Cannot be specified withcidrBlocks,ipv6CidrBlocks, orsourceSecurityGroupId.sourceSecurityGroupIdSecurity group id to allow access to/from, depending on thetype. Cannot be specified withcidrBlocks,ipv6CidrBlocks, orself.toPortEnd port (or ICMP code if protocol is "icmp").typeType of rule being created. Valid options areingress(inbound)const -
SecurityGroupRuleState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
cidrBlocks
→ Input<
List< ?String> ?> -
List of CIDR blocks. Cannot be specified with
sourceSecurityGroupIdorself.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
sourceSecurityGroupIdorself.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, andsourceSecurityGroupIdare 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.SecurityGroupRuleresource 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, orsourceSecurityGroupId.final -
sourceSecurityGroupId
→ Input<
String?> ? -
Security group id to allow access to/from, depending on the
type. Cannot be specified withcidrBlocks,ipv6CidrBlocks, orself.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) oregress(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