SecurityGroupRuleState constructor
- Input<
List< ? cidrBlocks,String> ?> - Input<
String?> ? description, - Input<
int?> ? fromPort, - Input<
List< ? ipv6CidrBlocks,String> ?> - Input<
List< ? prefixListIds,String> ?> - 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)
Implementation
const SecurityGroupRuleState({
this.cidrBlocks,
this.description,
this.fromPort,
this.ipv6CidrBlocks,
this.prefixListIds,
this.protocol,
this.region,
this.securityGroupId,
this.securityGroupRuleId,
this.self,
this.sourceSecurityGroupId,
this.toPort,
this.type,
});