Show / Hide Table of Contents

Class SecurityGroupRuleState

Inheritance
System.Object
InputArgs
ResourceArgs
SecurityGroupRuleState
Inherited Members
ResourceArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public sealed class SecurityGroupRuleState : ResourceArgs

Constructors

View Source

SecurityGroupRuleState()

Declaration
public SecurityGroupRuleState()

Properties

View Source

CidrBlocks

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>
View Source

Description

Description of the rule.

Declaration
public Input<string> Description { get; set; }
Property Value
Type Description
Input<System.String>
View Source

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>
View Source

Ipv6CidrBlocks

List of IPv6 CIDR blocks.

Declaration
public InputList<string> Ipv6CidrBlocks { get; set; }
Property Value
Type Description
InputList<System.String>
View Source

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>
View Source

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>
View Source

SecurityGroupId

The security group to apply this rule to.

Declaration
public Input<string> SecurityGroupId { get; set; }
Property Value
Type Description
Input<System.String>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.