Skip to content

SecurityGroupProps

Properties for defining a SecurityGroup.

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

Initializer

import com.aliyun.ros.cdk.ecs.SecurityGroupProps;
SecurityGroupProps.builder()
//  .description(java.lang.String)
//  .description(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .securityGroupEgress(IResolvable)
//  .securityGroupEgress(java.util.List<IResolvable)
//  .securityGroupEgress(SecurityGroupEgressProperty>)
//  .securityGroupIngress(IResolvable)
//  .securityGroupIngress(java.util.List<IResolvable)
//  .securityGroupIngress(SecurityGroupIngressProperty>)
//  .securityGroupName(java.lang.String)
//  .securityGroupName(IResolvable)
//  .securityGroupType(java.lang.String)
//  .securityGroupType(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .vpcId(java.lang.String)
//  .vpcId(IResolvable)
    .build();

Properties

Name Type Description
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: Description of the security group, [2, 256] characters.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: Resource group id.
securityGroupEgress com.aliyun.ros.cdk.core.IResolvable OR java.util.ListSecurityGroupEgressProperty> Property securityGroupEgress: egress rules for the security group.
securityGroupIngress com.aliyun.ros.cdk.core.IResolvable OR java.util.ListSecurityGroupIngressProperty> Property securityGroupIngress: Ingress rules for the security group.
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.
tags java.util.List<TagsProperty> Property tags: Tags to attach to security group.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: Physical ID of the VPC.

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.


resourceGroupIdOptional

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

Property resourceGroupId: Resource group id.


securityGroupEgressOptional

public java.lang.Object getSecurityGroupEgress();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListSecurityGroupEgressProperty>

Property securityGroupEgress: egress rules for the security group.


securityGroupIngressOptional

public java.lang.Object getSecurityGroupIngress();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.ListSecurityGroupIngressProperty>

Property securityGroupIngress: Ingress rules for the security group.


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


tagsOptional

public java.util.List<TagsProperty> getTags();

Property tags: Tags to attach to security group.

Max support 20 tags to add during create security group. Each tag with two properties Key and Value, and Key is required.


vpcIdOptional

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

Property vpcId: Physical ID of the VPC.