Skip to content

SecurityGroupProps

Properties for defining a SecurityGroup.

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

Initializer

import { SecurityGroupProps } from '@alicloud/ros-cdk-ecs'
const securityGroupProps: SecurityGroupProps = { ... }

Properties

Name Type Description
description string | @alicloud/ros-cdk-core.IResolvable Property description: The description of the security group.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: Resource group id.
securityGroupEgress @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | SecurityGroupEgressProperty[] Property securityGroupEgress: egress rules for the security group.
securityGroupIngress @alicloud/ros-cdk-core.IResolvable | @alicloud/ros-cdk-core.IResolvable | SecurityGroupIngressProperty[] Property securityGroupIngress: Ingress rules for the security group.
securityGroupName string | @alicloud/ros-cdk-core.IResolvable Property securityGroupName: The name of the security group.
securityGroupType string | @alicloud/ros-cdk-core.IResolvable Property securityGroupType: The type of the security group.
tags TagsProperty[] Property tags: Tags to attach to security group.
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: The ID of the VPC in which you want to create the security group.

descriptionOptional

public readonly description: string | IResolvable;
  • Type: string | @alicloud/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 readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: Resource group id.


securityGroupEgressOptional

public readonly securityGroupEgress: IResolvable | IResolvable | SecurityGroupEgressProperty[];

Property securityGroupEgress: egress rules for the security group.


securityGroupIngressOptional

public readonly securityGroupIngress: IResolvable | IResolvable | SecurityGroupIngressProperty[];

Property securityGroupIngress: Ingress rules for the security group.


securityGroupNameOptional

public readonly securityGroupName: string | IResolvable;
  • Type: string | @alicloud/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 readonly securityGroupType: string | IResolvable;
  • Type: string | @alicloud/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 readonly tags: 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

public readonly vpcId: string | IResolvable;
  • Type: string | @alicloud/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.