1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. WafWebShell
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.WafWebShell

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a waf web_shell

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.WafWebShell("example", {
        domain: "demo.waf.com",
        status: 0,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.WafWebShell("example",
        domain="demo.waf.com",
        status=0)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewWafWebShell(ctx, "example", &tencentcloud.WafWebShellArgs{
    			Domain: pulumi.String("demo.waf.com"),
    			Status: pulumi.Float64(0),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.WafWebShell("example", new()
        {
            Domain = "demo.waf.com",
            Status = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.WafWebShell;
    import com.pulumi.tencentcloud.WafWebShellArgs;
    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 WafWebShell("example", WafWebShellArgs.builder()
                .domain("demo.waf.com")
                .status(0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:WafWebShell
        properties:
          domain: demo.waf.com
          status: 0
    

    Create WafWebShell Resource

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

    Constructor syntax

    new WafWebShell(name: string, args: WafWebShellArgs, opts?: CustomResourceOptions);
    @overload
    def WafWebShell(resource_name: str,
                    args: WafWebShellArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafWebShell(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    domain: Optional[str] = None,
                    status: Optional[float] = None,
                    waf_web_shell_id: Optional[str] = None)
    func NewWafWebShell(ctx *Context, name string, args WafWebShellArgs, opts ...ResourceOption) (*WafWebShell, error)
    public WafWebShell(string name, WafWebShellArgs args, CustomResourceOptions? opts = null)
    public WafWebShell(String name, WafWebShellArgs args)
    public WafWebShell(String name, WafWebShellArgs args, CustomResourceOptions options)
    
    type: tencentcloud:WafWebShell
    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 WafWebShellArgs
    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 WafWebShellArgs
    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 WafWebShellArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafWebShellArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafWebShellArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    WafWebShell 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 WafWebShell resource accepts the following input properties:

    Domain string
    Domain.
    Status double
    Webshell status, 1: open; 0: closed; 2: log.
    WafWebShellId string
    ID of the resource.
    Domain string
    Domain.
    Status float64
    Webshell status, 1: open; 0: closed; 2: log.
    WafWebShellId string
    ID of the resource.
    domain String
    Domain.
    status Double
    Webshell status, 1: open; 0: closed; 2: log.
    wafWebShellId String
    ID of the resource.
    domain string
    Domain.
    status number
    Webshell status, 1: open; 0: closed; 2: log.
    wafWebShellId string
    ID of the resource.
    domain str
    Domain.
    status float
    Webshell status, 1: open; 0: closed; 2: log.
    waf_web_shell_id str
    ID of the resource.
    domain String
    Domain.
    status Number
    Webshell status, 1: open; 0: closed; 2: log.
    wafWebShellId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WafWebShell 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 WafWebShell Resource

    Get an existing WafWebShell 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?: WafWebShellState, opts?: CustomResourceOptions): WafWebShell
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain: Optional[str] = None,
            status: Optional[float] = None,
            waf_web_shell_id: Optional[str] = None) -> WafWebShell
    func GetWafWebShell(ctx *Context, name string, id IDInput, state *WafWebShellState, opts ...ResourceOption) (*WafWebShell, error)
    public static WafWebShell Get(string name, Input<string> id, WafWebShellState? state, CustomResourceOptions? opts = null)
    public static WafWebShell get(String name, Output<String> id, WafWebShellState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:WafWebShell    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:
    Domain string
    Domain.
    Status double
    Webshell status, 1: open; 0: closed; 2: log.
    WafWebShellId string
    ID of the resource.
    Domain string
    Domain.
    Status float64
    Webshell status, 1: open; 0: closed; 2: log.
    WafWebShellId string
    ID of the resource.
    domain String
    Domain.
    status Double
    Webshell status, 1: open; 0: closed; 2: log.
    wafWebShellId String
    ID of the resource.
    domain string
    Domain.
    status number
    Webshell status, 1: open; 0: closed; 2: log.
    wafWebShellId string
    ID of the resource.
    domain str
    Domain.
    status float
    Webshell status, 1: open; 0: closed; 2: log.
    waf_web_shell_id str
    ID of the resource.
    domain String
    Domain.
    status Number
    Webshell status, 1: open; 0: closed; 2: log.
    wafWebShellId String
    ID of the resource.

    Import

    waf web_shell can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/wafWebShell:WafWebShell example demo.waf.com
    

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

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack