FirewallVpcFirewallControlPolicyArgs

data class FirewallVpcFirewallControlPolicyArgs(val aclAction: Output<String>? = null, val applicationName: Output<String>? = null, val description: Output<String>? = null, val destPort: Output<String>? = null, val destPortGroup: Output<String>? = null, val destPortType: Output<String>? = null, val destination: Output<String>? = null, val destinationType: Output<String>? = null, val lang: Output<String>? = null, val memberUid: Output<String>? = null, val order: Output<Int>? = null, val proto: Output<String>? = null, val release: Output<Boolean>? = null, val source: Output<String>? = null, val sourceType: Output<String>? = null, val vpcFirewallId: Output<String>? = null) : ConvertibleToJava<FirewallVpcFirewallControlPolicyArgs>

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

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.cen.Instance;
import com.pulumi.alicloud.cen.InstanceArgs;
import com.pulumi.alicloud.cloudfirewall.FirewallVpcFirewallControlPolicy;
import com.pulumi.alicloud.cloudfirewall.FirewallVpcFirewallControlPolicyArgs;
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 defaultAccount = AlicloudFunctions.getAccount();
var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()
.cenInstanceName(var_.name())
.description("example_value")
.tags(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "acceptance test")
))
.build());
var defaultFirewallVpcFirewallControlPolicy = new FirewallVpcFirewallControlPolicy("defaultFirewallVpcFirewallControlPolicy", FirewallVpcFirewallControlPolicyArgs.builder()
.order("1")
.destination("127.0.0.2/32")
.applicationName("ANY")
.description("example_value")
.sourceType("net")
.destPort("80/88")
.aclAction("accept")
.lang("zh")
.destinationType("net")
.source("127.0.0.1/32")
.destPortType("port")
.proto("TCP")
.release(true)
.memberUid(defaultAccount.applyValue(getAccountResult -> getAccountResult.id()))
.vpcFirewallId(defaultInstance.id())
.build());
}
}

Import

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

$ pulumi import alicloud:cloudfirewall/firewallVpcFirewallControlPolicy:FirewallVpcFirewallControlPolicy example <vpc_firewall_id>:<acl_uuid>

Constructors

Link copied to clipboard
fun FirewallVpcFirewallControlPolicyArgs(aclAction: Output<String>? = null, applicationName: Output<String>? = null, description: Output<String>? = null, destPort: Output<String>? = null, destPortGroup: Output<String>? = null, destPortType: Output<String>? = null, destination: Output<String>? = null, destinationType: Output<String>? = null, lang: Output<String>? = null, memberUid: Output<String>? = null, order: Output<Int>? = null, proto: Output<String>? = null, release: Output<Boolean>? = null, source: Output<String>? = null, sourceType: Output<String>? = null, vpcFirewallId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): FirewallVpcFirewallControlPolicyArgs

Properties

Link copied to clipboard
val aclAction: Output<String>? = null

The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.

Link copied to clipboard
val applicationName: Output<String>? = null

The type of the applications that the access control policy supports. Valid values: FTP, HTTP, HTTPS, MySQL, SMTP, SMTPS, RDP, VNC, SSH, Redis, MQTT, MongoDB, Memcache, SSL, ANY.

Link copied to clipboard
val description: Output<String>? = null

Access control over VPC firewalls description of the strategy information.

Link copied to clipboard
val destination: Output<String>? = null

The destination address in the access control policy. Valid values:

Link copied to clipboard
val destinationType: Output<String>? = null

The type of the destination address in the access control policy. Valid values: net, group, domain.

Link copied to clipboard
val destPort: Output<String>? = null

The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify this parameter.

Link copied to clipboard
val destPortGroup: Output<String>? = null

Access control policy in the access traffic of the destination port address book name. Note: If dest_port_type is set to group, you must specify this parameter.

Link copied to clipboard
val destPortType: Output<String>? = null

The type of the destination port in the access control policy. Valid values: port, group.

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

The language of the content within the request and response. Valid values: zh, en.

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

The UID of the member account of the current Alibaba cloud account.

Link copied to clipboard
val order: Output<Int>? = null

The priority of the access control policy. The priority value starts from 1. A smaller priority value indicates a higher priority.

Link copied to clipboard
val proto: Output<String>? = null

The type of the protocol in the access control policy. Valid values: ANY, TCP, UDP, ICMP.

Link copied to clipboard
val release: Output<Boolean>? = null

The enabled status of the access control policy. The policy is enabled by default after it is created.. Valid values:

Link copied to clipboard
val source: Output<String>? = null

Access control over VPC firewalls strategy in the source address.

Link copied to clipboard
val sourceType: Output<String>? = null

The type of the source address in the access control policy. Valid values: net, group.

Link copied to clipboard
val vpcFirewallId: Output<String>? = null

The ID of the VPC firewall instance. Valid values: