Skip to content

SecurityGroupEgressProps

Properties for defining a SecurityGroupEgress.

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

Initializer

import { SecurityGroupEgressProps } from '@alicloud/ros-cdk-ecs'
const securityGroupEgressProps: SecurityGroupEgressProps = { ... }

Properties

Name Type Description
ipProtocol string | @alicloud/ros-cdk-core.IResolvable Property ipProtocol: Ip protocol for in rule.
portRange string | @alicloud/ros-cdk-core.IResolvable Property portRange: Ip protocol relative port range.
description string | @alicloud/ros-cdk-core.IResolvable Property description: Description of the security group rule, [1, 512] characters.
destCidrIp string | @alicloud/ros-cdk-core.IResolvable Property destCidrIp: The destination IPv4 CIDR block to which you want to control access.
destGroupId string | @alicloud/ros-cdk-core.IResolvable Property destGroupId: The destination security group ID to which access permissions need to be set.
destGroupOwnerId string | @alicloud/ros-cdk-core.IResolvable Property destGroupOwnerId: When setting security group rules across accounts, the Ali Cloud account ID of the destination security group.
destPrefixListId string | @alicloud/ros-cdk-core.IResolvable Property destPrefixListId: The ID of the destination prefix list to which you want to control access.
ipv6DestCidrIp string | @alicloud/ros-cdk-core.IResolvable Property ipv6DestCidrIp: Destination IPv6 CIDR address block for which access rights need to be set.
nicType string | @alicloud/ros-cdk-core.IResolvable Property nicType: Network type, could be 'internet' or 'intranet'.
policy string | @alicloud/ros-cdk-core.IResolvable Property policy: Authorization policies, parameter values can be: accept (accepted access), drop (denied access).
priority number | @alicloud/ros-cdk-core.IResolvable Property priority: Authorization policies priority range[1, 100].
securityGroupId string | @alicloud/ros-cdk-core.IResolvable Property securityGroupId: Id of the security group.

ipProtocolRequired

public readonly ipProtocol: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property ipProtocol: Ip protocol for in rule.


portRangeRequired

public readonly portRange: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

public readonly description: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

The default is empty.


destCidrIpOptional

public readonly destCidrIp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property destCidrIp: The destination IPv4 CIDR block to which you want to control access.

CIDR blocks and IPv4 addresses are supported.


destGroupIdOptional

public readonly destGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property destGroupId: The destination security group ID to which access permissions need to be set.

Set at least one of the DestGroupId, DestCidrIp, Ipv6DestCidrIp, or DestPrefixListId parameters. - If DestGroupId is specified without the DestCidrIp parameter, the NicType parameter can only take the value intranet. - If both DestGroupId and DestCidrIp are specified, DestCidrIp is assumed to prevail. You should pay attention to: - Enterprise Security groups do not support authorized security group access. - The maximum number of authorized security groups supported by ordinary security groups is 20.


destGroupOwnerIdOptional

public readonly destGroupOwnerId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property destGroupOwnerId: When setting security group rules across accounts, the Ali Cloud account ID of the destination security group.

If neither DestGroupOwnerId nor DestGroupOwnerAccount is set, it is considered to set the access rights of your other security group. - If you have set the parameter DestCidrIp, the parameter DestGroupOwnerId is invalid.


destPrefixListIdOptional

public readonly destPrefixListId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property destPrefixListId: The ID of the destination 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. For information about the limits on security groups and prefix lists, see the "Security group limits" in Limits. If you specify DestCidrIp, Ipv6DestCidrIp, or DestGroupId, DestPrefixListId is ignored.


ipv6DestCidrIpOptional

public readonly ipv6DestCidrIp: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property ipv6DestCidrIp: Destination IPv6 CIDR address block for which access rights need to be set.

CIDR format and IPv6 format IP address range are supported.


nicTypeOptional

public readonly nicType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

Default value is internet.


policyOptional

public readonly policy: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

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

Default value is accept.


priorityOptional

public readonly priority: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

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


securityGroupIdOptional

public readonly securityGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property securityGroupId: Id of the security group.