getVpcFirewalls

This data source provides Cloud Firewall Vpc Firewall available to the user.What is Vpc Firewall

NOTE: Available in 1.194.0+

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.CloudfirewallFunctions;
import com.pulumi.alicloud.cloudfirewall.inputs.GetVpcFirewallsArgs;
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 default = CloudfirewallFunctions.getVpcFirewalls(GetVpcFirewallsArgs.builder()
.ids("id-example")
.memberUid("1415189284827022")
.status("closed")
.vpcFirewallName("tf-test")
.build());
ctx.export("alicloudCfwVpcFirewallExampleId", default_.firewalls()[0].id());
}
}

Return

A collection of values returned by getVpcFirewalls.

Parameters

argument

A collection of arguments for invoking getVpcFirewalls.


suspend fun getVpcFirewalls(ids: List<String>? = null, lang: String? = null, memberUid: String? = null, nameRegex: String? = null, outputFile: String? = null, regionNo: String? = null, status: String? = null, vpcFirewallId: String? = null, vpcFirewallName: String? = null, vpcId: String? = null): GetVpcFirewallsResult

Return

A collection of values returned by getVpcFirewalls.

See also

Parameters

ids

A list of Vpc Firewall IDs.

lang

The language type of the requested and received messages. Value:-zh (default): Chinese.-en: English.

memberUid

The UID of the Alibaba Cloud member account.

nameRegex

A regex string to filter results by Group Metric Rule name.

outputFile

File name where to save data source results (after running pulumi preview).

regionNo

The region ID of the peer VPC.

status

The status of the resource

vpcFirewallId

The ID of the VPC firewall instance.

vpcFirewallName

The name of the VPC firewall instance.

vpcId

The ID of the peer VPC instance.


Return

A collection of values returned by getVpcFirewalls.

See also

Parameters

argument

Builder for com.pulumi.alicloud.cloudfirewall.kotlin.inputs.GetVpcFirewallsPlainArgs.