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: The description of the security group.
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: The name of the security group.
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: The ID of the VPC in which you want to create the security group.

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

vpcIdOptional

public java.lang.Object getVpcId();
  • Type: java.lang.String OR com.aliyun.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.