alicloud.cloudfirewall.ControlPolicy
Explore with Pulumi AI
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", {
applicationName: "ANY",
aclAction: "accept",
description: "example",
destinationType: "net",
destination: "100.1.1.0/24",
direction: "out",
proto: "ANY",
source: "1.2.3.0/24",
sourceType: "net",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cloudfirewall.ControlPolicy("example",
application_name="ANY",
acl_action="accept",
description="example",
destination_type="net",
destination="100.1.1.0/24",
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{
ApplicationName: pulumi.String("ANY"),
AclAction: pulumi.String("accept"),
Description: pulumi.String("example"),
DestinationType: pulumi.String("net"),
Destination: pulumi.String("100.1.1.0/24"),
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()
{
ApplicationName = "ANY",
AclAction = "accept",
Description = "example",
DestinationType = "net",
Destination = "100.1.1.0/24",
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()
.applicationName("ANY")
.aclAction("accept")
.description("example")
.destinationType("net")
.destination("100.1.1.0/24")
.direction("out")
.proto("ANY")
.source("1.2.3.0/24")
.sourceType("net")
.build());
}
}
resources:
example:
type: alicloud:cloudfirewall:ControlPolicy
properties:
applicationName: ANY
aclAction: accept
description: example
destinationType: net
destination: 100.1.1.0/24
direction: out
proto: ANY
source: 1.2.3.0/24
sourceType: net
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:
- Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- Description string
- The description of the access control policy.
- Destination string
- The destination address defined in the access control policy.
- Destination
Type string - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - Direction string
- Direction. Valid values:
in
,out
. - Proto string
- Proto. Valid values:
TCP
,UDP
,ANY
,ICMP
. - Source string
- Source.
- Source
Type string - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
. - Dest
Port string - The destination port defined in the access control policy.
- Dest
Port stringGroup - The destination port address book defined in the access control policy.
- Dest
Port stringType - The destination port type defined in the access control policy. Valid values:
group
,port
. - Ip
Version 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
. - Source
Ip string - The source ip.
- Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- Description string
- The description of the access control policy.
- Destination string
- The destination address defined in the access control policy.
- Destination
Type string - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - Direction string
- Direction. Valid values:
in
,out
. - Proto string
- Proto. Valid values:
TCP
,UDP
,ANY
,ICMP
. - Source string
- Source.
- Source
Type string - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
. - Dest
Port string - The destination port defined in the access control policy.
- Dest
Port stringGroup - The destination port address book defined in the access control policy.
- Dest
Port stringType - The destination port type defined in the access control policy. Valid values:
group
,port
. - Ip
Version 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
. - Source
Ip string - The source ip.
- acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- description String
- The description of the access control policy.
- destination String
- The destination address defined in the access control policy.
- destination
Type String - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - direction String
- Direction. Valid values:
in
,out
. - proto String
- Proto. Valid values:
TCP
,UDP
,ANY
,ICMP
. - source String
- Source.
- source
Type String - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
. - dest
Port String - The destination port defined in the access control policy.
- dest
Port StringGroup - The destination port address book defined in the access control policy.
- dest
Port StringType - The destination port type defined in the access control policy. Valid values:
group
,port
. - ip
Version 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
. - source
Ip String - The source ip.
- acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- description string
- The description of the access control policy.
- destination string
- The destination address defined in the access control policy.
- destination
Type string - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - direction string
- Direction. Valid values:
in
,out
. - proto string
- Proto. Valid values:
TCP
,UDP
,ANY
,ICMP
. - source string
- Source.
- source
Type string - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
. - dest
Port string - The destination port defined in the access control policy.
- dest
Port stringGroup - The destination port address book defined in the access control policy.
- dest
Port stringType - The destination port type defined in the access control policy. Valid values:
group
,port
. - ip
Version 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
. - source
Ip 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- 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 arenet
,group
. Ifdirection
isout
, the valid values arenet
,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
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
. - dest_
port str - The destination port defined in the access control policy.
- dest_
port_ strgroup - The destination port address book defined in the access control policy.
- dest_
port_ strtype - 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.
- acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- description String
- The description of the access control policy.
- destination String
- The destination address defined in the access control policy.
- destination
Type String - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - direction String
- Direction. Valid values:
in
,out
. - proto String
- Proto. Valid values:
TCP
,UDP
,ANY
,ICMP
. - source String
- Source.
- source
Type String - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
. - dest
Port String - The destination port defined in the access control policy.
- dest
Port StringGroup - The destination port address book defined in the access control policy.
- dest
Port StringType - The destination port type defined in the access control policy. Valid values:
group
,port
. - ip
Version 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
. - source
Ip String - The source ip.
Outputs
All input properties are implicitly available as output properties. Additionally, the ControlPolicy resource produces the following output properties:
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.
- Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Acl
Uuid string - (Available since v1.148.0) The unique ID of the access control policy.
- Application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- Description string
- The description of the access control policy.
- Dest
Port string - The destination port defined in the access control policy.
- Dest
Port stringGroup - The destination port address book defined in the access control policy.
- Dest
Port stringType - 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.
- Destination
Type string - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - Direction string
- Direction. Valid values:
in
,out
. - Ip
Version 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.
- Source
Ip string - The source ip.
- Source
Type string - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- Acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - Acl
Uuid string - (Available since v1.148.0) The unique ID of the access control policy.
- Application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- Description string
- The description of the access control policy.
- Dest
Port string - The destination port defined in the access control policy.
- Dest
Port stringGroup - The destination port address book defined in the access control policy.
- Dest
Port stringType - 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.
- Destination
Type string - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - Direction string
- Direction. Valid values:
in
,out
. - Ip
Version 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.
- Source
Ip string - The source ip.
- Source
Type string - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid String - (Available since v1.148.0) The unique ID of the access control policy.
- application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- description String
- The description of the access control policy.
- dest
Port String - The destination port defined in the access control policy.
- dest
Port StringGroup - The destination port address book defined in the access control policy.
- dest
Port StringType - 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.
- destination
Type String - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - direction String
- Direction. Valid values:
in
,out
. - ip
Version 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.
- source
Ip String - The source ip.
- source
Type String - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- acl
Action string - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid string - (Available since v1.148.0) The unique ID of the access control policy.
- application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- description string
- The description of the access control policy.
- dest
Port string - The destination port defined in the access control policy.
- dest
Port stringGroup - The destination port address book defined in the access control policy.
- dest
Port stringType - 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.
- destination
Type string - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - direction string
- Direction. Valid values:
in
,out
. - ip
Version 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.
- source
Ip string - The source ip.
- source
Type string - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- description str
- The description of the access control policy.
- dest_
port str - The destination port defined in the access control policy.
- dest_
port_ strgroup - The destination port address book defined in the access control policy.
- dest_
port_ strtype - 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 arenet
,group
. Ifdirection
isout
, the valid values arenet
,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
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
- acl
Action String - The action that Cloud Firewall performs on the traffic. Valid values:
accept
,drop
,log
. - acl
Uuid String - (Available since v1.148.0) The unique ID of the access control policy.
- application
Name 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 toTCP
, you can setapplication_name
to any valid value. Ifproto
is set toUDP
,ICMP
, orANY
, you can only setapplication_name
toANY
.- description String
- The description of the access control policy.
- dest
Port String - The destination port defined in the access control policy.
- dest
Port StringGroup - The destination port address book defined in the access control policy.
- dest
Port StringType - 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.
- destination
Type String - DestinationType. Valid values: If Direction is
in
, the valid values arenet
,group
. Ifdirection
isout
, the valid values arenet
,group
,domain
,location
. - direction String
- Direction. Valid values:
in
,out
. - ip
Version 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.
- source
Ip String - The source ip.
- source
Type String - SourceType. Valid values: If
direction
isin
, the valid values arenet
,group
,location
. Ifdirection
isout
, the valid values arenet
,group
.
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.