Skip to content

SecurityGroupsProps

Properties for defining a SecurityGroups.

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

Initializer

import com.aliyun.ros.cdk.ecs.datasource.SecurityGroupsProps;
SecurityGroupsProps.builder()
//  .networkType(java.lang.String)
//  .networkType(IResolvable)
//  .refreshOptions(java.lang.String)
//  .refreshOptions(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .securityGroupId(java.lang.String)
//  .securityGroupId(IResolvable)
//  .securityGroupIds(IResolvable)
//  .securityGroupIds(java.util.List<java.lang.String)
//  .securityGroupIds(IResolvable>)
//  .securityGroupName(java.lang.String)
//  .securityGroupName(IResolvable)
//  .securityGroupType(java.lang.String)
//  .securityGroupType(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .vpcId(java.lang.String)
//  .vpcId(IResolvable)
    .build();

Properties

Name Type Description
networkType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property networkType: The network type of the security group.
refreshOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group to which the instance belongs.
securityGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupId: The ID of the security group.
securityGroupIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property securityGroupIds: The IDs of security groups.
securityGroupName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupName: The name of the security group.
securityGroupType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupType: The type of the security group.
tags java.util.List Property tags: Tags of securitygroup.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The ID of the virtual private cloud (VPC) to which the security group belongs.

networkTypeOptional

public java.lang.Object getNetworkType();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property networkType: The network type of the security group.

Valid values: vpc classic


refreshOptionsOptional

public java.lang.Object getRefreshOptions();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getResourceGroupId();
  • Type: java.lang.String OR com.aliyun.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 java.lang.Object getSecurityGroupId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property securityGroupId: The ID of the security group.


securityGroupIdsOptional

public java.lang.Object getSecurityGroupIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

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 java.lang.Object getSecurityGroupName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property securityGroupName: The name of the security group.


securityGroupTypeOptional

public java.lang.Object getSecurityGroupType();
  • Type: java.lang.String OR com.aliyun.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 java.util.List<TagsProperty> getTags();
  • Type: java.util.List

Property tags: Tags of securitygroup.


vpcIdOptional

public java.lang.Object getVpcId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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