SecurityGroupCloneProps
Properties for defining a SecurityGroupClone.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-securitygroupclone
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.SecurityGroupCloneProps {
SourceSecurityGroupId: interface{},
Description: interface{},
DestinationRegionId: interface{},
NetworkType: interface{},
ResourceGroupId: interface{},
SecurityGroupName: interface{},
SecurityGroupType: interface{},
VpcId: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
SourceSecurityGroupId | interface{} | Property sourceSecurityGroupId: Source security group ID is used to copy properties to clone new security group. |
Description | interface{} | Property description: The description of the security group. |
DestinationRegionId | interface{} | Property destinationRegionId: Clone security group to the specified region. |
NetworkType | interface{} | Property networkType: Clone new security group as classic network type. |
ResourceGroupId | interface{} | Property resourceGroupId: Resource group id. |
SecurityGroupName | interface{} | Property securityGroupName: The name of the security group. |
SecurityGroupType | interface{} | Property securityGroupType: The type of the security group. |
VpcId | interface{} | Property vpcId: The ID of the VPC in which you want to create the security group. |
SourceSecurityGroupIdRequired
SourceSecurityGroupId interface{}
- Type: interface{}
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 interface{}
- Type: interface{}
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
DestinationRegionId interface{}
- Type: interface{}
Property destinationRegionId: Clone security group to the specified region.
Default to current region.
NetworkTypeOptional
NetworkType interface{}
- Type: interface{}
Property networkType: Clone new security group as classic network type.
If the VpcId is specified, the value will be ignored.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
SecurityGroupNameOptional
SecurityGroupName interface{}
- Type: interface{}
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
SecurityGroupType interface{}
- Type: interface{}
Property securityGroupType: The type of the security group.
Valid values:
- normal: basic security group
- enterprise: advanced security group Default value: normal.
VpcIdOptional
VpcId interface{}
- Type: interface{}
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.