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

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.


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

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