published on Saturday, Mar 14, 2026 by Pulumi
published on Saturday, Mar 14, 2026 by Pulumi
Provides a Cloud Firewall Threat Intelligence Switch resource.
Cloud Firewall Switch Threat Intelligence.
For information about Cloud Firewall Threat Intelligence Switch and how to use it, see What is Threat Intelligence Switch.
NOTE: Available since v1.260.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.ThreatIntelligenceSwitch("default", {
action: "alert",
enableStatus: 0,
categoryId: "IpOutThreatTorExit",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.cloudfirewall.ThreatIntelligenceSwitch("default",
action="alert",
enable_status=0,
category_id="IpOutThreatTorExit")
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.NewThreatIntelligenceSwitch(ctx, "default", &cloudfirewall.ThreatIntelligenceSwitchArgs{
Action: pulumi.String("alert"),
EnableStatus: pulumi.Int(0),
CategoryId: pulumi.String("IpOutThreatTorExit"),
})
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.ThreatIntelligenceSwitch("default", new()
{
Action = "alert",
EnableStatus = 0,
CategoryId = "IpOutThreatTorExit",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.ThreatIntelligenceSwitch;
import com.pulumi.alicloud.cloudfirewall.ThreatIntelligenceSwitchArgs;
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 ThreatIntelligenceSwitch("default", ThreatIntelligenceSwitchArgs.builder()
.action("alert")
.enableStatus(0)
.categoryId("IpOutThreatTorExit")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:cloudfirewall:ThreatIntelligenceSwitch
properties:
action: alert
enableStatus: '0'
categoryId: IpOutThreatTorExit
Deleting alicloud.cloudfirewall.ThreatIntelligenceSwitch or removing it from your configuration
Terraform cannot destroy resource alicloud.cloudfirewall.ThreatIntelligenceSwitch. Terraform will remove this resource from the state file, however resources may remain.
📚 Need more examples? VIEW MORE EXAMPLES
Create ThreatIntelligenceSwitch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ThreatIntelligenceSwitch(name: string, args?: ThreatIntelligenceSwitchArgs, opts?: CustomResourceOptions);@overload
def ThreatIntelligenceSwitch(resource_name: str,
args: Optional[ThreatIntelligenceSwitchArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ThreatIntelligenceSwitch(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
category_id: Optional[str] = None,
enable_status: Optional[int] = None)func NewThreatIntelligenceSwitch(ctx *Context, name string, args *ThreatIntelligenceSwitchArgs, opts ...ResourceOption) (*ThreatIntelligenceSwitch, error)public ThreatIntelligenceSwitch(string name, ThreatIntelligenceSwitchArgs? args = null, CustomResourceOptions? opts = null)
public ThreatIntelligenceSwitch(String name, ThreatIntelligenceSwitchArgs args)
public ThreatIntelligenceSwitch(String name, ThreatIntelligenceSwitchArgs args, CustomResourceOptions options)
type: alicloud:cloudfirewall:ThreatIntelligenceSwitch
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 ThreatIntelligenceSwitchArgs
- 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 ThreatIntelligenceSwitchArgs
- 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 ThreatIntelligenceSwitchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ThreatIntelligenceSwitchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ThreatIntelligenceSwitchArgs
- 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 threatIntelligenceSwitchResource = new AliCloud.CloudFirewall.ThreatIntelligenceSwitch("threatIntelligenceSwitchResource", new()
{
Action = "string",
CategoryId = "string",
EnableStatus = 0,
});
example, err := cloudfirewall.NewThreatIntelligenceSwitch(ctx, "threatIntelligenceSwitchResource", &cloudfirewall.ThreatIntelligenceSwitchArgs{
Action: pulumi.String("string"),
CategoryId: pulumi.String("string"),
EnableStatus: pulumi.Int(0),
})
var threatIntelligenceSwitchResource = new ThreatIntelligenceSwitch("threatIntelligenceSwitchResource", ThreatIntelligenceSwitchArgs.builder()
.action("string")
.categoryId("string")
.enableStatus(0)
.build());
threat_intelligence_switch_resource = alicloud.cloudfirewall.ThreatIntelligenceSwitch("threatIntelligenceSwitchResource",
action="string",
category_id="string",
enable_status=0)
const threatIntelligenceSwitchResource = new alicloud.cloudfirewall.ThreatIntelligenceSwitch("threatIntelligenceSwitchResource", {
action: "string",
categoryId: "string",
enableStatus: 0,
});
type: alicloud:cloudfirewall:ThreatIntelligenceSwitch
properties:
action: string
categoryId: string
enableStatus: 0
ThreatIntelligenceSwitch Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ThreatIntelligenceSwitch resource accepts the following input properties:
- Action string
- Rule action. Value:
- Category
Id string - The threat intelligence classification ID.
- Enable
Status int - Switch status. Value:
- Action string
- Rule action. Value:
- Category
Id string - The threat intelligence classification ID.
- Enable
Status int - Switch status. Value:
- action String
- Rule action. Value:
- category
Id String - The threat intelligence classification ID.
- enable
Status Integer - Switch status. Value:
- action string
- Rule action. Value:
- category
Id string - The threat intelligence classification ID.
- enable
Status number - Switch status. Value:
- action str
- Rule action. Value:
- category_
id str - The threat intelligence classification ID.
- enable_
status int - Switch status. Value:
- action String
- Rule action. Value:
- category
Id String - The threat intelligence classification ID.
- enable
Status Number - Switch status. Value:
Outputs
All input properties are implicitly available as output properties. Additionally, the ThreatIntelligenceSwitch resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ThreatIntelligenceSwitch Resource
Get an existing ThreatIntelligenceSwitch 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?: ThreatIntelligenceSwitchState, opts?: CustomResourceOptions): ThreatIntelligenceSwitch@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
category_id: Optional[str] = None,
enable_status: Optional[int] = None) -> ThreatIntelligenceSwitchfunc GetThreatIntelligenceSwitch(ctx *Context, name string, id IDInput, state *ThreatIntelligenceSwitchState, opts ...ResourceOption) (*ThreatIntelligenceSwitch, error)public static ThreatIntelligenceSwitch Get(string name, Input<string> id, ThreatIntelligenceSwitchState? state, CustomResourceOptions? opts = null)public static ThreatIntelligenceSwitch get(String name, Output<String> id, ThreatIntelligenceSwitchState state, CustomResourceOptions options)resources: _: type: alicloud:cloudfirewall:ThreatIntelligenceSwitch get: id: ${id}- 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.
- Action string
- Rule action. Value:
- Category
Id string - The threat intelligence classification ID.
- Enable
Status int - Switch status. Value:
- Action string
- Rule action. Value:
- Category
Id string - The threat intelligence classification ID.
- Enable
Status int - Switch status. Value:
- action String
- Rule action. Value:
- category
Id String - The threat intelligence classification ID.
- enable
Status Integer - Switch status. Value:
- action string
- Rule action. Value:
- category
Id string - The threat intelligence classification ID.
- enable
Status number - Switch status. Value:
- action str
- Rule action. Value:
- category_
id str - The threat intelligence classification ID.
- enable_
status int - Switch status. Value:
- action String
- Rule action. Value:
- category
Id String - The threat intelligence classification ID.
- enable
Status Number - Switch status. Value:
Import
Cloud Firewall Threat Intelligence Switch can be imported using the id, e.g.
$ pulumi import alicloud:cloudfirewall/threatIntelligenceSwitch:ThreatIntelligenceSwitch example <id>
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
alicloudTerraform Provider.
published on Saturday, Mar 14, 2026 by Pulumi
