Skip to content

SecurityGroupCloneProps

Properties for defining a SecurityGroupClone.

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

Initializer

import ros_cdk_ecs
ros_cdk_ecs.SecurityGroupCloneProps(
  source_security_group_id: typing.Union[str, IResolvable],
  description: typing.Union[str, IResolvable] = None,
  destination_region_id: typing.Union[str, IResolvable] = None,
  network_type: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  security_group_name: typing.Union[str, IResolvable] = None,
  security_group_type: typing.Union[str, IResolvable] = None,
  vpc_id: typing.Union[str, IResolvable] = None
)

Properties

Name Type Description
source_security_group_id typing.Union[str, ros_cdk_core.IResolvable] Property sourceSecurityGroupId: Source security group ID is used to copy properties to clone new security group.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: The description of the security group.
destination_region_id typing.Union[str, ros_cdk_core.IResolvable] Property destinationRegionId: Clone security group to the specified region.
network_type typing.Union[str, ros_cdk_core.IResolvable] Property networkType: Clone new security group as classic network type.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: Resource group id.
security_group_name typing.Union[str, ros_cdk_core.IResolvable] Property securityGroupName: The name of the security group.
security_group_type typing.Union[str, ros_cdk_core.IResolvable] Property securityGroupType: The type of the security group.
vpc_id typing.Union[str, ros_cdk_core.IResolvable] Property vpcId: The ID of the VPC in which you want to create the security group.

source_security_group_idRequired

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

Property sourceSecurityGroupId: Source security group ID is used to copy properties to clone new security group.

If the NetworkType and VpcId is not specified, the same security group will be cloned. If NetworkType or VpcId is specified, only proper security group rules will be cloned.


descriptionOptional

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

Property description: The description of the security group.

The description must be 2 to 256 characters in length. It cannot start with http:\/\/ or https:\/\/. By default, this parameter is left empty.


destination_region_idOptional

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

Property destinationRegionId: Clone security group to the specified region.

Default to current region.


network_typeOptional

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

Property networkType: Clone new security group as classic network type.

If the VpcId is specified, the value will be ignored.


resource_group_idOptional

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

Property resourceGroupId: Resource group id.


security_group_nameOptional

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

Property securityGroupName: The name of the security group.

The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:\/\/ or https:\/\/. The name can contain letters, digits, colons (:), underscores (_), periods (.), and hyphens (-).


security_group_typeOptional

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

Property securityGroupType: The type of the security group.

Valid values:

  • normal: basic security group
  • enterprise: advanced security group Default value: normal.

vpc_idOptional

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

Property vpcId: The ID of the VPC in which you want to create the security group.

The VpcId parameter is required only if you want to create security groups of the VPC type.