Skip to content

AssignPrivateIpAddressesProps

Properties for defining a AssignPrivateIpAddresses.

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

Initializer

import ros_cdk_ecs
ros_cdk_ecs.AssignPrivateIpAddressesProps(
  network_interface_id: typing.Union[str, IResolvable],
  private_ip_addresses: typing.Union[typing.List[typing.Any], IResolvable] = None,
  secondary_private_ip_address_count: typing.Union[typing.Union[int, float], IResolvable] = None
)

Properties

Name Type Description
network_interface_id typing.Union[str, ros_cdk_core.IResolvable] Property networkInterfaceId: The ID of the ENI.
private_ip_addresses typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] Property privateIpAddresses: One or multiple secondary private IP addresses selected from the CIDR block of the VSwitch that hosts the ENI.
secondary_private_ip_address_count typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property secondaryPrivateIpAddressCount: The specified number of private IP addresses to be assigned by the ECS instance.

network_interface_idRequired

network_interface_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property networkInterfaceId: The ID of the ENI.


private_ip_addressesOptional

private_ip_addresses: typing.Union[typing.List[typing.Any], IResolvable]
  • Type: typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable]

Property privateIpAddresses: One or multiple secondary private IP addresses selected from the CIDR block of the VSwitch that hosts the ENI.

Valid values of number of private ip addresses: When the ENI is in the Available state: 1 to 10. When the ENI is in the InUse state: limited by the instance type. For more information, see Instance type families. You must specify either the PrivateIpAddresses parameter or the SecondaryPrivateIpAddressCount parameter to assign secondary private IP addresses.


secondary_private_ip_address_countOptional

secondary_private_ip_address_count: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property secondaryPrivateIpAddressCount: The specified number of private IP addresses to be assigned by the ECS instance.