1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cloudfirewall
  5. ControlPolicy
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.cloudfirewall.ControlPolicy

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 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 example = new alicloud.cloudfirewall.ControlPolicy("example", {
        aclAction: "accept",
        applicationName: "ANY",
        description: "example",
        destination: "100.1.1.0/24",
        destinationType: "net",
        direction: "out",
        proto: "ANY",
        source: "1.2.3.0/24",
        sourceType: "net",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    example = alicloud.cloudfirewall.ControlPolicy("example",
        acl_action="accept",
        application_name="ANY",
        description="example",
        destination="100.1.1.0/24",
        destination_type="net",
        direction="out",
        proto="ANY",
        source="1.2.3.0/24",
        source_type="net")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudfirewall.NewControlPolicy(ctx, "example", &cloudfirewall.ControlPolicyArgs{
    			AclAction:       pulumi.String("accept"),
    			ApplicationName: pulumi.String("ANY"),
    			Description:     pulumi.String("example"),
    			Destination:     pulumi.String("100.1.1.0/24"),
    			DestinationType: pulumi.String("net"),
    			Direction:       pulumi.String("out"),
    			Proto:           pulumi.String("ANY"),
    			Source:          pulumi.String("1.2.3.0/24"),
    			SourceType:      pulumi.String("net"),
    		})
    		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 example = new AliCloud.CloudFirewall.ControlPolicy("example", new()
        {
            AclAction = "accept",
            ApplicationName = "ANY",
            Description = "example",
            Destination = "100.1.1.0/24",
            DestinationType = "net",
            Direction = "out",
            Proto = "ANY",
            Source = "1.2.3.0/24",
            SourceType = "net",
        });
    
    });
    
    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) {
            var example = new ControlPolicy("example", ControlPolicyArgs.builder()        
                .aclAction("accept")
                .applicationName("ANY")
                .description("example")
                .destination("100.1.1.0/24")
                .destinationType("net")
                .direction("out")
                .proto("ANY")
                .source("1.2.3.0/24")
                .sourceType("net")
                .build());
    
        }
    }
    
    resources:
      example:
        type: alicloud:cloudfirewall:ControlPolicy
        properties:
          aclAction: accept
          applicationName: ANY
          description: example
          destination: 100.1.1.0/24
          destinationType: net
          direction: out
          proto: ANY
          source: 1.2.3.0/24
          sourceType: net
    

    Create ControlPolicy Resource

    new ControlPolicy(name: string, args: ControlPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def ControlPolicy(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      acl_action: 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)
    @overload
    def ControlPolicy(resource_name: str,
                      args: ControlPolicyArgs,
                      opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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 defined in the access control policy.
    DestinationType string
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    Direction string
    Direction. Valid values: in, out.
    Proto string
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    Source string
    Source.
    SourceType string
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    DestPort string
    The destination port defined in the access control policy.
    DestPortGroup string
    The destination port address book defined in the access control policy.
    DestPortType string
    The destination port type defined in the access control policy. Valid values: group, port.
    IpVersion string
    The ip version.
    Lang string
    DestPortGroupPorts. Valid values: en, zh.
    Release string
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    SourceIp string
    The source ip.
    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 defined in the access control policy.
    DestinationType string
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    Direction string
    Direction. Valid values: in, out.
    Proto string
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    Source string
    Source.
    SourceType string
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    DestPort string
    The destination port defined in the access control policy.
    DestPortGroup string
    The destination port address book defined in the access control policy.
    DestPortType string
    The destination port type defined in the access control policy. Valid values: group, port.
    IpVersion string
    The ip version.
    Lang string
    DestPortGroupPorts. Valid values: en, zh.
    Release string
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    SourceIp string
    The source ip.
    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 defined in the access control policy.
    destinationType String
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction String
    Direction. Valid values: in, out.
    proto String
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    source String
    Source.
    sourceType String
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    destPort String
    The destination port defined in the access control policy.
    destPortGroup String
    The destination port address book defined in the access control policy.
    destPortType String
    The destination port type defined in the access control policy. Valid values: group, port.
    ipVersion String
    The ip version.
    lang String
    DestPortGroupPorts. Valid values: en, zh.
    release String
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    sourceIp String
    The source ip.
    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 defined in the access control policy.
    destinationType string
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction string
    Direction. Valid values: in, out.
    proto string
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    source string
    Source.
    sourceType string
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    destPort string
    The destination port defined in the access control policy.
    destPortGroup string
    The destination port address book defined in the access control policy.
    destPortType string
    The destination port type defined in the access control policy. Valid values: group, port.
    ipVersion string
    The ip version.
    lang string
    DestPortGroupPorts. Valid values: en, zh.
    release string
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    sourceIp string
    The source ip.
    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 defined in the access control policy.
    destination_type str
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction str
    Direction. Valid values: in, out.
    proto str
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    source str
    Source.
    source_type str
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    dest_port str
    The destination port defined in the access control policy.
    dest_port_group str
    The destination port address book defined in the access control policy.
    dest_port_type str
    The destination port type defined in the access control policy. Valid values: group, port.
    ip_version str
    The ip version.
    lang str
    DestPortGroupPorts. Valid values: en, zh.
    release str
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    source_ip str
    The source ip.
    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 defined in the access control policy.
    destinationType String
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction String
    Direction. Valid values: in, out.
    proto String
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    source String
    Source.
    sourceType String
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    destPort String
    The destination port defined in the access control policy.
    destPortGroup String
    The destination port address book defined in the access control policy.
    destPortType String
    The destination port type defined in the access control policy. Valid values: group, port.
    ipVersion String
    The ip version.
    lang String
    DestPortGroupPorts. Valid values: en, zh.
    release String
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    sourceIp String
    The source ip.

    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 defined in the access control policy.
    DestPortGroup string
    The destination port address book defined in the access control policy.
    DestPortType string
    The destination port type defined in the access control policy. Valid values: group, port.
    Destination string
    The destination address defined in the access control policy.
    DestinationType string
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    Direction string
    Direction. Valid values: in, out.
    IpVersion string
    The ip version.
    Lang string
    DestPortGroupPorts. Valid values: en, zh.
    Proto string
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    Release string
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    Source string
    Source.
    SourceIp string
    The source ip.
    SourceType string
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    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 defined in the access control policy.
    DestPortGroup string
    The destination port address book defined in the access control policy.
    DestPortType string
    The destination port type defined in the access control policy. Valid values: group, port.
    Destination string
    The destination address defined in the access control policy.
    DestinationType string
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    Direction string
    Direction. Valid values: in, out.
    IpVersion string
    The ip version.
    Lang string
    DestPortGroupPorts. Valid values: en, zh.
    Proto string
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    Release string
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    Source string
    Source.
    SourceIp string
    The source ip.
    SourceType string
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    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 defined in the access control policy.
    destPortGroup String
    The destination port address book defined in the access control policy.
    destPortType String
    The destination port type defined in the access control policy. Valid values: group, port.
    destination String
    The destination address defined in the access control policy.
    destinationType String
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction String
    Direction. Valid values: in, out.
    ipVersion String
    The ip version.
    lang String
    DestPortGroupPorts. Valid values: en, zh.
    proto String
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    release String
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    source String
    Source.
    sourceIp String
    The source ip.
    sourceType String
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    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 defined in the access control policy.
    destPortGroup string
    The destination port address book defined in the access control policy.
    destPortType string
    The destination port type defined in the access control policy. Valid values: group, port.
    destination string
    The destination address defined in the access control policy.
    destinationType string
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction string
    Direction. Valid values: in, out.
    ipVersion string
    The ip version.
    lang string
    DestPortGroupPorts. Valid values: en, zh.
    proto string
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    release string
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    source string
    Source.
    sourceIp string
    The source ip.
    sourceType string
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    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 defined in the access control policy.
    dest_port_group str
    The destination port address book defined in the access control policy.
    dest_port_type str
    The destination port type defined in the access control policy. Valid values: group, port.
    destination str
    The destination address defined in the access control policy.
    destination_type str
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction str
    Direction. Valid values: in, out.
    ip_version str
    The ip version.
    lang str
    DestPortGroupPorts. Valid values: en, zh.
    proto str
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    release str
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    source str
    Source.
    source_ip str
    The source ip.
    source_type str
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.
    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 defined in the access control policy.
    destPortGroup String
    The destination port address book defined in the access control policy.
    destPortType String
    The destination port type defined in the access control policy. Valid values: group, port.
    destination String
    The destination address defined in the access control policy.
    destinationType String
    DestinationType. Valid values: If Direction is in, the valid values are net, group. If direction is out, the valid values are net, group, domain, location.
    direction String
    Direction. Valid values: in, out.
    ipVersion String
    The ip version.
    lang String
    DestPortGroupPorts. Valid values: en, zh.
    proto String
    Proto. Valid values: TCP, UDP, ANY, ICMP.
    release String
    Specifies whether the access control policy is enabled. By default, an access control policy is enabled after it is created. Valid values: true, false.
    source String
    Source.
    sourceIp String
    The source ip.
    sourceType String
    SourceType. Valid values: If direction is in, the valid values are net, group, location. If direction is out, the valid values are net, group.

    Import

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

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

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi