FirewallVpcFirewall

class FirewallVpcFirewall : KotlinCustomResource

Provides a Cloud Firewall Vpc Firewall resource. For information about Cloud Firewall Vpc Firewall and how to use it, see What is Vpc Firewall.

NOTE: Available since v1.194.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.cloudfirewall.FirewallVpcFirewall;
import com.pulumi.alicloud.cloudfirewall.FirewallVpcFirewallArgs;
import com.pulumi.alicloud.cloudfirewall.inputs.FirewallVpcFirewallLocalVpcArgs;
import com.pulumi.alicloud.cloudfirewall.inputs.FirewallVpcFirewallPeerVpcArgs;
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 current = AlicloudFunctions.getAccount();
var default_ = new FirewallVpcFirewall("default", FirewallVpcFirewallArgs.builder()
.vpcFirewallName("tf-example")
.memberUid(current.applyValue(getAccountResult -> getAccountResult.id()))
.localVpc(FirewallVpcFirewallLocalVpcArgs.builder()
.vpcId("vpc-bp1d065m6hzn1xbw8ibfd")
.regionNo("cn-hangzhou")
.localVpcCidrTableLists(FirewallVpcFirewallLocalVpcLocalVpcCidrTableListArgs.builder()
.localRouteTableId("vtb-bp1lj0ddg846856chpzrv")
.localRouteEntryLists(FirewallVpcFirewallLocalVpcLocalVpcCidrTableListLocalRouteEntryListArgs.builder()
.localNextHopInstanceId("ri-bp1uobww3aputjlwwkyrh")
.localDestinationCidr("10.1.0.0/16")
.build())
.build())
.build())
.peerVpc(FirewallVpcFirewallPeerVpcArgs.builder()
.vpcId("vpc-bp1gcmm64o3caox84v0nz")
.regionNo("cn-hangzhou")
.peerVpcCidrTableLists(FirewallVpcFirewallPeerVpcPeerVpcCidrTableListArgs.builder()
.peerRouteTableId("vtb-bp1f516f2hh4sok1ig9b5")
.peerRouteEntryLists(FirewallVpcFirewallPeerVpcPeerVpcCidrTableListPeerRouteEntryListArgs.builder()
.peerDestinationCidr("10.0.0.0/16")
.peerNextHopInstanceId("ri-bp1thhtgf6ydr2or52l3n")
.build())
.build())
.build())
.status("open")
.build());
}
}

Import

Cloud Firewall Vpc Firewall can be imported using the id, e.g.

$ pulumi import alicloud:cloudfirewall/firewallVpcFirewall:FirewallVpcFirewall example <id>

Properties

Link copied to clipboard
val bandwidth: Output<Int>

Bandwidth specifications for high-speed channels. Unit: Mbps.

Link copied to clipboard
val connectType: Output<String>

The communication type of the VPC firewall.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lang: Output<String>?

The language type of the requested and received messages. Valid values:

Link copied to clipboard

The details of the local VPC. See local_vpc below.

Link copied to clipboard
val memberUid: Output<String>?

The UID of the Alibaba Cloud member account.

Link copied to clipboard

The details of the peer VPC. See peer_vpc below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val regionStatus: Output<String>

The region is open.

Link copied to clipboard
val status: Output<String>

The status of the resource. Valid values:

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vpcFirewallId: Output<String>

The ID of the VPC firewall instance.

Link copied to clipboard
val vpcFirewallName: Output<String>

The name of the VPC firewall instance.