Skip to content

SecurityGroupsProps

Properties for defining a SecurityGroups.

See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-securitygroups

Initializer

import { datasource } from '@alicloud/ros-cdk-ecs'
const securityGroupsProps: datasource.SecurityGroupsProps = { ... }

Properties

Name Type Description
networkType string | @alicloud/ros-cdk-core.IResolvable Property networkType: The network type of the security group.
refreshOptions string | @alicloud/ros-cdk-core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
resourceGroupId string | @alicloud/ros-cdk-core.IResolvable Property resourceGroupId: The ID of the resource group to which the instance belongs.
securityGroupId string | @alicloud/ros-cdk-core.IResolvable Property securityGroupId: The ID of the security group.
securityGroupIds @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property securityGroupIds: The IDs of security groups.
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 @alicloud/ros-cdk-ecs.datasource.RosSecurityGroups.TagsProperty[] Property tags: Tags of securitygroup.
vpcId string | @alicloud/ros-cdk-core.IResolvable Property vpcId: The ID of the virtual private cloud (VPC) to which the security group belongs.

networkTypeOptional

public readonly networkType: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property networkType: The network type of the security group.

Valid values: vpc classic


refreshOptionsOptional

public readonly refreshOptions: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.

Valid values: - Never: Never refresh the datasource resource when the stack is updated. - Always: Always refresh the datasource resource when the stack is updated. Default is Never.


resourceGroupIdOptional

public readonly resourceGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property resourceGroupId: The ID of the resource group to which the instance belongs.

If this parameter is specified to query resources,up to 1,000 resources that belong to the specified resource group can be displayed in the response.


securityGroupIdOptional

public readonly securityGroupId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property securityGroupId: The ID of the security group.


securityGroupIdsOptional

public readonly securityGroupIds: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

Property securityGroupIds: The IDs of security groups.

The value is a JSON array that consists of up to 100 security group IDs. Separate multiple security group IDs with commas (,).


securityGroupNameOptional

public readonly securityGroupName: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property securityGroupName: The name of the security group.


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 Note If you do not specify this parameter, both basic and advanced security groups are queried.


tagsOptional

public readonly tags: TagsProperty[];
  • Type: @alicloud/ros-cdk-ecs.datasource.RosSecurityGroups.TagsProperty[]

Property tags: Tags of securitygroup.


vpcIdOptional

public readonly vpcId: string | IResolvable;
  • Type: string | @alicloud/ros-cdk-core.IResolvable

Property vpcId: The ID of the virtual private cloud (VPC) to which the security group belongs.