Class SecurityGroupRuleState
Inherited Members
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class SecurityGroupRuleState : ResourceArgs
Constructors
View SourceSecurityGroupRuleState()
Declaration
public SecurityGroupRuleState()
Properties
View SourceCidrIp
The target IP address range. The default value is 0.0.0.0/0 (which means no restriction will be applied). Other supported formats include 10.159.6.18/12. Only IPv4 is supported.
Declaration
public Input<string> CidrIp { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Description
The description of the security group rule. The description can be up to 1 to 512 characters in length. Defaults to null.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
IpProtocol
The protocol. Can be tcp, udp, icmp, gre or all.
Declaration
public Input<string> IpProtocol { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NicType
Network type, can be either internet or intranet, the default value is internet.
Declaration
public Input<string> NicType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Policy
Authorization policy, can be either accept or drop, the default value is accept.
Declaration
public Input<string> Policy { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
PortRange
The range of port numbers relevant to the IP protocol. Default to "-1/-1". When the protocol is tcp or udp, each side port number range from 1 to 65535 and '-1/-1' will be invalid.
For example, 1/200 means that the range of the port numbers is 1-200. Other protocols' 'port_range' can only be "-1/-1", and other values will be invalid.
Declaration
public Input<string> PortRange { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Priority
Authorization policy priority, with parameter values: 1-100, default value: 1.
Declaration
public Input<int> Priority { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
SecurityGroupId
The security group to apply this rule to.
Declaration
public Input<string> SecurityGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SourceGroupOwnerAccount
The Alibaba Cloud user account Id of the target security group when security groups are authorized across accounts. This parameter is invalid if cidr_ip has already been set.
Declaration
public Input<string> SourceGroupOwnerAccount { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SourceSecurityGroupId
The target security group ID within the same region. If this field is specified, the nic_type can only select intranet.
Declaration
public Input<string> SourceSecurityGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
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> |