SecurityGroupProps
Properties for defining a SecurityGroup
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-securitygroup
Initializer
import ros_cdk_ecs
ros_cdk_ecs.SecurityGroupProps(
description: typing.Union[str, IResolvable] = None,
resource_group_id: typing.Union[str, IResolvable] = None,
security_group_egress: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, SecurityGroupEgressProperty]]] = None,
security_group_ingress: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, SecurityGroupIngressProperty]]] = None,
security_group_name: typing.Union[str, IResolvable] = None,
security_group_type: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
vpc_id: typing.Union[str, IResolvable] = None
)
Properties
Name | Type | Description |
---|---|---|
description |
typing.Union[str, ros_cdk_core.IResolvable] |
Property description: Description of the security group, [2, 256] characters. |
resource_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property resourceGroupId: Resource group id. |
security_group_egress |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, SecurityGroupEgressProperty]]] |
Property securityGroupEgress: egress rules for the security group. |
security_group_ingress |
typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, SecurityGroupIngressProperty]]] |
Property securityGroupIngress: Ingress rules for the security group. |
security_group_name |
typing.Union[str, 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 '.', '-'. |
security_group_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property securityGroupType: The type of the security group. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to security group. |
vpc_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vpcId: Physical ID of the VPC. |
description
Optional
description: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property description: Description of the security group, [2, 256] characters.
Do not fill or empty, the default is empty.
resource_group_id
Optional
resource_group_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property resourceGroupId: Resource group id.
security_group_egress
Optional
security_group_egress: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, SecurityGroupEgressProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, SecurityGroupEgressProperty]]]
Property securityGroupEgress: egress rules for the security group.
security_group_ingress
Optional
security_group_ingress: typing.Union[IResolvable, typing.List[typing.Union[IResolvable, SecurityGroupIngressProperty]]]
- Type: typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[ros_cdk_core.IResolvable, SecurityGroupIngressProperty]]]
Property securityGroupIngress: Ingress rules for the security group.
security_group_name
Optional
security_group_name: typing.Union[str, IResolvable]
- Type: typing.Union[str, 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 '.', '-'.
security_group_type
Optional
security_group_type: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property securityGroupType: The type of the security group.
Valid values: normal: basic security group enterprise: advanced security group
tags
Optional
tags: typing.List[TagsProperty]
- Type: typing.List[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.
vpc_id
Optional
vpc_id: typing.Union[str, IResolvable]
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property vpcId: Physical ID of the VPC.