SecurityGroupProps
Properties for defining a SecurityGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-securitygroup
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.SecurityGroupProps {
Description: interface{},
ResourceGroupId: interface{},
SecurityGroupEgress: interface{},
SecurityGroupIngress: interface{},
SecurityGroupName: interface{},
SecurityGroupType: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosSecurityGroup.TagsProperty,
VpcId: interface{},
}
Properties
| Name | Type | Description |
|---|---|---|
Description | interface{} | Property description: The description of the security group. |
ResourceGroupId | interface{} | Property resourceGroupId: Resource group id. |
SecurityGroupEgress | interface{} | Property securityGroupEgress: egress rules for the security group. |
SecurityGroupIngress | interface{} | Property securityGroupIngress: Ingress rules for the security group. |
SecurityGroupName | interface{} | Property securityGroupName: The name of the security group. |
SecurityGroupType | interface{} | Property securityGroupType: The type of the security group. |
Tags | *[]TagsProperty | Property tags: Tags to attach to security group. |
VpcId | interface{} | Property vpcId: The ID of the VPC in which you want to create the security group. |
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.
ResourceGroupIdOptional
ResourceGroupId interface{}
- Type: interface{}
Property resourceGroupId: Resource group id.
SecurityGroupEgressOptional
SecurityGroupEgress interface{}
- Type: interface{}
Property securityGroupEgress: egress rules for the security group.
SecurityGroupIngressOptional
SecurityGroupIngress interface{}
- Type: interface{}
Property securityGroupIngress: Ingress rules for the security group.
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.
TagsOptional
Tags *[]TagsProperty
- Type: *[]TagsProperty
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
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.