Class GetSecurityGroupsArgs.Builder

  • Enclosing class:
    GetSecurityGroupsArgs

    public static final class GetSecurityGroupsArgs.Builder
    extends java.lang.Object
    • Method Detail

      • ids

        public GetSecurityGroupsArgs.Builder ids​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<java.lang.String>> ids)
        Parameters:
        ids - A list of Security Group IDs.
        Returns:
        builder
      • ids

        public GetSecurityGroupsArgs.Builder ids​(java.util.List<java.lang.String> ids)
        Parameters:
        ids - A list of Security Group IDs.
        Returns:
        builder
      • nameRegex

        public GetSecurityGroupsArgs.Builder nameRegex​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> nameRegex)
        Parameters:
        nameRegex - A regex string to filter the resulting security groups by their names.
        Returns:
        builder
      • nameRegex

        public GetSecurityGroupsArgs.Builder nameRegex​(java.lang.String nameRegex)
        Parameters:
        nameRegex - A regex string to filter the resulting security groups by their names.
        Returns:
        builder
      • outputFile

        public GetSecurityGroupsArgs.Builder outputFile​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> outputFile)
        Parameters:
        outputFile - File name where to save data source results (after running `pulumi preview`).
        Returns:
        builder
      • outputFile

        public GetSecurityGroupsArgs.Builder outputFile​(java.lang.String outputFile)
        Parameters:
        outputFile - File name where to save data source results (after running `pulumi preview`).
        Returns:
        builder
      • resourceGroupId

        public GetSecurityGroupsArgs.Builder resourceGroupId​(@Nullable
                                                             com.pulumi.core.Output<java.lang.String> resourceGroupId)
        Parameters:
        resourceGroupId - The Id of resource group which the security_group belongs.
        Returns:
        builder
      • resourceGroupId

        public GetSecurityGroupsArgs.Builder resourceGroupId​(java.lang.String resourceGroupId)
        Parameters:
        resourceGroupId - The Id of resource group which the security_group belongs.
        Returns:
        builder
      • tags

        public GetSecurityGroupsArgs.Builder tags​(@Nullable
                                                  com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>> tags)
        Parameters:
        tags - A map of tags assigned to the ECS instances. It must be in the format: ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ecs.EcsFunctions; import com.pulumi.alicloud.ecs.inputs.GetSecurityGroupsArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { final var taggedSecurityGroups = EcsFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } } ```
        Returns:
        builder
      • tags

        public GetSecurityGroupsArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.Object> tags)
        Parameters:
        tags - A map of tags assigned to the ECS instances. It must be in the format: ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.alicloud.ecs.EcsFunctions; import com.pulumi.alicloud.ecs.inputs.GetSecurityGroupsArgs; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.io.File; import java.nio.file.Files; import java.nio.file.Paths; public class App { public static void main(String[] args) { Pulumi.run(App::stack); } public static void stack(Context ctx) { final var taggedSecurityGroups = EcsFunctions.getSecurityGroups(GetSecurityGroupsArgs.builder() .tags(Map.ofEntries( Map.entry("tagKey1", "tagValue1"), Map.entry("tagKey2", "tagValue2") )) .build()); } } ```
        Returns:
        builder
      • vpcId

        public GetSecurityGroupsArgs.Builder vpcId​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> vpcId)
        Parameters:
        vpcId - Used to retrieve security groups that belong to the specified VPC ID.
        Returns:
        builder
      • vpcId

        public GetSecurityGroupsArgs.Builder vpcId​(java.lang.String vpcId)
        Parameters:
        vpcId - Used to retrieve security groups that belong to the specified VPC ID.
        Returns:
        builder