Skip to content

SecurityGroupCloneProps

Properties for defining a SecurityGroupClone.

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

Initializer

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

Properties

Name Type Description
sourceSecurityGroupId string | @alicloud/ros-cdk-core.IResolvable Property sourceSecurityGroupId: Source security group ID is used to copy properties to clone new security group.
description string | @alicloud/ros-cdk-core.IResolvable Property description: Description of the security group, [2, 256] characters.
destinationRegionId string | @alicloud/ros-cdk-core.IResolvable Property destinationRegionId: Clone security group to the specified region.
networkType string | @alicloud/ros-cdk-core.IResolvable Property networkType: Clone new security group as classic network type.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: Resource group id.
securityGroupName string | @alicloud/ros-cdk-core.IResolvable Property securityGroupName: Display name of the security group, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.
securityGroupType string | @alicloud/ros-cdk-core.IResolvable Property securityGroupType: The type of the security group.
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: Physical ID of the VPC.

sourceSecurityGroupIdRequired

public readonly sourceSecurityGroupId: string | IResolvable;
  • Type: string | @alicloud/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

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

Property description: Description of the security group, [2, 256] characters.

Do not fill or empty, the default is empty.


destinationRegionIdOptional

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

Property destinationRegionId: Clone security group to the specified region.

Default to current region.


networkTypeOptional

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

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

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


resourceGroupIdOptional

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

Property resourceGroupId: Resource group id.


securityGroupNameOptional

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

Property securityGroupName: Display name of the security group, [2, 128] English or Chinese characters, must start with a letter or Chinese in size, can contain numbers, '_' or '.', '-'.


securityGroupTypeOptional

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

Property securityGroupType: The type of the security group.

Valid values: normal: basic security group enterprise: advanced security group


vpcIdOptional

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

Property vpcId: Physical ID of the VPC.