Package com.pulumi.alicloud.ecs.inputs
Class GetSecurityGroupsArgs.Builder
- java.lang.Object
-
- com.pulumi.alicloud.ecs.inputs.GetSecurityGroupsArgs.Builder
-
- Enclosing class:
- GetSecurityGroupsArgs
public static final class GetSecurityGroupsArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GetSecurityGroupsArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetSecurityGroupsArgs
build()
GetSecurityGroupsArgs.Builder
enableDetails(com.pulumi.core.Output<java.lang.Boolean> enableDetails)
GetSecurityGroupsArgs.Builder
enableDetails(java.lang.Boolean enableDetails)
GetSecurityGroupsArgs.Builder
ids(com.pulumi.core.Output<java.util.List<java.lang.String>> ids)
GetSecurityGroupsArgs.Builder
ids(java.lang.String... ids)
GetSecurityGroupsArgs.Builder
ids(java.util.List<java.lang.String> ids)
GetSecurityGroupsArgs.Builder
nameRegex(com.pulumi.core.Output<java.lang.String> nameRegex)
GetSecurityGroupsArgs.Builder
nameRegex(java.lang.String nameRegex)
GetSecurityGroupsArgs.Builder
outputFile(com.pulumi.core.Output<java.lang.String> outputFile)
GetSecurityGroupsArgs.Builder
outputFile(java.lang.String outputFile)
GetSecurityGroupsArgs.Builder
pageNumber(com.pulumi.core.Output<java.lang.Integer> pageNumber)
GetSecurityGroupsArgs.Builder
pageNumber(java.lang.Integer pageNumber)
GetSecurityGroupsArgs.Builder
pageSize(com.pulumi.core.Output<java.lang.Integer> pageSize)
GetSecurityGroupsArgs.Builder
pageSize(java.lang.Integer pageSize)
GetSecurityGroupsArgs.Builder
resourceGroupId(com.pulumi.core.Output<java.lang.String> resourceGroupId)
GetSecurityGroupsArgs.Builder
resourceGroupId(java.lang.String resourceGroupId)
GetSecurityGroupsArgs.Builder
tags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.Object>> tags)
GetSecurityGroupsArgs.Builder
tags(java.util.Map<java.lang.String,java.lang.Object> tags)
GetSecurityGroupsArgs.Builder
vpcId(com.pulumi.core.Output<java.lang.String> vpcId)
GetSecurityGroupsArgs.Builder
vpcId(java.lang.String vpcId)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetSecurityGroupsArgs defaults)
-
-
Method Detail
-
enableDetails
public GetSecurityGroupsArgs.Builder enableDetails(@Nullable com.pulumi.core.Output<java.lang.Boolean> enableDetails)
-
enableDetails
public GetSecurityGroupsArgs.Builder enableDetails(java.lang.Boolean enableDetails)
-
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
-
ids
public GetSecurityGroupsArgs.Builder ids(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
-
pageNumber
public GetSecurityGroupsArgs.Builder pageNumber(@Nullable com.pulumi.core.Output<java.lang.Integer> pageNumber)
-
pageNumber
public GetSecurityGroupsArgs.Builder pageNumber(java.lang.Integer pageNumber)
-
pageSize
public GetSecurityGroupsArgs.Builder pageSize(@Nullable com.pulumi.core.Output<java.lang.Integer> pageSize)
-
pageSize
public GetSecurityGroupsArgs.Builder pageSize(java.lang.Integer pageSize)
-
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
-
build
public GetSecurityGroupsArgs build()
-
-