volcengine.waf.InstanceCtl
Explore with Pulumi AI
Provides a resource to manage waf instance ctl
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.waf.InstanceCtl("foo", {
allowEnable: 0,
blockEnable: 1,
projectName: "default",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.waf.InstanceCtl("foo",
allow_enable=0,
block_enable=1,
project_name="default")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/waf"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := waf.NewInstanceCtl(ctx, "foo", &waf.InstanceCtlArgs{
AllowEnable: pulumi.Int(0),
BlockEnable: pulumi.Int(1),
ProjectName: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Waf.InstanceCtl("foo", new()
{
AllowEnable = 0,
BlockEnable = 1,
ProjectName = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.waf.InstanceCtl;
import com.pulumi.volcengine.waf.InstanceCtlArgs;
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 foo = new InstanceCtl("foo", InstanceCtlArgs.builder()
.allowEnable(0)
.blockEnable(1)
.projectName("default")
.build());
}
}
resources:
foo:
type: volcengine:waf:InstanceCtl
properties:
allowEnable: 0
blockEnable: 1
projectName: default
Create InstanceCtl Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceCtl(name: string, args?: InstanceCtlArgs, opts?: CustomResourceOptions);
@overload
def InstanceCtl(resource_name: str,
args: Optional[InstanceCtlArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceCtl(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_enable: Optional[int] = None,
block_enable: Optional[int] = None,
project_name: Optional[str] = None)
func NewInstanceCtl(ctx *Context, name string, args *InstanceCtlArgs, opts ...ResourceOption) (*InstanceCtl, error)
public InstanceCtl(string name, InstanceCtlArgs? args = null, CustomResourceOptions? opts = null)
public InstanceCtl(String name, InstanceCtlArgs args)
public InstanceCtl(String name, InstanceCtlArgs args, CustomResourceOptions options)
type: volcengine:waf:InstanceCtl
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 InstanceCtlArgs
- 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 InstanceCtlArgs
- 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 InstanceCtlArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceCtlArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceCtlArgs
- 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 instanceCtlResource = new Volcengine.Waf.InstanceCtl("instanceCtlResource", new()
{
AllowEnable = 0,
BlockEnable = 0,
ProjectName = "string",
});
example, err := waf.NewInstanceCtl(ctx, "instanceCtlResource", &waf.InstanceCtlArgs{
AllowEnable: pulumi.Int(0),
BlockEnable: pulumi.Int(0),
ProjectName: pulumi.String("string"),
})
var instanceCtlResource = new InstanceCtl("instanceCtlResource", InstanceCtlArgs.builder()
.allowEnable(0)
.blockEnable(0)
.projectName("string")
.build());
instance_ctl_resource = volcengine.waf.InstanceCtl("instanceCtlResource",
allow_enable=0,
block_enable=0,
project_name="string")
const instanceCtlResource = new volcengine.waf.InstanceCtl("instanceCtlResource", {
allowEnable: 0,
blockEnable: 0,
projectName: "string",
});
type: volcengine:waf:InstanceCtl
properties:
allowEnable: 0
blockEnable: 0
projectName: string
InstanceCtl 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 InstanceCtl resource accepts the following input properties:
- Allow
Enable int - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- Block
Enable int - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- Project
Name string - The name of the project associated with the current resource.
- Allow
Enable int - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- Block
Enable int - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- Project
Name string - The name of the project associated with the current resource.
- allow
Enable Integer - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block
Enable Integer - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project
Name String - The name of the project associated with the current resource.
- allow
Enable number - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block
Enable number - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project
Name string - The name of the project associated with the current resource.
- allow_
enable int - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block_
enable int - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project_
name str - The name of the project associated with the current resource.
- allow
Enable Number - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block
Enable Number - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project
Name String - The name of the project associated with the current resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceCtl 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 InstanceCtl Resource
Get an existing InstanceCtl 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?: InstanceCtlState, opts?: CustomResourceOptions): InstanceCtl
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_enable: Optional[int] = None,
block_enable: Optional[int] = None,
project_name: Optional[str] = None) -> InstanceCtl
func GetInstanceCtl(ctx *Context, name string, id IDInput, state *InstanceCtlState, opts ...ResourceOption) (*InstanceCtl, error)
public static InstanceCtl Get(string name, Input<string> id, InstanceCtlState? state, CustomResourceOptions? opts = null)
public static InstanceCtl get(String name, Output<String> id, InstanceCtlState state, CustomResourceOptions options)
resources: _: type: volcengine:waf:InstanceCtl 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.
- Allow
Enable int - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- Block
Enable int - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- Project
Name string - The name of the project associated with the current resource.
- Allow
Enable int - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- Block
Enable int - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- Project
Name string - The name of the project associated with the current resource.
- allow
Enable Integer - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block
Enable Integer - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project
Name String - The name of the project associated with the current resource.
- allow
Enable number - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block
Enable number - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project
Name string - The name of the project associated with the current resource.
- allow_
enable int - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block_
enable int - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project_
name str - The name of the project associated with the current resource.
- allow
Enable Number - Whether to enable the allowed access list policy for the instance corresponding to the current region.
- block
Enable Number - Whether to enable the prohibited access list policy for the instance corresponding to the current region.
- project
Name String - The name of the project associated with the current resource.
Import
WafInstanceCtl can be imported using the id, e.g.
$ pulumi import volcengine:waf/instanceCtl:InstanceCtl default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.