Class SecurityGroupRuleState
Inherited Members
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public sealed class SecurityGroupRuleState : ResourceArgs
Constructors
View SourceSecurityGroupRuleState()
Declaration
public SecurityGroupRuleState()
Properties
View SourceCidrBlocks
List of CIDR blocks. Cannot be specified with source_security_group_id.
Declaration
public InputList<string> CidrBlocks { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Description
Description of the rule.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
FromPort
The start port (or ICMP type number if protocol is "icmp" or "icmpv6").
Declaration
public Input<int> FromPort { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Ipv6CidrBlocks
List of IPv6 CIDR blocks.
Declaration
public InputList<string> Ipv6CidrBlocks { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
PrefixListIds
List of prefix list IDs (for allowing access to VPC endpoints).
Only valid with egress.
Declaration
public InputList<string> PrefixListIds { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Protocol
The protocol. If not icmp, icmpv6, tcp, udp, or all use the protocol number
Declaration
public Input<string> Protocol { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SecurityGroupId
The security group to apply this rule to.
Declaration
public Input<string> SecurityGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Self
If true, the security group itself will be added as
a source to this ingress rule. Cannot be specified with source_security_group_id.
Declaration
public Input<bool> Self { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
SourceSecurityGroupId
The security group id to allow access to/from,
depending on the type. Cannot be specified with cidr_blocks and self.
Declaration
public Input<string> SourceSecurityGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ToPort
The end port (or ICMP code if protocol is "icmp").
Declaration
public Input<int> ToPort { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Type
The type of rule being created. Valid options are ingress (inbound)
or egress (outbound).
Declaration
public Input<string> Type { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |