1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cloudfirewall
  5. ControlPolicy
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cloudfirewall.ControlPolicy

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    Provides a Cloud Firewall Control Policy resource.

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

    NOTE: Available since v1.129.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.cloudfirewall.ControlPolicy("default", {
        direction: "in",
        applicationName: "ANY",
        description: name,
        aclAction: "accept",
        source: "127.0.0.1/32",
        sourceType: "net",
        destination: "127.0.0.2/32",
        destinationType: "net",
        proto: "ANY",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.cloudfirewall.ControlPolicy("default",
        direction="in",
        application_name="ANY",
        description=name,
        acl_action="accept",
        source="127.0.0.1/32",
        source_type="net",
        destination="127.0.0.2/32",
        destination_type="net",
        proto="ANY")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := cloudfirewall.NewControlPolicy(ctx, "default", &cloudfirewall.ControlPolicyArgs{
    			Direction:       pulumi.String("in"),
    			ApplicationName: pulumi.String("ANY"),
    			Description:     pulumi.String(name),
    			AclAction:       pulumi.String("accept"),
    			Source:          pulumi.String("127.0.0.1/32"),
    			SourceType:      pulumi.String("net"),
    			Destination:     pulumi.String("127.0.0.2/32"),
    			DestinationType: pulumi.String("net"),
    			Proto:           pulumi.String("ANY"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.CloudFirewall.ControlPolicy("default", new()
        {
            Direction = "in",
            ApplicationName = "ANY",
            Description = name,
            AclAction = "accept",
            Source = "127.0.0.1/32",
            SourceType = "net",
            Destination = "127.0.0.2/32",
            DestinationType = "net",
            Proto = "ANY",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cloudfirewall.ControlPolicy;
    import com.pulumi.alicloud.cloudfirewall.ControlPolicyArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new ControlPolicy("default", ControlPolicyArgs.builder()
                .direction("in")
                .applicationName("ANY")
                .description(name)
                .aclAction("accept")
                .source("127.0.0.1/32")
                .sourceType("net")
                .destination("127.0.0.2/32")
                .destinationType("net")
                .proto("ANY")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:cloudfirewall:ControlPolicy
        properties:
          direction: in
          applicationName: ANY
          description: ${name}
          aclAction: accept
          source: 127.0.0.1/32
          sourceType: net
          destination: 127.0.0.2/32
          destinationType: net
          proto: ANY
    

    Create ControlPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ControlPolicy(name: string, args: ControlPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ControlPolicy(resource_name: str,
                      args: ControlPolicyArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ControlPolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      proto: Optional[str] = None,
                      application_name: Optional[str] = None,
                      description: Optional[str] = None,
                      source_type: Optional[str] = None,
                      acl_action: Optional[str] = None,
                      source: Optional[str] = None,
                      destination: Optional[str] = None,
                      destination_type: Optional[str] = None,
                      direction: Optional[str] = None,
                      dest_port_group: Optional[str] = None,
                      lang: Optional[str] = None,
                      ip_version: Optional[str] = None,
                      release: Optional[str] = None,
                      dest_port_type: Optional[str] = None,
                      source_ip: Optional[str] = None,
                      dest_port: Optional[str] = None)
    func NewControlPolicy(ctx *Context, name string, args ControlPolicyArgs, opts ...ResourceOption) (*ControlPolicy, error)
    public ControlPolicy(string name, ControlPolicyArgs args, CustomResourceOptions? opts = null)
    public ControlPolicy(String name, ControlPolicyArgs args)
    public ControlPolicy(String name, ControlPolicyArgs args, CustomResourceOptions options)
    
    type: alicloud:cloudfirewall:ControlPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ControlPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ControlPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ControlPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ControlPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ControlPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var controlPolicyResource = new AliCloud.CloudFirewall.ControlPolicy("controlPolicyResource", new()
    {
        Proto = "string",
        ApplicationName = "string",
        Description = "string",
        SourceType = "string",
        AclAction = "string",
        Source = "string",
        Destination = "string",
        DestinationType = "string",
        Direction = "string",
        DestPortGroup = "string",
        Lang = "string",
        IpVersion = "string",
        Release = "string",
        DestPortType = "string",
        SourceIp = "string",
        DestPort = "string",
    });
    
    example, err := cloudfirewall.NewControlPolicy(ctx, "controlPolicyResource", &cloudfirewall.ControlPolicyArgs{
    	Proto:           pulumi.String("string"),
    	ApplicationName: pulumi.String("string"),
    	Description:     pulumi.String("string"),
    	SourceType:      pulumi.String("string"),
    	AclAction:       pulumi.String("string"),
    	Source:          pulumi.String("string"),
    	Destination:     pulumi.String("string"),
    	DestinationType: pulumi.String("string"),
    	Direction:       pulumi.String("string"),
    	DestPortGroup:   pulumi.String("string"),
    	Lang:            pulumi.String("string"),
    	IpVersion:       pulumi.String("string"),
    	Release:         pulumi.String("string"),
    	DestPortType:    pulumi.String("string"),
    	SourceIp:        pulumi.String("string"),
    	DestPort:        pulumi.String("string"),
    })
    
    var controlPolicyResource = new ControlPolicy("controlPolicyResource", ControlPolicyArgs.builder()
        .proto("string")
        .applicationName("string")
        .description("string")
        .sourceType("string")
        .aclAction("string")
        .source("string")
        .destination("string")
        .destinationType("string")
        .direction("string")
        .destPortGroup("string")
        .lang("string")
        .ipVersion("string")
        .release("string")
        .destPortType("string")
        .sourceIp("string")
        .destPort("string")
        .build());
    
    control_policy_resource = alicloud.cloudfirewall.ControlPolicy("controlPolicyResource",
        proto="string",
        application_name="string",
        description="string",
        source_type="string",
        acl_action="string",
        source="string",
        destination="string",
        destination_type="string",
        direction="string",
        dest_port_group="string",
        lang="string",
        ip_version="string",
        release="string",
        dest_port_type="string",
        source_ip="string",
        dest_port="string")
    
    const controlPolicyResource = new alicloud.cloudfirewall.ControlPolicy("controlPolicyResource", {
        proto: "string",
        applicationName: "string",
        description: "string",
        sourceType: "string",
        aclAction: "string",
        source: "string",
        destination: "string",
        destinationType: "string",
        direction: "string",
        destPortGroup: "string",
        lang: "string",
        ipVersion: "string",
        release: "string",
        destPortType: "string",
        sourceIp: "string",
        destPort: "string",
    });
    
    type: alicloud:cloudfirewall:ControlPolicy
    properties:
        aclAction: string
        applicationName: string
        description: string
        destPort: string
        destPortGroup: string
        destPortType: string
        destination: string
        destinationType: string
        direction: string
        ipVersion: string
        lang: string
        proto: string
        release: string
        source: string
        sourceIp: string
        sourceType: string
    

    ControlPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ControlPolicy resource accepts the following input properties:

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

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    Description string
    The description of the access control policy.
    Destination string
    The destination address in the access control policy.
    DestinationType string
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    Direction string
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    Proto string
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    Source string
    The source address in the access control policy.
    SourceType string
    The type of the source address in the access control policy. Valid values: net, group, location.
    DestPort string
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    DestPortGroup string
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    DestPortType string
    The type of the destination port in the access control policy. Valid values: port, group.
    IpVersion string
    The IP version supported by the access control policy. Default value: 4. Valid values:
    Lang string
    The language of the content within the request and response. Valid values: zh, en.
    Release string
    The status of the access control policy. Valid values: true, false.
    SourceIp string
    The source IP address of the request.
    AclAction string
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    ApplicationName string

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    Description string
    The description of the access control policy.
    Destination string
    The destination address in the access control policy.
    DestinationType string
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    Direction string
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    Proto string
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    Source string
    The source address in the access control policy.
    SourceType string
    The type of the source address in the access control policy. Valid values: net, group, location.
    DestPort string
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    DestPortGroup string
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    DestPortType string
    The type of the destination port in the access control policy. Valid values: port, group.
    IpVersion string
    The IP version supported by the access control policy. Default value: 4. Valid values:
    Lang string
    The language of the content within the request and response. Valid values: zh, en.
    Release string
    The status of the access control policy. Valid values: true, false.
    SourceIp string
    The source IP address of the request.
    aclAction String
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    applicationName String

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description String
    The description of the access control policy.
    destination String
    The destination address in the access control policy.
    destinationType String
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction String
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    proto String
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    source String
    The source address in the access control policy.
    sourceType String
    The type of the source address in the access control policy. Valid values: net, group, location.
    destPort String
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    destPortGroup String
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    destPortType String
    The type of the destination port in the access control policy. Valid values: port, group.
    ipVersion String
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang String
    The language of the content within the request and response. Valid values: zh, en.
    release String
    The status of the access control policy. Valid values: true, false.
    sourceIp String
    The source IP address of the request.
    aclAction string
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    applicationName string

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description string
    The description of the access control policy.
    destination string
    The destination address in the access control policy.
    destinationType string
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction string
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    proto string
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    source string
    The source address in the access control policy.
    sourceType string
    The type of the source address in the access control policy. Valid values: net, group, location.
    destPort string
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    destPortGroup string
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    destPortType string
    The type of the destination port in the access control policy. Valid values: port, group.
    ipVersion string
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang string
    The language of the content within the request and response. Valid values: zh, en.
    release string
    The status of the access control policy. Valid values: true, false.
    sourceIp string
    The source IP address of the request.
    acl_action str
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    application_name str

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description str
    The description of the access control policy.
    destination str
    The destination address in the access control policy.
    destination_type str
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction str
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    proto str
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    source str
    The source address in the access control policy.
    source_type str
    The type of the source address in the access control policy. Valid values: net, group, location.
    dest_port str
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    dest_port_group str
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    dest_port_type str
    The type of the destination port in the access control policy. Valid values: port, group.
    ip_version str
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang str
    The language of the content within the request and response. Valid values: zh, en.
    release str
    The status of the access control policy. Valid values: true, false.
    source_ip str
    The source IP address of the request.
    aclAction String
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    applicationName String

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description String
    The description of the access control policy.
    destination String
    The destination address in the access control policy.
    destinationType String
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction String
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    proto String
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    source String
    The source address in the access control policy.
    sourceType String
    The type of the source address in the access control policy. Valid values: net, group, location.
    destPort String
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    destPortGroup String
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    destPortType String
    The type of the destination port in the access control policy. Valid values: port, group.
    ipVersion String
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang String
    The language of the content within the request and response. Valid values: zh, en.
    release String
    The status of the access control policy. Valid values: true, false.
    sourceIp String
    The source IP address of the request.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ControlPolicy resource produces the following output properties:

    AclUuid string
    (Available since v1.148.0) The unique ID of the access control policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    AclUuid string
    (Available since v1.148.0) The unique ID of the access control policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    aclUuid String
    (Available since v1.148.0) The unique ID of the access control policy.
    id String
    The provider-assigned unique ID for this managed resource.
    aclUuid string
    (Available since v1.148.0) The unique ID of the access control policy.
    id string
    The provider-assigned unique ID for this managed resource.
    acl_uuid str
    (Available since v1.148.0) The unique ID of the access control policy.
    id str
    The provider-assigned unique ID for this managed resource.
    aclUuid String
    (Available since v1.148.0) The unique ID of the access control policy.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ControlPolicy Resource

    Get an existing ControlPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ControlPolicyState, opts?: CustomResourceOptions): ControlPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl_action: Optional[str] = None,
            acl_uuid: Optional[str] = None,
            application_name: Optional[str] = None,
            description: Optional[str] = None,
            dest_port: Optional[str] = None,
            dest_port_group: Optional[str] = None,
            dest_port_type: Optional[str] = None,
            destination: Optional[str] = None,
            destination_type: Optional[str] = None,
            direction: Optional[str] = None,
            ip_version: Optional[str] = None,
            lang: Optional[str] = None,
            proto: Optional[str] = None,
            release: Optional[str] = None,
            source: Optional[str] = None,
            source_ip: Optional[str] = None,
            source_type: Optional[str] = None) -> ControlPolicy
    func GetControlPolicy(ctx *Context, name string, id IDInput, state *ControlPolicyState, opts ...ResourceOption) (*ControlPolicy, error)
    public static ControlPolicy Get(string name, Input<string> id, ControlPolicyState? state, CustomResourceOptions? opts = null)
    public static ControlPolicy get(String name, Output<String> id, ControlPolicyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AclAction string
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    AclUuid string
    (Available since v1.148.0) The unique ID of the access control policy.
    ApplicationName string

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    Description string
    The description of the access control policy.
    DestPort string
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    DestPortGroup string
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    DestPortType string
    The type of the destination port in the access control policy. Valid values: port, group.
    Destination string
    The destination address in the access control policy.
    DestinationType string
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    Direction string
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    IpVersion string
    The IP version supported by the access control policy. Default value: 4. Valid values:
    Lang string
    The language of the content within the request and response. Valid values: zh, en.
    Proto string
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    Release string
    The status of the access control policy. Valid values: true, false.
    Source string
    The source address in the access control policy.
    SourceIp string
    The source IP address of the request.
    SourceType string
    The type of the source address in the access control policy. Valid values: net, group, location.
    AclAction string
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    AclUuid string
    (Available since v1.148.0) The unique ID of the access control policy.
    ApplicationName string

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    Description string
    The description of the access control policy.
    DestPort string
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    DestPortGroup string
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    DestPortType string
    The type of the destination port in the access control policy. Valid values: port, group.
    Destination string
    The destination address in the access control policy.
    DestinationType string
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    Direction string
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    IpVersion string
    The IP version supported by the access control policy. Default value: 4. Valid values:
    Lang string
    The language of the content within the request and response. Valid values: zh, en.
    Proto string
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    Release string
    The status of the access control policy. Valid values: true, false.
    Source string
    The source address in the access control policy.
    SourceIp string
    The source IP address of the request.
    SourceType string
    The type of the source address in the access control policy. Valid values: net, group, location.
    aclAction String
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    aclUuid String
    (Available since v1.148.0) The unique ID of the access control policy.
    applicationName String

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description String
    The description of the access control policy.
    destPort String
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    destPortGroup String
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    destPortType String
    The type of the destination port in the access control policy. Valid values: port, group.
    destination String
    The destination address in the access control policy.
    destinationType String
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction String
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    ipVersion String
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang String
    The language of the content within the request and response. Valid values: zh, en.
    proto String
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    release String
    The status of the access control policy. Valid values: true, false.
    source String
    The source address in the access control policy.
    sourceIp String
    The source IP address of the request.
    sourceType String
    The type of the source address in the access control policy. Valid values: net, group, location.
    aclAction string
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    aclUuid string
    (Available since v1.148.0) The unique ID of the access control policy.
    applicationName string

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description string
    The description of the access control policy.
    destPort string
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    destPortGroup string
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    destPortType string
    The type of the destination port in the access control policy. Valid values: port, group.
    destination string
    The destination address in the access control policy.
    destinationType string
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction string
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    ipVersion string
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang string
    The language of the content within the request and response. Valid values: zh, en.
    proto string
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    release string
    The status of the access control policy. Valid values: true, false.
    source string
    The source address in the access control policy.
    sourceIp string
    The source IP address of the request.
    sourceType string
    The type of the source address in the access control policy. Valid values: net, group, location.
    acl_action str
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    acl_uuid str
    (Available since v1.148.0) The unique ID of the access control policy.
    application_name str

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description str
    The description of the access control policy.
    dest_port str
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    dest_port_group str
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    dest_port_type str
    The type of the destination port in the access control policy. Valid values: port, group.
    destination str
    The destination address in the access control policy.
    destination_type str
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction str
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    ip_version str
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang str
    The language of the content within the request and response. Valid values: zh, en.
    proto str
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    release str
    The status of the access control policy. Valid values: true, false.
    source str
    The source address in the access control policy.
    source_ip str
    The source IP address of the request.
    source_type str
    The type of the source address in the access control policy. Valid values: net, group, location.
    aclAction String
    The action that Cloud Firewall performs on the traffic. Valid values: accept, drop, log.
    aclUuid String
    (Available since v1.148.0) The unique ID of the access control policy.
    applicationName String

    The application type supported by the access control policy. Valid values: ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC.

    NOTE: If proto is set to TCP, you can set application_name to any valid value. If proto is set to UDP, ICMP, or ANY, you can only set application_name to ANY.

    description String
    The description of the access control policy.
    destPort String
    The destination port in the access control policy. Note: If dest_port_type is set to port, you must specify dest_port.
    destPortGroup String
    The name of the destination port address book in the access control policy. Note: If dest_port_type is set to group, you must specify dest_port_group.
    destPortType String
    The type of the destination port in the access control policy. Valid values: port, group.
    destination String
    The destination address in the access control policy.
    destinationType String
    The type of the destination address in the access control policy. Valid values: net, group, domain, location.
    direction String
    The direction of the traffic to which the access control policy applies. Valid values: in, out.
    ipVersion String
    The IP version supported by the access control policy. Default value: 4. Valid values:
    lang String
    The language of the content within the request and response. Valid values: zh, en.
    proto String
    The protocol type supported by the access control policy. Valid values: ANY, TCP, UDP, ICMP.
    release String
    The status of the access control policy. Valid values: true, false.
    source String
    The source address in the access control policy.
    sourceIp String
    The source IP address of the request.
    sourceType String
    The type of the source address in the access control policy. Valid values: net, group, location.

    Import

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

    $ pulumi import alicloud:cloudfirewall/controlPolicy:ControlPolicy example <acl_uuid>:<direction>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi