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: The description of the security group.
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: The name of the security group.
securityGroupType string | @alicloud/ros-cdk-core.IResolvable Property securityGroupType: The type of the security group.
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: The ID of the VPC in which you want to create the security group.

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: 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.


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: 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 (-).


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 Default value: normal.


vpcIdOptional

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