1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cloudfirewall
  5. ThreatIntelligenceSwitch
Alibaba Cloud v3.86.0 published on Saturday, Sep 20, 2025 by Pulumi

alicloud.cloudfirewall.ThreatIntelligenceSwitch

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.0 published on Saturday, Sep 20, 2025 by Pulumi

    Import

    Cloud Firewall Threat Intelligence Switch can be imported using the id, e.g.

    $ pulumi import alicloud:cloudfirewall/threatIntelligenceSwitch:ThreatIntelligenceSwitch example <id>
    

    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:
    CategoryId string
    The threat intelligence classification ID.
    EnableStatus int
    Switch status. Value:
    Action string
    Rule action. Value:
    CategoryId string
    The threat intelligence classification ID.
    EnableStatus int
    Switch status. Value:
    action String
    Rule action. Value:
    categoryId String
    The threat intelligence classification ID.
    enableStatus Integer
    Switch status. Value:
    action string
    Rule action. Value:
    categoryId string
    The threat intelligence classification ID.
    enableStatus 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:
    categoryId String
    The threat intelligence classification ID.
    enableStatus 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) -> ThreatIntelligenceSwitch
    func 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.
    The following state arguments are supported:
    Action string
    Rule action. Value:
    CategoryId string
    The threat intelligence classification ID.
    EnableStatus int
    Switch status. Value:
    Action string
    Rule action. Value:
    CategoryId string
    The threat intelligence classification ID.
    EnableStatus int
    Switch status. Value:
    action String
    Rule action. Value:
    categoryId String
    The threat intelligence classification ID.
    enableStatus Integer
    Switch status. Value:
    action string
    Rule action. Value:
    categoryId string
    The threat intelligence classification ID.
    enableStatus 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:
    categoryId String
    The threat intelligence classification ID.
    enableStatus Number
    Switch status. Value:

    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.86.0 published on Saturday, Sep 20, 2025 by Pulumi