Skip to content

SecurityGroupIngressProps

Properties for defining a SecurityGroupIngress.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-securitygroupingress

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.SecurityGroupIngressProps {
    IpProtocol: interface{},
    PortRange: interface{},
    Description: interface{},
    Ipv6SourceCidrIp: interface{},
    NicType: interface{},
    Policy: interface{},
    Priority: interface{},
    SecurityGroupId: interface{},
    SourceCidrIp: interface{},
    SourceGroupId: interface{},
    SourceGroupOwnerId: interface{},
    SourcePortRange: interface{},
    SourcePrefixListId: interface{},
}

Properties

Name Type Description
IpProtocol interface{} Property ipProtocol: Ip protocol for in rule.
PortRange interface{} Property portRange: Ip protocol relative port range.
Description interface{} Property description: Description of the security group rule, [1, 512] characters.
Ipv6SourceCidrIp interface{} Property ipv6SourceCidrIp: Source IPv6 CIDR address segment.
NicType interface{} Property nicType: Network type, could be 'internet' or 'intranet'.
Policy interface{} Property policy: Authorization policies, parameter values can be: accept (accepted access), drop (denied access).
Priority interface{} Property priority: Authorization policies priority range[1, 100].
SecurityGroupId interface{} Property securityGroupId: Id of the security group.
SourceCidrIp interface{} Property sourceCidrIp: The source IPv4 CIDR block to which you want to control access.
SourceGroupId interface{} Property sourceGroupId: Source Group Id.
SourceGroupOwnerId interface{} Property sourceGroupOwnerId: Source Group Owner Account ID.
SourcePortRange interface{} Property sourcePortRange: The range of the ports enabled by the source security group for the transport layer protocol.
SourcePrefixListId interface{} Property sourcePrefixListId: The ID of the source prefix list to which you want to control access.

IpProtocolRequired

IpProtocol interface{}
  • Type: interface{}

Property ipProtocol: Ip protocol for in rule.


PortRangeRequired

PortRange interface{}
  • Type: interface{}

Property portRange: Ip protocol relative port range.

For tcp and udp, the port rang is [1,65535], using format '1/200'For icmp|gre|all protocel, the port range should be '-1/-1'


DescriptionOptional

Description interface{}
  • Type: interface{}

Property description: Description of the security group rule, [1, 512] characters.

The default is empty.


Ipv6SourceCidrIpOptional

Ipv6SourceCidrIp interface{}
  • Type: interface{}

Property ipv6SourceCidrIp: Source IPv6 CIDR address segment.

Supports IP address ranges in CIDR format and IPv6 format. Note Only VPC type IP addresses are supported.


NicTypeOptional

NicType interface{}
  • Type: interface{}

Property nicType: Network type, could be 'internet' or 'intranet'.

Default value is internet.


PolicyOptional

Policy interface{}
  • Type: interface{}

Property policy: Authorization policies, parameter values can be: accept (accepted access), drop (denied access).

Default value is accept.


PriorityOptional

Priority interface{}
  • Type: interface{}

Property priority: Authorization policies priority range[1, 100].


SecurityGroupIdOptional

SecurityGroupId interface{}
  • Type: interface{}

Property securityGroupId: Id of the security group.


SourceCidrIpOptional

SourceCidrIp interface{}
  • Type: interface{}

Property sourceCidrIp: The source IPv4 CIDR block to which you want to control access.

CIDR blocks and IPv4 addresses are supported.


SourceGroupIdOptional

SourceGroupId interface{}
  • Type: interface{}

Property sourceGroupId: Source Group Id.


SourceGroupOwnerIdOptional

SourceGroupOwnerId interface{}
  • Type: interface{}

Property sourceGroupOwnerId: Source Group Owner Account ID.


SourcePortRangeOptional

SourcePortRange interface{}
  • Type: interface{}

Property sourcePortRange: The range of the ports enabled by the source security group for the transport layer protocol.

Valid values: TCP/UDP: Value range: 1 to 65535. The start port and the end port are separated by a slash (/). Correct example: 1/200. Incorrect example: 200/1.ICMP: -1/-1.GRE: -1/-1.ALL: -1/-1.


SourcePrefixListIdOptional

SourcePrefixListId interface{}
  • Type: interface{}

Property sourcePrefixListId: The ID of the source prefix list to which you want to control access.

You can call the DescribePrefixLists operation to query the IDs of available prefix lists. Take note of the following items:

  • If a security group is in the classic network, you cannot configure prefix lists in the security group rules.
  • If you specify the SourceCidrIp, Ipv6SourceCidrIp, or SourceGroupId parameter, this parameter is ignored.