Skip to content

SecurityGroupCloneProps

Properties for defining a SecurityGroupClone.

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

Initializer

import com.aliyun.ros.cdk.ecs.SecurityGroupCloneProps;
SecurityGroupCloneProps.builder()
    .sourceSecurityGroupId(java.lang.String)
    .sourceSecurityGroupId(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .destinationRegionId(java.lang.String)
//  .destinationRegionId(IResolvable)
//  .networkType(java.lang.String)
//  .networkType(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .securityGroupName(java.lang.String)
//  .securityGroupName(IResolvable)
//  .securityGroupType(java.lang.String)
//  .securityGroupType(IResolvable)
//  .vpcId(java.lang.String)
//  .vpcId(IResolvable)
    .build();

Properties

Name Type Description
sourceSecurityGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property sourceSecurityGroupId: Source security group ID is used to copy properties to clone new security group.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: Description of the security group, [2, 256] characters.
destinationRegionId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property destinationRegionId: Clone security group to the specified region.
networkType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property networkType: Clone new security group as classic network type.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id.
securityGroupName java.lang.String OR com.aliyun.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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupType: The type of the security group.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: Physical ID of the VPC.

sourceSecurityGroupIdRequired

public java.lang.Object getSourceSecurityGroupId();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getDescription();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getDestinationRegionId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property destinationRegionId: Clone security group to the specified region.

Default to current region.


networkTypeOptional

public java.lang.Object getNetworkType();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property resourceGroupId: Resource group id.


securityGroupNameOptional

public java.lang.Object getSecurityGroupName();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getSecurityGroupType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property securityGroupType: The type of the security group.

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


vpcIdOptional

public java.lang.Object getVpcId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vpcId: Physical ID of the VPC.