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: Description of the security group, [2, 256] characters.
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: 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 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: Physical ID of the VPC.

descriptionOptional

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


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: Physical ID of the VPC.